mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-13 00:24:27 +02:00
#431 general structure changes
This commit is contained in:
@@ -98,6 +98,22 @@ class Page
|
||||
return $file;
|
||||
}
|
||||
|
||||
/**
|
||||
* Render page
|
||||
*/
|
||||
public function renderPage($page)
|
||||
{
|
||||
if (empty($page['template'])) {
|
||||
$template_name = 'index';
|
||||
} else {
|
||||
$template_name = $page['template'];
|
||||
}
|
||||
|
||||
$template_ext = '.php';
|
||||
|
||||
include THEMES_PATH . '/' . $this->monstra['config']->get('site.theme') . '/' . $template_name . $template_ext;
|
||||
}
|
||||
|
||||
/**
|
||||
* Page parser
|
||||
*/
|
||||
|
Reference in New Issue
Block a user