[ 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) 2020 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 $id DOM id of the field. 22 * @var string $label Label of the field. 23 * @var string $name Name of the input field. 24 * @var string $value Value attribute of the field. 25 */ 26 27 Text::script('ERROR'); 28 Text::script('MESSAGE'); 29 Text::script('PLG_USER_TOKEN_COPY_SUCCESS'); 30 Text::script('PLG_USER_TOKEN_COPY_FAIL'); 31 32 Factory::getApplication()->getDocument()->getWebAssetManager() 33 ->registerAndUseScript('plg_user_token.token', 'plg_user_token/token.js', [], ['defer' => true], ['core']); 34 ?> 35 <div class="input-group"> 36 <input 37 type="text" 38 class="form-control" 39 name="<?php echo $name; ?>" 40 id="<?php echo $id; ?>" 41 readonly 42 value="<?php echo htmlspecialchars($value, ENT_COMPAT, 'UTF-8'); ?>"> 43 <button 44 class="btn btn-primary" 45 type="button" 46 id="token-copy" 47 title="<?php echo Text::_('PLG_USER_TOKEN_COPY_DESC'); ?>"><?php echo Text::_('PLG_USER_TOKEN_COPY'); ?></button> 48 </div>
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 |