예제 #1
0
 /**
  * Define buttons widgets
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     $list['save'] = new \XLite\View\Button\Submit(array(\XLite\View\Button\AButton::PARAM_LABEL => 'Register', \XLite\View\Button\AButton::PARAM_BTN_TYPE => 'regular-main-button', \XLite\View\Button\AButton::PARAM_STYLE => 'action always-enabled'));
     $list['shipping_methods'] = new \XLite\View\Button\SimpleLink(array(\XLite\View\Button\AButton::PARAM_LABEL => static::t('Back to shipping methods'), \XLite\View\Button\AButton::PARAM_STYLE => 'action shipping-list-back-button', \XLite\View\Button\Link::PARAM_LOCATION => $this->buildURL('shipping_methods')));
     return $list;
 }
예제 #2
0
 /**
  * Register JS files
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     $list[] = 'sticky_panel/currency.js';
     return $list;
 }