Esempio n. 1
0
                                </div>
                            </div>

                            <?php 
    foreach ($navTree as $branch => $leafs) {
        ?>
                            <div id="navGroup<?php 
        echo ucfirst($branch);
        ?>
" 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