diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-01-07 21:04:51 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-01-07 21:04:51 +0100 |
commit | 478587d1442b644f8f78a529dbb8ada1fc27f601 (patch) | |
tree | 73319ab68abb639f9ce0146223268e0dcc09029a /app/class/config.php | |
parent | 93a00c8312e220559d70147e11aa0b1e64bc127a (diff) | |
download | wcms-478587d1442b644f8f78a529dbb8ada1fc27f601.tar.gz wcms-478587d1442b644f8f78a529dbb8ada1fc27f601.zip |
google analytics code
Diffstat (limited to 'app/class/config.php')
-rw-r--r-- | app/class/config.php | 13 |
1 files changed, 13 insertions, 0 deletions
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; + } + } + |