element['label']) && empty($this->element['description'])) { return ''; } $title = $this->element['label'] ? (string) $this->element['label'] : ($this->element['title'] ? (string) $this->element['title'] : ''); $heading = $this->element['heading'] ? (string) $this->element['heading'] : 'h4'; $description = (string) $this->element['description']; $class = $this->element['class'] ? ' class="' . trim((string) $this->element['class']) . '"' : ''; $close = (string) $this->element['close']; $html = array(); if ($close) { $close = $close == 'true' ? 'alert' : $close; $html[] = ''; } $html[] = !empty($title) ? '<' . $heading . '>' . JText::_($title) . '' : ''; $html[] = !empty($description) ? JText::_($description) : ''; return '
' . implode('', $html); } /** * Method to get the field input markup. * * @return string The field input markup. * * @since 11.1 */ protected function getInput() { return ''; } }