diff --git a/four-creative.php b/four-creative.php index f651fbd..472f033 100644 --- a/four-creative.php +++ b/four-creative.php @@ -5,14 +5,5 @@ use Grav\Common\Theme; class FourCreative extends Theme { - public static function getSubscribedEvents() - { - return ['onTwigExtensions' => ['onTwigExtensions', 0]]; - } - - public function onTwigExtensions() - { - require_once __DIR__.DIRECTORY_SEPARATOR.'php'.DIRECTORY_SEPARATOR.'DirFilesExtension.php'; - $this->grav['twig']->twig->addExtension(new DirFilesExtension()); - } + // Access plugin events in this class } diff --git a/php/DirFilesExtension.php b/php/DirFilesExtension.php deleted file mode 100644 index 432cfe8..0000000 --- a/php/DirFilesExtension.php +++ /dev/null @@ -1,35 +0,0 @@ -