mirror of
https://github.com/pmoreno-rodriguez/grav-theme-future2021.git
synced 2025-06-07 11:58:53 +00:00
22 lines
490 B
PHP
22 lines
490 B
PHP
<?php
|
|
namespace Grav\Theme;
|
|
|
|
use Grav\Common\Grav;
|
|
use Grav\Common\Theme;
|
|
|
|
class Future2021 extends Theme
|
|
{
|
|
public function onThemeInitialized()
|
|
{
|
|
|
|
}
|
|
|
|
// Add images to twig template paths to allow inclusion of SVG files
|
|
public function onTwigLoader()
|
|
{
|
|
$theme_paths = Grav::instance()['locator']->findResources('theme://images');
|
|
foreach($theme_paths as $images_path) {
|
|
$this->grav['twig']->addPath($images_path, 'images');
|
|
}
|
|
}
|
|
}
|