Head Cleaner - Version 1.4.2.9

Version Description

Download this release

Release Info

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

Code changes from version 1.4.2.8 to 1.4.2.9

head-cleaner.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
- Version: 1.4.2.8
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
@@ -68,7 +68,7 @@ if (!class_exists('InputValidator'))
68
  //**************************************************************************************
69
  class HeadCleaner extends wokController {
70
  public $plugin_name = 'head-cleaner';
71
- public $plugin_ver = '1.4.2.8';
72
 
73
  const PRIORITY = 10000;
74
  const ANALYZE_EXPIRED = 604800; // 60 * 60 * 24 * 7 [sec.]
@@ -94,6 +94,9 @@ class HeadCleaner extends wokController {
94
  'priority' => array('wp_head' => array(), 'wp_footer' => array()) ,
95
  'head_js' => array() ,
96
  'remove_js' => array() ,
 
 
 
97
  'analyze_expired'=> 0 ,
98
  'xml_declaration'=> false ,
99
  'ie_conditional' => false ,
@@ -103,6 +106,7 @@ class HeadCleaner extends wokController {
103
  'img_base64' => false ,
104
  'add_ogp_tag' => false ,
105
  'ogp_default_image' => '' ,
 
106
  'fb_admins' => '' ,
107
  'fb_app_id' => '' ,
108
  'add_last_modified' => false ,
@@ -248,6 +252,26 @@ class HeadCleaner extends wokController {
248
 
249
  foreach ($this->options_default as $key => $val) {
250
  $wk_options[$key] = (isset($wk_options[$key]) ? $wk_options[$key] : $val);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
251
  }
252
 
253
  if (time() > $wk_options['analyze_expired']) {
@@ -274,6 +298,10 @@ class HeadCleaner extends wokController {
274
  $wk_options['analyze_expired'] = time() + self::ANALYZE_EXPIRED;
275
  }
276
 
 
 
 
 
277
  return $wk_options;
278
  }
279
 
@@ -2203,34 +2231,63 @@ class HeadCleaner extends wokController {
2203
  }
2204
 
2205
  public function add_admin_head() {
2206
- $out = <<< E__O__T
2207
- <style type="text/css">/*<![CDATA[ */
2208
  .optiontable td {line-height:25px;}
2209
- /* ]]>*/</style>
 
 
 
 
2210
 
2211
- <script type="text/javascript">//<![CDATA[
2212
- jQuery(function(){
2213
- if (jQuery('#cache_enabled').attr('checked'))
2214
- jQuery('td.more-options').show();
2215
  else
2216
- jQuery('td.more-options').hide();
 
 
 
 
 
 
2217
 
2218
- jQuery('#cache_enabled').click(function(){
2219
- if (jQuery('#cache_enabled').attr('checked'))
2220
- jQuery('td.more-options').show();
 
 
 
 
2221
  else
2222
- jQuery('td.more-options').hide();
2223
  });
2224
  });
2225
- //]]></script>
2226
- E__O__T;
2227
  echo $out;
2228
  }
2229
 
2230
- private function _checkbox($id, $flag = '') {
2231
- if ( $flag === '' )
2232
- $flag = $this->options[$id];
2233
- return '<input type="checkbox" name="'.$id.'" id="'.$id.'" value="on" style="margin-right:0.5em;" '.($flag === true ? 'checked="true" ' : '').'/>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2234
  }
2235
 
2236
  public function option_page() {
@@ -2278,6 +2335,7 @@ E__O__T;
2278
  // Add Options
2279
  $out .= '<div class="wrap">'."\n";
2280
  $out .= '<form method="post" id="update_options" action="'.$this->admin_action.'">'."\n";
 
2281
  $out .= '<h2>'.__('Head Cleaner Options', $this->textdomain_name).'</h2>'."\n";
2282
  if ($this->wp25)
2283
  $out .= $this->makeNonceField("update_options", "_wpnonce_update_options", true, false);
@@ -2295,7 +2353,7 @@ E__O__T;
2295
  $out .= '</td>';
2296
  $out .= '<td class="more-options">';
2297
  $out .= __('Default media attribute applied to CSS.', $this->textdomain_name);
2298
- $out .= "<input type=\"text\" name=\"default_media\" id=\"default_media\" value=\"{$this->options['default_media']}\" style=\"margin-left:0.5em;\" />";
2299
  $out .= '</td>';
2300
  $out .= '</tr>'."\n";
2301
 
@@ -2360,36 +2418,38 @@ E__O__T;
2360
  $out .= $this->_checkbox('add_ogp_tag');
2361
  $out .= __('Add OGP(Open Graph Protocol) tags.', $this->textdomain_name);
2362
  $out .= '</td>';
2363
- $out .= '<td colspan="2">';
2364
  $out .= __('OGP default image URL.', $this->textdomain_name);
2365
- $out .= "<input type=\"text\" name=\"ogp_default_image\" id=\"ogp_default_image\" value=\"{$this->options['ogp_default_image']}\" style=\"width:256px;margin-left:0.5em;\" />";
2366
  $out .= '</td>';
2367
  $out .= '</tr>'."\n";
2368
 
2369
  $out .= '<tr>';
2370
- $out .= '<td>';
 
 
2371
  $out .= '</td>';
2372
- $out .= '<td>';
2373
  $out .= __('fb:admins', $this->textdomain_name);
2374
- $out .= "<input type=\"text\" name=\"fb_admins\" id=\"fb_admins\" value=\"{$this->options['fb_admins']}\" style=\"margin-left:0.5em;\" />";
2375
  $out .= '</td>';
2376
- $out .= '<td>';
2377
  $out .= __('fb:app_id', $this->textdomain_name);
2378
- $out .= "<input type=\"text\" name=\"fb_app_id\" id=\"fb_app_id\" value=\"{$this->options['fb_app_id']}\" style=\"margin-left:0.5em;\" />";
2379
  $out .= '</td>';
2380
  $out .= '</tr>'."\n";
2381
 
2382
  $out .= '<tr>';
2383
  $out .= '<td>';
2384
- $out .= $this->_checkbox('wp_generator', isset($this->options['priority']['wp_head']['wp_generator']) && $this->options['priority']['wp_head']['wp_generator'] <= 0);
2385
  $out .= __('Remove generator tag.', $this->textdomain_name);
2386
  $out .= '</td>';
2387
  $out .= '<td>';
2388
- $out .= $this->_checkbox('rsd_link', isset($this->options['priority']['wp_head']['rsd_link']) && $this->options['priority']['wp_head']['rsd_link'] <= 0);
2389
  $out .= __('Remove RSD link tag.', $this->textdomain_name);
2390
  $out .= '</td>';
2391
  $out .= '<td>';
2392
- $out .= $this->_checkbox('wlwmanifest_link', isset($this->options['priority']['wp_head']['wlwmanifest_link']) && $this->options['priority']['wp_head']['wlwmanifest_link'] <= 0);
2393
  $out .= __('Remove wlwmanifest link tag.', $this->textdomain_name);
2394
  $out .= '</td>';
2395
  $out .= '</tr>'."\n";
@@ -2587,6 +2647,7 @@ E__O__T;
2587
  'canonical_tag',
2588
  'add_ogp_tag',
2589
  'ogp_default_image',
 
2590
  'fb_admins',
2591
  'fb_app_id',
2592
  'add_last_modified',
@@ -2621,8 +2682,9 @@ E__O__T;
2621
  $iv->set_rules($field, array('trim','esc_html','required'));
2622
  break;
2623
  case 'ogp_default_image':
2624
- $iv->set_rules($field, array('trim','esc_html','url'));
2625
- break;
 
2626
  case 'fb_admins':
2627
  case 'fb_app_id':
2628
  $iv->set_rules($field, array('trim','esc_html'));
@@ -2662,7 +2724,7 @@ E__O__T;
2662
  'wlwmanifest_link' => 10 ,
2663
  ));
2664
  $head_filters = is_wp_error($options['head_filters']) ? array() : (array)$options['head_filters'];
2665
- $head_remove = is_wp_error($options['head_remove']) ? array() : (array)$options['head_remove'];
2666
  unset($options['head_filters']);
2667
  unset($options['head_remove']);
2668
  if ( function_exists('dbgx_trace_var') ) {
@@ -2698,7 +2760,7 @@ E__O__T;
2698
  $tag = 'wp_footer';
2699
  $all_filters = (array)$this->options['filters'][$tag];
2700
  $foot_filters = is_wp_error($options['foot_filters']) ? array() : (array)$options['foot_filters'];
2701
- $foot_remove = is_wp_error($options['foot_remove']) ? array() : (array)$options['foot_remove'];
2702
  unset($options['foot_filters']);
2703
  unset($options['foot_remove']);
2704
  if ( function_exists('dbgx_trace_var') ) {
@@ -2719,9 +2781,16 @@ E__O__T;
2719
  unset($foot_filters);
2720
  unset($foot_remove);
2721
 
2722
- foreach ( $this->options as $key => &$option ) {
2723
- if ( isset($options[$key]) && $option !== $options[$key] ) {
2724
- $option = $options[$key];
 
 
 
 
 
 
 
2725
  }
2726
  }
2727
  if ( function_exists('dbgx_trace_var') ) {
@@ -3079,28 +3148,28 @@ E__O__T;
3079
  }
3080
 
3081
  private function _get_ogp_tags() {
 
3082
  $url = $this->_get_permalink();
3083
- $title = '';
3084
  $thumb = '';
3085
  $excerpt = '';
3086
  $type = '';
3087
 
3088
  if ( is_home() ) {
3089
  $excerpt = get_bloginfo('description');
 
3090
 
3091
  } elseif( is_singular() ) {
3092
  global $wpmp_conf, $post;
3093
 
3094
  // get the title
3095
  $id = get_the_ID();
3096
- if (!isset($post)) {
3097
  $post = &get_post($id);
3098
- }
3099
- $title = trim(wp_title('', false));
3100
 
3101
  // get the thumbnail
3102
  $thumb = '';
3103
- if (function_exists('has_post_thumbnail') && has_post_thumbnail($id)) {
3104
  $thumb = preg_replace("/^.*['\"](https?:\/\/[^'\"]*)['\"].*/i","$1",get_the_post_thumbnail($id));
3105
  } else {
3106
  $attachments = get_children(array(
@@ -3123,11 +3192,10 @@ E__O__T;
3123
  unset($matches);
3124
 
3125
  // get the excerpt
3126
- $excerpt = (
3127
  !post_password_required($post)
3128
  ? get_the_excerpt()
3129
- : __('There is no excerpt because this is a protected post.')
3130
- );
3131
  if (empty($excerpt)) {
3132
  $strwidth = (
3133
  isset($wpmp_conf["excerpt_mblength"])
@@ -3153,7 +3221,11 @@ E__O__T;
3153
  $thumb = $this->options['ogp_default_image'];
3154
 
3155
  $ogp_tag = '<meta property="%s" content="%s" />' . "\n";
3156
- $ogp_tags = sprintf($ogp_tag, 'og:site_name', esc_html(get_bloginfo('name')));
 
 
 
 
3157
  if ( !empty($url) )
3158
  $ogp_tags .= sprintf($ogp_tag, 'og:url', esc_html($url));
3159
  if ( !empty($title) )
@@ -3165,9 +3237,9 @@ E__O__T;
3165
  if ( !empty($type) )
3166
  $ogp_tags .= sprintf($ogp_tag, 'og:type', esc_html($type));
3167
  if ( !empty($this->options['fb_admins']) )
3168
- $ogp_tags .= sprintf($ogp_tag, 'fb:admins', esc_html($this->options['fb_admins']));
3169
  if ( !empty($this->options['fb_app_id']) )
3170
- $ogp_tags .= sprintf($ogp_tag, 'fb:app_id', esc_html($this->options['fb_app_id']));
3171
 
3172
  return $ogp_tags;
3173
  }
1
  <?php
2
  /*
3
  Plugin Name: Head Cleaner
4
+ Version: 1.4.2.9
5
  Plugin URI: http://wppluginsj.sourceforge.jp/head-cleaner/
6
  Description: Cleaning tags from your WordPress header and footer.
7
  Author: wokamoto
68
  //**************************************************************************************
69
  class HeadCleaner extends wokController {
70
  public $plugin_name = 'head-cleaner';
71
+ public $plugin_ver = '1.4.2.9';
72
 
73
  const PRIORITY = 10000;
74
  const ANALYZE_EXPIRED = 604800; // 60 * 60 * 24 * 7 [sec.]
94
  'priority' => array('wp_head' => array(), 'wp_footer' => array()) ,
95
  'head_js' => array() ,
96
  'remove_js' => array() ,
97
+ 'rsd_link' => false ,
98
+ 'wlwmanifest_link' => false ,
99
+ 'wp_generator' => false ,
100
  'analyze_expired'=> 0 ,
101
  'xml_declaration'=> false ,
102
  'ie_conditional' => false ,
106
  'img_base64' => false ,
107
  'add_ogp_tag' => false ,
108
  'ogp_default_image' => '' ,
109
+ 'og_locale' => '' ,
110
  'fb_admins' => '' ,
111
  'fb_app_id' => '' ,
112
  'add_last_modified' => false ,
252
 
253
  foreach ($this->options_default as $key => $val) {
254
  $wk_options[$key] = (isset($wk_options[$key]) ? $wk_options[$key] : $val);
255
+ switch ($key) {
256
+ case 'wp_generator':
257
+ case 'rsd_link':
258
+ case 'wlwmanifest_link':
259
+ if ( isset($wk_options['priority']) && isset($wk_options['priority']['wp_head']) ) {
260
+ if ( isset($wk_options['priority']['wp_head'][$key]) && $wk_options['priority']['wp_head'][$key] < 0 ) {
261
+ $wk_options[$key] = true;
262
+ }
263
+ }
264
+ break;
265
+ case 'og_locale':
266
+ if ( empty($wk_options['og_locale']) ) {
267
+ switch (WPLANG) {
268
+ case 'ja':
269
+ $wk_options['og_locale'] = 'ja_JP';
270
+ break;
271
+ }
272
+ }
273
+ break;
274
+ }
275
  }
276
 
277
  if (time() > $wk_options['analyze_expired']) {
298
  $wk_options['analyze_expired'] = time() + self::ANALYZE_EXPIRED;
299
  }
300
 
301
+ if ( function_exists('dbgx_trace_var') ) {
302
+ dbgx_trace_var($wk_options);
303
+ }
304
+
305
  return $wk_options;
306
  }
307
 
2231
  }
2232
 
2233
  public function add_admin_head() {
2234
+ $out = <<< EOT
2235
+ <style type="text/css">
2236
  .optiontable td {line-height:25px;}
2237
+ </style>
2238
+ <script type="text/javascript">
2239
+ jQuery(function(a){if(a("#cache_enabled").attr("checked"))a("td.more-options").show();else a("td.more-options").hide();a("#cache_enabled").click(function(){if(a("#cache_enabled").attr("checked"))a("td.more-options").show();else a("td.more-options").hide()});if(a("#add_ogp_tag").attr("checked"))a("td.ogp-options").show();else a("td.ogp-options").hide();a("#add_ogp_tag").click(function(){if(a("#add_ogp_tag").attr("checked"))a("td.ogp-options").show();else a("td.ogp-options").hide()})});
2240
+ </script>
2241
+ EOT;
2242
 
2243
+ /*
2244
+ jQuery(function($){
2245
+ if ($('#cache_enabled').attr('checked'))
2246
+ $('td.more-options').show();
2247
  else
2248
+ $('td.more-options').hide();
2249
+ $('#cache_enabled').click(function(){
2250
+ if ($('#cache_enabled').attr('checked'))
2251
+ $('td.more-options').show();
2252
+ else
2253
+ $('td.more-options').hide();
2254
+ });
2255
 
2256
+ if ($('#add_ogp_tag').attr('checked'))
2257
+ $('td.ogp-options').show();
2258
+ else
2259
+ $('td.ogp-options').hide();
2260
+ $('#add_ogp_tag').click(function(){
2261
+ if ($('#add_ogp_tag').attr('checked'))
2262
+ $('td.ogp-options').show();
2263
  else
2264
+ $('td.ogp-options').hide();
2265
  });
2266
  });
2267
+ */
 
2268
  echo $out;
2269
  }
2270
 
2271
+ private function _checkbox($id, $style = 'margin-right:0.5em;', $flag = '') {
2272
+ if ( empty($flag) )
2273
+ $flag = is_bool($this->options[$id]) ? $this->options[$id] : false;
2274
+ return sprintf(
2275
+ '<input type="checkbox" name="%1$s" id="%1$s" value="on" %2$s %3$s/>' ,
2276
+ $id,
2277
+ ( !empty($style) ? 'style="'.$style.'"' : '' ) ,
2278
+ ( $flag ? 'checked="true" ' : '' )
2279
+ );
2280
+ }
2281
+
2282
+ private function _input_text($id, $style = 'margin-left:0.5em;', $value = '' ) {
2283
+ if ( empty($value) )
2284
+ $value = is_string($this->options[$id]) ? $this->options[$id] : '';
2285
+ return sprintf(
2286
+ '<input type="text" name="%1$s" id="%1$s" %2$s value="%3$s" />' ,
2287
+ $id,
2288
+ ( !empty($style) ? "style=\"{$style}\"" : '' ) ,
2289
+ $value
2290
+ );
2291
  }
2292
 
2293
  public function option_page() {
2335
  // Add Options
2336
  $out .= '<div class="wrap">'."\n";
2337
  $out .= '<form method="post" id="update_options" action="'.$this->admin_action.'">'."\n";
2338
+ $out .= '<div id="icon-options-general" class="icon32"><br></div>';
2339
  $out .= '<h2>'.__('Head Cleaner Options', $this->textdomain_name).'</h2>'."\n";
2340
  if ($this->wp25)
2341
  $out .= $this->makeNonceField("update_options", "_wpnonce_update_options", true, false);
2353
  $out .= '</td>';
2354
  $out .= '<td class="more-options">';
2355
  $out .= __('Default media attribute applied to CSS.', $this->textdomain_name);
2356
+ $out .= $this->_input_text('default_media');
2357
  $out .= '</td>';
2358
  $out .= '</tr>'."\n";
2359
 
2418
  $out .= $this->_checkbox('add_ogp_tag');
2419
  $out .= __('Add OGP(Open Graph Protocol) tags.', $this->textdomain_name);
2420
  $out .= '</td>';
2421
+ $out .= '<td colspan="2" class="ogp-options">';
2422
  $out .= __('OGP default image URL.', $this->textdomain_name);
2423
+ $out .= $this->_input_text('ogp_default_image', 'width:256px;margin-left:0.5em;');
2424
  $out .= '</td>';
2425
  $out .= '</tr>'."\n";
2426
 
2427
  $out .= '<tr>';
2428
+ $out .= '<td class="ogp-options">';
2429
+ $out .= __('og:locale', $this->textdomain_name);
2430
+ $out .= $this->_input_text('og_locale');
2431
  $out .= '</td>';
2432
+ $out .= '<td class="ogp-options">';
2433
  $out .= __('fb:admins', $this->textdomain_name);
2434
+ $out .= $this->_input_text('fb_admins');
2435
  $out .= '</td>';
2436
+ $out .= '<td class="ogp-options">';
2437
  $out .= __('fb:app_id', $this->textdomain_name);
2438
+ $out .= $this->_input_text('fb_app_id');
2439
  $out .= '</td>';
2440
  $out .= '</tr>'."\n";
2441
 
2442
  $out .= '<tr>';
2443
  $out .= '<td>';
2444
+ $out .= $this->_checkbox('wp_generator');
2445
  $out .= __('Remove generator tag.', $this->textdomain_name);
2446
  $out .= '</td>';
2447
  $out .= '<td>';
2448
+ $out .= $this->_checkbox('rsd_link');
2449
  $out .= __('Remove RSD link tag.', $this->textdomain_name);
2450
  $out .= '</td>';
2451
  $out .= '<td>';
2452
+ $out .= $this->_checkbox('wlwmanifest_link');
2453
  $out .= __('Remove wlwmanifest link tag.', $this->textdomain_name);
2454
  $out .= '</td>';
2455
  $out .= '</tr>'."\n";
2647
  'canonical_tag',
2648
  'add_ogp_tag',
2649
  'ogp_default_image',
2650
+ 'og_locale',
2651
  'fb_admins',
2652
  'fb_app_id',
2653
  'add_last_modified',
2682
  $iv->set_rules($field, array('trim','esc_html','required'));
2683
  break;
2684
  case 'ogp_default_image':
2685
+ // $iv->set_rules($field, array('trim','esc_html','url'));
2686
+ // break;
2687
+ case 'og_locale':
2688
  case 'fb_admins':
2689
  case 'fb_app_id':
2690
  $iv->set_rules($field, array('trim','esc_html'));
2724
  'wlwmanifest_link' => 10 ,
2725
  ));
2726
  $head_filters = is_wp_error($options['head_filters']) ? array() : (array)$options['head_filters'];
2727
+ $head_remove = is_wp_error($options['head_remove']) ? array() : (array)$options['head_remove'];
2728
  unset($options['head_filters']);
2729
  unset($options['head_remove']);
2730
  if ( function_exists('dbgx_trace_var') ) {
2760
  $tag = 'wp_footer';
2761
  $all_filters = (array)$this->options['filters'][$tag];
2762
  $foot_filters = is_wp_error($options['foot_filters']) ? array() : (array)$options['foot_filters'];
2763
+ $foot_remove = is_wp_error($options['foot_remove']) ? array() : (array)$options['foot_remove'];
2764
  unset($options['foot_filters']);
2765
  unset($options['foot_remove']);
2766
  if ( function_exists('dbgx_trace_var') ) {
2781
  unset($foot_filters);
2782
  unset($foot_remove);
2783
 
2784
+ $options_org = $this->options;
2785
+ foreach ( $options_org as $key => $option ) {
2786
+ if ( isset($options[$key]) && !is_wp_error($options[$key]) && $option !== $options[$key] ) {
2787
+ $this->options[$key] = $options[$key];
2788
+ }
2789
+ switch ($key) {
2790
+ case 'ogp_default_image':
2791
+ if ( is_wp_error($option) )
2792
+ $this->options[$key] = '';
2793
+ break;
2794
  }
2795
  }
2796
  if ( function_exists('dbgx_trace_var') ) {
3148
  }
3149
 
3150
  private function _get_ogp_tags() {
3151
+ $site_name = get_bloginfo('name');
3152
  $url = $this->_get_permalink();
3153
+ $title = $title = trim(wp_title('', false));
3154
  $thumb = '';
3155
  $excerpt = '';
3156
  $type = '';
3157
 
3158
  if ( is_home() ) {
3159
  $excerpt = get_bloginfo('description');
3160
+ $title = $site_name;
3161
 
3162
  } elseif( is_singular() ) {
3163
  global $wpmp_conf, $post;
3164
 
3165
  // get the title
3166
  $id = get_the_ID();
3167
+ if (!isset($post))
3168
  $post = &get_post($id);
 
 
3169
 
3170
  // get the thumbnail
3171
  $thumb = '';
3172
+ if ( function_exists('has_post_thumbnail') && has_post_thumbnail($id) ) {
3173
  $thumb = preg_replace("/^.*['\"](https?:\/\/[^'\"]*)['\"].*/i","$1",get_the_post_thumbnail($id));
3174
  } else {
3175
  $attachments = get_children(array(
3192
  unset($matches);
3193
 
3194
  // get the excerpt
3195
+ $excerpt =
3196
  !post_password_required($post)
3197
  ? get_the_excerpt()
3198
+ : __('There is no excerpt because this is a protected post.');
 
3199
  if (empty($excerpt)) {
3200
  $strwidth = (
3201
  isset($wpmp_conf["excerpt_mblength"])
3221
  $thumb = $this->options['ogp_default_image'];
3222
 
3223
  $ogp_tag = '<meta property="%s" content="%s" />' . "\n";
3224
+ $ogp_tags = '';
3225
+ if ( !empty($this->options['og_locale']) )
3226
+ $ogp_tags .= sprintf($ogp_tag, 'og:locale', $this->options['og_locale']);
3227
+ if ( !empty($site_name) )
3228
+ $ogp_tags .= sprintf($ogp_tag, 'og:site_name', esc_html($site_name));
3229
  if ( !empty($url) )
3230
  $ogp_tags .= sprintf($ogp_tag, 'og:url', esc_html($url));
3231
  if ( !empty($title) )
3237
  if ( !empty($type) )
3238
  $ogp_tags .= sprintf($ogp_tag, 'og:type', esc_html($type));
3239
  if ( !empty($this->options['fb_admins']) )
3240
+ $ogp_tags .= sprintf($ogp_tag, 'fb:admins', $this->options['fb_admins']);
3241
  if ( !empty($this->options['fb_app_id']) )
3242
+ $ogp_tags .= sprintf($ogp_tag, 'fb:app_id', $this->options['fb_app_id']);
3243
 
3244
  return $ogp_tags;
3245
  }
languages/head-cleaner-fr_FR.mo ADDED
Binary file
languages/head-cleaner-fr_FR.po ADDED
@@ -0,0 +1,209 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Head Cleaner - 1.4.2.8 (French)\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2012-04-20 08:30+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: \n"
8
+ "Language-Team: studio RVOLA <hello@rvola.com>\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: French\n"
13
+ "X-Poedit-Country: FRANCE\n"
14
+ "X-Poedit-SourceCharset: utf-8\n"
15
+ "Plural-Forms: nplurals=2;plural=n>2\n"
16
+ "X-Poedit-KeywordsList: _e;__\n"
17
+ "X-Poedit-Basepath: .\n"
18
+
19
+ #: head-cleaner.php:2208
20
+ msgid "Head Cleaner"
21
+ msgstr "Head Cleaner"
22
+
23
+ #: head-cleaner.php:2219
24
+ #: includes/common-controller.php:195
25
+ msgid "Settings"
26
+ msgstr "Réglages"
27
+
28
+ #: head-cleaner.php:2309
29
+ #: head-cleaner.php:2317
30
+ #: head-cleaner.php:2325
31
+ msgid "Done!"
32
+ msgstr "Terminé !"
33
+
34
+ #: head-cleaner.php:2339
35
+ msgid "Head Cleaner Options"
36
+ msgstr "Head Cleaner Options"
37
+
38
+ #: head-cleaner.php:2348
39
+ msgid "CSS and JavaScript are cached on the server."
40
+ msgstr "CSS et JavaScript sont mis en cache sur le serveur."
41
+
42
+ #: head-cleaner.php:2352
43
+ msgid "CSS and JS are dynamically generated."
44
+ msgstr "CSS et JS sont générées dynamiquement."
45
+
46
+ #: head-cleaner.php:2355
47
+ msgid "Default media attribute applied to CSS."
48
+ msgstr "Les attributs media par défaut appliqué au CSS."
49
+
50
+ #: head-cleaner.php:2363
51
+ msgid "Two or more CSS is combined."
52
+ msgstr "Deux ou plus fichiers CSS sont combinés."
53
+
54
+ #: head-cleaner.php:2367
55
+ msgid "CSS is optimized."
56
+ msgstr "CSS est optimisé."
57
+
58
+ #: head-cleaner.php:2371
59
+ msgid "URLs of images in CSS will be converted into the data scheme URIs."
60
+ msgstr "URL des images en CSS seront convertis en data scheme URIs."
61
+
62
+ #: head-cleaner.php:2378
63
+ msgid "Two or more JavaScript is combined."
64
+ msgstr "Deux ou plusieurs fichiers JavaScript sont combinés."
65
+
66
+ #: head-cleaner.php:2382
67
+ msgid "JavaScript is minified."
68
+ msgstr "JavaScript est minifiés."
69
+
70
+ #: head-cleaner.php:2386
71
+ msgid "Bottom JavaScript is combined, too."
72
+ msgstr "Les fichiers JavaScript du footer sont combinés, aussi."
73
+
74
+ #: head-cleaner.php:2393
75
+ msgid "Put JavaScripts at the Bottom."
76
+ msgstr "Déplacer les JavaScripts dans le footer."
77
+
78
+ #: head-cleaner.php:2397
79
+ msgid "Use Google Ajax Libraries."
80
+ msgstr "Utilisez bibliothèques Google Ajax."
81
+
82
+ #: head-cleaner.php:2406
83
+ msgid "Add XML Declaration."
84
+ msgstr "Ajouter déclaration XML."
85
+
86
+ #: head-cleaner.php:2410
87
+ msgid "Add canonical tag."
88
+ msgstr "Ajouter un tag canonique."
89
+
90
+ #: head-cleaner.php:2419
91
+ msgid "Add OGP(Open Graph Protocol) tags."
92
+ msgstr "Ajouter tags OGP (Open Graph Protocole)."
93
+
94
+ #: head-cleaner.php:2422
95
+ msgid "OGP default image URL."
96
+ msgstr "OGP URL de l'image par défaut."
97
+
98
+ #: head-cleaner.php:2429
99
+ msgid "og:locale"
100
+ msgstr ""
101
+
102
+ #: head-cleaner.php:2433
103
+ msgid "fb:admins"
104
+ msgstr "fb:admins"
105
+
106
+ #: head-cleaner.php:2437
107
+ msgid "fb:app_id"
108
+ msgstr "fb:app_id"
109
+
110
+ #: head-cleaner.php:2445
111
+ msgid "Remove generator tag."
112
+ msgstr "Retirer tag générateur."
113
+
114
+ #: head-cleaner.php:2449
115
+ msgid "Remove RSD link tag."
116
+ msgstr "Retirer balise RSD."
117
+
118
+ #: head-cleaner.php:2453
119
+ msgid "Remove wlwmanifest link tag."
120
+ msgstr "Retirer balise wlwmanifest."
121
+
122
+ #: head-cleaner.php:2460
123
+ msgid "Remove IE Conditional Tag."
124
+ msgstr "Retirer Tag conditionnel pour IE."
125
+
126
+ #: head-cleaner.php:2473
127
+ msgid "Add Last modified."
128
+ msgstr "Ajouter Dernière mise à jour."
129
+
130
+ #: head-cleaner.php:2477
131
+ msgid "Enabling \"<strong>paranoia mode</strong>\". Cut waste from the HTML and tries to minimize it."
132
+ msgstr "Activation \"<strong>mode paranoïa</strong>\". Mets bout à bout tous les entêtes HTML et tente de le minimiser."
133
+
134
+ #: head-cleaner.php:2488
135
+ msgid "Debug mode"
136
+ msgstr "Mode debug"
137
+
138
+ #: head-cleaner.php:2496
139
+ msgid "Active Filters"
140
+ msgstr "Filtres actifs."
141
+
142
+ #: head-cleaner.php:2499
143
+ #: head-cleaner.php:2537
144
+ msgid "Don't process!"
145
+ msgstr "Ne pas traiter !"
146
+
147
+ #: head-cleaner.php:2500
148
+ #: head-cleaner.php:2538
149
+ #: head-cleaner.php:2581
150
+ msgid "Remove"
151
+ msgstr "Supprimer"
152
+
153
+ #: head-cleaner.php:2501
154
+ msgid "Head filters"
155
+ msgstr "Filtres du header"
156
+
157
+ #: head-cleaner.php:2503
158
+ #: head-cleaner.php:2541
159
+ msgid "Priority"
160
+ msgstr "Priorité"
161
+
162
+ #: head-cleaner.php:2539
163
+ msgid "Bottom filters"
164
+ msgstr "Filtres du footer"
165
+
166
+ #: head-cleaner.php:2577
167
+ msgid "Active JavaScripts"
168
+ msgstr "JavaScripts Actif"
169
+
170
+ #: head-cleaner.php:2580
171
+ msgid "Move to footer"
172
+ msgstr "Déplacer dans le footer"
173
+
174
+ #: head-cleaner.php:2582
175
+ msgid "JavaScripts"
176
+ msgstr "JavaScripts"
177
+
178
+ #: head-cleaner.php:2596
179
+ msgid "Update Options"
180
+ msgstr "Mettre à jour les options"
181
+
182
+ #: head-cleaner.php:2602
183
+ msgid "Remove all cache files"
184
+ msgstr "Supprimez tous les fichiers de cache"
185
+
186
+ #: head-cleaner.php:2606
187
+ msgid "All cache files are removed."
188
+ msgstr "Tous les fichiers de cache seront supprimés."
189
+
190
+ #: head-cleaner.php:2607
191
+ msgid "Remove All Cache Files"
192
+ msgstr "Supprimez tous les fichiers du cache"
193
+
194
+ #: head-cleaner.php:2612
195
+ msgid "Uninstall"
196
+ msgstr "Désinstaller"
197
+
198
+ #: head-cleaner.php:2616
199
+ msgid "All the settings of &quot;Head Cleaner&quot; are deleted."
200
+ msgstr "Tous les paramètres de &quot;Head Cleaner&quot; seront supprimés."
201
+
202
+ #: head-cleaner.php:2617
203
+ msgid "Delete Options"
204
+ msgstr "Supprimer Options"
205
+
206
+ #: head-cleaner.php:3198
207
+ msgid "There is no excerpt because this is a protected post."
208
+ msgstr "Il n'y a pas extrait, car il s'agit d'un poste protégé."
209
+
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, facebook, OGP
5
  Requires at least: 2.5
6
  Tested up to: 3.3.1
7
- Stable tag: 1.4.2.8
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
@@ -43,6 +43,7 @@ To speed up the loading of JavaScript and CSS.
43
  * Belorussian (by) - [Marcis Gasuns](http://www.comfi.com/ "Marcis Gasuns")
44
  * Bulgarian (bg_BG) - [Web Geek](http://webhostinggeeks.com/ "Web Geek")
45
  * Dutch (nl_NL) - [Rene](http://wpwebshop.com/blog "WPWebshop Blog")
 
46
  * German (de) - Carsten
47
  * Japanese (ja) - [OKAMOTO Wataru](http://dogmap.jp/ "dogmap.jp") (plugin author)
48
  * Spanish (es) - [Franz Hartmann](http://tolingo.com/ "tolingo.com - Franz Hartmann")
@@ -93,6 +94,9 @@ Head Cleaner Ver.1.1.5 includes 'php_browscap.ini' .
93
 
94
  == Changelog ==
95
 
 
 
 
96
  **1.4.2.6 - December 13, 2011**
97
  Support for WordPress 3.3.
98
 
4
  Tags: head, header, footer, javascript, css, optimization, minified, performance, facebook, OGP
5
  Requires at least: 2.5
6
  Tested up to: 3.3.1
7
+ Stable tag: 1.4.2.9
8
 
9
  Cleaning tags from your WordPress header and footer.
10
 
43
  * Belorussian (by) - [Marcis Gasuns](http://www.comfi.com/ "Marcis Gasuns")
44
  * Bulgarian (bg_BG) - [Web Geek](http://webhostinggeeks.com/ "Web Geek")
45
  * Dutch (nl_NL) - [Rene](http://wpwebshop.com/blog "WPWebshop Blog")
46
+ * French (fr_FR) - [NicoR](http://wordpress.org/support/profile/nicor-1 "NicoR")
47
  * German (de) - Carsten
48
  * Japanese (ja) - [OKAMOTO Wataru](http://dogmap.jp/ "dogmap.jp") (plugin author)
49
  * Spanish (es) - [Franz Hartmann](http://tolingo.com/ "tolingo.com - Franz Hartmann")
94
 
95
  == Changelog ==
96
 
97
+ **1.4.2.9 - April 20, 2012**
98
+ Fixed a bug, input value validate issue.
99
+
100
  **1.4.2.6 - December 13, 2011**
101
  Support for WordPress 3.3.
102
 
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: 3.3.1
7
- Stable tag: 1.4.2.8
8
 
9
  Head と footer をお掃除します。
10
 
4
  Tags: head optimization, javascript, css, optimization, minified, performance
5
  Requires at least: 2.5
6
  Tested up to: 3.3.1
7
+ Stable tag: 1.4.2.9
8
 
9
  Head と footer をお掃除します。
10