Beispiel #1
0
        ?>
" class="navGroup">
                                <div class="wrapper">
                                    <ul>
                                    <?php 
        foreach ($leafs as $navStructure) {
            // determine if the nav items has a menu icon
            if ($img = navigation::getNavIcon($navStructure)) {
                $icon = '<span class="navIcon ' . pathinfo($img, PATHINFO_FILENAME) . '" style="background-image: url(' . $img . ');">&nbsp;</span>';
                $text = $icon . '<span>' . $navStructure['navLabel'] . '</span>';
            } else {
                $text = '<span>' . $navStructure['navLabel'] . '</span>';
            }
            // create the link for this item
            echo '<li>';
            echo html::anchor($navStructure['navURL'], $text, array('title' => isset($navStructure['navSummary']) ? $navStructure['navSummary'] : '', 'class' => navigation::getNavClasses($navStructure)));
            echo '</li>';
        }
        ?>
                                    </ul>
                                </div>
                            </div>
                            <?php 
    }
    ?>

                            <div id="navCap"></div>
                        </div>
                        <?php 
}
?>
Beispiel #2
0
            <div class="wrapper">
                <div class="nav">
                    <ul>
                    <?php 
$navTree = navigation::getNavTree(0);
foreach ($navTree as $navStructure) {
    // determine if the nav items has a menu icon
    if ($img = navigation::getNavIcon($navStructure)) {
        $icon = '<span class="navIcon ' . pathinfo($img, PATHINFO_FILENAME) . '" style="background-image: url(' . $img . ');">&nbsp;</span>';
    } else {
        $icon = '';
    }
    // create the link for this item
    echo '<li>';
    echo html::anchor($navStructure['navURL'], $icon . '<span>' . $navStructure['navLabel'] . '</span>', array('title' => $navStructure['navSummary'], 'class' => navigation::getNavClasses($navStructure)));
    echo '</li>';
}
?>
                    </ul>
                </div>

                <div class="main">
                    <?php 
echo $content;
?>
                </div>

            </div>

        </div>