You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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');
|
|
}
|
|
}
|