Simple Share Buttons Adder - Version 7.4.13

Version Description

  • Fix: missing index issue and share bar view switches.
Download this release

Release Info

Developer DavidoffNeal
Plugin Icon 128x128 Simple Share Buttons Adder
Version 7.4.13
Comparing to
See all releases

Code changes from version 7.4.12 to 7.4.13

instance.php CHANGED
@@ -9,7 +9,7 @@ namespace SimpleShareButtonsAdder;
9
 
10
  define( 'SSBA_FILE', __FILE__ );
11
  define( 'SSBA_ROOT', dirname( __FILE__ ) );
12
- define( 'SSBA_VERSION', '7.4.12' );
13
 
14
  global $simple_share_buttons_adder_plugin;
15
 
9
 
10
  define( 'SSBA_FILE', __FILE__ );
11
  define( 'SSBA_ROOT', dirname( __FILE__ ) );
12
+ define( 'SSBA_VERSION', '7.4.13' );
13
 
14
  global $simple_share_buttons_adder_plugin;
15
 
js/admin.js CHANGED
@@ -613,7 +613,7 @@ var SimpleShareButtonsAdder = ( function( $, wp ) {
613
  $( '.ssba-admin-wrap input:checkbox' ).bootstrapSwitch( 'disabled', false );
614
  $( 'button.ssba-btn-save' ).html( '<i class="fa fa-floppy-o"></i>' );
615
  }
616
- ).always( function() {
617
 
618
  // Refresh page.
619
  location.reload();
613
  $( '.ssba-admin-wrap input:checkbox' ).bootstrapSwitch( 'disabled', false );
614
  $( 'button.ssba-btn-save' ).html( '<i class="fa fa-floppy-o"></i>' );
615
  }
616
+ ).always( function( response ) {
617
 
618
  // Refresh page.
619
  location.reload();
php/class-admin-bits.php CHANGED
@@ -260,23 +260,23 @@ class Admin_Bits {
260
  $arr_options = array(
261
  'ssba_image_set' => $ssba_post['ssba_image_set'],
262
  'ssba_size' => $ssba_post['ssba_size'],
263
- 'ssba_pages' => ( isset( $ssba_post['ssba_pages'] ) ? $ssba_post['ssba_pages'] : null ),
264
- 'ssba_posts' => ( isset( $ssba_post['ssba_posts'] ) ? $ssba_post['ssba_posts'] : null ),
265
- 'ssba_cats_archs' => ( isset( $ssba_post['ssba_cats_archs'] ) ? $ssba_post['ssba_cats_archs'] : null ),
266
- 'ssba_homepage' => ( isset( $ssba_post['ssba_homepage'] ) ? $ssba_post['ssba_homepage'] : null ),
267
- 'ssba_excerpts' => ( isset( $ssba_post['ssba_excerpts'] ) ? $ssba_post['ssba_excerpts'] : null ),
268
- 'ssba_plus_pages' => ( isset( $ssba_post['ssba_plus_pages'] ) ? $ssba_post['ssba_plus_pages'] : null ),
269
- 'ssba_plus_posts' => ( isset( $ssba_post['ssba_plus_posts'] ) ? $ssba_post['ssba_plus_posts'] : null ),
270
- 'ssba_plus_cats_archs' => ( isset( $ssba_post['ssba_plus_cats_archs'] ) ? $ssba_post['ssba_plus_cats_archs'] : null ),
271
- 'ssba_plus_homepage' => ( isset( $ssba_post['ssba_plus_homepage'] ) ? $ssba_post['ssba_plus_homepage'] : null ),
272
- 'ssba_plus_excerpts' => ( isset( $ssba_post['ssba_plus_excerpts'] ) ? $ssba_post['ssba_plus_excerpts'] : null ),
273
- 'ssba_bar_pages' => ( isset( $ssba_post['ssba_bar_pages'] ) ? $ssba_post['ssba_bar_pages'] : null ),
274
- 'ssba_bar_posts' => ( isset( $ssba_post['ssba_bar_posts'] ) ? $ssba_post['ssba_bar_posts'] : null ),
275
- 'ssba_bar_cats_archs' => ( isset( $ssba_post['ssba_bar_cats_archs'] ) ? $ssba_post['ssba_bar_cats_archs'] : null ),
276
- 'ssba_bar_homepage' => ( isset( $ssba_post['ssba_bar_homepage'] ) ? $ssba_post['ssba_bar_homepage'] : null ),
277
- 'ssba_bar_excerpts' => ( isset( $ssba_post['ssba_bar_excerpts'] ) ? $ssba_post['ssba_bar_excerpts'] : null ),
278
- 'ssba_align' => ( isset( $ssba_post['ssba_align'] ) ? $ssba_post['ssba_align'] : null ),
279
- 'ssba_plus_align' => ( isset( $ssba_post['ssba_plus_align'] ) ? $ssba_post['ssba_plus_align'] : null ),
280
  'ssba_padding' => $ssba_post['ssba_padding'],
281
  'ssba_before_or_after' => $ssba_post['ssba_before_or_after'],
282
  'ssba_before_or_after_plus' => $ssba_post['ssba_before_or_after_plus'],
@@ -288,17 +288,17 @@ class Admin_Bits {
288
  'ssba_buffer_text' => stripslashes_deep( $ssba_post['ssba_buffer_text'] ),
289
  'ssba_flattr_user_id' => stripslashes_deep( $ssba_post['ssba_flattr_user_id'] ),
290
  'ssba_flattr_url' => stripslashes_deep( $ssba_post['ssba_flattr_url'] ),
291
- 'ssba_bar_new_window' => ( isset( $ssba_post['ssba_bar_new_window'] ) ? $ssba_post['ssba_bar_new_window'] : null ),
292
- 'ssba_link_to_ssb' => ( isset( $ssba_post['ssba_link_to_ssb'] ) ? $ssba_post['ssba_link_to_ssb'] : null ),
293
- 'ssba_show_share_count' => ( isset( $ssba_post['ssba_show_share_count'] ) ? $ssba_post['ssba_show_share_count'] : null ),
294
- 'ssba_bar_count_style' => $ssba_post['ssba_bar_count_style'],
295
- 'ssba_bar_count_css' => $ssba_post['ssba_bar_count_css'],
296
- 'ssba_bar_count_once' => ( isset( $ssba_post['ssba_bar_count_once'] ) ? $ssba_post['ssba_bar_count_once'] : null ),
297
  'ssba_widget_text' => $ssba_post['ssba_widget_text'],
298
- 'ssba_rel_nofollow' => ( isset( $ssba_post['ssba_rel_nofollow'] ) ? $ssba_post['ssba_rel_nofollow'] : null ),
299
- 'ssba_default_pinterest' => ( isset( $ssba_post['ssba_default_pinterest'] ) ? $ssba_post['ssba_default_pinterest'] : null ),
300
- 'ssba_pinterest_featured' => ( isset( $ssba_post['ssba_pinterest_featured'] ) ? $ssba_post['ssba_pinterest_featured'] : null ),
301
- 'ssba_content_priority' => ( isset( $ssba_post['ssba_content_priority'] ) ? $ssba_post['ssba_content_priority'] : null ),
302
  'ssba_plus_additional_css' => $ssba_post['ssba_plus_additional_css'],
303
  'ssba_plus_custom_styles' => $ssba_post['ssba_plus_custom_styles'],
304
  'ssba_plus_custom_styles_enabled' => $ssba_post['ssba_plus_custom_styles_enabled'],
@@ -307,16 +307,16 @@ class Admin_Bits {
307
  'ssba_plus_buffer_text' => stripslashes_deep( $ssba_post['ssba_plus_buffer_text'] ),
308
  'ssba_plus_flattr_user_id' => stripslashes_deep( $ssba_post['ssba_plus_flattr_user_id'] ),
309
  'ssba_plus_flattr_url' => stripslashes_deep( $ssba_post['ssba_plus_flattr_url'] ),
310
- 'ssba_plus_share_new_window' => ( isset( $ssba_post['ssba_plus_share_new_window'] ) ? $ssba_post['ssba_plus_share_new_window'] : null ),
311
- 'ssba_plus_link_to_ssb' => ( isset( $ssba_post['ssba_plus_link_to_ssb'] ) ? $ssba_post['ssba_plus_link_to_ssb'] : null ),
312
- 'ssba_plus_show_share_count' => ( isset( $ssba_post['ssba_plus_show_share_count'] ) ? $ssba_post['ssba_plus_show_share_count'] : null ),
313
  'ssba_plus_share_count_style' => $ssba_post['ssba_plus_share_count_style'],
314
  'ssba_plus_share_count_css' => $ssba_post['ssba_plus_share_count_css'],
315
- 'ssba_plus_share_count_once' => ( isset( $ssba_post['ssba_plus_share_count_once'] ) ? $ssba_post['ssba_plus_share_count_once'] : null ),
316
  'ssba_plus_widget_text' => $ssba_post['ssba_plus_widget_text'],
317
- 'ssba_plus_rel_nofollow' => ( isset( $ssba_post['ssba_plus_rel_nofollow'] ) ? $ssba_post['ssba_plus_rel_nofollow'] : null ),
318
- 'ssba_plus_default_pinterest' => ( isset( $ssba_post['ssba_plus_default_pinterest'] ) ? $ssba_post['ssba_plus_default_pinterest'] : null ),
319
- 'ssba_plus_pinterest_featured' => ( isset( $ssba_post['ssba_plus_pinterest_featured'] ) ? $ssba_post['ssba_plus_pinterest_featured'] : null ),
320
  'ssba_bar_additional_css' => $ssba_post['ssba_bar_additional_css'],
321
  'ssba_bar_custom_styles' => $ssba_post['ssba_bar_custom_styles'],
322
  'ssba_bar_custom_styles_enabled' => $ssba_post['ssba_bar_custom_styles_enabled'],
@@ -325,20 +325,20 @@ class Admin_Bits {
325
  'ssba_bar_buffer_text' => stripslashes_deep( $ssba_post['ssba_bar_buffer_text'] ),
326
  'ssba_bar_flattr_user_id' => stripslashes_deep( $ssba_post['ssba_bar_flattr_user_id'] ),
327
  'ssba_bar_flattr_url' => stripslashes_deep( $ssba_post['ssba_bar_flattr_url'] ),
328
- 'ssba_bar_share_new_window' => ( isset( $ssba_post['ssba_bar_share_new_window'] ) ? $ssba_post['ssba_bar_share_new_window'] : null ),
329
- 'ssba_bar_link_to_ssb' => ( isset( $ssba_post['ssba_bar_link_to_ssb'] ) ? $ssba_post['ssba_bar_link_to_ssb'] : null ),
330
- 'ssba_bar_show_share_count' => ( isset( $ssba_post['ssba_bar_show_share_count'] ) ? $ssba_post['ssba_bar_show_share_count'] : null ),
331
  'ssba_bar_share_count_style' => $ssba_post['ssba_bar_share_count_style'],
332
  'ssba_bar_share_count_css' => $ssba_post['ssba_bar_share_count_css'],
333
- 'ssba_bar_share_count_once' => ( isset( $ssba_post['ssba_bar_share_count_once'] ) ? $ssba_post['ssba_bar_share_count_once'] : null ),
334
  'ssba_bar_widget_text' => $ssba_post['ssba_bar_widget_text'],
335
- 'ssba_bar_rel_nofollow' => ( isset( $ssba_post['ssba_bar_rel_nofollow'] ) ? $ssba_post['ssba_bar_rel_nofollow'] : null ),
336
- 'ssba_bar_default_pinterest' => ( isset( $ssba_post['ssba_bar_default_pinterest'] ) ? $ssba_post['ssba_bar_default_pinterest'] : null ),
337
- 'ssba_bar_pinterest_featured' => ( isset( $ssba_post['ssba_bar_pinterest_featured'] ) ? $ssba_post['ssba_bar_pinterest_featured'] : null ),
338
 
339
  // Share container.
340
  'ssba_div_padding' => $ssba_post['ssba_div_padding'],
341
- 'ssba_div_rounded_corners' => ( isset( $ssba_post['ssba_div_rounded_corners'] ) ? $ssba_post['ssba_div_rounded_corners'] : null ),
342
  'ssba_border_width' => $ssba_post['ssba_border_width'],
343
  'ssba_div_border' => $ssba_post['ssba_div_border'],
344
  'ssba_div_background' => $ssba_post['ssba_div_background'],
@@ -381,9 +381,9 @@ class Admin_Bits {
381
  'ssba_bar_icon_size' => $ssba_post['ssba_bar_icon_size'],
382
  'ssba_bar_icon_color' => $ssba_post['ssba_bar_icon_color'],
383
  'ssba_bar_icon_hover_color' => $ssba_post['ssba_bar_icon_hover_color'],
384
- 'ssba_bar_desktop' => $ssba_post['ssba_bar_desktop'],
385
  'ssba_bar_margin' => $ssba_post['ssba_bar_margin'],
386
- 'ssba_bar_mobile' => $ssba_post['ssba_bar_mobile'],
387
  'ssba_mobile_breakpoint' => $ssba_post['ssba_mobile_breakpoint'],
388
  'ssba_custom_facebook' => $ssba_post['ssba_custom_facebook'],
389
  'ssba_custom_google' => $ssba_post['ssba_custom_google'],
260
  $arr_options = array(
261
  'ssba_image_set' => $ssba_post['ssba_image_set'],
262
  'ssba_size' => $ssba_post['ssba_size'],
263
+ 'ssba_pages' => ( isset( $ssba_post['ssba_pages'] ) ? $ssba_post['ssba_pages'] : 'N' ),
264
+ 'ssba_posts' => ( isset( $ssba_post['ssba_posts'] ) ? $ssba_post['ssba_posts'] : 'N' ),
265
+ 'ssba_cats_archs' => ( isset( $ssba_post['ssba_cats_archs'] ) ? $ssba_post['ssba_cats_archs'] : 'N' ),
266
+ 'ssba_homepage' => ( isset( $ssba_post['ssba_homepage'] ) ? $ssba_post['ssba_homepage'] : 'N' ),
267
+ 'ssba_excerpts' => ( isset( $ssba_post['ssba_excerpts'] ) ? $ssba_post['ssba_excerpts'] : 'N' ),
268
+ 'ssba_plus_pages' => ( isset( $ssba_post['ssba_plus_pages'] ) ? $ssba_post['ssba_plus_pages'] : 'N' ),
269
+ 'ssba_plus_posts' => ( isset( $ssba_post['ssba_plus_posts'] ) ? $ssba_post['ssba_plus_posts'] : 'N' ),
270
+ 'ssba_plus_cats_archs' => ( isset( $ssba_post['ssba_plus_cats_archs'] ) ? $ssba_post['ssba_plus_cats_archs'] : 'N' ),
271
+ 'ssba_plus_homepage' => ( isset( $ssba_post['ssba_plus_homepage'] ) ? $ssba_post['ssba_plus_homepage'] : 'N' ),
272
+ 'ssba_plus_excerpts' => ( isset( $ssba_post['ssba_plus_excerpts'] ) ? $ssba_post['ssba_plus_excerpts'] : 'N' ),
273
+ 'ssba_bar_pages' => ( isset( $ssba_post['ssba_bar_pages'] ) ? $ssba_post['ssba_bar_pages'] : 'N' ),
274
+ 'ssba_bar_posts' => ( isset( $ssba_post['ssba_bar_posts'] ) ? $ssba_post['ssba_bar_posts'] : 'N' ),
275
+ 'ssba_bar_cats_archs' => ( isset( $ssba_post['ssba_bar_cats_archs'] ) ? $ssba_post['ssba_bar_cats_archs'] : 'N' ),
276
+ 'ssba_bar_homepage' => ( isset( $ssba_post['ssba_bar_homepage'] ) ? $ssba_post['ssba_bar_homepage'] : 'N' ),
277
+ 'ssba_bar_excerpts' => ( isset( $ssba_post['ssba_bar_excerpts'] ) ? $ssba_post['ssba_bar_excerpts'] : 'N' ),
278
+ 'ssba_align' => ( isset( $ssba_post['ssba_align'] ) ? $ssba_post['ssba_align'] : 'N' ),
279
+ 'ssba_plus_align' => ( isset( $ssba_post['ssba_plus_align'] ) ? $ssba_post['ssba_plus_align'] : 'N' ),
280
  'ssba_padding' => $ssba_post['ssba_padding'],
281
  'ssba_before_or_after' => $ssba_post['ssba_before_or_after'],
282
  'ssba_before_or_after_plus' => $ssba_post['ssba_before_or_after_plus'],
288
  'ssba_buffer_text' => stripslashes_deep( $ssba_post['ssba_buffer_text'] ),
289
  'ssba_flattr_user_id' => stripslashes_deep( $ssba_post['ssba_flattr_user_id'] ),
290
  'ssba_flattr_url' => stripslashes_deep( $ssba_post['ssba_flattr_url'] ),
291
+ 'ssba_share_new_window' => ( isset( $ssba_post['ssba_share_new_window'] ) ? $ssba_post['ssba_share_new_window'] : 'N' ),
292
+ 'ssba_link_to_ssb' => ( isset( $ssba_post['ssba_link_to_ssb'] ) ? $ssba_post['ssba_link_to_ssb'] : 'N' ),
293
+ 'ssba_show_share_count' => ( isset( $ssba_post['ssba_show_share_count'] ) ? $ssba_post['ssba_show_share_count'] : 'N' ),
294
+ 'ssba_bar_count_style' => $ssba_post['ssba_bar_count_style'],
295
+ 'ssba_bar_count_css' => $ssba_post['ssba_bar_count_css'],
296
+ 'ssba_bar_count_once' => ( isset( $ssba_post['ssba_bar_count_once'] ) ? $ssba_post['ssba_bar_count_once'] : 'N' ),
297
  'ssba_widget_text' => $ssba_post['ssba_widget_text'],
298
+ 'ssba_rel_nofollow' => ( isset( $ssba_post['ssba_rel_nofollow'] ) ? $ssba_post['ssba_rel_nofollow'] : 'N' ),
299
+ 'ssba_default_pinterest' => ( isset( $ssba_post['ssba_default_pinterest'] ) ? $ssba_post['ssba_default_pinterest'] : 'N' ),
300
+ 'ssba_pinterest_featured' => ( isset( $ssba_post['ssba_pinterest_featured'] ) ? $ssba_post['ssba_pinterest_featured'] : 'N' ),
301
+ 'ssba_content_priority' => ( isset( $ssba_post['ssba_content_priority'] ) ? $ssba_post['ssba_content_priority'] : 'N' ),
302
  'ssba_plus_additional_css' => $ssba_post['ssba_plus_additional_css'],
303
  'ssba_plus_custom_styles' => $ssba_post['ssba_plus_custom_styles'],
304
  'ssba_plus_custom_styles_enabled' => $ssba_post['ssba_plus_custom_styles_enabled'],
307
  'ssba_plus_buffer_text' => stripslashes_deep( $ssba_post['ssba_plus_buffer_text'] ),
308
  'ssba_plus_flattr_user_id' => stripslashes_deep( $ssba_post['ssba_plus_flattr_user_id'] ),
309
  'ssba_plus_flattr_url' => stripslashes_deep( $ssba_post['ssba_plus_flattr_url'] ),
310
+ 'ssba_plus_share_new_window' => ( isset( $ssba_post['ssba_plus_share_new_window'] ) ? $ssba_post['ssba_plus_share_new_window'] : 'N' ),
311
+ 'ssba_plus_link_to_ssb' => ( isset( $ssba_post['ssba_plus_link_to_ssb'] ) ? $ssba_post['ssba_plus_link_to_ssb'] : 'N' ),
312
+ 'ssba_plus_show_share_count' => ( isset( $ssba_post['ssba_plus_show_share_count'] ) ? $ssba_post['ssba_plus_show_share_count'] : 'N' ),
313
  'ssba_plus_share_count_style' => $ssba_post['ssba_plus_share_count_style'],
314
  'ssba_plus_share_count_css' => $ssba_post['ssba_plus_share_count_css'],
315
+ 'ssba_plus_share_count_once' => ( isset( $ssba_post['ssba_plus_share_count_once'] ) ? $ssba_post['ssba_plus_share_count_once'] : 'N' ),
316
  'ssba_plus_widget_text' => $ssba_post['ssba_plus_widget_text'],
317
+ 'ssba_plus_rel_nofollow' => ( isset( $ssba_post['ssba_plus_rel_nofollow'] ) ? $ssba_post['ssba_plus_rel_nofollow'] : 'N' ),
318
+ 'ssba_plus_default_pinterest' => ( isset( $ssba_post['ssba_plus_default_pinterest'] ) ? $ssba_post['ssba_plus_default_pinterest'] : 'N' ),
319
+ 'ssba_plus_pinterest_featured' => ( isset( $ssba_post['ssba_plus_pinterest_featured'] ) ? $ssba_post['ssba_plus_pinterest_featured'] : 'N' ),
320
  'ssba_bar_additional_css' => $ssba_post['ssba_bar_additional_css'],
321
  'ssba_bar_custom_styles' => $ssba_post['ssba_bar_custom_styles'],
322
  'ssba_bar_custom_styles_enabled' => $ssba_post['ssba_bar_custom_styles_enabled'],
325
  'ssba_bar_buffer_text' => stripslashes_deep( $ssba_post['ssba_bar_buffer_text'] ),
326
  'ssba_bar_flattr_user_id' => stripslashes_deep( $ssba_post['ssba_bar_flattr_user_id'] ),
327
  'ssba_bar_flattr_url' => stripslashes_deep( $ssba_post['ssba_bar_flattr_url'] ),
328
+ 'ssba_bar_share_new_window' => ( isset( $ssba_post['ssba_bar_share_new_window'] ) ? $ssba_post['ssba_bar_share_new_window'] : 'N' ),
329
+ 'ssba_bar_link_to_ssb' => ( isset( $ssba_post['ssba_bar_link_to_ssb'] ) ? $ssba_post['ssba_bar_link_to_ssb'] : 'N' ),
330
+ 'ssba_bar_show_share_count' => ( isset( $ssba_post['ssba_bar_show_share_count'] ) ? $ssba_post['ssba_bar_show_share_count'] : 'N' ),
331
  'ssba_bar_share_count_style' => $ssba_post['ssba_bar_share_count_style'],
332
  'ssba_bar_share_count_css' => $ssba_post['ssba_bar_share_count_css'],
333
+ 'ssba_bar_share_count_once' => ( isset( $ssba_post['ssba_bar_share_count_once'] ) ? $ssba_post['ssba_bar_share_count_once'] : 'N' ),
334
  'ssba_bar_widget_text' => $ssba_post['ssba_bar_widget_text'],
335
+ 'ssba_bar_rel_nofollow' => ( isset( $ssba_post['ssba_bar_rel_nofollow'] ) ? $ssba_post['ssba_bar_rel_nofollow'] : 'N' ),
336
+ 'ssba_bar_default_pinterest' => ( isset( $ssba_post['ssba_bar_default_pinterest'] ) ? $ssba_post['ssba_bar_default_pinterest'] : 'N' ),
337
+ 'ssba_bar_pinterest_featured' => ( isset( $ssba_post['ssba_bar_pinterest_featured'] ) ? $ssba_post['ssba_bar_pinterest_featured'] : 'N' ),
338
 
339
  // Share container.
340
  'ssba_div_padding' => $ssba_post['ssba_div_padding'],
341
+ 'ssba_div_rounded_corners' => ( isset( $ssba_post['ssba_div_rounded_corners'] ) ? $ssba_post['ssba_div_rounded_corners'] : 'N' ),
342
  'ssba_border_width' => $ssba_post['ssba_border_width'],
343
  'ssba_div_border' => $ssba_post['ssba_div_border'],
344
  'ssba_div_background' => $ssba_post['ssba_div_background'],
381
  'ssba_bar_icon_size' => $ssba_post['ssba_bar_icon_size'],
382
  'ssba_bar_icon_color' => $ssba_post['ssba_bar_icon_color'],
383
  'ssba_bar_icon_hover_color' => $ssba_post['ssba_bar_icon_hover_color'],
384
+ 'ssba_bar_desktop' => isset( $ssba_post['ssba_bar_desktop'] ) && 'Y' === $ssba_post['ssba_bar_desktop'] ? $ssba_post['ssba_bar_desktop'] : 'N',
385
  'ssba_bar_margin' => $ssba_post['ssba_bar_margin'],
386
+ 'ssba_bar_mobile' => isset( $ssba_post['ssba_bar_mobile'] ) && 'Y' === $ssba_post['ssba_bar_mobile'] ? $ssba_post['ssba_bar_mobile'] : 'N',
387
  'ssba_mobile_breakpoint' => $ssba_post['ssba_mobile_breakpoint'],
388
  'ssba_custom_facebook' => $ssba_post['ssba_custom_facebook'],
389
  'ssba_custom_google' => $ssba_post['ssba_custom_google'],
php/class-buttons.php CHANGED
@@ -217,7 +217,7 @@ class Buttons {
217
 
218
  // If running standard.
219
  if ( ! $boo_shortcode ) {
220
- // Use wordpress functions for page/post details.
221
  $url_current_page = get_permalink( $post->ID );
222
  $str_page_title = get_the_title( $post->ID );
223
  } else { // Using shortcode.
@@ -285,7 +285,7 @@ class Buttons {
285
  // Get sbba settings.
286
  $arr_settings = $this->class_ssba->get_ssba_settings();
287
 
288
- if ( ( 'Y' !== $arr_settings['ssba_bar_desktop'] && ! wp_is_mobile() ) || ( 'Y' !== $arr_settings['ssba_bar_mobile'] && wp_is_mobile() ) ) {
289
  return;
290
  }
291
 
@@ -481,17 +481,17 @@ class Buttons {
481
  $network = 'Facebook';
482
  $target =
483
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
484
- && 'Y' === $arr_settings['ssba_new_buttons']
485
- && ! isset( $arr_settings['bar_call']
486
  ) )
487
  ||
488
- ( 'Y' === $arr_settings['ssba_share_new_window']
489
- && 'Y' !== $arr_settings['ssba_new_buttons']
490
- && ! isset( $arr_settings['bar_call']
491
- ) )
492
- ||
493
- ( 'Y' === $arr_settings['ssba_bar_share_new_window'] && isset( $arr_settings['bar_call']
494
- ) ) ? ' target="_blank" ' : '';
495
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-facebook ssbp-btn' : '';
496
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
497
  $html_share_buttons = '';
@@ -718,17 +718,17 @@ class Buttons {
718
  $network = 'Twitter';
719
  $target =
720
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
721
- && 'Y' === $arr_settings['ssba_new_buttons']
722
- && ! isset( $arr_settings['bar_call']
723
  ) )
724
  ||
725
- ( 'Y' === $arr_settings['ssba_share_new_window']
726
- && 'Y' !== $arr_settings['ssba_new_buttons']
727
- && ! isset( $arr_settings['bar_call']
728
- ) )
729
- ||
730
- ( 'Y' === $arr_settings['ssba_bar_share_new_window'] && isset( $arr_settings['bar_call']
731
- ) ) ? ' target="_blank" ' : '';
732
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-twitter ssbp-btn' : '';
733
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
734
  $html_share_buttons = '';
@@ -817,17 +817,17 @@ class Buttons {
817
  $network = 'Google+';
818
  $target =
819
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
820
- && 'Y' === $arr_settings['ssba_new_buttons']
821
- && ! isset( $arr_settings['bar_call']
822
  ) )
823
  ||
824
- ( 'Y' === $arr_settings['ssba_share_new_window']
825
- && 'Y' !== $arr_settings['ssba_new_buttons']
826
- && ! isset( $arr_settings['bar_call']
827
- ) )
828
- ||
829
- ( 'Y' === $arr_settings['ssba_bar_share_new_window'] && isset( $arr_settings['bar_call']
830
- ) ) ? ' target="_blank" ' : '';
831
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-google ssbp-btn' : '';
832
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
833
  $html_share_buttons = '';
@@ -932,17 +932,17 @@ class Buttons {
932
  $network = 'Digg';
933
  $target =
934
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
935
- && 'Y' === $arr_settings['ssba_new_buttons']
936
- && ! isset( $arr_settings['bar_call']
937
  ) )
938
  ||
939
- ( 'Y' === $arr_settings['ssba_share_new_window']
940
- && 'Y' !== $arr_settings['ssba_new_buttons']
941
- && ! isset( $arr_settings['bar_call']
942
- ) )
943
- ||
944
- ( 'Y' === $arr_settings['ssba_bar_share_new_window'] && isset( $arr_settings['bar_call']
945
- ) ) ? ' target="_blank" ' : '';
946
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-diggit ssbp-btn' : '';
947
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
948
  $html_share_buttons = '';
@@ -994,17 +994,17 @@ class Buttons {
994
  $network = 'Reddit';
995
  $target =
996
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
997
- && 'Y' === $arr_settings['ssba_new_buttons']
998
- && ! isset( $arr_settings['bar_call']
999
  ) )
1000
  ||
1001
- ( 'Y' === $arr_settings['ssba_share_new_window']
1002
- && 'Y' !== $arr_settings['ssba_new_buttons']
1003
- && ! isset( $arr_settings['bar_call']
1004
- ) )
1005
- ||
1006
- ( 'Y' === $arr_settings['ssba_bar_share_new_window'] && isset( $arr_settings['bar_call']
1007
- ) ) ? ' target="_blank" ' : '';
1008
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-reddit ssbp-btn' : '';
1009
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1010
  $html_share_buttons = '';
@@ -1088,18 +1088,18 @@ class Buttons {
1088
  $network = 'Linkedin';
1089
  $target =
1090
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1091
- && 'Y' === $arr_settings['ssba_new_buttons']
1092
- && ! isset( $arr_settings['bar_call']
1093
  ) )
1094
  ||
1095
- ( 'Y' === $arr_settings['ssba_share_new_window']
1096
- && 'Y' !== $arr_settings['ssba_new_buttons']
1097
- && ! isset( $arr_settings['bar_call']
1098
- ) )
1099
- ||
1100
- ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1101
- && isset( $arr_settings['bar_call']
1102
- ) ) ? ' target="_blank" ' : '';
1103
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-linkedin ssbp-btn' : '';
1104
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1105
  $html_share_buttons = '';
@@ -1184,18 +1184,18 @@ class Buttons {
1184
  $network = 'Pinterest';
1185
  $target =
1186
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1187
- && 'Y' === $arr_settings['ssba_new_buttons']
1188
- && ! isset( $arr_settings['bar_call']
1189
  ) )
1190
  ||
1191
- ( 'Y' === $arr_settings['ssba_share_new_window']
1192
- && 'Y' !== $arr_settings['ssba_new_buttons']
1193
- && ! isset( $arr_settings['bar_call']
1194
- ) )
1195
- ||
1196
- ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1197
- && isset( $arr_settings['bar_call']
1198
- ) ) ? ' target="_blank" ' : '';
1199
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-pinterest ssbp-btn' : '';
1200
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1201
  $html_share_buttons = '';
@@ -1295,18 +1295,18 @@ class Buttons {
1295
  $network = 'StumbleUpon';
1296
  $target =
1297
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1298
- && 'Y' === $arr_settings['ssba_new_buttons']
1299
- && ! isset( $arr_settings['bar_call']
1300
  ) )
1301
  ||
1302
- ( 'Y' === $arr_settings['ssba_share_new_window']
1303
- && 'Y' !== $arr_settings['ssba_new_buttons']
1304
- && ! isset( $arr_settings['bar_call']
1305
- ) )
1306
- ||
1307
- ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1308
- && isset( $arr_settings['bar_call']
1309
- ) ) ? ' target="_blank" ' : '';
1310
  $url = 'http://www.stumbleupon.com/submit?url=' . esc_attr( $url_current_page ) . '&amp;title=' . esc_attr( $str_page_title );
1311
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-stumbleupon ssbp-btn' : '';
1312
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
@@ -1440,18 +1440,18 @@ class Buttons {
1440
  $network = 'Flattr';
1441
  $target =
1442
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1443
- && 'Y' === $arr_settings['ssba_new_buttons']
1444
- && ! isset( $arr_settings['bar_call']
1445
  ) )
1446
  ||
1447
- ( 'Y' === $arr_settings['ssba_share_new_window']
1448
- && 'Y' !== $arr_settings['ssba_new_buttons']
1449
- && ! isset( $arr_settings['bar_call']
1450
- ) )
1451
- ||
1452
- ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1453
- && isset( $arr_settings['bar_call']
1454
- ) ) ? ' target="_blank" ' : '';
1455
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-flattr ssbp-btn' : '';
1456
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1457
  $html_share_buttons = '';
@@ -1510,18 +1510,18 @@ class Buttons {
1510
  $network = 'Buffer';
1511
  $target =
1512
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1513
- && 'Y' === $arr_settings['ssba_new_buttons']
1514
- && ! isset( $arr_settings['bar_call']
1515
  ) )
1516
  ||
1517
- ( 'Y' === $arr_settings['ssba_share_new_window']
1518
- && 'Y' !== $arr_settings['ssba_new_buttons']
1519
- && ! isset( $arr_settings['bar_call']
1520
- ) )
1521
- ||
1522
- ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1523
- && isset( $arr_settings['bar_call']
1524
- ) ) ? ' target="_blank" ' : '';
1525
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-buffer ssbp-btn' : '';
1526
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1527
  $html_share_buttons = '';
@@ -1573,18 +1573,18 @@ class Buttons {
1573
  $network = 'Tumblr';
1574
  $target =
1575
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1576
- && 'Y' === $arr_settings['ssba_new_buttons']
1577
- && ! isset( $arr_settings['bar_call']
1578
  ) )
1579
  ||
1580
- ( 'Y' === $arr_settings['ssba_share_new_window']
1581
- && 'Y' !== $arr_settings['ssba_new_buttons']
1582
- && ! isset( $arr_settings['bar_call']
1583
- ) )
1584
- ||
1585
- ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1586
- && isset( $arr_settings['bar_call']
1587
- ) ) ? ' target="_blank" ' : '';
1588
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-tumblr ssbp-btn' : '';
1589
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1590
  $html_share_buttons = '';
@@ -1713,18 +1713,18 @@ class Buttons {
1713
  $network = 'VK';
1714
  $target =
1715
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1716
- && 'Y' === $arr_settings['ssba_new_buttons']
1717
- && ! isset( $arr_settings['bar_call']
1718
  ) )
1719
  ||
1720
- ( 'Y' === $arr_settings['ssba_share_new_window']
1721
- && 'Y' !== $arr_settings['ssba_new_buttons']
1722
- && ! isset( $arr_settings['bar_call']
1723
- ) )
1724
- ||
1725
- ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1726
- && isset( $arr_settings['bar_call']
1727
- ) ) ? ' target="_blank" ' : '';
1728
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-vk ssbp-btn' : '';
1729
  $html_share_buttons = '';
1730
 
@@ -1775,18 +1775,18 @@ class Buttons {
1775
  $network = 'Yummly';
1776
  $target =
1777
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1778
- && 'Y' === $arr_settings['ssba_new_buttons']
1779
- && ! isset( $arr_settings['bar_call']
1780
  ) )
1781
  ||
1782
- ( 'Y' === $arr_settings['ssba_share_new_window']
1783
- && 'Y' !== $arr_settings['ssba_new_buttons']
1784
- && ! isset( $arr_settings['bar_call']
1785
- ) )
1786
- ||
1787
- ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1788
- && isset( $arr_settings['bar_call']
1789
- ) ) ? ' target="_blank" ' : '';
1790
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-yummly ssbp-btn' : '';
1791
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1792
  $html_share_buttons = '';
@@ -1873,18 +1873,18 @@ class Buttons {
1873
  $network = 'Whatsapp';
1874
  $target =
1875
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1876
- && 'Y' === $arr_settings['ssba_new_buttons']
1877
- && ! isset( $arr_settings['bar_call']
1878
  ) )
1879
  ||
1880
- ( 'Y' === $arr_settings['ssba_share_new_window']
1881
- && 'Y' !== $arr_settings['ssba_new_buttons']
1882
- && ! isset( $arr_settings['bar_call']
1883
- ) )
1884
- ||
1885
- ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1886
- && isset( $arr_settings['bar_call']
1887
- ) ) ? ' target="_blank" ' : '';
1888
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-whatsapp ssbp-btn' : '';
1889
  $html_share_buttons = '';
1890
 
@@ -1935,18 +1935,18 @@ class Buttons {
1935
  $network = 'Xing';
1936
  $target =
1937
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1938
- && 'Y' === $arr_settings['ssba_new_buttons']
1939
- && ! isset( $arr_settings['bar_call']
1940
  ) )
1941
  ||
1942
- ( 'Y' === $arr_settings['ssba_share_new_window']
1943
- && 'Y' !== $arr_settings['ssba_new_buttons']
1944
- && ! isset( $arr_settings['bar_call']
1945
- ) )
1946
- ||
1947
- ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1948
- && isset( $arr_settings['bar_call']
1949
- ) ) ? ' target="_blank" ' : '';
1950
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-xing ssbp-btn' : '';
1951
  $html_share_buttons = '';
1952
 
217
 
218
  // If running standard.
219
  if ( ! $boo_shortcode ) {
220
+ // Use WordPress functions for page/post details.
221
  $url_current_page = get_permalink( $post->ID );
222
  $str_page_title = get_the_title( $post->ID );
223
  } else { // Using shortcode.
285
  // Get sbba settings.
286
  $arr_settings = $this->class_ssba->get_ssba_settings();
287
 
288
+ if ( ( 'Y' !== $arr_settings['ssba_bar_desktop'] && ! wp_is_mobile() ) || ( 'Y' !== $arr_settings['ssba_bar_mobile'] && wp_is_mobile() ) || 'Y' !== $arr_settings['ssba_bar_enabled'] ) {
289
  return;
290
  }
291
 
481
  $network = 'Facebook';
482
  $target =
483
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
484
+ && 'Y' === $arr_settings['ssba_new_buttons']
485
+ && ! isset( $arr_settings['bar_call']
486
  ) )
487
  ||
488
+ ( 'Y' === $arr_settings['ssba_share_new_window']
489
+ && 'Y' !== $arr_settings['ssba_new_buttons']
490
+ && ! isset( $arr_settings['bar_call']
491
+ ) )
492
+ ||
493
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window'] && isset( $arr_settings['bar_call']
494
+ ) ) ? ' target="_blank" ' : '';
495
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-facebook ssbp-btn' : '';
496
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
497
  $html_share_buttons = '';
