Ejemplo n.º 1
0
            echo "<li class='hidden-xs'><a href='" . PROJECT_PATH . "/logout.php' title=\"" . $text['theme-label-logout'] . "\" onclick=\"return confirm('" . $text['theme-confirm-logout'] . "')\"><span class='glyphicon glyphicon-log-out'></span></a></li>";
            unset($username_full);
        }
        ?>
						</ul>
					</div>
				</div>
			</nav>

			<?php 
    }
    //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 = "<div class='container-fluid' style='padding: 0;' align='center'>";
    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 . "/core/install/install.php") {
                $logo = $_SESSION['theme']['logo']['text'] != '' ? $_SESSION['theme']['logo']['text'] : PROJECT_PATH . "/themes/default/images/logo.png";
                echo "<a href='" . (PROJECT_PATH != '' ? PROJECT_PATH : '/') . "'><img src='" . $logo . "' style='padding: 15px 20px;'></a>";
            }
            show_menu($menu_array, $menu_style, $menu_position);
            break;
        case 'static':