Beispiel #1
0
 function getInput()
 {
     $class = $this->def('class');
     $html = '';
     if (!empty($this->element['clean_name'])) {
         $comment = $this->element['clean_name'];
     } else {
         $comment = $this->element['name'];
     }
     if (version_compare(JVERSION, '3.0', 'ge') && $this->HTMLtype == 'div') {
         $html .= '</div><!-- controls !-->' . PHP_EOL;
         $html .= '</div><!-- control-group !--><!-- blockquote -->' . PHP_EOL;
     } else {
         $html .= "\n" . '</li></ul><br style="clear:both" /><!-- blockquote  ' . $comment . ' -->';
     }
     //$html .= '<div style="clear: both;"></div>'.PHP_EOL;
     $name = (string) $this->element['clean_name'];
     if (empty($name)) {
         $name = (string) $this->element['name'];
     }
     if (strpos($name, 'jform[params]') !== false) {
         $name = explode('][', $name);
         $name = $name[count($name) - 2];
     }
     if (strpos($name, '{') === 0 || strpos($name, 'jform[params][{') === 0) {
         $html .= PHP_EOL . '	<div class="blockquote ' . $class . '">' . '<!-- { div blockquote !-->' . PHP_EOL;
         if (!empty($this->element['label'])) {
             //~ $html .= '		<div class="title">'.JText::_($this->element['label']).'</div>';
             $html .= '		<div class="title">' . parent::getLabel() . '</div>';
         }
     } else {
         $html .= PHP_EOL . '	</div><!-- div blockquote } !-->' . PHP_EOL;
     }
     if (version_compare(JVERSION, '3.0', 'ge') && $this->HTMLtype == 'div') {
         $html .= '<!-- blockquote --><div><div>';
     } else {
         $html .= PHP_EOL . '			<ul><li><!-- blockquote ' . $name . ' -->' . PHP_EOL;
     }
     return $html;
 }