718
  $network = 'Twitter';
719
  $target =
720
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
721
+ && 'Y' === $arr_settings['ssba_new_buttons']
722
+ && ! isset( $arr_settings['bar_call']
723
  ) )
724
  ||
725
+ ( 'Y' === $arr_settings['ssba_share_new_window']
726
+ && 'Y' !== $arr_settings['ssba_new_buttons']
727
+ && ! isset( $arr_settings['bar_call']
728
+ ) )
729
+ ||
730
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window'] && isset( $arr_settings['bar_call']
731
+ ) ) ? ' target="_blank" ' : '';
732
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-twitter ssbp-btn' : '';
733
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
734
  $html_share_buttons = '';
817
  $network = 'Google+';
818
  $target =
819
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
820
+ && 'Y' === $arr_settings['ssba_new_buttons']
821
+ && ! isset( $arr_settings['bar_call']
822
  ) )
823
  ||
824
+ ( 'Y' === $arr_settings['ssba_share_new_window']
825
+ && 'Y' !== $arr_settings['ssba_new_buttons']
826
+ && ! isset( $arr_settings['bar_call']
827
+ ) )
828
+ ||
829
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window'] && isset( $arr_settings['bar_call']
830
+ ) ) ? ' target="_blank" ' : '';
831
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-google ssbp-btn' : '';
832
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
833
  $html_share_buttons = '';
