Example #1
0
 /**
  * Loads our namespaced jQuery UI and its stylesheet
  */
 public static function jQueryUI()
 {
     if (self::isCli()) {
         return;
     }
     // Load only once
     if (self::$_includedJQueryUI) {
         return;
     }
     self::jQuery();
     self::$_includedJQueryUI = true;
     $jQueryUILoad = self::getPreference('jqueryui_load', 1);
     if (!$jQueryUILoad) {
         return;
     }
     $theme = self::getPreference('jquery_theme', self::$jqUItheme);
     self::addJSfile('media://akeeba_strapper/js/akeebajqui.js', AKEEBASTRAPPER_MEDIATAG);
     self::addCSSfile("media://akeeba_strapper/css/{$theme}/theme.min.css", AKEEBASTRAPPER_MEDIATAG);
 }
 /**
  * Loads our namespaced jQuery UI and its stylesheet
  */
 public static function jQueryUI()
 {
     if (self::isCli()) {
         return;
     }
     if (!self::$_includedJQuery) {
         self::jQuery();
     }
     self::$_includedJQueryUI = true;
     $jQueryUILoad = self::getPreference('jqueryui_load', 1);
     if (!$jQueryUILoad) {
         return;
     }
     $theme = self::getPreference('jquery_theme', self::$jqUItheme);
     $url = FOFTemplateUtils::parsePath('media://akeeba_strapper/js/akeebajqui.js');
     self::$scriptURLs[] = $url;
     self::$cssURLs[] = FOFTemplateUtils::parsePath("media://akeeba_strapper/css/{$theme}/theme.css");
 }