本文整理汇总了PHP中XLite\View\AView类的典型用法代码示例。如果您正苦于以下问题:PHP AView类的具体用法?PHP AView怎么用?PHP AView使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了AView类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getCSSFiles
/**
* Register CSS files
*
* @return array
*/
public function getCSSFiles()
{
$list = parent::getCSSFiles();
$list[] = 'unauthorized/style.less';
$list[] = 'login/style.less';
return $list;
}
示例2: getCurrencies
/**
* Get currencies
*
* @return array
*/
protected function getCurrencies()
{
if (!isset($this->currencies)) {
$this->currencies = parent::getCurrencies();
}
return $this->currencies;
}
示例3: getCommonFiles
/**
* 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;
}
示例4: getCSSFiles
/**
* Register CSS files
*
* @return array
*/
public function getCSSFiles()
{
$list = parent::getCSSFiles();
$list[] = 'unauthorized/style.less';
$list[] = $this->getDir() . '/style.less';
return $list;
}
示例5: getCommonFiles
/**
* 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;
}
示例6: getJSFiles
/**
* Register JS files
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
if ($this->isIncludeController()) {
$list[] = 'modules/CDev/GoogleAnalytics/drupal.js';
}
return $list;
}
示例7: getCSSFiles
/**
* 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;
}
示例8: getJSFiles
/**
* 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;
}
示例9: getCSSFiles
/**
* 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;
}
示例10: getCSSFiles
/**
* 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;
}
示例11: getJSFiles
/**
* 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;
}
示例12: getJSFiles
/**
* 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;
}
示例13: getThemeFiles
/**
* 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;
}
示例14: defineWidgetParams
/**
* 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));
}
示例15: defineWidgetParams
/**
* 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'));
}