AddToAny Share Buttons - Version 1.6.11

Version Description

  • Update [addtoany] shortcode to accept specific share buttons
    • Specify AddToAny service codes in the buttons attribute like: [addtoany buttons="facebook,twitter,google_plus"]
  • Add SMS share button
  • Add Telegram share button
  • Add Google Classroom share button
  • Add GitHub follow button
  • Update Instagram URL
Download this release

Release Info

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

Code changes from version 1.6.10 to 1.6.11

README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: micropat, addtoany
3
  Tags: AddToAny, sharing, share, social, share button, share buttons, share links, social media, media, marketing, bookmark, bookmarks, save, post, posts, page, pages, images, image, admin, analytics, statistics, stats, links, plugin, shortcode, sidebar, widget, responsive, email, e-mail, print, seo, button, woocommerce, ecommerce, e-commerce, amazon, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, tweet button, google plus, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, instagram, behance, flickr, foursquare, vimeo, youtube, feed, rss, lockerz, addthis, sociable, share this, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpml, wpmu, Add to Any
4
  Requires at least: 2.8
5
  Tested up to: 4.4
6
- Stable tag: 1.6.10
7
 
8
  Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too.
9
 
@@ -293,10 +293,18 @@ Upload (or move) the `add-to-any` plugin directory into the `/wp-content/mu-plug
293
  3. Mini share menu that drops down when visitors use the universal share button
294
  4. Full universal share menu modal that includes all services
295
  5. Settings panel
296
- 6. Color chooser for your share menus
297
 
298
  == Changelog ==
299
 
 
 
 
 
 
 
 
 
 
300
  = 1.6.10 =
301
  * Enable simpler syntax when using multiple share message templates
302
  * Override box shadow on buttons caused by CSS such as the default Twenty Sixteen theme's
3
  Tags: AddToAny, sharing, share, social, share button, share buttons, share links, social media, media, marketing, bookmark, bookmarks, save, post, posts, page, pages, images, image, admin, analytics, statistics, stats, links, plugin, shortcode, sidebar, widget, responsive, email, e-mail, print, seo, button, woocommerce, ecommerce, e-commerce, amazon, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, tweet button, google plus, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, instagram, behance, flickr, foursquare, vimeo, youtube, feed, rss, lockerz, addthis, sociable, share this, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpml, wpmu, Add to Any
4
  Requires at least: 2.8
5
  Tested up to: 4.4
6
+ Stable tag: 1.6.11
7
 
8
  Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too.
9
 
293
  3. Mini share menu that drops down when visitors use the universal share button
294
  4. Full universal share menu modal that includes all services
295
  5. Settings panel
 
296
 
297
  == Changelog ==
298
 
299
+ = 1.6.11 =
300
+ * Update `[addtoany]` shortcode to accept specific share buttons
301
+ * Specify [AddToAny service codes](https://www.addtoany.com/services/) in the `buttons` attribute like: `[addtoany buttons="facebook,twitter,google_plus"]`
302
+ * Add SMS share button
303
+ * Add Telegram share button
304
+ * Add Google Classroom share button
305
+ * Add GitHub follow button
306
+ * Update Instagram URL
307
+
308
  = 1.6.10 =
309
  * Enable simpler syntax when using multiple share message templates
310
  * Override box shadow on buttons caused by CSS such as the default Twenty Sixteen theme's
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, Google+, Pinterest, WhatsApp and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: 1.6.10
7
  Author: AddToAny
8
  Author URI: https://www.addtoany.com/
9
  Text Domain: add-to-any
@@ -940,15 +940,19 @@ add_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 98 );
940
  // [addtoany url="http://example.com/page.html" title="Some Example Page"]
941
  function A2A_SHARE_SAVE_shortcode( $attributes ) {
942
  extract( shortcode_atts( array(
943
- 'url' => 'something',
944
- 'title' => 'something else',
 
945
  ), $attributes ) );
946
- $linkname = ( isset( $attributes['title'] ) ) ? $attributes['title'] : false;
947
- $linkurl = ( isset( $attributes['url'] ) ) ? $attributes['url'] : false;
948
- $output_later = TRUE;
 
 
 
949
 
950
  return '<div class="addtoany_shortcode">'
951
- . ADDTOANY_SHARE_SAVE_KIT( compact( 'linkname', 'linkurl', 'output_later' ) )
952
  . '</div>';
953
  }
954
 
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, Google+, Pinterest, WhatsApp and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: 1.6.11
7
  Author: AddToAny
8
  Author URI: https://www.addtoany.com/
9
  Text Domain: add-to-any
940
  // [addtoany url="http://example.com/page.html" title="Some Example Page"]
941
  function A2A_SHARE_SAVE_shortcode( $attributes ) {
942
  extract( shortcode_atts( array(
943
+ 'url' => 'something',
944
+ 'title' => 'something else',
945
+ 'buttons' => '',
946
  ), $attributes ) );
947
+
948
+ $linkname = isset( $attributes['title'] ) ? $attributes['title'] : false;
949
+ $linkurl = isset( $attributes['url'] ) ? $attributes['url'] : false;
950
+ $buttons = ! empty( $buttons ) ? explode ( ',', $buttons ) : array();
951
+
952
+ $output_later = true;
953
 
954
  return '<div class="addtoany_shortcode">'
955
+ . ADDTOANY_SHARE_SAVE_KIT( compact( 'linkname', 'linkurl', 'output_later', 'buttons' ) )
956
  . '</div>';
957
  }
958
 
addtoany.admin.php CHANGED
@@ -453,7 +453,7 @@ function A2A_SHARE_SAVE_options_page() {
453
  </li>
454
  <?php
455
  } ?>
456
- <li id="a2a_wp_facebook_like" class="addtoany_special_service addtoany_3p_button" title="Facebook Like button">
457
  <span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/facebook_like.png'; ?>" width="50" height="20" alt="Facebook Like" /></span>
458
  </li>
459
  <li id="a2a_wp_twitter_tweet" class="addtoany_special_service addtoany_3p_button" title="Twitter Tweet button">
453
  </li>
454
  <?php
455
  } ?>
456
+ <li style="clear:left" id="a2a_wp_facebook_like" class="addtoany_special_service addtoany_3p_button" title="Facebook Like button">
457
  <span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/facebook_like.png'; ?>" width="50" height="20" alt="Facebook Like" /></span>
458
  </li>
459
  <li id="a2a_wp_twitter_tweet" class="addtoany_special_service addtoany_3p_button" title="Twitter Tweet button">
addtoany.services.php CHANGED
@@ -162,6 +162,10 @@ $A2A_SHARE_SAVE_services = array(
162
  "name" => "Google Bookmarks",
163
  "icon" => "google",
164
  ),
 
 
 
 
165
  "google_gmail" => array(
166
  "name" => "Google Gmail",
167
  "icon" => "gmail",
@@ -306,6 +310,10 @@ $A2A_SHARE_SAVE_services = array(
306
  "name" => "Slashdot",
307
  "icon" => "slashdot",
308
  ),
 
 
 
 
309
  "stumpedia" => array(
310
  "name" => "Stumpedia",
311
  "icon" => "stumpedia",
@@ -318,6 +326,10 @@ $A2A_SHARE_SAVE_services = array(
318
  "name" => "Symbaloo Feeds",
319
  "icon" => "symbaloo",
320
  ),
 
 
 
 
321
  "tuenti" => array(
322
  "name" => "Tuenti",
323
  "icon" => "tuenti",
@@ -398,7 +410,7 @@ $A2A_FOLLOW_services = array(
398
  ),
399
  'instagram' => array(
400
  'name' => 'Instagram',
401
- 'href' => 'https://instagram.com/${id}',
402
  'icon' => 'instagram',
403
  ),
404
  'pinterest' => array(
@@ -421,6 +433,11 @@ $A2A_FOLLOW_services = array(
421
  'href' => 'https://foursquare.com/${id}',
422
  'icon' => 'foursquare',
423
  ),
 
 
 
 
 
424
  'google_plus' => array(
425
  'name' => 'Google+',
426
  'href' => 'https://plus.google.com/${id}',
162
  "name" => "Google Bookmarks",
163
  "icon" => "google",
164
  ),
165
+ "google_classroom" => array(
166
+ "name" => "Google Classroom",
167
+ "icon" => "google_classroom",
168
+ ),
169
  "google_gmail" => array(
170
  "name" => "Google Gmail",
171
  "icon" => "gmail",
310
  "name" => "Slashdot",
311
  "icon" => "slashdot",
312
  ),
313
+ "sms" => array(
314
+ "name" => "SMS",
315
+ "icon" => "sms",
316
+ ),
317
  "stumpedia" => array(
318
  "name" => "Stumpedia",
319
  "icon" => "stumpedia",
326
  "name" => "Symbaloo Feeds",
327
  "icon" => "symbaloo",
328
  ),
329
+ "telegram" => array(
330
+ "name" => "Telegram",
331
+ "icon" => "telegram",
332
+ ),
333
  "tuenti" => array(
334
  "name" => "Tuenti",
335
  "icon" => "tuenti",
410
  ),
411
  'instagram' => array(
412
  'name' => 'Instagram',
413
+ 'href' => 'https://www.instagram.com/${id}',
414
  'icon' => 'instagram',
415
  ),
416
  'pinterest' => array(
433
  'href' => 'https://foursquare.com/${id}',
434
  'icon' => 'foursquare',
435
  ),
436
+ 'github' => array(
437
+ 'name' => 'GitHub',
438
+ 'href' => 'https://github.com/${id}',
439
+ 'icon' => 'github',
440
+ ),
441
  'google_plus' => array(
442
  'name' => 'Google+',
443
  'href' => 'https://plus.google.com/${id}',
icons/github.png ADDED
Binary file
icons/google_classroom.png ADDED
Binary file
icons/sms.png ADDED
Binary file
icons/telegram.png ADDED
Binary file