CoreFiles by mySites.guru
radio.php37 lines, 703 bytes, from Joomla_3.7.0-alpha1-Alpha-Full_Package.zip
Raw History Compare with 3.6.0-alpha
md5
ffa53455340d294c878a4e003cb7e90b
sha1
81f99395db9b83e9bc9d137d1557e1667b2e8aa7
sha256
b08cd3650e4cb0fd693c5a643f0e34d134b9d8ec3a1c95203c3c52671a756a9b
<?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'];
$value = $field->value;

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

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

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


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

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