- md5
- a0ea402737b0f905dddb196a04298975
- sha1
- fddda358cd43747c520124b689f9e92daaf21556
- sha256
- fb651f412608c8d403b2f01c66ca0646e44ed5f84239e328bd97fd034b8d0b58
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
<?php
/**
* @package Joomla.Administrator
* @subpackage com_media
*
* @copyright Copyright (C) 2005 - 2016 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
*/
defined('_JEXEC') or die;
$params = JComponentHelper::getParams('com_media');
$path = 'file_path';
JHtml::_('jquery.framework');
JFactory::getDocument()->addScriptDeclaration(
"
jQuery(document).ready(function($){
window.parent.document.updateUploader();
$('.img-preview, .preview').each(function(index, value) {
$(this).on('click', function(e) {
window.parent.jQuery('#imagePreviewSrc').attr('src', $(this).attr('href'));
window.parent.jQuery('#imagePreview').modal('show');
return false;
});
});
$('.video-preview').each(function(index, value) {
$(this).unbind('click');
$(this).on('click', function(e) {
e.preventDefault();
window.parent.jQuery('#videoPreview').modal('show');
var elementInitialised = window.parent.jQuery('#mejsPlayer').attr('src');
if (!elementInitialised)
{
window.parent.jQuery('#mejsPlayer').attr('src', $(this).attr('href'));
window.parent.jQuery('#mejsPlayer').mediaelementplayer();
}
window.parent.jQuery('#mejsPlayer')[0].player.media.setSrc($(this).attr('href'));
return false;
});
});
});
"
);
?>
<form target="_parent" action="index.php?option=com_media&tmpl=index&folder=<?php echo $this->state->folder; ?>" method="post" id="mediamanager-form" name="mediamanager-form">
<div class="muted">
<p>
<span class="icon-folder"></span>
<?php if ($this->state->folder != '') : ?>
<?php echo JText::_('JGLOBAL_ROOT') . ': ' . $params->get($path, 'images') . '/' . $this->state->folder; ?>
<?php else : ?>
<?php echo JText::_('JGLOBAL_ROOT') . ': ' . $params->get($path, 'images'); ?>
<?php endif; ?>
</p>
</div>
<ul class="manager thumbnails">
<?php
echo $this->loadTemplate('up');
?>
<?php for ($i = 0, $n = count($this->folders); $i < $n; $i++) :
$this->setFolder($i);
echo $this->loadTemplate('folder');
endfor; ?>
<?php for ($i = 0, $n = count($this->documents); $i < $n; $i++) :
$this->setDoc($i);
echo $this->loadTemplate('doc');
endfor; ?>
<?php for ($i = 0, $n = count($this->videos); $i < $n; $i++) :
$this->setVideo($i);
echo $this->loadTemplate('video');
endfor; ?>
<?php for ($i = 0, $n = count($this->images); $i < $n; $i++) :
$this->setImage($i);
echo $this->loadTemplate('img');
endfor; ?>
<input type="hidden" name="task" value="" />
<input type="hidden" name="username" value="" />
<input type="hidden" name="password" value="" />
<?php echo JHtml::_('form.token'); ?>
</ul>
</form>
The same content is in 28 releases, Joomla 3.5.0-beta2 to 3.6.5. See them all, or every version of this file.