/** * Register CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = 'unauthorized/style.less'; $list[] = 'login/style.less'; return $list; }
/** * Get currencies * * @return array */ protected function getCurrencies() { if (!isset($this->currencies)) { $this->currencies = parent::getCurrencies(); } return $this->currencies; }
/** * Register files from common repository * * @return array */ protected function getCommonFiles() { $list = parent::getCommonFiles(); $list[static::RESOURCE_JS][] = 'js/chosen.jquery.js'; $list[static::RESOURCE_CSS][] = 'css/chosen/chosen.css'; return $list; }
/** * Register CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = 'unauthorized/style.less'; $list[] = $this->getDir() . '/style.less'; return $list; }
/** * 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; }
/** * Register JS files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); if ($this->isIncludeController()) { $list[] = 'modules/CDev/GoogleAnalytics/drupal.js'; } return $list; }
/** * 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'; $list[] = 'modules/XC/ThemeTweaker/images/style.css'; return $list; }
/** * Get JS files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); if (!\XLite\Core\Config::getInstance()->Security->customer_security || $this->isHTTPS()) { $list[] = 'js/login.js'; } return $list; }
/** * Returns CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); if ($this->isCreate()) { $list[] = 'modules/XC/ThemeTweaker/theme_tweaker_template/create.css'; } return $list; }
/** * Register CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); if ($this->getOrdersWithFiles()) { $list[] = 'modules/CDev/Egoods/files_page.css'; $list[] = 'browse_server/icons.css'; } return $list; }
/** * getJSFiles * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); if (!\XLite::isAdminZone() && \XLite\Module\CDev\Paypal\Main::isExpressCheckoutEnabled() && \XLite\Module\CDev\Paypal\Main::isInContextCheckoutAvailable()) { $list[] = 'modules/CDev/Paypal/button/in_context.js'; } else { $list[] = 'modules/CDev/Paypal/button/default.js'; } return $list; }
/** * Get a list of JS files required to display the widget properly * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); if (!\XLite::isAdminZone()) { $list[] = 'modules/QSL/CloudSearch/loader.js'; $list[] = 'modules/QSL/CloudSearch/init.js'; $list[] = 'modules/QSL/CloudSearch/lib/handlebars.min.js'; $list[] = 'modules/QSL/CloudSearch/lib/jquery.hoverIntent.min.js'; } return $list; }
/** * Return theme common files * * @param boolean $adminZone Admin zone flag OPTIONAL * * @return array */ protected function getThemeFiles($adminZone = null) { $list = parent::getThemeFiles($adminZone); if (!(null === $adminZone ? \XLite::isAdminZone() : $adminZone)) { $list[static::RESOURCE_CSS][] = \XLite\Module\XC\ColorSchemes\Main::getColorSchemeCSS(); if (!\XLite\Module\XC\ColorSchemes\Main::isDefaultColorScheme()) { $list[static::RESOURCE_CSS][] = array('file' => \XLite\Module\XC\ColorSchemes\Main::getColorSchemeLess(), 'media' => 'screen', 'merge' => 'bootstrap/css/bootstrap.less'); } } return $list; }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams += array(self::PARAM_ORDER => new \XLite\Model\WidgetParam\Object('Order', null, false, '\\XLite\\Model\\Order'), self::PARAM_USE_WRAPPER => new \XLite\Model\WidgetParam\Bool('Use wrapper', false)); }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams += array(static::PARAM_CART => new \XLite\Model\WidgetParam\Object('Cart', null, false, '\\XLite\\Model\\Cart')); }
/** * Register CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = 'modules/CDev/Sale/product_modify_sale/css/style.css'; return $list; }
/** * Check widget visibility * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getOrderId() && 0 < count($this->getOrderHistoryEventsBlock()); }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && !$this->getProcessorId(); }
/** * Define widget params * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams += array(\XLite\View\Button\Payment\AddMethod::PARAM_PAYMENT_METHOD_TYPE => new \XLite\Model\WidgetParam\Collection('Payment methods type', array())); }
/** * Register CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = 'modules/XC/Sitemap/sitemap.less'; return $list; }
/** * Check widget visibility * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getParam(self::PARAM_OPTION)->isModifier(); }
/** * Get invoice logo * * @return string */ public function getInvoiceLogo() { $url = \XLite\Core\Config::getInstance()->CDev->SimpleCMS->logo; return $url ?: parent::getInvoiceLogo(); }
/** * Define widget parameters * * @return void */ protected function defineWidgetParams() { parent::defineWidgetParams(); $this->widgetParams += array(self::PARAM_NAME => new \XLite\Model\WidgetParam\String('Name', ''), self::PARAM_LINK => new \XLite\Model\WidgetParam\String('Link', ''), self::PARAM_SUBNODES => new \XLite\Model\WidgetParam\Collection('Subnodes', array()), self::PARAM_IS_LAST => new \XLite\Model\WidgetParam\Bool('Is last', false)); }
/** * Register CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); $list[] = 'login/style.css'; return $list; }
/** * Return list of targets allowed for this widget * * @return array */ public static function getAllowedTargets() { $result = parent::getAllowedTargets(); $result[] = 'recent_orders'; return $result; }
/** * Check widget visibility * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getCategory()->getDescription(); }
/** * Get JS files * * @return array */ public function getJSFiles() { $list = parent::getJSFiles(); $list[] = 'checkout/steps/review/parts/payment.js'; return $list; }
/** * Called before the includeCompiledFile() * * Here we save all passed request params into the session. * It allows us to refresh pages without restore their default view * * @return void */ protected function initView() { parent::initView(); if ($this->checkRequestParams()) { \XLite\Core\Session::getInstance()->set($this->getSessionCell(), $this->getRequestParamsHash()); } }
/** * Check if widget is visible * * @return boolean */ protected function isVisible() { return parent::isVisible() && $this->getProduct() && $this->getAttachments(); }
/** * Register CSS files * * @return array */ public function getCSSFiles() { $list = parent::getCSSFiles(); foreach ($this->getTabs() as $tab) { if (!empty($tab['cssFiles'])) { if (is_array($tab['cssFiles'])) { $list = array_merge($list, $tab['cssFiles']); } else { $list[] = $tab['cssFiles']; } } } return $list; }