diff options
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; + } + } |