/** * Return list of allowed targets * * @return array */ public static function getAllowedTargets() { $list = parent::getAllowedTargets(); $list[] = 'settings'; $list[] = 'module'; return $list; }
/** * Return list of allowed targets * * @return array */ public static function getAllowedTargets() { $list = parent::getAllowedTargets(); $list[] = 'order'; return $list; }
/** * 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; }
/** * 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); }
/** * Return list of allowed targets * * @return array */ public static function getAllowedTargets() { $list = parent::getAllowedTargets(); $list[] = 'cache_management'; return $list; }
/** * 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(); }
/** * 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; }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && 'delete' === \XLite\Core\Request::getInstance()->pre_action; }
/** * Return list of allowed targets * * @return array */ public static function getAllowedTargets() { $list = parent::getAllowedTargets(); $list[] = 'payment_method_selection'; return $list; }
/** * Return list of allowed targets * * @return array */ public static function getAllowedTargets() { $list = parent::getAllowedTargets(); $list[] = 'shipping_rates'; return $list; }