/administrator/components/com_modules/views/select/tmpl/default.php

https://github.com/joebushi/joomla · PHP · 40 lines · 25 code · 5 blank · 10 comment · 2 complexity · f3b2aad7e89e8ab1c084f2baebfb1524 MD5 · raw file

  1. <?php
  2. /**
  3. * @version $Id$
  4. * @package Joomla.Administrator
  5. * @subpackage com_modules
  6. * @copyright Copyright (C) 2005 - 2010 Open Source Matters, Inc. All rights reserved.
  7. * @license GNU General Public License version 2 or later; see LICENSE.txt
  8. */
  9. // No direct access.
  10. defined('_JEXEC') or die;
  11. // Include the component HTML helpers.
  12. JHtml::addIncludePath(JPATH_COMPONENT.'/helpers/html');
  13. JHtml::_('behavior.tooltip');
  14. ?>
  15. <ul id="new-modules-list">
  16. <?php foreach ($this->items as &$item) : ?>
  17. <li>
  18. <?php
  19. // Prepare variables for the link.
  20. $link = 'index.php?option=com_modules&task=module.add&eid='. $item->extension_id;
  21. $name = $this->escape(JText::_($item->name));
  22. $desc = $this->escape(JText::_('Modules_No_description_available'));
  23. if (isset($item->xml))
  24. {
  25. if ($text = (string) $item->xml->description)
  26. {
  27. $desc = $this->escape($text);
  28. }
  29. }
  30. ?>
  31. <span class="editlinktip hasTip" title="<?php echo $name.' :: '.$desc; ?>">
  32. <a href="<?php echo JRoute::_($link);?>" target="_top">
  33. <?php echo $name; ?></a></span>
  34. </li>
  35. <?php endforeach; ?>