A bare bones front-end for knockout designed for maximum compatibility with "obsolete" browsers
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

43 líneas
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. }