AddToAny Share Buttons - Version 0.9

Version Description

Download this release

Release Info

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

Code changes from version 0.8 to 0.9

Files changed (2) hide show
  1. README.txt +18 -10
  2. add-to-any.php +7 -5
README.txt CHANGED
@@ -1,16 +1,16 @@
1
- === Add to Any Bookmark Button ===
2
  Contributors: micropat
3
  Donate link: http://www.addtoany.com/contact/
4
- Tags: bookmarking, social bookmarking, bookmark, sharing, share, saving, save, Post, posts, page, pages, images, image, admin, statistics, links, plugin, widget, e-mail, email, button, delicious, Google, digg, reddit, facebook, myspace, addtoany, add, any
5
  Requires at least: 2.0
6
- Tested up to: 2.5
7
- Stable tag: 0.8
8
 
9
  Lets readers share, save, and bookmark your posts using any service.
10
 
11
  == Description ==
12
 
13
- Lets readers share, save, and bookmark your posts using any service, such as Delicious, Digg, Facebook, MySpace, and all the rest. The Bookmark button comes with a drop-down menu that appears on rollover.
14
 
15
  Within the menu, users are additionally given a link to bookmark in-browser (Internet Explorer, Firefox, Opera, Safari, etc.), with directions on how to bookmark if their browser does not support auto-bookmarking from links/shortcuts.
16
 
@@ -27,8 +27,8 @@ See also, the <a href="/extend/plugins/add-to-any-subscribe/">Subscribe button</
27
 
28
  == Installation ==
29
 
30
- 1. Upload 'add-to-any' to the '/wp-content/plugins/' directory
31
- 1. Activate the plugin through the 'Plugins' menu in WordPress
32
 
33
  == Frequently Asked Questions ==
34
 
@@ -38,9 +38,17 @@ Forever.
38
 
39
  = How often is the list of services updated? =
40
 
41
- Constantly.
 
 
 
 
 
 
 
 
42
 
43
  == Screenshots ==
44
 
45
- 1. This is the Add to Any Bookmark button!
46
- 2. This is the drop-down menu that appears instantly when visitors move the mouse over the Bookmark button! This screenshot shows Delicious as selected by a user.
1
+ === Add to Any Share/Save/Bookmark Button ===
2
  Contributors: micropat
3
  Donate link: http://www.addtoany.com/contact/
4
+ Tags: bookmarking, social, social bookmarking, bookmark, bookmarks, sharing, share, 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, addtoany, add, any
5
  Requires at least: 2.0
6
+ Tested up to: 2.5.1
7
+ Stable tag: 0.9
8
 
9
  Lets readers share, save, and bookmark your posts using any service.
10
 
11
  == Description ==
12
 
13
+ Lets readers share, save, and bookmark your posts using any service, such as Delicious, Digg, Facebook, MySpace, and all the rest. The button comes with a drop-down menu that appears on rollover.
14
 
15
  Within the menu, users are additionally given a link to bookmark in-browser (Internet Explorer, Firefox, Opera, Safari, etc.), with directions on how to bookmark if their browser does not support auto-bookmarking from links/shortcuts.
16
 
27
 
28
  == Installation ==
29
 
30
+ 1. Upload `add-to-any` to the `/wp-content/plugins/` directory
31
+ 1. Activate the plugin through the `Plugins` menu in WordPress
32
 
33
  == Frequently Asked Questions ==
34
 
38
 
39
  = How often is the list of services updated? =
40
 
41
+ Constantly... and it's done automatically, without having to upgrade the plugin!
42
+
43
+ = How can I force the button to appear in individual posts and pages? =
44
+
45
+ If your button isn't already set up to appear (it is by default), type the following tag into the page or post that you want the button to appear in: `<!--sharesave-->`
46
+
47
+ = How can I remove a button from individual posts and pages? =
48
+
49
+ Type the following tag into the page or post that you do not want the button to appear in: `<!--nosharesave-->`
50
 
51
  == Screenshots ==
52
 
53
+ 1. This is the Add to Any Share/Save button!
54
+ 2. This is the drop-down menu that appears instantly when visitors move the mouse over the Share/Save button! This screenshot shows Delicious as selected by a user.
add-to-any.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Add to Any: Share/Save/Bookmark Button
4
  Plugin URI: http://www.addtoany.com/buttons/
5
  Description: Lets readers share, save, and bookmark your posts using any service and browser. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: .8
7
  Author: MicroPat
8
  Author URI: http://www.addtoany.com/contact/
9
  */
@@ -69,9 +69,12 @@ function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
69
 
70
  function A2A_SHARE_SAVE_to_bottom_of_content($content) {
71
  if (
72
- ( !is_page() && get_option('A2A_SHARE_SAVE_display_in_posts')=='-1' ) || // All posts
73
- ( !is_page() && !is_single() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) || // Front page posts
74
- ( is_page() && get_option('A2A_SHARE_SAVE_display_in_pages')=='-1' ) // Pages
 
 
 
75
  )
76
  return $content;
77
 
@@ -80,7 +83,6 @@ function A2A_SHARE_SAVE_to_bottom_of_content($content) {
80
  }
81
 
82
  add_action('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content');
83
- add_action('the_content_rss', 'A2A_SHARE_SAVE_to_bottom_of_content');
84
 
85
 
86
 
3
  Plugin Name: Add to Any: Share/Save/Bookmark Button
4
  Plugin URI: http://www.addtoany.com/buttons/
5
  Description: Lets readers share, save, and bookmark your posts using any service and browser. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: .9
7
  Author: MicroPat
8
  Author URI: http://www.addtoany.com/contact/
9
  */
69
 
70
  function A2A_SHARE_SAVE_to_bottom_of_content($content) {
71
  if (
72
+ ( (strpos($content, '<!--sharesave-->')===false) ) && ( // <!--sharesave-->
73
+ ( !is_page() && get_option('A2A_SHARE_SAVE_display_in_posts')=='-1' ) || // All posts
74
+ ( !is_page() && !is_single() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) || // Front page posts
75
+ ( is_page() && get_option('A2A_SHARE_SAVE_display_in_pages')=='-1' ) || // Pages
76
+ ( (strpos($content, '<!--nosharesave-->')!==false ) ) // <!--nosharesave-->
77
+ )
78
  )
79
  return $content;
80
 
83
  }
84
 
85
  add_action('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content');
 
86
 
87
 
88