* @license GNU General Public License version 2 or later; see LICENSE.txt */ defined('_JEXEC') or die; use Joomla\CMS\Factory; use Joomla\CMS\HTML\HTMLHelper; use Joomla\CMS\Language\Text; use Joomla\CMS\Layout\LayoutHelper; Factory::getDocument()->getWebAssetManager()->usePreset('choicesjs'); // Generate a list of styles for the child creation modal $options = []; if (count($this->styles) > 0) { foreach ($this->styles as $style) { $options[] = HTMLHelper::_('select.option', $style->id, $style->title, 'value', 'text'); } } $fancySelectData = [ 'autocomplete' => 'off', 'autofocus' => false, 'class' => '', 'description' => '', 'disabled' => false, 'group' => false, 'id' => 'style_ids', 'hidden' => false, 'hint' => '', 'label' => '', 'labelclass' => '', 'onchange' => '', 'onclick' => '', 'multiple' => true, 'pattern' => '', 'readonly' => false, 'repeat' => false, 'required' => false, 'size' => 4, 'spellcheck' => false, 'validate' => '', 'value' => '0', 'options' => $options, 'dataAttributes' => [], 'dataAttribute' => '', 'name' => 'style_ids[]', ]; ?>