932
  $network = 'Digg';
933
  $target =
934
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
935
+ && 'Y' === $arr_settings['ssba_new_buttons']
936
+ && ! isset( $arr_settings['bar_call']
937
  ) )
938
  ||
939
+ ( 'Y' === $arr_settings['ssba_share_new_window']
940
+ && 'Y' !== $arr_settings['ssba_new_buttons']
941
+ && ! isset( $arr_settings['bar_call']
942
+ ) )
943
+ ||
944
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window'] && isset( $arr_settings['bar_call']
945
+ ) ) ? ' target="_blank" ' : '';
946
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-diggit ssbp-btn' : '';
947
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
948
  $html_share_buttons = '';
994
  $network = 'Reddit';
995
  $target =
996
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
997
+ && 'Y' === $arr_settings['ssba_new_buttons']
998
+ && ! isset( $arr_settings['bar_call']
999
  ) )
1000
  ||
1001
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1002
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1003
+ && ! isset( $arr_settings['bar_call']
1004
+ ) )
1005
+ ||
1006
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window'] && isset( $arr_settings['bar_call']
1007
+ ) ) ? ' target="_blank" ' : '';
1008
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-reddit ssbp-btn' : '';
1009
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1010
  $html_share_buttons = '';
1088
  $network = 'Linkedin';
