setTemplate('am/revslider/widget/form/url.phtml'); } public function getElement(){ return $this->_element; } public function setElement(Varien_Data_Form_Element_Abstract $element){ return $this->_element = $element; } public function render(Varien_Data_Form_Element_Abstract $element){ $this->setElement($element); return $this->toHtml(); } public function getBtn(){ return $this->getChildHtml('getBtn'); } protected function _prepareLayout(){ $getBtn = $this->getLayout()->createBlock('adminhtml/widget_button')->setData(array( 'label' => Mage::helper('revslider')->__('Get'), 'onclick' => 'return revLayer.updateContainer()', 'class' => 'add' )); $this->setChild('getBtn', $getBtn); parent::_prepareLayout(); } }