rhymix/modules/communication/communication.mobile.php
Kijin Sung f0ad692650 Enable responsive skin in member, communication, and ncenterlite
회원, 커뮤니케이션, 알림센터Lite 모듈에서 모바일 스킨을 선택할 때
PC와 동일한 반응형 스킨을 지정할 수 있도록 개선
2017-12-05 23:58:04 +09:00

58 lines
1.4 KiB
PHP

<?php
/* Copyright (C) NAVER <http://www.navercorp.com> */
/**
* @class communicationMobile
* @author NAVER (developers@xpressengine.com)
* Mobile class of communication module
*/
class communicationMobile extends communicationView
{
function init()
{
$oCommunicationModel = getModel('communication');
$this->config = $oCommunicationModel->getConfig();
Context::set('communication_config', $this->config);
$mskin = $this->config->mskin;
if(!$mskin)
{
$template_path = sprintf('%sm.skins/%s/', $this->module_path, 'default');
}
elseif($mskin === '/USE_RESPONSIVE/')
{
$template_path = sprintf("%sskins/%s/", $this->module_path, $this->config->skin);
if(!is_dir($template_path) || !$this->config->skin)
{
$template_path = sprintf("%sskins/%s/", $this->module_path, 'default');
}
}
else
{
$template_path = sprintf('%sm.skins/%s', $this->module_path, $mskin);
}
$oLayoutModel = getModel('layout');
$layout_info = $oLayoutModel->getLayout($this->config->mlayout_srl);
if($layout_info)
{
$this->module_info->mlayout_srl = $this->config->mlayout_srl;
$this->setLayoutPath($layout_info->path);
}
$this->setTemplatePath($template_path);
}
/**
* Display list of message box
* @return void
*/
function dispCommunicationMessageBoxList()
{
$this->setTemplateFile('message_box');
}
}
/* End of file communication.mobile.php */
/* Location: ./modules/comment/communication.mobile.php */