Simple Social Media Share Buttons – Social Sharing for Everyone - Version 2.1.2

Version Description

  • Please upgrade immediately. Bug fixes and improvements.

=

Download this release

Release Info

Developer hiddenpearls
Plugin Icon 128x128 Simple Social Media Share Buttons – Social Sharing for Everyone
Version 2.1.2
Comparing to
See all releases

Code changes from version 2.1.1 to 2.1.2

Files changed (2) hide show
  1. readme.txt +9 -3
  2. simple-social-buttons.php +59 -61
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: hiddenpearls, WPBrigade
3
  Donate link: https://wpbrigade.com/
4
  Tags: Social share, Social buttons, Whatsapp, Viber, LinkedIn, facebook, google, twitter, pinterest, plus one
5
  Requires at least: 4.0
6
- Tested up to: 5.1
7
- Stable tag: 2.1.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -146,10 +146,16 @@ like_button_size = small(default), large
146
 
147
  == Upgrade Notice ==
148
 
149
- = 2.1.1 =
150
  * Please upgrade immediately. Bug fixes and improvements.
151
 
152
  == Changelog ==
 
 
 
 
 
 
153
  = 2.1.1 - 2019-04-30 =
154
  * Enhancement: Facebook share count Api deprecation fix
155
  * Enhancement: WhatsApp Wrong link generator fix
3
  Donate link: https://wpbrigade.com/
4
  Tags: Social share, Social buttons, Whatsapp, Viber, LinkedIn, facebook, google, twitter, pinterest, plus one
5
  Requires at least: 4.0
6
+ Tested up to: 5.2
7
+ Stable tag: 2.1.2
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
146
 
147
  == Upgrade Notice ==
148
 
149
+ = 2.1.2 =
150
  * Please upgrade immediately. Bug fixes and improvements.
151
 
152
  == Changelog ==
153
+
154
+ = 2.1.2 - 2019-06-25 =
155
+ * Bug Fix: count ajax calling every page even page not select.
156
+ * Bug Fix: extra “=” in the code that breaks whatsapp sharing
157
+ * Compatibility: Compatible with WordPress 5.2
158
+
159
  = 2.1.1 - 2019-04-30 =
160
  * Enhancement: Facebook share count Api deprecation fix
161
  * Enhancement: WhatsApp Wrong link generator fix
simple-social-buttons.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Simple Social Buttons
4
  * Plugin URI: http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons/
5
  * Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Google +1, Facebook, WhatsApp, Viber, Twitter, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code>
6
- * Version: 2.1.1
7
  * Author: WPBrigade
8
  * Author URI: http://www.WPBrigade.com/
9
  * Text Domain: simple-social-buttons
@@ -30,7 +30,7 @@
30
 
