AddToAny Share Buttons - Version 0.9.9.4.4

Version Description

Download this release

Release Info

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

Code changes from version 0.9.9.4.3 to 0.9.9.4.4

Files changed (3) hide show
  1. README.txt +7 -2
  2. add-to-any.php +34 -15
  3. screenshot-1.png +0 -0
README.txt CHANGED
@@ -4,13 +4,13 @@ Donate link: http://www.addtoany.com/contact/
4
  Tags: bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, sharing, share, sharethis, saving, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, e-mail, email, seo, button, delicious, google, digg, reddit, facebook, myspace, twitter, stumbleupon, technorati, wpmu, addtoany, add, any
5
  Requires at least: 2.0
6
  Tested up to: 2.9
7
- Stable tag: 0.9.9.4.2
8
 
9
  Help readers share, bookmark, and email your posts and pages using any service, such as Facebook, Twitter, Digg, Delicious and over 100 more.
10
 
11
  == Description ==
12
 
13
- Help readers **share**, **save**, **bookmark**, and **email** your posts and pages using **any service**, such as Facebook, Twitter, Digg, Delicious, and over 100 more social bookmarking and sharing sites. The button comes with AddToAny's customizable **Smart Menu**, which **places the services visitors use at the top of the menu**, based on each visitor's browsing history.
14
 
15
  <a href="http://www.addtoany.com/" title="Sharing button widget" target="_blank">Share Button</a> (demo)
16
 
@@ -122,6 +122,11 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
122
 
123
  == Changelog ==
124
 
 
 
 
 
 
125
  = .9.9.4.3 =
126
  * Automatic support for over 50 languages
127
  * The drop-down menu automatically detects the visitor's set language and localizes accordingly
4
  Tags: bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, sharing, share, sharethis, saving, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, e-mail, email, seo, button, delicious, google, digg, reddit, facebook, myspace, twitter, stumbleupon, technorati, wpmu, addtoany, add, any
5
  Requires at least: 2.0
6
  Tested up to: 2.9
7
+ Stable tag: 0.9.9.4.4
8
 
9
  Help readers share, bookmark, and email your posts and pages using any service, such as Facebook, Twitter, Digg, Delicious and over 100 more.
10
 
11
  == Description ==
12
 
13
+ Help readers **share**, **save**, **bookmark**, and **email** your posts and pages using **any service**, such as Facebook, Twitter, Digg, Delicious, and over 100 more social bookmarking and sharing sites. The button comes with AddToAny's customizable **Smart Menu**, which **places the services visitors use at the top of the menu**, based on each visitor's browsing and usage history.
14
 
15
  <a href="http://www.addtoany.com/" title="Sharing button widget" target="_blank">Share Button</a> (demo)
16
 
122
 
123
  == Changelog ==
124
 
125
+ = .9.9.4.4 =
126
+ * Backwards compatibile to version 2.0
127
+ * Fixes PHP is_tag error
128
+ * Fixes PHP wp_enqueue_script error in settings panel
129
+
130
  = .9.9.4.3 =
131
  * Automatic support for over 50 languages
132
  * The drop-down menu automatically detects the visitor's set language and localizes accordingly
add-to-any.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Add to Any: Share/Bookmark/Email Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Help readers share, bookmark, and email your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: .9.9.4.3
7
  Author: Add to Any
8
  Author URI: http://www.addtoany.com/contact/
9
  */
