CoreFiles by mySites.guru
media.php37 lines, 613 bytes, from Joomla_3.7.2-Stable-Full_Package.zip
Raw History Compare with 3.7.1
md5
143d27f7b0ed2e00b622a6a6ec8da024
sha1
d047ff777cee3b1b46e0be90550b0dd3ecd0eeb0
sha256
953eb061c25060bbf856de5c192f6f5ed1a7f91ae7735d338b30f53a04858635
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Media
 *
 * @copyright   Copyright (C) 2005 - 2017 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;

$value = $field->value;
$class = $fieldParams->get('image_class');

if ($class)
{
	$class = ' class="' . $class . '"';
}

if ($value == '')
{
	return;
}

$value  = (array) $value;
$buffer = '';

foreach ($value as $path)
{
	if (!$path)
	{
		continue;
	}

	$buffer .= '<img src="' . htmlentities($path) . '"' . $class . '/>';
}

echo $buffer;

The same content is in 7 releases, Joomla 3.7.0-rc3 to 3.7.2. See them all, or every version of this file.