AddToAny Share Buttons - Version 1.7.45

Version Description

  • Add Tumblr share count option
  • Remove Facebook share count option because Facebook no longer provides public API access to share counts
  • Remove Blinklist
  • Resolve PHP 8 deprecations (thanks eclev91)
  • Override background style on buttons in the Twenty Twenty-One default theme
Download this release

Release Info

Developer micropat
Plugin Icon 128x128 AddToAny Share Buttons
Version 1.7.45
Comparing to
See all releases

Code changes from version 1.7.44 to 1.7.45

README.txt CHANGED
@@ -2,9 +2,9 @@
2
  Contributors: micropat, addtoany
3
  Tags: buttons, share, icons, social media, share buttons, sharing, share button, media, social, marketing, links, email, seo, woocommerce, google, linkedin, reddit, facebook, twitter, pinterest, whatsapp, instagram, youtube, share this, sharethis, feed
4
  Requires at least: 3.7
5
- Tested up to: 5.7
6
  Requires PHP: 5.6
7
- Stable tag: 1.7.44
8
 
9
  Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, WhatsApp, Pinterest, Reddit, many more, and follow icons too.
10
 
@@ -346,6 +346,13 @@ Upload (or move) the `add-to-any` plugin directory into the `/wp-content/mu-plug
346
 
347
  == Changelog ==
348
 
 
 
 
 
 
 
 
349
  = 1.7.44 =
350
  * Update the Print service to support AMP (thanks andrei0x309)
351
  * Enable the `addtoany_icons_bg_color` filter hook to programmatically change the color of icons
2
  Contributors: micropat, addtoany
3
  Tags: buttons, share, icons, social media, share buttons, sharing, share button, media, social, marketing, links, email, seo, woocommerce, google, linkedin, reddit, facebook, twitter, pinterest, whatsapp, instagram, youtube, share this, sharethis, feed
4
  Requires at least: 3.7
5
+ Tested up to: 5.8
6
  Requires PHP: 5.6
7
+ Stable tag: 1.7.45
8
 
9
  Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, WhatsApp, Pinterest, Reddit, many more, and follow icons too.
10
 
346
 
347
  == Changelog ==
348
 
349
+ = 1.7.45 =
350
+ * Add Tumblr share count option
351
+ * Remove Facebook share count option because Facebook no longer provides public API access to share counts
352
+ * Remove Blinklist
353
+ * Resolve PHP 8 deprecations (thanks eclev91)
354
+ * Override `background` style on buttons in the Twenty Twenty-One default theme
355
+
356
  = 1.7.44 =
357
  * Update the Print service to support AMP (thanks andrei0x309)
358
  * Enable the `addtoany_icons_bg_color` filter hook to programmatically change the color of icons
add-to-any.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: AddToAny Share Buttons
4
  * Plugin URI: https://www.addtoany.com/
5
  * Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, LinkedIn, Pinterest, WhatsApp and many more.
6
- * Version: 1.7.44
7
  * Author: AddToAny
8
  * Author URI: https://www.addtoany.com/
9
  * Text Domain: add-to-any
@@ -321,7 +321,7 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
321
 
322
  // AddToAny counter enabled?
323
  $counter_enabled = ( ! $args['is_follow'] // Disable counters on Follow Kits
324
- && in_array( $active_service, array( 'facebook', 'pinterest', 'reddit' ) )
325
  && isset( $options['special_' . $active_service . '_options'] )
326
  && isset( $options['special_' . $active_service . '_options']['show_count'] )
327
  && $options['special_' . $active_service . '_options']['show_count'] == '1'
3
  * Plugin Name: AddToAny Share Buttons
4
  * Plugin URI: https://www.addtoany.com/
5
  * Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, LinkedIn, Pinterest, WhatsApp and many more.
6
+ * Version: 1.7.45
7
  * Author: AddToAny
8
  * Author URI: https://www.addtoany.com/
9
  * Text Domain: add-to-any
321
 
322
  // AddToAny counter enabled?
323
  $counter_enabled = ( ! $args['is_follow'] // Disable counters on Follow Kits
324
+ && in_array( $active_service, array( 'pinterest', 'reddit', 'tumblr' ) )
325
  && isset( $options['special_' . $active_service . '_options'] )
326
  && isset( $options['special_' . $active_service . '_options']['show_count'] )
327
  && $options['special_' . $active_service . '_options']['show_count'] == '1'
addtoany.admin.php CHANGED
@@ -382,7 +382,7 @@ function A2A_SHARE_SAVE_options_page() {
382
  $active_services[] = $service;
383
 
384
  // AddToAny counter enabled?
385
- if ( in_array( $service, array( 'facebook', 'pinterest', 'reddit' ) ) ) {
386
  $new_options['special_' . $service . '_options'] = array(
387
  'show_count' => ( ( isset( $_POST['addtoany_' . $service . '_show_count'] ) && $_POST['addtoany_' . $service . '_show_count'] == '1') ? '1' : '-1' )
388
  );
@@ -492,7 +492,7 @@ function A2A_SHARE_SAVE_options_page() {
492
  if ( ! isset( $site['icon'] ) )
493
  $site['icon'] = 'default';
494
 
495
- $special_service = ( in_array( $service_safe_name, array( 'facebook', 'pinterest', 'reddit' ) ) )
496
  ? ' class="addtoany_special_service"' : '';
497
  ?>
498
  <li data-addtoany-icon-name="<?php echo esc_attr( $site['icon'] ); ?>"<?php echo $special_service; ?> id="a2a_wp_<?php echo esc_attr( $service_safe_name ); ?>" title="<?php echo esc_attr( $site['name'] ); ?>">
@@ -985,7 +985,7 @@ function A2A_SHARE_SAVE_admin_head() {
985
  jQuery('#addtoany_admin_form').append('<input class="addtoany_hidden_options" name="addtoany_' + service_name + '_verb" type="hidden" value="' + fb_verb_value + '"/>');
986
  }
987
  // AddToAny counters
988
- } else if ( jQuery.inArray( service_name, ['facebook', 'pinterest', 'reddit'] ) > -1 ) {
989
  show_count_value = (jQuery('#' + services_array[i] + '_show_count').is(':checked')) ? '1' : '-1' ;
990
  jQuery('#addtoany_admin_form').append('<input class="addtoany_hidden_options" name="addtoany_' + service_name + '_show_count" type="hidden" value="' + show_count_value + '"/>');
991
  }
@@ -1105,7 +1105,7 @@ function A2A_SHARE_SAVE_admin_head() {
1105
  $active_services_quoted .= ',';
1106
 
1107
  // AddToAny counter enabled?
1108
- if ( in_array( $service, array( 'facebook', 'pinterest', 'reddit' ) ) ) {
1109
  if ( isset( $_POST['addtoany_' . $service . '_show_count'] ) && $_POST['addtoany_' . $service . '_show_count'] == '1'
1110
  || ! isset( $_POST['addtoany_' . $service . '_show_count'] )
1111
  && isset( $options['special_' . $service . '_options'] )
382
  $active_services[] = $service;
383
 
384
  // AddToAny counter enabled?
385
+ if ( in_array( $service, array( 'pinterest', 'reddit', 'tumblr' ) ) ) {
386
  $new_options['special_' . $service . '_options'] = array(
387
  'show_count' => ( ( isset( $_POST['addtoany_' . $service . '_show_count'] ) && $_POST['addtoany_' . $service . '_show_count'] == '1') ? '1' : '-1' )
388
  );
492
  if ( ! isset( $site['icon'] ) )
493
  $site['icon'] = 'default';
494
 
495
+ $special_service = ( in_array( $service_safe_name, array( 'pinterest', 'reddit', 'tumblr', ) ) )
496
  ? ' class="addtoany_special_service"' : '';
497
  ?>
498
  <li data-addtoany-icon-name="<?php echo esc_attr( $site['icon'] ); ?>"<?php echo $special_service; ?> id="a2a_wp_<?php echo esc_attr( $service_safe_name ); ?>" title="<?php echo esc_attr( $site['name'] ); ?>">
985
  jQuery('#addtoany_admin_form').append('<input class="addtoany_hidden_options" name="addtoany_' + service_name + '_verb" type="hidden" value="' + fb_verb_value + '"/>');
986
  }
987
  // AddToAny counters
988
+ } else if ( jQuery.inArray( service_name, ['pinterest', 'reddit', 'tumblr'] ) > -1 ) {
989
  show_count_value = (jQuery('#' + services_array[i] + '_show_count').is(':checked')) ? '1' : '-1' ;
990
  jQuery('#addtoany_admin_form').append('<input class="addtoany_hidden_options" name="addtoany_' + service_name + '_show_count" type="hidden" value="' + show_count_value + '"/>');
991
  }
1105
  $active_services_quoted .= ',';
1106
 
1107
  // AddToAny counter enabled?
1108
+ if ( in_array( $service, array( 'pinterest', 'reddit', 'tumblr', ) ) ) {
1109
  if ( isset( $_POST['addtoany_' . $service . '_show_count'] ) && $_POST['addtoany_' . $service . '_show_count'] == '1'
1110
  || ! isset( $_POST['addtoany_' . $service . '_show_count'] )
1111
  && isset( $options['special_' . $service . '_options'] )
addtoany.min.css CHANGED
@@ -1 +1 @@
1
- .addtoany_content{clear:both;margin:16px auto}.addtoany_header{margin:0 0 16px}.addtoany_list{display:inline;line-height:16px}.addtoany_list a,.widget .addtoany_list a{border:0;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle}.addtoany_list a img{border:0;display:inline-block;opacity:1;overflow:hidden;vertical-align:baseline}.addtoany_list a span{display:inline-block;float:none}.addtoany_list.a2a_kit_size_32 a{font-size:32px}.addtoany_list.a2a_kit_size_32 a:not(.addtoany_special_service)>span{height:32px;line-height:32px;width:32px}.addtoany_list a:not(.addtoany_special_service)>span{border-radius:4px;display:inline-block;opacity:1}.addtoany_list a .a2a_count{position:relative;vertical-align:top}.addtoany_list a:hover,.widget .addtoany_list a:hover{border:0;box-shadow:none}.addtoany_list a:hover img,.addtoany_list a:hover span{opacity:.7}.addtoany_list a.addtoany_special_service:hover img,.addtoany_list a.addtoany_special_service:hover span{opacity:1}.addtoany_special_service{display:inline-block;vertical-align:middle}.addtoany_special_service a,.addtoany_special_service div,.addtoany_special_service div.fb_iframe_widget,.addtoany_special_service iframe,.addtoany_special_service span{margin:0;vertical-align:baseline!important}.addtoany_special_service iframe{display:inline;max-width:none}a.addtoany_share.addtoany_no_icon span.a2a_img_text{display:none}a.addtoany_share img{border:0;width:auto;height:auto}
1
+ .addtoany_content{clear:both;margin:16px auto}.addtoany_header{margin:0 0 16px}.addtoany_list{display:inline;line-height:16px}.addtoany_list a,.widget .addtoany_list a{border:0;box-shadow:none;display:inline-block;font-size:16px;padding:0 4px;vertical-align:middle}.addtoany_list a img{border:0;display:inline-block;opacity:1;overflow:hidden;vertical-align:baseline}.addtoany_list a span{display:inline-block;float:none}.addtoany_list.a2a_kit_size_32 a{font-size:32px}.addtoany_list.a2a_kit_size_32 a:not(.addtoany_special_service)>span{height:32px;line-height:32px;width:32px}.addtoany_list a:not(.addtoany_special_service)>span{border-radius:4px;display:inline-block;opacity:1}.addtoany_list a .a2a_count{position:relative;vertical-align:top}.site .a2a_kit.addtoany_list a:focus,.addtoany_list a:hover,.widget .addtoany_list a:hover{background:none;border:0;box-shadow:none}.addtoany_list a:hover img,.addtoany_list a:hover span{opacity:.7}.addtoany_list a.addtoany_special_service:hover img,.addtoany_list a.addtoany_special_service:hover span{opacity:1}.addtoany_special_service{display:inline-block;vertical-align:middle}.addtoany_special_service a,.addtoany_special_service div,.addtoany_special_service div.fb_iframe_widget,.addtoany_special_service iframe,.addtoany_special_service span{margin:0;vertical-align:baseline!important}.addtoany_special_service iframe{display:inline;max-width:none}a.addtoany_share.addtoany_no_icon span.a2a_img_text{display:none}a.addtoany_share img{border:0;width:auto;height:auto}
addtoany.services.php CHANGED
@@ -67,11 +67,6 @@ $A2A_SHARE_SAVE_services = array(
67
  "icon" => "bitty",
68
  "color" => "999",
69
  ),
70
- "blinklist" => array(
71
- "name" => "Blinklist",
72
- "icon" => "blinklist",
73
- "color" => "3D3C3B",
74
- ),
75
  "blogger" => array(
76
  "name" => "Blogger",
77
  "icon" => "blogger",
@@ -157,11 +152,6 @@ $A2A_SHARE_SAVE_services = array(
157
  "icon" => "evernote",
158
  "color" => "00A82D",
159
  ),
160
- "facebook_messenger" => array(
161
- "name" => "Facebook Messenger",
162
- "icon" => "facebook_messenger",
163
- "color" => "0084FF",
164
- ),
165
  "fark" => array(
166
  "name" => "Fark",
167
  "icon" => "fark",
@@ -257,6 +247,11 @@ $A2A_SHARE_SAVE_services = array(
257
  "icon" => "meneame",
258
  "color" => "FF7D12",
259
  ),
 
 
 
 
 
260
  "mewe" => array(
261
  "name" => "MeWe",
262
  "icon" => "mewe",
@@ -488,103 +483,103 @@ $A2A_SHARE_SAVE_services = array(
488
  $A2A_FOLLOW_services = array(
489
 
490
  'facebook' => array(
491
- 'name' => 'Facebook',
492
- 'href' => 'https://www.facebook.com/${id}',
493
  'icon' => 'facebook',
494
  'color' => '3B5998',
495
  ),
496
  'twitter' => array(
497
- 'name' => 'Twitter',
498
- 'href' => 'https://twitter.com/${id}',
499
  'icon' => 'twitter',
500
  'color' => '55ACEE',
501
  ),
502
  'instagram' => array(
503
- 'name' => 'Instagram',
504
- 'href' => 'https://www.instagram.com/${id}',
505
  'icon' => 'instagram',
506
  'color' => 'E4405F',
507
  ),
508
  'pinterest' => array(
509
- 'name' => 'Pinterest',
510
- 'href' => 'https://www.pinterest.com/${id}',
511
  'icon' => 'pinterest',
512
  'color' => 'BD081C',
513
  ),
514
  'behance' => array(
515
- 'name' => 'Behance',
516
- 'href' => 'https://www.behance.net/${id}',
517
  'icon' => 'behance',
518
  'color' => '007EFF',
519
  ),
520
  'flickr' => array(
521
- 'name' => 'Flickr',
522
- 'href' => 'https://www.flickr.com/photos/${id}',
523
  'icon' => 'flickr',
524
  'color' => 'FF0084',
525
  ),
526
  'foursquare' => array(
527
- 'name' => 'Foursquare',
528
- 'href' => 'https://foursquare.com/${id}',
529
  'icon' => 'foursquare',
530
  'color' => 'F94877',
531
  ),
532
  'github' => array(
533
- 'name' => 'GitHub',
534
- 'href' => 'https://github.com/${id}',
535
  'icon' => 'github',
536
  'color' => '2A2A2A',
537
  ),
538
  'linkedin' => array(
539
- 'name' => 'LinkedIn',
540
- 'href' => 'https://www.linkedin.com/in/${id}',
541
  'icon' => 'linkedin',
542
  'color' => '007BB5',
543
  ),
544
  'linkedin_company' => array(
545
- 'name' => 'LinkedIn Company',
546
- 'href' => 'https://www.linkedin.com/company/${id}',
547
  'icon' => 'linkedin',
548
  'color' => '007BB5',
549
  ),
550
  'medium' => array(
551
- 'name' => 'Medium',
552
- 'href' => 'https://medium.com/@${id}',
553
  'icon' => 'medium',
554
  'color' => '2A2A2A',
555
  ),
556
  'snapchat' => array(
557
- 'name' => 'Snapchat',
558
- 'href' => 'https://www.snapchat.com/add/${id}',
559
  'icon' => 'snapchat',
560
  'color' => '2A2A2A',
561
  ),
562
  'tumblr' => array(
563
- 'name' => 'Tumblr',
564
- 'href' => 'http://${id}.tumblr.com',
565
  'icon' => 'tumblr',
566
  'color' => '35465C',
567
  ),
568
  'vimeo' => array(
569
- 'name' => 'Vimeo',
570
- 'href' => 'https://vimeo.com/${id}',
571
  'icon' => 'vimeo',
572
  'color' => '1AB7EA',
573
  ),
574
  'youtube' => array(
575
- 'name' => 'YouTube',
576
- 'href' => 'https://www.youtube.com/user/${id}',
577
  'icon' => 'youtube',
578
  'color' => 'FF0000',
579
  ),
580
  'youtube_channel' => array(
581
- 'name' => 'YouTube Channel',
582
- 'href' => 'https://www.youtube.com/channel/${id}',
583
  'icon' => 'youtube',
584
  'color' => 'FF0000',
585
  ),
586
  'feed' => array(
587
- 'name' => 'RSS Feed',
588
  'href' => 'http://www.example.com/feed/',
589
  'icon' => 'feed',
590
  'color' => 'e3702d',
67
  "icon" => "bitty",
68
  "color" => "999",
69
  ),
 
 
 
 
 
70
  "blogger" => array(
71
  "name" => "Blogger",
72
  "icon" => "blogger",
152
  "icon" => "evernote",
153
  "color" => "00A82D",
154
  ),
 
 
 
 
 
155
  "fark" => array(
156
  "name" => "Fark",
157
  "icon" => "fark",
247
  "icon" => "meneame",
248
  "color" => "FF7D12",
249
  ),
250
+ "facebook_messenger" => array(
251
+ "name" => "Messenger",
252
+ "icon" => "facebook_messenger",
253
+ "color" => "0084FF",
254
+ ),
255
  "mewe" => array(
256
  "name" => "MeWe",
257
  "icon" => "mewe",
483
  $A2A_FOLLOW_services = array(
484
 
485
  'facebook' => array(
486
+ 'name' => 'Facebook',
487
+ 'href' => 'https://www.facebook.com/${id}',
488
  'icon' => 'facebook',
489
  'color' => '3B5998',
490
  ),
491
  'twitter' => array(
492
+ 'name' => 'Twitter',
493
+ 'href' => 'https://twitter.com/${id}',
494
  'icon' => 'twitter',
495
  'color' => '55ACEE',
496
  ),
497
  'instagram' => array(
498
+ 'name' => 'Instagram',
499
+ 'href' => 'https://www.instagram.com/${id}',
500
  'icon' => 'instagram',
501
  'color' => 'E4405F',
502
  ),
503
  'pinterest' => array(
504
+ 'name' => 'Pinterest',
505
+ 'href' => 'https://www.pinterest.com/${id}',
506
  'icon' => 'pinterest',
507
  'color' => 'BD081C',
508
  ),
509
  'behance' => array(
510
+ 'name' => 'Behance',
511
+ 'href' => 'https://www.behance.net/${id}',
512
  'icon' => 'behance',
513
  'color' => '007EFF',
514
  ),
515
  'flickr' => array(
516
+ 'name' => 'Flickr',
517
+ 'href' => 'https://www.flickr.com/photos/${id}',
518
  'icon' => 'flickr',
519
  'color' => 'FF0084',
520
  ),
521
  'foursquare' => array(
522
+ 'name' => 'Foursquare',
523
+ 'href' => 'https://foursquare.com/${id}',
524
  'icon' => 'foursquare',
525
  'color' => 'F94877',
526
  ),
527
  'github' => array(
528
+ 'name' => 'GitHub',
529
+ 'href' => 'https://github.com/${id}',
530
  'icon' => 'github',
531
  'color' => '2A2A2A',
532
  ),
533
  'linkedin' => array(
534
+ 'name' => 'LinkedIn',
535
+ 'href' => 'https://www.linkedin.com/in/${id}',
536
  'icon' => 'linkedin',
537
  'color' => '007BB5',
538
  ),
539
  'linkedin_company' => array(
540
+ 'name' => 'LinkedIn Company',
541
+ 'href' => 'https://www.linkedin.com/company/${id}',
542
  'icon' => 'linkedin',
543
  'color' => '007BB5',
544
  ),
545
  'medium' => array(
546
+ 'name' => 'Medium',
547
+ 'href' => 'https://medium.com/@${id}',
548
  'icon' => 'medium',
549
  'color' => '2A2A2A',
550
  ),
551
  'snapchat' => array(
552
+ 'name' => 'Snapchat',
553
+ 'href' => 'https://www.snapchat.com/add/${id}',
554
  'icon' => 'snapchat',
555
  'color' => '2A2A2A',
556
  ),
557
  'tumblr' => array(
558
+ 'name' => 'Tumblr',
559
+ 'href' => 'http://${id}.tumblr.com',
560
  'icon' => 'tumblr',
561
  'color' => '35465C',
562
  ),
563
  'vimeo' => array(
564
+ 'name' => 'Vimeo',
565
+ 'href' => 'https://vimeo.com/${id}',
566
  'icon' => 'vimeo',
567
  'color' => '1AB7EA',
568
  ),
569
  'youtube' => array(
570
+ 'name' => 'YouTube',
571
+ 'href' => 'https://www.youtube.com/user/${id}',
572
  'icon' => 'youtube',
573
  'color' => 'FF0000',
574
  ),
575
  'youtube_channel' => array(
576
+ 'name' => 'YouTube Channel',
577
+ 'href' => 'https://www.youtube.com/channel/${id}',
578
  'icon' => 'youtube',
579
  'color' => 'FF0000',
580
  ),
581
  'feed' => array(
582
+ 'name' => 'RSS Feed',
583
  'href' => 'http://www.example.com/feed/',
584
  'icon' => 'feed',
585
  'color' => 'e3702d',
addtoany.widgets.php CHANGED
@@ -39,7 +39,7 @@ class A2A_SHARE_SAVE_Widget extends WP_Widget {
39
  * @param array $args
40
  * @param array $instance
41
  */
42
- public function widget( $args = array(), $instance ) {
43
  $defaults = array(
44
  'before_widget' => '',
45
  'after_widget' => '',
@@ -125,7 +125,7 @@ class A2A_Follow_Widget extends WP_Widget {
125
  * @param array $args
126
  * @param array $instance
127
  */
128
- public function widget( $args = array(), $instance ) {
129
  $defaults = array(
130
  'before_widget' => '',
131
  'after_widget' => '',
39
  * @param array $args
40
  * @param array $instance
41
  */
42
+ public function widget( $args, $instance ) {
43
  $defaults = array(
44
  'before_widget' => '',
45
  'after_widget' => '',
125
  * @param array $args
126
  * @param array $instance
127
  */
128
+ public function widget( $args, $instance ) {
129
  $defaults = array(
130
  'before_widget' => '',
131
  'after_widget' => '',
icons/blinklist.svg DELETED
@@ -1 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 32 32"><g fill="#FFF"><path d="M3 10.35v11.3l8.977-5.418"/><path d="M17.55 27.454c-4.397 0-8.314-2.39-10.205-6.36l1.675-1.04a9.49 9.49 0 0 0 8.53 5.388c5.204 0 9.438-4.235 9.438-9.44 0-5.208-4.233-9.443-9.44-9.443a9.424 9.424 0 0 0-8.7 5.762l-1.733-1.057c1.798-4.25 5.82-6.72 10.434-6.72 6.31 0 11.45 5.138 11.45 11.45 0 6.318-5.136 11.458-11.45 11.458z"/><path d="M11.425 18.623a6.708 6.708 0 0 0 6.18 4.09 6.713 6.713 0 0 0 6.715-6.712c0-3.71-3.005-6.71-6.714-6.71a6.71 6.71 0 0 0-6.295 4.38l3.96 2.565-3.84 2.39z"/></g></svg>