1089
  $target =
1090
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1091
+ && 'Y' === $arr_settings['ssba_new_buttons']
1092
+ && ! isset( $arr_settings['bar_call']
1093
  ) )
1094
  ||
1095
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1096
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1097
+ && ! isset( $arr_settings['bar_call']
1098
+ ) )
1099
+ ||
1100
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1101
+ && isset( $arr_settings['bar_call']
1102
+ ) ) ? ' target="_blank" ' : '';
1103
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-linkedin ssbp-btn' : '';
1104
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1105
  $html_share_buttons = '';
1184
  $network = 'Pinterest';
1185
  $target =
1186
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1187
+ && 'Y' === $arr_settings['ssba_new_buttons']
1188
+ && ! isset( $arr_settings['bar_call']
1189
  ) )
1190
  ||
1191
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1192
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1193
+ && ! isset( $arr_settings['bar_call']
1194
+ ) )
1195
+ ||
1196
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1197
+ && isset( $arr_settings['bar_call']
1198
+ ) ) ? ' target="_blank" ' : '';
1199
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-pinterest ssbp-btn' : '';
1200
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1201
  $html_share_buttons = '';
1295
  $network = 'StumbleUpon';
1296
  $target =
1297
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1298
+ && 'Y' === $arr_settings['ssba_new_buttons']
1299
+ && ! isset( $arr_settings['bar_call']
1300
  ) )