31
  class SimpleSocialButtonsPR {
32
  public $pluginName = 'Simple Social Buttons';
33
- public $pluginVersion = '2.1.1';
34
  public $pluginPrefix = 'ssb_pr_';
35
  public $hideCustomMetaKey = '_ssb_hide';
36
  private $fb_app_id = '891268654262273';
@@ -86,7 +86,6 @@ class SimpleSocialButtonsPR {
86
 
87
  add_action( 'plugins_loaded', array( $this, 'load_plugin_domain' ) );
88
 
89
-
90
  $content_filter_priority = apply_filters( 'ssb_the_content_priority', 12 );
91
  $excerpt_filter_priority = apply_filters( 'ssb_the_excerpt_priority', 12 );
92
  /**
@@ -113,7 +112,7 @@ class SimpleSocialButtonsPR {
113
  add_action( 'wp_footer', array( $this, 'include_sidebar' ) );
114
  add_action( 'wp_head', array( $this, 'css_file' ) );
115
 
116
- //add_action( 'admin_notices', array( $this, 'update_notice' ) );
117
  add_action( 'admin_init', array( $this, 'review_update_notice' ) );
118
  add_action( 'wp_footer', array( $this, 'fblike_script' ) );
119
 
@@ -196,13 +195,13 @@ class SimpleSocialButtonsPR {
196
  function ssb_output_cache_trigger( $info ) {
197
 
198
  // Return early if we're not on a single page or we have fresh cache.
199
- if ( ( ssb_is_cache_fresh( $info['postID'], true ) ) && empty( $_GET['ssb_cache'] ) ) {
200
- return $info;
201
- }
202
  // if is home or front page return info
203
- if ( is_home() || is_front_page() ) {
204
- return $info;
205
- }
206
  // Return if we're on a WooCommerce account page.
207
  if ( function_exists( 'is_account_page' ) && is_account_page() ) {
208
  return $info;
@@ -215,37 +214,38 @@ class SimpleSocialButtonsPR {
215
  ob_start();
216
 
217
  ?>
218
- var ssb_admin_ajax = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
219
- var ssb_post_id = <?php echo $info['postID']; ?> ;
220
- var ssb_post_url = '<?php echo get_permalink( $info['postID'] ); ?>';
221
- var ssb_alternate_post_url = '<?php echo $this->http_or_https_resolve_url( get_permalink( $info['postID'] ) ); ?>';
222
- jQuery( document ).ready(function(){
223
- var is_ssb_used = jQuery('.simplesocialbuttons');
224
- if( is_ssb_used ) {
225
-
226
- var data = {
227
- 'action': 'ssb_fetch_data',
228
- 'postID': ssb_post_id
229
- };
230
- jQuery.post(ssb_admin_ajax, data, function(data, textStatus, xhr) {
231
- var array = JSON.parse(data);
232
-
233
- jQuery.each( array, function( index, value ){
234
-
235
- if( index == 'total' ){
236
- jQuery('.ssb_'+ index +'_counter').html(value + '<span>Shares</span>');
237
- }else{
238
- jQuery('.ssb_'+ index +'_counter').html(value);
239
- }
240
- });
241
-
242
- });
243
- }
244
- })
245
-
246
  document.addEventListener("DOMContentLoaded", function() {
247
  var if_ssb_exist = document.getElementsByClassName( "simplesocialbuttons" ).length > 0;
248
  if (if_ssb_exist) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
249
  // ssbPlugin.fetchFacebookShares();
250
  }
251
  });
@@ -281,23 +281,21 @@ class SimpleSocialButtonsPR {
281
  return false;
282
  }
283
 
284
- if( ( $this->is_ssb_on( 'sidebar' ) || $this->is_ssb_on( 'inline' ) ) || ! empty( $_GET['ssb_cache'] ) ) {
285
-
286
-
287
 
288
- // Fetch a few variables.
289
- $info['postID'] = get_the_ID();
290
- $info['footer_output'] = '';
291
 
292
- // Pass the array through our custom filters.
293
- $info = apply_filters( 'ssb_footer_scripts', $info );
294
 
295
- // If we have output, output it.
296
- if ( $info['footer_output'] ) {
297
- echo '<script type="text/javascript">';
298
- echo $info['footer_output'];
299
- echo '</script>';
300
- }
301
  }
302
 
303
  /**
@@ -305,11 +303,10 @@ class SimpleSocialButtonsPR {
305
  *
306
  * since 2.0.21
307
  */
308
- if ( isset( $this->selected_networks['twitter'] ) ){
309
  echo "<script type='text/javascript'>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://static1.twitcount.com/js/twitcount.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitcount_plugins');</script>";
310
  }
311
 
312
-
313
  }
314
 
315
 
@@ -791,7 +788,7 @@ class SimpleSocialButtonsPR {
791
  break;
792
  case 'whatsapp':
793
  if ( $this->selected_theme == 'simple-icons' ) {
794
- $arrButtonsCode[] = ' <button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="ssb_whatsapp-icon simplesocial-whatsapp-share" data-href="' . ssb_whats_app_share_link( $permalink ). '"><span class="simplesocialtxt">
795
  <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve" class=""><g><g> <path id="WhatsApp" d="M90,43.841c0,24.213-19.779,43.841-44.182,43.841c-7.747,0-15.025-1.98-21.357-5.455L0,90l7.975-23.522 c-4.023-6.606-6.34-14.354-6.34-22.637C1.635,19.628,21.416,0,45.818,0C70.223,0,90,19.628,90,43.841z M45.818,6.982 c-20.484,0-37.146,16.535-37.146,36.859c0,8.065,2.629,15.534,7.076,21.61L11.107,79.14l14.275-4.537 c5.865,3.851,12.891,6.097,20.437,6.097c20.481,0,37.146-16.533,37.146-36.857S66.301,6.982,45.818,6.982z M68.129,53.938 c-0.273-0.447-0.994-0.717-2.076-1.254c-1.084-0.537-6.41-3.138-7.4-3.495c-0.993-0.358-1.717-0.538-2.438,0.537 c-0.721,1.076-2.797,3.495-3.43,4.212c-0.632,0.719-1.263,0.809-2.347,0.271c-1.082-0.537-4.571-1.673-8.708-5.333 c-3.219-2.848-5.393-6.364-6.025-7.441c-0.631-1.075-0.066-1.656,0.475-2.191c0.488-0.482,1.084-1.255,1.625-1.882 c0.543-0.628,0.723-1.075,1.082-1.793c0.363-0.717,0.182-1.344-0.09-1.883c-0.27-0.537-2.438-5.825-3.34-7.977 c-0.902-2.15-1.803-1.792-2.436-1.792c-0.631,0-1.354-0.09-2.076-0.09c-0.722,0-1.896,0.269-2.889,1.344 c-0.992,1.076-3.789,3.676-3.789,8.963c0,5.288,3.879,10.397,4.422,11.113c0.541,0.716,7.49,11.92,18.5,16.223 C58.2,65.771,58.2,64.336,60.186,64.156c1.984-0.179,6.406-2.599,7.312-5.107C68.398,56.537,68.398,54.386,68.129,53.938z"/> </g></g> </svg> </span>
796
  <span class="simplesocialtxt">Whatsapp</span>
797
  </button>';
@@ -1088,7 +1085,8 @@ class SimpleSocialButtonsPR {
1088
  'align' => '',
1089
  'counter' => 'false',
1090
  'like_button_size' => 'small',
1091
- ), $atts
 
1092
  );
1093
 
1094
  $themes = array(
@@ -1401,7 +1399,7 @@ class SimpleSocialButtonsPR {
1401
  break;
1402
  case 'whatsapp':
1403
  if ( $this->selected_theme == 'simple-icons' ) {
1404
- $arrButtonsCode[] = ' <button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share ssb_whatsapp-icon" data-href="=' . ssb_whats_app_share_link( $permalink ) . '"><span class="simplesocialtxt">
1405
  <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve" class=""><g><g> <path id="WhatsApp" d="M90,43.841c0,24.213-19.779,43.841-44.182,43.841c-7.747,0-15.025-1.98-21.357-5.455L0,90l7.975-23.522 c-4.023-6.606-6.34-14.354-6.34-22.637C1.635,19.628,21.416,0,45.818,0C70.223,0,90,19.628,90,43.841z M45.818,6.982 c-20.484,0-37.146,16.535-37.146,36.859c0,8.065,2.629,15.534,7.076,21.61L11.107,79.14l14.275-4.537 c5.865,3.851,12.891,6.097,20.437,6.097c20.481,0,37.146-16.533,37.146-36.857S66.301,6.982,45.818,6.982z M68.129,53.938 c-0.273-0.447-0.994-0.717-2.076-1.254c-1.084-0.537-6.41-3.138-7.4-3.495c-0.993-0.358-1.717-0.538-2.438,0.537 c-0.721,1.076-2.797,3.495-3.43,4.212c-0.632,0.719-1.263,0.809-2.347,0.271c-1.082-0.537-4.571-1.673-8.708-5.333 c-3.219-2.848-5.393-6.364-6.025-7.441c-0.631-1.075-0.066-1.656,0.475-2.191c0.488-0.482,1.084-1.255,1.625-1.882 c0.543-0.628,0.723-1.075,1.082-1.793c0.363-0.717,0.182-1.344-0.09-1.883c-0.27-0.537-2.438-5.825-3.34-7.977 c-0.902-2.15-1.803-1.792-2.436-1.792c-0.631,0-1.354-0.09-2.076-0.09c-0.722,0-1.896,0.269-2.889,1.344 c-0.992,1.076-3.789,3.676-3.789,8.963c0,5.288,3.879,10.397,4.422,11.113c0.541,0.716,7.49,11.92,18.5,16.223 C58.2,65.771,58.2,64.336,60.186,64.156c1.984-0.179,6.406-2.599,7.312-5.107C68.398,56.537,68.398,54.386,68.129,53.938z"/> </g></g> </svg> </span>
1406
  <span class="simplesocialtxt">Whatsapp</span>
1407
  </button>';
@@ -1810,16 +1808,16 @@ class SimpleSocialButtonsPR {
1810
  *
1811
  * @version 2.0.21
1812
  */
1813
- function is_ssb_on( $position ){
1814
 
1815
  $is_ajax_callback = true;
1816
- if( ! in_array( $this->get_post_type(), $this->_get_settings( $position, 'posts', array() ) ) ){
1817
- $is_ajax_callback = false;
1818
  }
1819
 
1820
  return $is_ajax_callback;
1821
 
1822
- }
1823
 
1824
 
1825
 
3
  * Plugin Name: Simple Social Buttons
4
  * Plugin URI: http://www.WPBrigade.com/wordpress/plugins/simple-social-buttons/
5
  * Description: Simple Social Buttons adds an advanced set of social media sharing buttons to your WordPress sites, such as: Google +1, Facebook, WhatsApp, Viber, Twitter, Reddit, LinkedIn and Pinterest. This makes it the most <code>Flexible Social Sharing Plugin ever for Everyone.</code>
6
+ * Version: 2.1.2
7
  * Author: WPBrigade
8
  * Author URI: http://www.WPBrigade.com/
9
  * Text Domain: simple-social-buttons
30
 
31
  class SimpleSocialButtonsPR {
32
  public $pluginName = 'Simple Social Buttons';
33
+ public $pluginVersion = '2.1.2';
34
  public $pluginPrefix = 'ssb_pr_';
35
  public $hideCustomMetaKey = '_ssb_hide';
36
  private $fb_app_id = '891268654262273';
86
 
87
  add_action( 'plugins_loaded', array( $this, 'load_plugin_domain' ) );
88
 
 
89
  $content_filter_priority = apply_filters( 'ssb_the_content_priority', 12 );
90
  $excerpt_filter_priority = apply_filters( 'ssb_the_excerpt_priority', 12 );
91
  /**
112
  add_action( 'wp_footer', array( $this, 'include_sidebar' ) );
113
  add_action( 'wp_head', array( $this, 'css_file' ) );
114
 
115
+ // add_action( 'admin_notices', array( $this, 'update_notice' ) );
116
  add_action( 'admin_init', array( $this, 'review_update_notice' ) );
117
  add_action( 'wp_footer', array( $this, 'fblike_script' ) );
118
 
195
  function ssb_output_cache_trigger( $info ) {
196
 
197
  // Return early if we're not on a single page or we have fresh cache.
198
+ if ( ( ssb_is_cache_fresh( $info['postID'], true ) ) && empty( $_GET['ssb_cache'] ) ) {
199
+ return $info;
200
+ }
201
  // if is home or front page return info
202
+ if ( is_home() || is_front_page() ) {
203
+ return $info;
204
+ }
205
  // Return if we're on a WooCommerce account page.
206
  if ( function_exists( 'is_account_page' ) && is_account_page() ) {
207
  return $info;
214
  ob_start();
215
 
216
  ?>
217
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
218
  document.addEventListener("DOMContentLoaded", function() {
219
  var if_ssb_exist = document.getElementsByClassName( "simplesocialbuttons" ).length > 0;
220
  if (if_ssb_exist) {
221
+ var ssb_admin_ajax = '<?php echo admin_url( 'admin-ajax.php' ); ?>';
222
+ var ssb_post_id = <?php echo $info['postID']; ?> ;
223
+ var ssb_post_url = '<?php echo get_permalink( $info['postID'] ); ?>';
224
+ var ssb_alternate_post_url = '<?php echo $this->http_or_https_resolve_url( get_permalink( $info['postID'] ) ); ?>';
225
+ jQuery( document ).ready(function(){
226
+ var is_ssb_used = jQuery('.simplesocialbuttons');
227
+ if( is_ssb_used ) {
228
+
229
+ var data = {
230
+ 'action': 'ssb_fetch_data',
231
+ 'postID': ssb_post_id
232
+ };
233
+ jQuery.post(ssb_admin_ajax, data, function(data, textStatus, xhr) {
234
+ var array = JSON.parse(data);
235
+
236
+ jQuery.each( array, function( index, value ){
237
+
238
+ if( index == 'total' ){
239
+ jQuery('.ssb_'+ index +'_counter').html(value + '<span>Shares</span>');
240
+ }else{
241
+ jQuery('.ssb_'+ index +'_counter').html(value);
242
+ }
243
+ });
244
+
245
+ });
246
+ }
247
+ })
248
+
249
  // ssbPlugin.fetchFacebookShares();
250
  }
251
  });
281
  return false;
282
  }
283
 
284
+ if ( ( $this->is_ssb_on( 'sidebar' ) || $this->is_ssb_on( 'inline' ) ) || ! empty( $_GET['ssb_cache'] ) ) {
 
 
285
 
286
+ // Fetch a few variables.
287
+ $info['postID'] = get_the_ID();
288
+ $info['footer_output'] = '';
289
 
290
+ // Pass the array through our custom filters.
291
+ $info = apply_filters( 'ssb_footer_scripts', $info );
292
 
293
+ // If we have output, output it.
294
+ if ( $info['footer_output'] ) {
295
+ echo '<script type="text/javascript">';
296
+ echo $info['footer_output'];
297
+ echo '</script>';
298
+ }
299
  }
300
 
301
  /**
303
  *
304
  * since 2.0.21
305
  */
306
+ if ( isset( $this->selected_networks['twitter'] ) ) {
307
  echo "<script type='text/javascript'>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://static1.twitcount.com/js/twitcount.js';fjs.parentNode.insertBefore(js,fjs);}}(document, 'script', 'twitcount_plugins');</script>";
308
  }
309
 
 
310
  }
311
 
312
 
788
  break;
789
  case 'whatsapp':
790
  if ( $this->selected_theme == 'simple-icons' ) {
791
+ $arrButtonsCode[] = ' <button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="ssb_whatsapp-icon simplesocial-whatsapp-share" data-href="' . ssb_whats_app_share_link( $permalink ) . '"><span class="simplesocialtxt">
792
  <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve" class=""><g><g> <path id="WhatsApp" d="M90,43.841c0,24.213-19.779,43.841-44.182,43.841c-7.747,0-15.025-1.98-21.357-5.455L0,90l7.975-23.522 c-4.023-6.606-6.34-14.354-6.34-22.637C1.635,19.628,21.416,0,45.818,0C70.223,0,90,19.628,90,43.841z M45.818,6.982 c-20.484,0-37.146,16.535-37.146,36.859c0,8.065,2.629,15.534,7.076,21.61L11.107,79.14l14.275-4.537 c5.865,3.851,12.891,6.097,20.437,6.097c20.481,0,37.146-16.533,37.146-36.857S66.301,6.982,45.818,6.982z M68.129,53.938 c-0.273-0.447-0.994-0.717-2.076-1.254c-1.084-0.537-6.41-3.138-7.4-3.495c-0.993-0.358-1.717-0.538-2.438,0.537 c-0.721,1.076-2.797,3.495-3.43,4.212c-0.632,0.719-1.263,0.809-2.347,0.271c-1.082-0.537-4.571-1.673-8.708-5.333 c-3.219-2.848-5.393-6.364-6.025-7.441c-0.631-1.075-0.066-1.656,0.475-2.191c0.488-0.482,1.084-1.255,1.625-1.882 c0.543-0.628,0.723-1.075,1.082-1.793c0.363-0.717,0.182-1.344-0.09-1.883c-0.27-0.537-2.438-5.825-3.34-7.977 c-0.902-2.15-1.803-1.792-2.436-1.792c-0.631,0-1.354-0.09-2.076-0.09c-0.722,0-1.896,0.269-2.889,1.344 c-0.992,1.076-3.789,3.676-3.789,8.963c0,5.288,3.879,10.397,4.422,11.113c0.541,0.716,7.49,11.92,18.5,16.223 C58.2,65.771,58.2,64.336,60.186,64.156c1.984-0.179,6.406-2.599,7.312-5.107C68.398,56.537,68.398,54.386,68.129,53.938z"/> </g></g> </svg> </span>
793
  <span class="simplesocialtxt">Whatsapp</span>
794
  </button>';
1085
  'align' => '',
1086
  'counter' => 'false',
1087
  'like_button_size' => 'small',
1088
+ ),
1089
+ $atts
1090
  );
1091
 
1092
  $themes = array(
1399
  break;
1400
  case 'whatsapp':
1401
  if ( $this->selected_theme == 'simple-icons' ) {
1402
+ $arrButtonsCode[] = ' <button onclick="javascript:window.open(this.dataset.href, \'_blank\' );return false;" class="simplesocial-whatsapp-share ssb_whatsapp-icon" data-href="' . ssb_whats_app_share_link( $permalink ) . '"><span class="simplesocialtxt">
1403
  <span class="icon"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" id="Capa_1" x="0px" y="0px" width="512px" height="512px" viewBox="0 0 90 90" style="enable-background:new 0 0 90 90;" xml:space="preserve" class=""><g><g> <path id="WhatsApp" d="M90,43.841c0,24.213-19.779,43.841-44.182,43.841c-7.747,0-15.025-1.98-21.357-5.455L0,90l7.975-23.522 c-4.023-6.606-6.34-14.354-6.34-22.637C1.635,19.628,21.416,0,45.818,0C70.223,0,90,19.628,90,43.841z M45.818,6.982 c-20.484,0-37.146,16.535-37.146,36.859c0,8.065,2.629,15.534,7.076,21.61L11.107,79.14l14.275-4.537 c5.865,3.851,12.891,6.097,20.437,6.097c20.481,0,37.146-16.533,37.146-36.857S66.301,6.982,45.818,6.982z M68.129,53.938 c-0.273-0.447-0.994-0.717-2.076-1.254c-1.084-0.537-6.41-3.138-7.4-3.495c-0.993-0.358-1.717-0.538-2.438,0.537 c-0.721,1.076-2.797,3.495-3.43,4.212c-0.632,0.719-1.263,0.809-2.347,0.271c-1.082-0.537-4.571-1.673-8.708-5.333 c-3.219-2.848-5.393-6.364-6.025-7.441c-0.631-1.075-0.066-1.656,0.475-2.191c0.488-0.482,1.084-1.255,1.625-1.882 c0.543-0.628,0.723-1.075,1.082-1.793c0.363-0.717,0.182-1.344-0.09-1.883c-0.27-0.537-2.438-5.825-3.34-7.977 c-0.902-2.15-1.803-1.792-2.436-1.792c-0.631,0-1.354-0.09-2.076-0.09c-0.722,0-1.896,0.269-2.889,1.344 c-0.992,1.076-3.789,3.676-3.789,8.963c0,5.288,3.879,10.397,4.422,11.113c0.541,0.716,7.49,11.92,18.5,16.223 C58.2,65.771,58.2,64.336,60.186,64.156c1.984-0.179,6.406-2.599,7.312-5.107C68.398,56.537,68.398,54.386,68.129,53.938z"/> </g></g> </svg> </span>
1404
  <span class="simplesocialtxt">Whatsapp</span>
1405
  </button>';
1808
  *
1809
  * @version 2.0.21
1810
  */
1811
+ function is_ssb_on( $position ) {
1812
 
1813
  $is_ajax_callback = true;
1814
+ if ( ! in_array( $this->get_post_type(), $this->_get_settings( $position, 'posts', array() ) ) ) {
1815
+ $is_ajax_callback = false;
1816
  }
1817
 
1818
  return $is_ajax_callback;
1819
 
1820
+ }
1821
 
1822
 
1823