diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-12 11:11:58 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-12 11:11:58 +0100 |
commit | 89b05effb2eb45382762fcfcfae2373b7754caa7 (patch) | |
tree | de7a5298f1ef7a095c4b99e684c80b9152c686b1 /app/class/model.php | |
parent | a64af357ff41a61f5248e2052274315b390e979c (diff) | |
download | wcms-89b05effb2eb45382762fcfcfae2373b7754caa7.tar.gz wcms-89b05effb2eb45382762fcfcfae2373b7754caa7.zip |
url-cleaning-redirect-correct-id
Diffstat (limited to 'app/class/model.php')
-rw-r--r-- | app/class/model.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/app/class/model.php b/app/class/model.php index d7f34da..6d8aec3 100644 --- a/app/class/model.php +++ b/app/class/model.php @@ -4,6 +4,7 @@ class Model const CONFIG_FILE = 'config.json'; const CSS_DIR = 'assets' . DIRECTORY_SEPARATOR .'css' . DIRECTORY_SEPARATOR; + const FONT_DIR = 'fonts' . DIRECTORY_SEPARATOR; const MEDIA_DIR = '.' . DIRECTORY_SEPARATOR . 'media' . DIRECTORY_SEPARATOR; const TEMPLATES_DIR = '.'. DIRECTORY_SEPARATOR . 'app' . DIRECTORY_SEPARATOR . 'view' . DIRECTORY_SEPARATOR . 'templates' . DIRECTORY_SEPARATOR; const RENDER_DIR = 'assets'. DIRECTORY_SEPARATOR . 'render' . DIRECTORY_SEPARATOR; @@ -31,6 +32,15 @@ class Model return DIRECTORY_SEPARATOR . $basepath . Model::CSS_DIR; } + public function fontpath() + { + $basepath = ''; + if(!empty(Config::basepath())) { + $basepath = Config::basepath() . DIRECTORY_SEPARATOR ; + } + return $basepath . Model::FONT_DIR; + } + } |