1301
  ||
1302
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1303
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1304
+ && ! isset( $arr_settings['bar_call']
1305
+ ) )
1306
+ ||
1307
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1308
+ && isset( $arr_settings['bar_call']
1309
+ ) ) ? ' target="_blank" ' : '';
1310
  $url = 'http://www.stumbleupon.com/submit?url=' . esc_attr( $url_current_page ) . '&amp;title=' . esc_attr( $str_page_title );
1311
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-stumbleupon ssbp-btn' : '';
1312
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1440
  $network = 'Flattr';
1441
  $target =
1442
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1443
+ && 'Y' === $arr_settings['ssba_new_buttons']
1444
+ && ! isset( $arr_settings['bar_call']
1445
  ) )
1446
  ||
1447
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1448
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1449
+ && ! isset( $arr_settings['bar_call']
1450
+ ) )
1451
+ ||
1452
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1453
+ && isset( $arr_settings['bar_call']
1454
+ ) ) ? ' target="_blank" ' : '';
1455
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-flattr ssbp-btn' : '';
1456
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1457
  $html_share_buttons = '';
1510
  $network = 'Buffer';
1511
  $target =
1512
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1513
+ && 'Y' === $arr_settings['ssba_new_buttons']
1514
+ && ! isset( $arr_settings['bar_call']
1515
  ) )
