/administrator/components/com_config/views/component/tmpl/default_navigation.php
https://bitbucket.org/eternaware/joomus · PHP · 34 lines · 26 code · 1 blank · 7 comment · 2 complexity · f5e0ca7508b41e206b07fef9cf1b43d9 MD5 · raw file
- <?php
- /**
- * @package Joomla.Administrator
- * @subpackage com_config
- *
- * @copyright Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
- * @license GNU General Public License version 2 or later; see LICENSE.txt
- */
- defined('_JEXEC') or die;
- ?>
- <ul class="nav nav-list">
- <?php
- if ($this->userIsSuperAdmin):
- ?>
- <li class="nav-header"><?php echo JText::_('COM_CONFIG_SYSTEM'); ?></li>
- <li><a href="index.php?option=com_config"><?php echo JText::_('COM_CONFIG_GLOBAL_CONFIGURATION'); ?></a></li>
- <li class="divider"></li>
- <?php
- endif;
- ?>
- <li class="nav-header"><?php echo JText::_('COM_CONFIG_COMPONENT_FIELDSET_LABEL'); ?></li>
- <?php
- foreach($this->components as $component):
- $active = '';
- if ($this->currentComponent === $component):
- $active = ' class="active"';
- endif;
- ?>
- <li<?php echo $active; ?>><a href="index.php?option=com_config&view=component&component=<?php echo $component; ?>"><?php echo JText::_($component); ?></a></li>
- <?php
- endforeach;
- ?>
- </ul>