コード例 #1
0
ファイル: Main.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Enable', 'style' => 'more-action', 'icon-style' => 'fa fa-power-off state-on'), 'XLite\\View\\Button\\EnableSelected');
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Disable', 'style' => 'more-action', 'icon-style' => 'fa fa-power-off state-off'), 'XLite\\View\\Button\\DisableSelected');
     return $list;
 }
コード例 #2
0
ファイル: PaymentMethods.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Define buttons widgets
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     $list['import'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_STYLE => 'always-enabled', \XLite\View\Button\AButton::PARAM_LABEL => 'Re-import payment methods', \XLite\View\Button\AButton::PARAM_DISABLED => false), 'XLite\\Module\\CDev\\XPaymentsConnector\\View\\Button\\PaymentMethods\\Import');
     $list['add_new'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_STYLE => 'action link always-enabled', \XLite\View\Button\AButton::PARAM_LABEL => 'Add new payment method', \XLite\View\Button\AButton::PARAM_DISABLED => false, \XLite\View\Button\Link::PARAM_BLANK => true), 'XLite\\Module\\CDev\\XPaymentsConnector\\View\\Button\\PaymentMethods\\AddNew');
     return $list;
 }
コード例 #3
0
ファイル: Review.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Approve', 'style' => 'more-action', 'icon-style' => 'fa fa-check state-on'), 'XLite\\Module\\XC\\Reviews\\View\\Button\\Admin\\ApproveSelectedReviews');
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Unapprove', 'style' => 'more-action', 'icon-style' => 'fa fa-check state-off'), 'XLite\\Module\\XC\\Reviews\\View\\Button\\Admin\\UnapproveSelectedReviews');
     $list[] = $this->getWidget(array('disabled' => true, 'label' => 'Delete', 'style' => 'more-action', 'icon-style' => 'fa fa-trash-o'), 'XLite\\Module\\XC\\Reviews\\View\\Button\\Admin\\DeleteSelectedReviews');
     return $list;
 }
コード例 #4
0
ファイル: Admin.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $list[] = $this->getWidget(array('disabled' => false, 'label' => 'Find language in marketplace', 'style' => 'action link always-enabled', 'location' => $this->buildURL('addons_list_marketplace', '', array('tag' => 'Translation'))), 'XLite\\View\\Button\\Link');
     $list[] = $this->getWidget(array('disabled' => false, 'label' => 'Import language from CSV file', 'style' => 'action link always-enabled', 'object' => 'language', 'fileObject' => 'file'), '\\XLite\\View\\Button\\FileSelector');
     $list[] = $this->getWidget(array('disabled' => false, 'label' => 'Add language', 'style' => 'action link always-enabled'), 'XLite\\View\\LanguagesModify\\Button\\AddNewLanguage');
     return $list;
 }
コード例 #5
0
ファイル: InstallModules.php プロジェクト: kewaunited/xcart
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $list[] = $this->getWidget(array('disabled' => false, 'label' => 'Empty', 'style' => 'action link'), 'XLite\\View\\Button\\Addon\\InstallModulesSelected');
     return $list;
 }
コード例 #6
0
ファイル: ShippingMethods.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     $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;
 }
コード例 #7
0
ファイル: ManageModules.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     $list[] = $this->getWidget(array(), 'XLite\\View\\Button\\Addon\\ManageModulesSelected');
     return $list;
 }
コード例 #8
0
ファイル: Options.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Define buttons widgets
  *
  * @return array
  */
 protected function defineButtons()
 {
     $list = parent::defineButtons();
     $list['addons-list'] = $this->getWidget(array(\XLite\View\Button\AButton::PARAM_STYLE => 'action addons-list-back-button', \XLite\View\Button\BackToModulesLink::PARAM_MODULE_ID => $this->getModuleId()), '\\XLite\\View\\Button\\BackToModulesLink');
     return $list;
 }
コード例 #9
0
ファイル: ProductVariant.php プロジェクト: kirkbauer2/kirkxc
 /**
  * Define additional buttons
  *
  * @return array
  */
 protected function defineAdditionalButtons()
 {
     $list = parent::defineAdditionalButtons();
     $list[] = $this->getWidget(array('disabled' => true, 'style' => 'more-action', 'icon-style' => 'fa fa-trash-o'), 'XLite\\Module\\XC\\ProductVariants\\View\\Button\\DeleteSelectedVariants');
     return $list;
 }
コード例 #10
0
 /**
  * Defines the style for the save button
  *
  * @return string
  */
 protected function getSaveWidgetStyle()
 {
     return parent::getSaveWidgetStyle() . ' more-action';
 }