/administrator/components/com_media/views/medialist/tmpl/details_doc.php

https://bitbucket.org/eternaware/joomus · PHP · 39 lines · 30 code · 2 blank · 7 comment · 1 complexity · 1b07f5893bd8eb8b12646b0114a97f98 MD5 · raw file

  1. <?php
  2. /**
  3. * @package Joomla.Administrator
  4. * @subpackage com_media
  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. $user = JFactory::getUser();
  11. $params = new JRegistry;
  12. $dispatcher = JEventDispatcher::getInstance();
  13. $dispatcher->trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_doc, &$params));
  14. ?>
  15. <tr>
  16. <td>
  17. <a title="<?php echo $this->_tmp_doc->name; ?>">
  18. <?php echo JHtml::_('image', $this->_tmp_doc->icon_16, $this->_tmp_doc->title, null, true, true) ? JHtml::_('image', $this->_tmp_doc->icon_16, $this->_tmp_doc->title, array('width' => 16, 'height' => 16), true) : JHtml::_('image', 'media/con_info.png', $this->_tmp_doc->title, array('width' => 16, 'height' => 16), true);?> </a>
  19. </td>
  20. <td class="description" title="<?php echo $this->_tmp_doc->name; ?>">
  21. <?php echo $this->_tmp_doc->title; ?>
  22. </td>
  23. <td>&#160;
  24. </td>
  25. <td class="filesize">
  26. <?php echo JHtml::_('number.bytes', $this->_tmp_doc->size); ?>
  27. </td>
  28. <?php if ($user->authorise('core.delete', 'com_media')):?>
  29. <td>
  30. <a class="delete-item" target="_top" href="index.php?option=com_media&amp;task=file.delete&amp;tmpl=index&amp;<?php echo JSession::getFormToken(); ?>=1&amp;folder=<?php echo $this->state->folder; ?>&amp;rm[]=<?php echo $this->_tmp_doc->name; ?>" rel="<?php echo $this->_tmp_doc->name; ?>"><i class="icon-remove" rel="tooltip" title="<?php echo JText::_('JACTION_DELETE');?>"></i></a>
  31. <input type="checkbox" name="rm[]" value="<?php echo $this->_tmp_doc->name; ?>" />
  32. </td>
  33. <?php endif;?>
  34. </tr>
  35. <?php
  36. $dispatcher->trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_doc, &$params));
  37. ?>