|
- <?php
-
- namespace App\BbCode\Tag;
-
- use JBBCode\CodeDefinition;
- use JBBCode\ElementNode;
-
- class Quote extends CodeDefinition
- {
-
- public function __construct()
- {
- parent::__construct('quote', null, true);
- }
-
- public function asHtml(ElementNode $e)
- {
- return 'lol';
- }
-
- // public function format(TokenTag $tokenTag): string
- // {
- // $attrs = $tokenTag->parseArgument();
- // return view('partial/bbcode/quote', [
- // 'thread' => $attrs->threadId ?? 1,
- // 'page' => $attrs->threadPage ?? 1,
- // 'postId' => $attrs->postId ?? 1,
- // 'username' => $attrs->username ?? 'Unknown',
- // 'content' => $tokenTag->getText()
- // ]);
- // }
-
- // public function getName(): string
- // {
- // return 'quote';
- // }
-
- // public function getOriginalText(TokenTag $tokenTag): string
- // {
- // return "[{$this->getName()}]{$tokenTag->getText()}[/{$this->getName()}";
- // }
- }
|