[ 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\HTML\HTMLHelper; 14 use Joomla\CMS\Language\Text; 15 use Joomla\CMS\Utility\Utility; 16 17 extract($displayData); 18 19 /** 20 * Layout variables 21 * ----------------- 22 * @var string $autocomplete Autocomplete attribute for the field. 23 * @var boolean $autofocus Is autofocus enabled? 24 * @var string $class Classes for the input. 25 * @var string $description Description of the field. 26 * @var boolean $disabled Is this field disabled? 27 * @var string $group Group the field belongs to. <fields> section in form XML. 28 * @var boolean $hidden Is this field hidden in the form? 29 * @var string $hint Placeholder for the field. 30 * @var string $id DOM id of the field. 31 * @var string $label Label of the field. 32 * @var string $labelclass Classes to apply to the label. 33 * @var boolean $multiple Does this field support multiple values? 34 * @var string $name Name of the input field. 35 * @var string $onchange Onchange attribute for the field. 36 * @var string $onclick Onclick attribute for the field. 37 * @var string $pattern Pattern (Reg Ex) of value of the form field. 38 * @var boolean $readonly Is this field read only? 39 * @var boolean $repeat Allows extensions to duplicate elements. 40 * @var boolean $required Is this field required? 41 * @var integer $size Size attribute of the input. 42 * @var boolean $spellcheck Spellcheck state for the form field. 43 * @var string $validate Validation rules to apply. 44 * @var string $value Value attribute of the field. 45 * @var array $checkedOptions Options that will be set as checked. 46 * @var boolean $hasValue Has this field a value assigned? 47 * @var array $options Options available for this field. 48 * @var array $inputType Options available for this field. 49 * @var string $accept File types that are accepted. 50 * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output 51 * @var array $dataAttributes Miscellaneous data attribute for eg, data-* 52 */ 53 54 $maxSize = HTMLHelper::_('number.bytes', Utility::getMaxUploadSize()); 55 56 ?> 57 <input type="file" 58 name="<?php echo $name; ?>" 59 id="<?php echo $id; ?>" 60 <?php echo !empty($size) ? ' size="' . $size . '"' : ''; ?> 61 <?php echo !empty($accept) ? ' accept="' . $accept . '"' : ''; ?> 62 <?php echo !empty($class) ? ' class="form-control ' . $class . '"' : ' class="form-control"'; ?> 63 <?php echo !empty($multiple) ? ' multiple' : ''; ?> 64 <?php echo $disabled ? ' disabled' : ''; ?> 65 <?php echo $autofocus ? ' autofocus' : ''; ?> 66 <?php echo $dataAttribute; ?> 67 <?php echo !empty($onchange) ? ' onchange="' . $onchange . '"' : ''; ?> 68 <?php echo $required ? ' required' : ''; ?>><br> 69 <?php echo Text::sprintf('JGLOBAL_MAXIMUM_UPLOAD_SIZE_LIMIT', $maxSize); ?>
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 |