A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
Du kannst nicht mehr als 25 Themen auswählen Themen müssen entweder mit einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

43 Zeilen
1005B

  1. <?php
  2. namespace App\BbCode\Tag;
  3. use JBBCode\CodeDefinition;
  4. use JBBCode\ElementNode;
  5. class Quote extends CodeDefinition
  6. {
  7. public function __construct()
  8. {
  9. parent::__construct('quote', null, true);
  10. }
  11. public function asHtml(ElementNode $e)
  12. {
  13. return 'lol';
  14. }
  15. // public function format(TokenTag $tokenTag): string
  16. // {
  17. // $attrs = $tokenTag->parseArgument();
  18. // return view('partial/bbcode/quote', [
  19. // 'thread' => $attrs->threadId ?? 1,
  20. // 'page' => $attrs->threadPage ?? 1,
  21. // 'postId' => $attrs->postId ?? 1,
  22. // 'username' => $attrs->username ?? 'Unknown',
  23. // 'content' => $tokenTag->getText()
  24. // ]);
  25. // }
  26. // public function getName(): string
  27. // {
  28. // return 'quote';
  29. // }
  30. // public function getOriginalText(TokenTag $tokenTag): string
  31. // {
  32. // return "[{$this->getName()}]{$tokenTag->getText()}[/{$this->getName()}";
  33. // }
  34. }