Clean up common_layout.html and merge with mobile_layout.html

This commit is contained in:
Kijin Sung 2016-02-17 16:20:57 +09:00
parent 32aa19e6f2
commit 65517735e0
10 changed files with 65 additions and 132 deletions

View file

@ -2032,6 +2032,10 @@ class Context
{
return self::$_instance->ssl_actions;
}
else
{
return array();
}
}
/**

View file

@ -223,17 +223,17 @@ class HTMLDisplayHandler
// convert the final layout
Context::set('content', $output);
Context::set('m', $is_mobile = Mobile::isFromMobilePhone() ? 1 : 0);
$oTemplate = TemplateHandler::getInstance();
if(Mobile::isFromMobilePhone())
if($is_mobile)
{
$this->_loadMobileJSCSS();
$output = $oTemplate->compile('./common/tpl', 'mobile_layout');
}
else
{
$this->_loadDesktopJSCSS();
$output = $oTemplate->compile('./common/tpl', 'common_layout');
}
$output = $oTemplate->compile('./common/tpl', 'common_layout');
// replace the user-defined-language
$oModuleController = getController('module');