mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
Enable responsive skin in member, communication, and ncenterlite
회원, 커뮤니케이션, 알림센터Lite 모듈에서 모바일 스킨을 선택할 때 PC와 동일한 반응형 스킨을 지정할 수 있도록 개선
This commit is contained in:
parent
eb3108b446
commit
f0ad692650
6 changed files with 58 additions and 32 deletions
|
|
@ -6,11 +6,23 @@ class ncenterliteMobile extends ncenterliteView
|
|||
{
|
||||
$oNcenterliteModel = getModel('ncenterlite');
|
||||
$config = $oNcenterliteModel->getConfig();
|
||||
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $config->mskin);
|
||||
if(!is_dir($template_path)||!$config->mskin)
|
||||
|
||||
$mskin = $config->mskin;
|
||||
if(!$mskin)
|
||||
{
|
||||
$config->skin = 'default';
|
||||
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $config->mskin);
|
||||
$template_path = sprintf('%sm.skins/%s/', $this->module_path, 'default');
|
||||
}
|
||||
elseif($mskin === '/USE_RESPONSIVE/')
|
||||
{
|
||||
$template_path = sprintf("%sskins/%s/", $this->module_path, $config->skin);
|
||||
if(!is_dir($template_path) || !$config->skin)
|
||||
{
|
||||
$template_path = sprintf("%sskins/%s/", $this->module_path, 'default');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$template_path = sprintf('%sm.skins/%s', $this->module_path, $mskin);
|
||||
}
|
||||
$this->setTemplatePath($template_path);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue