CommentLuv - Version 2.90.8.1

Version Description

  • updated italian language (thanks Gianni)
  • fixed : fixed all notices when running in DEBUG mode
  • fixed : default image display in settings page was not showing after resetting settings
Download this release

Release Info

Developer commentluv
Plugin Icon 128x128 CommentLuv
Version 2.90.8.1
Comparing to
See all releases

Code changes from version 2.90.8 to 2.90.8.1

Files changed (3) hide show
  1. commentluv.php +54 -34
  2. js/commentluv.js +3 -3
  3. readme.txt +9 -4
commentluv.php CHANGED
@@ -2,7 +2,7 @@
2
  Plugin Name: CommentLuv
3
  Plugin URI: http://comluv.com/
4
  Description: Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
5
- Version: 2.90.8
6
  Author: Andy Bailey
7
  Author URI: http://www.commentluv.com
8
  Copyright (C) <2011> <Andy Bailey>
@@ -28,7 +28,7 @@
28
  var $plugin_url;
29
  var $plugin_dir;
30
  var $db_option = 'commentluv_options';
31
- var $version = "2.90.8";
32
  var $slug = 'commentluv-options';
33
  var $localize;
34
  var $is_commentluv_request = false;
@@ -42,7 +42,7 @@
42
  // pages where this plugin needs translation
43
  $local_pages = array ('plugins.php', 'options-general.php' );
44
  // check if translation needed on current page
45
- if (in_array ( $pagenow, $local_pages ) || in_array ( $_GET ['page'], $local_pages )) {
46
  $this->handle_load_domain ();
47
  }
48
  $exit_msg = __ ( 'CommentLuv requires Wordpress 3.0 or newer.', $this->plugin_domain ) . '<a href="http://codex.wordpress.org/Upgrading_Wordpress">' . __ ( 'Please Update!', $this->plugin_domain ) . '</a>';
@@ -77,9 +77,8 @@
77
  add_filter ( 'found_posts', array(&$this,'send_feed'),-1,2); // sends post titles and urls only
78
  add_filter ( 'kindergarten_html', array(&$this,'kindergarten_html')); // for cleaning html
79
  $options = $this->get_options();
80
- //DebugBreak();
81
  //$this->check_version();
82
- if($options['enable'] == 'yes'){
83
  $this->setup_hooks();
84
  }
85
  }
@@ -130,7 +129,7 @@
130
  * Adds fields to comment area
