Version Description
Download this release
Release Info
Developer | wokamoto |
Plugin | Head Cleaner |
Version | 1.1.1 |
Comparing to | |
See all releases |
Code changes from version 1.1.0 to 1.1.1
- head-cleaner.php +106 -48
- languages/head-cleaner-ja.mo +0 -0
- languages/head-cleaner-ja.po +62 -50
- languages/head-cleaner.pot +60 -48
- readme.txt +3 -1
- readme_ja.txt +2 -1
head-cleaner.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Head Cleaner
|
4 |
-
Version: 1.1.
|
5 |
Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
|
6 |
Description: Cleaning tags from your WordPress header and footer.
|
7 |
Author: wokamoto
|
@@ -46,6 +46,7 @@ Includes:
|
|
46 |
// Defines
|
47 |
//**************************************************************************************
|
48 |
define('HC_PRIORITY', 10000);
|
|
|
49 |
define('HC_XMLNS', 'http://www.w3.org/1999/xhtml');
|
50 |
|
51 |
|
@@ -105,7 +106,7 @@ if (!class_exists('wokController') || !class_exists('wokScriptManager'))
|
|
105 |
//**************************************************************************************
|
106 |
class HeadCleanerController extends wokController {
|
107 |
public $plugin_name = 'head-cleaner';
|
108 |
-
public $plugin_ver = '1.1.
|
109 |
|
110 |
// Deafault Options
|
111 |
private $options_default = array(
|
@@ -129,6 +130,7 @@ class HeadCleanerController extends wokController {
|
|
129 |
, 'filters' => array('wp_head' => array(), 'wp_footer' => array())
|
130 |
, 'priority' => array('wp_head' => array(), 'wp_footer' => array())
|
131 |
, 'head_js' => array()
|
|
|
132 |
);
|
133 |
private $csstidy_template = array(
|
134 |
'low_compression'
|
@@ -148,12 +150,13 @@ class HeadCleanerController extends wokController {
|
|
148 |
private $mtime_start;
|
149 |
|
150 |
private $filters;
|
|
|
151 |
private $no_conflict = array(
|
152 |
'comment_quicktags' // Comment Quicktags
|
153 |
, 'stats_footer' // WordPress.com Stats
|
154 |
, 'uga_wp_footer_track' // Ultimate Google Analytics
|
|
|
155 |
);
|
156 |
-
private $head_js = array();
|
157 |
|
158 |
/**********************************************************
|
159 |
* Constructor
|
@@ -191,7 +194,8 @@ class HeadCleanerController extends wokController {
|
|
191 |
}
|
192 |
|
193 |
// Require PHP Libraries
|
194 |
-
|
|
|
195 |
}
|
196 |
|
197 |
/**********************************************************
|
@@ -205,6 +209,29 @@ class HeadCleanerController extends wokController {
|
|
205 |
$wk_options[$key] = (isset($wk_options[$key]) ? $wk_options[$key] : $val);
|
206 |
}
|
207 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
208 |
return $wk_options;
|
209 |
}
|
210 |
|
@@ -289,6 +316,8 @@ class HeadCleanerController extends wokController {
|
|
289 |
if ($this->_chk_filters_update()) {
|
290 |
$this->options['filters'] = $this->filters;
|
291 |
$this->options['head_js'] = $this->head_js;
|
|
|
|
|
292 |
$this->updateOptions();
|
293 |
}
|
294 |
}
|
@@ -851,7 +880,7 @@ class HeadCleanerController extends wokController {
|
|
851 |
//**************************************************************************************
|
852 |
// Get absolute url
|
853 |
//**************************************************************************************
|
854 |
-
private function _abs_url($path, $base_path){
|
855 |
if (preg_match('/^https?:\/\//i', $base_path))
|
856 |
$base_path = str_replace($this->wp_url, ABSPATH, $base_path);
|
857 |
$absolute_path = realpath($base_path . '/' . $path);
|
@@ -1274,26 +1303,30 @@ class HeadCleanerController extends wokController {
|
|
1274 |
//**************************************************************************************
|
1275 |
// Optimise CSS
|
1276 |
//**************************************************************************************
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1277 |
private function _css_optimise($buffer) {
|
1278 |
$css = trim($buffer . "\n");
|
1279 |
|
1280 |
if ($this->options['css_optimise']) {
|
1281 |
-
|
1282 |
-
$search = array(); $replace = array();
|
1283 |
-
foreach ($matches as $match) {
|
1284 |
-
$abs_url = (! preg_match('/^https?:\/\//i', trim($match[1]))
|
1285 |
-
? $this->_abs_url(trim($match[1]), $base_path)
|
1286 |
-
: trim($match[1])
|
1287 |
-
);
|
1288 |
-
$content = $this->_file_read($abs_url);
|
1289 |
-
$content = $this->_css_url_edit($content, $abs_url);
|
1290 |
-
$search[] = $match[0];
|
1291 |
-
$replace[] = $content;
|
1292 |
-
}
|
1293 |
-
$css = str_replace($search, $replace, $css);
|
1294 |
-
unset($match); unset($search); unset($replace);
|
1295 |
-
}
|
1296 |
-
unset($matches);
|
1297 |
|
1298 |
$csstidy = new csstidy();
|
1299 |
$csstidy->set_cfg('optimise_shorthands', $this->options['csstidy_option']['optimise_shorthands']);
|
@@ -1310,7 +1343,6 @@ class HeadCleanerController extends wokController {
|
|
1310 |
return $css . (!empty($css) ? "\n" : '');
|
1311 |
}
|
1312 |
|
1313 |
-
|
1314 |
//**************************************************************************************
|
1315 |
// Create cache dir
|
1316 |
//**************************************************************************************
|
@@ -1453,6 +1485,10 @@ class HeadCleanerController extends wokController {
|
|
1453 |
$this->options['csstidy_option']['compress_font_weight'] = (isset($_POST['compress_font_weight']) && $_POST['compress_font_weight'] == 'on' ? true : false);
|
1454 |
$this->options['csstidy_option']['remove_bslash'] = (isset($_POST['remove_bslash']) && $_POST['remove_bslash'] == 'on' ? true : false);
|
1455 |
|
|
|
|
|
|
|
|
|
1456 |
foreach ((array) $this->options['head_js'] as $javascript => $value) {
|
1457 |
if (count($head_js) > 0 && array_search($javascript, $head_js) !== FALSE)
|
1458 |
$this->options['head_js'][$javascript] = FALSE;
|
@@ -1462,6 +1498,7 @@ class HeadCleanerController extends wokController {
|
|
1462 |
unset($head_js);
|
1463 |
|
1464 |
$tag = 'wp_head';
|
|
|
1465 |
foreach ((array) $this->options['filters'][$tag] as $function_name => $priority) {
|
1466 |
if (count($head_filters) > 0 && array_search($function_name, $head_filters) !== FALSE)
|
1467 |
$this->options['priority'][$tag][$function_name] = HC_PRIORITY + 1;
|
@@ -1470,6 +1507,9 @@ class HeadCleanerController extends wokController {
|
|
1470 |
elseif (isset($this->options['priority'][$tag][$function_name]))
|
1471 |
$this->options['priority'][$tag][$function_name] = $priority;
|
1472 |
}
|
|
|
|
|
|
|
1473 |
unset($head_filters);
|
1474 |
|
1475 |
$tag = 'wp_footer';
|
@@ -1572,6 +1612,21 @@ class HeadCleanerController extends wokController {
|
|
1572 |
$out .= "</tr>\n";
|
1573 |
}
|
1574 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1575 |
$out .= "<tr>";
|
1576 |
$out .= "<td>";
|
1577 |
$out .= "<input type=\"checkbox\" name=\"debug_mode\" id=\"debug_mode\" value=\"on\" style=\"margin-right:0.5em;\"".($this->options['debug_mode'] === true ? " checked=\"true\"" : "")." />";
|
@@ -1619,22 +1674,6 @@ class HeadCleanerController extends wokController {
|
|
1619 |
$out .= "</div>\n";
|
1620 |
}
|
1621 |
|
1622 |
-
// Active JavaScripts
|
1623 |
-
$out .= "<div style=\"margin-top:2em;\" id=\"active_javascripts\">\n";
|
1624 |
-
$out .= "<h3>" . __('Active JavaScripts', $this->textdomain_name) . "</h3>" ;
|
1625 |
-
$out .= "<table><tbody>\n";
|
1626 |
-
$out .= "<tr>";
|
1627 |
-
$out .= "<th>" . __('Move to footer', $this->textdomain_name) . "</th>\n";
|
1628 |
-
$out .= "<th>" . __('JavaScripts', $this->textdomain_name) . "</th>\n";
|
1629 |
-
foreach ($this->options['head_js'] as $javascript => $value) {
|
1630 |
-
$out .= "<tr>";
|
1631 |
-
$out .= "<th><input type=\"checkbox\" name=\"head_js[$i]\" value=\"$javascript\"".($value === FALSE ? " checked=\"true\"" : "")." /></th>";
|
1632 |
-
$out .= "<td>$javascript</td>";
|
1633 |
-
$i++;
|
1634 |
-
}
|
1635 |
-
$out .= "</tbody></table>";
|
1636 |
-
$out .= "</div>\n";
|
1637 |
-
|
1638 |
// Active Filters
|
1639 |
$out .= "<div style=\"margin-top:2em;\" id=\"active_filters\">\n";
|
1640 |
$out .= "<h3>" . __('Active Filters', $this->textdomain_name) . "</h3>" ;
|
@@ -1714,6 +1753,22 @@ class HeadCleanerController extends wokController {
|
|
1714 |
$out .= "</tbody></table>";
|
1715 |
$out .= "</div>\n";
|
1716 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1717 |
// Add Update Button
|
1718 |
$out .= "<p style=\"margin-top:1em\"><input type=\"submit\" name=\"options_update\" value=\"".__('Update Options', $this->textdomain_name)." »\" class=\"button\" /></p>";
|
1719 |
$out .= "</form></div>\n";
|
@@ -1769,7 +1824,7 @@ class HeadCleanerController extends wokController {
|
|
1769 |
foreach ($active_filters as $priority => $filters) {
|
1770 |
foreach ($filters as $filter) {
|
1771 |
$function_name = (is_array($filter['function'])
|
1772 |
-
? get_class($filter['function'][0]) . '::' . $filter['function'][1]
|
1773 |
: $filter['function']
|
1774 |
);
|
1775 |
$this->filters[$tag][$function_name] = $priority;
|
@@ -1827,7 +1882,7 @@ class HeadCleanerController extends wokController {
|
|
1827 |
foreach ($active_filters as $priority => $filters) {
|
1828 |
foreach ($filters as $filter) {
|
1829 |
$function_name = (is_array($filter['function'])
|
1830 |
-
? get_class($filter['function'][0]) . '::' . $filter['function'][1]
|
1831 |
: $filter['function']
|
1832 |
);
|
1833 |
if ( isset($custom_priority[$function_name]) && $custom_priority[$function_name] != $priority) {
|
@@ -1898,16 +1953,19 @@ global $head_cleaner;
|
|
1898 |
|
1899 |
$head_cleaner = new HeadCleanerController();
|
1900 |
|
1901 |
-
|
1902 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
1903 |
|
1904 |
-
|
1905 |
-
add_action('
|
|
|
1906 |
|
1907 |
-
if (function_exists('register_activation_hook')) {
|
1908 |
-
register_activation_hook(__FILE__, array(&$head_cleaner, 'activation'));
|
1909 |
-
register_deactivation_hook(__FILE__, array(&$head_cleaner, 'deactivation'));
|
1910 |
}
|
1911 |
-
|
1912 |
endif;
|
1913 |
?>
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Head Cleaner
|
4 |
+
Version: 1.1.1
|
5 |
Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
|
6 |
Description: Cleaning tags from your WordPress header and footer.
|
7 |
Author: wokamoto
|
46 |
// Defines
|
47 |
//**************************************************************************************
|
48 |
define('HC_PRIORITY', 10000);
|
49 |
+
define('HC_ANALYZE_EXPIRED', 60 * 60 * 24 * 7);
|
50 |
define('HC_XMLNS', 'http://www.w3.org/1999/xhtml');
|
51 |
|
52 |
|
106 |
//**************************************************************************************
|
107 |
class HeadCleanerController extends wokController {
|
108 |
public $plugin_name = 'head-cleaner';
|
109 |
+
public $plugin_ver = '1.1.1';
|
110 |
|
111 |
// Deafault Options
|
112 |
private $options_default = array(
|
130 |
, 'filters' => array('wp_head' => array(), 'wp_footer' => array())
|
131 |
, 'priority' => array('wp_head' => array(), 'wp_footer' => array())
|
132 |
, 'head_js' => array()
|
133 |
+
, 'analyze_expired'=> 0
|
134 |
);
|
135 |
private $csstidy_template = array(
|
136 |
'low_compression'
|
150 |
private $mtime_start;
|
151 |
|
152 |
private $filters;
|
153 |
+
private $head_js;
|
154 |
private $no_conflict = array(
|
155 |
'comment_quicktags' // Comment Quicktags
|
156 |
, 'stats_footer' // WordPress.com Stats
|
157 |
, 'uga_wp_footer_track' // Ultimate Google Analytics
|
158 |
+
, 'tam_google_analytics::insert_tracking_code' // TaM Google Analytics
|
159 |
);
|
|
|
160 |
|
161 |
/**********************************************************
|
162 |
* Constructor
|
194 |
}
|
195 |
|
196 |
// Require PHP Libraries
|
197 |
+
if (!is_admin())
|
198 |
+
$this->_require_libraries();
|
199 |
}
|
200 |
|
201 |
/**********************************************************
|
209 |
$wk_options[$key] = (isset($wk_options[$key]) ? $wk_options[$key] : $val);
|
210 |
}
|
211 |
|
212 |
+
if (time() > $wk_options['analyze_expired']) {
|
213 |
+
$filters = $this->options_default['filters'];
|
214 |
+
|
215 |
+
$priority = $this->options_default['priority'];
|
216 |
+
foreach ($wk_options['priority'] as $tag => $filters) {
|
217 |
+
foreach ($filters as $key => $val) {
|
218 |
+
if ($val <= 0 || $val > HC_PRIORITY)
|
219 |
+
$priority[$tag][$key] = $val;
|
220 |
+
}
|
221 |
+
}
|
222 |
+
unset($filters);
|
223 |
+
|
224 |
+
$head_js = $this->options_default['head_js'];
|
225 |
+
foreach ($wk_options['head_js'] as $key => $val) {
|
226 |
+
if ($val === FALSE)
|
227 |
+
$head_js[$key] = $val;
|
228 |
+
}
|
229 |
+
|
230 |
+
$wk_options['filters'] = $filters;
|
231 |
+
$wk_options['priority'] = $priority;
|
232 |
+
$wk_options['head_js'] = $head_js;
|
233 |
+
$wk_options['analyze_expired'] = time() + HC_ANALYZE_EXPIRED;
|
234 |
+
}
|
235 |
return $wk_options;
|
236 |
}
|
237 |
|
316 |
if ($this->_chk_filters_update()) {
|
317 |
$this->options['filters'] = $this->filters;
|
318 |
$this->options['head_js'] = $this->head_js;
|
319 |
+
if (time() > $this->options['analyze_expired'])
|
320 |
+
$this->options['analyze_expired'] = time() + HC_ANALYZE_EXPIRED;
|
321 |
$this->updateOptions();
|
322 |
}
|
323 |
}
|
880 |
//**************************************************************************************
|
881 |
// Get absolute url
|
882 |
//**************************************************************************************
|
883 |
+
private function _abs_url($path, $base_path = ''){
|
884 |
if (preg_match('/^https?:\/\//i', $base_path))
|
885 |
$base_path = str_replace($this->wp_url, ABSPATH, $base_path);
|
886 |
$absolute_path = realpath($base_path . '/' . $path);
|
1303 |
//**************************************************************************************
|
1304 |
// Optimise CSS
|
1305 |
//**************************************************************************************
|
1306 |
+
private function _css_import($css) {
|
1307 |
+
if (preg_match_all('/@import[ \t]*url[ \t]*\([\'"]?([^\)]*)[\'"]?\);?/i', $css, $matches, PREG_SET_ORDER)) {
|
1308 |
+
$search = array(); $replace = array();
|
1309 |
+
foreach ($matches as $match) {
|
1310 |
+
$filename = str_replace($this->wp_url, ABSPATH, trim($match[1]));
|
1311 |
+
$content = $this->_file_read($filename);
|
1312 |
+
$content = $this->_css_url_edit($content, $filename);
|
1313 |
+
if (preg_match('/@import[ \t]*url[ \t]*\[\'"]?[^\)]*[\'"]?\;?/i', $content))
|
1314 |
+
$content = $this->_css_import($content);
|
1315 |
+
$search[] = $match[0];
|
1316 |
+
$replace[] = $content;
|
1317 |
+
}
|
1318 |
+
$css = str_replace($search, $replace, $css);
|
1319 |
+
unset($match); unset($search); unset($replace);
|
1320 |
+
}
|
1321 |
+
unset($matches);
|
1322 |
+
return $css;
|
1323 |
+
}
|
1324 |
+
|
1325 |
private function _css_optimise($buffer) {
|
1326 |
$css = trim($buffer . "\n");
|
1327 |
|
1328 |
if ($this->options['css_optimise']) {
|
1329 |
+
$css = $this->_css_import($css);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1330 |
|
1331 |
$csstidy = new csstidy();
|
1332 |
$csstidy->set_cfg('optimise_shorthands', $this->options['csstidy_option']['optimise_shorthands']);
|
1343 |
return $css . (!empty($css) ? "\n" : '');
|
1344 |
}
|
1345 |
|
|
|
1346 |
//**************************************************************************************
|
1347 |
// Create cache dir
|
1348 |
//**************************************************************************************
|
1485 |
$this->options['csstidy_option']['compress_font_weight'] = (isset($_POST['compress_font_weight']) && $_POST['compress_font_weight'] == 'on' ? true : false);
|
1486 |
$this->options['csstidy_option']['remove_bslash'] = (isset($_POST['remove_bslash']) && $_POST['remove_bslash'] == 'on' ? true : false);
|
1487 |
|
1488 |
+
$rm_generator = (isset($_POST['rm_generator']) && $_POST['rm_generator'] == 'on' ? true : false);
|
1489 |
+
$rm_rsd_link = (isset($_POST['rm_rsd_link']) && $_POST['rm_rsd_link'] == 'on' ? true : false);
|
1490 |
+
$rm_manifest = (isset($_POST['rm_manifest']) && $_POST['rm_manifest'] == 'on' ? true : false);
|
1491 |
+
|
1492 |
foreach ((array) $this->options['head_js'] as $javascript => $value) {
|
1493 |
if (count($head_js) > 0 && array_search($javascript, $head_js) !== FALSE)
|
1494 |
$this->options['head_js'][$javascript] = FALSE;
|
1498 |
unset($head_js);
|
1499 |
|
1500 |
$tag = 'wp_head';
|
1501 |
+
|
1502 |
foreach ((array) $this->options['filters'][$tag] as $function_name => $priority) {
|
1503 |
if (count($head_filters) > 0 && array_search($function_name, $head_filters) !== FALSE)
|
1504 |
$this->options['priority'][$tag][$function_name] = HC_PRIORITY + 1;
|
1507 |
elseif (isset($this->options['priority'][$tag][$function_name]))
|
1508 |
$this->options['priority'][$tag][$function_name] = $priority;
|
1509 |
}
|
1510 |
+
$this->options['priority'][$tag]['wp_generator'] = ($rm_generator ? -1 : $this->options['filters'][$tag]['wp_generator']);
|
1511 |
+
$this->options['priority'][$tag]['rsd_link'] = ($rm_rsd_link ? -1 : $this->options['filters'][$tag]['rsd_link']);
|
1512 |
+
$this->options['priority'][$tag]['wlwmanifest_link'] = ($rm_manifest ? -1 : $this->options['filters'][$tag]['wlwmanifest_link']);
|
1513 |
unset($head_filters);
|
1514 |
|
1515 |
$tag = 'wp_footer';
|
1612 |
$out .= "</tr>\n";
|
1613 |
}
|
1614 |
|
1615 |
+
$out .= "<tr>";
|
1616 |
+
$out .= "<td>";
|
1617 |
+
$out .= "<input type=\"checkbox\" name=\"rm_generator\" id=\"rm_generator\" value=\"on\" style=\"margin-right:0.5em;\"".(isset($this->options['priority']['wp_head']['wp_generator']) && $this->options['priority']['wp_head']['wp_generator'] <= 0 ? " checked=\"true\"" : "")." />";
|
1618 |
+
$out .= __('Remove generator tag.', $this->textdomain_name);
|
1619 |
+
$out .= "</td>";
|
1620 |
+
$out .= "<td>";
|
1621 |
+
$out .= "<input type=\"checkbox\" name=\"rm_rsd_link\" id=\"rm_rsd_link\" value=\"on\" style=\"margin-right:0.5em;\"".(isset($this->options['priority']['wp_head']['rsd_link']) && $this->options['priority']['wp_head']['rsd_link'] <= 0 ? " checked=\"true\"" : "")." />";
|
1622 |
+
$out .= __('Remove RSD link tag.', $this->textdomain_name);
|
1623 |
+
$out .= "</td>";
|
1624 |
+
$out .= "<td>";
|
1625 |
+
$out .= "<input type=\"checkbox\" name=\"rm_manifest\" id=\"rm_manifest\" value=\"on\" style=\"margin-right:0.5em;\"".(isset($this->options['priority']['wp_head']['wlwmanifest_link']) && $this->options['priority']['wp_head']['wlwmanifest_link'] <= 0 ? " checked=\"true\"" : "")." />";
|
1626 |
+
$out .= __('Remove wlwmanifest link tag.', $this->textdomain_name);
|
1627 |
+
$out .= "</td>";
|
1628 |
+
$out .= "</tr>\n";
|
1629 |
+
|
1630 |
$out .= "<tr>";
|
1631 |
$out .= "<td>";
|
1632 |
$out .= "<input type=\"checkbox\" name=\"debug_mode\" id=\"debug_mode\" value=\"on\" style=\"margin-right:0.5em;\"".($this->options['debug_mode'] === true ? " checked=\"true\"" : "")." />";
|
1674 |
$out .= "</div>\n";
|
1675 |
}
|
1676 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1677 |
// Active Filters
|
1678 |
$out .= "<div style=\"margin-top:2em;\" id=\"active_filters\">\n";
|
1679 |
$out .= "<h3>" . __('Active Filters', $this->textdomain_name) . "</h3>" ;
|
1753 |
$out .= "</tbody></table>";
|
1754 |
$out .= "</div>\n";
|
1755 |
|
1756 |
+
// Active JavaScripts
|
1757 |
+
$out .= "<div style=\"margin-top:2em;\" id=\"active_javascripts\">\n";
|
1758 |
+
$out .= "<h3>" . __('Active JavaScripts', $this->textdomain_name) . "</h3>" ;
|
1759 |
+
$out .= "<table><tbody>\n";
|
1760 |
+
$out .= "<tr>";
|
1761 |
+
$out .= "<th>" . __('Move to footer', $this->textdomain_name) . "</th>\n";
|
1762 |
+
$out .= "<th>" . __('JavaScripts', $this->textdomain_name) . "</th>\n";
|
1763 |
+
foreach ($this->options['head_js'] as $javascript => $value) {
|
1764 |
+
$out .= "<tr>";
|
1765 |
+
$out .= "<th><input type=\"checkbox\" name=\"head_js[$i]\" value=\"$javascript\"".($value === FALSE ? " checked=\"true\"" : "")." /></th>";
|
1766 |
+
$out .= "<td>$javascript</td>";
|
1767 |
+
$i++;
|
1768 |
+
}
|
1769 |
+
$out .= "</tbody></table>";
|
1770 |
+
$out .= "</div>\n";
|
1771 |
+
|
1772 |
// Add Update Button
|
1773 |
$out .= "<p style=\"margin-top:1em\"><input type=\"submit\" name=\"options_update\" value=\"".__('Update Options', $this->textdomain_name)." »\" class=\"button\" /></p>";
|
1774 |
$out .= "</form></div>\n";
|
1824 |
foreach ($active_filters as $priority => $filters) {
|
1825 |
foreach ($filters as $filter) {
|
1826 |
$function_name = (is_array($filter['function'])
|
1827 |
+
? (get_class($filter['function'][0]) !== FALSE ? get_class($filter['function'][0]) : $filter['function'][0]) . '::' . $filter['function'][1]
|
1828 |
: $filter['function']
|
1829 |
);
|
1830 |
$this->filters[$tag][$function_name] = $priority;
|
1882 |
foreach ($active_filters as $priority => $filters) {
|
1883 |
foreach ($filters as $filter) {
|
1884 |
$function_name = (is_array($filter['function'])
|
1885 |
+
? (get_class($filter['function'][0]) !== FALSE ? get_class($filter['function'][0]) : $filter['function'][0]) . '::' . $filter['function'][1]
|
1886 |
: $filter['function']
|
1887 |
);
|
1888 |
if ( isset($custom_priority[$function_name]) && $custom_priority[$function_name] != $priority) {
|
1953 |
|
1954 |
$head_cleaner = new HeadCleanerController();
|
1955 |
|
1956 |
+
if (is_admin()) {
|
1957 |
+
add_action('admin_menu', array(&$head_cleaner, 'admin_menu'));
|
1958 |
+
add_filter('plugin_action_links', array(&$head_cleaner, 'plugin_setting_links'), 10, 2 );
|
1959 |
+
|
1960 |
+
if (function_exists('register_activation_hook')) {
|
1961 |
+
register_activation_hook(__FILE__, array(&$head_cleaner, 'activation'));
|
1962 |
+
register_deactivation_hook(__FILE__, array(&$head_cleaner, 'deactivation'));
|
1963 |
+
}
|
1964 |
|
1965 |
+
} else {
|
1966 |
+
add_action('get_header', array(&$head_cleaner, 'head_start'));
|
1967 |
+
add_action('wp_footer', array(&$head_cleaner, 'filters_save'), 11);
|
1968 |
|
|
|
|
|
|
|
1969 |
}
|
|
|
1970 |
endif;
|
1971 |
?>
|
languages/head-cleaner-ja.mo
CHANGED
Binary file
|
languages/head-cleaner-ja.po
CHANGED
@@ -2,8 +2,8 @@ msgid ""
|
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Head Cleaner\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2009-03-09
|
6 |
-
"PO-Revision-Date: 2009-03-09
|
7 |
"Last-Translator: wokamoto <wokamoto1973@gmail.com>\n"
|
8 |
"Language-Team: JAPANESE <http://wppluginsj.sourceforge.jp/>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -16,181 +16,193 @@ msgstr ""
|
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
-
#: ../head-cleaner.php:
|
20 |
msgid "Head Cleaner"
|
21 |
msgstr "Head Cleaner"
|
22 |
|
23 |
-
#: ../head-cleaner.php:
|
24 |
#: ../includes/common-controller.php:166
|
25 |
msgid "Settings"
|
26 |
msgstr "設定"
|
27 |
|
28 |
-
#: ../head-cleaner.php:
|
29 |
-
#: ../head-cleaner.php:
|
30 |
-
#: ../head-cleaner.php:
|
31 |
msgid "Done!"
|
32 |
msgstr "完了!"
|
33 |
|
34 |
-
#: ../head-cleaner.php:
|
35 |
msgid "Head Cleaner Options"
|
36 |
msgstr "Head Cleaner 設定"
|
37 |
|
38 |
-
#: ../head-cleaner.php:
|
39 |
msgid "CSS and JavaScript are cached on the server."
|
40 |
msgstr "CSS と JavaScript を、サーバ上にキャッシュする"
|
41 |
|
42 |
-
#: ../head-cleaner.php:
|
43 |
msgid "Put JavaScripts at the Bottom."
|
44 |
msgstr "<head> 内の JavaScript を、フッタ領域に移動"
|
45 |
|
46 |
-
#: ../head-cleaner.php:
|
47 |
msgid "CSS and JS are dynamically generated."
|
48 |
msgstr "CSS, JS を動的生成する。"
|
49 |
|
50 |
-
#: ../head-cleaner.php:
|
51 |
msgid "Two or more CSS is combined."
|
52 |
msgstr "複数の CSS を結合する"
|
53 |
|
54 |
-
#: ../head-cleaner.php:
|
55 |
msgid "CSS is optimized."
|
56 |
msgstr "CSS を最適化する"
|
57 |
|
58 |
-
#: ../head-cleaner.php:
|
59 |
msgid "Default media attribute applied to CSS."
|
60 |
msgstr "CSS に適用するデフォルト media 属性"
|
61 |
|
62 |
-
#: ../head-cleaner.php:
|
63 |
msgid "Two or more JavaScript is combined."
|
64 |
msgstr "複数の JavaScript を結合する"
|
65 |
|
66 |
-
#: ../head-cleaner.php:
|
67 |
msgid "JavaScript is minified."
|
68 |
msgstr "JavaScript を小さくする"
|
69 |
|
70 |
-
#: ../head-cleaner.php:
|
71 |
msgid "Bottom JavaScript is combined, too."
|
72 |
msgstr "フッタ領域の JavaScript も対象にする"
|
73 |
|
74 |
-
#: ../head-cleaner.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
75 |
msgid "Debug mode"
|
76 |
msgstr "デバッグモード"
|
77 |
|
78 |
-
#: ../head-cleaner.php:
|
79 |
msgid "The CSS optimization settings"
|
80 |
msgstr "CSS最適化 オプション"
|
81 |
|
82 |
-
#: ../head-cleaner.php:
|
83 |
msgid "Compression (code layout):"
|
84 |
msgstr "圧縮率(コードレイアウト):"
|
85 |
|
86 |
-
#: ../head-cleaner.php:
|
87 |
msgid "Highest (no readability, smallest size)"
|
88 |
msgstr "最高 (改行なし)"
|
89 |
|
90 |
-
#: ../head-cleaner.php:
|
91 |
msgid "High (moderate readability, smaller size)"
|
92 |
msgstr "高 (セレクタ1行表記)"
|
93 |
|
94 |
-
#: ../head-cleaner.php:
|
95 |
msgid "Standard (balance between readability and size)"
|
96 |
msgstr "標準 (プロパティごと改行)"
|
97 |
|
98 |
-
#: ../head-cleaner.php:
|
99 |
msgid "Low (higher readability)"
|
100 |
msgstr "低 (プロパティをインデント)"
|
101 |
|
102 |
-
#: ../head-cleaner.php:
|
103 |
msgid "Optimise shorthands"
|
104 |
msgstr "ショートハンドCSSの最適化"
|
105 |
|
106 |
-
#: ../head-cleaner.php:
|
107 |
msgid "All optimisations"
|
108 |
msgstr "margin,padding,border,backgroundを最適化"
|
109 |
|
110 |
-
#: ../head-cleaner.php:
|
111 |
msgid "Safe optimisations"
|
112 |
msgstr "margin,padding,borderのみ"
|
113 |
|
114 |
-
#: ../head-cleaner.php:
|
115 |
msgid "Don't optimise"
|
116 |
msgstr "最適化しない"
|
117 |
|
118 |
-
#: ../head-cleaner.php:
|
119 |
msgid "Compress colors"
|
120 |
msgstr "colorの値を簡略化する"
|
121 |
|
122 |
-
#: ../head-cleaner.php:
|
123 |
msgid "Compress font-weight"
|
124 |
msgstr "font-weightを数値にする"
|
125 |
|
126 |
-
#: ../head-cleaner.php:
|
127 |
msgid "Remove unnecessary backslashes"
|
128 |
msgstr "不要なバックスラッシュを削除"
|
129 |
|
130 |
-
#: ../head-cleaner.php:
|
131 |
msgid "Active JavaScripts"
|
132 |
msgstr "<head> 部で有効な JavaScript"
|
133 |
|
134 |
-
#: ../head-cleaner.php:
|
135 |
msgid "Move to footer"
|
136 |
msgstr "フッタに移動"
|
137 |
|
138 |
-
#: ../head-cleaner.php:
|
139 |
msgid "JavaScripts"
|
140 |
msgstr "JavaScript"
|
141 |
|
142 |
-
#: ../head-cleaner.php:
|
143 |
msgid "Active Filters"
|
144 |
msgstr "有効なフィルタ"
|
145 |
|
146 |
-
#: ../head-cleaner.php:
|
147 |
-
#: ../head-cleaner.php:
|
148 |
msgid "Off the subject"
|
149 |
msgstr "対象外"
|
150 |
|
151 |
-
#: ../head-cleaner.php:
|
152 |
-
#: ../head-cleaner.php:
|
153 |
msgid "Remove"
|
154 |
msgstr "削除"
|
155 |
|
156 |
-
#: ../head-cleaner.php:
|
157 |
msgid "Head filters"
|
158 |
msgstr "<head> 内の有効なフィルタ"
|
159 |
|
160 |
-
#: ../head-cleaner.php:
|
161 |
-
#: ../head-cleaner.php:
|
162 |
msgid "Priority"
|
163 |
msgstr "フィルタの優先順位"
|
164 |
|
165 |
-
#: ../head-cleaner.php:
|
166 |
msgid "Bottom filters"
|
167 |
msgstr "フッタ領域の有効なフィルタ"
|
168 |
|
169 |
-
#: ../head-cleaner.php:
|
170 |
msgid "Update Options"
|
171 |
msgstr "更新"
|
172 |
|
173 |
-
#: ../head-cleaner.php:
|
174 |
msgid "Remove all cache files"
|
175 |
msgstr "キャッシュファイル削除"
|
176 |
|
177 |
-
#: ../head-cleaner.php:
|
178 |
msgid "All cache files are removed."
|
179 |
msgstr "キャッシュフォルダ内のファイルをすべて削除する。"
|
180 |
|
181 |
-
#: ../head-cleaner.php:
|
182 |
msgid "Remove All Cache Files"
|
183 |
msgstr "削除"
|
184 |
|
185 |
-
#: ../head-cleaner.php:
|
186 |
msgid "Uninstall"
|
187 |
msgstr "アンインストール"
|
188 |
|
189 |
-
#: ../head-cleaner.php:
|
190 |
msgid "All the settings of "Head Cleaner" are deleted."
|
191 |
msgstr ""Head Cleaner" の設定をすべて消去する。"
|
192 |
|
193 |
-
#: ../head-cleaner.php:
|
194 |
msgid "Delete Options"
|
195 |
msgstr "削除"
|
196 |
|
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-03-09 17:58+0900\n"
|
7 |
"Last-Translator: wokamoto <wokamoto1973@gmail.com>\n"
|
8 |
"Language-Team: JAPANESE <http://wppluginsj.sourceforge.jp/>\n"
|
9 |
"MIME-Version: 1.0\n"
|
16 |
"X-Poedit-Basepath: .\n"
|
17 |
"X-Poedit-SearchPath-0: ..\n"
|
18 |
|
19 |
+
#: ../head-cleaner.php:1405
|
20 |
msgid "Head Cleaner"
|
21 |
msgstr "Head Cleaner"
|
22 |
|
23 |
+
#: ../head-cleaner.php:1414
|
24 |
#: ../includes/common-controller.php:166
|
25 |
msgid "Settings"
|
26 |
msgstr "設定"
|
27 |
|
28 |
+
#: ../head-cleaner.php:1501
|
29 |
+
#: ../head-cleaner.php:1511
|
30 |
+
#: ../head-cleaner.php:1521
|
31 |
msgid "Done!"
|
32 |
msgstr "完了!"
|
33 |
|
34 |
+
#: ../head-cleaner.php:1533
|
35 |
msgid "Head Cleaner Options"
|
36 |
msgstr "Head Cleaner 設定"
|
37 |
|
38 |
+
#: ../head-cleaner.php:1541
|
39 |
msgid "CSS and JavaScript are cached on the server."
|
40 |
msgstr "CSS と JavaScript を、サーバ上にキャッシュする"
|
41 |
|
42 |
+
#: ../head-cleaner.php:1545
|
43 |
msgid "Put JavaScripts at the Bottom."
|
44 |
msgstr "<head> 内の JavaScript を、フッタ領域に移動"
|
45 |
|
46 |
+
#: ../head-cleaner.php:1549
|
47 |
msgid "CSS and JS are dynamically generated."
|
48 |
msgstr "CSS, JS を動的生成する。"
|
49 |
|
50 |
+
#: ../head-cleaner.php:1557
|
51 |
msgid "Two or more CSS is combined."
|
52 |
msgstr "複数の CSS を結合する"
|
53 |
|
54 |
+
#: ../head-cleaner.php:1561
|
55 |
msgid "CSS is optimized."
|
56 |
msgstr "CSS を最適化する"
|
57 |
|
58 |
+
#: ../head-cleaner.php:1564
|
59 |
msgid "Default media attribute applied to CSS."
|
60 |
msgstr "CSS に適用するデフォルト media 属性"
|
61 |
|
62 |
+
#: ../head-cleaner.php:1573
|
63 |
msgid "Two or more JavaScript is combined."
|
64 |
msgstr "複数の JavaScript を結合する"
|
65 |
|
66 |
+
#: ../head-cleaner.php:1577
|
67 |
msgid "JavaScript is minified."
|
68 |
msgstr "JavaScript を小さくする"
|
69 |
|
70 |
+
#: ../head-cleaner.php:1581
|
71 |
msgid "Bottom JavaScript is combined, too."
|
72 |
msgstr "フッタ領域の JavaScript も対象にする"
|
73 |
|
74 |
+
#: ../head-cleaner.php:1589
|
75 |
+
msgid "Remove generator tag."
|
76 |
+
msgstr "メタタグ "generator" を削除"
|
77 |
+
|
78 |
+
#: ../head-cleaner.php:1593
|
79 |
+
msgid "Remove RSD link tag."
|
80 |
+
msgstr "リンクタグ "RSD" を削除"
|
81 |
+
|
82 |
+
#: ../head-cleaner.php:1597
|
83 |
+
msgid "Remove wlwmanifest link tag."
|
84 |
+
msgstr "リンクタグ "wlwmanifest" を削除."
|
85 |
+
|
86 |
+
#: ../head-cleaner.php:1604
|
87 |
msgid "Debug mode"
|
88 |
msgstr "デバッグモード"
|
89 |
|
90 |
+
#: ../head-cleaner.php:1617
|
91 |
msgid "The CSS optimization settings"
|
92 |
msgstr "CSS最適化 オプション"
|
93 |
|
94 |
+
#: ../head-cleaner.php:1619
|
95 |
msgid "Compression (code layout):"
|
96 |
msgstr "圧縮率(コードレイアウト):"
|
97 |
|
98 |
+
#: ../head-cleaner.php:1621
|
99 |
msgid "Highest (no readability, smallest size)"
|
100 |
msgstr "最高 (改行なし)"
|
101 |
|
102 |
+
#: ../head-cleaner.php:1622
|
103 |
msgid "High (moderate readability, smaller size)"
|
104 |
msgstr "高 (セレクタ1行表記)"
|
105 |
|
106 |
+
#: ../head-cleaner.php:1623
|
107 |
msgid "Standard (balance between readability and size)"
|
108 |
msgstr "標準 (プロパティごと改行)"
|
109 |
|
110 |
+
#: ../head-cleaner.php:1624
|
111 |
msgid "Low (higher readability)"
|
112 |
msgstr "低 (プロパティをインデント)"
|
113 |
|
114 |
+
#: ../head-cleaner.php:1627
|
115 |
msgid "Optimise shorthands"
|
116 |
msgstr "ショートハンドCSSの最適化"
|
117 |
|
118 |
+
#: ../head-cleaner.php:1629
|
119 |
msgid "All optimisations"
|
120 |
msgstr "margin,padding,border,backgroundを最適化"
|
121 |
|
122 |
+
#: ../head-cleaner.php:1630
|
123 |
msgid "Safe optimisations"
|
124 |
msgstr "margin,padding,borderのみ"
|
125 |
|
126 |
+
#: ../head-cleaner.php:1631
|
127 |
msgid "Don't optimise"
|
128 |
msgstr "最適化しない"
|
129 |
|
130 |
+
#: ../head-cleaner.php:1636
|
131 |
msgid "Compress colors"
|
132 |
msgstr "colorの値を簡略化する"
|
133 |
|
134 |
+
#: ../head-cleaner.php:1639
|
135 |
msgid "Compress font-weight"
|
136 |
msgstr "font-weightを数値にする"
|
137 |
|
138 |
+
#: ../head-cleaner.php:1642
|
139 |
msgid "Remove unnecessary backslashes"
|
140 |
msgstr "不要なバックスラッシュを削除"
|
141 |
|
142 |
+
#: ../head-cleaner.php:1650
|
143 |
msgid "Active JavaScripts"
|
144 |
msgstr "<head> 部で有効な JavaScript"
|
145 |
|
146 |
+
#: ../head-cleaner.php:1653
|
147 |
msgid "Move to footer"
|
148 |
msgstr "フッタに移動"
|
149 |
|
150 |
+
#: ../head-cleaner.php:1654
|
151 |
msgid "JavaScripts"
|
152 |
msgstr "JavaScript"
|
153 |
|
154 |
+
#: ../head-cleaner.php:1666
|
155 |
msgid "Active Filters"
|
156 |
msgstr "有効なフィルタ"
|
157 |
|
158 |
+
#: ../head-cleaner.php:1669
|
159 |
+
#: ../head-cleaner.php:1706
|
160 |
msgid "Off the subject"
|
161 |
msgstr "対象外"
|
162 |
|
163 |
+
#: ../head-cleaner.php:1670
|
164 |
+
#: ../head-cleaner.php:1707
|
165 |
msgid "Remove"
|
166 |
msgstr "削除"
|
167 |
|
168 |
+
#: ../head-cleaner.php:1671
|
169 |
msgid "Head filters"
|
170 |
msgstr "<head> 内の有効なフィルタ"
|
171 |
|
172 |
+
#: ../head-cleaner.php:1673
|
173 |
+
#: ../head-cleaner.php:1710
|
174 |
msgid "Priority"
|
175 |
msgstr "フィルタの優先順位"
|
176 |
|
177 |
+
#: ../head-cleaner.php:1708
|
178 |
msgid "Bottom filters"
|
179 |
msgstr "フッタ領域の有効なフィルタ"
|
180 |
|
181 |
+
#: ../head-cleaner.php:1744
|
182 |
msgid "Update Options"
|
183 |
msgstr "更新"
|
184 |
|
185 |
+
#: ../head-cleaner.php:1749
|
186 |
msgid "Remove all cache files"
|
187 |
msgstr "キャッシュファイル削除"
|
188 |
|
189 |
+
#: ../head-cleaner.php:1752
|
190 |
msgid "All cache files are removed."
|
191 |
msgstr "キャッシュフォルダ内のファイルをすべて削除する。"
|
192 |
|
193 |
+
#: ../head-cleaner.php:1753
|
194 |
msgid "Remove All Cache Files"
|
195 |
msgstr "削除"
|
196 |
|
197 |
+
#: ../head-cleaner.php:1758
|
198 |
msgid "Uninstall"
|
199 |
msgstr "アンインストール"
|
200 |
|
201 |
+
#: ../head-cleaner.php:1761
|
202 |
msgid "All the settings of "Head Cleaner" are deleted."
|
203 |
msgstr ""Head Cleaner" の設定をすべて消去する。"
|
204 |
|
205 |
+
#: ../head-cleaner.php:1762
|
206 |
msgid "Delete Options"
|
207 |
msgstr "削除"
|
208 |
|
languages/head-cleaner.pot
CHANGED
@@ -10,181 +10,193 @@ msgstr ""
|
|
10 |
"Content-Type: text/plain; charset=iso-8859-1\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
|
13 |
-
#: ../head-cleaner.php:
|
14 |
msgid "Head Cleaner"
|
15 |
msgstr ""
|
16 |
|
17 |
-
#: ../head-cleaner.php:
|
18 |
#: ../includes/common-controller.php:166
|
19 |
msgid "Settings"
|
20 |
msgstr ""
|
21 |
|
22 |
-
#: ../head-cleaner.php:
|
23 |
-
#: ../head-cleaner.php:
|
24 |
-
#: ../head-cleaner.php:
|
25 |
msgid "Done!"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: ../head-cleaner.php:
|
29 |
msgid "Head Cleaner Options"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: ../head-cleaner.php:
|
33 |
msgid "CSS and JavaScript are cached on the server."
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: ../head-cleaner.php:
|
37 |
msgid "Put JavaScripts at the Bottom."
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: ../head-cleaner.php:
|
41 |
msgid "CSS and JS are dynamically generated."
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: ../head-cleaner.php:
|
45 |
msgid "Two or more CSS is combined."
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: ../head-cleaner.php:
|
49 |
msgid "CSS is optimized."
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: ../head-cleaner.php:
|
53 |
msgid "Default media attribute applied to CSS."
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: ../head-cleaner.php:
|
57 |
msgid "Two or more JavaScript is combined."
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: ../head-cleaner.php:
|
61 |
msgid "JavaScript is minified."
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: ../head-cleaner.php:
|
65 |
msgid "Bottom JavaScript is combined, too."
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: ../head-cleaner.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
msgid "Debug mode"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: ../head-cleaner.php:
|
73 |
msgid "The CSS optimization settings"
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: ../head-cleaner.php:
|
77 |
msgid "Compression (code layout):"
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: ../head-cleaner.php:
|
81 |
msgid "Highest (no readability, smallest size)"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: ../head-cleaner.php:
|
85 |
msgid "High (moderate readability, smaller size)"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: ../head-cleaner.php:
|
89 |
msgid "Standard (balance between readability and size)"
|
90 |
msgstr ""
|
91 |
|
92 |
-
#: ../head-cleaner.php:
|
93 |
msgid "Low (higher readability)"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: ../head-cleaner.php:
|
97 |
msgid "Optimise shorthands"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: ../head-cleaner.php:
|
101 |
msgid "All optimisations"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: ../head-cleaner.php:
|
105 |
msgid "Safe optimisations"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: ../head-cleaner.php:
|
109 |
msgid "Don't optimise"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: ../head-cleaner.php:
|
113 |
msgid "Compress colors"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: ../head-cleaner.php:
|
117 |
msgid "Compress font-weight"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: ../head-cleaner.php:
|
121 |
msgid "Remove unnecessary backslashes"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: ../head-cleaner.php:
|
125 |
msgid "Active JavaScripts"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: ../head-cleaner.php:
|
129 |
msgid "Move to footer"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: ../head-cleaner.php:
|
133 |
msgid "JavaScripts"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: ../head-cleaner.php:
|
137 |
msgid "Active Filters"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: ../head-cleaner.php:
|
141 |
-
#: ../head-cleaner.php:
|
142 |
msgid "Off the subject"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: ../head-cleaner.php:
|
146 |
-
#: ../head-cleaner.php:
|
147 |
msgid "Remove"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: ../head-cleaner.php:
|
151 |
msgid "Head filters"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: ../head-cleaner.php:
|
155 |
-
#: ../head-cleaner.php:
|
156 |
msgid "Priority"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: ../head-cleaner.php:
|
160 |
msgid "Bottom filters"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: ../head-cleaner.php:
|
164 |
msgid "Update Options"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: ../head-cleaner.php:
|
168 |
msgid "Remove all cache files"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: ../head-cleaner.php:
|
172 |
msgid "All cache files are removed."
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: ../head-cleaner.php:
|
176 |
msgid "Remove All Cache Files"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: ../head-cleaner.php:
|
180 |
msgid "Uninstall"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: ../head-cleaner.php:
|
184 |
msgid "All the settings of "Head Cleaner" are deleted."
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: ../head-cleaner.php:
|
188 |
msgid "Delete Options"
|
189 |
msgstr ""
|
190 |
|
10 |
"Content-Type: text/plain; charset=iso-8859-1\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
|
13 |
+
#: ../head-cleaner.php:1405
|
14 |
msgid "Head Cleaner"
|
15 |
msgstr ""
|
16 |
|
17 |
+
#: ../head-cleaner.php:1414
|
18 |
#: ../includes/common-controller.php:166
|
19 |
msgid "Settings"
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: ../head-cleaner.php:1501
|
23 |
+
#: ../head-cleaner.php:1511
|
24 |
+
#: ../head-cleaner.php:1521
|
25 |
msgid "Done!"
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: ../head-cleaner.php:1533
|
29 |
msgid "Head Cleaner Options"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: ../head-cleaner.php:1541
|
33 |
msgid "CSS and JavaScript are cached on the server."
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: ../head-cleaner.php:1545
|
37 |
msgid "Put JavaScripts at the Bottom."
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: ../head-cleaner.php:1549
|
41 |
msgid "CSS and JS are dynamically generated."
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: ../head-cleaner.php:1557
|
45 |
msgid "Two or more CSS is combined."
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: ../head-cleaner.php:1561
|
49 |
msgid "CSS is optimized."
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: ../head-cleaner.php:1564
|
53 |
msgid "Default media attribute applied to CSS."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: ../head-cleaner.php:1573
|
57 |
msgid "Two or more JavaScript is combined."
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: ../head-cleaner.php:1577
|
61 |
msgid "JavaScript is minified."
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: ../head-cleaner.php:1581
|
65 |
msgid "Bottom JavaScript is combined, too."
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: ../head-cleaner.php:1589
|
69 |
+
msgid "Remove generator tag."
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: ../head-cleaner.php:1593
|
73 |
+
msgid "Remove RSD link tag."
|
74 |
+
msgstr ""
|
75 |
+
|
76 |
+
#: ../head-cleaner.php:1597
|
77 |
+
msgid "Remove wlwmanifest link tag."
|
78 |
+
msgstr ""
|
79 |
+
|
80 |
+
#: ../head-cleaner.php:1604
|
81 |
msgid "Debug mode"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: ../head-cleaner.php:1617
|
85 |
msgid "The CSS optimization settings"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: ../head-cleaner.php:1619
|
89 |
msgid "Compression (code layout):"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: ../head-cleaner.php:1621
|
93 |
msgid "Highest (no readability, smallest size)"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: ../head-cleaner.php:1622
|
97 |
msgid "High (moderate readability, smaller size)"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: ../head-cleaner.php:1623
|
101 |
msgid "Standard (balance between readability and size)"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: ../head-cleaner.php:1624
|
105 |
msgid "Low (higher readability)"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: ../head-cleaner.php:1627
|
109 |
msgid "Optimise shorthands"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: ../head-cleaner.php:1629
|
113 |
msgid "All optimisations"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: ../head-cleaner.php:1630
|
117 |
msgid "Safe optimisations"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: ../head-cleaner.php:1631
|
121 |
msgid "Don't optimise"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: ../head-cleaner.php:1636
|
125 |
msgid "Compress colors"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: ../head-cleaner.php:1639
|
129 |
msgid "Compress font-weight"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: ../head-cleaner.php:1642
|
133 |
msgid "Remove unnecessary backslashes"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: ../head-cleaner.php:1650
|
137 |
msgid "Active JavaScripts"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: ../head-cleaner.php:1653
|
141 |
msgid "Move to footer"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: ../head-cleaner.php:1654
|
145 |
msgid "JavaScripts"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: ../head-cleaner.php:1666
|
149 |
msgid "Active Filters"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: ../head-cleaner.php:1669
|
153 |
+
#: ../head-cleaner.php:1706
|
154 |
msgid "Off the subject"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: ../head-cleaner.php:1670
|
158 |
+
#: ../head-cleaner.php:1707
|
159 |
msgid "Remove"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: ../head-cleaner.php:1671
|
163 |
msgid "Head filters"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: ../head-cleaner.php:1673
|
167 |
+
#: ../head-cleaner.php:1710
|
168 |
msgid "Priority"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: ../head-cleaner.php:1708
|
172 |
msgid "Bottom filters"
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: ../head-cleaner.php:1744
|
176 |
msgid "Update Options"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: ../head-cleaner.php:1749
|
180 |
msgid "Remove all cache files"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: ../head-cleaner.php:1752
|
184 |
msgid "All cache files are removed."
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: ../head-cleaner.php:1753
|
188 |
msgid "Remove All Cache Files"
|
189 |
msgstr ""
|
190 |
|
191 |
+
#: ../head-cleaner.php:1758
|
192 |
msgid "Uninstall"
|
193 |
msgstr ""
|
194 |
|
195 |
+
#: ../head-cleaner.php:1761
|
196 |
msgid "All the settings of "Head Cleaner" are deleted."
|
197 |
msgstr ""
|
198 |
|
199 |
+
#: ../head-cleaner.php:1762
|
200 |
msgid "Delete Options"
|
201 |
msgstr ""
|
202 |
|
readme.txt
CHANGED
@@ -1,15 +1,17 @@
|
|
1 |
=== Head Cleaner ===
|
2 |
Contributors: wokamoto
|
|
|
3 |
Tags: head, header, footer, javascript, css, optimization, minified, performance
|
4 |
Requires at least: 2.5
|
5 |
Tested up to: 2.7.1
|
6 |
-
Stable tag: 1.1.
|
7 |
|
8 |
Cleaning tags from your WordPress header and footer.
|
9 |
|
10 |
== Description ==
|
11 |
|
12 |
Cleaning tags from your WordPress header and footer.
|
|
|
13 |
|
14 |
= Features =
|
15 |
|
1 |
=== Head Cleaner ===
|
2 |
Contributors: wokamoto
|
3 |
+
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins¤cy_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
|
4 |
Tags: head, header, footer, javascript, css, optimization, minified, performance
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 2.7.1
|
7 |
+
Stable tag: 1.1.1
|
8 |
|
9 |
Cleaning tags from your WordPress header and footer.
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
Cleaning tags from your WordPress header and footer.
|
14 |
+
To speed up the loading of JavaScript and CSS.
|
15 |
|
16 |
= Features =
|
17 |
|
readme_ja.txt
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
=== Head Cleaner ===
|
2 |
Contributors: wokamoto
|
|
|
3 |
Tags: head optimization, javascript, css, optimization, minified, performance
|
4 |
Requires at least: 2.5
|
5 |
Tested up to: 2.7.1
|
6 |
-
Stable tag: 1.1.
|
7 |
|
8 |
Head �� footer �����|�����܂��B
|
9 |
|
1 |
=== Head Cleaner ===
|
2 |
Contributors: wokamoto
|
3 |
+
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=9S8AJCY7XB8F4&lc=JP&item_name=WordPress%20Plugins&item_number=wp%2dplugins¤cy_code=JPY&bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted
|
4 |
Tags: head optimization, javascript, css, optimization, minified, performance
|
5 |
Requires at least: 2.5
|
6 |
Tested up to: 2.7.1
|
7 |
+
Stable tag: 1.1.1
|
8 |
|
9 |
Head �� footer �����|�����܂��B
|
10 |
|