]> git.immae.eu Git - github/wallabag/wallabag.git/blame - inc/3rdparty/htmlpurifier/HTMLPurifier/Printer/CSSDefinition.php
remove autoload section in composer.json
[github/wallabag/wallabag.git] / inc / 3rdparty / htmlpurifier / HTMLPurifier / Printer / CSSDefinition.php
CommitLineData
d4949327
NL
1<?php\r
2\r
3class HTMLPurifier_Printer_CSSDefinition extends HTMLPurifier_Printer\r
4{\r
5 /**\r
6 * @type HTMLPurifier_CSSDefinition\r
7 */\r
8 protected $def;\r
9\r
10 /**\r
11 * @param HTMLPurifier_Config $config\r
12 * @return string\r
13 */\r
14 public function render($config)\r
15 {\r
16 $this->def = $config->getCSSDefinition();\r
17 $ret = '';\r
18\r
19 $ret .= $this->start('div', array('class' => 'HTMLPurifier_Printer'));\r
20 $ret .= $this->start('table');\r
21\r
22 $ret .= $this->element('caption', 'Properties ($info)');\r
23\r
24 $ret .= $this->start('thead');\r
25 $ret .= $this->start('tr');\r
26 $ret .= $this->element('th', 'Property', array('class' => 'heavy'));\r
27 $ret .= $this->element('th', 'Definition', array('class' => 'heavy', 'style' => 'width:auto;'));\r
28 $ret .= $this->end('tr');\r
29 $ret .= $this->end('thead');\r
30\r
31 ksort($this->def->info);\r
32 foreach ($this->def->info as $property => $obj) {\r
33 $name = $this->getClass($obj, 'AttrDef_');\r
34 $ret .= $this->row($property, $name);\r
35 }\r
36\r
37 $ret .= $this->end('table');\r
38 $ret .= $this->end('div');\r
39\r
40 return $ret;\r
41 }\r
42}\r
43\r
44// vim: et sw=4 sts=4\r