1516
  ||
1517
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1518
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1519
+ && ! isset( $arr_settings['bar_call']
1520
+ ) )
1521
+ ||
1522
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1523
+ && isset( $arr_settings['bar_call']
1524
+ ) ) ? ' target="_blank" ' : '';
1525
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-buffer ssbp-btn' : '';
1526
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1527
  $html_share_buttons = '';
1573
  $network = 'Tumblr';
1574
  $target =
1575
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1576
+ && 'Y' === $arr_settings['ssba_new_buttons']
1577
+ && ! isset( $arr_settings['bar_call']
1578
  ) )
1579
  ||
1580
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1581
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1582
+ && ! isset( $arr_settings['bar_call']
1583
+ ) )
1584
+ ||
1585
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1586
+ && isset( $arr_settings['bar_call']
1587
+ ) ) ? ' target="_blank" ' : '';
1588
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-tumblr ssbp-btn' : '';
1589
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1590
  $html_share_buttons = '';
1713
  $network = 'VK';
1714
  $target =
1715
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1716
+ && 'Y' === $arr_settings['ssba_new_buttons']
1717
+ && ! isset( $arr_settings['bar_call']
1718
  ) )
1719
  ||
1720
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1721
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1722
+ && ! isset( $arr_settings['bar_call']
1723
+ ) )
1724
+ ||
1725
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1726
+ && isset( $arr_settings['bar_call']
1727
+ ) ) ? ' target="_blank" ' : '';
1728
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-vk ssbp-btn' : '';
1729
  $html_share_buttons = '';
