本文整理匯總了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();
}