AddToAny Share Buttons - Version 1.2.7

Version Description

  • Fix backwards compatibility with WordPress 2.8
    • Checkbox option to disable sharing buttons on each post and page
  • Add Baidu
  • Add Mendeley
  • Add Springpad
  • Update VK (Vkontakte)
Download this release

Release Info

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

Code changes from version 1.2.6 to 1.2.7

README.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: micropat
3
  Tags: sharing, share, sharethis, bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, sidebar, widget, email, e-mail, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook like, like, myspace, twitter, tweet, +1, plus 1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, messenger, stumbleupon, technorati, lockerz, addthis, sexybookmarks, sociable, sharedaddy, shareaholic, icon, icons, vector, SVG, wpmu, addtoany
4
  Requires at least: 2.8
5
  Tested up to: 3.7
6
- Stable tag: 1.2.6
7
 
8
  Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
9
 
@@ -231,6 +231,14 @@ Upload the plugin directory (including all files and directories within) to the
231
 
232
  == Changelog ==
233
 
 
 
 
 
 
 
 
 
234
  = 1.2.6 =
235
  * Harden option to disable sharing buttons on each post and page
236
  * Extend option to custom post types
3
  Tags: sharing, share, sharethis, bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, sidebar, widget, email, e-mail, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook like, like, myspace, twitter, tweet, +1, plus 1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, messenger, stumbleupon, technorati, lockerz, addthis, sexybookmarks, sociable, sharedaddy, shareaholic, icon, icons, vector, SVG, wpmu, addtoany
4
  Requires at least: 2.8
5
  Tested up to: 3.7
6
+ Stable tag: 1.2.7
7
 
8
  Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
9
 
231
 
232
  == Changelog ==
233
 
234
+ = 1.2.7 =
235
+ * Fix backwards compatibility with WordPress 2.8
236
+ * Checkbox option to disable sharing buttons on each post and page
237
+ * Add Baidu
238
+ * Add Mendeley
239
+ * Add Springpad
240
+ * Update VK (Vkontakte)
241
+
242
  = 1.2.6 =
243
  * Harden option to disable sharing buttons on each post and page
244
  * Extend option to custom post types
add-to-any.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Share Buttons by AddToAny
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: 1.2.6
7
  Author: micropat
8
  Author URI: http://www.addtoany.com/
9
  */
@@ -755,7 +755,9 @@ function A2A_SHARE_SAVE_unschedule_cache() {
755
 
756
  // Post Options
757
  function A2A_SHARE_SAVE_add_meta_box() {
758
- $post_types = get_post_types( array( 'public' => true ) );
 
 
759
  $title = apply_filters( 'A2A_SHARE_SAVE_meta_box_title', __( 'AddToAny', 'add-to-any' ) );
760
  foreach( $post_types as $post_type ) {
761
  add_meta_box( 'A2A_SHARE_SAVE_meta', $title, 'A2A_SHARE_SAVE_meta_box_content', $post_type, 'advanced', 'high' );
3
  Plugin Name: Share Buttons by AddToAny
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: 1.2.7
7
  Author: micropat
8
  Author URI: http://www.addtoany.com/
9
  */
755
 
756
  // Post Options
757
  function A2A_SHARE_SAVE_add_meta_box() {
758
+ // get_post_types() only included in WP 2.9/3.0
759
+ $post_types = ( function_exists( 'get_post_types' ) ) ? get_post_types( array( 'public' => true ) ) : array( 'post', 'page' ) ;
760
+
761
  $title = apply_filters( 'A2A_SHARE_SAVE_meta_box_title', __( 'AddToAny', 'add-to-any' ) );
762
  foreach( $post_types as $post_type ) {
763
  add_meta_box( 'A2A_SHARE_SAVE_meta', $title, 'A2A_SHARE_SAVE_meta_box_content', $post_type, 'advanced', 'high' );
icons/baidu.png ADDED
Binary file
icons/mendeley.png ADDED
Binary file
icons/springpad.png ADDED
Binary file
icons/vk.png CHANGED
Binary file
services.php CHANGED
@@ -58,6 +58,10 @@ $A2A_SHARE_SAVE_services = Array(
58
  "name" => "Arto",
59
  "icon" => "arto",
60
  ),
 
 
 
 
61
  "balatarin" => Array(
62
  "name" => "Balatarin",
63
  "icon" => "balatarin",
@@ -236,6 +240,10 @@ $A2A_SHARE_SAVE_services = Array(
236
  "name" => "Mail.Ru",
237
  "icon" => "mail_ru",
238
  ),
 
 
 
 
239
  "meneame" => Array(
240
  "name" => "Meneame",
241
  "icon" => "meneame",
@@ -345,6 +353,10 @@ $A2A_SHARE_SAVE_services = Array(
345
  "name" => "Slashdot",
346
  "icon" => "slashdot",
347
  ),
 
 
 
 
348
  "startaid" => Array(
349
  "name" => "StartAid",
350
  "icon" => "startaid",
@@ -377,14 +389,14 @@ $A2A_SHARE_SAVE_services = Array(
377
  "name" => "TypePad Post",
378
  "icon" => "typepad",
379
  ),
 
 
 
 
380
  "viadeo" => Array(
381
  "name" => "Viadeo",
382
  "icon" => "viadeo",
383
  ),
384
- "vk" => Array(
385
- "name" => "Vkontakte",
386
- "icon" => "vk",
387
- ),
388
  "webnews" => Array(
389
  "name" => "Webnews",
390
  "icon" => "webnews",
58
  "name" => "Arto",
59
  "icon" => "arto",
60
  ),
61
+ "baidu" => Array(
62
+ "name" => "Baidu",
63
+ "icon" => "baidu",
64
+ ),
65
  "balatarin" => Array(
66
  "name" => "Balatarin",
67
  "icon" => "balatarin",
240
  "name" => "Mail.Ru",
241
  "icon" => "mail_ru",
242
  ),
243
+ "mendeley" => Array(
244
+ "name" => "Mendeley",
245
+ "icon" => "mendeley",
246
+ ),
247
  "meneame" => Array(
248
  "name" => "Meneame",
249
  "icon" => "meneame",
353
  "name" => "Slashdot",
354
  "icon" => "slashdot",
355
  ),
356
+ "springpad" => Array(
357
+ "name" => "Springpad",
358
+ "icon" => "springpad",
359
+ ),
360
  "startaid" => Array(
361
  "name" => "StartAid",
362
  "icon" => "startaid",
389
  "name" => "TypePad Post",
390
  "icon" => "typepad",
391
  ),
392
+ "vk" => Array(
393
+ "name" => "VK",
394
+ "icon" => "vk",
395
+ ),
396
  "viadeo" => Array(
397
  "name" => "Viadeo",
398
  "icon" => "viadeo",
399
  ),
 
 
 
 
400
  "webnews" => Array(
401
  "name" => "Webnews",
402
  "icon" => "webnews",