CoreFiles by mySites.guru
checkboxes.php36 lines, 737 bytes, from Joomla_3.7.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 3.6.0-alpha
md5
3644074e75b5f30f1f8341c8dee50927
sha1
cc69d5a8f9d86333a58dde6c7cf4839f6b234e63
sha256
295f670b5d1b1e6604c5ec291dc29fa403dfb8116c423bb31a3425cbd04a3968
<?php
/**
 * @package     Joomla.Site
 * @subpackage  com_fields
 *
 * @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;

if (!key_exists('field', $displayData))
{
	return;
}

$field      = $displayData['field'];
$fieldValue = $field->value;

if ($fieldValue === '' || $fieldValue === null)
{
	return;
}

$fieldValue = (array) $fieldValue;
$texts      = array();
$options    = JFormAbstractlist::getOptionsFromField($field);

foreach ($options as $value => $name)
{
	if (in_array((string) $value, $fieldValue))
	{
		$texts[] = JText::_($name);
	}
}

echo htmlentities(implode(', ', $texts));

No other release has this exact content. See every version of this file.