Version Description
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 0.9.9.6.4 |
Comparing to | |
See all releases |
Code changes from version 0.9.9.6.3 to 0.9.9.6.4
- README.txt +7 -1
- add-to-any.php +37 -31
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: micropat
|
|
3 |
Tags: sharing, share, sharethis, bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, email, e-mail, seo, button, delicious, google buzz, buzz, google, digg, reddit, facebook, myspace, twitter, stumbleupon, technorati, icon, icons, wpmu, addtoany, add, any
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.0
|
6 |
-
Stable tag: 0.9.9.6.
|
7 |
|
8 |
Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more.
|
9 |
|
@@ -171,6 +171,12 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
|
|
171 |
|
172 |
== Changelog ==
|
173 |
|
|
|
|
|
|
|
|
|
|
|
|
|
174 |
= .9.9.6.3 =
|
175 |
* Any Email now a standalone service
|
176 |
* Other new standalone services
|
3 |
Tags: sharing, share, sharethis, bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, email, e-mail, seo, button, delicious, google buzz, buzz, google, digg, reddit, facebook, myspace, twitter, stumbleupon, technorati, icon, icons, wpmu, addtoany, add, any
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.0
|
6 |
+
Stable tag: 0.9.9.6.4
|
7 |
|
8 |
Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more.
|
9 |
|
171 |
|
172 |
== Changelog ==
|
173 |
|
174 |
+
= .9.9.6.4 =
|
175 |
+
* Option to toggle displaying at the bottom of excerpts
|
176 |
+
* Shorten option descriptions
|
177 |
+
* Deprecate button link target option
|
178 |
+
* Rearrange menu options by popularity
|
179 |
+
|
180 |
= .9.9.6.3 =
|
181 |
* Any Email now a standalone service
|
182 |
* Other new standalone services
|
add-to-any.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: AddToAny: Share/Bookmark/Email Button
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
-
Version: .9.9.6.
|
7 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
@@ -184,7 +184,7 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
184 |
|
185 |
/* AddToAny button */
|
186 |
|
187 |
-
$button_target =
|
188 |
|
189 |
if( !get_option('A2A_SHARE_SAVE_button') ) {
|
190 |
$button_fname = 'share_save_171_16.png';
|
@@ -420,9 +420,11 @@ function A2A_SHARE_SAVE_to_bottom_of_content($content) {
|
|
420 |
add_filter('the_title', 'A2A_SHARE_SAVE_auto_placement', 9);
|
421 |
add_filter('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content', 98);
|
422 |
|
423 |
-
|
424 |
-
|
425 |
-
add_filter('
|
|
|
|
|
426 |
|
427 |
|
428 |
function A2A_SHARE_SAVE_button_css($no_style_tag) {
|
@@ -564,12 +566,12 @@ function A2A_SHARE_SAVE_options_page() {
|
|
564 |
check_admin_referer('add-to-any-update-options');
|
565 |
|
566 |
update_option( 'A2A_SHARE_SAVE_display_in_posts_on_front_page', ($_POST['A2A_SHARE_SAVE_display_in_posts_on_front_page']=='1') ? '1':'-1' );
|
|
|
567 |
update_option( 'A2A_SHARE_SAVE_display_in_posts', ($_POST['A2A_SHARE_SAVE_display_in_posts']=='1') ? '1':'-1' );
|
568 |
update_option( 'A2A_SHARE_SAVE_display_in_pages', ($_POST['A2A_SHARE_SAVE_display_in_pages']=='1') ? '1':'-1' );
|
569 |
update_option( 'A2A_SHARE_SAVE_display_in_feed', ($_POST['A2A_SHARE_SAVE_display_in_feed']=='1') ? '1':'-1' );
|
570 |
update_option( 'A2A_SHARE_SAVE_show_title', ($_POST['A2A_SHARE_SAVE_show_title']=='1') ? '1':'-1' );
|
571 |
update_option( 'A2A_SHARE_SAVE_onclick', ($_POST['A2A_SHARE_SAVE_onclick']=='1') ? '1':'-1' );
|
572 |
-
update_option( 'A2A_SHARE_SAVE_button_opens_new_window', ($_POST['A2A_SHARE_SAVE_button_opens_new_window']=='1') ? '1':'-1' );
|
573 |
update_option( 'A2A_SHARE_SAVE_button', $_POST['A2A_SHARE_SAVE_button'] );
|
574 |
update_option( 'A2A_SHARE_SAVE_button_custom', $_POST['A2A_SHARE_SAVE_button_custom'] );
|
575 |
update_option( 'A2A_SHARE_SAVE_additional_js_variables', trim($_POST['A2A_SHARE_SAVE_additional_js_variables']) );
|
@@ -715,31 +717,35 @@ function A2A_SHARE_SAVE_options_page() {
|
|
715 |
<th scope="row"><?php _e('Placement', 'add-to-any'); ?></th>
|
716 |
<td><fieldset>
|
717 |
<label>
|
718 |
-
<input name="A2A_SHARE_SAVE_display_in_posts"
|
719 |
-
|
720 |
-
|
721 |
-
onchange="e=getElementsByName('A2A_SHARE_SAVE_display_in_posts_on_front_page')[0];f=getElementsByName('A2A_SHARE_SAVE_display_in_feed')[0];
|
722 |
-
if(!this.checked){e.checked=false;e.disabled=true; f.checked=false;f.disabled=true}else{e.checked=true;e.disabled=false; f.checked=true;f.disabled=false}"
|
723 |
-
type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_display_in_posts')!='-1') echo ' checked="checked"'; ?> value="1"/>
|
724 |
-
<?php _e('Display Share/Save button at the bottom of posts', 'add-to-any'); ?> <strong>*</strong>
|
725 |
</label><br/>
|
726 |
<label>
|
727 |
-
<input name="
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
728 |
if(get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')!='-1') echo ' checked="checked"';
|
729 |
if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
|
730 |
?> value="1"/>
|
731 |
-
<?php _e('Display
|
732 |
</label><br/>
|
733 |
-
|
734 |
-
|
|
|
735 |
if(get_option('A2A_SHARE_SAVE_display_in_feed')!='-1') echo ' checked="checked"';
|
736 |
if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
|
737 |
?> value="1"/>
|
738 |
-
<?php _e('Display
|
739 |
</label><br/>
|
740 |
<label>
|
741 |
<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"/>
|
742 |
-
<?php _e('Display
|
743 |
</label>
|
744 |
<br/><br/>
|
745 |
<div class="setting-description">
|
@@ -766,22 +772,14 @@ function A2A_SHARE_SAVE_options_page() {
|
|
766 |
<th scope="row"><?php _e('Menu Options', 'add-to-any'); ?></th>
|
767 |
<td><fieldset>
|
768 |
<label>
|
769 |
-
<input name="A2A_SHARE_SAVE_show_title"
|
770 |
-
type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_show_title')=='1') echo ' checked="checked"'; ?> value="1"/>
|
771 |
-
<?php _e('Show the title of the post (or page) within the menu', 'add-to-any'); ?>
|
772 |
-
</label><br />
|
773 |
-
<label>
|
774 |
<input name="A2A_SHARE_SAVE_onclick"
|
775 |
-
type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_onclick')=='1') echo ' checked="checked"'; ?> value="1"
|
776 |
-
onclick="e=getElementsByName('A2A_SHARE_SAVE_button_opens_new_window')[0];if(this.checked){e.checked=false;e.disabled=true}else{e.disabled=false}"
|
777 |
-
onchange="e=getElementsByName('A2A_SHARE_SAVE_button_opens_new_window')[0];if(this.checked){e.checked=false;e.disabled=true}else{e.disabled=false}"/>
|
778 |
<?php _e('Only show the menu when the user clicks the Share/Save button', 'add-to-any'); ?>
|
779 |
</label><br />
|
780 |
<label>
|
781 |
-
<input name="
|
782 |
-
type="checkbox"<?php if(get_option('
|
783 |
-
|
784 |
-
<?php _e('Open the addtoany.com menu page in a new tab or window if the user clicks the Share/Save button', 'add-to-any'); ?>
|
785 |
</label>
|
786 |
</fieldset></td>
|
787 |
</tr>
|
@@ -861,6 +859,14 @@ function A2A_SHARE_SAVE_admin_head() {
|
|
861 |
?>
|
862 |
<script language="JavaScript" type="text/javascript"><!--
|
863 |
jQuery(document).ready(function(){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
864 |
|
865 |
var to_input = function(this_sortable){
|
866 |
// Clear any previous services stored as hidden inputs
|
3 |
Plugin Name: AddToAny: Share/Bookmark/Email Button
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Help people share, bookmark, and email your posts & pages using any service, such as Facebook, Twitter, Google Buzz, Digg and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
+
Version: .9.9.6.4
|
7 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
184 |
|
185 |
/* AddToAny button */
|
186 |
|
187 |
+
$button_target = '';
|
188 |
|
189 |
if( !get_option('A2A_SHARE_SAVE_button') ) {
|
190 |
$button_fname = 'share_save_171_16.png';
|
420 |
add_filter('the_title', 'A2A_SHARE_SAVE_auto_placement', 9);
|
421 |
add_filter('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content', 98);
|
422 |
|
423 |
+
if (get_option('A2A_SHARE_SAVE_display_in_excerpts') != '-1') {
|
424 |
+
// Excerpts use strip_tags() for the_content, so cancel if Excerpt and append to the_excerpt instead
|
425 |
+
add_filter('get_the_excerpt', 'A2A_SHARE_SAVE_remove_from_content', 9);
|
426 |
+
add_filter('the_excerpt', 'A2A_SHARE_SAVE_to_bottom_of_content', 98);
|
427 |
+
}
|
428 |
|
429 |
|
430 |
function A2A_SHARE_SAVE_button_css($no_style_tag) {
|
566 |
check_admin_referer('add-to-any-update-options');
|
567 |
|
568 |
update_option( 'A2A_SHARE_SAVE_display_in_posts_on_front_page', ($_POST['A2A_SHARE_SAVE_display_in_posts_on_front_page']=='1') ? '1':'-1' );
|
569 |
+
update_option( 'A2A_SHARE_SAVE_display_in_excerpts', ($_POST['A2A_SHARE_SAVE_display_in_excerpts']=='1') ? '1':'-1' );
|
570 |
update_option( 'A2A_SHARE_SAVE_display_in_posts', ($_POST['A2A_SHARE_SAVE_display_in_posts']=='1') ? '1':'-1' );
|
571 |
update_option( 'A2A_SHARE_SAVE_display_in_pages', ($_POST['A2A_SHARE_SAVE_display_in_pages']=='1') ? '1':'-1' );
|
572 |
update_option( 'A2A_SHARE_SAVE_display_in_feed', ($_POST['A2A_SHARE_SAVE_display_in_feed']=='1') ? '1':'-1' );
|
573 |
update_option( 'A2A_SHARE_SAVE_show_title', ($_POST['A2A_SHARE_SAVE_show_title']=='1') ? '1':'-1' );
|
574 |
update_option( 'A2A_SHARE_SAVE_onclick', ($_POST['A2A_SHARE_SAVE_onclick']=='1') ? '1':'-1' );
|
|
|
575 |
update_option( 'A2A_SHARE_SAVE_button', $_POST['A2A_SHARE_SAVE_button'] );
|
576 |
update_option( 'A2A_SHARE_SAVE_button_custom', $_POST['A2A_SHARE_SAVE_button_custom'] );
|
577 |
update_option( 'A2A_SHARE_SAVE_additional_js_variables', trim($_POST['A2A_SHARE_SAVE_additional_js_variables']) );
|
717 |
<th scope="row"><?php _e('Placement', 'add-to-any'); ?></th>
|
718 |
<td><fieldset>
|
719 |
<label>
|
720 |
+
<input id="A2A_SHARE_SAVE_display_in_posts" name="A2A_SHARE_SAVE_display_in_posts" type="checkbox"<?php
|
721 |
+
if(get_option('A2A_SHARE_SAVE_display_in_posts')!='-1') echo ' checked="checked"'; ?> value="1"/>
|
722 |
+
<?php _e('Display at the bottom of posts', 'add-to-any'); ?> <strong>*</strong>
|
|
|
|
|
|
|
|
|
723 |
</label><br/>
|
724 |
<label>
|
725 |
+
<input class="A2A_SHARE_SAVE_child_of_display_in_posts" name="A2A_SHARE_SAVE_display_in_excerpts" type="checkbox"<?php
|
726 |
+
if(get_option('A2A_SHARE_SAVE_display_in_excerpts')!='-1') echo ' checked="checked"';
|
727 |
+
if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
|
728 |
+
?> value="1"/>
|
729 |
+
<?php _e('Display at the bottom of post excerpts', 'add-to-any'); ?>
|
730 |
+
</label><br/>
|
731 |
+
<label>
|
732 |
+
<input class="A2A_SHARE_SAVE_child_of_display_in_posts" name="A2A_SHARE_SAVE_display_in_posts_on_front_page" type="checkbox"<?php
|
733 |
if(get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')!='-1') echo ' checked="checked"';
|
734 |
if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
|
735 |
?> value="1"/>
|
736 |
+
<?php _e('Display at the bottom of posts on the front page', 'add-to-any'); ?>
|
737 |
</label><br/>
|
738 |
+
|
739 |
+
<label>
|
740 |
+
<input class="A2A_SHARE_SAVE_child_of_display_in_posts" name="A2A_SHARE_SAVE_display_in_feed" type="checkbox"<?php
|
741 |
if(get_option('A2A_SHARE_SAVE_display_in_feed')!='-1') echo ' checked="checked"';
|
742 |
if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
|
743 |
?> value="1"/>
|
744 |
+
<?php _e('Display at the bottom of posts in the feed', 'add-to-any'); ?>
|
745 |
</label><br/>
|
746 |
<label>
|
747 |
<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"/>
|
748 |
+
<?php _e('Display at the bottom of pages', 'add-to-any'); ?>
|
749 |
</label>
|
750 |
<br/><br/>
|
751 |
<div class="setting-description">
|
772 |
<th scope="row"><?php _e('Menu Options', 'add-to-any'); ?></th>
|
773 |
<td><fieldset>
|
774 |
<label>
|
|
|
|
|
|
|
|
|
|
|
775 |
<input name="A2A_SHARE_SAVE_onclick"
|
776 |
+
type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_onclick')=='1') echo ' checked="checked"'; ?> value="1"/>
|
|
|
|
|
777 |
<?php _e('Only show the menu when the user clicks the Share/Save button', 'add-to-any'); ?>
|
778 |
</label><br />
|
779 |
<label>
|
780 |
+
<input name="A2A_SHARE_SAVE_show_title"
|
781 |
+
type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_show_title')=='1') echo ' checked="checked"'; ?> value="1"/>
|
782 |
+
<?php _e('Show the title of the post (or page) within the menu', 'add-to-any'); ?>
|
|
|
783 |
</label>
|
784 |
</fieldset></td>
|
785 |
</tr>
|
859 |
?>
|
860 |
<script language="JavaScript" type="text/javascript"><!--
|
861 |
jQuery(document).ready(function(){
|
862 |
+
|
863 |
+
// Toggle child options of 'Display in posts'
|
864 |
+
jQuery('#A2A_SHARE_SAVE_display_in_posts').bind('change click', function(e){
|
865 |
+
if (jQuery(this).is(':checked'))
|
866 |
+
jQuery('.A2A_SHARE_SAVE_child_of_display_in_posts').attr('checked', true).attr('disabled', false);
|
867 |
+
else
|
868 |
+
jQuery('.A2A_SHARE_SAVE_child_of_display_in_posts').attr('checked', false).attr('disabled', true);
|
869 |
+
});
|
870 |
|
871 |
var to_input = function(this_sortable){
|
872 |
// Clear any previous services stored as hidden inputs
|