WordPress Related Posts - Version 3.4.1

Version Description

  • Fixed theme bug
  • Fixed link to Terms of Service
Download this release

Release Info

Developer ddksr
Plugin Icon wp plugin WordPress Related Posts
Version 3.4.1
Comparing to
See all releases

Code changes from version 3.4 to 3.4.1

admin_notices.php CHANGED
@@ -29,26 +29,7 @@ function wp_rp_admin_connect_notice() {
29
  }
30
  wp_enqueue_style( 'wp_rp_connect_style' );
31
  wp_enqueue_script( 'wp_rp_connect_js' );
32
- ?>
33
- <div id="wp-rp-message" class="updated wp-rp-connect">
34
- <div id="wp-rp-dismiss">
35
- <a id="wp-rp-close-button"></a>
36
- </div>
37
- <div id="wp-rp-wrap-container">
38
- <div id="wp-rp-connect-wrap">
39
- <a id="wp-rp-login" href="<?php echo admin_url('admin.php?page=wordpress-related-posts&ref=turn-on-rp'); ?>">Turn on</a>
40
- </div>
41
- <div id="wp-rp-text-container">
42
- <h4>WordPress Related Posts are almost ready,</h4>
43
- <h4>now all you need to do is connect to our service.</h4>
44
- </div>
45
- </div>
46
- <div id="wp-rp-bottom-container">
47
- <p>By turning on Related Posts you agree to <a href="http://www.zemanta.com/rp-tos" target="_blank">terms of service.</a></p>
48
- <p>You'll get Advanced Settings, Themes, Thumbnails and Analytics Dashboard. These features are provided by <a target="_blank" href="http://www.zemanta.com">Zemanta</a> as a service.</p>
49
- </div>
50
- </div>
51
- <?php
52
  }
53
 
54
  function wp_rp_add_admin_notice($type = 'updated', $message = '') {
29
  }
30
  wp_enqueue_style( 'wp_rp_connect_style' );
31
  wp_enqueue_script( 'wp_rp_connect_js' );
32
+ include(wp_rp_get_template('connect_notice'));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
33
  }
34
 
