modif comtabilite

This commit is contained in:
2019-01-16 16:23:31 +01:00
parent 6b741a9666
commit 9312edc3ae
1844 changed files with 158848 additions and 55874 deletions
+9
View File
@@ -50,6 +50,7 @@ class YoutubePlugin extends Plugin
'onTwigExtensions' => ['onTwigExtensions', 0],
'onTwigSiteVariables' => ['onTwigSiteVariables', 0],
'onTwigTemplatePaths' => ['onTwigTemplatePaths', 0],
'onShortcodeHandlers' => ['onShortcodeHandlers', 0],
]);
}
@@ -126,4 +127,12 @@ class YoutubePlugin extends Plugin
{
$this->grav['twig']->twig_paths[] = __DIR__ . '/templates';
}
/**
* Initialize shortcodes
*/
public function onShortcodeHandlers()
{
$this->grav['shortcode']->registerAllShortcodes(__DIR__.'/shortcodes');
}
}