This commit is contained in:
AlexBa16
2026-06-08 15:29:52 +02:00
commit 27903eed4a
9931 changed files with 1535659 additions and 0 deletions
@@ -0,0 +1,32 @@
<?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;
use Joomla\CMS\Language\Text;
/** @var \Joomla\Plugin\Fields\Radio\Extension\Radio $this */
$value = $field->value;
if ($value == '') {
return;
}
$value = (array) $value;
$texts = [];
$options = $this->getOptionsFromField($field);
foreach ($options as $optionValue => $optionText) {
if (in_array((string) $optionValue, $value)) {
$texts[] = Text::_($optionText);
}
}
echo htmlentities(implode(', ', $texts));