Example #1
0
 /**
  * Register JS files
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     $list[] = 'modules/CDev/XPaymentsConnector/iframe_common.js';
     $list[] = $this->getDir() . '/script.js';
     return $list;
 }
Example #2
0
 /**
  * Get a list of CSS files required to display the widget properly
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'items_list/model/table/style.css';
     $list[] = 'items_list/model/style.css';
     return $list;
 }
Example #3
0
 /**
  * Return internal list name
  *
  * @return string
  */
 protected function getListName()
 {
     $result = parent::getListName();
     if (!empty($result)) {
         $result .= '.';
     }
     return $result . 'upgrade';
 }
Example #4
0
 /**
  * Get current language code
  *
  * @return string
  */
 protected function getCode()
 {
     return \XLite\Core\Request::getInstance()->code ?: parent::getDefaultLanguage();
 }
Example #5
0
 /**
  * Return file name for body template
  *
  * @return void
  */
 protected function getBodyTemplate()
 {
     return $this->getCart()->isEmpty() ? 'empty.tpl' : parent::getBodyTemplate();
 }
Example #6
0
 /**
  * Register the CSS classes for this block
  *
  * @return string
  */
 protected function getBlockClasses()
 {
     return parent::getBlockClasses() . ' block-subcategories';
 }
Example #7
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(self::PARAM_DISPLAY_MODE => new \XLite\Model\WidgetParam\String('Display mode', self::DISPLAY_MODE_TEXT, false), self::PARAM_ADDRESS => new \XLite\Model\WidgetParam\Object('Address object', null, false), self::PARAM_DISPLAY_WRAPPER => new \XLite\Model\WidgetParam\Bool('Display wrapper', false, false));
 }
Example #8
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && \XLite\Core\Auth::getInstance()->isLogged();
 }
Example #9
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'role';
     return $list;
 }
Example #10
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     return array_merge(parent::getAllowedTargets(), array('roles'));
 }
Example #11
0
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/XC/Reviews/review/style.css';
     $list[] = 'modules/XC/Reviews/form_field/input/rating/rating.css';
     return $list;
 }
Example #12
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getCart()->getOrigProfile() && !$this->getCart()->getOrigProfile()->getOrder();
 }
Example #13
0
 /**
  * Register JS files
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     $list[] = 'languages/controller.js';
     return $list;
 }
Example #14
0
 /**
  * Return list of targets allowed for this widget
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $result = parent::getAllowedTargets();
     $result[] = 'memberships';
     return $result;
 }
Example #15
0
 /**
  * Check ACL permissions
  *
  * @return boolean
  */
 protected function checkACL()
 {
     return parent::checkACL() && \XLite\Core\Auth::getInstance()->isPermissionAllowed('manage orders');
 }
Example #16
0
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'activate_free_license/style.css';
     return $list;
 }
Example #17
0
 /**
  * Register files from common repository
  *
  * @return array
  */
 public function getCommonFiles()
 {
     $list = parent::getCommonFiles();
     $list[static::RESOURCE_JS][] = 'js/core.popup.js';
     $list[static::RESOURCE_JS][] = 'js/core.popup_button.js';
     return $list;
 }
Example #18
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $result = parent::isVisible() && (Paypal\Main::isPaypalCreditEnabled() || Paypal\Main::isPaypalWPSEnabled()) && $this->isValidTarget() && $this->getPublisherId() && $this->getSetting('agreement');
     if ($result) {
         $settingName = 'bannerOn' . ucfirst($this->getParam(static::PARAM_PAGE));
         $result = $this->getParam(static::PARAM_POSITION) == $this->getSetting($settingName);
     }
     return $result;
 }
Example #19
0
 /**
  * Register JS files
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     return $list;
 }
Example #20
0
 /**
  * Define widget parameters
  *
  * @return void
  */
 protected function defineWidgetParams()
 {
     parent::defineWidgetParams();
     $this->widgetParams += array(static::PARAM_DISPLAY_CACHED => new \XLite\Model\WidgetParam\Bool('Display cached content', true, false), static::PARAM_ICON_MAX_WIDTH => new \XLite\Model\WidgetParam\Int('Maximal icon width', 0, true), static::PARAM_ICON_MAX_HEIGHT => new \XLite\Model\WidgetParam\Int('Maximal icon height', 0, true));
 }
Example #21
0
 /**
  * Add widget specific JS file
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     $list[] = $this->getDir() . '/controller.js';
     return $list;
 }
Example #22
0
 /**
  * Check widget visible
  *
  * @return boolean
  */
 public function isVisible()
 {
     return parent::isVisible() && $this->getPaymentMethod() && $this->getPaymentMethod()->getProcessor() && $this->getPaymentMethod()->getProcessor()->getSettingsWidget();
 }
Example #23
0
 /**
  * Get a list of CSS files required to display the widget properly
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = $this->getDir() . '/style.css';
     return $list;
 }
Example #24
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getPaymentMethod();
 }
Example #25
0
 /**
  * Return specific CSS class for dialog wrapper
  *
  * @return string
  */
 protected function getDialogCSSClass()
 {
     return parent::getDialogCSSClass() . ' currency-view-info-dialog';
 }
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/Moneybookers/settings/style.css';
     return $list;
 }
Example #27
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() || $this->isExported();
 }
Example #28
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && $this->getBody();
 }
Example #29
0
 /**
  * getJSFiles
  *
  * @return array
  */
 public function getJSFiles()
 {
     $list = parent::getJSFiles();
     $list[] = $this->getDir() . '/js/script.js';
     return $list;
 }
Example #30
0
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/PaypalWPS/settings/style.css';
     return $list;
 }