1730
 
1775
  $network = 'Yummly';
1776
  $target =
1777
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1778
+ && 'Y' === $arr_settings['ssba_new_buttons']
1779
+ && ! isset( $arr_settings['bar_call']
1780
  ) )
1781
  ||
1782
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1783
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1784
+ && ! isset( $arr_settings['bar_call']
1785
+ ) )
1786
+ ||
1787
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1788
+ && isset( $arr_settings['bar_call']
1789
+ ) ) ? ' target="_blank" ' : '';
1790
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-yummly ssbp-btn' : '';
1791
  $count_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-each-share' : ' ssba_sharecount';
1792
  $html_share_buttons = '';
1873
  $network = 'Whatsapp';
1874
  $target =
1875
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1876
+ && 'Y' === $arr_settings['ssba_new_buttons']
1877
+ && ! isset( $arr_settings['bar_call']
1878
  ) )
1879
  ||
1880
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1881
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1882
+ && ! isset( $arr_settings['bar_call']
1883
+ ) )
1884
+ ||
1885
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1886
+ && isset( $arr_settings['bar_call']
1887
+ ) ) ? ' target="_blank" ' : '';
1888
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-whatsapp ssbp-btn' : '';
1889
  $html_share_buttons = '';
1890
 
1935
  $network = 'Xing';
