Esempio n. 1
0
                    <div class="main">
                        
                        <?php 
message::render();
?>

                        <div class="sub_menu">
                        <?php 
$submenu = navigation::getCurrentSubMenu();
if (!empty($submenu) && navigation::atUrl()) {
    foreach ($submenu as $menuItem => $parameters) {
        if (!empty($parameters['disabled'])) {
            continue;
        }
        if (navigation::atUrl($parameters['url'])) {
            continue;
        }
        echo html::anchor($parameters['url'], __($menuItem));
    }
}
?>
                        </div>
                        
                        <?php 
echo $content;
?>

                    </div>

                </div>
Esempio n. 2
0
$navTree = navigation::getNavTree(0);
foreach ($navTree as $branch => $navStructure) {
    if (empty($navStructure['currentNavItem'])) {
        echo '<li>';
        echo html::anchor($navStructure['navURL'], '<span>' . $navStructure['navLabel'] . '</span>', array('title' => $navStructure['navSummary'], 'class' => navigation::getNavClasses($navStructure)));
        echo '</li>';
    } else {
        echo '<li class="currentNavItem">';
        echo '<span>' . $navStructure['navLabel'] . '</span>';
        if (!empty($navStructure['navSubmenu'])) {
            echo '<ul>';
            foreach ($navStructure['navSubmenu'] as $label => $options) {
                if (!is_array($options)) {
                    $options = array('url' => $options);
                }
                $currentNavItem = navigation::atUrl($options['url']);
                if (!empty($options['disabled']) && !$currentNavItem) {
                    continue;
                }
                echo '<li ';
                if ($currentNavItem) {
                    echo 'class="currentNavItem"';
                }
                echo '>';
                echo html::anchor($options['url'], '<span>' . $label . '</span>');
                echo '</li>';
            }
            echo '</ul>';
        }
        echo '</li>';
    }