131
  * called by add_action('comment_form
132
  */
133
- function add_fields(){
134
  global $clbadgeshown;
135
  $options = $this->get_options();
136
  if(!$this->is_enabled()){
@@ -178,15 +177,14 @@
178
  echo '<input type="hidden" name="cl_post_title" id="cl_post_title"/>';
179
  echo '<input type="hidden" name="cl_post_url" id="cl_post_url"/>';
180
  echo '<input type="hidden" name="cl_prem" id="cl_prem"/>';
181
-
182
  // show badge (unless user set to manual insert)
183
- if($clbadgeshown == false && $options['template_insert'] != 'on'){
184
  $this->display_badge();
185
  }
186
  }
187
  function add_footer(){
188
  extract($this->get_options());
189
- if($minifying != 'on' || !$this->is_enabled()){
190
  return;
191
  }
192
  // from the excellent book wp-ajax (http://www.wpajax.com/)
@@ -239,7 +237,9 @@
239
  if(!$this->is_enabled()){
240
  return;
241
  }
242
-
 
 
243
  wp_enqueue_script('commentluv_script');
244
  $this->localize = array ('name' => $author_name, 'url' => $url_name, 'comment' => $comment_name, 'email' => $email_name,
245
  'infopanel' => $infopanel, 'default_on' => $default_on, 'default_on_admin' => $default_on_admin,
@@ -251,7 +251,7 @@
251
  'no_http_message'=>__('Please use http:// in front of your url',$this->plugin_domain),
252
  'no_url_logged_in_message'=>__('You need to visit your profile in the dashboard and update your details with your site URL',$this->plugin_domain),
253
  'no_info_message'=>__('No info was available or an error occured',$this->plugin_domain));
254
- if($minifying != 'on'){
255
  wp_localize_script('commentluv_script','cl_settings',$this->localize);
256
  }
257
 
@@ -381,8 +381,9 @@
381
  * @param string $commentdata - status of comment
382
  */
383
  function comment_posted($id,$approved){
384
- if($_POST['cl_post_url'] && $_POST['cl_post_title']){
385
- $title = apply_filters('kses',$_POST['cl_post_title']);
 
386
  //$link = apply_filters('kses',$_POST['cl_post_url']);
387
  $link = esc_url($_POST['cl_post_url']);
388
  //$prem = apply_filters('kses',$_POST['cl_prem']);
@@ -448,7 +449,7 @@
448
  $before = '';
449
  $after = '';
450
  // link
451
- if($options['link']){
452
  $before = '<a href="http://www.commentluv.com" target="_blank" title="'.__('CommentLuv is enabled',$this->plugin_domain).'">';
453
  $after = '</a>';
454
  }
@@ -461,7 +462,7 @@
461
  }
462
  // custom image
463
  if($options['badge_choice'] == 'custom'){
464
- if($options['custom_image_url'] != ''){
465
  if(!strstr($options['custom_image_url'],'http://')){
466
  $imgurl = 'http://'.$options['custom_image_url'];
467
  } else {
@@ -903,7 +904,7 @@
903
  if(!$options['enable']){
904
  $options['enable'] = 'yes';
905
  }
906
-
907
  return $options;
908
  }
909
  /** handle_load_domain
@@ -1104,7 +1105,7 @@
1104
  }
1105
  $options = $this->get_options();
1106
  // check if detection disabled
1107
- if($options['disable_detect'] == 'on'){
1108
  return $foundposts;
1109
  }
1110
  if($this->is_commentluv_request === true){
@@ -1201,7 +1202,7 @@
1201
  $o = $this->get_options();
1202
  $dbo = $this->db_option;
1203
  $pd = $this->plugin_domain;
1204
- $badges = array('default'=>'CL91_default.png','white'=>'CL91_White.gif','black'=>'CL91_Black.gif','none'=> 'nothing.gif');
1205
  //DebugBreak();
1206
  // remove notice if requested
1207
  if(isset($_GET['dismiss'])){
@@ -1235,7 +1236,7 @@
1235
  <td>
1236
  <p><?php _e('There is a premium version of CommentLuv coming that will have much more control of how the plugin works as well as exclusive features like keyword name, inline registration and much much more!. Signup to find out as soon as it is ready',$pd);?></p>
1237
  <?php
1238
- if($o['subscribed']){
1239
  echo '<div class="submit">'.__('You have already subscribed, if you have not received the verification within 12 hours, please click the button to resend or try the form at',$pd).' <a target="_blank" href="http://www.commentluv.com/">www.commentluv.com</a><br><input style="margin:0 auto; display: block;" type="button" id="cl_notify" value="'.__('Resend Verification',$pd).'"/></div>';
1240
  } else {
1241
  echo '<div class="submit" style=" background-color: green; padding-left: 5px; padding-right: 5px; border-radius: 15px; -moz-border-radius: 15px; text-align: center;"><input style="margin: 0 auto; display:block" id="cl_notify" type="button" name="cl_notify" value="'.__('Click to register now!',$pd).'" /></div>';
@@ -1271,11 +1272,11 @@
1271
  </tr>
1272
  <tr class="ifenable">
1273
  <td style="text-align: center;" colspan="2">
1274
- <input type="checkbox" name="<?php echo $dbo;?>[default_on]" <?php checked($o['default_on'],'on');?> value="on"/> <label for="<?php echo $dbo;?>[default_on]"><?php _e('On by default?',$pd);?></label>
1275
  </td>
1276
  <td></td>
1277
  <td style="text-align: center;" colspan="2">
1278
- <input type="checkbox" name="<?php echo $dbo;?>[default_on_admin]" <?php checked($o['default_on_admin'],'on');?> value="on"/><label for="<?php echo $dbo;?>[default_on_admin]"> <?php _e('On for admin?',$pd);?></label>
1279
  </td>
1280
  </tr>
1281
  </tbody>
@@ -1306,13 +1307,14 @@
1306
  <option value="black" <?php selected($o['badge_type'],'black');?>><?php _e('Black',$pd);?></option>
1307
  <option value="none" <?php selected($o['badge_type'],'none');?>><?php _e('None',$pd);?></option>
1308
  </select>
 
1309
  <p style="margin: 8px 0px 0px 8px;"><img id="display_badge" style="border: 1px solid #000; padding: 3px;" src="<?php echo $this->plugin_url;?>images/<?php echo $badges[$o['badge_type']];?>"/></p>
1310
  </td>
1311
  <td>
1312
  <input type="radio" class="radio" name="<?php echo $dbo;?>[badge_choice]" value="custom" <?php checked($o['badge_choice'],'custom');?>/>
1313
- <input type="text" name="<?php echo $dbo;?>[custom_image_url]" value="<?php echo $o['custom_image_url'];?>"/>
1314
  <?php
1315
- if($o['custom_image_url'] != ''){
1316
  // show image
1317
  echo '<p style="margin: 8px 0px 0px 8px;"><img id="custom_badge" style="border: 1px solid #000; padding: 3px;" src="'.$o['custom_image_url'].'"/></p>';
1318
  } ?>
@@ -1320,8 +1322,8 @@
1320
  <td>
1321
 
1322
  <input type="radio" class="radio" name="<?php echo $dbo;?>[badge_choice]" value="text" <?php checked($o['badge_choice'],'text');?>/>
1323
- <input type="text" name="<?php echo $dbo;?>[badge_text]" value="<?php echo $o['badge_text'];?>"/>
1324
- <p style="margin: 8px 0px 0px 8px;"><input type="checkbox" name="<?php echo $dbo;?>[link]" value="on" <?php checked($o['link'],'on');?>/> <label for="<?php echo $dbo;?>[link]"><?php _e('Link to Commentluv?',$pd);?></label>
1325
  </td>
1326
  <td></td>
1327
  <td style="text-align: center; border: 2px dotted; width:125px"><a onclick="return false;" href="<?php echo $this->plugin_url . 'videos/'; ?>appearancesettings.php?KeepThis=true&amp;TB_iframe=true&amp;height=355&width=545" class="thickbox"><img src="<?php echo $this->plugin_url;?>images/playbuttonsmall.png"/></a></td>
@@ -1372,7 +1374,7 @@
1372
  echo '<br>';
1373
  _e('(this will be automatically added if you have not added it yourself to the textarea above)',$pd);
1374
  $register_link = apply_filters('register','<a href="' . site_url('wp-login.php?action=register', 'login') . '">' . __('Register') . '</a>');
1375
- echo ' : <input style="width:95%" type="text" value="'.$register_link.'" disabled/>';
1376
  }
1377
  ?>
1378
  </td>
@@ -1452,15 +1454,15 @@
1452
  </tr>
1453
  <tr>
1454
  <td colspan="2">
1455
- <input type="checkbox" name="<?php echo $dbo;?>[template_insert]" <?php checked($o['template_insert'],'on');?> value="on"/><label for="<?php echo $dbo;?>[template_insert]"> <?php _e('Use manual insert of badge code?',$pd);?></label>
1456
  <br>( <strong>&lt;?php cl_display_badge(); ?&gt;</strong> )
1457
  </td>
1458
  <td colspan="2">
1459
- <input type="checkbox" name="<?php echo $dbo;?>[minifying]" <?php checked($o['minifying'],'on');?> value="on"/><label for="<?php echo $dbo;?>[minifying]"> <?php _e('Enable minifying compatibility?',$pd);?></label>
1460
  <br><?php _e('For caching plugins (places localized code in footer)',$pd);?>
1461
  </td>
1462
  <td>
1463
- <input type="checkbox" name="<?php echo $dbo;?>[disable_detect]" <?php checked($o['disable_detect'],'on');?> value="on"/><label for="<?php echo $dbo;?>[disable_detect]"> <?php _e('Disable Detection?',$pd);?></label>
1464
  <br><?php _e('For XML errors',$pd);?>
1465
  </td>
1466
  </tr>
@@ -1550,10 +1552,28 @@
1550
  <tr class="alt"><td colspan="2"><?php _e('News',$this->plugin_domain);?>:</td></tr>
1551
  <tr><td colspan="2">
1552
  <?php
1553
- if(!function_exists('wp_rss')){
1554
- include_once(ABSPATH . WPINC . '/rss.php');
1555
- }
1556
- wp_rss('http://comluv.com/category/newsletter/feed',3);?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1557
  </td></tr>
1558
  <tr class="alt"><td colspan="2"><?php _e('Thanks to the following for translations',$this->plugin_domain);?>:</td></tr>
1559
  <tr><td><img src="<?php echo $this->plugin_url;?>images/it.png"/> <?php _e('Italian',$this->plugin_domain);?></td><td><a target="_blank" href="http://gidibao.net/">Gianni Diuno</a></td></tr>
@@ -1577,7 +1597,7 @@
1577
  <tr><td><img src="<?php echo $this->plugin_url;?>images/ru.png"/> <?php _e('Russian',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://www.fatcow.com/">Fatcow</a>--></td></tr>
1578
  <tr><td><img src="<?php echo $this->plugin_url;?>images/il.png"/> <?php _e('Hebrew',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://www.maorb.info/">Maor Barazany</a>--></td></tr>
1579
  <tr><td><img src="<?php echo $this->plugin_url;?>images/fr.png"/> <?php _e('French',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://referenceurfreelance.com/">Leo</a>--></td></tr>
1580
-
1581
  <tr><td><img src="<?php echo $this->plugin_url;?>images/sa.png"/> <?php _e('Arabic',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://www.melzarei.be/">Muhammad Elzarei</a>--></td></tr>
1582
  <tr><td><strong><?php _e('Want your link here?',$this->plugin_domain);?></strong></td><td><a target="_blank" href="http://support.commentluv.com/ticket/knowledgebase.php?article=1"><?php _e('How To Submit A Translation',$this->plugin_domain);?></a></td></tr>
1583
  <tr class="alt"><td colspan="2"><?php _e('Special thanks go to the following',$this->plugin_domain);?>:</td></tr>
2
  Plugin Name: CommentLuv
3
  Plugin URI: http://comluv.com/
4
  Description: Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
5
+ Version: 2.90.8.1
6
  Author: Andy Bailey
7
  Author URI: http://www.commentluv.com
8
  Copyright (C) <2011> <Andy Bailey>
28
  var $plugin_url;
29
  var $plugin_dir;
30
  var $db_option = 'commentluv_options';
31
+ var $version = "2.90.8.1";
32
  var $slug = 'commentluv-options';
33
  var $localize;
34
  var $is_commentluv_request = false;
42
  // pages where this plugin needs translation
43
  $local_pages = array ('plugins.php', 'options-general.php' );
44
  // check if translation needed on current page
45
+ if (in_array ( $pagenow, $local_pages ) || (isset($_GET['page']) && in_array ( $_GET ['page'], $local_pages ))) {
46
  $this->handle_load_domain ();
47
  }
48
  $exit_msg = __ ( 'CommentLuv requires Wordpress 3.0 or newer.', $this->plugin_domain ) . '<a href="http://codex.wordpress.org/Upgrading_Wordpress">' . __ ( 'Please Update!', $this->plugin_domain ) . '</a>';
77
  add_filter ( 'found_posts', array(&$this,'send_feed'),-1,2); // sends post titles and urls only
78
  add_filter ( 'kindergarten_html', array(&$this,'kindergarten_html')); // for cleaning html
79
  $options = $this->get_options();
 
80
  //$this->check_version();
81
+ if(!isset($options['enable']) || ( isset($options['enable']) && $options['enable'] != 'no')){
82
  $this->setup_hooks();
83
  }
84
  }
129
  * Adds fields to comment area
130
  * called by add_action('comment_form
131
  */
132
+ function add_fields(){
133
  global $clbadgeshown;
134
  $options = $this->get_options();
135
  if(!$this->is_enabled()){
177
  echo '<input type="hidden" name="cl_post_title" id="cl_post_title"/>';
178
  echo '<input type="hidden" name="cl_post_url" id="cl_post_url"/>';
179
  echo '<input type="hidden" name="cl_prem" id="cl_prem"/>';
 
180
  // show badge (unless user set to manual insert)
181
+ if(($clbadgeshown == false && !isset($options['template_insert'])) || (isset($options['template_insert']) && $options['template_insert'] == '') ){
182
  $this->display_badge();
183
  }
184
  }
185
  function add_footer(){
186
  extract($this->get_options());
187
+ if((isset($minifying) && $minifying != 'on') || !$this->is_enabled()){
188
  return;
189
  }
190
  // from the excellent book wp-ajax (http://www.wpajax.com/)
237
  if(!$this->is_enabled()){
238
  return;
239
  }
240
+ if(!isset($template_insert)){
241
+ $template_insert = false;
242
+ }
243
  wp_enqueue_script('commentluv_script');
244
  $this->localize = array ('name' => $author_name, 'url' => $url_name, 'comment' => $comment_name, 'email' => $email_name,
245
  'infopanel' => $infopanel, 'default_on' => $default_on, 'default_on_admin' => $default_on_admin,
251
  'no_http_message'=>__('Please use http:// in front of your url',$this->plugin_domain),
252
  'no_url_logged_in_message'=>__('You need to visit your profile in the dashboard and update your details with your site URL',$this->plugin_domain),
253
  'no_info_message'=>__('No info was available or an error occured',$this->plugin_domain));
254
+ if(!isset($minifying)){
255
  wp_localize_script('commentluv_script','cl_settings',$this->localize);
256
  }
257
 
381
  * @param string $commentdata - status of comment
382
  */
383
  function comment_posted($id,$approved){
384
+ if(isset($_POST['cl_post_url']) && isset($_POST['cl_post_title'])){
385
+ //$title = apply_filters('kses',$_POST['cl_post_title']);
386
+ $title = strip_tags($_POST['cl_post_title']);
387
  //$link = apply_filters('kses',$_POST['cl_post_url']);
388
  $link = esc_url($_POST['cl_post_url']);
389
  //$prem = apply_filters('kses',$_POST['cl_prem']);
449
  $before = '';
450
  $after = '';
451
  // link
452
+ if(isset($options['link'])){
453
  $before = '<a href="http://www.commentluv.com" target="_blank" title="'.__('CommentLuv is enabled',$this->plugin_domain).'">';
454
  $after = '</a>';
455
  }
462
  }
463
  // custom image
464
  if($options['badge_choice'] == 'custom'){
465
+ if(isset($options['custom_image_url']) && $options['custom_image_url'] != ''){
466
  if(!strstr($options['custom_image_url'],'http://')){
467
  $imgurl = 'http://'.$options['custom_image_url'];
468
  } else {
904
  if(!$options['enable']){
905
  $options['enable'] = 'yes';
906
  }
907
+
908
  return $options;
909
  }
910
  /** handle_load_domain
1105
  }
1106
  $options = $this->get_options();
1107
  // check if detection disabled
1108
+ if(isset($options['disable_detect']) && $options['disable_detect'] == 'on'){
1109
  return $foundposts;
1110
  }
1111
  if($this->is_commentluv_request === true){
1202
  $o = $this->get_options();
1203
  $dbo = $this->db_option;
1204
  $pd = $this->plugin_domain;
1205
+ $badges = array('default_image'=>'CL91_default.png','default'=>'CL91_default.png','white'=>'CL91_White.gif','black'=>'CL91_Black.gif','none'=> 'nothing.gif');
1206
  //DebugBreak();
1207
  // remove notice if requested
1208
  if(isset($_GET['dismiss'])){
1236
  <td>
1237
  <p><?php _e('There is a premium version of CommentLuv coming that will have much more control of how the plugin works as well as exclusive features like keyword name, inline registration and much much more!. Signup to find out as soon as it is ready',$pd);?></p>
1238
  <?php
1239
+ if(isset($o['subscribed'])){
1240
  echo '<div class="submit">'.__('You have already subscribed, if you have not received the verification within 12 hours, please click the button to resend or try the form at',$pd).' <a target="_blank" href="http://www.commentluv.com/">www.commentluv.com</a><br><input style="margin:0 auto; display: block;" type="button" id="cl_notify" value="'.__('Resend Verification',$pd).'"/></div>';
1241
  } else {
1242
  echo '<div class="submit" style=" background-color: green; padding-left: 5px; padding-right: 5px; border-radius: 15px; -moz-border-radius: 15px; text-align: center;"><input style="margin: 0 auto; display:block" id="cl_notify" type="button" name="cl_notify" value="'.__('Click to register now!',$pd).'" /></div>';
1272
  </tr>
1273
  <tr class="ifenable">
1274
  <td style="text-align: center;" colspan="2">
1275
+ <input type="checkbox" name="<?php echo $dbo;?>[default_on]" <?php if(isset($o['default_on_admin'])) checked($o['default_on'],'on');?> value="on"/> <label for="<?php echo $dbo;?>[default_on]"><?php _e('On by default?',$pd);?></label>
1276
  </td>
1277
  <td></td>
1278
  <td style="text-align: center;" colspan="2">
1279
+ <input type="checkbox" name="<?php echo $dbo;?>[default_on_admin]" <?php if(isset($o['default_on_admin'])) checked($o['default_on_admin'],'on');?> value="on"/><label for="<?php echo $dbo;?>[default_on_admin]"> <?php _e('On for admin?',$pd);?></label>
1280
  </td>
1281
  </tr>
1282
  </tbody>
1307
  <option value="black" <?php selected($o['badge_type'],'black');?>><?php _e('Black',$pd);?></option>
1308
  <option value="none" <?php selected($o['badge_type'],'none');?>><?php _e('None',$pd);?></option>
1309
  </select>
1310
+
1311
  <p style="margin: 8px 0px 0px 8px;"><img id="display_badge" style="border: 1px solid #000; padding: 3px;" src="<?php echo $this->plugin_url;?>images/<?php echo $badges[$o['badge_type']];?>"/></p>
1312
  </td>
1313
  <td>
1314
  <input type="radio" class="radio" name="<?php echo $dbo;?>[badge_choice]" value="custom" <?php checked($o['badge_choice'],'custom');?>/>
1315
+ <input type="text" name="<?php echo $dbo;?>[custom_image_url]" value="<?php if(isset($o['custom_image_url'])) echo $o['custom_image_url'];?>"/>
1316
  <?php
1317
+ if(isset($o['custom_image_url']) && $o['custom_image_url'] != ''){
1318
  // show image
1319
  echo '<p style="margin: 8px 0px 0px 8px;"><img id="custom_badge" style="border: 1px solid #000; padding: 3px;" src="'.$o['custom_image_url'].'"/></p>';
1320
  } ?>
1322
  <td>
1323
 
1324
  <input type="radio" class="radio" name="<?php echo $dbo;?>[badge_choice]" value="text" <?php checked($o['badge_choice'],'text');?>/>
1325
+ <input type="text" name="<?php echo $dbo;?>[badge_text]" value="<?php if(isset($o['badge_text'])) echo $o['badge_text'];?>"/>
1326
+ <p style="margin: 8px 0px 0px 8px;"><input type="checkbox" name="<?php echo $dbo;?>[link]" value="on" <?php if(isset($o['link'])) checked($o['link'],'on');?>/> <label for="<?php echo $dbo;?>[link]"><?php _e('Link to Commentluv?',$pd);?></label>
1327
  </td>
1328
  <td></td>
1329
  <td style="text-align: center; border: 2px dotted; width:125px"><a onclick="return false;" href="<?php echo $this->plugin_url . 'videos/'; ?>appearancesettings.php?KeepThis=true&amp;TB_iframe=true&amp;height=355&width=545" class="thickbox"><img src="<?php echo $this->plugin_url;?>images/playbuttonsmall.png"/></a></td>
1374
  echo '<br>';
1375
  _e('(this will be automatically added if you have not added it yourself to the textarea above)',$pd);
1376
  $register_link = apply_filters('register','<a href="' . site_url('wp-login.php?action=register', 'login') . '">' . __('Register') . '</a>');
1377
+ echo ' : <input style="width:95%" type="text" value="'.htmlspecialchars($register_link).'" disabled/>';
1378
  }
1379
  ?>
1380
  </td>
1454
  </tr>
1455
  <tr>
1456
  <td colspan="2">
1457
+ <input type="checkbox" name="<?php echo $dbo;?>[template_insert]" <?php if(isset($o['template_insert'])) checked($o['template_insert'],'on');?> value="on"/><label for="<?php echo $dbo;?>[template_insert]"> <?php _e('Use manual insert of badge code?',$pd);?></label>
1458
  <br>( <strong>&lt;?php cl_display_badge(); ?&gt;</strong> )
1459
  </td>
1460
  <td colspan="2">
1461
+ <input type="checkbox" name="<?php echo $dbo;?>[minifying]" <?php if(isset($o['minifying'])) checked($o['minifying'],'on');?> value="on"/><label for="<?php echo $dbo;?>[minifying]"> <?php _e('Enable minifying compatibility?',$pd);?></label>
1462
  <br><?php _e('For caching plugins (places localized code in footer)',$pd);?>
1463
  </td>
1464
  <td>
1465
+ <input type="checkbox" name="<?php echo $dbo;?>[disable_detect]" <?php if(isset($o['disable_detect'])) checked($o['disable_detect'],'on');?> value="on"/><label for="<?php echo $dbo;?>[disable_detect]"> <?php _e('Disable Detection?',$pd);?></label>
1466
  <br><?php _e('For XML errors',$pd);?>
1467
  </td>
1468
  </tr>
1552
  <tr class="alt"><td colspan="2"><?php _e('News',$this->plugin_domain);?>:</td></tr>
1553
  <tr><td colspan="2">
1554
  <?php
1555
+ include_once(ABSPATH . WPINC . '/feed.php');
1556
+ if(function_exists('fetch_feed')){
1557
+ //debugBreak();
1558
+ $uri = 'http://comluv.com/category/newsletter/feed/';
1559
+ $feed = fetch_feed($uri);
1560
+ if(!is_wp_error($feed)){
1561
+ $rss_items = $feed->get_items(0,3);
1562
+ if($rss_items){
1563
+ foreach($rss_items as $item){
1564
+ ?>
1565
+ <li>
1566
+ <a href='<?php echo esc_url( $item->get_permalink() ); ?>'
1567
+ title='<?php echo 'Posted '.$item->get_date('j F Y | g:i a'); ?>'>
1568
+ <?php echo esc_html( $item->get_title() ); ?></a>
1569
+ </li>
1570
+ <?php
1571
+ }
1572
+ }
1573
+ }
1574
+ }
1575
+
1576
+ ?>
1577
  </td></tr>
1578
  <tr class="alt"><td colspan="2"><?php _e('Thanks to the following for translations',$this->plugin_domain);?>:</td></tr>
1579
  <tr><td><img src="<?php echo $this->plugin_url;?>images/it.png"/> <?php _e('Italian',$this->plugin_domain);?></td><td><a target="_blank" href="http://gidibao.net/">Gianni Diuno</a></td></tr>
1597
  <tr><td><img src="<?php echo $this->plugin_url;?>images/ru.png"/> <?php _e('Russian',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://www.fatcow.com/">Fatcow</a>--></td></tr>
1598
  <tr><td><img src="<?php echo $this->plugin_url;?>images/il.png"/> <?php _e('Hebrew',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://www.maorb.info/">Maor Barazany</a>--></td></tr>
1599
  <tr><td><img src="<?php echo $this->plugin_url;?>images/fr.png"/> <?php _e('French',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://referenceurfreelance.com/">Leo</a>--></td></tr>
1600
+
1601
  <tr><td><img src="<?php echo $this->plugin_url;?>images/sa.png"/> <?php _e('Arabic',$this->plugin_domain);?></td><td><!--<a target="_blank" href="http://www.melzarei.be/">Muhammad Elzarei</a>--></td></tr>
1602
  <tr><td><strong><?php _e('Want your link here?',$this->plugin_domain);?></strong></td><td><a target="_blank" href="http://support.commentluv.com/ticket/knowledgebase.php?article=1"><?php _e('How To Submit A Translation',$this->plugin_domain);?></a></td></tr>
1603
  <tr class="alt"><td colspan="2"><?php _e('Special thanks go to the following',$this->plugin_domain);?>:</td></tr>
js/commentluv.js CHANGED
@@ -1,4 +1,4 @@
1
- // commentluv 2.90.7
2
  jQuery(document).ready(function(){
3
  // get the form object and fields
4
  var formObj = jQuery('#cl_post_title').parents('form');
@@ -183,13 +183,13 @@ function cl_dostuff(){
183
  }else if(x.status==404){
184
  cl_message('API URL not found.');
185
  }else if(x.status==500){
186
- cl_message('Internal Server Error.' + x.response);
187
  }else if(e=='parsererror'){
188
  cl_message('Error.\nParsing JSON Request failed.' + x.responseText);
189
  }else if(e=='timeout'){
190
  cl_message('Request Time out.');
191
  }else {
192
- cl_message('Unknow Error. ' + x.statusText + ' ' + x.response);
193
  }
194
  }
195
  });
1
+ // commentluv 2.90.8
2
  jQuery(document).ready(function(){
3
  // get the form object and fields
4
  var formObj = jQuery('#cl_post_title').parents('form');
183
  }else if(x.status==404){
184
  cl_message('API URL not found.');
185
  }else if(x.status==500){
186
+ cl_message('Internal Server Error.' + x.responseText);
187
  }else if(e=='parsererror'){
188
  cl_message('Error.\nParsing JSON Request failed.' + x.responseText);
189
  }else if(e=='timeout'){
190
  cl_message('Request Time out.');
191
  }else {
192
+ cl_message('Unknow Error. ' + x.statusText + ' ' + x.responseText);
193
  }
194
  }
195
  });
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:http://comluv.com/about/donate
4
  Tags: commentluv, comments, last blog post, linkluv, comment luv , commentlove, comment love
5
  Requires at least: 3.0
6
  Tested up to: 3.2.1
7
- Stable tag: 2.90.8
8
 
9
  Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
10
 
@@ -37,9 +37,9 @@ German [Jan Ruehling](http://www.cloudliving.de/ "German Translation")
37
  Persian [Amir Heydari](http://www.3eo.ir/ "Persian Translation")
38
  Tamil [Tharun](http://technostreak.com/ "Tamil Translation")
39
  Ukranian [Alyona Lompar](http://www.designcontest.com/ "Ukranian Translation")
40
- Latvian [Edgars Bergs] (http://www.yourwebagency.co.uk/ "Latvian Translation")
41
- Romanian [Manuel Cheta] (http://obisnuit.eu/ "Romanian Translation")
42
- Norwegian [Hanna] (http://www.drommeland.com/ "Norwegian Translation")
43
 
44
  == Installation ==
45
 
@@ -68,6 +68,11 @@ Please see the videos in the settings page for explanations of how they work.
68
  4. edit post comments
69
 
70
  == ChangeLog ==
 
 
 
 
 
71
  = 2.90.8 =
72
  * added : Tamil language
73
  * added : Ukranian language
4
  Tags: commentluv, comments, last blog post, linkluv, comment luv , commentlove, comment love
5
  Requires at least: 3.0
6
  Tested up to: 3.2.1
7
+ Stable tag: 2.90.8.1
8
 
9
  Reward your readers by automatically placing a link to their last blog post at the end of their comment. Encourage a community and discover new posts.
10
 
37
  Persian [Amir Heydari](http://www.3eo.ir/ "Persian Translation")
38
  Tamil [Tharun](http://technostreak.com/ "Tamil Translation")
39
  Ukranian [Alyona Lompar](http://www.designcontest.com/ "Ukranian Translation")
40
+ Latvian [Edgars Bergs](http://www.yourwebagency.co.uk/ "Latvian Translation")
41
+ Romanian [Manuel Cheta](http://obisnuit.eu/ "Romanian Translation")
42
+ Norwegian [Hanna](http://www.drommeland.com/ "Norwegian Translation")
43
 
44
  == Installation ==
45
 
68
  4. edit post comments
69
 
70
  == ChangeLog ==
71
+ = 2.90.8.1 =
72
+ * updated italian language (thanks Gianni)
73
+ * fixed : fixed all notices when running in DEBUG mode
74
+ * fixed : default image display in settings page was not showing after resetting settings
75
+
76
  = 2.90.8 =
77
  * added : Tamil language
78
  * added : Ukranian language