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/model.php | |
parent | d0ef17169701f90a9dab5f50e3eb61954653cae2 (diff) | |
download | wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.tar.gz wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.zip |
admin panel
Diffstat (limited to 'app/class/model.php')
-rw-r--r-- | app/class/model.php | 17 |
1 files changed, 9 insertions, 8 deletions
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() |