|
|
|
@ -36,12 +36,6 @@ namespace cgoIT\aeo;
|
|
|
|
|
class AeoJavaScript |
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Current object instance (Singleton) |
|
|
|
|
* @var Cache |
|
|
|
|
*/ |
|
|
|
|
protected static $objInstance; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Template |
|
|
|
|
* @var string |
|
|
|
@ -59,7 +53,7 @@ class AeoJavaScript
|
|
|
|
|
*/ |
|
|
|
|
final private function __clone() {} |
|
|
|
|
|
|
|
|
|
public function getContent($folder, $rot13 = true) { |
|
|
|
|
public static function getContent($folder, $rot13 = true) { |
|
|
|
|
$Template = new \FrontendTemplate(self::$strTemplate); |
|
|
|
|
$Template->rot13 = $rot13; |
|
|
|
|
$Template->folder = $folder; |
|
|
|
@ -67,18 +61,6 @@ class AeoJavaScript
|
|
|
|
|
$Template->tooltip_js_off = $GLOBALS['TL_LANG']['aeo']['tooltip_no_js']; |
|
|
|
|
return $Template->parse(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Instantiate a new cache object and return it (Factory) |
|
|
|
|
* @return Cache |
|
|
|
|
*/ |
|
|
|
|
public static function getInstance() { |
|
|
|
|
if (!is_object(self::$objInstance)) { |
|
|
|
|
self::$objInstance = new self(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
return self::$objInstance; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
?> |