Version Description
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 0.9.3 |
Comparing to | |
See all releases |
Code changes from version 0.9.2 to 0.9.3
- README.txt +2 -2
- add-to-any.php +25 -25
- screenshot-1.gif +0 -0
- screenshot-2.png +0 -0
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.5.1
|
7 |
-
Stable tag: 0.9.
|
8 |
|
9 |
Lets readers share, save, and bookmark your posts and pages using any service, such as Delicious, Digg, Facebook, MySpace, and all the rest.
|
10 |
|
@@ -55,4 +55,4 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
|
|
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!
|
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.3
|
8 |
|
9 |
Lets readers share, save, and bookmark your posts and pages using any service, such as Delicious, Digg, Facebook, MySpace, and all the rest.
|
10 |
|
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!
|
add-to-any.php
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
-
<?
|
2 |
/*
|
3 |
Plugin Name: Add to Any: Share/Save/Bookmark Button
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Lets 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 |
*/
|
@@ -73,16 +73,16 @@ function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
|
73 |
$button = '<img src="'.trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/'.$button_fname.'" width="'.$button_width.'" height="'.$button_height.'" border="0" alt="Share/Save/Bookmark"/>';
|
74 |
?>
|
75 |
|
76 |
-
<a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?sitename
|
77 |
<script type="text/javascript">
|
78 |
-
a2a_linkname="
|
79 |
-
a2a_linkurl="
|
80 |
-
|
81 |
-
|
82 |
</script>
|
83 |
<script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>
|
84 |
|
85 |
-
<?
|
86 |
if($output_buffering) {
|
87 |
$button = ob_get_contents();
|
88 |
ob_end_clean();
|
@@ -130,7 +130,7 @@ function A2A_SHARE_SAVE_options_page() {
|
|
130 |
|
131 |
?>
|
132 |
<div class="updated fade"><p><strong><?php _e('Settings saved.', 'A2A_SHARE_SAVE_trans_domain' ); ?></strong></p></div>
|
133 |
-
<?
|
134 |
|
135 |
}
|
136 |
|
@@ -138,7 +138,7 @@ function A2A_SHARE_SAVE_options_page() {
|
|
138 |
|
139 |
<div class="wrap">
|
140 |
|
141 |
-
<h2
|
142 |
|
143 |
<form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
|
144 |
|
@@ -151,27 +151,27 @@ function A2A_SHARE_SAVE_options_page() {
|
|
151 |
<th scope="row">Button</th>
|
152 |
<td>
|
153 |
<label>
|
154 |
-
<input name="A2A_SHARE_SAVE_button" value="favicon.png|16|16" type="radio"<? if(get_option('A2A_SHARE_SAVE_button')=='favicon.png|16|16') echo ' checked="checked"'; ?>
|
155 |
style="margin:9px 0">
|
156 |
-
<img src="
|
157 |
onclick="this.parentNode.firstChild.checked=true"/>
|
158 |
</label><br>
|
159 |
<label>
|
160 |
-
<input name="A2A_SHARE_SAVE_button" value="share_save_120_16.gif|120|16" type="radio"<? if( !get_option('A2A_SHARE_SAVE_button') || get_option('A2A_SHARE_SAVE_button' )=='share_save_120_16.gif|120|16') echo ' checked="checked"'; ?>
|
161 |
style="margin:9px 0">
|
162 |
-
<img src="
|
163 |
onclick="this.parentNode.firstChild.checked=true"/>
|
164 |
</label><br>
|
165 |
<label>
|
166 |
-
<input name="A2A_SHARE_SAVE_button" value="share_save_171_16.gif|171|16" type="radio"<? if(get_option('A2A_SHARE_SAVE_button')=='share_save_171_16.gif|171|16') echo ' checked="checked"'; ?>
|
167 |
style="margin:9px 0">
|
168 |
-
<img src="
|
169 |
onclick="this.parentNode.firstChild.checked=true"/>
|
170 |
</label><br>
|
171 |
<label>
|
172 |
-
<input name="A2A_SHARE_SAVE_button" value="share_save_256_24.gif|256|24" type="radio"<? if(get_option('A2A_SHARE_SAVE_button')=='share_save_256_24.gif|256|24') echo ' checked="checked"'; ?>
|
173 |
style="margin:9px 0">
|
174 |
-
<img src="
|
175 |
onclick="this.parentNode.firstChild.checked=true"/>
|
176 |
</label>
|
177 |
</td>
|
@@ -183,24 +183,24 @@ function A2A_SHARE_SAVE_options_page() {
|
|
183 |
<input name="A2A_SHARE_SAVE_display_in_posts"
|
184 |
onclick="e=getElementsByName('A2A_SHARE_SAVE_display_in_posts_on_front_page')[0];if(!this.checked){e.checked=false;e.disabled=true}else{e.checked=true;e.disabled=false}"
|
185 |
onchange="e=getElementsByName('A2A_SHARE_SAVE_display_in_posts_on_front_page')[0];if(!this.checked){e.checked=false;e.disabled=true}else{e.checked=true;e.disabled=false}"
|
186 |
-
type="checkbox"<? if(get_option('A2A_SHARE_SAVE_display_in_posts')!='-1') echo ' checked="checked"'; ?> value="1"/>
|
187 |
Display Share/Save button at the bottom of posts <strong>*</strong>
|
188 |
</label><br/>
|
189 |
<label>
|
190 |
-
<input name="A2A_SHARE_SAVE_display_in_posts_on_front_page" type="checkbox"<?
|
191 |
if(get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')!='-1') echo ' checked="checked"';
|
192 |
if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
|
193 |
?> value="1"/>
|
194 |
Display Share/Save button at the bottom of posts on the front page
|
195 |
</label><br/>
|
196 |
<label>
|
197 |
-
<input name="A2A_SHARE_SAVE_display_in_pages" type="checkbox"<? if(get_option('A2A_SHARE_SAVE_display_in_pages')!='-1') echo ' checked="checked"'; ?> value="1"/>
|
198 |
Display Share/Save button at the bottom of pages <strong>*</strong>
|
199 |
</label>
|
200 |
|
201 |
<br/><br/>
|
202 |
<strong>*</strong> If unchecked, be sure to place the following code in <a href="theme-editor.php">your template pages</a> (within <code>index.php</code>, <code>single.php</code>, and/or <code>page.php</code>):<br/>
|
203 |
-
<code><? if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?></code>
|
204 |
</td>
|
205 |
</tr>
|
206 |
<tr valign="top">
|
@@ -208,12 +208,12 @@ function A2A_SHARE_SAVE_options_page() {
|
|
208 |
<td>
|
209 |
<label>
|
210 |
<input name="A2A_SHARE_SAVE_hide_embeds"
|
211 |
-
type="checkbox"<? if(get_option('A2A_SHARE_SAVE_hide_embeds')!='-1') echo ' checked="checked"'; ?> value="1"/>
|
212 |
Hide embedded objects (Flash, video, etc.) when the menu is displayed
|
213 |
</label><br />
|
214 |
<label>
|
215 |
<input name="A2A_SHARE_SAVE_show_title"
|
216 |
-
type="checkbox"<? if(get_option('A2A_SHARE_SAVE_show_title')=='1') echo ' checked="checked"'; ?> value="1"/>
|
217 |
Show the title of the post within the menu
|
218 |
</label>
|
219 |
</td>
|
@@ -227,7 +227,7 @@ function A2A_SHARE_SAVE_options_page() {
|
|
227 |
</form>
|
228 |
</div>
|
229 |
|
230 |
-
<?
|
231 |
|
232 |
}
|
233 |
|
1 |
+
<?php
|
2 |
/*
|
3 |
Plugin Name: Add to Any: Share/Save/Bookmark Button
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Lets 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.3
|
7 |
Author: MicroPat
|
8 |
Author URI: http://www.addtoany.com/contact/
|
9 |
*/
|
73 |
$button = '<img src="'.trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/'.$button_fname.'" width="'.$button_width.'" height="'.$button_height.'" border="0" alt="Share/Save/Bookmark"/>';
|
74 |
?>
|
75 |
|
76 |
+
<a name="a2a_dd" onmouseover="a2a_show_dropdown(this)" onmouseout="a2a_onMouseOut_delay()" href="http://www.addtoany.com/bookmark?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>
|
77 |
<script type="text/javascript">
|
78 |
+
a2a_linkname="<?php echo str_replace('"', '\\"', $linkname); ?>";
|
79 |
+
a2a_linkurl="<?php echo $linkurl; ?>";
|
80 |
+
<?php echo (get_option('A2A_SHARE_SAVE_hide_embeds')=='-1') ? 'a2a_hide_embeds=0;' : ''; ?>
|
81 |
+
<?php echo (get_option('A2A_SHARE_SAVE_show_title')=='1') ? 'a2a_show_title=1;' : ''; ?>
|
82 |
</script>
|
83 |
<script type="text/javascript" src="http://www.addtoany.com/menu/page.js"></script>
|
84 |
|
85 |
+
<?php
|
86 |
if($output_buffering) {
|
87 |
$button = ob_get_contents();
|
88 |
ob_end_clean();
|
130 |
|
131 |
?>
|
132 |
<div class="updated fade"><p><strong><?php _e('Settings saved.', 'A2A_SHARE_SAVE_trans_domain' ); ?></strong></p></div>
|
133 |
+
<?php
|
134 |
|
135 |
}
|
136 |
|
138 |
|
139 |
<div class="wrap">
|
140 |
|
141 |
+
<h2><?php echo __( 'Add to Any: Share/Save Settings', 'A2A_SHARE_SAVE_trans_domain' ); ?></h2>
|
142 |
|
143 |
<form method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
|
144 |
|
151 |
<th scope="row">Button</th>
|
152 |
<td>
|
153 |
<label>
|
154 |
+
<input name="A2A_SHARE_SAVE_button" value="favicon.png|16|16" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='favicon.png|16|16') echo ' checked="checked"'; ?>
|
155 |
style="margin:9px 0">
|
156 |
+
<img src="<?php echo trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/favicon.png'; ?>" width="16" height="16" border="0" style="padding:9px" alt="+ Share/Save" title="+ Share/Save"
|
157 |
onclick="this.parentNode.firstChild.checked=true"/>
|
158 |
</label><br>
|
159 |
<label>
|
160 |
+
<input name="A2A_SHARE_SAVE_button" value="share_save_120_16.gif|120|16" type="radio"<?php if( !get_option('A2A_SHARE_SAVE_button') || get_option('A2A_SHARE_SAVE_button' )=='share_save_120_16.gif|120|16') echo ' checked="checked"'; ?>
|
161 |
style="margin:9px 0">
|
162 |
+
<img src="<?php echo trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/share_save_120_16.gif'; ?>" width="120" height="16" border="0" style="padding:9px"
|
163 |
onclick="this.parentNode.firstChild.checked=true"/>
|
164 |
</label><br>
|
165 |
<label>
|
166 |
+
<input name="A2A_SHARE_SAVE_button" value="share_save_171_16.gif|171|16" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='share_save_171_16.gif|171|16') echo ' checked="checked"'; ?>
|
167 |
style="margin:9px 0">
|
168 |
+
<img src="<?php echo trailingslashit(get_option('siteurl')).PLUGINDIR.'/add-to-any/share_save_171_16.gif'; ?>" width="171" height="16" border="0" style="padding:9px"
|
169 |
onclick="this.parentNode.firstChild.checked=true"/>
|
170 |
</label><br>
|
171 |
<label>
|
172 |
+
<input name="A2A_SHARE_SAVE_button" value="share_save_256_24.gif|256|24" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='share_save_256_24.gif|256|24') echo ' checked="checked"'; ?>
|
173 |
style="margin:9px 0">
|
174 |
+
<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"
|
175 |
onclick="this.parentNode.firstChild.checked=true"/>
|
176 |
</label>
|
177 |
</td>
|
183 |
<input name="A2A_SHARE_SAVE_display_in_posts"
|
184 |
onclick="e=getElementsByName('A2A_SHARE_SAVE_display_in_posts_on_front_page')[0];if(!this.checked){e.checked=false;e.disabled=true}else{e.checked=true;e.disabled=false}"
|
185 |
onchange="e=getElementsByName('A2A_SHARE_SAVE_display_in_posts_on_front_page')[0];if(!this.checked){e.checked=false;e.disabled=true}else{e.checked=true;e.disabled=false}"
|
186 |
+
type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_display_in_posts')!='-1') echo ' checked="checked"'; ?> value="1"/>
|
187 |
Display Share/Save button at the bottom of posts <strong>*</strong>
|
188 |
</label><br/>
|
189 |
<label>
|
190 |
+
<input name="A2A_SHARE_SAVE_display_in_posts_on_front_page" type="checkbox"<?php
|
191 |
if(get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')!='-1') echo ' checked="checked"';
|
192 |
if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
|
193 |
?> value="1"/>
|
194 |
Display Share/Save button at the bottom of posts on the front page
|
195 |
</label><br/>
|
196 |
<label>
|
197 |
+
<input name="A2A_SHARE_SAVE_display_in_pages" type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_display_in_pages')!='-1') echo ' checked="checked"'; ?> value="1"/>
|
198 |
Display Share/Save button at the bottom of pages <strong>*</strong>
|
199 |
</label>
|
200 |
|
201 |
<br/><br/>
|
202 |
<strong>*</strong> If unchecked, be sure to place the following code in <a href="theme-editor.php">your template pages</a> (within <code>index.php</code>, <code>single.php</code>, and/or <code>page.php</code>):<br/>
|
203 |
+
<code><?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?></code>
|
204 |
</td>
|
205 |
</tr>
|
206 |
<tr valign="top">
|
208 |
<td>
|
209 |
<label>
|
210 |
<input name="A2A_SHARE_SAVE_hide_embeds"
|
211 |
+
type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_hide_embeds')!='-1') echo ' checked="checked"'; ?> value="1"/>
|
212 |
Hide embedded objects (Flash, video, etc.) when the menu is displayed
|
213 |
</label><br />
|
214 |
<label>
|
215 |
<input name="A2A_SHARE_SAVE_show_title"
|
216 |
+
type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_show_title')=='1') echo ' checked="checked"'; ?> value="1"/>
|
217 |
Show the title of the post within the menu
|
218 |
</label>
|
219 |
</td>
|
227 |
</form>
|
228 |
</div>
|
229 |
|
230 |
+
<?php
|
231 |
|
232 |
}
|
233 |
|
screenshot-1.gif
CHANGED
Binary file
|
screenshot-2.png
CHANGED
Binary file
|