芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/plugins.5/fields/checkboxes/tmpl/checkboxes.php
* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Language\Text; $fieldValue = $field->value; if ($fieldValue === '' || $fieldValue === null) { return; } $fieldValue = (array) $fieldValue; $texts = array(); $options = $this->getOptionsFromField($field); foreach ($options as $value => $name) { if (in_array((string) $value, $fieldValue)) { $texts[] = Text::_($name); } } echo htmlentities(implode(', ', $texts));