[ ['autoload', 100000], // TODO: Remove when plugin requires Grav >=1.7 ['onPluginsInitialized', 0] ] ]; } /** * Composer autoload. *is * @return ClassLoader */ public function autoload(): ClassLoader { return require __DIR__ . '/vendor/autoload.php'; } /** * Initialize the plugin */ public function onPluginsInitialized() { // Don't proceed if we are in the admin plugin // if ($this->isAdmin()) { // return; // } // Enable the main events we are interested in $this->enable([ // Put your main events here ]); } public function onAdminTwigTemplatePaths($event){ $paths = $event['paths']; $paths[] = __DIR__ . '/admin/themes/grav/templates'; $event['paths'] = $paths; } }