CoreFiles by mySites.guru
imagelist.php38 lines, 689 bytes, from Joomla_3.7.2-Stable-Full_Package.zip
Raw History Compare with 3.7.1
md5
1bd701cca5372bbe352dd5152d6f8625
sha1
2d3c6c766e12beb00d86f658b63fba1c8befa06e
sha256
2ac13236879ae39e98070271f553cb7d1ba7f4b2e43bfb8ad93831ee164c81c8
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Imagelist
 *
 * @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 || $path == '-1')
	{
		continue;
	}

	$buffer .= '<img src="images/' . $fieldParams->get('directory', '/')
				. '/' . 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.