本文整理汇总了PHP中XLite\View\AView::getJSFiles方法的典型用法代码示例。如果您正苦于以下问题:PHP AView::getJSFiles方法的具体用法?PHP AView::getJSFiles怎么用?PHP AView::getJSFiles使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类XLite\View\AView
的用法示例。
在下文中一共展示了AView::getJSFiles方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: getJSFiles
/**
* Register JS files
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
$list[] = 'lazy_load/controller.js';
$lazyWidget = $this->getLazyWidget();
return array_merge($list, $lazyWidget->getJSFiles());
}
示例2: getJSFiles
/**
* Get JS files
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
$list[] = 'checkout/steps/shipping/parts/shippingMethods.js';
$list[] = 'form_field/js/rich.js';
return $list;
}
示例3: getJSFiles
/**
* Register JS files
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
$list[] = 'form_field/select_country.js';
$list[] = 'shopping_cart/parts/box.estimator.js';
return $list;
}
示例4: getJSFiles
/**
* Add JS files
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
$list = array_merge(\XLite\Module\XC\Add2CartPopup\Core\Add2CartPopup::getResourcesFiles(static::RESOURCE_JS), $list);
$list[] = 'modules/XC/Add2CartPopup/js/add2cart_popup.js';
return $list;
}
示例5: 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;
}
示例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: 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;
}
示例8: 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;
}
示例9: getJSFiles
/**
* Register JS files
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
$tab = $this->getSelectedTab();
if (isset($tab) && isset($tab['jsFiles']) && !empty($tab['jsFiles'])) {
if (is_array($tab['jsFiles'])) {
$list = array_merge($list, $tab['jsFiles']);
} else {
$list[] = $tab['jsFiles'];
}
}
return $list;
}
示例10: getJSFiles
/**
* Register JS files
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
foreach ($this->getTabs() as $tab) {
if (!empty($tab['jsFiles'])) {
if (is_array($tab['jsFiles'])) {
$list = array_merge($list, $tab['jsFiles']);
} else {
$list[] = $tab['jsFiles'];
}
}
}
return $list;
}
示例11: getJSFiles
/**
* Get a list of JavaScript files required to display the widget properly
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
$list[] = 'form_field/inline/controller.js';
$list[] = 'form_field/inline/input/text/position/move.js';
$list[] = 'form_field/js/text.js';
$list[] = 'form_field/input/text/integer.js';
$list[] = 'form_field/input/checkbox/switcher.js';
$list[] = 'button/js/remove.js';
$list[] = 'items_list/items_list.js';
$list[] = 'items_list/model/table/controller.js';
$list[] = 'attributes/script.js';
$list[] = 'form_field/inline/input/text.js';
return $list;
}
示例12: getJSFiles
/**
* Register JS files
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
$list[] = 'modules/CDev/ProductOptions/change_options.js';
return $list;
}
示例13: getJSFiles
public function getJSFiles()
{
$list = parent::getJSFiles();
return $list;
}
示例14: getJSFiles
/**
* Via this method the widget registers the JS files which it uses.
* During the viewers initialization the JS files are collecting into the static storage.
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
if ($this->isMarkTemplates()) {
$list[] = 'modules/XC/ThemeTweaker/template_editor/vakata-jstree/dist/jstree.min.js';
$list[] = 'modules/XC/ThemeTweaker/template_editor/editor.js';
}
return $list;
}
示例15: getJSFiles
/**
* Get JS files
*
* @return array
*/
public function getJSFiles()
{
$list = parent::getJSFiles();
$list[] = 'checkout/steps/shipping/parts/address.js';
return $list;
}