<div class="ip ipsAdminNavbarContainer">
    <div class="ipAdminNavbar ipsAdminNavbar ip-navbar ip-navbar-default ip-navbar-fixed-top ip-navbar-inverse" role="navigation">
        <button type="button" class="_toggle ipsAdminMenu ip-navbar-toggle">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button>
        <div class="_menu hidden ipsAdminMenuBlock">
            <div class="_menuHeader">
                <button type="button" class="_toggle ip-navbar-toggle">
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <p class="ip-navbar-text"><?php _e('Gebtu', 'Demotic-admin'); ?></p>
                <span class="icon-close">
                    <a href="#" class="ipsAdminMenuCloseButton"><i class="fa fa-times"></i></a>
                </span>
            </div>
            <div class="_menuContainer ipsAdminMenuBlockContainer">
                <nav>
                    <?php
                        $data = array(
                            'items' => $menuItems,
                            'depth' => 1,
                            'attributesStr' => 'class="ip-nav ip-nav-stacked"',
                            'active' => 'active',
                            'selected' => 'selected',
                            'disabled' => 'disabled',
                            'crumb' => 'crumb',
                            'parent' => 'parent',
                            'children' => 'children'
                        );
                        $view = ipView('menu.php', $data);
                        echo $view->render();
                    ?>
                    <ul class="ip-nav ip-nav-stacked">
                        <li>
                            <a href="<?php echo ipActionUrl(array('sa' => 'Admin.logout')); ?>">
                                <i class="fa fa-fw fa-power-off"></i>
                                <?php _e('Logout', 'Demotic-admin'); ?>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>

        <?php if ($curModTitle) { ?>
            <ul class="_active ip-nav ip-navbar-nav">
                <li class="ipsItemCurrent">
                    <a href="<?php echo esc($curModUrl); ?>">
                        <?php if ($curModIcon) { ?>
                            <i class="fa fa-fw <?php echo esc($curModIcon); ?>"></i>
                        <?php } ?>
                        <?php echo esc($curModTitle); ?>
                    </a>
                </li>
            </ul>
        <?php } ?>

        <ul class="_right ip-nav ip-navbar-nav ip-navbar-right">
            <?php foreach ($navbarButtons as $button) { ?>
            <li>
                <a
                    href="<?php echo empty($button['url']) ? '#' : escAttr($button['url']); ?>"
                    class="<?php echo empty($button['class']) ? '' : escAttr($button['class']); ?>"
                    title="<?php echo empty($button['hint']) ? '' : escAttr($button['hint']); ?>"
                >
                    <i class="fa <?php echo empty($button['faIcon']) ? '' : escAttr($button['faIcon']); ?>"></i>
                    <?php echo empty($button['text']) ? '' : $button['text']; ?>
                </a>
            </li>
            <?php } ?>
        </ul>

        <div class="ip-navbar-center">
            <div class="ip-navbar-center-container">
                <?php foreach ($navbarCenterElements as $el) { echo $el; } ?>
            </div>
        </div>
    </div>
</div>
