10 defined(
'JPATH_PLATFORM') or die;
28 protected $type =
'Spacer';
38 protected function getInput()
52 protected function getLabel()
55 $class = !empty($this->
class) ?
' class="' . $this->
class . '"' : '';
56 $html[] = '<span class="spacer">';
57 $html[] = '<span class="before"></span>';
58 $html[] = '<span' . $class . '>';
60 if ((string) $this->element['hr'] == 'true')
62 $html[] =
'<hr' . $class .
' />';
69 $text = $this->element[
'label'] ? (string) $this->element[
'label'] : (
string) $this->element[
'name'];
70 $text = $this->translateLabel ?
JText::_($text) : $text;
73 $class = !empty($this->description) ?
'hasTooltip' :
'';
74 $class = $this->required ==
true ? $class .
' required' : $class;
77 $label .=
'<label id="' . $this->
id .
'-lbl" class="' . $class .
'"';
80 if (!empty($this->description))
82 JHtml::_(
'bootstrap.tooltip');
83 $label .=
' title="' . JHtml::tooltipText(trim($text,
':'), JText::_($this->description), 0) .
'"';
87 $label .=
'>' . $text .
'</label>';
92 $html[] =
'<span class="after"></span>';
95 return implode(
'', $html);
105 protected function getTitle()
107 return $this->getLabel();