@@ -261,23 +261,35 @@ function A2A_SHARE_SAVE_to_bottom_of_content($content) {
261
  if (
262
  (
263
  // Tags
264
- strpos($content, '<!--sharesave-->')===false || // <!--sharesave--> tag
265
- strpos($content, '<!--nosharesave-->')!==false // <!--nosharesave--> tag
266
- ) &&
 
 
267
  (
268
  // Posts
269
- ( ! is_page() && get_option('A2A_SHARE_SAVE_display_in_posts')=='-1' ) || // All posts
270
- ( is_home() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) || // Front page posts
271
- ( is_category() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) || // Category posts (same as Front page option)
272
- ( is_tag() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) || // Tag Cloud posts (same as Front page option)
273
- ( is_date() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) || // Date-based archives posts (same as Front page option)
274
- ( is_author() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) || // Author posts (same as Front page option)
275
- ( is_search() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) || // Search results posts (same as Front page option)
276
- ( $is_feed && (get_option('A2A_SHARE_SAVE_display_in_feed')=='-1' ) || // Posts in feed
 
 
 
 
 
 
 
 
277
 
278
  // Pages
279
- ( is_page() && get_option('A2A_SHARE_SAVE_display_in_pages')=='-1' ) || // Individual pages
280
- ( (strpos($content, '<!--nosharesave-->')!==false) ) // <!--nosharesave-->
 
 
281
  )
282
  )
283
  )
@@ -421,6 +433,7 @@ function A2A_SHARE_SAVE_options_page() {
421
  <input type="hidden" name="A2A_SHARE_SAVE_submit_hidden" value="Y">
422
 
423
  <table class="form-table">
 
424
  <tr valign="top">
425
  <th scope="row"><?php _e("Standalone Services", "add-to-any"); ?></th>
426
  <td><fieldset>
@@ -452,6 +465,7 @@ function A2A_SHARE_SAVE_options_page() {
452
  </ul>
453
  </fieldset></td>
454
  </tr>
 
455
  <tr valign="top">
456
  <th scope="row"><?php _e("Button", "add-to-any"); ?></th>
457
  <td><fieldset>
@@ -770,6 +784,8 @@ function A2A_SHARE_SAVE_admin_head() {
770
  add_action('admin_head', 'A2A_SHARE_SAVE_admin_head');
771
 
772
  function A2A_SHARE_SAVE_add_menu_link() {
 
 
773
  if( current_user_can('manage_options') ) {
774
  add_options_page(
775
  'Add to Any: '. __("Share/Save", "add-to-any"). " " . __("Settings")
@@ -780,7 +796,10 @@ function A2A_SHARE_SAVE_add_menu_link() {
780
  );
781
 
782
  // Load jQuery UI Sortable
783
- wp_enqueue_script('jquery-ui-sortable');
 
 
 
784
  }
785
  }
786
 
3
  Plugin Name: Add to Any: Share/Bookmark/Email Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Help readers share, bookmark, and email your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: .9.9.4.4
7
  Author: Add to Any
8
  Author URI: http://www.addtoany.com/contact/
9
  */
261
  if (
262
  (
263
  // Tags
264
+ // <!--sharesave--> tag
265
+ strpos($content, '<!--sharesave-->')===false ||
266
+ // <!--nosharesave--> tag
267
+ strpos($content, '<!--nosharesave-->')!==false
268
+ ) &&
269
  (
270
  // Posts
271
+ // All posts
272
+ ( ! is_page() && get_option('A2A_SHARE_SAVE_display_in_posts')=='-1' ) ||
273
+ // Front page posts
274
+ ( is_home() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) ||
275
+ // Category posts (same as Front page option)
276
+ ( is_category() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) ||
277
+ // Tag Cloud posts (same as Front page option) - WP version 2.3+ only
278
+ ( function_exists('is_tag') && is_tag() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) ||
279
+ // Date-based archives posts (same as Front page option)
280
+ ( is_date() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) ||
281
+ // Author posts (same as Front page option)
282
+ ( is_author() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) ||
283
+ // Search results posts (same as Front page option)
284
+ ( is_search() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) ||
285
+ // Posts in feed
286
+ ( $is_feed && (get_option('A2A_SHARE_SAVE_display_in_feed')=='-1' ) ||
287
 
288
  // Pages
289
+ // Individual pages
290
+ ( is_page() && get_option('A2A_SHARE_SAVE_display_in_pages')=='-1' ) ||
291
+ // <!--nosharesave-->
292
+ ( (strpos($content, '<!--nosharesave-->')!==false) )
293
  )
294
  )
295
  )
433
  <input type="hidden" name="A2A_SHARE_SAVE_submit_hidden" value="Y">
434
 
435
  <table class="form-table">
436
+ <?php if ($wp_version >= "2.6") { /* Must be on WP 2.6+ */ ?>
437
  <tr valign="top">
438
  <th scope="row"><?php _e("Standalone Services", "add-to-any"); ?></th>
439
  <td><fieldset>
465
  </ul>
466
  </fieldset></td>
467
  </tr>
468
+ <?php } ?>
469
  <tr valign="top">
470
  <th scope="row"><?php _e("Button", "add-to-any"); ?></th>
471
  <td><fieldset>
784
  add_action('admin_head', 'A2A_SHARE_SAVE_admin_head');
785
 
786
  function A2A_SHARE_SAVE_add_menu_link() {
787
+ global $wp_version;
788
+
789
  if( current_user_can('manage_options') ) {
790
  add_options_page(
791
  'Add to Any: '. __("Share/Save", "add-to-any"). " " . __("Settings")
796
  );
797
 
798
  // Load jQuery UI Sortable
799
+ // Must be on WP 2.6+
800
+ if ($wp_version >= "2.6") {
801
+ wp_enqueue_script('jquery-ui-sortable');
802
+ }
803
  }
804
  }
805
 
screenshot-1.png CHANGED
Binary file