1936
  $target =
1937
  ( 'Y' === $arr_settings['ssba_plus_share_new_window']
1938
+ && 'Y' === $arr_settings['ssba_new_buttons']
1939
+ && ! isset( $arr_settings['bar_call']
1940
  ) )
1941
  ||
1942
+ ( 'Y' === $arr_settings['ssba_share_new_window']
1943
+ && 'Y' !== $arr_settings['ssba_new_buttons']
1944
+ && ! isset( $arr_settings['bar_call']
1945
+ ) )
1946
+ ||
1947
+ ( 'Y' === $arr_settings['ssba_bar_share_new_window']
1948
+ && isset( $arr_settings['bar_call']
1949
+ ) ) ? ' target="_blank" ' : '';
1950
  $plus_class = 'Y' === $arr_settings['ssba_new_buttons'] || isset( $arr_settings['bar_call'] ) ? ' ssbp-xing ssbp-btn' : '';
1951
  $html_share_buttons = '';
1952
 
php/class-database.php CHANGED
@@ -91,7 +91,9 @@ class Database {
91
  'ssba_buffer_text' => '',
92
  'ssba_flattr_user_id' => '',
93
  'ssba_flattr_url' => '',
94
- 'ssba_bar_new_window' => 'Y',
 
 
95
  'ssba_link_to_ssb' => 'N',
96
  'ssba_show_share_count' => '',
97
  'ssba_plus_show_share_count' => '',
91
  'ssba_buffer_text' => '',
92
  'ssba_flattr_user_id' => '',
93
  'ssba_flattr_url' => '',
94
+ 'ssba_bar_share_new_window' => 'Y',
95
+ 'ssba_share_new_window' => 'Y',
96
+ 'ssba_plus_share_new_window' => 'Y',
97
  'ssba_link_to_ssb' => 'N',
98
  'ssba_show_share_count' => '',
99
  'ssba_plus_show_share_count' => '',
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: sharethis, scottstorebloom, surlyrightclick, DavidoffNeal
3
  Tags: share buttons, social buttons, facebook, twitter, google+, share, share links, stumble upon, linkedin, pinterest, yummly, vk
4
  Requires at least: 4.5
5
  Tested up to: 4.9.4
6
- Stable tag: 7.4.12
7
  License: GPLv2 or later
8
 
9
  A simple plugin that enables you to add share buttons to all of your posts and/or pages.
@@ -66,6 +66,9 @@ Please visit the <a href="https://wordpress.org/support/plugin/simple-share-butt
66
 
67
  == Changelog ==
68
 
 
 
 
69
  = 7.4.12 =
70
  * Fix: Saving issue.
71
 
3
  Tags: share buttons, social buttons, facebook, twitter, google+, share, share links, stumble upon, linkedin, pinterest, yummly, vk
4
  Requires at least: 4.5
5
  Tested up to: 4.9.4
6
+ Stable tag: 7.4.13
7
  License: GPLv2 or later
8
 
9
  A simple plugin that enables you to add share buttons to all of your posts and/or pages.
66
 
67
  == Changelog ==
68
 
69
+ = 7.4.13 =
70
+ * Fix: missing index issue and share bar view switches.
71
+
72
  = 7.4.12 =
73
  * Fix: Saving issue.
74
 
simple-share-buttons-adder.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Simple Share Buttons Adder
4
  * Plugin URI: https://simplesharebuttons.com
5
  * Description: A simple plugin that enables you to add share buttons to all of your posts and/or pages.
6
- * Version: 7.4.12
7
  * Author: Simple Share Buttons
8
  * Author URI: https://simplesharebuttons.com
9
  * License: GPLv2
3
  * Plugin Name: Simple Share Buttons Adder
4
  * Plugin URI: https://simplesharebuttons.com
5
  * Description: A simple plugin that enables you to add share buttons to all of your posts and/or pages.
6
+ * Version: 7.4.13
7
  * Author: Simple Share Buttons
8
  * Author URI: https://simplesharebuttons.com
9
  * License: GPLv2
templates/admin-panel.php CHANGED
@@ -8,7 +8,8 @@
8
  */
9
 
10
  $selected_tab = get_option( 'ssba_selected_tab' );
11
- $classic = false === $selected_tab || null === $selected_tab || 'classic' === $selected_tab ? 'active' : '';
 
12
  $modern = isset( $selected_tab ) && 'modern' === $selected_tab ? 'active' : '';
13
  $bar = isset( $selected_tab ) && 'bar' === $selected_tab ? 'active' : '';
14
 
@@ -59,7 +60,7 @@ if ( isset( $_GET['accept-terms'] ) && 'Y' === $_GET['accept-terms'] ) { // WPCS
59
  <?php include_once( "{$this->plugin->dir_path}/templates/plus-tab.php" ); ?>
60
  <?php include_once( "{$this->plugin->dir_path}/templates/share-bar-tab.php" ); ?>
61
  </div>
62
- <input id="ssba_selected_tab" name="ssba_selected_tab" type="hidden" value="classic"/>
63
  <?php
64
  echo $this->forms->close(); // WPCS: XSS ok.
65
  echo $this->admin_footer(); // WPCS: XSS ok.
8
  */
9
 
10
  $selected_tab = get_option( 'ssba_selected_tab' );
11
+ $selected_tab = null !== $selected_tab && false !== $selected_tab ? $selected_tab : 'classic';
12
+ $classic = 'classic' === $selected_tab ? 'active' : '';
13
  $modern = isset( $selected_tab ) && 'modern' === $selected_tab ? 'active' : '';
14
  $bar = isset( $selected_tab ) && 'bar' === $selected_tab ? 'active' : '';
15
 
60
  <?php include_once( "{$this->plugin->dir_path}/templates/plus-tab.php" ); ?>
61
  <?php include_once( "{$this->plugin->dir_path}/templates/share-bar-tab.php" ); ?>
62
  </div>
63
+ <input id="ssba_selected_tab" name="ssba_selected_tab" type="hidden" value="<?php echo esc_html( $selected_tab ); ?>"/>
64
  <?php
65
  echo $this->forms->close(); // WPCS: XSS ok.
66
  echo $this->admin_footer(); // WPCS: XSS ok.