/**
  * 
  */
 private function _loadAssets()
 {
     $assetsFile = 'assets.default.json';
     /* Load Zo2' assets */
     $assetsFile = Zo2Factory::getPath('zo2://assets/' . $assetsFile);
     if ($assetsFile) {
         $assets = json_decode(file_get_contents($assetsFile));
         /* Debug mode */
         if ($this->get('development_mode')) {
             $this->assets->buildAssets();
         }
         /* Site loading */
         if (Zo2Factory::isSite()) {
             /* Load core assets */
             $this->assets->load($assets->frontend);
             /**
              * Disable responsive
              * @link http://getbootstrap.com/getting-started/#disable-responsive
              */
             if ($this->get('non_responsive_layout')) {
                 $this->assets->addStyleSheet('vendor/bootstrap/addons/non-responsive.css');
                 $this->assets->addStyleSheet('zo2/css/non-responsive.css');
             } else {
                 $this->assets->addStyleSheet('zo2/css/responsive.css');
             }
             /* Custom files */
             $this->assets->addStyleSheet('zo2/css/custom.css');
             $this->assets->addScript('zo2/js/custom.js');
             /* Load bootstrap-rtl if needed */
             if (Zo2Factory::isRTL()) {
                 $this->assets->addStyleSheet('vendor/bootstrap/addons/bootstrap-rtl/css/bootstrap-rtl.min.css');
             }
             $this->_loadTheme();
         } else {
             /* Backend loading */
             /* Load core assets */
             $this->assets->load($assets->backend);
         }
     } else {
         JFactory::getApplication()->enqueueMessage(JText::_('ZO2_ASSETS_NOT_FOUND'), 'error');
     }
 }