/** * * put theme related scripts */ protected function putScripts($putSkins = true) { parent::putScripts(); if ($this->putJsToBody == false) { HelperGalleryUG::addScriptAbsoluteUrl($this->urlPlugin . "themes/slider/ug-theme-slider.js", "unitegallery_slider_theme"); } }
/** * * 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"); }
/** * * 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}"); }