diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-04 13:55:04 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-04 13:55:04 +0100 |
commit | 13acdbd444b0ae26e83ab8cf62d60a7f59268545 (patch) | |
tree | 9186bda4bffa9751c5e93da2d09d762f40cc0adc /app/class/config.php | |
parent | d0ef17169701f90a9dab5f50e3eb61954653cae2 (diff) | |
download | wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.tar.gz wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.zip |
admin panel
Diffstat (limited to 'app/class/config.php')
-rw-r--r-- | app/class/config.php | 57 |
1 files changed, 57 insertions, 0 deletions
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; + } + } + |