src/Listeners/AddClientAssets.php
public function addForumAssets(ConfigureClientView $event)
    {
        if ($event->isForum()) {
            $event->addAssets([
                __DIR__.'/../../js/forum/dist/extension.js',
            ]);
            //Include css and java for KaTeX
            $event->view->addHeadString('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css">');
            $event->view->addHeadString('<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>');
            $event->view->addHeadString('<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/contrib/auto-render.min.js"></script>');

            $event->addBootstrapper('flagrow/latex/main');
        }
    }
public function addForumAssets(ConfigureClientView $event)
    {
        if ($event->isForum()) {
            $event->addAssets([
                __DIR__.'/../../js/forum/dist/extension.js',
            ]);
            //Include css and java for KaTeX
            $event->view->addHeadString('<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css">');
            $event->view->addHeadString('<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>');
            $event->view->addHeadString('<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/contrib/auto-render.min.js"></script>');

            $event->addBootstrapper('flagrow/latex/main');
        }
    }
public function addForumAssets ( ConfigureClientView $ event ) { if ( $ event -> isForum ( ) ) { $ event -> addAssets ( [ __DIR__ . '/../../js/forum/dist/extension.js' , ] ) ; //Include css and java for KaTeX $ event -> view -> addHeadString ( '<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.css">' ) ; $ event -> view -> addHeadString ( '<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/katex.min.js"></script>' ) ; $ event -> view -> addHeadString ( '<script src="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.5.1/contrib/auto-render.min.js"></script>' ) ; $ event -> addBootstrapper ( 'flagrow/latex/main' ) ; } }
Modifies the client view for the Forum.

@param ConfigureClientView $event
Modifies the client view for the Forum .