[ Index ] |
PHP Cross Reference of Joomla 4.2.2 documentation |
[Summary view] [Print] [Text view]
1 <?php 2 3 /** 4 * @package Joomla.Site 5 * @subpackage Layout 6 * 7 * @copyright (C) 2016 Open Source Matters, Inc. <https://www.joomla.org> 8 * @license GNU General Public License version 2 or later; see LICENSE.txt 9 */ 10 11 defined('_JEXEC') or die; 12 13 use Joomla\CMS\Factory; 14 use Joomla\CMS\Language\Text; 15 16 extract($displayData); 17 18 /** 19 * Layout variables 20 * ----------------- 21 * @var string $autocomplete Autocomplete attribute for the field. 22 * @var boolean $autofocus Is autofocus enabled? 23 * @var string $class Classes for the input. 24 * @var string $description Description of the field. 25 * @var boolean $disabled Is this field disabled? 26 * @var string $group Group the field belongs to. <fields> section in form XML. 27 * @var boolean $hidden Is this field hidden in the form? 28 * @var string $hint Placeholder for the field. 29 * @var string $id DOM id of the field. 30 * @var string $label Label of the field. 31 * @var string $labelclass Classes to apply to the label. 32 * @var boolean $multiple Does this field support multiple values? 33 * @var string $name Name of the input field. 34 * @var string $onchange Onchange attribute for the field. 35 * @var string $onclick Onclick attribute for the field. 36 * @var string $pattern Pattern (Reg Ex) of value of the form field. 37 * @var boolean $readonly Is this field read only? 38 * @var boolean $repeat Allows extensions to duplicate elements. 39 * @var boolean $required Is this field required? 40 * @var integer $size Size attribute of the input. 41 * @var boolean $spellchec Spellcheck state for the form field. 42 * @var string $validate Validation rules to apply. 43 * @var string $value Value attribute of the field. 44 * @var array $checkedOptions Options that will be set as checked. 45 * @var boolean $hasValue Has this field a value assigned? 46 * @var array $options Options available for this field. 47 * @var array $checked Is this field checked? 48 * @var array $position Is this field checked? 49 * @var array $control Is this field checked? 50 * @var array $colors The specified colors 51 * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output 52 * @var array $dataAttributes Miscellaneous data attribute for eg, data-*. 53 */ 54 55 $class = ' class="form-select ' . trim($class) . '"'; 56 $disabled = $disabled ? ' disabled' : ''; 57 $readonly = $readonly ? ' readonly' : ''; 58 59 Factory::getDocument()->getWebAssetManager() 60 ->useStyle('webcomponent.field-simple-color') 61 ->useScript('webcomponent.field-simple-color'); 62 63 ?> 64 <joomla-field-simple-color text-select="<?php echo Text::_('JFIELD_COLOR_SELECT'); ?>" text-color="<?php echo Text::_('JFIELD_COLOR_VALUE'); ?>" text-close="<?php echo Text::_('JLIB_HTML_BEHAVIOR_CLOSE'); ?>" text-transparent="<?php echo Text::_('JFIELD_COLOR_TRANSPARENT'); ?>"> 65 <select name="<?php echo $name; ?>" id="<?php echo $id; ?>"<?php 66 echo $disabled; ?><?php echo $readonly; ?><?php echo $dataAttribute; ?><?php echo $required; ?><?php echo $class; ?><?php echo $position; ?><?php 67 echo $onchange; ?><?php echo $autofocus; ?> style="visibility:hidden;width:22px;height:1px"> 68 <?php foreach ($colors as $i => $c) : ?> 69 <option<?php echo ($c === $color ? ' selected="selected"' : ''); ?> value="<?php echo $c; ?>"></option> 70 <?php endforeach; ?> 71 </select> 72 </joomla-field-simple-color>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Wed Sep 7 05:41:13 2022 | Chilli.vc Blog - For Webmaster,Blog-Writer,System Admin and Domainer |