Version Description
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 0.9.5.2 |
Comparing to | |
See all releases |
Code changes from version 0.9.5.1 to 0.9.5.2
- README.txt +6 -1
- add-to-any.php +9 -7
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.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 |
|
@@ -59,6 +59,11 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
|
|
59 |
|
60 |
== Changelog ==
|
61 |
|
|
|
|
|
|
|
|
|
|
|
62 |
.9.5.1:
|
63 |
|
64 |
* Fixed 1 line to support those without short_open_tag
|
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.2
|
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 |
|
59 |
|
60 |
== Changelog ==
|
61 |
|
62 |
+
.9.5.2:
|
63 |
+
|
64 |
+
* Fixed bug in Internet Explorer 6 that caused custom buttons to have a height and width of 0
|
65 |
+
* Removed the XHTML depreciated `name` attribute from the button's anchor
|
66 |
+
|
67 |
.9.5.1:
|
68 |
|
69 |
* Fixed 1 line to support those without short_open_tag
|
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.5.
|
7 |
Author: MicroPat
|
8 |
Author URI: http://www.addtoany.com/contact/
|
9 |
*/
|
@@ -57,16 +57,18 @@ function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
|
57 |
|
58 |
if( !get_option('A2A_SHARE_SAVE_button') ) {
|
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 =
|
69 |
-
$button_height =
|
70 |
$button_src = trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/'.$button_fname;
|
71 |
}
|
72 |
if( $button_attrs[0] == 'favicon.png' ) {
|
@@ -75,10 +77,10 @@ function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
|
75 |
$style = ' style="'.$style_bg.'padding:1px 5px 5px 22px"';
|
76 |
$button = 'Share/Save';
|
77 |
} else
|
78 |
-
$button = '<img src="'.$button_src.'"
|
79 |
?>
|
80 |
|
81 |
-
<a class="addtoany_share_save"
|
82 |
<script type="text/javascript">
|
83 |
a2a_linkname="<?php echo str_replace('"', '\\"', $linkname); ?>";
|
84 |
a2a_linkurl="<?php echo $linkurl; ?>";
|
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.2
|
7 |
Author: MicroPat
|
8 |
Author URI: http://www.addtoany.com/contact/
|
9 |
*/
|
57 |
|
58 |
if( !get_option('A2A_SHARE_SAVE_button') ) {
|
59 |
$button_fname = 'share_save_120_16.gif';
|
60 |
+
$button_width = ' width="120"';
|
61 |
+
$button_height = ' 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 |
+
$button_width = '';
|
66 |
+
$button_height = '';
|
67 |
} else {
|
68 |
$button_attrs = explode( '|', get_option('A2A_SHARE_SAVE_button') );
|
69 |
$button_fname = $button_attrs[0];
|
70 |
+
$button_width = ' width="'.$button_attrs[1].'"';
|
71 |
+
$button_height = ' height="'.$button_attrs[2].'"';
|
72 |
$button_src = trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/'.$button_fname;
|
73 |
}
|
74 |
if( $button_attrs[0] == 'favicon.png' ) {
|
77 |
$style = ' style="'.$style_bg.'padding:1px 5px 5px 22px"';
|
78 |
$button = 'Share/Save';
|
79 |
} else
|
80 |
+
$button = '<img src="'.$button_src.'"'.$button_width.$button_height.' alt="Share/Save/Bookmark"/>';
|
81 |
?>
|
82 |
|
83 |
+
<a class="a2a_dd addtoany_share_save" <?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>
|
84 |
<script type="text/javascript">
|
85 |
a2a_linkname="<?php echo str_replace('"', '\\"', $linkname); ?>";
|
86 |
a2a_linkurl="<?php echo $linkurl; ?>";
|