public function loadAssets() { parent::loadAssets(); $this->app->document->addScript('assets:js/finder.js'); }
/** * @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(); }
/** * Load assets * @return $this */ public function loadAssets() { $this->app->jbassets->basketItems(); return parent::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'); }
/** * 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(); }
/** * Load elements css/js assets * @return $this */ public function loadAssets() { $this->app->jbassets->colors(); return parent::loadAssets(); }