PageRenderTime 24ms CodeModel.GetById 22ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1
 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 */
 9defined('_JEXEC') or die;
10
11$user = JFactory::getUser();
12$params = new JRegistry;
13$dispatcher	= JEventDispatcher::getInstance();
14$dispatcher->trigger('onContentBeforeDisplay', array('com_media.file', &$this->_tmp_doc, &$params));
15?>
16		<tr>
17			<td>
18				<a  title="<?php echo $this->_tmp_doc->name; ?>">
19					<?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>
20			</td>
21			<td class="description"  title="<?php echo $this->_tmp_doc->name; ?>">
22				<?php echo $this->_tmp_doc->title; ?>
23			</td>
24			<td>&#160;
25
26			</td>
27			<td class="filesize">
28				<?php echo JHtml::_('number.bytes', $this->_tmp_doc->size); ?>
29			</td>
30		<?php if ($user->authorise('core.delete', 'com_media')):?>
31			<td>
32				<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>
33				<input type="checkbox" name="rm[]" value="<?php echo $this->_tmp_doc->name; ?>" />
34			</td>
35		<?php endif;?>
36		</tr>
37<?php
38$dispatcher->trigger('onContentAfterDisplay', array('com_media.file', &$this->_tmp_doc, &$params));
39?>