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:
devjin 2012-08-30 09:27:19 +00:00
parent 6cfdca4604
commit cdbdef7adc
14 changed files with 189 additions and 83 deletions

View file

@ -89,17 +89,33 @@ class pageMobile extends pageView {
return $page_content;
}
function _getArticleContent(){
function _getArticleContent()
{
$oTemplate = &TemplateHandler::getInstance();
$oDocumentModel = &getModel('document');
$oDocument = $oDocumentModel->getDocument(0, true);
if ($this->module_info->document_srl){
$document_srl = $this->module_info->document_srl;
if ($this->module_info->mdocument_srl)
{
$document_srl = $this->module_info->mdocument_srl;
$oDocument->setDocument($document_srl);
Context::set('document_srl', $document_srl);
}
Context::set('oDocument', $oDocument);
$this->setTemplatePath(sprintf($this->module_path.'m.skins/%s', $this->module_info->mskin));
if ($this->module_info->mskin)
{
$templatePath = (sprintf($this->module_path.'m.skins/%s', $this->module_info->skin));
}
else
{
$templatePath = ($this->module_path.'m.skins/default');
}
$page_content = $oTemplate->compile($templatePath, 'mobile');
return $page_content;
}
function _getOutsideContent(){