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/model.php | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) (limited to 'app/class/model.php') diff --git a/app/class/model.php b/app/class/model.php index 600e930..4024f62 100644 --- a/app/class/model.php +++ b/app/class/model.php @@ -14,41 +14,42 @@ abstract class Model const MEDIA_TYPES = ['image', 'video', 'sound', 'other']; const TEXT_ELEMENTS = ['header', 'nav', 'section', 'aside', 'footer']; + const EDIT_SYMBOLS = ['pen', 'tool', 'none']; public static function renderpath() { $basepath = ''; if(!empty(Config::basepath())) { - $basepath = Config::basepath() . DIRECTORY_SEPARATOR ; + $basepath = Config::basepath() . '/' ; } - return DIRECTORY_SEPARATOR . $basepath . Model::RENDER_DIR; + return '/' . $basepath . Model::RENDER_DIR; } public static function globalpath() { $basepath = ''; if(!empty(Config::basepath())) { - $basepath = Config::basepath() . DIRECTORY_SEPARATOR ; + $basepath = Config::basepath() . '/' ; } - return DIRECTORY_SEPARATOR . $basepath . Model::GLOBAL_DIR; + return '/' . $basepath . Model::GLOBAL_DIR; } public static function csspath() { $basepath = ''; if(!empty(Config::basepath())) { - $basepath = Config::basepath() . DIRECTORY_SEPARATOR ; + $basepath = Config::basepath() . '/' ; } - return DIRECTORY_SEPARATOR . $basepath . Model::CSS_DIR; + return '/' . $basepath . Model::CSS_DIR; } public static function mediapath() { $basepath = ''; if(!empty(Config::basepath())) { - $basepath = Config::basepath() . DIRECTORY_SEPARATOR ; + $basepath = Config::basepath() . '/' ; } - return DIRECTORY_SEPARATOR . $basepath . Model::MEDIA_DIR; + return '/' . $basepath . Model::MEDIA_DIR; } public static function fontpath() -- cgit v1.2.3