Repository URL to install this package:
|
Version:
0.0.1-0 ▾
|
zendcddemo-apps-gotcms-project
/
zendcddemo-files
/
apps
/
gotcms_project
/
module
/
Config
/
views
/
config-menu.phtml
|
|---|
<?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 Config
* @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('settings', 'config')): ?>
<li<?php if ($controller === 'CmsController'): ?> class="open active"<?php endif; ?>>
<a class="menu-toggle" href="#">
<i class="glyphicon glyphicon-tree-conifer"></i>
<span class="menu-text"><?php echo $this->escapeHtml($this->translate('Configuration')); ?></span>
<span class="caret"></span>
</a>
<ul class="submenu">
<?php if ($this->acl('settings', 'config/general')): ?>
<li<?php if ($controller === 'CmsController' and $action === 'editGeneral'): ?> class="active"<?php endif; ?>>
<a href="<?php echo $this->url('config/general'); ?>">
<i class="glyphicon glyphicon-arrow-right"></i>
<?php echo $this->escapeHtml($this->translate('General')); ?>
</a>
</li>
<?php endif; ?>
<?php if ($this->acl('settings', 'config/system')): ?>
<li<?php if ($controller === 'CmsController' and $action === 'editSystem'): ?> class="active"<?php endif; ?>>
<a href="<?php echo $this->url('config/system'); ?>">
<i class="glyphicon glyphicon-arrow-right"></i>
<?php echo $this->escapeHtml($this->translate('System')); ?>
</a>
</li>
<?php endif; ?>
<?php if ($this->acl('settings', 'config/server')): ?>
<li<?php if ($controller === 'CmsController' and $action === 'editServer'): ?> class="active"<?php endif; ?>>
<a href="<?php echo $this->url('config/server'); ?>">
<i class="glyphicon glyphicon-arrow-right"></i>
<?php echo $this->escapeHtml($this->translate('Server')); ?>
</a>
</li>
<?php endif; ?>
<?php if ($this->acl('settings', 'config/update')): ?>
<li<?php if ($controller === 'CmsController' and $action === 'update'): ?> class="active"<?php endif; ?>>
<a href="<?php echo $this->url('config/cms-update'); ?>">
<i class="glyphicon glyphicon-arrow-right"></i>
<?php echo $this->escapeHtml($this->translate('Update')); ?>
</a>
</li>
<?php endif; ?>
</ul>
</li>
<?php endif; ?>
<?php if ($this->acl('settings', 'user')): ?>
<li<?php if ($controller === 'UserController'): ?> class="open active"<?php endif; ?>>
<a class="menu-toggle" href="#">
<i class="glyphicon glyphicon-user"></i>
<span class="menu-text"><?php echo $this->escapeHtml($this->translate('Users')); ?></span>
<span class="caret"></span>
</a>
<ul class="submenu">
<?php if ($this->acl('settings', 'user/create')): ?>
<li<?php if ($controller === 'UserController' and $action === 'create'): ?> class="active"<?php endif; ?>>
<a href="<?php echo $this->url('config/user/create'); ?>">
<i class="glyphicon glyphicon-arrow-right"></i>
<?php echo $this->escapeHtml($this->translate('Create')); ?>
</a>
</li>
<?php endif; ?>
<?php if ($this->acl('settings', 'user/list')): ?>
<li<?php if ($controller === 'UserController' and $action === 'index'): ?> class="active"<?php endif; ?>>
<a href="<?php echo $this->url('config/user'); ?>">
<i class="glyphicon glyphicon-arrow-right"></i>
<?php echo $this->escapeHtml($this->translate('List')); ?>
</a>
</li>
<?php endif; ?>
</ul>
</li>
<?php endif; ?>
<?php if ($this->acl('settings', 'role')): ?>
<li<?php if ($controller === 'RoleController'): ?> class="open active"<?php endif; ?>>
<a class="menu-toggle" href="#">
<i class="glyphicon glyphicon-tower"></i>
<span class="menu-text"><?php echo $this->escapeHtml($this->translate('Roles')); ?></span>
<span class="caret"></span>
</a>
<ul class="submenu">
<?php if ($this->acl('settings', 'role/create')): ?>
<li<?php if ($controller === 'RoleController' and $action === 'create'): ?> class="active"<?php endif; ?>>
<a href="<?php echo $this->url('config/user/role/create'); ?>">
<i class="glyphicon glyphicon-arrow-right"></i>
<?php echo $this->escapeHtml($this->translate('Create')); ?>
</a>
</li>
<?php endif; ?>
<?php if ($this->acl('settings', 'role/list')): ?>
<li<?php if ($controller === 'RoleController' and $action === 'index'): ?> class="active"<?php endif; ?>>
<a href="<?php echo $this->url('config/user/role'); ?>">
<i class="glyphicon glyphicon-arrow-right"></i>
<?php echo $this->escapeHtml($this->translate('List')); ?>
</a>
</li>
<?php endif; ?>
</ul>
</li>
<?php endif; ?>
</ul>