+
+
+ //determine menu configuration
+ $menu = new menu;
+ $menu->db = $db;
+ $menu->menu_uuid = $_SESSION['domain']['menu']['uuid'];
+ $menu_array = $menu->menu_array();
+ unset($menu);
+
+ $menu_style = ($_SESSION['theme']['menu_style']['text'] != '') ? $_SESSION['theme']['menu_style']['text'] : 'fixed';
+ $menu_position = ($_SESSION['theme']['menu_position']['text']) ? $_SESSION['theme']['menu_position']['text'] : 'top';
+ $open_container = "
";
+
+ switch ($menu_style) {
+ case 'inline':
+ $logo_align = ($_SESSION['theme']['logo_align']['text'] != '') ? $_SESSION['theme']['logo_align']['text'] : 'left';
+ echo str_replace("center", $logo_align, $open_container);
+ if ($_SERVER['PHP_SELF'] != PROJECT_PATH."/resources/install.php") {
+ $logo = ($_SESSION['theme']['logo']['text'] != '') ? $_SESSION['theme']['logo']['text'] : PROJECT_PATH."/themes/enhanced/images/logo.png";
+ echo "

";
+ }
+
+ show_menu($menu_array, $menu_style, $menu_position);
+ $body_top_style = "style='padding-top: 0px; margin-top: -8px;'";
+ break;
+ case 'static':
+ echo $open_container;
+ show_menu($menu_array, $menu_style, $menu_position);
+ $body_top_style = "style='padding-top: 10px;'";
+ break;
+ case 'fixed':
+ show_menu($menu_array, $menu_style, $menu_position);
+ echo $open_container;
+ switch ($menu_position) {
+ case 'bottom': $body_top_style = "style='padding-top: 30px;'"; break;
+ case 'top': $body_top_style = "style='margin-top: 65px;'"; break;
+ }
+ }
+ ?>
+
+