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

Version Description

  • New: Share Buttons for Images (Image Sharer) enhancements - you can now fully customize where these share buttons appear on your images and exactly how they will look and function, including setting opacity, offsets, icon padding, position, custom icon colors, size, and a lot more. All this, without touching ANY code! Also adds support for Facebook, Google+, Twitter, LinkedIn, Email, Fancy.com, Yummly and Houzz.
  • New: Shareaholic Teams multi-user permissions to enable your team to work together to manage your website
  • Enhancement: Social Share Count Recovery - adds support to recover social share counts in case where permalink structure changes
  • Various other performance updates and bug fixes
Download this release

Release Info

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

Code changes from version 8.1.0 to 8.2.0

Files changed (6) hide show
  1. admin.php +8 -6
  2. public_js.php +15 -1
  3. readme.txt +15 -69
  4. shareaholic.php +3 -3
  5. templates/header.php +1 -1
  6. utilities.php +2 -2
admin.php CHANGED
@@ -554,12 +554,14 @@ JQUERY;
554
  public static function welcome_email() {
555
  // check whether email has been sent
556
  if (ShareaholicUtilities::get_option('welcome_email_sent') != true) {
557
- ShareaholicAdmin::send_welcome_email();
558
  // set flag that the email has been sent
559
  ShareaholicUtilities::update_options(array('welcome_email_sent' => true));
 
 
560
  }
561
  }
562
 
 
563
  /**
564
  * This function is in charge of sending the "get started" email
565
  */
@@ -568,7 +570,7 @@ JQUERY;
568
  $api_key = ShareaholicUtilities::get_option('api_key');
569
  $payment_url = 'https://shareaholic.com/user-settings/payments';
570
  $shr_wp_dashboard_url = admin_url('admin.php?page=shareaholic-settings');
571
- $sign_up_link = 'https://shareaholic.com/publisher_tools/'.ShareaholicUtilities::get_option('api_key').'/websites/edit/?verification_key='.ShareaholicUtilities::get_option('verification_key');
572
  $to = get_bloginfo('admin_email');
573
  $subject = 'Thank you for installing Shareaholic for WordPress!';
574
  $message = "
@@ -578,9 +580,9 @@ JQUERY;
578
 
579
  <p><strong>Step 1. Customize to your needs</strong><br /><br />
580
 
581
- Personalize the various apps (ex. Share Buttons and Related Content) to match your website using the \"Customize\" buttons in your <a href='$shr_wp_dashboard_url'>Shareaholic App Manager in WordPress</a>, then choose where you want them to appear on your website using the checkboxes!
582
 
583
- <p><strong>Step 2: Get your free Shareaholic account</strong><br /><br />
584
 
585
  This will enable you to add more features like Analytics, Floating Share Buttons, Share Buttons for Images, Follow Buttons and more. <strong><a href='$sign_up_link'>Click here to sign-up</a></strong>, or <a href='$sign_up_link'>login to an existing Shareaholic account</a> and we'll automatically sync the plugin settings with your account.</p>
586
 
@@ -592,12 +594,12 @@ JQUERY;
592
 
593
  <p>Let's get started,<br /><br />
594
 
595
- The Shareaholic Customer Happiness Team<br />
596
  <a href='http://support.shareaholic.com'>support.shareaholic.com</a><br /><br />
597
  <img width='200' height='36' src='https://shareaholic.com/assets/layouts/shareaholic-logo.png' alt='Shareaholic' title='Shareaholic' /><br />
598
  <p style='font-size:12px;color:#C3C2C2;'>This is an automated, one-time e-mail sent by your WordPress CMS directly to the website admin</p><br />
599
  <img width='0' height='0' src='https://www.google-analytics.com/collect?v=1&tid=UA-12964573-6&cid=$api_key&t=event&ec=email&ea=open&el=$site_url-$api_key&cs=lifecycle&cm=email&cn=wp_welcome_email' />";
600
-
601
  $headers = "From: Shareaholic <hello@shareaholic.com>\r\n";
602
  $headers.= "Reply-To: Customer Happiness <hello@shareaholic.com>\r\n";
603
  $headers.= "X-Mailer: PHP/" . phpversion() . "\r\n";
554
  public static function welcome_email() {
555
  // check whether email has been sent
556
  if (ShareaholicUtilities::get_option('welcome_email_sent') != true) {
 
557
  // set flag that the email has been sent
558
  ShareaholicUtilities::update_options(array('welcome_email_sent' => true));
559
+ // send email
560
+ ShareaholicAdmin::send_welcome_email();
561
  }
562
  }
563
 
564
+
565
  /**
566
  * This function is in charge of sending the "get started" email
567
  */
570
  $api_key = ShareaholicUtilities::get_option('api_key');
571
  $payment_url = 'https://shareaholic.com/user-settings/payments';
572
  $shr_wp_dashboard_url = admin_url('admin.php?page=shareaholic-settings');
573
+ $sign_up_link = esc_url(admin_url("admin.php?shareaholic_redirect_url=shareaholic.com/signup/"));
574
  $to = get_bloginfo('admin_email');
575
  $subject = 'Thank you for installing Shareaholic for WordPress!';
576
  $message = "
580
 
581
  <p><strong>Step 1. Customize to your needs</strong><br /><br />
582
 
583
+ Personalize the various apps (ex. Share Buttons and Related Content) to match your website design using the \"Customize\" buttons in your <a href='$shr_wp_dashboard_url'>Shareaholic App Manager in WordPress</a>, then choose where you want them to appear on your website using the checkboxes!
584
 
585
+ <p><strong>Step 2: Create your free Shareaholic account</strong><br /><br />
586
 
587
  This will enable you to add more features like Analytics, Floating Share Buttons, Share Buttons for Images, Follow Buttons and more. <strong><a href='$sign_up_link'>Click here to sign-up</a></strong>, or <a href='$sign_up_link'>login to an existing Shareaholic account</a> and we'll automatically sync the plugin settings with your account.</p>
588
 
594
 
595
  <p>Let's get started,<br /><br />
596
 
597
+ The Shareaholic Team<br />
598
  <a href='http://support.shareaholic.com'>support.shareaholic.com</a><br /><br />
599
  <img width='200' height='36' src='https://shareaholic.com/assets/layouts/shareaholic-logo.png' alt='Shareaholic' title='Shareaholic' /><br />
600
  <p style='font-size:12px;color:#C3C2C2;'>This is an automated, one-time e-mail sent by your WordPress CMS directly to the website admin</p><br />
601
  <img width='0' height='0' src='https://www.google-analytics.com/collect?v=1&tid=UA-12964573-6&cid=$api_key&t=event&ec=email&ea=open&el=$site_url-$api_key&cs=lifecycle&cm=email&cn=wp_welcome_email' />";
602
+
603
  $headers = "From: Shareaholic <hello@shareaholic.com>\r\n";
604
  $headers.= "Reply-To: Customer Happiness <hello@shareaholic.com>\r\n";
605
  $headers.= "X-Mailer: PHP/" . phpversion() . "\r\n";
public_js.php CHANGED
@@ -22,6 +22,7 @@ class ShareaholicPublicJS {
22
  'local_recs_url' => admin_url('admin-ajax.php') . '?action=shareaholic_permalink_related'
23
  )
24
  );
 
25
  $disable_share_counts_api = ShareaholicUtilities::get_option('disable_internal_share_counts_api');
26
  $share_counts_connect_check = ShareaholicUtilities::get_option('share_counts_connect_check');
27
 
@@ -30,7 +31,20 @@ class ShareaholicPublicJS {
30
  $base_settings['endpoints']['share_counts_url'] = admin_url('admin-ajax.php') . '?action=shareaholic_share_counts_api';
31
  }
32
  }
33
-
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  return $base_settings;
35
  }
36
 
22
  'local_recs_url' => admin_url('admin-ajax.php') . '?action=shareaholic_permalink_related'
23
  )
24
  );
25
+
26
  $disable_share_counts_api = ShareaholicUtilities::get_option('disable_internal_share_counts_api');
27
  $share_counts_connect_check = ShareaholicUtilities::get_option('share_counts_connect_check');
28
 
31
  $base_settings['endpoints']['share_counts_url'] = admin_url('admin-ajax.php') . '?action=shareaholic_share_counts_api';
32
  }
33
  }
34
+
35
+ // Used by Share Count Recovery feature
36
+ if (is_singular()) {
37
+ global $post;
38
+ $author_id = $post->post_author;
39
+
40
+ $base_settings['url_components']['year'] = date('Y', strtotime($post->post_date));
41
+ $base_settings['url_components']['monthnum'] = date('m', strtotime($post->post_date));
42
+ $base_settings['url_components']['day'] = date('d', strtotime($post->post_date));
43
+ $base_settings['url_components']['post_id'] = "$post->ID";
44
+ $base_settings['url_components']['postname'] = $post->post_name;
45
+ $base_settings['url_components']['author'] = get_the_author_meta('user_nicename', $author_id);
46
+ }
47
+
48
  return $base_settings;
49
  }
50
 
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shareaholic
3
  Tags: share buttons, related content, cookie compliance, eu cookie law, shareaholic, shareholic, sexybookmarks, recommendations, cookie consent, email button, social sharing, social bookmarking, share image, image sharing, follow buttons, floated share buttons, floating share buttons, analytics, social media, social plugin, facebook, twitter, google plus, google bookmarks, gmail, linkedin, pinterest, reddit, tumblr, evernote, digg, delicious, stumbleupon, printfriendly, fancy, amazon, xing, vk, yahoo, mister wong, viadeo, odnoklassniki box.net, diigo, yammer, ycombinator, hotmail, instapaper, mixi, arto, whatsapp, hootsuite, inbound.org, plurk, aim, buffer, meneame, pinboard.in, stumpedia, bitly, blogger, yummly, izeby, kaboodle, weibo, instagram, tinyurl, typepad, weheartit, flipboard, pocket, wanelo, fark, wykop, symphony, kindle, houzz, youtube, sms, onenote, google classroom, disqus, spotify, zillow, feedly, kik, line, livejournal, baidu
4
  Requires at least: 3.0
5
  Tested up to: 4.8
6
- Stable tag: 8.1.0
7
 
8
  World's leading all-in-one Content Amplification Platform that helps grow your site traffic, engagement, conversions & monetization for FREE.
9
 
@@ -19,6 +19,7 @@ Shareaholic is the world's leading **all-in-one Content Amplification Platform**
19
  * [Promoted Content](http://support.shareaholic.com/hc/en-us/articles/202657036)
20
  * [Post-Share Follow Buttons](https://blog.shareaholic.com/post-share-follow-buttons/)
21
  * [EU / UK Cookie Compliance Banner App](https://blog.shareaholic.com/cookie-consent-banner-app/)
 
22
  * Localized in 15+ languages
23
  * Official support for WooCommerce
24
 
@@ -194,8 +195,15 @@ Please see here: [Shareaholic Helpdesk](http://support.shareaholic.com/hc/en-us)
194
  Please see here: [Usage & Installation Instructions](http://support.shareaholic.com/hc/en-us/categories/200101476-WordPress-Plugin)
195
 
196
  == Changelog ==
 
 
 
 
 
 
 
197
  = 8.1.0 =
198
- * New: Introducing the Tools Badge! Introducing a brand new way to launch the Shareaholic Console without ever leaving your website! Contains quick-links to your site analytics, help center, and much more to help you manage your site with greater ease. If you'd rather hide this badge or change its location, you can do so from your settings. It is 100% configurable.
199
  * Bugfix: Resolved the 403 Forbidden error that some admins were getting upon clicking the Dashboard link. Affected only sites on cPanel with mod_security enabled ex. HostGator
200
  * Enhancement: Google+ share count is now also available to sites that do not enable Server Side Share counts API
201
 
@@ -628,6 +636,10 @@ Please see here: [Usage & Installation Instructions](http://support.shareaholic.
628
  * Show Related Posts data status
629
 
630
  == Upgrade Notice ==
 
 
 
 
631
  = 8.1.0 =
632
  New Tools Badge! Introducing a brand new way to launch the Shareaholic Console without ever leaving your website! Contains quick-links to your site analytics, help center, and much more to help you manage your site with greater ease. If you'd rather hide this badge or change its location, you can do so from your settings. It is 100% configurable.
633
 
@@ -641,70 +653,4 @@ New: Share Count Recovery feature! Don't lose your hard work. Recover your socia
641
  This is a major update with lots of new features and enhancements that you'll love!
642
 
643
  = 7.8.0.6 =
644
- Various enhancements
645
-
646
- = 7.8.0.5 =
647
- Minor enhancements
648
-
649
- = 7.8.0.4 =
650
- Various Share Count updates
651
-
652
- = 7.8.0.3 =
653
- * Bugfix: Fix for Cloudflare compatible
654
-
655
- = 7.8.0.2 =
656
- * Bugfix: Updated Social Counts library to be PHP7 compatible
657
-
658
- = 7.8.0.1 =
659
- * Bugfix: removed call to the Delicious count API in the server-side connectivity check
660
-
661
- = 7.8.0.0 =
662
- Various language localization updates
663
-
664
- = 7.7.1.0 =
665
- * This is a major update with lots of new features and enhancements that you'll love!
666
- * W3C HTML5 validation fix
667
-
668
- = 7.6.2.3 =
669
- * Bugfix: limit the summary data attribute to at most 500 characters
670
- * Enhancement: present a plugin review notice to WP admins
671
-
672
- = 7.6.2.2 =
673
- * Enhancement: updated Shareaholic JavaScript snippet - now a lot simpler!
674
- * Bugfix: added hooks to prevent conflicts with Shortcode UI plugin
675
-
676
- = 7.6.2.1 =
677
- * Bugfix: use different hook to avoid modifying headers after they are sent
678
-
679
- = 7.6.2.0 =
680
- * Enhancement: Show message to users in permalink section in regards to share counts
681
-
682
- = 7.6.1.9 =
683
- * Enhancement: Updated reset plugin routine to not get new key
684
-
685
- = 7.6.1.8 =
686
- * Enhancement: Detect permalink changes in order to serve up-to-date content
687
-
688
- = 7.6.1.7 =
689
- * Bugfix: fix issue with Server side share count option
690
-
691
- = 7.6.1.6 =
692
- * Enhancement: remove analytics option from Advanced Settings page
693
-
694
- = 7.6.1.5 =
695
- * Enhancement: added support for Yummly and Fancy server-side share counts
696
-
697
- = 7.6.1.4 =
698
- Minor enhancements.
699
-
700
- = 7.6.1.3 =
701
- Bug fixes.
702
-
703
- = 7.6.1.2 =
704
- Bug fixes.
705
-
706
- = 7.6.1.1 =
707
- Added Shareaholic navigation bar to the Shareaholic settings pages.
708
-
709
- = 7.6.1.0 =
710
- Fix for security vulnerability. Upgrade immediately.
3
  Tags: share buttons, related content, cookie compliance, eu cookie law, shareaholic, shareholic, sexybookmarks, recommendations, cookie consent, email button, social sharing, social bookmarking, share image, image sharing, follow buttons, floated share buttons, floating share buttons, analytics, social media, social plugin, facebook, twitter, google plus, google bookmarks, gmail, linkedin, pinterest, reddit, tumblr, evernote, digg, delicious, stumbleupon, printfriendly, fancy, amazon, xing, vk, yahoo, mister wong, viadeo, odnoklassniki box.net, diigo, yammer, ycombinator, hotmail, instapaper, mixi, arto, whatsapp, hootsuite, inbound.org, plurk, aim, buffer, meneame, pinboard.in, stumpedia, bitly, blogger, yummly, izeby, kaboodle, weibo, instagram, tinyurl, typepad, weheartit, flipboard, pocket, wanelo, fark, wykop, symphony, kindle, houzz, youtube, sms, onenote, google classroom, disqus, spotify, zillow, feedly, kik, line, livejournal, baidu
4
  Requires at least: 3.0
5
  Tested up to: 4.8
6
+ Stable tag: 8.2.0
7
 
8
  World's leading all-in-one Content Amplification Platform that helps grow your site traffic, engagement, conversions & monetization for FREE.
9
 
19
  * [Promoted Content](http://support.shareaholic.com/hc/en-us/articles/202657036)
20
  * [Post-Share Follow Buttons](https://blog.shareaholic.com/post-share-follow-buttons/)
21
  * [EU / UK Cookie Compliance Banner App](https://blog.shareaholic.com/cookie-consent-banner-app/)
22
+ * [Shareaholic Teams](https://blog.shareaholic.com/shareaholic-teams-work-together-to-manage-your-website/)
23
  * Localized in 15+ languages
24
  * Official support for WooCommerce
25
 
195
  Please see here: [Usage & Installation Instructions](http://support.shareaholic.com/hc/en-us/categories/200101476-WordPress-Plugin)
196
 
197
  == Changelog ==
198
+
199
+ = 8.2.0 =
200
+ * New: **[Share Buttons for Images (Image Sharer)](https://blog.shareaholic.com/new-share-buttons-for-images-plugin/)** enhancements - you can now fully customize where these share buttons appear on your images and exactly how they will look and function, including setting opacity, offsets, icon padding, position, custom icon colors, size, and a lot more. All this, without touching ANY code! Also adds support for Facebook, Google+, Twitter, LinkedIn, Email, Fancy.com, Yummly and Houzz.
201
+ * New: **[Shareaholic Teams](https://blog.shareaholic.com/shareaholic-teams-work-together-to-manage-your-website/)** – multi-user permissions to enable your team to work together to manage your website
202
+ * Enhancement: **[Social Share Count Recovery](https://blog.shareaholic.com/recover-social-share-counts-https/)** - adds support to recover social share counts in case where permalink structure changes
203
+ * Various other performance updates and bug fixes
204
+
205
  = 8.1.0 =
206
+ * New: Introducing the **[Tools Badge](https://support.shareaholic.com/hc/en-us/categories/115001014006-Tools-Badge)**! ([learn more](https://support.shareaholic.com/hc/en-us/categories/115001014006-Tools-Badge)) Introducing a brand new way to launch the Shareaholic Console without ever leaving your website! Contains quick-links to your site analytics, help center, and much more to help you manage your site with greater ease. If you'd rather hide this badge or change its location, you can do so from your settings. It is 100% configurable.
207
  * Bugfix: Resolved the 403 Forbidden error that some admins were getting upon clicking the Dashboard link. Affected only sites on cPanel with mod_security enabled ex. HostGator
208
  * Enhancement: Google+ share count is now also available to sites that do not enable Server Side Share counts API
209
 
636
  * Show Related Posts data status
637
 
638
  == Upgrade Notice ==
639
+
640
+ = 8.2.0 =
641
+ * Must Upgrade! Enhancements to Social Share Count Recovery - adds support for case where permalink structure changes, Share Buttons for Images (Image Sharer) and introducing Teams.
642
+
643
  = 8.1.0 =
644
  New Tools Badge! Introducing a brand new way to launch the Shareaholic Console without ever leaving your website! Contains quick-links to your site analytics, help center, and much more to help you manage your site with greater ease. If you'd rather hide this badge or change its location, you can do so from your settings. It is 100% configurable.
645
 
653
  This is a major update with lots of new features and enhancements that you'll love!
654
 
655
  = 7.8.0.6 =
656
+ Various enhancements
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
shareaholic.php CHANGED
@@ -3,14 +3,14 @@
3
  * The main file!
4
  *
5
  * @package shareaholic
6
- * @version 8.1.0
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related content
11
  Plugin URI: https://shareaholic.com/publishers/
12
  Description: The world's leading all-in-one Content Amplification Platform that helps grow your website traffic, engagement, conversions & monetization. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
13
- Version: 8.1.0
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Text Domain: shareaholic
@@ -63,7 +63,7 @@ if (!class_exists('Shareaholic')) {
63
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
64
  const REC_API_URL = 'http://recommendations.shareaholic.com';
65
 
66
- const VERSION = '8.1.0';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
3
  * The main file!
4
  *
5
  * @package shareaholic
6
+ * @version 8.2.0
7
  */
8
 
9
  /*
10
  Plugin Name: Shareaholic | share buttons, analytics, related content
11
  Plugin URI: https://shareaholic.com/publishers/
12
  Description: The world's leading all-in-one Content Amplification Platform that helps grow your website traffic, engagement, conversions & monetization. See <a href="admin.php?page=shareaholic-settings">configuration panel</a> for more settings.
13
+ Version: 8.2.0
14
  Author: Shareaholic
15
  Author URI: https://shareaholic.com
16
  Text Domain: shareaholic
63
  const CM_API_URL = 'https://cm-web.shareaholic.com'; // uses static IPs for firewall whitelisting
64
  const REC_API_URL = 'http://recommendations.shareaholic.com';
65
 
66
+ const VERSION = '8.2.0';
67
 
68
  /**
69
  * Starts off as false so that ::get_instance() returns
templates/header.php CHANGED
@@ -1,6 +1,6 @@
1
  <!-- Header - start -->
2
  <div id="shr-header-container"></div>
3
- <script type="text/javascript" src="//dsms0mj1bbhn4.cloudfront.net/ui-header/main.js"></script>
4
  <!-- Header - end -->
5
 
6
  <script>
1
  <!-- Header - start -->
2
  <div id="shr-header-container"></div>
3
+ <script type="text/javascript" src="//dsms0mj1bbhn4.cloudfront.net/ui-header/loader.js"></script>
4
  <!-- Header - end -->
5
 
6
  <script>
utilities.php CHANGED
@@ -121,7 +121,7 @@ class ShareaholicUtilities {
121
 
122
  $wp_admin_bar->add_menu(array(
123
  'id' => 'wp_shareaholic_adminbar_menu',
124
- 'title' => __('Shareaholic', 'shareaholic'),
125
  'href' => esc_url(admin_url('admin.php?page=shareaholic-settings')),
126
  ));
127
 
@@ -145,7 +145,7 @@ class ShareaholicUtilities {
145
  $wp_admin_bar->add_menu(array(
146
  'parent' => 'wp_shareaholic_adminbar_menu',
147
  'id' => 'wp_shareaholic_adminbar_submenu-general',
148
- 'title' => __('Website Settings', 'shareaholic'),
149
  'href' => 'https://shareaholic.com/publisher_tools/'.self::get_option('api_key').'/websites/edit/?verification_key='.self::get_option('verification_key'),
150
  'meta' => Array( 'target' => '_blank' )
151
  ));
121
 
122
  $wp_admin_bar->add_menu(array(
123
  'id' => 'wp_shareaholic_adminbar_menu',
124
+ 'title' => __('Grow', 'shareaholic'),
125
  'href' => esc_url(admin_url('admin.php?page=shareaholic-settings')),
126
  ));
127
 
145
  $wp_admin_bar->add_menu(array(
146
  'parent' => 'wp_shareaholic_adminbar_menu',
147
  'id' => 'wp_shareaholic_adminbar_submenu-general',
148
+ 'title' => __('Dashboard', 'shareaholic'),
149
  'href' => 'https://shareaholic.com/publisher_tools/'.self::get_option('api_key').'/websites/edit/?verification_key='.self::get_option('verification_key'),
150
  'meta' => Array( 'target' => '_blank' )
151
  ));