WordPress Social Tools, Related Posts, Monetization – Shareaholic - Version 6.1.3.6

Version Description

  • Show Related Posts data status
  • Updated screenshots (corrected WordPress logo)
Download this release

Release Info

Developer shareaholic
Plugin Icon 128x128 WordPress Social Tools, Related Posts, Monetization – Shareaholic
Version 6.1.3.6
Comparing to
See all releases

Code changes from version 6.1.3.5 to 6.1.3.6

includes/shrsb_analytics_settings_page.php CHANGED
@@ -109,61 +109,8 @@ function shrsb_analytics_settings_page() {
109
  </div>
110
  <div class="box-mid-body">
111
  <div style="padding:8px;background:#FDF6E5;"><img src="<?php echo SHRSB_PLUGPATH; ?>images/chart.png" align="right" alt="New!" />
112
- <?php
113
 
114
- $parse = parse_url(get_bloginfo('url'));
115
- $share_url = "https://www.shareaholic.com/api/data/".$parse['host']."/sharecount/30";
116
- $top_users_url = "https://www.shareaholic.com/api/data/".$parse['host']."/topusers/16/";
117
-
118
- echo sprintf(__('<b style="font-size:14px;line-height:22px;">Did you know that content from this website has been shared <span style="color:#CC1100;"><span id="bonusShareCount"></span> time(s)</span> in the past <span id="bonusShareTimeFrame"></span> day(s)?</b>', 'shrsb'));
119
- ?>
120
-
121
- <script type ="text/javascript">
122
- (function($){
123
- $(document).ready( function () {
124
- var url = <?php echo "'".$share_url."'";?>;
125
- var top_users_url = <?php echo "'".$top_users_url."'";?>;
126
- $.getJSON(url+'?callback=?', function (obj) {
127
- $('#bonusShareCount').text(obj.sharecount);
128
- $('#bonusShareTimeFrame').text(obj.timeframe);
129
- });
130
-
131
- $.getJSON(top_users_url+'?callback=?', function (obj) {
132
- add_faces(obj);
133
- });
134
- });
135
-
136
- var add_faces = function(obj) {
137
- if(obj && obj.length) {
138
- var shuffle = function(v){
139
- //+ Jonas Raoni Soares Silva
140
- //@ http://jsfromhell.com/array/shuffle [rev. #1]
141
- for(var j, x, i = v.length; i; j = parseInt(Math.random() * i), x = v[--i], v[i] = v[j], v[j] = x);
142
- return v;
143
- };
144
- obj = shuffle(obj);
145
-
146
- $('#bonusShareTopUser').show();
147
- var face_ul = $('<ul id="bonusShareFacesUL"/>');
148
- for(var i=0; i<obj.length; ++i) {
149
- var shr_profile_url = "https://shareaholic.com/" + obj[i].username;
150
- face_ul.append(
151
- $("<li class='bonusShareLi'>").append("<a target='_blank' href="+shr_profile_url+"><img class='bonusShareFaces' title=" + obj[i].username + " src=" + obj[i].picture_url + "></img></a>")
152
- );
153
- }
154
-
155
- $('#bonusShareTopUser').append(face_ul);
156
-
157
- }
158
- };
159
- })(jQuery);
160
- </script>
161
- <br/><br/>
162
- <div id="bonusShareTopUser" style="display:none"><b><?php _e('Meet who spreads your content the most:', 'shrsb'); ?></b></div>
163
-
164
- <br />
165
- <div style="background: url(https://shareaholic.com/media/images/border_hr.png) repeat-x scroll left top; height: 2px;"></div>
166
- <br />
167
  <?php echo sprintf(__('<span style="font-size: 12px;">Shareaholic reports all of your important social media metrics including popular pages on your website, referral channels, and who are making referrals and spreading your webpages on the internet on your behalf bringing you back more traffic and new visitors for free.</span> <br><br> <b><span style="color:#CC1100;">What are you waiting for?</span> You can access detailed %ssocial engagement analytics%s about your website right now.</b>', 'shrsb'), '<a href="https://shareaholic.com/publishers/analytics/'.$parse['host'].'/">', '</a>');
168
  ?>
169
 
109
  </div>
110
  <div class="box-mid-body">
111
  <div style="padding:8px;background:#FDF6E5;"><img src="<?php echo SHRSB_PLUGPATH; ?>images/chart.png" align="right" alt="New!" />
112
+ <?php $parse = parse_url(get_bloginfo('url')); ?>
113
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
114
  <?php echo sprintf(__('<span style="font-size: 12px;">Shareaholic reports all of your important social media metrics including popular pages on your website, referral channels, and who are making referrals and spreading your webpages on the internet on your behalf bringing you back more traffic and new visitors for free.</span> <br><br> <b><span style="color:#CC1100;">What are you waiting for?</span> You can access detailed %ssocial engagement analytics%s about your website right now.</b>', 'shrsb'), '<a href="https://shareaholic.com/publishers/analytics/'.$parse['host'].'/">', '</a>');
115
  ?>
116
 
includes/shrsb_landing_page.php CHANGED
@@ -8,8 +8,18 @@
8
  <ul id="shrsb-sortables">
9
 
10
  <li>
 
 
 
 
 
 
 
 
 
 
11
 
12
- <div class="page-header" style="margin-top:20px;"">
13
  <h1 class="grey_light">Enable Sharing:</h1>
14
  </div>
15
 
@@ -32,17 +42,6 @@
32
  <div class="shr-landing-product-name"><h2>ClassicBookmarks</h2><span class="shr-landing-product-desc">Beautiful, elegant, classic styled sharing buttons.</span></div>
33
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_classicbookmarks.php" class="btn btn-large <?php global $shrsb_cb; echo ((@$shrsb_cb['cb'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_cb['cb'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
34
  </div>
35
-
36
- <div class="page-header" style="margin-top:40px;">
37
- <h1 class="grey_light">Enable Discovery:</h1>
38
- </div>
39
-
40
- <div id="rec_box" class="select_product">
41
- <img style="float:left; margin-left:-25px;margin-top:-19px;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
42
- <div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/thumbs.png" ?>"></div>
43
- <div class="shr-landing-product-name"><h2>Recommendations / Related Content</h2><span class="shr-landing-product-desc">Proven to drive more pageviews by helping your readers discover more of your amazing content.</span></div>
44
- <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_recommendations.php" class="btn btn-large <?php global $shrsb_recommendations; echo ((@$shrsb_recommendations['recommendations'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_recommendations['recommendations'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
45
- </div>
46
 
47
  <div class="page-header" style="margin-top:40px;">
48
  <h1 class="grey_light">Analyze:</h1>
8
  <ul id="shrsb-sortables">
9
 
10
  <li>
11
+ <div class="page-header" style="margin-top:20px;">
12
+ <h1 class="grey_light">Enable Discovery:</h1>
13
+ </div>
14
+
15
+ <div id="rec_box" class="select_product">
16
+ <img style="float:left; margin-left:-25px;margin-top:-19px;" src="<?php echo SHRSB_PLUGPATH."images/new_badge.png" ?>">
17
+ <div class="shr-landing-product-icon"><img src="<?php echo SHRSB_PLUGPATH."images/thumbs.png" ?>"></div>
18
+ <div class="shr-landing-product-name"><h2>Recommendations / Related Content</h2><span class="shr-landing-product-desc">Proven to drive more pageviews by helping your readers discover more of your amazing content.</span></div>
19
+ <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_recommendations.php" class="btn btn-large <?php global $shrsb_recommendations; echo ((@$shrsb_recommendations['recommendations'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_recommendations['recommendations'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
20
+ </div>
21
 
22
+ <div class="page-header" style="margin-top:40px;"">
23
  <h1 class="grey_light">Enable Sharing:</h1>
24
  </div>
25
 
42
  <div class="shr-landing-product-name"><h2>ClassicBookmarks</h2><span class="shr-landing-product-desc">Beautiful, elegant, classic styled sharing buttons.</span></div>
43
  <div class="shr-landing-product-configure"><a href="admin.php?page=shareaholic_classicbookmarks.php" class="btn btn-large <?php global $shrsb_cb; echo ((@$shrsb_cb['cb'] == "1")? '' : "btn-primary");?>"><?php echo ((@$shrsb_cb['cb'] == "1")? '<i class="icon-cog" style="margin-top:2px;"></i> Settings' : "Enable");?></a></div>
44
  </div>
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  <div class="page-header" style="margin-top:40px;">
47
  <h1 class="grey_light">Analyze:</h1>
includes/shrsb_recommendations_page.php CHANGED
@@ -15,7 +15,7 @@ function shrsb_recommendations_set_options( $action = NULL ) {
15
 
16
  $shrsb_recommendations_default = array(
17
  'recommendations' => '1'
18
- , 'num' => '4'
19
  , 'pageorpost' => 'postpageindexcategory'
20
  , 'style' => 'image'
21
  );
15
 
16
  $shrsb_recommendations_default = array(
17
  'recommendations' => '1'
18
+ , 'num' => '3'
19
  , 'pageorpost' => 'postpageindexcategory'
20
  , 'style' => 'image'
21
  );
includes/shrsb_recommendations_settings_page.php CHANGED
@@ -140,7 +140,19 @@ function shrsb_recommendations_settings_page() {
140
  </tr>
141
 
142
  <tr>
143
- <td colspan="3"><br /><p>Once enabled, we will analyze your content and begin generating recommended posts to display. This may take up to several hours if you are a new Shareaholic user and depending on the number of posts on your blog. The quality of recommended stories will improve once we complete our crawl of your website.</p><p><span class="label label-info">Tip</span> we recommend using Shareaholic sharing tools as they help boost the quality of your recommendations.</p></td>
 
 
 
 
 
 
 
 
 
 
 
 
144
  </tr>
145
  </tbody></table>
146
  </div>
140
  </tr>
141
 
142
  <tr>
143
+ <td colspan="3"><br />
144
+ <p>Once enabled, we will analyze your content and begin generating recommended posts to display. This may take up to several hours if you are a new Shareaholic user and depending on the number of posts on your blog. The quality of recommended stories will improve once we complete our crawl of your website. <a href="http://support.shareaholic.com/forums/21886992-Recommendations-Related-Content" target="_new">Learn more.</a></p><p><span class="label label-info">Tip</span> we recommend using Shareaholic sharing tools as they help boost the quality of your recommendations.</p>
145
+ <p>
146
+ <strong>Data Status:</strong>
147
+ <?php
148
+ $status = shr_recommendationsStatus_code();
149
+ if ($status == "processing" || $status == 'unknown'){
150
+ echo '<img class="shrsb_health_icon" align="top" src="'.SHRSB_PLUGPATH.'/images/circle_yellow.png" /> Processing';
151
+ } else {
152
+ echo '<img class="shrsb_health_icon" align="top" src="'.SHRSB_PLUGPATH.'/images/circle_green.png" /> Ready';
153
+ }
154
+ ?>
155
+ </p></td>
156
  </tr>
157
  </tbody></table>
158
  </div>
includes/shrsb_settings_page.php CHANGED
@@ -316,10 +316,7 @@ function shrsb_getfooter(){
316
  </div>
317
  <br />
318
  <div style="display:block; font-size: 11px; color: #777777;">
319
- <?php if (shrsb_get_current_user_role()=="Administrator"){ ?>
320
- <?php _e("<p>Note: The analytics portion of Shareaholic may at times use trusted 3rd party services like Google Analytics and AppNexus to enhance its data. Because all of the processing and collection runs on our servers and not yours, it doesn't cause any additional load on your hosting account. In addition, our JavaScript is hosted on Amazon's CDN to make fetching it blazing fast. In fact, it's one of the fastest proven analytics system, hosted or not hosted, that you can use.</p/>"); ?>
321
- <?php } ?>
322
- <?php _e("Shareaholic is trusted by over 200 thousand publishers and touches almost 300 million people each month. Designed and built with all the love in the world in Cambridge, Massachusetts."); ?>
323
  </div>
324
  </li>
325
  </ul>
316
  </div>
317
  <br />
318
  <div style="display:block; font-size: 11px; color: #777777;">
319
+ <?php _e("Shareaholic is trusted by over 200 thousand publishers and touches almost 300 million people each month. Designed and built with all the love in the world in Boston, Massachusetts."); ?>
 
 
 
320
  </div>
321
  </li>
322
  </ul>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
3
  Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
4
  Requires at least: 2.7
5
  Tested up to: 3.5.1
6
- Stable tag: 6.1.3.5
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
@@ -32,7 +32,7 @@ Increase pageviews and engagement by highlighting relevant content from across y
32
 
33
  Shareaholic reports all of your important actionable social media metrics including popular pages on your website, referral channels, and who are making referrals and spreading your webpages on the internet on your behalf bringing you back more traffic and new visitors.
34
 
35
- = Performance =
36
 
37
  We use industry best practices to make our code as fast and unobtrusive as possible, meaning - for example - that the performance impact is comparable to adding Google Analytics to your site. Because all of the processing and collection runs on our servers and not yours, it doesn't cause any additional load on your hosting account. In addition, our JavaScript is hosted on Amazon's CDN to make fetching it as blazing fast and reliable as possible. In fact, it's one of the fastest proven analytics system, hosted or not hosted, that you can use.
38
 
@@ -81,13 +81,14 @@ Listed here are credits and special thanks to some of you who have helped us out
81
 
82
  == Screenshots ==
83
 
84
- 1. All the tools and apps you need in one place! Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, we'll help you get it done.
85
- 2. An 100% integrated and customizable approach - It all comes together nicely in one place!
86
- 3. Share Buttons (SexyBookmarks Theme) - A quick preview of the final outcome (excess hidden)
87
- 4. Share Buttons (Classic Theme) - Classic Bookmarks offer a clean-cut and professional look for your blog
88
- 5. Related Content - Drive pageviews and increase time on site with this tool
89
- 6. Top Bar - Drive more shares to your content with this additional call-to-action
90
-
 
91
 
92
  == Installation ==
93
 
@@ -126,6 +127,10 @@ Please see here: [Usage & Installation Instructions](https://shareaholic.com/too
126
 
127
  == Changelog ==
128
 
 
 
 
 
129
  = 6.1.3.5 =
130
  * Much faster Related Posts processing for new users!
131
 
3
  Tags: sexybookmarks, shareaholic, shareholic, facebook, twitter, linkedin, URL Shortener, bitly, tinyurl, Goo.gl, Google+1, Google Analytics, Google Plus, Google, Instapaper, Wish List, Digg, Gmail, Google Bookmarks, Translate, Tumblr, AIM, Yahoo Messenger, Delicious, StumbleUpon, mister wong, evernote, add this, addtoany, share this, sharethis, share and follow, share and enjoy, sharing is sexy, sharing is caring, yahoo, reddit, hackernews, tweet button, twitter button, fark, buffer, myspace, orkut, netlog, hubspot, weheartit, printfriendly, yammer, pinterest, google translate, bookmarks, social, email button, social share, socialize, sociable, sharebar, bookmark button, share button, social bookmarking, bookmarks menu, bookmarking, share, seo, analytics, stats, sharing, facebook like, facebook recommend, WPMU, mutisite, shortcode, yaarp, yarpp, nrelate, outbrain, linkwithin, related content, related posts, related, popular posts, popular, thumbnails, recommendations
4
  Requires at least: 2.7
5
  Tested up to: 3.5.1
6
+ Stable tag: 6.1.3.6
7
 
8
  Adds an attractive social bookmarking menu and related content widget to your posts, pages, index, or any combination of the three.
9
 
32
 
33
  Shareaholic reports all of your important actionable social media metrics including popular pages on your website, referral channels, and who are making referrals and spreading your webpages on the internet on your behalf bringing you back more traffic and new visitors.
34
 
35
+ = Fast & Secure =
36
 
37
  We use industry best practices to make our code as fast and unobtrusive as possible, meaning - for example - that the performance impact is comparable to adding Google Analytics to your site. Because all of the processing and collection runs on our servers and not yours, it doesn't cause any additional load on your hosting account. In addition, our JavaScript is hosted on Amazon's CDN to make fetching it as blazing fast and reliable as possible. In fact, it's one of the fastest proven analytics system, hosted or not hosted, that you can use.
38
 
81
 
82
  == Screenshots ==
83
 
84
+ 1. An 100% integrated and customizable approach - all the tools and apps you need in one place! Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, we'll help you get it done.
85
+ 2. Related Content configuration panel - Drive pageviews and increase time on site with this tool.
86
+ 3. Share Buttons configuration panel - Make it easy for your visitors to share your site's content via social networks, email, blogs, IM, and more.
87
+ 4. De-clutter your WordPress installation. All the tools you need in one robust plugin.
88
+ 5. You're in great company - Gizmo Gadget
89
+ 6. You're in great company - Your Lighter Side
90
+ 7. You're in great company - Guilty Kitchen
91
+ 8. You're in great company - Career Girl
92
 
93
  == Installation ==
94
 
127
 
128
  == Changelog ==
129
 
130
+ = 6.1.3.6 =
131
+ * Show Related Posts data status
132
+ * Updated screenshots (corrected WordPress logo)
133
+
134
  = 6.1.3.5 =
135
  * Much faster Related Posts processing for new users!
136
 
screenshot-2.jpg ADDED
Binary file
screenshot-2.png DELETED
Binary file
screenshot-3.jpg ADDED
Binary file
screenshot-3.png DELETED
Binary file
screenshot-4.jpg ADDED
Binary file
screenshot-4.png DELETED
Binary file
screenshot-5.jpg ADDED
Binary file
screenshot-5.png DELETED
Binary file
screenshot-6.jpg ADDED
Binary file
screenshot-6.png DELETED
Binary file
screenshot-7.jpg ADDED
Binary file
screenshot-8.jpg ADDED
Binary file
sexy-bookmarks.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Shareaholic | share buttons, analytics, related posts
4
  Plugin URI: https://shareaholic.com/publishers/
5
  Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=sexy-bookmarks.php">configuration panel</a> for more settings.
6
- Version: 6.1.3.5
7
  Author: Shareaholic
8
  Author URI: https://shareaholic.com
9
  Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
@@ -14,7 +14,7 @@ Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
14
  * @desc Define Plugin version
15
  */
16
 
17
- define('SHRSB_vNum','6.1.3.5');
18
 
19
 
20
  /*
@@ -38,6 +38,7 @@ if(false !== $shrsb_version && $shrsb_version !== SHRSB_vNum ) {
38
 
39
  shr_sendTrackingEvent('Upgrade', array('prev_plugin_ver' => get_option('SHRSBvNum')) );
40
  shr_recommendationsStatus();
 
41
 
42
  // Added global variable to track the updating state
43
  define('SHRSB_UPGRADING', TRUE);
@@ -144,6 +145,18 @@ require_once 'includes/shrsb_analytics_page.php'; // Analytics global Settings
144
  require_once 'includes/shrsb_recommendations_page.php'; // Recommendations global Settings
145
  require_once 'includes/shrsb_classicbookmarks_page.php'; // Classic Bookmarks global Settings
146
 
 
 
 
 
 
 
 
 
 
 
 
 
147
  //Update version (note: location of this update is important)
148
  update_option('SHRSBvNum', SHRSB_vNum);
149
 
@@ -204,6 +217,21 @@ function shr_sendTrackingEvent($event_name = 'Default', $extra_params = NULL) {
204
  function shr_recommendationsStatus() {
205
  $recommendationsStatusURL = "https://www.shareaholic.com/v2/recommendations/status?url=".home_url();
206
  $response = wp_remote_post($recommendationsStatusURL);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
207
  }
208
 
209
  $default_spritegen = get_option('SHRSB_DefaultSprite');
@@ -525,6 +553,9 @@ function shrsb_menu_link() {
525
 
526
  $shrsb_landing_page = add_menu_page( __( 'Shareaholic for Publishers', 'shrsb' ), __( 'Shareaholic', 'shrsb' ), 'edit_posts', basename(__FILE__), 'shrsb_landing', SHRSB_PLUGPATH.'images/shareaholic_16x16.png');
527
  $shrsb_landing_page = add_submenu_page( basename(__FILE__), __( 'Dashboard' ), __( 'Dashboard', 'shrsb' ), 'edit_posts', basename(__FILE__), 'shrsb_landing' );
 
 
 
528
  $shrsb_sexybookmarks_page = add_submenu_page( basename(__FILE__), __( 'SexyBookmarks' ), __( 'SexyBookmarks', 'shrsb' ), 'administrator', 'shareaholic_sexybookmarks.php', 'shrsb_sexybookmarks_settings' );
529
 
530
  /*
@@ -535,7 +566,6 @@ function shrsb_menu_link() {
535
  $shrsb_cb_page = add_submenu_page( basename(__FILE__), __( 'ClassicBookmarks' ), __( 'ClassicBookmarks', 'shrsb' ), 'administrator', 'shareaholic_classicbookmarks.php', 'shrsb_cb_settings' );
536
  $shrsb_topbar_page = add_submenu_page( basename(__FILE__), __( 'Top Bar' ), __( 'Top Bar', 'shrsb' ), 'administrator', 'shareaholic_topbar.php', 'shrsb_topbar_settings' );
537
 
538
- $shrsb_recommendations_page = add_submenu_page( basename(__FILE__), __( 'Related Content' ), __( 'Related Content', 'shrsb' ), 'administrator', 'shareaholic_recommendations.php', 'shrsb_recommendations_settings' );
539
  $shrsb_analytics_page = add_submenu_page( basename(__FILE__), __( 'Social Analytics' ), __( 'Social Analytics', 'shrsb' ), 'edit_posts', 'shareaholic_analytics.php', 'shrsb_analytics_settings' );
540
 
541
 
@@ -570,7 +600,7 @@ function shrsb_admin_scripts() {
570
  //Add promo bar for browser extensions
571
  if ($shrsb_plugopts['promo'] == "1") {
572
  if(shrsb_check_activation() === true){
573
- wp_enqueue_script('shareaholic-promo', SHRSB_PLUGPATH.'js/shareaholic-promo.min.js', array('jquery'), SHRSB_vNum, false);
574
  }
575
  }
576
  if(shrsb_check_activation())
@@ -681,7 +711,7 @@ function shrsb_admin_styles() {
681
  //Add promo bar for browser extensions
682
  if ($shrsb_plugopts['promo'] == "1") {
683
  if(shrsb_check_activation() === true){
684
- wp_enqueue_style('shareaholic-promo', SHRSB_PLUGPATH.'css/shareaholic-promo.css', false, SHRSB_vNum);
685
  }
686
  }
687
  wp_enqueue_style('sexy-bookmarks', SHRSB_PLUGPATH.'css/admin-style.css', false, SHRSB_vNum);
3
  Plugin Name: Shareaholic | share buttons, analytics, related posts
4
  Plugin URI: https://shareaholic.com/publishers/
5
  Description: Whether you want to get people sharing, grow your fans, make money, or know who's reading your content, Shareaholic will help you get it done. See <a href="admin.php?page=sexy-bookmarks.php">configuration panel</a> for more settings.
6
+ Version: 6.1.3.6
7
  Author: Shareaholic
8
  Author URI: https://shareaholic.com
9
  Credits & Thanks: https://shareaholic.com/tools/wordpress/credits
14
  * @desc Define Plugin version
15
  */
16
 
17
+ define('SHRSB_vNum','6.1.3.6');
18
 
19
 
20
  /*
38
 
39
  shr_sendTrackingEvent('Upgrade', array('prev_plugin_ver' => get_option('SHRSBvNum')) );
40
  shr_recommendationsStatus();
41
+ shr_upgrade_routine();
42
 
43
  // Added global variable to track the updating state
44
  define('SHRSB_UPGRADING', TRUE);
145
  require_once 'includes/shrsb_recommendations_page.php'; // Recommendations global Settings
146
  require_once 'includes/shrsb_classicbookmarks_page.php'; // Classic Bookmarks global Settings
147
 
148
+
149
+ function shr_upgrade_routine() {
150
+ if(SHRSB_vNum === '6.1.3.6' ) {
151
+ global $shrsb_recommendations;
152
+ if($shrsb_recommendations['recommendations'] !== '1') {
153
+ $shrsb_recommendations['recommendations'] = '1';
154
+ $shrsb_recommendations['pageorpost'] ='postpage';
155
+ update_option('ShareaholicRecommendations',$shrsb_recommendations);
156
+ }
157
+ }
158
+ }
159
+
160
  //Update version (note: location of this update is important)
161
  update_option('SHRSBvNum', SHRSB_vNum);
162
 
217
  function shr_recommendationsStatus() {
218
  $recommendationsStatusURL = "https://www.shareaholic.com/v2/recommendations/status?url=".home_url();
219
  $response = wp_remote_post($recommendationsStatusURL);
220
+ return $response['body'];
221
+ }
222
+
223
+ function shr_recommendationsStatus_code() {
224
+ $recommendationsStatusURL_result = shr_recommendationsStatus();
225
+ $obj = json_decode($recommendationsStatusURL_result, true);
226
+ if ($obj['code'] == 200){
227
+ if ($obj['data'][0]['status_code'] < 3) {
228
+ return "processing";
229
+ } else {
230
+ return "ready";
231
+ }
232
+ } else {
233
+ return "unknown";
234
+ }
235
  }
236
 
237
  $default_spritegen = get_option('SHRSB_DefaultSprite');
553
 
554
  $shrsb_landing_page = add_menu_page( __( 'Shareaholic for Publishers', 'shrsb' ), __( 'Shareaholic', 'shrsb' ), 'edit_posts', basename(__FILE__), 'shrsb_landing', SHRSB_PLUGPATH.'images/shareaholic_16x16.png');
555
  $shrsb_landing_page = add_submenu_page( basename(__FILE__), __( 'Dashboard' ), __( 'Dashboard', 'shrsb' ), 'edit_posts', basename(__FILE__), 'shrsb_landing' );
556
+
557
+ $shrsb_recommendations_page = add_submenu_page( basename(__FILE__), __( 'Related Content' ), __( 'Related Content', 'shrsb' ), 'administrator', 'shareaholic_recommendations.php', 'shrsb_recommendations_settings' );
558
+
559
  $shrsb_sexybookmarks_page = add_submenu_page( basename(__FILE__), __( 'SexyBookmarks' ), __( 'SexyBookmarks', 'shrsb' ), 'administrator', 'shareaholic_sexybookmarks.php', 'shrsb_sexybookmarks_settings' );
560
 
561
  /*
566
  $shrsb_cb_page = add_submenu_page( basename(__FILE__), __( 'ClassicBookmarks' ), __( 'ClassicBookmarks', 'shrsb' ), 'administrator', 'shareaholic_classicbookmarks.php', 'shrsb_cb_settings' );
567
  $shrsb_topbar_page = add_submenu_page( basename(__FILE__), __( 'Top Bar' ), __( 'Top Bar', 'shrsb' ), 'administrator', 'shareaholic_topbar.php', 'shrsb_topbar_settings' );
568
 
 
569
  $shrsb_analytics_page = add_submenu_page( basename(__FILE__), __( 'Social Analytics' ), __( 'Social Analytics', 'shrsb' ), 'edit_posts', 'shareaholic_analytics.php', 'shrsb_analytics_settings' );
570
 
571
 
600
  //Add promo bar for browser extensions
601
  if ($shrsb_plugopts['promo'] == "1") {
602
  if(shrsb_check_activation() === true){
603
+ // wp_enqueue_script('shareaholic-promo', SHRSB_PLUGPATH.'js/shareaholic-promo.min.js', array('jquery'), SHRSB_vNum, false);
604
  }
605
  }
606
  if(shrsb_check_activation())
711
  //Add promo bar for browser extensions
712
  if ($shrsb_plugopts['promo'] == "1") {
713
  if(shrsb_check_activation() === true){
714
+ // wp_enqueue_style('shareaholic-promo', SHRSB_PLUGPATH.'css/shareaholic-promo.css', false, SHRSB_vNum);
715
  }
716
  }
717
  wp_enqueue_style('sexy-bookmarks', SHRSB_PLUGPATH.'css/admin-style.css', false, SHRSB_vNum);