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) . '' . $heading . '>' : ''; $html[] = !empty($description) ? JText::_($description) : ''; return '