public static function init()
 {
     // called only by seo42 addon
     global $REX;
     $cssDir = $REX['ADDON']['seo42']['settings']['css_dir'];
     $jsDir = $REX['ADDON']['seo42']['settings']['js_dir'];
     $imagesDir = $REX['ADDON']['seo42']['settings']['images_dir'];
     $favIconsDir = $REX['ADDON']['seo42']['settings']['favicons_dir'];
     self::$cssDir = self::prepareDir($cssDir);
     self::$jsDir = self::prepareDir($jsDir);
     self::$imagesDir = self::prepareDir($imagesDir);
     self::$favIconsDir = self::prepareDir($favIconsDir);
     self::$cssPath = self::preparePath($cssDir);
     self::$jsPath = self::preparePath($jsDir);
     self::$imagesPath = self::preparePath($imagesDir);
     self::$favIconsPath = self::preparePath($favIconsDir);
     self::$rewriterEnabled = $REX['ADDON']['seo42']['settings']['rewriter'];
 }
Exemplo n.º 2
0
 public static function getJSCodeFromFile($file, $simpleMinify = true)
 {
     return rex_resource_includer::getJSCodeFromFile($file, $simpleMinify);
 }