26 lines
500 B
PHP
26 lines
500 B
PHP
|
<?php namespace Grav\Theme;
|
||
|
|
||
|
use Grav\Common\Theme;
|
||
|
|
||
|
class Personal extends Theme
|
||
|
{
|
||
|
public static function getSubscribedEvents()
|
||
|
{
|
||
|
return [
|
||
|
'onThemeInitialized' => ['onThemeInitialized', 0]
|
||
|
];
|
||
|
}
|
||
|
|
||
|
public function onThemeInitialized()
|
||
|
{
|
||
|
$this->enable([
|
||
|
'onTwigSiteVariables' => ['onTwigSiteVariables', 0]
|
||
|
]);
|
||
|
}
|
||
|
|
||
|
public function onTwigSiteVariables()
|
||
|
{
|
||
|
$this->grav['twig']->twig_vars['theme_config'] = $this->grav['config']->get('themes.personal');
|
||
|
}
|
||
|
}
|