Version Description
Download this release
Release Info
Developer | wokamoto |
Plugin | Head Cleaner |
Version | 1.1.0 |
Comparing to | |
See all releases |
Code changes from version 1.0.3 to 1.1.0
- head-cleaner.php +113 -48
- languages/head-cleaner-ja.mo +0 -0
- languages/head-cleaner-ja.po +63 -50
- languages/head-cleaner.pot +58 -45
- readme.txt +1 -1
- readme_ja.txt +1 -1
head-cleaner.php
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Head Cleaner
|
4 |
-
Version: 1.0
|
5 |
Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
|
6 |
Description: Cleaning tags from your WordPress header and footer.
|
7 |
Author: wokamoto
|
@@ -105,7 +105,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.
|
109 |
|
110 |
// Deafault Options
|
111 |
private $options_default = array(
|
@@ -128,6 +128,7 @@ class HeadCleanerController extends wokController {
|
|
128 |
, 'debug_mode' => false
|
129 |
, 'filters' => array('wp_head' => array(), 'wp_footer' => array())
|
130 |
, 'priority' => array('wp_head' => array(), 'wp_footer' => array())
|
|
|
131 |
);
|
132 |
private $csstidy_template = array(
|
133 |
'low_compression'
|
@@ -148,10 +149,11 @@ class HeadCleanerController extends wokController {
|
|
148 |
|
149 |
private $filters;
|
150 |
private $no_conflict = array(
|
151 |
-
'
|
|
|
152 |
, 'uga_wp_footer_track' // Ultimate Google Analytics
|
153 |
-
, 'comment_quicktags' // Comment Quicktags
|
154 |
);
|
|
|
155 |
|
156 |
/**********************************************************
|
157 |
* Constructor
|
@@ -163,6 +165,7 @@ class HeadCleanerController extends wokController {
|
|
163 |
$this->init(__FILE__);
|
164 |
$this->options = $this->_init_options($this->getOptions());
|
165 |
$this->filters = $this->options['filters'];
|
|
|
166 |
|
167 |
$this->wp_url = trailingslashit(get_bloginfo('wpurl'));
|
168 |
$this->self_url = str_replace(ABSPATH, $this->wp_url, __FILE__);
|
@@ -285,6 +288,7 @@ class HeadCleanerController extends wokController {
|
|
285 |
public function filters_save(){
|
286 |
if ($this->_chk_filters_update()) {
|
287 |
$this->options['filters'] = $this->filters;
|
|
|
288 |
$this->updateOptions();
|
289 |
}
|
290 |
}
|
@@ -368,14 +372,14 @@ class HeadCleanerController extends wokController {
|
|
368 |
$xml_lang = $this->lang;
|
369 |
$lang = $this->lang;
|
370 |
if (preg_match_all('/ +([^ ]*)=[\'"]([^\'"]*)[\'"]/', $html_tag, $mathes, PREG_SET_ORDER)) {
|
371 |
-
foreach ($matches as $
|
372 |
-
switch ($
|
373 |
-
case 'xmlns': $xmlns = $
|
374 |
-
case 'xml:lang': $xml_lang = $
|
375 |
-
case 'lang': $lang = $
|
376 |
}
|
377 |
}
|
378 |
-
unset($
|
379 |
}
|
380 |
unset($matches);
|
381 |
$html_tag = "<html xmlns=\"{$xmlns}\" xml:lang=\"{$xml_lang}\" lang=\"{$lang}\">\n";
|
@@ -457,48 +461,47 @@ class HeadCleanerController extends wokController {
|
|
457 |
unset($element); unset($elements);
|
458 |
|
459 |
if ($this->_is_javascript()) {
|
460 |
-
$inner_js
|
|
|
|
|
|
|
461 |
$elements = $dom->find("script");
|
462 |
-
$js_libs = array();
|
463 |
foreach ((array)$elements as $element) {
|
464 |
if (!isset($element->src)) {
|
465 |
$inline_js .= $this->_remove_comment($element->innertext, 'js');
|
466 |
} else {
|
467 |
$src = trim($element->src);
|
|
|
|
|
|
|
|
|
468 |
if (preg_match('/\/((prototype|jquery|mootools)\.js)\?ver=([\.\d]+)[^\?]*$/i', $src, $matches)) {
|
469 |
list($find, $filename, $product, $version) = $matches;
|
470 |
-
$version = trim(substr($version, -1) === '.' ? substr($version, 0, -1) : $version);
|
471 |
-
if (empty($version))
|
472 |
-
$version = preg_replace('/^.*\/([\.\d]+)\/.*$/', '$1', $src);
|
473 |
-
if (!preg_match('/^[\.\d]*\d$/', $version))
|
474 |
-
$version = '1';
|
475 |
-
$js_libs[$product][$version] = $src;
|
476 |
} elseif (preg_match('/\/((prototype|jquery|mootools)[\-\.](min|[\.\d]+)[^\/]*\.js)\?[^\?]*$/i', $src, $matches)) {
|
477 |
list($find, $filename, $product, $version) = $matches;
|
478 |
-
$version = trim(substr($version, -1) === '.' ? substr($version, 0, -1) : $version);
|
479 |
-
if (empty($version) || $version == 'min')
|
480 |
-
$version = preg_replace('/^.*\/([\.\d]+)\/.*$/', '$1', $src);
|
481 |
-
if (!preg_match('/^[\.\d]*\d$/', $version))
|
482 |
-
$version = '1';
|
483 |
-
$js_libs[$product][$version] = $src;
|
484 |
} elseif (preg_match('/\/scriptaculous\/((builder|controls|dragdrop|effects|wp\-scriptaculous|scriptaculous|slider|sound|unittest)\.js)\?ver\=([\.\d]+)[^\?]*$/i', $src, $matches)) {
|
485 |
list($find, $filename, $product, $version) = $matches;
|
486 |
-
$version = trim(substr($version, -1) === '.' ? substr($version, 0, -1) : $version);
|
487 |
$product = (strpos($product, 'scriptaculous') === FALSE
|
488 |
? 'scriptaculous/' . $product
|
489 |
: 'scriptaculous/scriptaculous');
|
|
|
|
|
|
|
|
|
|
|
490 |
if (empty($version))
|
491 |
$version = preg_replace('/^.*\/([\.\d]+)\/.*$/', '$1', $src);
|
492 |
if (!preg_match('/^[\.\d]*\d$/', $version))
|
493 |
$version = '1';
|
494 |
$js_libs[$product][$version] = $src;
|
495 |
-
} elseif (
|
|
|
|
|
496 |
$script_tag .= trim($element) . "\n";
|
497 |
} else {
|
498 |
$inner_js .= trim($element) . "\n";
|
499 |
$js_src[] = $element->src;
|
500 |
}
|
501 |
-
unset($matches);
|
502 |
}
|
503 |
}
|
504 |
unset($element); unset($elements);
|
@@ -533,6 +536,7 @@ class HeadCleanerController extends wokController {
|
|
533 |
$script_tag = trim($script_tag) . (!empty($script_tag) ? "\n" : '');
|
534 |
$inner_js = trim($inner_js) . (!empty($inner_js) ? "\n" : '');
|
535 |
$inline_js = trim($inline_js) . (!empty($inline_js) ? "\n" : '');
|
|
|
536 |
}
|
537 |
|
538 |
$object_tag = $this->_dom_to_html($dom->find("object"));
|
@@ -554,11 +558,15 @@ class HeadCleanerController extends wokController {
|
|
554 |
;
|
555 |
$ret_val = str_replace('\'', '"', $ret_val);
|
556 |
|
557 |
-
if ($this->options['js_move_foot'])
|
558 |
-
$this->foot_js_src = trim(
|
559 |
-
|
560 |
-
$this->
|
561 |
-
|
|
|
|
|
|
|
|
|
562 |
}
|
563 |
|
564 |
$ret_val = ($ie6
|
@@ -854,6 +862,24 @@ class HeadCleanerController extends wokController {
|
|
854 |
return $url;
|
855 |
}
|
856 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
857 |
//**************************************************************************************
|
858 |
// Read file
|
859 |
//**************************************************************************************
|
@@ -882,20 +908,7 @@ class HeadCleanerController extends wokController {
|
|
882 |
$content = trim($this->_file_read($filename));
|
883 |
switch ($type) {
|
884 |
case 'css':
|
885 |
-
|
886 |
-
$base_path = dirname($filename);
|
887 |
-
$search = array(); $replace = array();
|
888 |
-
foreach ($matches as $matche) {
|
889 |
-
if (! preg_match('/^https?:\/\//i', trim($matche[1]))) {
|
890 |
-
$abs_url = $this->_abs_url(trim($matche[1]), $base_path);
|
891 |
-
$search[] = $matche[0];
|
892 |
-
$replace[] = str_replace(trim($matche[1]), $abs_url, $matche[0]);
|
893 |
-
}
|
894 |
-
}
|
895 |
-
$content = str_replace($search, $replace, $content);
|
896 |
-
unset($matche); unset($search); unset($replace);
|
897 |
-
}
|
898 |
-
unset ($matches);
|
899 |
break;
|
900 |
case 'js':
|
901 |
$content = 'try{'
|
@@ -1263,7 +1276,25 @@ class HeadCleanerController extends wokController {
|
|
1263 |
//**************************************************************************************
|
1264 |
private function _css_optimise($buffer) {
|
1265 |
$css = trim($buffer . "\n");
|
|
|
1266 |
if ($this->options['css_optimise']) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1267 |
$csstidy = new csstidy();
|
1268 |
$csstidy->set_cfg('optimise_shorthands', $this->options['csstidy_option']['optimise_shorthands']);
|
1269 |
$csstidy->set_cfg('compress_colors', $this->options['csstidy_option']['compress_colors']);
|
@@ -1388,14 +1419,17 @@ class HeadCleanerController extends wokController {
|
|
1388 |
// Show Option Page
|
1389 |
//**************************************************************************************
|
1390 |
public function option_page() {
|
1391 |
-
if ($this->_chk_filters_update())
|
1392 |
$this->options['filters'] = $this->filters;
|
1393 |
-
|
|
|
|
|
1394 |
if (isset($_POST['options_update'])) {
|
1395 |
if ($this->wp25)
|
1396 |
check_admin_referer("update_options", "_wpnonce_update_options");
|
1397 |
|
1398 |
// strip slashes array
|
|
|
1399 |
$head_filters = $this->stripArray(isset($_POST['head_filters']) ? $_POST['head_filters'] : array());
|
1400 |
$head_remove = $this->stripArray(isset($_POST['head_remove']) ? $_POST['head_remove'] : array());
|
1401 |
$foot_filters = $this->stripArray(isset($_POST['foot_filters']) ? $_POST['foot_filters'] : array());
|
@@ -1419,6 +1453,14 @@ class HeadCleanerController extends wokController {
|
|
1419 |
$this->options['csstidy_option']['compress_font_weight'] = (isset($_POST['compress_font_weight']) && $_POST['compress_font_weight'] == 'on' ? true : false);
|
1420 |
$this->options['csstidy_option']['remove_bslash'] = (isset($_POST['remove_bslash']) && $_POST['remove_bslash'] == 'on' ? true : false);
|
1421 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1422 |
$tag = 'wp_head';
|
1423 |
foreach ((array) $this->options['filters'][$tag] as $function_name => $priority) {
|
1424 |
if (count($head_filters) > 0 && array_search($function_name, $head_filters) !== FALSE)
|
@@ -1577,6 +1619,22 @@ class HeadCleanerController extends wokController {
|
|
1577 |
$out .= "</div>\n";
|
1578 |
}
|
1579 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1580 |
// Active Filters
|
1581 |
$out .= "<div style=\"margin-top:2em;\" id=\"active_filters\">\n";
|
1582 |
$out .= "<h3>" . __('Active Filters', $this->textdomain_name) . "</h3>" ;
|
@@ -1681,6 +1739,7 @@ class HeadCleanerController extends wokController {
|
|
1681 |
// Output
|
1682 |
echo (!empty($this->note) ? "<div id=\"message\" class=\"updated fade\"><p>{$this->note}</p></div>\n" : '') . "\n";
|
1683 |
echo ($this->error == 0 ? $out : '') . "\n";
|
|
|
1684 |
}
|
1685 |
|
1686 |
//**************************************************************************************
|
@@ -1738,6 +1797,12 @@ class HeadCleanerController extends wokController {
|
|
1738 |
}
|
1739 |
unset ($filters);
|
1740 |
|
|
|
|
|
|
|
|
|
|
|
|
|
1741 |
return $retval;
|
1742 |
}
|
1743 |
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Head Cleaner
|
4 |
+
Version: 1.1.0
|
5 |
Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
|
6 |
Description: Cleaning tags from your WordPress header and footer.
|
7 |
Author: wokamoto
|
105 |
//**************************************************************************************
|
106 |
class HeadCleanerController extends wokController {
|
107 |
public $plugin_name = 'head-cleaner';
|
108 |
+
public $plugin_ver = '1.1.0';
|
109 |
|
110 |
// Deafault Options
|
111 |
private $options_default = array(
|
128 |
, 'debug_mode' => false
|
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'
|
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
|
165 |
$this->init(__FILE__);
|
166 |
$this->options = $this->_init_options($this->getOptions());
|
167 |
$this->filters = $this->options['filters'];
|
168 |
+
$this->head_js = $this->options['head_js'];
|
169 |
|
170 |
$this->wp_url = trailingslashit(get_bloginfo('wpurl'));
|
171 |
$this->self_url = str_replace(ABSPATH, $this->wp_url, __FILE__);
|
288 |
public function filters_save(){
|
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 |
}
|
372 |
$xml_lang = $this->lang;
|
373 |
$lang = $this->lang;
|
374 |
if (preg_match_all('/ +([^ ]*)=[\'"]([^\'"]*)[\'"]/', $html_tag, $mathes, PREG_SET_ORDER)) {
|
375 |
+
foreach ($matches as $match) {
|
376 |
+
switch ($match[1]){
|
377 |
+
case 'xmlns': $xmlns = $match[2]; break;
|
378 |
+
case 'xml:lang': $xml_lang = $match[2]; break;
|
379 |
+
case 'lang': $lang = $match[2]; break;
|
380 |
}
|
381 |
}
|
382 |
+
unset($match);
|
383 |
}
|
384 |
unset($matches);
|
385 |
$html_tag = "<html xmlns=\"{$xmlns}\" xml:lang=\"{$xml_lang}\" lang=\"{$lang}\">\n";
|
461 |
unset($element); unset($elements);
|
462 |
|
463 |
if ($this->_is_javascript()) {
|
464 |
+
$inner_js = '';
|
465 |
+
$foot_js = '';
|
466 |
+
$js_src = array();
|
467 |
+
$js_libs = array();
|
468 |
$elements = $dom->find("script");
|
|
|
469 |
foreach ((array)$elements as $element) {
|
470 |
if (!isset($element->src)) {
|
471 |
$inline_js .= $this->_remove_comment($element->innertext, 'js');
|
472 |
} else {
|
473 |
$src = trim($element->src);
|
474 |
+
if (!isset($this->head_js[$src]))
|
475 |
+
$this->head_js[$src] = true;
|
476 |
+
|
477 |
+
$find = FALSE;
|
478 |
if (preg_match('/\/((prototype|jquery|mootools)\.js)\?ver=([\.\d]+)[^\?]*$/i', $src, $matches)) {
|
479 |
list($find, $filename, $product, $version) = $matches;
|
|
|
|
|
|
|
|
|
|
|
|
|
480 |
} elseif (preg_match('/\/((prototype|jquery|mootools)[\-\.](min|[\.\d]+)[^\/]*\.js)\?[^\?]*$/i', $src, $matches)) {
|
481 |
list($find, $filename, $product, $version) = $matches;
|
|
|
|
|
|
|
|
|
|
|
|
|
482 |
} elseif (preg_match('/\/scriptaculous\/((builder|controls|dragdrop|effects|wp\-scriptaculous|scriptaculous|slider|sound|unittest)\.js)\?ver\=([\.\d]+)[^\?]*$/i', $src, $matches)) {
|
483 |
list($find, $filename, $product, $version) = $matches;
|
|
|
484 |
$product = (strpos($product, 'scriptaculous') === FALSE
|
485 |
? 'scriptaculous/' . $product
|
486 |
: 'scriptaculous/scriptaculous');
|
487 |
+
}
|
488 |
+
unset($matches);
|
489 |
+
|
490 |
+
if ($find !== FALSE) {
|
491 |
+
$version = trim(substr($version, -1) === '.' ? substr($version, 0, -1) : $version);
|
492 |
if (empty($version))
|
493 |
$version = preg_replace('/^.*\/([\.\d]+)\/.*$/', '$1', $src);
|
494 |
if (!preg_match('/^[\.\d]*\d$/', $version))
|
495 |
$version = '1';
|
496 |
$js_libs[$product][$version] = $src;
|
497 |
+
} elseif ($this->head_js[$src] === FALSE) {
|
498 |
+
$foot_js .= trim($element) . "\n";
|
499 |
+
} elseif (strpos($src, $this->wp_url) === FALSE) {
|
500 |
$script_tag .= trim($element) . "\n";
|
501 |
} else {
|
502 |
$inner_js .= trim($element) . "\n";
|
503 |
$js_src[] = $element->src;
|
504 |
}
|
|
|
505 |
}
|
506 |
}
|
507 |
unset($element); unset($elements);
|
536 |
$script_tag = trim($script_tag) . (!empty($script_tag) ? "\n" : '');
|
537 |
$inner_js = trim($inner_js) . (!empty($inner_js) ? "\n" : '');
|
538 |
$inline_js = trim($inline_js) . (!empty($inline_js) ? "\n" : '');
|
539 |
+
$foot_js = trim($foot_js) . (!empty($foot_js) ? "\n" : '');
|
540 |
}
|
541 |
|
542 |
$object_tag = $this->_dom_to_html($dom->find("object"));
|
558 |
;
|
559 |
$ret_val = str_replace('\'', '"', $ret_val);
|
560 |
|
561 |
+
if ($this->options['js_move_foot'] || !empty($foot_js))
|
562 |
+
$this->foot_js_src = trim(
|
563 |
+
$foot_js
|
564 |
+
. ($this->options['js_move_foot'] ? $script_tag : '')
|
565 |
+
. ($this->options['js_move_foot'] ? $inline_js : '')
|
566 |
+
);
|
567 |
+
if (!empty($this->foot_js_src)) {
|
568 |
+
$this->foot_js_src .= "\n";
|
569 |
+
add_action('wp_footer', array(&$this, 'footer'), 9);
|
570 |
}
|
571 |
|
572 |
$ret_val = ($ie6
|
862 |
return $url;
|
863 |
}
|
864 |
|
865 |
+
private function _css_url_edit($content, $filename) {
|
866 |
+
if (preg_match_all('/url[ \t]*\([\'"]?([^\)]*)[\'"]?\)/i', $content, $matches, PREG_SET_ORDER)) {
|
867 |
+
$base_path = dirname($filename);
|
868 |
+
$search = array(); $replace = array();
|
869 |
+
foreach ($matches as $match) {
|
870 |
+
if (! preg_match('/^https?:\/\//i', trim($match[1]))) {
|
871 |
+
$abs_url = $this->_abs_url(trim($match[1]), $base_path);
|
872 |
+
$search[] = $match[0];
|
873 |
+
$replace[] = str_replace(trim($match[1]), $abs_url, $match[0]);
|
874 |
+
}
|
875 |
+
}
|
876 |
+
$content = str_replace($search, $replace, $content);
|
877 |
+
unset($match); unset($search); unset($replace);
|
878 |
+
}
|
879 |
+
unset ($matches);
|
880 |
+
return $content;
|
881 |
+
}
|
882 |
+
|
883 |
//**************************************************************************************
|
884 |
// Read file
|
885 |
//**************************************************************************************
|
908 |
$content = trim($this->_file_read($filename));
|
909 |
switch ($type) {
|
910 |
case 'css':
|
911 |
+
$content = $this->_css_url_edit($content, $filename);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
912 |
break;
|
913 |
case 'js':
|
914 |
$content = 'try{'
|
1276 |
//**************************************************************************************
|
1277 |
private function _css_optimise($buffer) {
|
1278 |
$css = trim($buffer . "\n");
|
1279 |
+
|
1280 |
if ($this->options['css_optimise']) {
|
1281 |
+
if (preg_match_all('/@import[ \t]*url[ \t]*\([\'"]?([^\)]*)[\'"]?\);?/i', $css, $matches, PREG_SET_ORDER)) {
|
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']);
|
1300 |
$csstidy->set_cfg('compress_colors', $this->options['csstidy_option']['compress_colors']);
|
1419 |
// Show Option Page
|
1420 |
//**************************************************************************************
|
1421 |
public function option_page() {
|
1422 |
+
if ($this->_chk_filters_update()) {
|
1423 |
$this->options['filters'] = $this->filters;
|
1424 |
+
$this->options['head_js'] = $this->head_js;
|
1425 |
+
}
|
1426 |
+
|
1427 |
if (isset($_POST['options_update'])) {
|
1428 |
if ($this->wp25)
|
1429 |
check_admin_referer("update_options", "_wpnonce_update_options");
|
1430 |
|
1431 |
// strip slashes array
|
1432 |
+
$head_js = $this->stripArray(isset($_POST['head_js']) ? $_POST['head_js'] : array());
|
1433 |
$head_filters = $this->stripArray(isset($_POST['head_filters']) ? $_POST['head_filters'] : array());
|
1434 |
$head_remove = $this->stripArray(isset($_POST['head_remove']) ? $_POST['head_remove'] : array());
|
1435 |
$foot_filters = $this->stripArray(isset($_POST['foot_filters']) ? $_POST['foot_filters'] : array());
|
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;
|
1459 |
+
else
|
1460 |
+
$this->options['head_js'][$javascript] = TRUE;
|
1461 |
+
}
|
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)
|
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>" ;
|
1739 |
// Output
|
1740 |
echo (!empty($this->note) ? "<div id=\"message\" class=\"updated fade\"><p>{$this->note}</p></div>\n" : '') . "\n";
|
1741 |
echo ($this->error == 0 ? $out : '') . "\n";
|
1742 |
+
|
1743 |
}
|
1744 |
|
1745 |
//**************************************************************************************
|
1797 |
}
|
1798 |
unset ($filters);
|
1799 |
|
1800 |
+
foreach ( $this->head_js as $key => $val ) {
|
1801 |
+
if ( !isset($this->options['head_js'][$key]) ) {
|
1802 |
+
$retval = true; break;
|
1803 |
+
}
|
1804 |
+
}
|
1805 |
+
|
1806 |
return $retval;
|
1807 |
}
|
1808 |
|
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-
|
6 |
-
"PO-Revision-Date: 2009-03-
|
7 |
"Last-Translator: wokamoto <wokamoto1973@gmail.com>\n"
|
8 |
"Language-Team: JAPANESE <http://wppluginsj.sourceforge.jp/>\n"
|
9 |
"MIME-Version: 1.0\n"
|
@@ -16,168 +16,181 @@ 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 |
msgid "Settings"
|
25 |
msgstr "設定"
|
26 |
|
27 |
-
#: ../head-cleaner.php:
|
28 |
-
#: ../head-cleaner.php:
|
29 |
-
#: ../head-cleaner.php:
|
30 |
msgid "Done!"
|
31 |
msgstr "完了!"
|
32 |
|
33 |
-
#: ../head-cleaner.php:
|
34 |
msgid "Head Cleaner Options"
|
35 |
msgstr "Head Cleaner 設定"
|
36 |
|
37 |
-
#: ../head-cleaner.php:
|
38 |
msgid "CSS and JavaScript are cached on the server."
|
39 |
msgstr "CSS と JavaScript を、サーバ上にキャッシュする"
|
40 |
|
41 |
-
#: ../head-cleaner.php:
|
42 |
msgid "Put JavaScripts at the Bottom."
|
43 |
msgstr "<head> 内の JavaScript を、フッタ領域に移動"
|
44 |
|
45 |
-
#: ../head-cleaner.php:
|
46 |
msgid "CSS and JS are dynamically generated."
|
47 |
msgstr "CSS, JS を動的生成する。"
|
48 |
|
49 |
-
#: ../head-cleaner.php:
|
50 |
msgid "Two or more CSS is combined."
|
51 |
msgstr "複数の CSS を結合する"
|
52 |
|
53 |
-
#: ../head-cleaner.php:
|
54 |
msgid "CSS is optimized."
|
55 |
msgstr "CSS を最適化する"
|
56 |
|
57 |
-
#: ../head-cleaner.php:
|
58 |
msgid "Default media attribute applied to CSS."
|
59 |
msgstr "CSS に適用するデフォルト media 属性"
|
60 |
|
61 |
-
#: ../head-cleaner.php:
|
62 |
msgid "Two or more JavaScript is combined."
|
63 |
msgstr "複数の JavaScript を結合する"
|
64 |
|
65 |
-
#: ../head-cleaner.php:
|
66 |
msgid "JavaScript is minified."
|
67 |
msgstr "JavaScript を小さくする"
|
68 |
|
69 |
-
#: ../head-cleaner.php:
|
70 |
msgid "Bottom JavaScript is combined, too."
|
71 |
msgstr "フッタ領域の JavaScript も対象にする"
|
72 |
|
73 |
-
#: ../head-cleaner.php:
|
74 |
msgid "Debug mode"
|
75 |
msgstr "デバッグモード"
|
76 |
|
77 |
-
#: ../head-cleaner.php:
|
78 |
msgid "The CSS optimization settings"
|
79 |
msgstr "CSS最適化 オプション"
|
80 |
|
81 |
-
#: ../head-cleaner.php:
|
82 |
msgid "Compression (code layout):"
|
83 |
msgstr "圧縮率(コードレイアウト):"
|
84 |
|
85 |
-
#: ../head-cleaner.php:
|
86 |
msgid "Highest (no readability, smallest size)"
|
87 |
msgstr "最高 (改行なし)"
|
88 |
|
89 |
-
#: ../head-cleaner.php:
|
90 |
msgid "High (moderate readability, smaller size)"
|
91 |
msgstr "高 (セレクタ1行表記)"
|
92 |
|
93 |
-
#: ../head-cleaner.php:
|
94 |
msgid "Standard (balance between readability and size)"
|
95 |
msgstr "標準 (プロパティごと改行)"
|
96 |
|
97 |
-
#: ../head-cleaner.php:
|
98 |
msgid "Low (higher readability)"
|
99 |
msgstr "低 (プロパティをインデント)"
|
100 |
|
101 |
-
#: ../head-cleaner.php:
|
102 |
msgid "Optimise shorthands"
|
103 |
msgstr "ショートハンドCSSの最適化"
|
104 |
|
105 |
-
#: ../head-cleaner.php:
|
106 |
msgid "All optimisations"
|
107 |
msgstr "margin,padding,border,backgroundを最適化"
|
108 |
|
109 |
-
#: ../head-cleaner.php:
|
110 |
msgid "Safe optimisations"
|
111 |
msgstr "margin,padding,borderのみ"
|
112 |
|
113 |
-
#: ../head-cleaner.php:
|
114 |
msgid "Don't optimise"
|
115 |
msgstr "最適化しない"
|
116 |
|
117 |
-
#: ../head-cleaner.php:
|
118 |
msgid "Compress colors"
|
119 |
msgstr "colorの値を簡略化する"
|
120 |
|
121 |
-
#: ../head-cleaner.php:
|
122 |
msgid "Compress font-weight"
|
123 |
msgstr "font-weightを数値にする"
|
124 |
|
125 |
-
#: ../head-cleaner.php:
|
126 |
msgid "Remove unnecessary backslashes"
|
127 |
msgstr "不要なバックスラッシュを削除"
|
128 |
|
129 |
-
#: ../head-cleaner.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
msgid "Active Filters"
|
131 |
-
msgstr "
|
132 |
|
133 |
-
#: ../head-cleaner.php:
|
134 |
-
#: ../head-cleaner.php:
|
135 |
msgid "Off the subject"
|
136 |
msgstr "対象外"
|
137 |
|
138 |
-
#: ../head-cleaner.php:
|
139 |
-
#: ../head-cleaner.php:
|
140 |
msgid "Remove"
|
141 |
msgstr "削除"
|
142 |
|
143 |
-
#: ../head-cleaner.php:
|
144 |
msgid "Head filters"
|
145 |
-
msgstr "<head>
|
146 |
|
147 |
-
#: ../head-cleaner.php:
|
148 |
-
#: ../head-cleaner.php:
|
149 |
msgid "Priority"
|
150 |
msgstr "フィルタの優先順位"
|
151 |
|
152 |
-
#: ../head-cleaner.php:
|
153 |
msgid "Bottom filters"
|
154 |
-
msgstr "
|
155 |
|
156 |
-
#: ../head-cleaner.php:
|
157 |
msgid "Update Options"
|
158 |
msgstr "更新"
|
159 |
|
160 |
-
#: ../head-cleaner.php:
|
161 |
msgid "Remove all cache files"
|
162 |
msgstr "キャッシュファイル削除"
|
163 |
|
164 |
-
#: ../head-cleaner.php:
|
165 |
msgid "All cache files are removed."
|
166 |
msgstr "キャッシュフォルダ内のファイルをすべて削除する。"
|
167 |
|
168 |
-
#: ../head-cleaner.php:
|
169 |
msgid "Remove All Cache Files"
|
170 |
msgstr "削除"
|
171 |
|
172 |
-
#: ../head-cleaner.php:
|
173 |
msgid "Uninstall"
|
174 |
msgstr "アンインストール"
|
175 |
|
176 |
-
#: ../head-cleaner.php:
|
177 |
msgid "All the settings of "Head Cleaner" are deleted."
|
178 |
msgstr ""Head Cleaner" の設定をすべて消去する。"
|
179 |
|
180 |
-
#: ../head-cleaner.php:
|
181 |
msgid "Delete Options"
|
182 |
msgstr "削除"
|
183 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: Head Cleaner\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2009-03-09 12:48+0900\n"
|
6 |
+
"PO-Revision-Date: 2009-03-09 12:50+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:1402
|
20 |
msgid "Head Cleaner"
|
21 |
msgstr "Head Cleaner"
|
22 |
|
23 |
+
#: ../head-cleaner.php:1411
|
24 |
+
#: ../includes/common-controller.php:166
|
25 |
msgid "Settings"
|
26 |
msgstr "設定"
|
27 |
|
28 |
+
#: ../head-cleaner.php:1490
|
29 |
+
#: ../head-cleaner.php:1500
|
30 |
+
#: ../head-cleaner.php:1510
|
31 |
msgid "Done!"
|
32 |
msgstr "完了!"
|
33 |
|
34 |
+
#: ../head-cleaner.php:1522
|
35 |
msgid "Head Cleaner Options"
|
36 |
msgstr "Head Cleaner 設定"
|
37 |
|
38 |
+
#: ../head-cleaner.php:1530
|
39 |
msgid "CSS and JavaScript are cached on the server."
|
40 |
msgstr "CSS と JavaScript を、サーバ上にキャッシュする"
|
41 |
|
42 |
+
#: ../head-cleaner.php:1534
|
43 |
msgid "Put JavaScripts at the Bottom."
|
44 |
msgstr "<head> 内の JavaScript を、フッタ領域に移動"
|
45 |
|
46 |
+
#: ../head-cleaner.php:1538
|
47 |
msgid "CSS and JS are dynamically generated."
|
48 |
msgstr "CSS, JS を動的生成する。"
|
49 |
|
50 |
+
#: ../head-cleaner.php:1546
|
51 |
msgid "Two or more CSS is combined."
|
52 |
msgstr "複数の CSS を結合する"
|
53 |
|
54 |
+
#: ../head-cleaner.php:1550
|
55 |
msgid "CSS is optimized."
|
56 |
msgstr "CSS を最適化する"
|
57 |
|
58 |
+
#: ../head-cleaner.php:1553
|
59 |
msgid "Default media attribute applied to CSS."
|
60 |
msgstr "CSS に適用するデフォルト media 属性"
|
61 |
|
62 |
+
#: ../head-cleaner.php:1562
|
63 |
msgid "Two or more JavaScript is combined."
|
64 |
msgstr "複数の JavaScript を結合する"
|
65 |
|
66 |
+
#: ../head-cleaner.php:1566
|
67 |
msgid "JavaScript is minified."
|
68 |
msgstr "JavaScript を小さくする"
|
69 |
|
70 |
+
#: ../head-cleaner.php:1570
|
71 |
msgid "Bottom JavaScript is combined, too."
|
72 |
msgstr "フッタ領域の JavaScript も対象にする"
|
73 |
|
74 |
+
#: ../head-cleaner.php:1578
|
75 |
msgid "Debug mode"
|
76 |
msgstr "デバッグモード"
|
77 |
|
78 |
+
#: ../head-cleaner.php:1591
|
79 |
msgid "The CSS optimization settings"
|
80 |
msgstr "CSS最適化 オプション"
|
81 |
|
82 |
+
#: ../head-cleaner.php:1593
|
83 |
msgid "Compression (code layout):"
|
84 |
msgstr "圧縮率(コードレイアウト):"
|
85 |
|
86 |
+
#: ../head-cleaner.php:1595
|
87 |
msgid "Highest (no readability, smallest size)"
|
88 |
msgstr "最高 (改行なし)"
|
89 |
|
90 |
+
#: ../head-cleaner.php:1596
|
91 |
msgid "High (moderate readability, smaller size)"
|
92 |
msgstr "高 (セレクタ1行表記)"
|
93 |
|
94 |
+
#: ../head-cleaner.php:1597
|
95 |
msgid "Standard (balance between readability and size)"
|
96 |
msgstr "標準 (プロパティごと改行)"
|
97 |
|
98 |
+
#: ../head-cleaner.php:1598
|
99 |
msgid "Low (higher readability)"
|
100 |
msgstr "低 (プロパティをインデント)"
|
101 |
|
102 |
+
#: ../head-cleaner.php:1601
|
103 |
msgid "Optimise shorthands"
|
104 |
msgstr "ショートハンドCSSの最適化"
|
105 |
|
106 |
+
#: ../head-cleaner.php:1603
|
107 |
msgid "All optimisations"
|
108 |
msgstr "margin,padding,border,backgroundを最適化"
|
109 |
|
110 |
+
#: ../head-cleaner.php:1604
|
111 |
msgid "Safe optimisations"
|
112 |
msgstr "margin,padding,borderのみ"
|
113 |
|
114 |
+
#: ../head-cleaner.php:1605
|
115 |
msgid "Don't optimise"
|
116 |
msgstr "最適化しない"
|
117 |
|
118 |
+
#: ../head-cleaner.php:1610
|
119 |
msgid "Compress colors"
|
120 |
msgstr "colorの値を簡略化する"
|
121 |
|
122 |
+
#: ../head-cleaner.php:1613
|
123 |
msgid "Compress font-weight"
|
124 |
msgstr "font-weightを数値にする"
|
125 |
|
126 |
+
#: ../head-cleaner.php:1616
|
127 |
msgid "Remove unnecessary backslashes"
|
128 |
msgstr "不要なバックスラッシュを削除"
|
129 |
|
130 |
+
#: ../head-cleaner.php:1624
|
131 |
+
msgid "Active JavaScripts"
|
132 |
+
msgstr "<head> 部で有効な JavaScript"
|
133 |
+
|
134 |
+
#: ../head-cleaner.php:1627
|
135 |
+
msgid "Move to footer"
|
136 |
+
msgstr "フッタに移動"
|
137 |
+
|
138 |
+
#: ../head-cleaner.php:1628
|
139 |
+
msgid "JavaScripts"
|
140 |
+
msgstr "JavaScript"
|
141 |
+
|
142 |
+
#: ../head-cleaner.php:1640
|
143 |
msgid "Active Filters"
|
144 |
+
msgstr "有効なフィルタ"
|
145 |
|
146 |
+
#: ../head-cleaner.php:1643
|
147 |
+
#: ../head-cleaner.php:1680
|
148 |
msgid "Off the subject"
|
149 |
msgstr "対象外"
|
150 |
|
151 |
+
#: ../head-cleaner.php:1644
|
152 |
+
#: ../head-cleaner.php:1681
|
153 |
msgid "Remove"
|
154 |
msgstr "削除"
|
155 |
|
156 |
+
#: ../head-cleaner.php:1645
|
157 |
msgid "Head filters"
|
158 |
+
msgstr "<head> 内の有効なフィルタ"
|
159 |
|
160 |
+
#: ../head-cleaner.php:1647
|
161 |
+
#: ../head-cleaner.php:1684
|
162 |
msgid "Priority"
|
163 |
msgstr "フィルタの優先順位"
|
164 |
|
165 |
+
#: ../head-cleaner.php:1682
|
166 |
msgid "Bottom filters"
|
167 |
+
msgstr "フッタ領域の有効なフィルタ"
|
168 |
|
169 |
+
#: ../head-cleaner.php:1718
|
170 |
msgid "Update Options"
|
171 |
msgstr "更新"
|
172 |
|
173 |
+
#: ../head-cleaner.php:1723
|
174 |
msgid "Remove all cache files"
|
175 |
msgstr "キャッシュファイル削除"
|
176 |
|
177 |
+
#: ../head-cleaner.php:1726
|
178 |
msgid "All cache files are removed."
|
179 |
msgstr "キャッシュフォルダ内のファイルをすべて削除する。"
|
180 |
|
181 |
+
#: ../head-cleaner.php:1727
|
182 |
msgid "Remove All Cache Files"
|
183 |
msgstr "削除"
|
184 |
|
185 |
+
#: ../head-cleaner.php:1732
|
186 |
msgid "Uninstall"
|
187 |
msgstr "アンインストール"
|
188 |
|
189 |
+
#: ../head-cleaner.php:1735
|
190 |
msgid "All the settings of "Head Cleaner" are deleted."
|
191 |
msgstr ""Head Cleaner" の設定をすべて消去する。"
|
192 |
|
193 |
+
#: ../head-cleaner.php:1736
|
194 |
msgid "Delete Options"
|
195 |
msgstr "削除"
|
196 |
|
languages/head-cleaner.pot
CHANGED
@@ -10,168 +10,181 @@ 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 |
msgid "Settings"
|
19 |
msgstr ""
|
20 |
|
21 |
-
#: ../head-cleaner.php:
|
22 |
-
#: ../head-cleaner.php:
|
23 |
-
#: ../head-cleaner.php:
|
24 |
msgid "Done!"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: ../head-cleaner.php:
|
28 |
msgid "Head Cleaner Options"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: ../head-cleaner.php:
|
32 |
msgid "CSS and JavaScript are cached on the server."
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: ../head-cleaner.php:
|
36 |
msgid "Put JavaScripts at the Bottom."
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: ../head-cleaner.php:
|
40 |
msgid "CSS and JS are dynamically generated."
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: ../head-cleaner.php:
|
44 |
msgid "Two or more CSS is combined."
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: ../head-cleaner.php:
|
48 |
msgid "CSS is optimized."
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: ../head-cleaner.php:
|
52 |
msgid "Default media attribute applied to CSS."
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: ../head-cleaner.php:
|
56 |
msgid "Two or more JavaScript is combined."
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: ../head-cleaner.php:
|
60 |
msgid "JavaScript is minified."
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: ../head-cleaner.php:
|
64 |
msgid "Bottom JavaScript is combined, too."
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: ../head-cleaner.php:
|
68 |
msgid "Debug mode"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: ../head-cleaner.php:
|
72 |
msgid "The CSS optimization settings"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: ../head-cleaner.php:
|
76 |
msgid "Compression (code layout):"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: ../head-cleaner.php:
|
80 |
msgid "Highest (no readability, smallest size)"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: ../head-cleaner.php:
|
84 |
msgid "High (moderate readability, smaller size)"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: ../head-cleaner.php:
|
88 |
msgid "Standard (balance between readability and size)"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: ../head-cleaner.php:
|
92 |
msgid "Low (higher readability)"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: ../head-cleaner.php:
|
96 |
msgid "Optimise shorthands"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: ../head-cleaner.php:
|
100 |
msgid "All optimisations"
|
101 |
msgstr ""
|
102 |
|
103 |
-
#: ../head-cleaner.php:
|
104 |
msgid "Safe optimisations"
|
105 |
msgstr ""
|
106 |
|
107 |
-
#: ../head-cleaner.php:
|
108 |
msgid "Don't optimise"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: ../head-cleaner.php:
|
112 |
msgid "Compress colors"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: ../head-cleaner.php:
|
116 |
msgid "Compress font-weight"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: ../head-cleaner.php:
|
120 |
msgid "Remove unnecessary backslashes"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: ../head-cleaner.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
124 |
msgid "Active Filters"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: ../head-cleaner.php:
|
128 |
-
#: ../head-cleaner.php:
|
129 |
msgid "Off the subject"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: ../head-cleaner.php:
|
133 |
-
#: ../head-cleaner.php:
|
134 |
msgid "Remove"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: ../head-cleaner.php:
|
138 |
msgid "Head filters"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: ../head-cleaner.php:
|
142 |
-
#: ../head-cleaner.php:
|
143 |
msgid "Priority"
|
144 |
msgstr ""
|
145 |
|
146 |
-
#: ../head-cleaner.php:
|
147 |
msgid "Bottom filters"
|
148 |
msgstr ""
|
149 |
|
150 |
-
#: ../head-cleaner.php:
|
151 |
msgid "Update Options"
|
152 |
msgstr ""
|
153 |
|
154 |
-
#: ../head-cleaner.php:
|
155 |
msgid "Remove all cache files"
|
156 |
msgstr ""
|
157 |
|
158 |
-
#: ../head-cleaner.php:
|
159 |
msgid "All cache files are removed."
|
160 |
msgstr ""
|
161 |
|
162 |
-
#: ../head-cleaner.php:
|
163 |
msgid "Remove All Cache Files"
|
164 |
msgstr ""
|
165 |
|
166 |
-
#: ../head-cleaner.php:
|
167 |
msgid "Uninstall"
|
168 |
msgstr ""
|
169 |
|
170 |
-
#: ../head-cleaner.php:
|
171 |
msgid "All the settings of "Head Cleaner" are deleted."
|
172 |
msgstr ""
|
173 |
|
174 |
-
#: ../head-cleaner.php:
|
175 |
msgid "Delete Options"
|
176 |
msgstr ""
|
177 |
|
10 |
"Content-Type: text/plain; charset=iso-8859-1\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
|
13 |
+
#: ../head-cleaner.php:1402
|
14 |
msgid "Head Cleaner"
|
15 |
msgstr ""
|
16 |
|
17 |
+
#: ../head-cleaner.php:1411
|
18 |
+
#: ../includes/common-controller.php:166
|
19 |
msgid "Settings"
|
20 |
msgstr ""
|
21 |
|
22 |
+
#: ../head-cleaner.php:1490
|
23 |
+
#: ../head-cleaner.php:1500
|
24 |
+
#: ../head-cleaner.php:1510
|
25 |
msgid "Done!"
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: ../head-cleaner.php:1522
|
29 |
msgid "Head Cleaner Options"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: ../head-cleaner.php:1530
|
33 |
msgid "CSS and JavaScript are cached on the server."
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: ../head-cleaner.php:1534
|
37 |
msgid "Put JavaScripts at the Bottom."
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: ../head-cleaner.php:1538
|
41 |
msgid "CSS and JS are dynamically generated."
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: ../head-cleaner.php:1546
|
45 |
msgid "Two or more CSS is combined."
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: ../head-cleaner.php:1550
|
49 |
msgid "CSS is optimized."
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: ../head-cleaner.php:1553
|
53 |
msgid "Default media attribute applied to CSS."
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: ../head-cleaner.php:1562
|
57 |
msgid "Two or more JavaScript is combined."
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: ../head-cleaner.php:1566
|
61 |
msgid "JavaScript is minified."
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: ../head-cleaner.php:1570
|
65 |
msgid "Bottom JavaScript is combined, too."
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: ../head-cleaner.php:1578
|
69 |
msgid "Debug mode"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: ../head-cleaner.php:1591
|
73 |
msgid "The CSS optimization settings"
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: ../head-cleaner.php:1593
|
77 |
msgid "Compression (code layout):"
|
78 |
msgstr ""
|
79 |
|
80 |
+
#: ../head-cleaner.php:1595
|
81 |
msgid "Highest (no readability, smallest size)"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: ../head-cleaner.php:1596
|
85 |
msgid "High (moderate readability, smaller size)"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: ../head-cleaner.php:1597
|
89 |
msgid "Standard (balance between readability and size)"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: ../head-cleaner.php:1598
|
93 |
msgid "Low (higher readability)"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: ../head-cleaner.php:1601
|
97 |
msgid "Optimise shorthands"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: ../head-cleaner.php:1603
|
101 |
msgid "All optimisations"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: ../head-cleaner.php:1604
|
105 |
msgid "Safe optimisations"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: ../head-cleaner.php:1605
|
109 |
msgid "Don't optimise"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: ../head-cleaner.php:1610
|
113 |
msgid "Compress colors"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: ../head-cleaner.php:1613
|
117 |
msgid "Compress font-weight"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: ../head-cleaner.php:1616
|
121 |
msgid "Remove unnecessary backslashes"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: ../head-cleaner.php:1624
|
125 |
+
msgid "Active JavaScripts"
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#: ../head-cleaner.php:1627
|
129 |
+
msgid "Move to footer"
|
130 |
+
msgstr ""
|
131 |
+
|
132 |
+
#: ../head-cleaner.php:1628
|
133 |
+
msgid "JavaScripts"
|
134 |
+
msgstr ""
|
135 |
+
|
136 |
+
#: ../head-cleaner.php:1640
|
137 |
msgid "Active Filters"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: ../head-cleaner.php:1643
|
141 |
+
#: ../head-cleaner.php:1680
|
142 |
msgid "Off the subject"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: ../head-cleaner.php:1644
|
146 |
+
#: ../head-cleaner.php:1681
|
147 |
msgid "Remove"
|
148 |
msgstr ""
|
149 |
|
150 |
+
#: ../head-cleaner.php:1645
|
151 |
msgid "Head filters"
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: ../head-cleaner.php:1647
|
155 |
+
#: ../head-cleaner.php:1684
|
156 |
msgid "Priority"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: ../head-cleaner.php:1682
|
160 |
msgid "Bottom filters"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: ../head-cleaner.php:1718
|
164 |
msgid "Update Options"
|
165 |
msgstr ""
|
166 |
|
167 |
+
#: ../head-cleaner.php:1723
|
168 |
msgid "Remove all cache files"
|
169 |
msgstr ""
|
170 |
|
171 |
+
#: ../head-cleaner.php:1726
|
172 |
msgid "All cache files are removed."
|
173 |
msgstr ""
|
174 |
|
175 |
+
#: ../head-cleaner.php:1727
|
176 |
msgid "Remove All Cache Files"
|
177 |
msgstr ""
|
178 |
|
179 |
+
#: ../head-cleaner.php:1732
|
180 |
msgid "Uninstall"
|
181 |
msgstr ""
|
182 |
|
183 |
+
#: ../head-cleaner.php:1735
|
184 |
msgid "All the settings of "Head Cleaner" are deleted."
|
185 |
msgstr ""
|
186 |
|
187 |
+
#: ../head-cleaner.php:1736
|
188 |
msgid "Delete Options"
|
189 |
msgstr ""
|
190 |
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ 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.0
|
7 |
|
8 |
Cleaning tags from your WordPress header and footer.
|
9 |
|
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.0
|
7 |
|
8 |
Cleaning tags from your WordPress header and footer.
|
9 |
|
readme_ja.txt
CHANGED
@@ -3,7 +3,7 @@ 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.0
|
7 |
|
8 |
Head �� footer �����|�����܂��B
|
9 |
|
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.0
|
7 |
|
8 |
Head �� footer �����|�����܂��B
|
9 |
|