element['class'] ? (string) $this->element['class'] : ''; $html[] = ''; $html[] = ''; $html[] = ''; if ((string) $this->element['hr'] == 'true') { $html[] = '
'; } else { $label = ''; // Get the label text from the XML element, defaulting to the element name. $text = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name']; $text = $this->translateLabel ? JText::_($text) : $text; // Build the class for the label. $class = !empty($this->description) ? 'hasTooltip' : ''; $class = $this->required == true ? $class . ' required' : $class; // Add the opening label tag and main attributes attributes. $label .= ''; $html[] = $label; } $html[] = '
'; $html[] = ''; $html[] = '
'; return implode('', $html); } /** * Method to get the field title. * * @return string The field title. * * @since 11.1 */ protected function getTitle() { return $this->getLabel(); } }