mirror of
https://github.com/getgrav/grav.git
synced 2026-09-02 02:36:12 +02:00
added 'theme' to config containing current theme configuration so now possible to just to {{ config.theme.dropdown_enabled }} #406
This commit is contained in:
@@ -171,6 +171,8 @@ class Themes extends Iterator
|
||||
exit("Theme '$name' does not exist, unable to display page.");
|
||||
}
|
||||
|
||||
$this->config->set('theme', $config->get('themes.' . $name));
|
||||
|
||||
if (empty($class)) {
|
||||
$class = new Theme($grav, $config, $name);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user