Head Cleaner - Version 1.3.1

Version Description

Download this release

Release Info

Developer wokamoto
Plugin Icon wp plugin Head Cleaner
Version 1.3.1
Comparing to
See all releases

Code changes from version 1.3.0 to 1.3.1

head-cleaner.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
- Version: 1.3.0
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
@@ -109,7 +109,7 @@ if (!class_exists('wokController') || !class_exists('wokScriptManager'))
109
  //**************************************************************************************
110
  class HeadCleanerController extends wokController {
111
  public $plugin_name = 'head-cleaner';
112
- public $plugin_ver = '1.3.0';
113
 
114
  // Deafault Options
115
  private $options_default = array(
@@ -452,7 +452,7 @@ class HeadCleanerController extends wokController {
452
  $css_tag = ''; $inner_css = ''; $css_src = array();
453
  $elements = $dom->find("link[rel='stylesheet']");
454
  foreach ((array) $elements as $element) {
455
- $tag = trim($element);
456
  if (strpos($css_tag, $tag) === FALSE) {
457
  if (strpos($element->href, $this->wp_url) === FALSE) {
458
  $css_tag .= $tag . "\n";
@@ -547,11 +547,11 @@ class HeadCleanerController extends wokController {
547
  $version = '1';
548
  $js_libs[$product][$version] = $src;
549
  } elseif ($this->head_js[$src] === FALSE) {
550
- $foot_js .= trim($element) . "\n";
551
  } elseif (strpos($src, $this->wp_url) === FALSE) {
552
- $script_tag .= trim($element) . "\n";
553
  } else {
554
- $inner_js .= trim($element) . "\n";
555
  $js_src[] = $element->src;
556
  }
557
  }
@@ -689,15 +689,15 @@ class HeadCleanerController extends wokController {
689
  $inline_js .= $this->_remove_comment($element->innertext, 'js');
690
  } else {
691
  if (strpos($element->src, $this->wp_url) === FALSE) {
692
- $script_tag .= trim($element) . "\n";
693
  } else {
694
- $inner_js .= trim($element) . "\n";
695
  $js_src[] = preg_replace('/\.gz$/i', '', $element->src);
696
  }
697
  }
698
  break;
699
  default:
700
- $tag = trim($element);
701
  if (strpos($other_tag, $tag) === FALSE && ! preg_match('/^<\!\-+/', $tag))
702
  $other_tag .= $tag . "\n";
703
  break;
@@ -786,7 +786,7 @@ class HeadCleanerController extends wokController {
786
  $type = '';
787
  $tags = array();
788
  foreach ((array) $elements as $element) {
789
- $tag = trim($element);
790
  $type = strtolower($element->tag);
791
  if (strpos($html, $tag) === FALSE) {
792
  switch($type) {
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
+ Version: 1.3.1
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
109
  //**************************************************************************************
110
  class HeadCleanerController extends wokController {
111
  public $plugin_name = 'head-cleaner';
112
+ public $plugin_ver = '1.3.1';
113
 
114
  // Deafault Options
115
  private $options_default = array(
452
  $css_tag = ''; $inner_css = ''; $css_src = array();
453
  $elements = $dom->find("link[rel='stylesheet']");
454
  foreach ((array) $elements as $element) {
455
+ $tag = trim($element->outertext);
456
  if (strpos($css_tag, $tag) === FALSE) {
457
  if (strpos($element->href, $this->wp_url) === FALSE) {
458
  $css_tag .= $tag . "\n";
547
  $version = '1';
548
  $js_libs[$product][$version] = $src;
549
  } elseif ($this->head_js[$src] === FALSE) {
550
+ $foot_js .= trim($element->outertext) . "\n";
551
  } elseif (strpos($src, $this->wp_url) === FALSE) {
552
+ $script_tag .= trim($element->outertext) . "\n";
553
  } else {
554
+ $inner_js .= trim($element->outertext) . "\n";
555
  $js_src[] = $element->src;
556
  }
557
  }
689
  $inline_js .= $this->_remove_comment($element->innertext, 'js');
690
  } else {
691
  if (strpos($element->src, $this->wp_url) === FALSE) {
692
+ $script_tag .= trim($element->outertext) . "\n";
693
  } else {
694
+ $inner_js .= trim($element->outertext) . "\n";
695
  $js_src[] = preg_replace('/\.gz$/i', '', $element->src);
696
  }
697
  }
698
  break;
699
  default:
700
+ $tag = trim($element->outertext);
701
  if (strpos($other_tag, $tag) === FALSE && ! preg_match('/^<\!\-+/', $tag))
702
  $other_tag .= $tag . "\n";
703
  break;
786
  $type = '';
787
  $tags = array();
788
  foreach ((array) $elements as $element) {
789
+ $tag = trim($element->outertext);
790
  $type = strtolower($element->tag);
791
  if (strpos($html, $tag) === FALSE) {
792
  switch($type) {
languages/head-cleaner-de_DE.mo ADDED
Binary file
languages/head-cleaner-de_DE.po ADDED
@@ -0,0 +1,212 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Head Cleaner\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-03-09 17:56+0900\n"
6
+ "PO-Revision-Date: 2009-09-15 14:31+0100\n"
7
+ "Last-Translator: Carsten Tauber <carsten.tauber@greatsolution.de>\n"
8
+ "Language-Team: GREATsolution <carsten.tauber@greatsolution.de>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=utf-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "X-Poedit-Language: German\n"
13
+ "X-Poedit-Country: GERMANY\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "X-Poedit-KeywordsList: __;_e\n"
16
+ "X-Poedit-Basepath: .\n"
17
+ "X-Poedit-SearchPath-0: ..\n"
18
+
19
+ # description
20
+ msgid "Cleaning tags from your WordPress header and footer."
21
+ msgstr ""
22
+
23
+ #: ../head-cleaner.php:1405
24
+ msgid "Head Cleaner"
25
+ msgstr "Head Cleaner"
26
+
27
+ #: ../head-cleaner.php:1414
28
+ #: ../includes/common-controller.php:166
29
+ msgid "Settings"
30
+ msgstr "Einstellungen"
31
+
32
+ #: ../head-cleaner.php:1501
33
+ #: ../head-cleaner.php:1511
34
+ #: ../head-cleaner.php:1521
35
+ msgid "Done!"
36
+ msgstr "Fertig!"
37
+
38
+ #: ../head-cleaner.php:1533
39
+ msgid "Head Cleaner Options"
40
+ msgstr "Head Cleaner Optionen"
41
+
42
+ #: ../head-cleaner.php:1541
43
+ msgid "CSS and JavaScript are cached on the server."
44
+ msgstr "CSS und JavaScript vom Server cachen"
45
+
46
+ #: ../head-cleaner.php:1545
47
+ msgid "Put JavaScripts at the Bottom."
48
+ msgstr "Javascript an das Ende des Quelltextes"
49
+
50
+ #: ../head-cleaner.php:1549
51
+ msgid "CSS and JS are dynamically generated."
52
+ msgstr "CSS und JS werden dynamisch generiert."
53
+
54
+ #: ../head-cleaner.php:1557
55
+ msgid "Two or more CSS is combined."
56
+ msgstr "Zwei oder mehr CSS werden kombiniert."
57
+
58
+ #: ../head-cleaner.php:1561
59
+ msgid "CSS is optimized."
60
+ msgstr "CSS optimieren"
61
+
62
+ #: ../head-cleaner.php:1564
63
+ msgid "Default media attribute applied to CSS."
64
+ msgstr "Standardmedienattribut für CSS (z.B. \"Screen\")"
65
+
66
+ #: ../head-cleaner.php:1573
67
+ msgid "Two or more JavaScript is combined."
68
+ msgstr "Zwei oder mehr JavaScripts sind kombiniert"
69
+
70
+ #: ../head-cleaner.php:1577
71
+ msgid "JavaScript is minified."
72
+ msgstr "Javascript minimieren"
73
+
74
+ #: ../head-cleaner.php:1581
75
+ msgid "Bottom JavaScript is combined, too."
76
+ msgstr "JavaScript ist am Ende des Quelltextes ebenfalls kombiniert."
77
+
78
+ #: ../head-cleaner.php:1589
79
+ msgid "Remove generator tag."
80
+ msgstr "Entferne Generatortag"
81
+
82
+ #: ../head-cleaner.php:1593
83
+ msgid "Remove RSD link tag."
84
+ msgstr "Entferne RSD Linktag"
85
+
86
+ #: ../head-cleaner.php:1597
87
+ msgid "Remove wlwmanifest link tag."
88
+ msgstr "Entferne Windows Live Writer link tag"
89
+
90
+ #: ../head-cleaner.php:1604
91
+ msgid "Debug mode"
92
+ msgstr "Debuggingmodus"
93
+
94
+ #: ../head-cleaner.php:1617
95
+ msgid "The CSS optimization settings"
96
+ msgstr "CSS Optimierungsmaßnahmen"
97
+
98
+ #: ../head-cleaner.php:1619
99
+ msgid "Compression (code layout):"
100
+ msgstr "Kompression (Code Layout)"
101
+
102
+ #: ../head-cleaner.php:1621
103
+ msgid "Highest (no readability, smallest size)"
104
+ msgstr "Maximal (keine Lesbarkeit, kleinste Größe)"
105
+
106
+ #: ../head-cleaner.php:1622
107
+ msgid "High (moderate readability, smaller size)"
108
+ msgstr "Hoch (Moderate Lesbarkeit, kleinere Größe)"
109
+
110
+ #: ../head-cleaner.php:1623
111
+ msgid "Standard (balance between readability and size)"
112
+ msgstr "Standard (Balance zwischen Lesbarkeit und Größe)"
113
+
114
+ #: ../head-cleaner.php:1624
115
+ msgid "Low (higher readability)"
116
+ msgstr "wenig (höhere Lesbarkeit)"
117
+
118
+ #: ../head-cleaner.php:1627
119
+ msgid "Optimise shorthands"
120
+ msgstr "optimiere CSS Shorthands"
121
+
122
+ #: ../head-cleaner.php:1629
123
+ msgid "All optimisations"
124
+ msgstr "Alle Optimierungen"
125
+
126
+ #: ../head-cleaner.php:1630
127
+ msgid "Safe optimisations"
128
+ msgstr "Optimierung speichern"
129
+
130
+ #: ../head-cleaner.php:1631
131
+ msgid "Don't optimise"
132
+ msgstr "nicht optimieren"
133
+
134
+ #: ../head-cleaner.php:1636
135
+ msgid "Compress colors"
136
+ msgstr "komprimiere Farben"
137
+
138
+ #: ../head-cleaner.php:1639
139
+ msgid "Compress font-weight"
140
+ msgstr "Komprimiere font-weight"
141
+
142
+ #: ../head-cleaner.php:1642
143
+ msgid "Remove unnecessary backslashes"
144
+ msgstr "entferne unnötige Backslashes"
145
+
146
+ #: ../head-cleaner.php:1650
147
+ msgid "Active JavaScripts"
148
+ msgstr "Aktiviere Javascripte"
149
+
150
+ #: ../head-cleaner.php:1653
151
+ msgid "Move to footer"
152
+ msgstr "an das Ende des Quelltextes"
153
+
154
+ #: ../head-cleaner.php:1654
155
+ msgid "JavaScripts"
156
+ msgstr "JavaScripte"
157
+
158
+ #: ../head-cleaner.php:1666
159
+ msgid "Active Filters"
160
+ msgstr "aktive Filter"
161
+
162
+ #: ../head-cleaner.php:1669
163
+ #: ../head-cleaner.php:1706
164
+ msgid "Off the subject"
165
+ msgstr "nach Betreff"
166
+
167
+ #: ../head-cleaner.php:1670
168
+ #: ../head-cleaner.php:1707
169
+ msgid "Remove"
170
+ msgstr "entfernen"
171
+
172
+ #: ../head-cleaner.php:1671
173
+ msgid "Head filters"
174
+ msgstr "Filter oben"
175
+
176
+ #: ../head-cleaner.php:1673
177
+ #: ../head-cleaner.php:1710
178
+ msgid "Priority"
179
+ msgstr "Priorität"
180
+
181
+ #: ../head-cleaner.php:1708
182
+ msgid "Bottom filters"
183
+ msgstr "Filter unten"
184
+
185
+ #: ../head-cleaner.php:1744
186
+ msgid "Update Options"
187
+ msgstr "Einstellungen speichern"
188
+
189
+ #: ../head-cleaner.php:1749
190
+ msgid "Remove all cache files"
191
+ msgstr "Alle Cache Dateien löschen"
192
+
193
+ #: ../head-cleaner.php:1752
194
+ msgid "All cache files are removed."
195
+ msgstr "Alle Cache Dateien wurden gelöscht."
196
+
197
+ #: ../head-cleaner.php:1753
198
+ msgid "Remove All Cache Files"
199
+ msgstr "Alle Cache Dateien löschen"
200
+
201
+ #: ../head-cleaner.php:1758
202
+ msgid "Uninstall"
203
+ msgstr "Deinstallieren"
204
+
205
+ #: ../head-cleaner.php:1761
206
+ msgid "All the settings of &quot;Head Cleaner&quot; are deleted."
207
+ msgstr "Alle Einstellungen des \"Head cleaner\" wurden gelöscht."
208
+
209
+ #: ../head-cleaner.php:1762
210
+ msgid "Delete Options"
211
+ msgstr "Einstellungen löschen"
212
+
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJ
4
  Tags: head, header, footer, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 2.8.4
7
- Stable tag: 1.3.0
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
@@ -40,6 +40,7 @@ To speed up the loading of JavaScript and CSS.
40
  "Head Cleaner" has been translated into languages. Our thanks and appreciation must go to the following for their contributions:
41
 
42
  * Belorussian (by) - <a href="http://www.comfi.com/" title="Marcis Gasuns">Marcis Gasuns</a>
 
43
  * Japanese (ja) - <a href="http://dogmap.jp/" title="Wataru OKAMOTO">Wataru OKAMOTO</a> (plugin author)
44
  * Spanish (es) - <a href="http://tolingo.com/" title="tolingo.com - Franz Hartmann">Franz Hartmann</a>
45
  * Russian (ru) - <a href="http://antsar.info/" title="ilyuha">ilyuha</a>
4
  Tags: head, header, footer, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 2.8.4
7
+ Stable tag: 1.3.1
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
40
  "Head Cleaner" has been translated into languages. Our thanks and appreciation must go to the following for their contributions:
41
 
42
  * Belorussian (by) - <a href="http://www.comfi.com/" title="Marcis Gasuns">Marcis Gasuns</a>
43
+ * German (de) - Carsten
44
  * Japanese (ja) - <a href="http://dogmap.jp/" title="Wataru OKAMOTO">Wataru OKAMOTO</a> (plugin author)
45
  * Spanish (es) - <a href="http://tolingo.com/" title="tolingo.com - Franz Hartmann">Franz Hartmann</a>
46
  * Russian (ru) - <a href="http://antsar.info/" title="ilyuha">ilyuha</a>
readme_ja.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJ
4
  Tags: head optimization, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 2.8.4
7
- Stable tag: 1.3.0
8
 
9
  Head �� footer �����|�����܂��B
10
 
@@ -38,6 +38,7 @@ WordPress
38
  "Head Cleaner" ���e����ɖ|�󂵂Ă������������X�Ɋ��ӂ����߂āB
39
 
40
  * Belorussian (by) - <a href="http://www.comfi.com/" title="Marcis Gasuns" rel="nofollow">Marcis Gasuns</a>
 
41
  * Japanese (ja) - <a href="http://dogmap.jp/" title="Wataru OKAMOTO">Wataru OKAMOTO</a> (plugin author)
42
  * Spanish (es) - <a href="http://tolingo.com/" title="tolingo.com - Franz Hartmann">Franz Hartmann</a>
43
  * Russian (ru) - <a href="http://antsar.info/" title="ilyuha">ilyuha</a>
4
  Tags: head optimization, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 2.8.4
7
+ Stable tag: 1.3.1
8
 
9
  Head �� footer �����|�����܂��B
10
 
38
  "Head Cleaner" ���e����ɖ|�󂵂Ă������������X�Ɋ��ӂ����߂āB
39
 
40
  * Belorussian (by) - <a href="http://www.comfi.com/" title="Marcis Gasuns" rel="nofollow">Marcis Gasuns</a>
41
+ * German (de) - Carsten
42
  * Japanese (ja) - <a href="http://dogmap.jp/" title="Wataru OKAMOTO">Wataru OKAMOTO</a> (plugin author)
43
  * Spanish (es) - <a href="http://tolingo.com/" title="tolingo.com - Franz Hartmann">Franz Hartmann</a>
44
  * Russian (ru) - <a href="http://antsar.info/" title="ilyuha">ilyuha</a>