Social Media Share Buttons - Version 3.2.2

Version Description

Download this release

Release Info

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

Code changes from version 3.2.1 to 3.2.2

init.php CHANGED
@@ -308,9 +308,8 @@ if (get_option('gs-popup-showed') != "showed") {
308
  <div class="modal-cover modal-close"></div>
309
  </div>
310
  </div>
311
-
312
  <script>
313
-
314
  /* Intercom Settings */
315
  window.intercomSettings = {
316
  app_id: 'b33e7fd1',
@@ -319,3 +318,4 @@ window.intercomSettings = {
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>
 
308
  <div class="modal-cover modal-close"></div>
309
  </div>
310
  </div>
311
+ <?php if(get_option('gs-api-key') != '') { ?>
312
  <script>
 
313
  /* Intercom Settings */
314
  window.intercomSettings = {
315
  app_id: 'b33e7fd1',
318
  };
319
  (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);}}})()
320
  </script>
321
+ <?php } ?>
lib/gs.php CHANGED
@@ -2,7 +2,7 @@
2
 
3
  class GS {
4
 
5
- public $plugin_version = "3.2.1";
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";
@@ -135,7 +135,6 @@ EOF;
135
  case 'social_bar_big_counter':
136
  return '<div class="getsocial gs-inline-group gs-big-counter" ' . $gs_custom_tags . '></div>';
137
  case 'follow_bar':
138
- echo '<div class="getsocial gs-inline-group gs-follow" ' . $gs_custom_tags . '></div>';
139
  return '<div class="getsocial gs-inline-group gs-follow" ' . $gs_custom_tags . '></div>';
140
  case 'price_alert':
141
  return '<div class="getsocial gs-price-alert" ' . $gs_custom_tags . ' data-price="' . $price . '" data-currency="' . $currency . '"></div>';
2
 
3
  class GS {
4
 
5
+ public $plugin_version = "3.2.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";
135
  case 'social_bar_big_counter':
136
  return '<div class="getsocial gs-inline-group gs-big-counter" ' . $gs_custom_tags . '></div>';
137
  case 'follow_bar':
 
138
  return '<div class="getsocial gs-inline-group gs-follow" ' . $gs_custom_tags . '></div>';
139
  case 'price_alert':
140
  return '<div class="getsocial gs-price-alert" ' . $gs_custom_tags . ' data-price="' . $price . '" data-currency="' . $currency . '"></div>';
readme.txt CHANGED
@@ -5,7 +5,7 @@ Tags: addthis, addtoany, analytics, button, facebook share, facebook button, lik
5
 
6
  Requires at least: 3.0
7
  Tested up to: 4.7
8
- Stable tag: 3.2.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -235,6 +235,10 @@ Sure, we’re always here to help. You can contact us at support@getsocial.io or
235
  9. Analytics for your Social Bars
236
 
237
  == Changelog ==
 
 
 
 
238
  **3.2.1**
239
 
240
  - Add support to Wordpress 4.7
5
 
6
  Requires at least: 3.0
7
  Tested up to: 4.7
8
+ Stable tag: 3.2.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
235
  9. Analytics for your Social Bars
236
 
237
  == Changelog ==
238
+ **3.2.2**
239
+
240
+ - Bug fixes
241
+
242
  **3.2.1**
243
 
244
  - Add support to Wordpress 4.7
tmpl/header.php CHANGED
@@ -63,9 +63,15 @@ wp_enqueue_script('gs-plugin');
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>
70
  <li>
71
  <a href="http://help.getsocial.io/" target="_blank">
63
  <div class="submenu-wrapper">
64
  <ul class="submenu">
65
  <li>
66
+ <?php if(get_option('gs-api-key') == '') { ?>
67
+ <a href="mailto:support@getsocial.io">
68
+ Email Support
69
+ </a>
70
+ <?php } else { ?>
71
+ <a href="javascript:Intercom('show');" id="help">
72
+ Email Support
73
+ </a>
74
+ <?php } ?>
75
  </li>
76
  <li>
77
  <a href="http://help.getsocial.io/" target="_blank">
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.2.1
7
  * Author: Getsocial, S.A.
8
  * Author URI: http://getsocial.io
9
  * License: GPL2
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.2
7
  * Author: Getsocial, S.A.
8
  * Author URI: http://getsocial.io
9
  * License: GPL2