rhymix/modules/ncenterlite/ncenterlite.mobile.php
2017-08-17 09:08:33 +09:00

27 lines
767 B
PHP

<?php
require_once(_XE_PATH_.'modules/ncenterlite/ncenterlite.view.php');
class ncenterliteMobile extends ncenterliteView
{
function init()
{
$oNcenterliteModel = getModel('ncenterlite');
$config = $oNcenterliteModel->getConfig();
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $config->mskin);
if(!is_dir($template_path)||!$config->mskin)
{
$config->skin = 'default';
$template_path = sprintf("%sm.skins/%s/",$this->module_path, $config->mskin);
}
$this->setTemplatePath($template_path);
$oLayoutModel = getModel('layout');
$layout_info = $oLayoutModel->getLayout($config->mlayout_srl);
if($layout_info)
{
$this->module_info->mlayout_srl = $config->mlayout_srl;
$this->setLayoutPath($layout_info->path);
}
}
}