mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 15:22:15 +09:00
issue 2303 add a mobile content in type of ARTICLE page.
git-svn-id: http://xe-core.googlecode.com/svn/branches/luminous@11126 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
6cfdca4604
commit
cdbdef7adc
14 changed files with 189 additions and 83 deletions
|
|
@ -76,6 +76,8 @@
|
|||
}
|
||||
|
||||
function _getArticleContent(){
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
|
||||
$oDocumentModel = &getModel('document');
|
||||
$oDocument = $oDocumentModel->getDocument(0, true);
|
||||
|
||||
|
|
@ -86,13 +88,18 @@
|
|||
}
|
||||
Context::set('oDocument', $oDocument);
|
||||
|
||||
Context::set('module_info', $this->module_info);
|
||||
|
||||
if ($this->module_info->skin)
|
||||
$this->setTemplatePath(sprintf($this->module_path.'skins/%s', $this->module_info->skin));
|
||||
{
|
||||
$templatePath = (sprintf($this->module_path.'skins/%s', $this->module_info->skin));
|
||||
}
|
||||
else
|
||||
$this->setTemplatePath($this->module_path.'skins/default');
|
||||
|
||||
{
|
||||
$templatePath = ($this->module_path.'skins/default');
|
||||
}
|
||||
|
||||
$page_content = $oTemplate->compile($templatePath, 'content');
|
||||
|
||||
return $page_content;
|
||||
}
|
||||
|
||||
function _getOutsideContent(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue