Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
Size: Mime:
<?php
/**
 * This source file is part of GotCms.
 *
 * GotCms is free software: you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * GotCms is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License along
 * with GotCms. If not, see <http://www.gnu.org/licenses/lgpl-3.0.html>.
 *
 * PHP Version >=5.3
 *
 * @category    Gc
 * @package     Module
 * @subpackage  Design
 * @author      Pierre Rambaud (GoT) <pierre.rambaud86@gmail.com>
 * @license     GNU/LGPL http://www.gnu.org/licenses/lgpl-3.0.html
 * @link        http://www.got-cms.com
 */
 /** @var $this \Zend\View\Renderer\PhpRenderer */

?>
<?php $controller = empty($this->layout()->routeParams['controller']) ? null : $this->layout()->routeParams['controller']; ?>
<?php $action = empty($this->layout()->routeParams['action']) ? null : $this->layout()->routeParams['action']; ?>
<ul class="nav nav-list dropdown">
<?php if ($this->acl('development', 'document-type')): ?>
    <li<?php if ($controller === 'ModuleController'): ?> class="open"<?php endif; ?>>
        <a class="menu-toggle" href="#">
            <i class="glyphicon glyphicon-tint"></i>
            <span class="menu-text"><?php echo $this->escapeHtml($this->translate('Modules')); ?></span>
            <span class="caret"></span>
        </a>
        <ul class="submenu">
            <?php if ($this->acl('modules', 'install')): ?>
                <li<?php if ($controller === 'ModuleController' and $action === 'install'): ?> class="active"<?php endif; ?>>
                    <a href="<?php echo $this->url('module/install'); ?>">
                        <i class="glyphicon glyphicon-arrow-right"></i>
                        <?php echo $this->escapeHtml($this->translate('Install')); ?>
                    </a>
                </li>
            <?php endif; ?>

            <li<?php if ($controller === 'ModuleController' and $action === 'index'): ?> class="active"<?php endif; ?>>
                <a href="<?php echo $this->url('module'); ?>">
                    <i class="glyphicon glyphicon-arrow-right"></i>
                    <?php echo $this->escapeHtml($this->translate('List')); ?>
                </a>
            </li>
        </ul>
    </li>
<?php endif; ?>
</ul>

<?php if (!empty($this->layout()->moduleMenu)): ?>
    <?php echo $this->partial($this->layout()->moduleMenu . '.phtml'); ?>
<?php endif; ?>