[ 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) 2015 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\Router\Route; 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 string $link The link for the content history page 49 * @var string $label The label text 50 * @var string $dataAttribute Miscellaneous data attributes preprocessed for HTML output 51 * @var array $dataAttributes Miscellaneous data attributes for eg, data-*. 52 */ 53 54 echo HTMLHelper::_( 55 'bootstrap.renderModal', 56 'versionsModal', 57 array( 58 'url' => Route::_($link), 59 'title' => $label, 60 'height' => '100%', 61 'width' => '100%', 62 'modalWidth' => '80', 63 'bodyHeight' => '60', 64 'footer' => '<button type="button" class="btn btn-secondary" data-bs-dismiss="modal" aria-hidden="true">' 65 . Text::_('JLIB_HTML_BEHAVIOR_CLOSE') . '</button>' 66 ) 67 ); 68 69 ?> 70 <button 71 type="button" 72 class="btn btn-secondary" 73 data-bs-toggle="modal" 74 data-bs-target="#versionsModal" 75 <?php echo $dataAttribute; ?>> 76 <span class="icon-code-branch" aria-hidden="true"></span> 77 <?php echo $label; ?> 78 </button>
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 |