/** * Retrives element html * @return string */ public function getElementHtml() { $category = new Magpleasure_Common_Block_System_Entity_Form_Element_Tree_Render($this->getData()); $category->addData($this->getData())->setLayout(Mage::app()->getLayout()); $html = ''; $html .= $category->toHtml(); $html .= $this->getAfterElementHtml(); return $html; }
public function getElementHtml() { $category = new Magpleasure_Common_Block_System_Entity_Form_Element_Tree_Render($this->getData()); $category->setLayout(Mage::app()->getLayout()); if (Mage::registry('current_product')) { $category->setData('name', 'product[' . $category->getName() . ']'); } $html = ''; $html .= $category->toHtml(); $html .= $this->getAfterElementHtml(); return $html; }