本文整理汇总了PHP中Element::loadAssets方法的典型用法代码示例。如果您正苦于以下问题:PHP Element::loadAssets方法的具体用法?PHP Element::loadAssets怎么用?PHP Element::loadAssets使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Element
的用法示例。
在下文中一共展示了Element::loadAssets方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: loadAssets
public function loadAssets()
{
parent::loadAssets();
$this->app->document->addScript('assets:js/finder.js');
}
示例2: loadAssets
/**
* @return $this
*/
public function loadAssets()
{
$this->app->jbassets->less('elements:jbadvert/assets/less/jbadvert.less');
$this->app->jbassets->js('elements:jbadvert/assets/js/jbadvert.js');
return parent::loadAssets();
}
示例3: loadAssets
/**
* Load assets
* @return $this
*/
public function loadAssets()
{
$this->app->jbassets->basketItems();
return parent::loadAssets();
}
示例4: loadAssets
public function loadAssets()
{
parent::loadAssets();
$doc = JFactory::getDocument();
$doc->addScript('http://api-maps.yandex.ru/2.0/?load=package.full&lang=ru-RU');
$this->app->document->addScript('elements:yamap/assets/js/yamap.js');
$this->app->document->addStylesheet('elements:yamap/assets/css/yamap.css');
}
示例5: loadAssets
/**
* Load assets
* @return $this
*/
public function loadAssets()
{
/** @type JBAssetsHelper $jbAssets */
$jbAssets = $this->app->jbassets;
// Include libraries
$jbAssets->tools();
$jbAssets->jQueryUI();
$jbAssets->fancybox();
//Add assets from cache
if ($this->cache) {
$assets = $this->_cache->get($this->hash, 'price_assets', true);
if (!empty($assets)) {
foreach ($assets as $asset) {
if ($ext = JFile::getExt($asset)) {
$jbAssets->{$ext}($asset);
}
}
return true;
}
}
$assets = 'elements:jbprice/assets/';
// Important. Main Price widget.
$this->toStorage($assets . 'js/jbprice.js');
$this->toStorage($assets . 'less/jbprice.less');
// Important. Default widget for price elements.
$this->toStorage('cart-elements:core/price/assets/js/price.js');
return parent::loadAssets();
}
示例6: loadAssets
/**
* Load elements css/js assets
* @return $this
*/
public function loadAssets()
{
$this->app->jbassets->colors();
return parent::loadAssets();
}