/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
- <?php
- /**
- * @package Joomla.Administrator
- * @subpackage com_media
- *
- * @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;
- $user = JFactory::getUser();
- $params = new JRegistry;
- $dispatcher = JEventDispatcher::getInstance();
- $dispatcher->trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_doc, &$params));
- ?>
- <tr>
- <td>
- <a title="<?php echo $this->_tmp_doc->name; ?>">
- <?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>
- </td>
- <td class="description" title="<?php echo $this->_tmp_doc->name; ?>">
- <?php echo $this->_tmp_doc->title; ?>
- </td>
- <td> 
- </td>
- <td class="filesize">
- <?php echo JHtml::_('number.bytes', $this->_tmp_doc->size); ?>
- </td>
- <?php if ($user->authorise('core.delete', 'com_media')):?>
- <td>
- <a class="delete-item" target="_top" href="index.php?option=com_media&task=file.delete&tmpl=index&<?php echo JSession::getFormToken(); ?>=1&folder=<?php echo $this->state->folder; ?>&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>
- <input type="checkbox" name="rm[]" value="<?php echo $this->_tmp_doc->name; ?>" />
- </td>
- <?php endif;?>
- </tr>
- <?php
- $dispatcher->trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_doc, &$params));
- ?>