[ 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) 2014 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 extract($displayData); 14 15 /** 16 * Layout variables 17 * ----------------- 18 * @var string $text The label text 19 * @var string $for The id of the input this label is for 20 * @var boolean $required True if a required field 21 * @var array $classes A list of classes 22 */ 23 24 $classes = array_filter((array) $classes); 25 $id = $for . '-lbl'; 26 27 if ($required) { 28 $classes[] = 'required'; 29 } 30 31 ?> 32 <label id="<?php echo $id; ?>" for="<?php echo $for; ?>"<?php if (!empty($classes)) { 33 echo ' class="' . implode(' ', $classes) . '"'; 34 } ?>> 35 <?php echo $text; ?><?php if ($required) : 36 ?><span class="star" aria-hidden="true"> *</span><?php 37 endif; ?> 38 </label>
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 |