35
  function wp_rp_add_admin_notice($type = 'updated', $message = '') {
config.php CHANGED
@@ -252,6 +252,13 @@ function wp_rp_is_classic() {
252
  return false;
253
  }
254
 
 
 
 
 
 
 
 
255
  function wp_rp_migrate_3_3_3() {
256
  $wp_rp_meta = get_option('wp_rp_meta');
257
  $wp_rp_meta['version'] = '3.4';
252
  return false;
253
  }
254
 
255
+ function wp_rp_migrate_3_4() {
256
+ $wp_rp_meta = get_option('wp_rp_meta');
257
+ $wp_rp_meta['version'] = '3.4.1';
258
+ $wp_rp_meta['new_user'] = false;
259
+ update_option('wp_rp_meta', $wp_rp_meta);
260
+ }
261
+
262
  function wp_rp_migrate_3_3_3() {
263
  $wp_rp_meta = get_option('wp_rp_meta');
264
  $wp_rp_meta['version'] = '3.4';
init.php CHANGED
@@ -1,5 +1,5 @@
1
  <?php
2
- define('WP_RP_VERSION', '3.4');
3
 
4
  define('WP_RP_PLUGIN_FILE', plugin_basename(__FILE__));
5
 
@@ -199,7 +199,10 @@ function wp_rp_fetch_posts_and_title() {
199
  $options = wp_rp_get_options();
200
 
201
  $limit = $options['max_related_posts'];
202
- $title = $options["related_posts_title"];
 
 
 
203
 
204
  $related_posts = array();
205
 
@@ -454,19 +457,18 @@ function wp_rp_head_resources() {
454
  $output .= '<script type="text/javascript" src="' . WP_RP_STATIC_BASE_URL . WP_RP_STATIC_LOADER_FILE . '?version=' . WP_RP_VERSION . '" async></script>' . "\n";
455
  }
456
 
457
- if ($options['enable_themes']) {
458
- $static_url = plugins_url('static/', __FILE__);
459
- $theme_url = plugins_url(WP_RP_STATIC_THEMES_PATH, __FILE__);
460
-
461
 
 
 
 
 
 
462
  if ($platform_options['theme_name'] !== 'plain.css' && $platform_options['theme_name'] !== 'm-plain.css') {
463
  $output .= '<link rel="stylesheet" href="' . $theme_url . $platform_options['theme_name'] . '?version=' . WP_RP_VERSION . '" />' . "\n";
464
  }
465
 
466
- if ($platform_options['custom_theme_enabled']) {
467
- $output .= '<style type="text/css">' . "\n" . $platform_options['theme_custom_css'] . "</style>\n";
468
- }
469
-
470
  if ($platform_options['theme_name'] === 'm-stream.css') {
471
  wp_enqueue_script('wp_rp_infiniterecs', $static_url . WP_RP_STATIC_INFINITE_RECS_JS_FILE, array('jquery'), WP_RP_VERSION);
472
  }
1
  <?php
2
+ define('WP_RP_VERSION', '3.4.1');
3
 
4
  define('WP_RP_PLUGIN_FILE', plugin_basename(__FILE__));
5
 
199
  $options = wp_rp_get_options();
200
 
201
  $limit = $options['max_related_posts'];
202
+
203
+ // quirky stuff due to WPML compatibility
204
+ $title_option = get_option('wp_rp_options', false);
205
+ $title = __($title_option['related_posts_title'],'wp_related_posts');
206
 
207
  $related_posts = array();
208
 
457
  $output .= '<script type="text/javascript" src="' . WP_RP_STATIC_BASE_URL . WP_RP_STATIC_LOADER_FILE . '?version=' . WP_RP_VERSION . '" async></script>' . "\n";
458
  }
459
 
460
+ $static_url = plugins_url('static/', __FILE__);
461
+ $theme_url = plugins_url(WP_RP_STATIC_THEMES_PATH, __FILE__);
 
 
462
 
463
+ if ($platform_options['custom_theme_enabled']) {
464
+ $output .= '<style type="text/css">' . "\n" . $platform_options['theme_custom_css'] . "</style>\n";
465
+ }
466
+
467
+ if ($options['enable_themes']) {
468
  if ($platform_options['theme_name'] !== 'plain.css' && $platform_options['theme_name'] !== 'm-plain.css') {
469
  $output .= '<link rel="stylesheet" href="' . $theme_url . $platform_options['theme_name'] . '?version=' . WP_RP_VERSION . '" />' . "\n";
470
  }
471
 
 
 
 
 
472
  if ($platform_options['theme_name'] === 'm-stream.css') {
473
  wp_enqueue_script('wp_rp_infiniterecs', $static_url . WP_RP_STATIC_INFINITE_RECS_JS_FILE, array('jquery'), WP_RP_VERSION);
474
  }
readme.txt CHANGED
@@ -4,7 +4,7 @@ Tags: related,posts,post,related posts,plugin,seo
4
  License: GPLv2
5
  Requires at least: 3.3
6
  Tested up to: 3.9
7
- Stable tag: 3.4
8
 
9
  WordPress Related Posts generates a list of related posts with thumbnails and gives you click-through statistics.
10
 
@@ -90,6 +90,10 @@ Fix for security vulnerability. Upgrade immediately.
90
 
91
  == Changelog ==
92
 
 
 
 
 
93
  = 3.4 =
94
  * Added support for HTTPS dashboard
95
  * More organized settings
@@ -254,3 +258,4 @@ Fix for security vulnerability. Upgrade immediately.
254
 
255
  = 1.0 =
256
  * first version
 
4
  License: GPLv2
5
  Requires at least: 3.3
6
  Tested up to: 3.9
7
+ Stable tag: 3.4.1
8
 
9
  WordPress Related Posts generates a list of related posts with thumbnails and gives you click-through statistics.
10
 
90
 
91
  == Changelog ==
92
 
93
+ = 3.4.1 =
94
+ * Fixed theme bug
95
+ * Fixed link to Terms of Service
96
+
97
  = 3.4 =
98
  * Added support for HTTPS dashboard
99
  * More organized settings
258
 
259
  = 1.0 =
260
  * first version
261
+
settings.php CHANGED
@@ -229,16 +229,16 @@ function wp_rp_settings_page() {
229
 
230
  foreach(array('desktop') as $platform) {
231
  if(isset($postdata['wp_rp_' . $platform . '_theme_name'])) { // If this isn't set, maybe the AJAX didn't load...
232
- $new_options[$platform]['theme_name'] = trim($postdata['wp_rp_' . $platform . '_theme_name']);
233
-
234
- if(isset($postdata['wp_rp_' . $platform . '_theme_custom_css'])) {
235
- $new_options[$platform]['theme_custom_css'] = $postdata['wp_rp_' . $platform . '_theme_custom_css'];
236
- } elseif (isset($postdata["wp_rp_${platform}_custom_theme_enabled"])) {
237
- $new_options[$platform]['theme_custom_css'] = '';
238
- }
239
  } else {
240
  $new_options[$platform]['theme_name'] = $old_options[$platform]['theme_name'];
241
- $new_options[$platform]['theme_custom_css'] = $old_options[$platform]['theme_custom_css'];
 
 
 
 
 
 
242
  }
243
  }
244
 
229
 
230
  foreach(array('desktop') as $platform) {
231
  if(isset($postdata['wp_rp_' . $platform . '_theme_name'])) { // If this isn't set, maybe the AJAX didn't load...
232
+ $new_options[$platform]['theme_name'] = trim($postdata['wp_rp_' . $platform . '_theme_name']);
 
 
 
 
 
 
233
  } else {
234
  $new_options[$platform]['theme_name'] = $old_options[$platform]['theme_name'];
235
+ }
236
+ if(isset($postdata['wp_rp_' . $platform . '_theme_custom_css'])) {
237
+ $new_options[$platform]['theme_custom_css'] = $postdata['wp_rp_' . $platform . '_theme_custom_css'];
238
+ } elseif (isset($postdata["wp_rp_${platform}_custom_theme_enabled"])) {
239
+ $new_options[$platform]['theme_custom_css'] = '';
240
+ } else {
241
+ $new_options[$platform]['theme_custom_css'] = $old_options[$platform]['theme_custom_css'];
242
  }
243
  }
244
 
static/img/cross.png CHANGED
Binary file
static/js/dashboard.js CHANGED
@@ -1,12 +1,11 @@
1
- (function(a){var h=function(f,h){a.each(h,function(a,h){f=f.replace(RegExp("{{ *"+a+" *}}"),h)});return f};a(function(){var f=a("#wp_rp_earnings_wrap"),C=a("#wp_rp_earnings_holder"),i=a("#wp_rp_statistics_wrap"),D=a("#wp_rp_dashboard_url").val(),m=a("#wp_rp_blog_id").val(),v=a("#wp_rp_auth_key").val(),n=a("#wp_rp_ajax_nonce").val(),E=0<a("#wp_rp_show_traffic_exchange_statistics").length,F=0<a("#wp_rp_show_promoted_content_statistics").length,w=null,s=null,p=!1,d=null,j,k,l,q,t,r,x=function(a){a||
2
- (a=5E3);clearInterval(s);0<a&&(s=setInterval(u,a))},y=function(c,b){a.ajax({url:ajaxurl,data:{action:"wprp_subscribe",_wpnonce:n,email:c||"0"},success:b,type:"POST"})},z=function(){var c=1!==a("#wp_rp_desktop_custom_theme_enabled:checked").length;a("#wp_rp_desktop_theme_custom_css").prop("readonly",c)},A=function(c){var b=a("#wp_rp_statistics_wrap");c||b.find(".unavailable").slideDown();x(3E4);p=!1},u=function(c){p||(p=!0,w=setTimeout(function(){A(!c)},2E3),a.getJSON(D+"pageviews/?callback=?",{blog_id:m,
3
- auth_key:v},function(b){var e=b.data;clearTimeout(w);if(!b||"ok"!==b.status||!b.data)A(!c);else{d||(d=a('<ul class="statistics" />'),i.find(".unavailable").slideUp(),d.append('<li class="title"><div class="desktop">Desktop</div><div class="mobile">Mobile</div></li>'),d.append(h('<li class="{{class}} stats"><p class="num mobile"></p><p class="num all"></p><h5>{{ title}}<span>{{range}}</span></h5></li>',{"class":"ctr",title:"click-through rate",range:"last 30 days"})),d.append(h('<li class="{{class}} stats"><p class="num mobile"></p><p class="num all"></p><h5>{{ title}}<span>{{range}}</span></h5></li>',
4
- {"class":"pageviews",title:"page views",range:"last 30 days"})),d.append(h('<li class="{{class}} stats"><p class="num mobile"></p><p class="num all"></p><h5>{{ title}}<span>{{range}}</span></h5></li>',{"class":"clicks",title:"clicks",range:"last 30 days"})),i.append(d),E&&i.append('<div class="network"><div class="icon"></div><span class="num"></span><h4>Inbound Visitors</h4><div class="description"><p>Number of visitors that came to your site because this plugin promoted your content on other sites.<strong>Wow, a traffic exchange! :)</strong></p></div></div>'),
5
- i.parents(".collapsed").length&&i.parent().hide());x(b.data.update_interval);j=Math.max(e.mobile_pageviews,j||0);k=Math.max(e.mobile_clicks,k||0);b=0<j&&(100*(k/j)).toFixed(1)||0;l=Math.max(e.pageviews-j,l||0);q=Math.max(e.clicks-k,q||0);var G=0<l&&(100*(q/l)).toFixed(1)||0;t=Math.max(e.network_in_pageviews,t||0);if(F&&e.promoted_content_money_earned){r=Math.max(e.promoted_content_money_earned,r||0);var g=(r/100).toFixed(2),H=(e.meta.min_payout/100).toFixed(2);f.find(".num").html("$"+g);f.find(".payout").html("$"+
6
- H);r>=e.meta.min_payout&&f.find(".claim").hasClass("disabled")&&(f.find(".claim").removeClass("disabled"),f.find(".claim").attr("href","mailto:support+claim@zemanta.com?subject="+encodeURIComponent("I earned over $50!")+"&body="+encodeURIComponent("I would like to claim my money.\nMy reference code is: "+m+" \nMy PayPal account is:\n")));C.show()}d.find(".ctr .num.all").html(G+"%");d.find(".pageviews .num.all").html(l);d.find(".clicks .num.all").html(q);d.find(".ctr .num.mobile").html(b+"%");d.find(".pageviews .num.mobile").html(j);
7
- d.find(".clicks .num.mobile").html(k);i.find(".network .num").html(t);p=!1}}))},B=function(c){a("#wp_rp_static_base_url").val();a("#wp_rp_ctr_dashboard_enabled, #wp_rp_enable_themes, #wp_rp_promoted_content_enabled, #wp_rp_traffic_exchange_enabled").prop("checked",!0);a("#wp_rp_settings_form").append('<input type="hidden" value="statistics+thumbnails+promoted" name="wp_rp_turn_on_button_pressed" id="wp_rp_turn_on_button_pressed">');a("#wp_rp_settings_form").append('<input type="hidden" value="'+c+
8
- '" name="wp_rp_button_type" id="wp_rp_button_type">');a("#wp_rp_settings_form").submit()};z();a("#wp_rp_desktop_custom_theme_enabled").click(z);m&&v&&(u(!0),s=setInterval(u,2E3));!m&&document.location.search.match(/ref=turn-on-rp/)&&B("turn-on-banner");a("#wp_rp_turn_on_statistics a.turn-on").click(function(c){c.preventDefault();c=a(this).data("type");B(c)});a("#wp_rp_subscribe_email").length&&(a("#wp_rp_subscribe_email").val().length?a("#wp_rp_subscribe_button").hide():a("#wp_rp_unsubscribe_button").hide());
9
- a("#wp_rp_subscribe_button").on("click",function(c){var b=a("#wp_rp_subscribe_email").val();c.preventDefault();b&&(a("#wp_rp_subscribe_button").prop("disabled",!0),y(b,function(b){parseInt(b)&&(a("#wp_rp_subscribe_button").prop("disabled",!1),a("#wp_rp_subscribe_button").hide(),a("#wp_rp_unsubscribe_button").show(),alert("Subscription successful!"))}))});a("#wp_rp_unsubscribe_button").on("click",function(c){c.preventDefault();a("#wp_rp_unsubscribe_button").prop("disabled",!0);y(!1,function(b){parseInt(b)&&
10
- (a("#wp_rp_subscribe_email").val(""),a("#wp_rp_unsubscribe_button").prop("disabled",!1),a("#wp_rp_unsubscribe_button").hide(),a("#wp_rp_subscribe_button").show())})});a(".wp_rp_notification .close").on("click",function(c){a.ajax({url:a(this).attr("href"),data:{noredirect:!0},_wpnonce:n});a(this).parent().slideUp(function(){a(this).remove()});c.preventDefault()});a("#wp_rp_wrap .collapsible .collapse-handle").on("click",function(c){var b=a(this).closest(".collapsible"),e=b.find(".container"),d=b.hasClass("collapsed"),
11
- g=b.attr("block");d?(e.slideDown(),a.post(ajaxurl,{action:"rp_show_hide_"+g,show:!0,_wpnonce:n})):(e.slideUp(),a.post(ajaxurl,{action:"rp_show_hide_"+g,hide:!0,_wpnonce:n}));b.toggleClass("collapsed");if("statistics"===g){var g="statistics_"+(d?"on":"off"),e=void 0,b=new Image,d="https:"===location.protocol?"https://":"http://",g={"zem-habit-platform":"wordpress-wprp","zem-habit-action":g,"zem-habit-timestamp":(new Date).getTime()},e=e||{},g=a.extend(e,g),e=d+"eyepatch.zemanta.com/log/?",f="";a.each(g,
12
- function(a,b){f+=a+"="+encodeURIComponent(b)+"&"});d=f.slice(0,f.length-1);b.src=e+d}c.preventDefault()})})})(jQuery);
1
+ (function(a){var h=function(f,h){a.each(h,function(a,h){f=f.replace(RegExp("{{ *"+a+" *}}"),h)});return f};a(function(){var f=a("#wp_rp_earnings_wrap"),B=a("#wp_rp_earnings_holder"),l=a("#wp_rp_statistics_wrap"),C=a("#wp_rp_dashboard_url").val(),m=a("#wp_rp_blog_id").val(),u=a("#wp_rp_auth_key").val(),n=a("#wp_rp_ajax_nonce").val();a("#wp_rp_show_traffic_exchange_statistics");var D=0<a("#wp_rp_show_promoted_content_statistics").length,v=null,s=null,p=!1,d=null,i,j,k,q,r,w=function(a){a||(a=5E3);clearInterval(s);
2
+ 0<a&&(s=setInterval(t,a))},x=function(c,b){a.ajax({url:ajaxurl,data:{action:"wprp_subscribe",_wpnonce:n,email:c||"0"},success:b,type:"POST"})},y=function(){var c=1!==a("#wp_rp_desktop_custom_theme_enabled:checked").length;a("#wp_rp_desktop_theme_custom_css").prop("readonly",c)},z=function(c){var b=a("#wp_rp_statistics_wrap");c||b.find(".unavailable").slideDown();w(3E4);p=!1},t=function(c){p||(p=!0,v=setTimeout(function(){z(!c)},2E3),a.getJSON(C+"pageviews/?callback=?",{blog_id:m,auth_key:u},function(b){var e=
3
+ b.data;clearTimeout(v);if(!b||"ok"!==b.status||!b.data)z(!c);else{d||(d=a('<ul class="statistics" />'),l.find(".unavailable").slideUp(),d.append('<li class="title"><div class="desktop">Desktop</div><div class="mobile">Mobile</div></li>'),d.append(h('<li class="{{class}} stats"><p class="num mobile"></p><p class="num all"></p><h5>{{ title}}<span>{{range}}</span></h5></li>',{"class":"ctr",title:"click-through rate",range:"last 30 days"})),d.append(h('<li class="{{class}} stats"><p class="num mobile"></p><p class="num all"></p><h5>{{ title}}<span>{{range}}</span></h5></li>',
4
+ {"class":"pageviews",title:"page views",range:"last 30 days"})),d.append(h('<li class="{{class}} stats"><p class="num mobile"></p><p class="num all"></p><h5>{{ title}}<span>{{range}}</span></h5></li>',{"class":"clicks",title:"clicks",range:"last 30 days"})),l.append(d),l.parents(".collapsed").length&&l.parent().hide());w(b.data.update_interval);i=Math.max(e.mobile_pageviews,i||0);j=Math.max(e.mobile_clicks,j||0);b=0<i&&(100*(j/i)).toFixed(1)||0;k=Math.max(e.pageviews-i,k||0);q=Math.max(e.clicks-j,
5
+ q||0);var E=0<k&&(100*(q/k)).toFixed(1)||0;if(D&&e.promoted_content_money_earned){r=Math.max(e.promoted_content_money_earned,r||0);var g=(r/100).toFixed(2),F=(e.meta.min_payout/100).toFixed(2);f.find(".num").html("$"+g);f.find(".payout").html("$"+F);r>=e.meta.min_payout&&f.find(".claim").hasClass("disabled")&&(f.find(".claim").removeClass("disabled"),f.find(".claim").attr("href","mailto:support+claim@zemanta.com?subject="+encodeURIComponent("I earned over $50!")+"&body="+encodeURIComponent("I would like to claim my money.\nMy reference code is: "+
6
+ m+" \nMy PayPal account is:\n")));B.show()}d.find(".ctr .num.all").html(E+"%");d.find(".pageviews .num.all").html(k);d.find(".clicks .num.all").html(q);d.find(".ctr .num.mobile").html(b+"%");d.find(".pageviews .num.mobile").html(i);d.find(".clicks .num.mobile").html(j);p=!1}}))},A=function(c){a("#wp_rp_static_base_url").val();a("#wp_rp_ctr_dashboard_enabled, #wp_rp_enable_themes, #wp_rp_promoted_content_enabled, #wp_rp_traffic_exchange_enabled").prop("checked",!0);a("#wp_rp_settings_form").append('<input type="hidden" value="statistics+thumbnails+promoted" name="wp_rp_turn_on_button_pressed" id="wp_rp_turn_on_button_pressed">');
7
+ a("#wp_rp_settings_form").append('<input type="hidden" value="'+c+'" name="wp_rp_button_type" id="wp_rp_button_type">');a("#wp_rp_settings_form").submit()};y();a("#wp_rp_desktop_custom_theme_enabled").click(y);m&&u&&(t(!0),s=setInterval(t,2E3));!m&&document.location.search.match(/ref=turn-on-rp/)&&A("turn-on-banner");a("#wp_rp_turn_on_statistics a.turn-on").click(function(c){c.preventDefault();c=a(this).data("type");A(c)});a("#wp_rp_subscribe_email").length&&(a("#wp_rp_subscribe_email").val().length?
8
+ a("#wp_rp_subscribe_button").hide():a("#wp_rp_unsubscribe_button").hide());a("#wp_rp_subscribe_button").on("click",function(c){var b=a("#wp_rp_subscribe_email").val();c.preventDefault();b&&(a("#wp_rp_subscribe_button").prop("disabled",!0),x(b,function(b){parseInt(b)&&(a("#wp_rp_subscribe_button").prop("disabled",!1),a("#wp_rp_subscribe_button").hide(),a("#wp_rp_unsubscribe_button").show(),alert("Subscription successful!"))}))});a("#wp_rp_unsubscribe_button").on("click",function(c){c.preventDefault();
9
+ a("#wp_rp_unsubscribe_button").prop("disabled",!0);x(!1,function(b){parseInt(b)&&(a("#wp_rp_subscribe_email").val(""),a("#wp_rp_unsubscribe_button").prop("disabled",!1),a("#wp_rp_unsubscribe_button").hide(),a("#wp_rp_subscribe_button").show())})});a(".wp_rp_notification .close").on("click",function(c){a.ajax({url:a(this).attr("href"),data:{noredirect:!0},_wpnonce:n});a(this).parent().slideUp(function(){a(this).remove()});c.preventDefault()});a("#wp_rp_wrap .collapsible .collapse-handle").on("click",
10
+ function(c){var b=a(this).closest(".collapsible"),e=b.find(".container"),d=b.hasClass("collapsed"),g=b.attr("block");d?(e.slideDown(),a.post(ajaxurl,{action:"rp_show_hide_"+g,show:!0,_wpnonce:n})):(e.slideUp(),a.post(ajaxurl,{action:"rp_show_hide_"+g,hide:!0,_wpnonce:n}));b.toggleClass("collapsed");if("statistics"===g){var g="statistics_"+(d?"on":"off"),e=void 0,b=new Image,d="https:"===location.protocol?"https://":"http://",g={"zem-habit-platform":"wordpress-wprp","zem-habit-action":g,"zem-habit-timestamp":(new Date).getTime()},
11
+ e=e||{},g=a.extend(e,g),e=d+"eyepatch.zemanta.com/log/?",f="";a.each(g,function(a,b){f+=a+"="+encodeURIComponent(b)+"&"});d=f.slice(0,f.length-1);b.src=e+d}c.preventDefault()})})})(jQuery);
 
views/connect_notice.php ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div id="wp-rp-message" class="updated wp-rp-connect">
2
+ <div id="wp-rp-dismiss">
3
+ <a id="wp-rp-close-button"></a>
4
+ </div>
5
+ <div id="wp-rp-wrap-container">
6
+ <div id="wp-rp-connect-wrap">
7
+ <a id="wp-rp-login" href="<?php echo admin_url('admin.php?page=wordpress-related-posts&ref=turn-on-rp'); ?>">Turn on</a>
8
+ </div>
9
+ <div id="wp-rp-text-container">
10
+ <h4>WordPress Related Posts are almost ready,</h4>
11
+ <h4>now all you need to do is connect to our service.</h4>
12
+ </div>
13
+ </div>
14
+ <div id="wp-rp-bottom-container">
15
+ <p>By turning on Related Posts you agree to <a href="http://www.zemanta.com/blog/about/related-posts-terms-of-service/" target="_blank">terms of service.</a></p>
16
+ <p>You'll get Advanced Settings, Themes, Thumbnails and Analytics Dashboard. These features are provided by <a target="_blank" href="http://www.zemanta.com">Zemanta</a> as a service.</p>
17
+ </div>
18
+ </div>
wp_related_posts.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /*
3
  Plugin Name: WordPress Related Posts
4
- Version: 3.4
5
  Plugin URI: http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/
6
  Description: Quickly increase your readers' engagement with your posts by adding Related Posts in the footer of your content. Click on <a href="admin.php?page=wordpress-related-posts">Related Posts tab</a> to configure your settings.
7
  Author: Zemanta Ltd.
1
  <?php
2
  /*
3
  Plugin Name: WordPress Related Posts
4
+ Version: 3.4.1
5
  Plugin URI: http://wordpress.org/extend/plugins/wordpress-23-related-posts-plugin/
6
  Description: Quickly increase your readers' engagement with your posts by adding Related Posts in the footer of your content. Click on <a href="admin.php?page=wordpress-related-posts">Related Posts tab</a> to configure your settings.
7
  Author: Zemanta Ltd.
wpml-config.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
1
+ <wpml-config>
2
+ <admin-texts>
3
+ <key name='wp_rp_options'>
4
+ <key name='related_posts_title' />
5
+ <key name='related_posts_title' />
6
+ </key>
7
+ </admin-texts>
8
+ </wpml-config>