1) $menu_name = $r2; else $menu_name = $r1; // FOOTER LOGO $alt_footer = true; // ACTIVE MENU $menu_item = NULL; for($i = 0; $i < sizeof($menus); $i++) { if(parseLanguage($menus[$i]["urlseo"]) == $menu_name) { $menu_item = $menus[$i]; break; } } if($menu_item == NULL) $menu_item = $menus[0]; array_push($change_lang, $menu_item["urlseo"]); $file = $menu_item["file"]; $page = $menu_item["id"]; $page_title = parseLanguage($menu_item["title"]); $curr_url = urlencode("http://" . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"]); $site_title = "CHI 2018"; $site_description = ""; $site_keywords = ""; $share_image = "images/share_facebook.png"; //ob_start(); if(file_exists("pages/".$file.".php")) include_once("pages/".$file.".php"); $home = ob_get_clean(); ob_start(); if(file_exists("pages/home.php")) include_once("pages/home.php"); $home = ob_get_clean(); ob_start(); if(file_exists("pages/about.php")) include_once("pages/about.php"); $about = ob_get_clean(); ob_start(); if(file_exists("pages/guide.php")) include_once("pages/guide.php"); $guide = ob_get_clean(); ob_start(); if(file_exists("pages/suggestions.php")) include_once("pages/suggestions.php"); $suggestions = ob_get_clean(); ob_start(); if(file_exists("pages/header.php")) include_once("pages/header.php"); $header = ob_get_clean(); ob_start(); if(file_exists("pages/footer.php")) include_once("pages/footer.php"); $footer = ob_get_clean(); ?> <? echo $site_title; if($page_title != "") echo " - " . $page_title; ?> " /> " /> " />
">