getElement(); if ($group->getElement($this->getOption('condition')) !== null) { if ($this->getPlacement() === static::APPEND) { return $content . $this->applyAttributes($group->getElement($this->getOption('double')))->render(); } else { // $this->getPlacement() === static::PREPEND return $this->applyAttributes($group->getElement($this->getOption('double')))->render() . $content; } } return $content; } /** * Apply all element attributes * * @param Zend_Form_Element $element The element to apply the attributes to * * @return Zend_Form_Element */ protected function applyAttributes(Zend_Form_Element $element) { $attributes = $this->getOption('attributes'); if ($attributes !== null) { foreach ($attributes as $name => $value) { $element->setAttrib($name, $value); } } return $element; } }