addElement( 'submit', 'btnSubmit', array( 'label' => 'Confirm Registration', 'attribs' => array('class' => 'btn'), ) ); return $this; } public function initRender() { parent::initRender(); if ($this->getLoginBlockId()) { $this->getDecorator('Form')->setOption('style', 'display: none'); } return $this; } protected function _getScriptOptions() { $options = parent::_getScriptOptions(); $options['loginBlockId'] = $this->getLoginBlockId(); return $options; } public function loadDefaultDecorators() { if (self::RENDER_MODE_ATTENDEE === $this->getRenderMode()) { if (false == $this->loadDefaultDecoratorsIsDisabled() && null == $this->getDecorators()) { $this->addDecorator('FormElements'); } } else { parent::loadDefaultDecorators(); } return $this; } public function setLoginBlockId($loginBlockId) { $this->_loginBlockId = $loginBlockId; return $this; } public function getLoginBlockId() { return $this->_loginBlockId; } }