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