aboutsummaryrefslogtreecommitdiff
path: root/app/class/model.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/model.php
parentd0ef17169701f90a9dab5f50e3eb61954653cae2 (diff)
downloadwcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.tar.gz
wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.zip
admin panel
Diffstat (limited to 'app/class/model.php')
-rw-r--r--app/class/model.php17
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()