added mobile device detection

This commit is contained in:
SJ
2013-08-06 11:32:02 +02:00
parent fa76a1a0e7
commit e8f3b51ca5
3 changed files with 13 additions and 1 deletions

View File

@ -93,7 +93,8 @@ class Controller {
$file = DIR_THEME . THEME . '/templates/' . $this->template;
}
if(MOBILE_DEVICE == 1) { $file = DIR_THEME . 'mobile' . '/templates/' . $this->template; }
if(file_exists($file)){
extract($this->data);