public function insertBrick(HTML_QuickForm2_Container $form) { $lang = $this->getConfig('lang'); if ($lang && !in_array($this->getLanguage(), $lang)) { return; } switch ($this->getConfig('position')) { case 'header': $form->addProlog($this->getConfig('html')); break; case 'footer': $form->addEpilog($this->getConfig('html')); break; default: $attrs = $data = array(); $data['content'] = $this->getConfig('html'); if ($this->getConfig('no_label')) { $attrs['class'] = 'no-label'; } else { $data['label'] = $this->getConfig('label'); } $form->addStatic('html' . ++self::$counter, $attrs, $data); } }