/administrator/components/com_config/views/component/tmpl/default_navigation.php
PHP | 34 lines | 26 code | 1 blank | 7 comment | 2 complexity | f5e0ca7508b41e206b07fef9cf1b43d9 MD5 | raw file
Possible License(s): LGPL-2.1
1<?php 2/** 3 * @package Joomla.Administrator 4 * @subpackage com_config 5 * 6 * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved. 7 * @license GNU General Public License version 2 or later; see LICENSE.txt 8 */ 9 10defined('_JEXEC') or die; 11?> 12<ul class="nav nav-list"> 13 <?php 14 if ($this->userIsSuperAdmin): 15 ?> 16 <li class="nav-header"><?php echo JText::_('COM_CONFIG_SYSTEM'); ?></li> 17 <li><a href="index.php?option=com_config"><?php echo JText::_('COM_CONFIG_GLOBAL_CONFIGURATION'); ?></a></li> 18 <li class="divider"></li> 19 <?php 20 endif; 21 ?> 22 <li class="nav-header"><?php echo JText::_('COM_CONFIG_COMPONENT_FIELDSET_LABEL'); ?></li> 23 <?php 24 foreach($this->components as $component): 25 $active = ''; 26 if ($this->currentComponent === $component): 27 $active = ' class="active"'; 28 endif; 29 ?> 30 <li<?php echo $active; ?>><a href="index.php?option=com_config&view=component&component=<?php echo $component; ?>"><?php echo JText::_($component); ?></a></li> 31 <?php 32 endforeach; 33 ?> 34</ul>