mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Allow page skin to contain content_modify.blade.php or content_modify.html #2500
This commit is contained in:
parent
cac3ec1165
commit
67c0066f90
1 changed files with 11 additions and 2 deletions
|
|
@ -305,8 +305,17 @@ class PageAdminView extends Page
|
|||
Context::set('oDocument', $oDocument);
|
||||
Context::set('mid', $this->module_info->mid);
|
||||
|
||||
$this->setLayoutFile('');
|
||||
$this->setTemplateFile('article_content_modify');
|
||||
$this->setLayoutAndTemplatePaths($isMobile ? 'M' : 'P', $this->module_info);
|
||||
$skin_path = rtrim($this->getTemplatePath(), '/') . '/';
|
||||
if (file_exists($skin_path . 'content_modify.blade.php') || file_exists($skin_path . 'content_modify.html'))
|
||||
{
|
||||
$this->setTemplateFile('content_modify');
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->setTemplatePath($this->module_path . 'tpl');
|
||||
$this->setTemplateFile('article_content_modify');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue