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
1.4KB

  1. <?php
  2. /**
  3. * XHTML 1.1 Presentation Module, defines simple presentation-related
  4. * markup. Text Extension Module.
  5. * @note The official XML Schema and DTD specs further divide this into
  6. * two modules:
  7. * - Block Presentation (hr)
  8. * - Inline Presentation (b, big, i, small, sub, sup, tt)
  9. * We have chosen not to heed this distinction, as content_sets
  10. * provides satisfactory disambiguation.
  11. */
  12. class HTMLPurifier_HTMLModule_Presentation extends HTMLPurifier_HTMLModule
  13. {
  14. /**
  15. * @type string
  16. */
  17. public $name = 'Presentation';
  18. /**
  19. * @param HTMLPurifier_Config $config
  20. */
  21. public function setup($config)
  22. {
  23. $this->addElement('hr', 'Block', 'Empty', 'Common');
  24. $this->addElement('sub', 'Inline', 'Inline', 'Common');
  25. $this->addElement('sup', 'Inline', 'Inline', 'Common');
  26. $b = $this->addElement('b', 'Inline', 'Inline', 'Common');
  27. $b->formatting = true;
  28. $big = $this->addElement('big', 'Inline', 'Inline', 'Common');
  29. $big->formatting = true;
  30. $i = $this->addElement('i', 'Inline', 'Inline', 'Common');
  31. $i->formatting = true;
  32. $small = $this->addElement('small', 'Inline', 'Inline', 'Common');
  33. $small->formatting = true;
  34. $tt = $this->addElement('tt', 'Inline', 'Inline', 'Common');
  35. $tt->formatting = true;
  36. }
  37. }
  38. // vim: et sw=4 sts=4