CoreFiles by mySites.guru
imagelist.php38 lines, 675 bytes, from Joomla_3.7.0-beta4-Beta-Full_Package.zip
Raw History Compare with 3.7.0-beta3
md5
f7878e56ec721d34fed81f8031822c26
sha1
c6ea63570c1389ed9bb161259909a241d91d851d
sha256
95ce57acdf29fee2935b2e1d8ef15113a64547c189edc801ff7cf555fe043f6c
<?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', '/')
				. '/' . $path . '"' . $class . '/>';
}

echo $buffer;

The same content is in 6 releases, Joomla 3.7.0-beta1 to 3.7.0-rc2. See them all, or every version of this file.