/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

  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. defined('_JEXEC') or die;
  10. ?>
  11. <ul class="nav nav-list">
  12. <?php
  13. if ($this->userIsSuperAdmin):
  14. ?>
  15. <li class="nav-header"><?php echo JText::_('COM_CONFIG_SYSTEM'); ?></li>
  16. <li><a href="index.php?option=com_config"><?php echo JText::_('COM_CONFIG_GLOBAL_CONFIGURATION'); ?></a></li>
  17. <li class="divider"></li>
  18. <?php
  19. endif;
  20. ?>
  21. <li class="nav-header"><?php echo JText::_('COM_CONFIG_COMPONENT_FIELDSET_LABEL'); ?></li>
  22. <?php
  23. foreach($this->components as $component):
  24. $active = '';
  25. if ($this->currentComponent === $component):
  26. $active = ' class="active"';
  27. endif;
  28. ?>
  29. <li<?php echo $active; ?>><a href="index.php?option=com_config&view=component&component=<?php echo $component; ?>"><?php echo JText::_($component); ?></a></li>
  30. <?php
  31. endforeach;
  32. ?>
  33. </ul>