예제 #1
0
 public function loadAssets()
 {
     parent::loadAssets();
     $this->app->document->addScript('assets:js/finder.js');
 }
예제 #2
0
 /**
  * @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
0
 /**
  * Load assets
  * @return $this
  */
 public function loadAssets()
 {
     $this->app->jbassets->basketItems();
     return parent::loadAssets();
 }
예제 #4
0
파일: yamap.php 프로젝트: alexmixaylov/real
 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
0
 /**
  * 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
0
 /**
  * Load elements css/js assets
  * @return $this
  */
 public function loadAssets()
 {
     $this->app->jbassets->colors();
     return parent::loadAssets();
 }