10 defined(
'JPATH_PLATFORM') or die;
29 protected $type =
'Note';
38 protected function getLabel()
40 if (empty($this->element[
'label']) && empty($this->element[
'description']))
45 $title = $this->element[
'label'] ? (string) $this->element[
'label'] : ($this->element[
'title'] ? (
string) $this->element[
'title'] :
'');
46 $heading = $this->element[
'heading'] ? (string) $this->element[
'heading'] :
'h4';
47 $description = (string) $this->element[
'description'];
48 $class = !empty($this->
class) ?
' class="' . $this->
class . '"' : '';
49 $close = (string) $this->element['close'];
55 $close = $close ==
'true' ?
'alert' : $close;
56 $html[] =
'<button type="button" class="close" data-dismiss="' . $close .
'">×</button>';
59 $html[] = !empty($title) ?
'<' . $heading .
'>' .
JText::_($title) .
'</' . $heading .
'>' :
'';
60 $html[] = !empty($description) ?
JText::_($description) :
'';
62 return '</div><div ' . $class .
'>' . implode(
'', $html);
72 protected function getInput()