Beispiel #1
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'settings';
     $list[] = 'module';
     return $list;
 }
Beispiel #2
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'order';
     return $list;
 }
Beispiel #3
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && (bool) $this->getImportFilePath();
 }
 /**
  * Register CSS files
  *
  * @return array
  */
 public function getCSSFiles()
 {
     $list = parent::getCSSFiles();
     $list[] = 'modules/CDev/PINCodes/add_pin_codes_dialog/style.css';
     return $list;
 }
Beispiel #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);
 }
Beispiel #6
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'cache_management';
     return $list;
 }
Beispiel #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();
 }
Beispiel #8
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'select_file';
     return $list;
 }
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'pitney_bowes';
     return $list;
 }
Beispiel #10
0
 /**
  * Check if widget is visible
  *
  * @return boolean
  */
 protected function isVisible()
 {
     return parent::isVisible() && 'delete' === \XLite\Core\Request::getInstance()->pre_action;
 }
Beispiel #11
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'payment_method_selection';
     return $list;
 }
Beispiel #12
0
 /**
  * Return list of allowed targets
  *
  * @return array
  */
 public static function getAllowedTargets()
 {
     $list = parent::getAllowedTargets();
     $list[] = 'shipping_rates';
     return $list;
 }