From 478587d1442b644f8f78a529dbb8ada1fc27f601 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Mon, 7 Jan 2019 21:04:51 +0100 Subject: google analytics code --- app/class/config.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'app/class/config.php') diff --git a/app/class/config.php b/app/class/config.php index d6164ca..f9ed8fd 100644 --- a/app/class/config.php +++ b/app/class/config.php @@ -20,6 +20,7 @@ abstract class Config protected static $defaultfavicon = ''; protected static $showeditmenu = true; protected static $editsymbol = 'pen'; + protected static $analytics = ''; @@ -157,6 +158,11 @@ abstract class Config return self::$editsymbol; } + public static function analytics() + { + return self::$analytics; + } + // __________________________________________ S E T ______________________________________ @@ -267,6 +273,13 @@ abstract class Config } } + public static function setanalytics($analytics) + { + if(is_string($analytics) && strlen($analytics) < 25) { + self::$analytics = $analytics; + } + } + -- cgit v1.2.3