* @link https://www.tassos.gr * @copyright Copyright © 2024 Tassos All Rights Reserved * @license GNU GPLv3 or later */ defined('_JEXEC') or die('Restricted access'); use Joomla\CMS\Factory; use Joomla\CMS\Language\Text; use Joomla\CMS\HTML\HTMLHelper; extract($displayData); if (!isset($choices) || !is_array($choices) || !count($choices)) { return; } $mode = isset($mode) ? $mode : 'svg'; $gap = isset($gap) && !empty($gap) ? $gap : 'inherit'; $class = isset($class) ? ' ' . $class : ''; $columns = isset($columns) ? $columns : null; $id = isset($id) ? $id : null; $class .= ' ' . $id; if ($columns) { Factory::getDocument()->addStyleDeclaration(' .tf-choiceselector-control.' . $id . ' { --columns: ' . $columns . '; --gap: ' . $gap . '; }' ); } HTMLHelper::stylesheet('plg_system_nrframework/controls/choiceselector.css', ['relative' => true, 'version' => 'auto']); ?>
$_value) { $_value = !is_string($_value) ? (array) $_value : $_value; $id = $name . '_' . (empty($item_id) ? $key : $item_id); $image = isset($_value['image']) ? $_value['image'] : false; $icon = isset($_value['icon']) ? $_value['icon'] : false; $label = isset($_value['label']) ? $_value['label'] : $_value; $pro = isset($_value['pro']) ? (bool) $_value['pro'] : false; ?>
> ' . Text::_('NR_PRO') . '' : ''; ?> />