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 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'h-source/Application/Controllers') 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 = "