home/wuectly/www/modules/mod_bgmax/elements/xnote.php000060400000004462152456134370017117 0ustar00element['class'] ? (string) $this->element['class'] : "param-title-note"; $style = $this->element['style'] ? (string) $this->element['style'] : ""; $style = $this->translateLabel ? JText::_($style) : $style; $hx = $this->element['heading'] ? (string) $this->element['heading'] : "p"; $note = $this->element['note'] ? (string) $this->element['note'] : (string) $this->element['name']; $note = $this->translateLabel ? JText::_($note) : $note; $html = array(); $html[] = ''; // on ferme le control-label pour creer un bloc sur la largeur totale if ($this->element['label'] || $this->element['title']) $html[] = 'Dont use LABEL, but TITLE and SUBTITLE'; $out = '
'; $html[] = ($note) ? ' <'.$hx.'>' . $note . '' : ''; // $html[] = '
'; // inutile, on récupère celui fermé au début return implode('', $html); } /** * Method to get the field title. * * @return string The field title. * * @since 11.1 */ protected function getTitle() { return $this->getLabel(); } }