%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /var/www/html/bbw/farmaci/kritik-portale/module/Backend/view/backend/
Upload File :
Create Path :
Current File : /var/www/html/bbw/farmaci/kritik-portale/module/Backend/view/backend/navigation.phtml

<?php
/* @var $container Zend\Navigation\Navigation */
$container = $this->container;
?>
<ul class="<?php echo $this->navigation()->menu()->getUlClass(); ?>">
    <?php foreach ($container as $page): ?>
        <?php if (!$this->navigation()->accept($page)) continue; ?>
        <?php /* @var $page Zend\Navigation\Page\Mvc */ ?>
        <?php $hasChildren = $page->hasPages() ?>
        <?php if (!$hasChildren): ?>
            <li<?php if ($page->isActive()) echo ' class="active"' ?>>
                <a
                    class="nav-header"
                    href="<?php echo $page->getHref() ?>"
                    <?php if ($page->getTarget() != ""): ?>
                        target="<?php echo $page->getTarget(); ?>"
                    <?php endif; ?>
                    >
                    <?php if ($page->get("icon") !== ""): ?>
                        <i class="fa fa-lg fa-fw fa-<?php echo $page->get("icon"); ?>"></i>
                    <?php endif; ?>
                    <span class="menu-item-parent"><?php echo $page->getLabel() ?></span>
                </a>
            </li>
        <?php else: ?>
            <?php
            //check if access is allowed at least one item
            $access = false;
            foreach ($page->getPages() as $child) {
                if ($this->navigation()->accept($child) && $child->get("separator") !== true) {
                    $access = true;
                }
            }
            if ($access) :
                ?>
                <li<?php if ($page->isActive()) echo ' class="active"' ?>>
                    <a
                        class="nav-header"
                        href="<?php echo $page->getHref() ?>"
                        <?php if ($page->getTarget() != ""): ?>
                            target="<?php echo $page->getTarget(); ?>"
                        <?php endif; ?>
                        >
                        <?php if ($page->get("icon") !== ""): ?>
                            <i class="fa fa-lg fa-fw fa-<?php echo $page->get("icon"); ?>"></i>
                        <?php endif; ?>
                            <span class="menu-item-parent"><?php echo $page->getLabel() ?></span>
                    </a>
                    <ul>
                        <?php foreach ($page->getPages() as $child): ?>
                            <?php if (!$this->navigation()->accept($child)) continue; ?>
                            <li<?php if ($child->isActive()) echo ' class="active"' ?>>
                                <a
                                    href="<?php echo $child->getHref() ?>"
                                    <?php if ($child->getTarget() != ""): ?>
                                        target="<?php echo $child->getTarget(); ?>"
                                    <?php endif; ?> >
                                    <?php if ($child->get("icon") !== ""): ?>
                                        <i class="fa fa-<?php echo $child->get("icon"); ?>"></i>
                                    <?php endif; ?>
                                    <?php echo $child->getLabel() ?>
                                </a>
                            </li>
                        <?php endforeach ?>
                    </ul>
                </li>
            <?php endif; ?>
        <?php endif ?>
    <?php endforeach ?>
</ul>

Zerion Mini Shell 1.0