From 7bda3432520d07d31220fc66b3e552e1eed46f82 Mon Sep 17 00:00:00 2001 From: Antonio Gallo Date: Tue, 27 Dec 2011 07:27:36 +0000 Subject: mobile: added language dialog --- h-source/Application/Controllers/BaseController.php | 16 +++++++++++----- h-source/Application/Include/languages.php | 17 +++++++++++++++-- h-source/Application/Views/Mobile/footer.php | 17 +++++++++++++++++ h-source/Application/Views/Mobile/header.php | 11 +++++++++-- h-source/Application/Views/Mobile/right.php | 3 ++- h-source/Public/Css/mobile.css | 6 +++++- 6 files changed, 59 insertions(+), 11 deletions(-) diff --git a/h-source/Application/Controllers/BaseController.php b/h-source/Application/Controllers/BaseController.php index 69b47ac..7bd8027 100644 --- a/h-source/Application/Controllers/BaseController.php +++ b/h-source/Application/Controllers/BaseController.php @@ -100,13 +100,14 @@ class BaseController extends Controller Lang::$current = $data['lang']; } + $data['langIcon'] = Lang::getIcon(Lang::$current); + $data['langLabel'] = Lang::getLabel(Lang::$current); + //set desktop or mobile version Version::set(); //subfolder of the Views folder where to look for view files Params::$viewSubfolder = Version::getViewSubfolder(); - - $data['tm'] = $this->_topMenuClasses; $this->_queryString = $this->sanitizeQueryString($this->_queryString); @@ -240,15 +241,20 @@ class BaseController extends Controller { $status = $this->_queryString; $cPage = $this->querySanitized ? $this->currPage : $this->baseUrl."/home/index"; - $link = "