/** * * 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}"); } } }