1
0
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:
Awilum
2018-03-06 00:36:09 +03:00
parent 0057b27a88
commit 315c517698
3 changed files with 27 additions and 5 deletions

View File

@@ -62,10 +62,6 @@ class Monstra extends Container
// Start the session
//\Session::start();
$container['markdown'] = function ($c) {
return new ParsedownExtra();
};
$container['events'] = function ($c) {
return new EventDispatcher();
};
@@ -80,6 +76,10 @@ class Monstra extends Container
$container['plugins']->init();
$container['markdown'] = function ($c) {
return new ParsedownExtra();
};
$container['pages'] = function ($c) {
return new Pages($c);
};

View File

@@ -25,4 +25,11 @@ class Themes
$this->monstra = $c;
}
public function getTemplate($template_name)
{
$template_ext = '.php';
include THEMES_PATH . '/' . $this->monstra['config']->get('site.theme') . '/' . $template_name . $template_ext;
}
}