mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +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);
|
||||
|
||||
|
|
|
|||
|
|
@ -40,7 +40,7 @@
|
|||
<div class="x_controls">
|
||||
<select name="skin" id="skin" onchange="doDisplaySkinColorset(this); return false;">
|
||||
<option loop="$skin_list => $key, $val" value="{$key}" selected="selected"|cond="$config->skin == $key">
|
||||
{$val->title} ({htmlspecialchars($key)})
|
||||
{$val->title} ({escape($key)})
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
@ -60,7 +60,7 @@
|
|||
<div class="x_controls">
|
||||
<select name="mskin" id="mskin" onchange="doDisplayMobileSkinColorset(this); return false;">
|
||||
<option loop="$mskin_list => $key, $val" value="{$key}" selected="selected"|cond="$config->mskin == $key">
|
||||
{$val->title} ({htmlspecialchars($key)})
|
||||
{$val->title} <block cond="!starts_with('/', $key)">({escape($key)})</block>
|
||||
</option>
|
||||
</select>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue