| Server IP : 87.98.154.146 / Your IP : 216.73.216.101 Web Server : Apache System : Linux webm005.cluster126.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64 User : bsiadvisil ( 110003) PHP Version : 7.3.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/bsiadvisil/www/layouts/msframework/form/ |
Upload File : |
<?php
/**
* MS Framework
*
* @package MS Framework Plugin
* @version 1.2.1.573
*
* @author Michael Snoeren
* @link https://snoerendevelopment.nl/
* @license GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
*/
// Deny direct access
defined('_JEXEC') or die;
extract($displayData);
/**
* Layout variables
* ---------------------
* $text : (string) The label text
* $description : (string) An optional description to use in a tooltip
* $for : (string) The id of the input this label is for
* $required : (boolean) True if a required field
* $classes : (array) A list of classes
* $position : (string) The tooltip position. Bottom for alias
*/
$classes = array_filter((array) $classes);
$id = $for . '-lbl';
$title = '';
if (!empty($description)) {
if ($text && $text != $description) {
JHtml::_('bootstrap.popover');
$classes[] = 'hasPopover';
$title = ' title="' . htmlspecialchars(trim($text, ':')) . '"'
. ' data-content="'. htmlspecialchars($description) . '"';
if (JFactory::getLanguage()->isRtl() && !$position) {
$position = ' data-placement="left" ';
}
} else {
JHtml::_('bootstrap.tooltip');
$classes[] = 'hasTooltip';
$title = ' title="' . JHtml::tooltipText(trim($text, ':'), $description, 0) . '"';
}
}
if ($required) {
$classes[] = 'required';
}
?>
<label
id="<?php echo $id; ?>"
for="<?php echo $for; ?>"
class="<?php echo implode(' ', $classes); ?>"<?php echo $title; ?><?php echo $position; ?>>
<?php
echo $text;
if ($required) { ?>
<span class="star"> *</span>
<?php } ?>
</label>