aboutsummaryrefslogtreecommitdiff
path: root/app/class/config.php
diff options
context:
space:
mode:
authorvincent-peugnet <v.peugnet@free.fr>2018-12-04 13:55:04 +0100
committervincent-peugnet <v.peugnet@free.fr>2018-12-04 13:55:04 +0100
commit13acdbd444b0ae26e83ab8cf62d60a7f59268545 (patch)
tree9186bda4bffa9751c5e93da2d09d762f40cc0adc /app/class/config.php
parentd0ef17169701f90a9dab5f50e3eb61954653cae2 (diff)
downloadwcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.tar.gz
wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.zip
admin panel
Diffstat (limited to 'app/class/config.php')
-rw-r--r--app/class/config.php57
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;
+ }
+ }
+