diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-18 20:07:46 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-01-18 20:07:46 +0100 |
commit | adf17b677edeb2387671f6a0f12123e7497b5938 (patch) | |
tree | 8fd87d7bf5699488ffc12afa991011e80ac1011b /inc/3rdparty/htmlpurifier/HTMLPurifier/AttrTransform/BoolToCSS.php | |
parent | 894cd087f41d605f2f093aaad1300825f705e009 (diff) | |
download | wallabag-adf17b677edeb2387671f6a0f12123e7497b5938.tar.gz wallabag-adf17b677edeb2387671f6a0f12123e7497b5938.tar.zst wallabag-adf17b677edeb2387671f6a0f12123e7497b5938.zip |
remove 3rd libraries
Diffstat (limited to 'inc/3rdparty/htmlpurifier/HTMLPurifier/AttrTransform/BoolToCSS.php')
-rw-r--r-- | inc/3rdparty/htmlpurifier/HTMLPurifier/AttrTransform/BoolToCSS.php | 47 |
1 files changed, 0 insertions, 47 deletions
diff --git a/inc/3rdparty/htmlpurifier/HTMLPurifier/AttrTransform/BoolToCSS.php b/inc/3rdparty/htmlpurifier/HTMLPurifier/AttrTransform/BoolToCSS.php deleted file mode 100644 index 29d7ff26..00000000 --- a/inc/3rdparty/htmlpurifier/HTMLPurifier/AttrTransform/BoolToCSS.php +++ /dev/null | |||
@@ -1,47 +0,0 @@ | |||
1 | <?php | ||
2 | |||
3 | /** | ||
4 | * Pre-transform that changes converts a boolean attribute to fixed CSS | ||
5 | */ | ||
6 | class HTMLPurifier_AttrTransform_BoolToCSS extends HTMLPurifier_AttrTransform | ||
7 | { | ||
8 | /** | ||
9 | * Name of boolean attribute that is trigger. | ||
10 | * @type string | ||
11 | */ | ||
12 | protected $attr; | ||
13 | |||
14 | /** | ||
15 | * CSS declarations to add to style, needs trailing semicolon. | ||
16 | * @type string | ||
17 | */ | ||
18 | protected $css; | ||
19 | |||
20 | /** | ||
21 | * @param string $attr attribute name to convert from | ||
22 | * @param string $css CSS declarations to add to style (needs semicolon) | ||
23 | */ | ||
24 | public function __construct($attr, $css) | ||
25 | { | ||
26 | $this->attr = $attr; | ||
27 | $this->css = $css; | ||
28 | } | ||
29 | |||
30 | /** | ||
31 | * @param array $attr | ||
32 | * @param HTMLPurifier_Config $config | ||
33 | * @param HTMLPurifier_Context $context | ||
34 | * @return array | ||
35 | */ | ||
36 | public function transform($attr, $config, $context) | ||
37 | { | ||
38 | if (!isset($attr[$this->attr])) { | ||
39 | return $attr; | ||
40 | } | ||
41 | unset($attr[$this->attr]); | ||
42 | $this->prependCSS($attr, $this->css); | ||
43 | return $attr; | ||
44 | } | ||
45 | } | ||
46 | |||
47 | // vim: et sw=4 sts=4 | ||