init
This commit is contained in:
commit
c9def51b7e
38 changed files with 5755 additions and 0 deletions
19
reitanlage-oranienburg.php
Normal file
19
reitanlage-oranienburg.php
Normal file
|
@ -0,0 +1,19 @@
|
|||
<?php
|
||||
namespace Grav\Theme;
|
||||
|
||||
use Grav\Common\Grav;
|
||||
use Grav\Common\Theme;
|
||||
|
||||
class ReitanlageOranienburg extends Theme
|
||||
{
|
||||
// Access plugin events in this class
|
||||
|
||||
// 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');
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue