From 13acdbd444b0ae26e83ab8cf62d60a7f59268545 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 4 Dec 2018 13:55:04 +0100 Subject: admin panel --- app/class/config.php | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 57 insertions(+) (limited to 'app/class/config.php') diff --git a/app/class/config.php b/app/class/config.php index 3b05c1a..38ccf5f 100644 --- a/app/class/config.php +++ b/app/class/config.php @@ -15,6 +15,10 @@ abstract class Config protected static $basepath = ''; protected static $route404; protected static $existnot = 'This page does not exist yet'; + protected static $defaultbody = ''; + protected static $defaultart = 'cul'; + protected static $showeditmenu = true; + protected static $editsymbol = 'pen'; @@ -127,6 +131,26 @@ abstract class Config return self::$existnot; } + public static function defaultbody() + { + return self::$defaultbody; + } + + public static function defaultart() + { + return self::$defaultart; + } + + public static function showeditmenu() + { + return self::$showeditmenu; + } + + public static function editsymbol() + { + return self::$editsymbol; + } + // __________________________________________ S E T ______________________________________ @@ -197,6 +221,39 @@ abstract class Config } } + public static function setdefaultbody($defaultbody) + { + if(is_string($defaultbody)) { + self::$defaultbody = $defaultbody; + } + } + + public static function setdefaultart($defaultart) + { + if(is_string($defaultart)) { + self::$defaultart = idclean($defaultart); + } + } + + public static function setshoweditmenu($showeditmenu) + { + if(is_bool($showeditmenu)) { + self::$showeditmenu = $showeditmenu; + } elseif (is_string($showeditmenu)) { + if($showeditmenu === 'on') { + self::$showeditmenu = true; + } + } + } + + public static function seteditsymbol($editsymbol) + { + if(is_string($editsymbol)) + { + self::$editsymbol = $editsymbol; + } + } + -- cgit v1.2.3