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     Content
 * @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">
<?php if ($this->acl('content', 'document')): ?>
    <li class="open<?php if ($controller === 'DocumentController'): ?> active<?php endif; ?>">
        <a class="menu-toggle" href="#">
            <i class="glyphicon glyphicon-edit"></i>
            <span class="menu-text"><?php echo $this->escapeHtml($this->translate('Documents')); ?></span>
        </a>
        <ul class="submenu">
            <li>
                <?php echo $this->treeview; ?>
            </li>
        </ul>
    </li>
<?php endif; ?>

<?php if ($this->acl('content', 'media')): ?>
    <li class="<?php if ($controller === 'MediaController'): ?> active<?php endif; ?>">
        <a href="<?php echo $this->url('content/media'); ?>">
            <i class="glyphicon glyphicon-folder-open"></i>
            <span class="menu-text"><?php echo $this->escapeHtml($this->translate('File manager')); ?></span>
        </a>
    </li>
<?php endif; ?>

<?php if ($this->acl('content', 'translation')): ?>
    <li class="open<?php if ($controller === 'TranslationController'): ?> active<?php endif; ?>">
        <a class="menu-toggle" href="#">
            <i class="glyphicon glyphicon-book"></i>
            <span class="menu-text"><?php echo $this->escapeHtml($this->translate('Translations')); ?></span>
            <span class="caret"></span>
        </a>
        <ul class="submenu">
            <li<?php if ($controller === 'TranslationController' and $action === 'create'): ?> class="active"<?php endif; ?>>
                <a href="<?php echo $this->url('content/translation/create'); ?>">
                    <i class="glyphicon glyphicon-arrow-right"></i>
                    <?php echo $this->escapeHtml($this->translate('Create')); ?>
                </a>
            </li>
            <li<?php if ($controller === 'TranslationController' and $action === 'index'): ?> class="active"<?php endif; ?>>
                <a href="<?php echo $this->url('content/translation'); ?>">
                    <i class="glyphicon glyphicon-arrow-right"></i>
                    <?php echo $this->escapeHtml($this->translate('Edit')); ?>
                </a>
            </li>
        </ul>
    </li>
<?php endif; ?>
</ul>