PluginProbe
Autoptimize / 0.2
Autoptimize v0.2
2.2.2 2.3.0 2.3.1 2.3.2 2.3.3 2.3.4 2.4.0 2.4.1 2.4.2 2.4.3 2.4.4 2.5.0 2.5.1 2.6.0 2.6.1 2.6.2 2.7.0 2.7.1 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 All 107 releases
autoptimize / classes / autoptimizeHTML.php

autoptimizeHTML.php in Autoptimize 0.2, at classes/autoptimizeHTML.php

41 lines 580 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 class autoptimizeHTML extends autoptimizeBase
4 {
5 private $url = '';
6
7 //Does nothing
8 public function read()
9 {
10 //Nothing to read for HTML
11 return true;
12 }
13
14 //Joins and optimizes CSS
15 public function minify()
16 {
17 if(class_exists('Minify_HTML'))
18 {
19 //Remove whitespace
20 $this->content = Minify_HTML::minify($this->content);
21 return true;
22 }
23
24 //Didn't minify :(
25 return false;
26 }
27
28 //Does nothing
29 public function cache()
30 {
31 //No cache for HTML
32 return true;
33 }
34
35 //Returns the content
36 public function getcontent()
37 {
38 return $this->content;
39 }
40 }
41