* @return string
*/
public function render()
{
$returnValue = (string) '';
if (isset($this->attributes['class'])) {
$classes = explode(' ', $this->attributes['class']);
if (! isset($this->attributes['no-format'])) {
if (! in_array('form-elt-info', $classes)) {
$classes[] = 'form-elt-info';
}
}
if (! in_array('form-elt-container', $classes)) {
$classes[] = 'form-elt-container';
}
$this->attributes['class'] = implode(' ', $classes);
} else {
if (isset($this->attributes['no-format'])) {
$this->attributes['class'] = 'form-elt-container';
} else {
$this->attributes['class'] = 'form-elt-info form-elt-container';
}
}
unset($this->attributes['no-format']);
$returnValue .= "";
if (! empty($this->description)) {
$returnValue .= _dh($this->getDescription());
}
$returnValue .= "";
$returnValue .= "renderAttributes();
$returnValue .= " >";
$returnValue .= isset($this->attributes['htmlentities']) && ! $this->attributes['htmlentities'] ? $this->value : _dh($this->value);
$returnValue .= "";
return (string) $returnValue;
}
}