Exemplo n.º 1
0
 /**
  * 
  * put theme related scripts
  */
 protected function putScripts($putSkins = true)
 {
     parent::putScripts();
     if ($this->putJsToBody == false) {
         HelperGalleryUG::addScriptAbsoluteUrl($this->urlPlugin . "themes/default/ug-theme-default.js", "unitegallery_default_theme");
     }
     HelperGalleryUG::addStyleAbsoluteUrl($this->urlPlugin . "themes/default/ug-theme-default.css", "ug-theme-default");
 }
Exemplo n.º 2
0
 /**
  * 
  * put theme related scripts
  */
 protected function putScripts($putSkins = true)
 {
     parent::putScripts(false);
     //don't put skins
     if ($this->putJsToBody == false) {
         HelperGalleryUG::addScriptAbsoluteUrl($this->urlPlugin . "themes/video/ug-theme-video.js", "unitegallery_video_theme");
     }
     $skin = $this->getParam("theme_skin");
     $urlSkin = $this->urlPlugin . "themes/video/skin-{$skin}.css";
     //if exists modified version, take the modified
     $filepath_modified = GlobalsUG::$path_media_ug . "themes/video/skin-{$skin}-modified.css";
     if (file_exists($filepath_modified)) {
         $urlSkin = $this->urlPlugin . "themes/video/skin-{$skin}-modified.css";
     }
     HelperGalleryUG::addStyleAbsoluteUrl($urlSkin, "ug-theme-video-{$skin}");
 }
Exemplo n.º 3
0
<?php

defined('_JEXEC') or die('Restricted access');
HelperGalleryUG::addScript("js/video_admin.js", "video_admin");
//add codemirror scripts
HelperGalleryUG::addScriptAbsoluteUrl(GlobalsUG::$urlPlugin . "js/codemirror/codemirror.js", "codemirror_js");
HelperGalleryUG::addScriptAbsoluteUrl(GlobalsUG::$urlPlugin . "js/codemirror/css.js", "codemirror_cssjs");
HelperGalleryUG::addStyleAbsoluteUrl(GlobalsUG::$urlPlugin . "js/codemirror/codemirror.css", "codemirror_css");
 /**
  * 
  * put gallery scripts
  */
 protected function putScripts($putSkins = true)
 {
     //put jquery
     $includeJQuery = $this->getParam("include_jquery", self::FORCE_BOOLEAN);
     if ($includeJQuery == true) {
         $urljQuery = GlobalsUG::$url_media_ug . "js/jquery-11.0.min.js";
         UniteProviderFunctionsUG::addjQueryInclude("unitegallery", $urljQuery);
     }
     if ($this->putJsToBody == false) {
         HelperGalleryUG::addScriptAbsoluteUrl($this->urlPlugin . "js/unitegallery.min.js", "unitegallery_main");
     }
     HelperGalleryUG::addStyleAbsoluteUrl($this->urlPlugin . "css/unite-gallery.css", "unite-gallery-css");
     //include skins
     if ($putSkins == true) {
         $arrSkins = $this->getArrActiveSkins();
         foreach ($arrSkins as $skin => $nothing) {
             if (empty($skin) || $skin == "default") {
                 continue;
             }
             HelperGalleryUG::addStyleAbsoluteUrl($this->urlPlugin . "skins/{$skin}/{$skin}.css", "ug-skin-{$skin}");
         }
     }
 }