Version Description
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 0.9.5 |
Comparing to | |
See all releases |
Code changes from version 0.9.4 to 0.9.5
- README.txt +23 -4
- add-to-any.php +25 -2
README.txt
CHANGED
@@ -4,7 +4,7 @@ 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.6
|
7 |
-
Stable tag: 0.9.
|
8 |
|
9 |
Helps readers share, save, and bookmark your posts and pages using any service, such as Delicious, Digg, Facebook, MySpace, and all the rest.
|
10 |
|
@@ -36,6 +36,10 @@ See also, the <a href="/extend/plugins/add-to-any-subscribe/" title="WordPress R
|
|
36 |
|
37 |
Constantly... and it's done automatically, without having to upgrade the plugin!
|
38 |
|
|
|
|
|
|
|
|
|
39 |
= How can I force the button to appear in individual posts and pages? =
|
40 |
|
41 |
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-->`
|
@@ -44,11 +48,26 @@ If your button isn't already set up to appear (it is by default), type the follo
|
|
44 |
|
45 |
Type the following tag into the page or post that you do not want the button to appear in: `<!--nosharesave-->`
|
46 |
|
47 |
-
= Why do embedded objects (like Flash) disappear when
|
48 |
|
49 |
-
This is done to overcome browser limitations that prevent the drop-down menu from displaying on top of embedded objects. If you would like to disable this, uncheck the `Hide embedded objects (Flash, video, etc.)
|
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!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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.6
|
7 |
+
Stable tag: 0.9.5
|
8 |
|
9 |
Helps readers share, save, and bookmark your posts and pages using any service, such as Delicious, Digg, Facebook, MySpace, and all the rest.
|
10 |
|
36 |
|
37 |
Constantly... and it's done automatically, without having to upgrade the plugin!
|
38 |
|
39 |
+
= Where can I choose which button to display and other options? =
|
40 |
+
|
41 |
+
Go to `Settings` > `Share/Save Buttons`.
|
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-->`
|
48 |
|
49 |
Type the following tag into the page or post that you do not want the button to appear in: `<!--nosharesave-->`
|
50 |
|
51 |
+
= Why do embedded objects (like Flash) disappear when the menu is displayed? =
|
52 |
|
53 |
+
This is done to overcome browser limitations that prevent the drop-down menu from displaying on top of intersecting embedded objects. If you would like to disable this, uncheck the `Hide embedded objects (Flash, video, etc.) that intersect with the menu when displayed` option on the plugin's settings page.
|
54 |
|
55 |
== Screenshots ==
|
56 |
|
57 |
1. This is the Add to Any Share/Save button!
|
58 |
+
2. This is the drop-down menu that appears instantly when visitors move the mouse over the Share/Save button!
|
59 |
+
|
60 |
+
== Changelog ==
|
61 |
+
|
62 |
+
.9.5:
|
63 |
+
|
64 |
+
* New: Custom buttons (specify a URL)
|
65 |
+
* Fix to permit XHTML Strict validation
|
66 |
+
|
67 |
+
.9.4:
|
68 |
+
|
69 |
+
* New Menu Styler lets you customize the color of the menus
|
70 |
+
* New Menu Option: "Only show the menu when the user clicks the Share/Save button"
|
71 |
+
* New: Set custom JavaScript variables for further customization
|
72 |
+
* Better support for CSS styling: .addtoany_share_save
|
73 |
+
* PHP4 legacy and compatibility fixes
|
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/
|
5 |
Description: Helps readers share, save, and bookmark your posts and pages using any service. [<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 |
*/
|
@@ -43,6 +43,7 @@ if (!function_exists('A2A_SHARE_SAVE_html_entity_decode_utf8')) {
|
|
43 |
}
|
44 |
}
|
45 |
|
|
|
46 |
function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
47 |
|
48 |
if($output_buffering)ob_start();
|
@@ -58,11 +59,15 @@ function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
|
58 |
$button_fname = 'share_save_120_16.gif';
|
59 |
$button_width = '120';
|
60 |
$button_height = "16";
|
|
|
|
|
|
|
61 |
} else {
|
62 |
$button_attrs = explode( '|', get_option('A2A_SHARE_SAVE_button') );
|
63 |
$button_fname = $button_attrs[0];
|
64 |
$button_width = $button_attrs[1];
|
65 |
$button_height = $button_attrs[2];
|
|
|
66 |
}
|
67 |
if( $button_attrs[0] == 'favicon.png' ) {
|
68 |
$style_bg = 'background:url('.trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/'.$button_fname.') no-repeat scroll 0px 0px';
|
@@ -70,7 +75,7 @@ function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
|
70 |
$style = ' style="'.$style_bg.'padding:1px 5px 5px 22px"';
|
71 |
$button = 'Share/Save';
|
72 |
} else
|
73 |
-
$button = '<img src="'
|
74 |
?>
|
75 |
|
76 |
<a class=".addtoany_share_save" name="a2a_dd" <?php echo (get_option('A2A_SHARE_SAVE_onclick')=='1') ? 'onclick="a2a_show_dropdown(this);return false"' : 'onmouseover="a2a_show_dropdown(this)"'; ?> onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=<?php echo $sitename_enc; ?>&siteurl=<?php echo $siteurl_enc; ?>&linkname=<?php echo $linkname_enc; ?>&linkurl=<?php echo $linkurl_enc; ?>"<?php echo $style; ?>><?php echo $button; ?></a>
|
@@ -91,6 +96,7 @@ function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
|
91 |
}
|
92 |
}
|
93 |
|
|
|
94 |
function A2A_SHARE_SAVE_to_bottom_of_content($content) {
|
95 |
if (
|
96 |
( (strpos($content, '<!--sharesave-->')===false) ) && ( // <!--sharesave-->
|
@@ -109,6 +115,14 @@ function A2A_SHARE_SAVE_to_bottom_of_content($content) {
|
|
109 |
add_action('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content');
|
110 |
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
|
113 |
|
114 |
|
@@ -129,6 +143,7 @@ function A2A_SHARE_SAVE_options_page() {
|
|
129 |
update_option( 'A2A_SHARE_SAVE_show_title', ($_POST['A2A_SHARE_SAVE_show_title']=='1') ? '1':'-1' );
|
130 |
update_option( 'A2A_SHARE_SAVE_onclick', ($_POST['A2A_SHARE_SAVE_onclick']=='1') ? '1':'-1' );
|
131 |
update_option( 'A2A_SHARE_SAVE_button', $_POST['A2A_SHARE_SAVE_button'] );
|
|
|
132 |
update_option( 'A2A_SHARE_SAVE_additional_js_variables', trim($_POST['A2A_SHARE_SAVE_additional_js_variables']) );
|
133 |
|
134 |
?>
|
@@ -176,7 +191,15 @@ function A2A_SHARE_SAVE_options_page() {
|
|
176 |
style="margin:9px 0;vertical-align:middle">
|
177 |
<img src="<?php echo trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/share_save_256_24.gif'; ?>" width="256" height="24" border="0" style="padding:9px;vertical-align:middle"
|
178 |
onclick="this.parentNode.firstChild.checked=true"/>
|
|
|
|
|
|
|
|
|
|
|
179 |
</label>
|
|
|
|
|
|
|
180 |
</fieldset></td>
|
181 |
</tr>
|
182 |
<tr valign="top">
|
3 |
Plugin Name: Add to Any: Share/Save/Bookmark Button
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Helps readers share, save, and bookmark your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
+
Version: .9.5
|
7 |
Author: MicroPat
|
8 |
Author URI: http://www.addtoany.com/contact/
|
9 |
*/
|
43 |
}
|
44 |
}
|
45 |
|
46 |
+
|
47 |
function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
48 |
|
49 |
if($output_buffering)ob_start();
|
59 |
$button_fname = 'share_save_120_16.gif';
|
60 |
$button_width = '120';
|
61 |
$button_height = "16";
|
62 |
+
$button_src = trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/'.$button_fname;
|
63 |
+
} else if( get_option('A2A_SHARE_SAVE_button') == 'CUSTOM' ) {
|
64 |
+
$button_src = get_option('A2A_SHARE_SAVE_button_custom');
|
65 |
} else {
|
66 |
$button_attrs = explode( '|', get_option('A2A_SHARE_SAVE_button') );
|
67 |
$button_fname = $button_attrs[0];
|
68 |
$button_width = $button_attrs[1];
|
69 |
$button_height = $button_attrs[2];
|
70 |
+
$button_src = trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/'.$button_fname;
|
71 |
}
|
72 |
if( $button_attrs[0] == 'favicon.png' ) {
|
73 |
$style_bg = 'background:url('.trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/'.$button_fname.') no-repeat scroll 0px 0px';
|
75 |
$style = ' style="'.$style_bg.'padding:1px 5px 5px 22px"';
|
76 |
$button = 'Share/Save';
|
77 |
} else
|
78 |
+
$button = '<img src="'.$button_src.'" width="'.$button_width.'" height="'.$button_height.'" alt="Share/Save/Bookmark"/>';
|
79 |
?>
|
80 |
|
81 |
<a class=".addtoany_share_save" name="a2a_dd" <?php echo (get_option('A2A_SHARE_SAVE_onclick')=='1') ? 'onclick="a2a_show_dropdown(this);return false"' : 'onmouseover="a2a_show_dropdown(this)"'; ?> onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/share_save?sitename=<?php echo $sitename_enc; ?>&siteurl=<?php echo $siteurl_enc; ?>&linkname=<?php echo $linkname_enc; ?>&linkurl=<?php echo $linkurl_enc; ?>"<?php echo $style; ?>><?php echo $button; ?></a>
|
96 |
}
|
97 |
}
|
98 |
|
99 |
+
|
100 |
function A2A_SHARE_SAVE_to_bottom_of_content($content) {
|
101 |
if (
|
102 |
( (strpos($content, '<!--sharesave-->')===false) ) && ( // <!--sharesave-->
|
115 |
add_action('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content');
|
116 |
|
117 |
|
118 |
+
function A2A_SHARE_SAVE_button_css() {
|
119 |
+
?><style type="text/css">.addtoany_share_save img{border:0;}</style>
|
120 |
+
<?
|
121 |
+
}
|
122 |
+
|
123 |
+
add_action('wp_head', 'A2A_SHARE_SAVE_button_css');
|
124 |
+
|
125 |
+
|
126 |
|
127 |
|
128 |
|
143 |
update_option( 'A2A_SHARE_SAVE_show_title', ($_POST['A2A_SHARE_SAVE_show_title']=='1') ? '1':'-1' );
|
144 |
update_option( 'A2A_SHARE_SAVE_onclick', ($_POST['A2A_SHARE_SAVE_onclick']=='1') ? '1':'-1' );
|
145 |
update_option( 'A2A_SHARE_SAVE_button', $_POST['A2A_SHARE_SAVE_button'] );
|
146 |
+
update_option( 'A2A_SHARE_SAVE_button_custom', $_POST['A2A_SHARE_SAVE_button_custom'] );
|
147 |
update_option( 'A2A_SHARE_SAVE_additional_js_variables', trim($_POST['A2A_SHARE_SAVE_additional_js_variables']) );
|
148 |
|
149 |
?>
|
191 |
style="margin:9px 0;vertical-align:middle">
|
192 |
<img src="<?php echo trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/share_save_256_24.gif'; ?>" width="256" height="24" border="0" style="padding:9px;vertical-align:middle"
|
193 |
onclick="this.parentNode.firstChild.checked=true"/>
|
194 |
+
</label><br>
|
195 |
+
<label>
|
196 |
+
<input name="A2A_SHARE_SAVE_button" value="CUSTOM" type="radio"<?php if( get_option('A2A_SHARE_SAVE_button') == 'CUSTOM' ) echo ' checked="checked"'; ?>
|
197 |
+
style="margin:9px 0;vertical-align:middle">
|
198 |
+
<span style="margin:0 9px;vertical-align:middle">Image URL:</span>
|
199 |
</label>
|
200 |
+
<input name="A2A_SHARE_SAVE_button_custom" type="text" class="code" size="50" onclick="e=document.getElementsByName('A2A_SHARE_SAVE_button');e[e.length-1].checked=true" style="vertical-align:middle"
|
201 |
+
value="<?php echo get_option('A2A_SHARE_SAVE_button_custom'); ?>" />
|
202 |
+
|
203 |
</fieldset></td>
|
204 |
</tr>
|
205 |
<tr valign="top">
|