mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Clean up common_layout.html and merge with mobile_layout.html
This commit is contained in:
parent
32aa19e6f2
commit
65517735e0
10 changed files with 65 additions and 132 deletions
|
|
@ -2032,6 +2032,10 @@ class Context
|
|||
{
|
||||
return self::$_instance->ssl_actions;
|
||||
}
|
||||
else
|
||||
{
|
||||
return array();
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue