mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
Use PC skin if mobile skin name is /USE_RESPONSIVE/
This commit is contained in:
parent
7904304dc3
commit
27e2106c96
1 changed files with 16 additions and 4 deletions
|
|
@ -66,12 +66,24 @@ class boardMobile extends boardView
|
|||
$oDocumentModel = getModel('document');
|
||||
$extra_keys = $oDocumentModel->getExtraKeys($this->module_info->module_srl);
|
||||
Context::set('extra_keys', $extra_keys);
|
||||
|
||||
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $this->module_info->mskin);
|
||||
if(!is_dir($template_path)||!$this->module_info->mskin)
|
||||
|
||||
if($this->module_info->mskin === '/USE_RESPONSIVE/')
|
||||
{
|
||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
||||
if(!is_dir($template_path)||!$this->module_info->skin)
|
||||
{
|
||||
$this->module_info->skin = 'default';
|
||||
$template_path = sprintf("%sskins/%s/",$this->module_path, $this->module_info->skin);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->module_info->mskin = 'default';
|
||||
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $this->module_info->mskin);
|
||||
if(!is_dir($template_path)||!$this->module_info->mskin)
|
||||
{
|
||||
$this->module_info->mskin = 'default';
|
||||
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $this->module_info->mskin);
|
||||
}
|
||||
}
|
||||
$this->setTemplatePath($template_path);
|
||||
Context::addJsFilter($this->module_path.'tpl/filter', 'input_password.xml');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue