Social Media Share Buttons - Version 3.2

Version Description

Download this release

Release Info

Developer joaoromao
Plugin Icon 128x128 Social Media Share Buttons
Version 3.2
Comparing to
See all releases

Code changes from version 3.1.3 to 3.2

css/getsocial-style.css CHANGED
@@ -625,6 +625,7 @@ header #main-nav nav > ul > li.icon-link > a > i {
625
 
626
  header #main-nav nav > ul > li.right-link {
627
  float: right;
 
628
  }
629
 
630
  header #main-nav nav > ul > li:not(.right-link) {
625
 
626
  header #main-nav nav > ul > li.right-link {
627
  float: right;
628
+ z-index: 99999999;
629
  }
630
 
631
  header #main-nav nav > ul > li:not(.right-link) {
init.php CHANGED
@@ -310,39 +310,12 @@ if (get_option('gs-popup-showed') != "showed") {
310
  </div>
311
 
312
  <script>
313
- // Include the UserVoice JavaScript SDK (only needed once on a page)
314
- UserVoice=window.UserVoice||[];(function(){var uv=document.createElement('script');uv.type='text/javascript';uv.async=true;uv.src='//widget.uservoice.com/hizF2VOh3oNKSWQxuKYjg.js';var s=document.getElementsByTagName('script')[0];s.parentNode.insertBefore(uv,s)})();
315
-
316
- // Set colors
317
- UserVoice.push(['set', {
318
- accent_color: '#448dd6',
319
- trigger_color: 'white',
320
- trigger_background_color: '#e2753a'
321
- }]);
322
-
323
- // Identify the user and pass traits
324
- // To enable, replace sample data with actual user traits and uncomment the line
325
- UserVoice.push(['identify', {
326
- email: '<?php echo get_option('admin_email') ?>'
327
- }]);
328
-
329
- // Add default trigger to the bottom-right corner of the window:
330
- UserVoice.push(['addTrigger', '#help', { mode: 'contact' }]);
331
-
332
- if (document.getElementById('contact_us')) {
333
- UserVoice.push(['addTrigger', '#contact_us', { mode: 'contact' }]);
334
- }
335
-
336
- if (document.getElementById('contact-2')) {
337
- UserVoice.push(['addTrigger', '#contact-2', { mode: 'contact' }]);
338
- }
339
-
340
- if (document.getElementById('contact-3')) {
341
- UserVoice.push(['addTrigger', '#contact-3', { mode: 'contact' }]);
342
- }
343
-
344
- if (document.getElementById('contact-4')) {
345
- UserVoice.push(['addTrigger', '#contact-4', { mode: 'contact' }]);
346
- }
347
 
 
 
 
 
 
 
 
348
  </script>
310
  </div>
311
 
312
  <script>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
313
 
314
+ /* Intercom Settings */
315
+ window.intercomSettings = {
316
+ app_id: 'b33e7fd1',
317
+ email: '<?php echo get_option('admin_email') ?>',
318
+ url: '<?php echo get_option('siteurl') ?>'
319
+ };
320
+ (function(){var w=window;var ic=w.Intercom;if(typeof ic==="function"){ic('reattach_activator');ic('update',intercomSettings);}else{var d=document;var i=function(){i.c(arguments)};i.q=[];i.c=function(args){i.q.push(args)};w.Intercom=i;function l(){var s=d.createElement('script');s.type='text/javascript';s.async=true;s.src='https://widget.intercom.io/widget/b33e7fd1';var x=d.getElementsByTagName('script')[0];x.parentNode.insertBefore(s,x);}if(w.attachEvent){w.attachEvent('onload',l);}else{w.addEventListener('load',l,false);}}})()
321
  </script>
lib/gs.php CHANGED
@@ -2,8 +2,7 @@
2
 
3
  class GS {
4
 
5
- public $plugin_version = "3.1.3";
6
-
7
  private $gs_url = "https://api.at.getsocial.io";
8
  private $gs_account = "https://getsocial.io";
9
  private $gs_url_api = "//api.at.getsocial.io";
2
 
3
  class GS {
4
 
5
+ public $plugin_version = "3.2";
 
6
  private $gs_url = "https://api.at.getsocial.io";
7
  private $gs_account = "https://getsocial.io";
8
  private $gs_url_api = "//api.at.getsocial.io";
readme.txt CHANGED
@@ -4,8 +4,8 @@ Contributors: GetSocial.io, joaoromao
4
  Tags: addthis, addtoany, analytics, button, facebook share, facebook button, like button, tweet button, twitter share, pinterest share, pin button, floating buttons, share, share button, share buttons, share links, shareaholic, sharethis, sharing, social, social analytics, social media, social bookmarking, social buttons, social media, social plugin, social share, social share buttons, social sharing, mobile share bar, mobile sharing, top bar, welcome bar, hello bar, follow buttons, instagram, youtube, increase followers, increase shares, increase traffic, copy paste shares, google analytics integration, yummly, flickr, rss, mailchimp, popup, list builder, infusion soft, bitly, exit intent, time on page, automatic popup, fly-in, exit popup, popup builder, share popup, wordpress popup, subscribe popup, popup on exit, reaction buttons, reactions, reaction bar, virality alerts, alerts
5
 
6
  Requires at least: 3.0
7
- Tested up to: 4.6
8
- Stable tag: 3.1.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -236,6 +236,14 @@ Sure, we’re always here to help. You can contact us at support@getsocial.io or
236
 
237
  == Changelog ==
238
 
 
 
 
 
 
 
 
 
239
  **3.1.2**
240
 
241
  - Fix bug in account reactivation
4
  Tags: addthis, addtoany, analytics, button, facebook share, facebook button, like button, tweet button, twitter share, pinterest share, pin button, floating buttons, share, share button, share buttons, share links, shareaholic, sharethis, sharing, social, social analytics, social media, social bookmarking, social buttons, social media, social plugin, social share, social share buttons, social sharing, mobile share bar, mobile sharing, top bar, welcome bar, hello bar, follow buttons, instagram, youtube, increase followers, increase shares, increase traffic, copy paste shares, google analytics integration, yummly, flickr, rss, mailchimp, popup, list builder, infusion soft, bitly, exit intent, time on page, automatic popup, fly-in, exit popup, popup builder, share popup, wordpress popup, subscribe popup, popup on exit, reaction buttons, reactions, reaction bar, virality alerts, alerts
5
 
6
  Requires at least: 3.0
7
+ Tested up to: 4.6.1
8
+ Stable tag: 3.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
236
 
237
  == Changelog ==
238
 
239
+ **3.2**
240
+
241
+ - Change user support platform to Intercom
242
+
243
+ **3.1.3**
244
+
245
+ - Upgrades to fit Wordpress 4.6
246
+
247
  **3.1.2**
248
 
249
  - Fix bug in account reactivation
tmpl/apps_config.php CHANGED
@@ -11,9 +11,21 @@
11
  'Most Popular' => 'popular',
12
  'Sharing Apps' => 'sharing',
13
  'Follow Apps' => 'follow',
 
14
  'eCommerce & Integrations' => 'ecommerce_integrations'
15
  );
16
  $apps = array(
 
 
 
 
 
 
 
 
 
 
 
17
  'Horizontal Sharing Bar' => array(
18
  'file' => 'sharing-bar',
19
  'category' => 'popular',
@@ -36,17 +48,6 @@
36
  'href' => $GS->gs_account() . '/sites/gs-wordpress/mobile_bar/new?api_key=' . $GS->api_key . '&amp;source=wordpress' . $GS->utms('mobile-bar'),
37
  "desc" => "Mobile Web is one of the fastest growing platform both in traffic and shares. Don't miss out on the opportunity to boost your traffic with our slick mobile web sharing interface. No code needed."
38
  ),
39
- 'Floating Sharing Bar' => array(
40
- 'file' => 'floating-bar',
41
- 'category' => 'sharing',
42
- 'nocode' => true,
43
- 'new' => false,
44
- 'plan' => 1,
45
- 'active' => $GS->is_active('floating_bar'),
46
- 'only_activate' => false,
47
- 'href' => $GS->gs_account() . '/sites/gs-wordpress/floating_bar/new?api_key=' . $GS->api_key . '&amp;source=wordpress' . $GS->utms('floating-bar'),
48
- "desc" => "Use one of our templates or design your own floating sharing bar. Customize size, shape & placement and pick from 15 social networks."
49
- ),
50
  'Image Sharing' => array(
51
  'file' => 'image-sharing',
52
  'category' => 'sharing',
@@ -60,7 +61,7 @@
60
  ),
61
  'Reaction Buttons' => array(
62
  'file' => 'reaction_buttons',
63
- 'category' => 'popular',
64
  'nocode' => true,
65
  'new' => true,
66
  'plan' => 1,
@@ -82,7 +83,7 @@
82
  ),
83
  'Copy Paste Share Tracking' => array(
84
  'file' => 'address-tracker',
85
- 'category' => 'popular',
86
  'nocode' => true,
87
  'new' => false,
88
  'plan' => 2,
11
  'Most Popular' => 'popular',
12
  'Sharing Apps' => 'sharing',
13
  'Follow Apps' => 'follow',
14
+ 'Tracking & Engagement Apps' => 'tracking_engagement',
15
  'eCommerce & Integrations' => 'ecommerce_integrations'
16
  );
17
  $apps = array(
18
+ 'Floating Sharing Bar' => array(
19
+ 'file' => 'floating-bar',
20
+ 'category' => 'popular',
21
+ 'nocode' => true,
22
+ 'new' => false,
23
+ 'plan' => 1,
24
+ 'active' => $GS->is_active('floating_bar'),
25
+ 'only_activate' => false,
26
+ 'href' => $GS->gs_account() . '/sites/gs-wordpress/floating_bar/new?api_key=' . $GS->api_key . '&amp;source=wordpress' . $GS->utms('floating-bar'),
27
+ "desc" => "Use one of our templates or design your own floating sharing bar. Customize size, shape & placement and pick from 15 social networks."
28
+ ),
29
  'Horizontal Sharing Bar' => array(
30
  'file' => 'sharing-bar',
31
  'category' => 'popular',
48
  'href' => $GS->gs_account() . '/sites/gs-wordpress/mobile_bar/new?api_key=' . $GS->api_key . '&amp;source=wordpress' . $GS->utms('mobile-bar'),
49
  "desc" => "Mobile Web is one of the fastest growing platform both in traffic and shares. Don't miss out on the opportunity to boost your traffic with our slick mobile web sharing interface. No code needed."
50
  ),
 
 
 
 
 
 
 
 
 
 
 
51
  'Image Sharing' => array(
52
  'file' => 'image-sharing',
53
  'category' => 'sharing',
61
  ),
62
  'Reaction Buttons' => array(
63
  'file' => 'reaction_buttons',
64
+ 'category' => 'sharing',
65
  'nocode' => true,
66
  'new' => true,
67
  'plan' => 1,
83
  ),
84
  'Copy Paste Share Tracking' => array(
85
  'file' => 'address-tracker',
86
+ 'category' => 'tracking_engagement',
87
  'nocode' => true,
88
  'new' => false,
89
  'plan' => 2,
tmpl/apps_filters.php CHANGED
@@ -12,6 +12,7 @@
12
  <a href="javascript:void(0)" class="gs-button gs-primary trans filter-btn js-app-one" data-filter="popular">Most Popular</a>
13
  <a href="javascript:void(0)" class="gs-button gs-primary trans filter-btn js-app-one" data-filter="sharing">Sharing Apps</a>
14
  <a href="javascript:void(0)" class="gs-button gs-primary trans filter-btn js-app-one" data-filter="follow">Follow Apps</a>
 
15
  <a href="javascript:void(0)" class="gs-button gs-primary trans filter-btn js-app-nocode" data-filter="ecommerce_integrations">eCommerce & Integrations</a>
16
  </div>
17
  </div>
12
  <a href="javascript:void(0)" class="gs-button gs-primary trans filter-btn js-app-one" data-filter="popular">Most Popular</a>
13
  <a href="javascript:void(0)" class="gs-button gs-primary trans filter-btn js-app-one" data-filter="sharing">Sharing Apps</a>
14
  <a href="javascript:void(0)" class="gs-button gs-primary trans filter-btn js-app-one" data-filter="follow">Follow Apps</a>
15
+ <a href="javascript:void(0)" class="gs-button gs-primary trans filter-btn js-app-one" data-filter="tracking_engagement">Tracking & Engagement Apps</a>
16
  <a href="javascript:void(0)" class="gs-button gs-primary trans filter-btn js-app-nocode" data-filter="ecommerce_integrations">eCommerce & Integrations</a>
17
  </div>
18
  </div>
tmpl/footer.php CHANGED
@@ -11,7 +11,7 @@
11
  Love GetSocial? Here are a couple of ways you can help:</p>
12
  <ol style="text-align: left; line-height: 18px; color: #fff; padding-left: 15px; font-size: 15px; list-style-type: decimal;">
13
  <li style="margin-bottom: 5px">Go to WordPress.org now and give <a style="color: inherit;" href="https://wordpress.org/support/view/plugin-reviews/wp-share-buttons-analytics-by-getsocial?filter=5#postform" target="_blank"><strong>this plugin a 5 <i class="fa fa-star"></i> rating</strong></a></li>
14
- <li>Blog about GetSocial and <a style="color: inherit;" href="https://wordpress.org/plugins/wp-share-buttons-analytics-by-getsocial/" target="_blank">link to the plugin page</a> or <strong><a style="color: inherit;" href="http://getsocial.io" target="_blank">getsocial.io</strong></a>. Spreading the word helps us keep the best features free. If you have any problems or need any assistance just reach out to our <a id="contact-2" class="uservoice-contact" href="mailto:support@getsocial.io" style="color: #fff; text-decoration: underline"><strong>Free Support</strong></a></li>
15
  </ol>
16
  </div>
17
 
@@ -30,7 +30,7 @@
30
  </div>
31
  <p class="alert-block" style="text-align: left; padding-bottom: 0">
32
  We’re thrilled you chose <a style="color:#339ed5" target="_blank" href="http://getsocial.io/">Social Sharing, Smart Popup & Share Buttons by GetSocial.io</a> to increase your traffic, shares and subscribers on WordPress.<br><br><strong>We honestly hope the plugin is working out for you and your website.</strong><br><br>
33
- <div style="padding: 20px 10px; background: #339ed5; color: #fff; border-radius: 4px; margin-top: 10px;">If you like the plugin, please consider supporting us through a <a style="color:#fff; font-weight: bold; text-decoration: underline;" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/wp-share-buttons-analytics-by-getsocial?filter=5#postform">positive review on WordPress.org</a>.</div><br><div style="text-align: left; padding: 10px 30px 0;">It’s a great way to give back and allows us to keep providing most of our features for free. If you don’t feel we’re worth the 5 stars, <a id="contact-4" class="uservoice-contact" style="color:#339ed5" href="mailto:support@getsocial.io">please let us know</a>.<br><br>We’re always available to provide <a class="uservoice-contact" id="contact-3" style="color:#339ed5;" href="mailto:support@getsocial.io">technical support</a> too.</div>
34
  </p>
35
  </div>
36
  <div class="modal-cover modal-close"></div>
11
  Love GetSocial? Here are a couple of ways you can help:</p>
12
  <ol style="text-align: left; line-height: 18px; color: #fff; padding-left: 15px; font-size: 15px; list-style-type: decimal;">
13
  <li style="margin-bottom: 5px">Go to WordPress.org now and give <a style="color: inherit;" href="https://wordpress.org/support/view/plugin-reviews/wp-share-buttons-analytics-by-getsocial?filter=5#postform" target="_blank"><strong>this plugin a 5 <i class="fa fa-star"></i> rating</strong></a></li>
14
+ <li>Blog about GetSocial and <a style="color: inherit;" href="https://wordpress.org/plugins/wp-share-buttons-analytics-by-getsocial/" target="_blank">link to the plugin page</a> or <strong><a style="color: inherit;" href="http://getsocial.io" target="_blank">getsocial.io</strong></a>. Spreading the word helps us keep the best features free. If you have any problems or need any assistance just reach out to our <a class="uservoice-contact" href="javascript:Intercom('show');" style="color: #fff; text-decoration: underline"><strong>Free Support</strong></a></li>
15
  </ol>
16
  </div>
17
 
30
  </div>
31
  <p class="alert-block" style="text-align: left; padding-bottom: 0">
32
  We’re thrilled you chose <a style="color:#339ed5" target="_blank" href="http://getsocial.io/">Social Sharing, Smart Popup & Share Buttons by GetSocial.io</a> to increase your traffic, shares and subscribers on WordPress.<br><br><strong>We honestly hope the plugin is working out for you and your website.</strong><br><br>
33
+ <div style="padding: 20px 10px; background: #339ed5; color: #fff; border-radius: 4px; margin-top: 10px;">If you like the plugin, please consider supporting us through a <a style="color:#fff; font-weight: bold; text-decoration: underline;" target="_blank" href="https://wordpress.org/support/view/plugin-reviews/wp-share-buttons-analytics-by-getsocial?filter=5#postform">positive review on WordPress.org</a>.</div><br><div style="text-align: left; padding: 10px 30px 0;">It’s a great way to give back and allows us to keep providing most of our features for free. If you don’t feel we’re worth the 5 stars, <a class="uservoice-contact" style="color:#339ed5" href="javascript:Intercom('show');">please let us know</a>.<br><br>We’re always available to provide <a class="uservoice-contact" style="color:#339ed5;" href="javascript:Intercom('show');">technical support</a> too.</div>
34
  </p>
35
  </div>
36
  <div class="modal-cover modal-close"></div>
tmpl/header.php CHANGED
@@ -38,11 +38,13 @@ wp_enqueue_script('gs-plugin');
38
  <nav>
39
  <ul>
40
  <?php if (get_option('gs-api-key') != ''): ?>
 
41
  <li class="submenu-link">
42
  <a href="<?php echo $GS->gs_account().'/sites/gs-wordpress/analytics/dashboard?api_key='.$GS->api_key.'&amp;source=wordpress' ?>" target="_blank">
43
  <i class="fa fa-bar-chart"></i> Social Analytics</i>
44
  </a>
45
  </li>
 
46
  <li class="submenu-link">
47
  <a id="settings" href="javascript:void(0)">
48
  <i class="fa fa-cogs"></i> Plugin Settings
@@ -61,7 +63,7 @@ wp_enqueue_script('gs-plugin');
61
  <div class="submenu-wrapper">
62
  <ul class="submenu">
63
  <li>
64
- <a href="javascript:void(0)" id="help">
65
  Email Support
66
  </a>
67
  </li>
38
  <nav>
39
  <ul>
40
  <?php if (get_option('gs-api-key') != ''): ?>
41
+ <?php if ($GS->is_pro()) { ?>
42
  <li class="submenu-link">
43
  <a href="<?php echo $GS->gs_account().'/sites/gs-wordpress/analytics/dashboard?api_key='.$GS->api_key.'&amp;source=wordpress' ?>" target="_blank">
44
  <i class="fa fa-bar-chart"></i> Social Analytics</i>
45
  </a>
46
  </li>
47
+ <?php } ?>
48
  <li class="submenu-link">
49
  <a id="settings" href="javascript:void(0)">
50
  <i class="fa fa-cogs"></i> Plugin Settings
63
  <div class="submenu-wrapper">
64
  <ul class="submenu">
65
  <li>
66
+ <a href="javascript:Intercom('show');" id="help">
67
  Email Support
68
  </a>
69
  </li>
wp-share-buttons-analytics-getsocial.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Share Buttons & tools to grow traffic by GetSocial.io
4
  * Plugin URI: http://getsocial.io
5
  * Description: Share Buttons by GetSocial.io is a freemium WordPress plugin that enables you to track social shares on Wordpress. Provide beautiful wordpress sharing buttons, track how many shares were made in each post and see how much traffic, conversions and shares each post generated. Optimize your SEO and increase social shares with GetSocial.io.
6
- * Version: 3.1.3
7
  * Author: Getsocial, S.A.
8
  * Author URI: http://getsocial.io
9
  * License: GPL2
@@ -368,7 +368,6 @@ function add_buttons_to_content($content, $woocomerce, $wooposition = null) {
368
  add_shortcode('getsocial', 'gs_bars_shortcode');
369
 
370
  function gs_bars_shortcode($atts) {
371
-
372
  global $wp_query;
373
  $post = $wp_query->post;
374
  $GS = get_gs();
3
  * Plugin Name: Share Buttons & tools to grow traffic by GetSocial.io
4
  * Plugin URI: http://getsocial.io
5
  * Description: Share Buttons by GetSocial.io is a freemium WordPress plugin that enables you to track social shares on Wordpress. Provide beautiful wordpress sharing buttons, track how many shares were made in each post and see how much traffic, conversions and shares each post generated. Optimize your SEO and increase social shares with GetSocial.io.
6
+ * Version: 3.2
7
  * Author: Getsocial, S.A.
8
  * Author URI: http://getsocial.io
9
  * License: GPL2
368
  add_shortcode('getsocial', 'gs_bars_shortcode');
369
 
370
  function gs_bars_shortcode($atts) {
 
371
  global $wp_query;
372
  $post = $wp_query->post;
373
  $GS = get_gs();