'y']; protected $_hasButtons = true; protected function _initElements() { $dataObj = new App_SocialLink_Obj(); $image = $dataObj->getConfig('image')->toArray(); parent::_initElements(); $this->addElement('text', 'title', ['label' => 'Service Name', 'required' => true]); $this->addElement( 'text', 'url', [ 'label' => 'URL', 'required' => true, 'validators' => ['Url'], 'description' => 'Example: http://www.adaptainc.com', ] ); $this->addElement( 'extendedImage', 'image', [ 'label' => 'Icon Image', 'required' => true, 'resize' => $image['width'] . 'x' . $image['height'], 'thumbnailWidth' => $image['width'], 'thumbnailHeight' => $image['height'], ] ); $this->addElement('checkbox', 'enabled', ['label' => 'Show on user end', 'decoration' => 'simple']); return $this; } }