Exemplo n.º 1
0
 /**
  * 
  * init globals
  */
 public static function init()
 {
     $urlRoot = JURI::root();
     if (JURI::getInstance()->isSSL() == true) {
         $urlRoot = str_replace("http://", "https://", $urlRoot);
     }
     //set global vars
     self::$urlBase = $urlRoot;
     self::$urlAssets = $urlRoot . "administrator/components/" . self::COMPONENT_NAME . "/assets/";
     self::$urlAssetsMedia = $urlRoot . "media/" . self::COMPONENT_NAME . "/assets/";
     self::$urlAssetsArrows = self::$urlAssets . "arrows/";
     self::$urlAssetsBullets = self::$urlAssets . "bullets/";
     self::$urlDefaultSlideImage = self::$urlAssetsMedia . "images/slide_image.jpg";
     self::$pathComponent = JPATH_ADMINISTRATOR . "/components/" . self::COMPONENT_NAME . "/";
     self::$pathAssets = self::$pathComponent . "assets/";
     self::$pathAssetsMedia = JPATH_ROOT . "/media/" . self::COMPONENT_NAME . "/assets/";
     self::$pathAssetsArrows = self::$pathAssets . "arrows/";
     self::$pathAssetsBullets = self::$pathAssets . "bullets/";
     self::$pathViews = self::$pathComponent . "views/";
     self::$pathItemPlugin = self::$pathAssetsMedia . "rs-plugin/";
     self::$urlItemPlugin = self::$urlAssetsMedia . "rs-plugin/";
     self::$pathCaptionsCss = self::$pathItemPlugin . "css/captions.css";
     self::$urlCaptionsCss = self::$urlItemPlugin . "css/captions.css";
     self::$pathCaptionsCssOriginal = self::$pathItemPlugin . "css/captions-original.css";
     self::$urlCaptionsCssOriginal = self::$urlItemPlugin . "css/captions-original.css";
 }