element['class'] ? (string) $this->element['class'] : ''; $style = $this->element['style'] ? $this->element['style'] : ''; if ($style == 'title') { $doc = JFactory::getDocument(); $styles = '.ckinfo.cktitle { background:#666; color: #eee; text-transform: uppercase; font-weight: normal; line-height: 24px; padding: 8px 5px 8px 35px; margin: 3px 0; text-align: left; text-decoration: none; border-radius: 3px; } '; $doc->addStyleDeclaration($styles); } if ((string) $this->element['hr'] == 'true') { $html[] = '
'; } else { $label = ''; // Get the label text from the XML element, defaulting to the element name. $text = $this->element['label'] ? (string) $this->element['label'] : (string) $this->element['name']; $text = $this->translateLabel ? JText::_($text) : $text; // set the icon $icon = $this->element['icon'] ? $this->element['icon'] : 'info'; $html[] = '
' . ($style == 'title' ? '' : '') . $text . '
'; } return implode('', $html); } }