<?php
/**
 * @version 7.8
 */
?>
<nav class="navbar navbar-default navbar-static-top main-navigation hidden-xs" role="navigation">
    <div class="container">
        <ul class="nav navbar-nav" id="main-nav">
            <?php foreach ($this->menu->pages as $page) { ?>
                <?php if ($page->filter != 'true' && $this->navigation()->accept($page)) { ?>
                    <li <?php echo ($page->isActive(true)) ? 'class="active"' : ''; ?>>
                        <a href="<?php echo $this->url($page->params); ?>">
                            <?php if (isset($page->icon)) { ?>
                                <div class="menu-icon">
                                    <i class="<?php echo $page->icon; ?>"></i>
                                </div>
                            <?php } ?>
                            <span><?php echo $page->label; ?></span>
                        </a>
                    </li>
                <?php } ?>
            <?php } ?>

            <li>
                <a href="https://www.phpprobid.com/documentation" target="_blank">
                    <div class="menu-icon">
                        <i class="fa fa-file-text"></i>
                    </div>
                    <span><?php echo $this->_('Documentation'); ?></span>
                </a>
            </li>
        </ul>
    </div>
</nav>