?> " 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 . ');"> </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 } ?>
<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 . ');"> </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>