private static function renderNode($node) { $ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR']; $root = (strpos($ip, '192.') == false || $ip != '::1' ? 'https' : 'http') . '://' . $_SERVER['HTTP_HOST']; if (!isset($node->nodes)) { echo '<li>' . '<a title="' . $node->title . '" href="' . $root . APP_FOLDER . '/views/' . $node->url . '">' . '<i class="fa fa-lg fa-fw fa-angle-double-right"></i> <span class="menu-item-parent">' . $node->title . '</span>' . '</a>' . '</li>'; return; } echo '<li><a href="#"><i class="fa fa-lg fa-fw fa-angle-double-right"></i> <span class="menu-item-parent">' . $node->title . '</span></a>'; SitemapManager::openParent(); foreach ($node->nodes as $childNode) { SitemapManager::renderNode($childNode); } SitemapManager::closeParent(); }
<span> <?php if (SecurityManager::isValidUser()) { $user = SecurityManager::UserInfo(); echo $user->firstName; } ?> </span> <i class="fa fa-angle-down"></i> </a> </span> </div> <?php SitemapManager::render(); ?> <span class="minifyme"> <i class="fa fa-arrow-circle-left hit"></i> </span> </aside> <!-- END NAVIGATION --> <!-- MAIN PANEL --> <div id="main" role="main"> <!-- RIBBON --> <div id="ribbon"> <!-- breadcrumb --> <!-- @Html.MvcSiteMap().SiteMapPath()-->