Esempio n. 1
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'settings';
     $list[] = 'module';
     return $list;
 }
Esempio n. 2
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'order';
     return $list;
 }
Esempio n. 3
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && (bool) $this->getImportFilePath();
 }
Esempio n. 4
0
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/PINCodes/add_pin_codes_dialog/style.css';
     return $list;
 }
Esempio n. 5
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     $target = \XLite\Core\Request::getInstance()->target;
     return parent::isVisible() && ('login' == $target || 'profile' == $target && 'login' == \XLite\Core\Request::getInstance()->mode);
 }
Esempio n. 6
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'cache_management';
     return $list;
 }
Esempio n. 7
0
 /**
  * Return title
  *
  * @return string
  */
 protected function getHead()
 {
     $mode = strval(\XLite\Core\Request::getInstance()->mode);
     $sections = $this->defineSections();
     return isset($sections[$mode]) ? $sections[$mode]['head'] : parent::getHead();
 }
Esempio n. 8
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'select_file';
     return $list;
 }
Esempio n. 9
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'pitney_bowes';
     return $list;
 }
Esempio n. 10
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && 'delete' === \XLite\Core\Request::getInstance()->pre_action;
 }
Esempio n. 11
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'payment_method_selection';
     return $list;
 }
Esempio n. 12
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'shipping_rates';
     return $list;
 }