mirror of
https://github.com/monstra-cms/monstra.git
synced 2025-08-16 18:14:07 +02:00
#431 general structure changes
This commit is contained in:
@@ -1,9 +1,6 @@
|
||||
<?php
|
||||
namespace Monstra;
|
||||
|
||||
use Url;
|
||||
use Response;
|
||||
|
||||
/**
|
||||
* This file is part of the Monstra.
|
||||
*
|
||||
@@ -28,17 +25,4 @@ class Themes
|
||||
$this->monstra = $c;
|
||||
}
|
||||
|
||||
public function renderTemplate($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;
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user