CoreFiles by mySites.guru
radio.php31 lines, 596 bytes, from Joomla_3.10.9-Stable-Full_Package.zip
Raw History Compare with 3.10.8
md5
fef235c78052d9f7478be2d8aa705672
sha1
3940563c65ce03ec7e52585543cd37bf0acc9e0a
sha256
06a493af379d99b77432ace211e8b73a7b3f75d466c280af4204411adf96c96b
<?php
/**
 * @package     Joomla.Plugin
 * @subpackage  Fields.Radio
 *
 * @copyright   (C) 2017 Open Source Matters, Inc. <https://www.joomla.org>
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */
defined('_JEXEC') or die;

$value = $field->value;

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

$value   = (array) $value;
$texts   = array();
$options = $this->getOptionsFromField($field);

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


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

The same content is in 25 releases, Joomla 3.10.0-alpha2 to 3.10.12. See them all, or every version of this file.