Version Description
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 0.9.9.4.9 |
Comparing to | |
See all releases |
Code changes from version 0.9.9.4.8 to 0.9.9.4.9
- README.txt +75 -11
- add-to-any.php +37 -20
- icons/blip.png +0 -0
- icons/google_buzz.png +0 -0
- icons/grono.png +0 -0
- icons/wykop.png +0 -0
- services.php +16 -0
README.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: micropat
|
|
3 |
Tags: bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, sharing, share, sharethis, 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, twitter, stumbleupon, technorati, wpmu, addtoany, add, any
|
4 |
Requires at least: 2.0
|
5 |
Tested up to: 2.9
|
6 |
-
Stable tag: 0.9.9.4.
|
7 |
|
8 |
Help readers share, bookmark, and email your posts and pages using any service, such as Facebook, Twitter, Digg, Delicious and over 100 more.
|
9 |
|
@@ -22,10 +22,10 @@ Individual **service icons** let you optimize your blog posts for specific socia
|
|
22 |
* Includes all <a href="http://www.addtoany.com/services/" target="_blank">services</a>
|
23 |
* Menu updated automatically
|
24 |
* WordPress optimized, localized (English, Chinese, Spanish, Japanese, Portuguese, Italian, Danish, Catalan, Russian, Albanian, Romanian, Belarusian)
|
25 |
-
* Google Analytics integration
|
26 |
* Many more publisher and user features!
|
27 |
|
28 |
-
<a href="http://www.addtoany.com/
|
29 |
|
30 |
See also:
|
31 |
|
@@ -33,7 +33,7 @@ See also:
|
|
33 |
* The <a href="http://www.addtoany.com/buttons/for/wordpress_com" title="WordPress.com sharing button widget" target="_blank">Share button for WordPress.com</a> blogs
|
34 |
* The standard <a href="http://www.addtoany.com/buttons/">Share button</a> widget
|
35 |
|
36 |
-
<a href="http://www.addtoany.com/
|
37 |
|
38 |
== Installation ==
|
39 |
|
@@ -42,10 +42,6 @@ See also:
|
|
42 |
|
43 |
== Frequently Asked Questions ==
|
44 |
|
45 |
-
= How often is the list of services within the menu updated? =
|
46 |
-
|
47 |
-
Constantly... and it's done automatically without having to upgrade.
|
48 |
-
|
49 |
= Where are the options? =
|
50 |
|
51 |
In your Admin panel, go to `Settings` > `Share/Save Buttons`. Among other options, you can choose which button and individual icons to display, and where and how to display them.
|
@@ -67,12 +63,35 @@ if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') )
|
|
67 |
ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") );
|
68 |
echo '</ul>'; ?>`
|
69 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
= How can I add just the button to another area of my theme? =
|
71 |
|
72 |
-
|
73 |
|
74 |
`<?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?>`
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
= How can I add just the individual icons to another area of my theme? =
|
77 |
|
78 |
In the Theme Editor, place this line of code where you want the individual icons to appear in your theme (within an HTML list):
|
@@ -82,10 +101,28 @@ if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') )
|
|
82 |
ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") );
|
83 |
echo '</ul>'; ?>`
|
84 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
Or you can place the icons as individual links (without being wrapped in an HTML list):
|
86 |
|
87 |
`<?php if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) { ADDTOANY_SHARE_SAVE_ICONS(); } ?>`
|
88 |
|
|
|
|
|
|
|
|
|
|
|
|
|
89 |
= How can I add a new custom standalone service? =
|
90 |
You can create a plugin or customize the following PHP sample code to add to your theme's function.php file:
|
91 |
|
@@ -101,14 +138,29 @@ You can create a plugin or customize the following PHP sample code to add to you
|
|
101 |
}
|
102 |
add_filter('A2A_SHARE_SAVE_services', 'addtoany_add_services', 10, 1);`
|
103 |
|
104 |
-
= How can I
|
|
|
105 |
|
106 |
-
|
|
|
|
|
|
|
|
|
107 |
|
108 |
= How can I remove a button from individual posts and pages? =
|
109 |
|
110 |
Type the following tag into the page or post that you do not want the button to appear in: `<!--nosharesave-->`
|
111 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
112 |
= Why do embedded objects (like Flash) disappear when the menu is displayed? =
|
113 |
|
114 |
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.
|
@@ -123,6 +175,18 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
|
|
123 |
|
124 |
== Changelog ==
|
125 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
= .9.9.4.8 =
|
127 |
* Inline CSS toggle
|
128 |
* If turned off, copy the CSS to your theme's stylesheet
|
3 |
Tags: bookmarking, social, social bookmarking, social bookmarks, bookmark, bookmarks, sharing, share, sharethis, 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, twitter, stumbleupon, technorati, wpmu, addtoany, add, any
|
4 |
Requires at least: 2.0
|
5 |
Tested up to: 2.9
|
6 |
+
Stable tag: 0.9.9.4.9
|
7 |
|
8 |
Help readers share, bookmark, and email your posts and pages using any service, such as Facebook, Twitter, Digg, Delicious and over 100 more.
|
9 |
|
22 |
* Includes all <a href="http://www.addtoany.com/services/" target="_blank">services</a>
|
23 |
* Menu updated automatically
|
24 |
* WordPress optimized, localized (English, Chinese, Spanish, Japanese, Portuguese, Italian, Danish, Catalan, Russian, Albanian, Romanian, Belarusian)
|
25 |
+
* Google Analytics integration (<a href="http://www.addtoany.com/ext/google_analytics/">access guide</a>)
|
26 |
* Many more publisher and user features!
|
27 |
|
28 |
+
<a href="http://www.addtoany.com/share_save" title="Share" target="_blank">Share this plugin</a>
|
29 |
|
30 |
See also:
|
31 |
|
33 |
* The <a href="http://www.addtoany.com/buttons/for/wordpress_com" title="WordPress.com sharing button widget" target="_blank">Share button for WordPress.com</a> blogs
|
34 |
* The standard <a href="http://www.addtoany.com/buttons/">Share button</a> widget
|
35 |
|
36 |
+
<a href="http://www.addtoany.com/blog/" target="_blank">AddToAny Blog</a> | <a href="http://www.addtoany.com/privacy">Privacy Policy</a>
|
37 |
|
38 |
== Installation ==
|
39 |
|
42 |
|
43 |
== Frequently Asked Questions ==
|
44 |
|
|
|
|
|
|
|
|
|
45 |
= Where are the options? =
|
46 |
|
47 |
In your Admin panel, go to `Settings` > `Share/Save Buttons`. Among other options, you can choose which button and individual icons to display, and where and how to display them.
|
63 |
ADDTOANY_SHARE_SAVE_BUTTON( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") );
|
64 |
echo '</ul>'; ?>`
|
65 |
|
66 |
+
If you want to customize the shared URL and title for the button and standalone services, use the following code as a template:
|
67 |
+
|
68 |
+
`<?php echo '<ul class="addtoany_list">';
|
69 |
+
$addtoany_linkname = "Example Page";
|
70 |
+
$addtoany_linkurl = "http://example.com/page.html";
|
71 |
+
if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') )
|
72 |
+
ADDTOANY_SHARE_SAVE_ICONS( array(
|
73 |
+
"html_wrap_open" => "<li>", "html_wrap_close" => "</li>",
|
74 |
+
"linkname" => $addtoany_linkname, "linkurl" => $addtoany_linkurl
|
75 |
+
));
|
76 |
+
if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') )
|
77 |
+
ADDTOANY_SHARE_SAVE_BUTTON( array(
|
78 |
+
"html_wrap_open" => "<li>", "html_wrap_close" => "</li>",
|
79 |
+
"linkname" => $addtoany_linkname, "linkurl" => $addtoany_linkurl
|
80 |
+
));
|
81 |
+
echo '</ul>'; ?>`
|
82 |
+
|
83 |
= How can I add just the button to another area of my theme? =
|
84 |
|
85 |
+
In the Theme Editor, you will place this line of code where you want the button to appear in your theme:
|
86 |
|
87 |
`<?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?>`
|
88 |
|
89 |
+
If you want to customize the shared URL and title for this button, use the following code as a template:
|
90 |
+
|
91 |
+
`<?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) {
|
92 |
+
ADDTOANY_SHARE_SAVE_BUTTON( array("linkname" => "Example Page", "linkurl" => "http://example.com/page.html") );
|
93 |
+
} ?>`
|
94 |
+
|
95 |
= How can I add just the individual icons to another area of my theme? =
|
96 |
|
97 |
In the Theme Editor, place this line of code where you want the individual icons to appear in your theme (within an HTML list):
|
101 |
ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") );
|
102 |
echo '</ul>'; ?>`
|
103 |
|
104 |
+
If you want to customize the shared URL and title for these icons, use the following code as a template:
|
105 |
+
|
106 |
+
`<?php
|
107 |
+
if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) {
|
108 |
+
echo '<ul class="addtoany_list">';
|
109 |
+
ADDTOANY_SHARE_SAVE_ICONS( array(
|
110 |
+
"html_wrap_open" => "<li>", "html_wrap_close" => "</li>",
|
111 |
+
"linkname" => "Example Page", "linkurl" => "http://example.com/page.html"
|
112 |
+
));
|
113 |
+
echo '</ul>';
|
114 |
+
} ?>`
|
115 |
+
|
116 |
Or you can place the icons as individual links (without being wrapped in an HTML list):
|
117 |
|
118 |
`<?php if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) { ADDTOANY_SHARE_SAVE_ICONS(); } ?>`
|
119 |
|
120 |
+
If you want to customize the shared URL and title for these icons, use the following code as a template:
|
121 |
+
|
122 |
+
`<?php if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) {
|
123 |
+
ADDTOANY_SHARE_SAVE_ICONS( array("linkname" => "Example Page", "linkurl" => "http://example.com/page.html") );
|
124 |
+
} ?>`
|
125 |
+
|
126 |
= How can I add a new custom standalone service? =
|
127 |
You can create a plugin or customize the following PHP sample code to add to your theme's function.php file:
|
128 |
|
138 |
}
|
139 |
add_filter('A2A_SHARE_SAVE_services', 'addtoany_add_services', 10, 1);`
|
140 |
|
141 |
+
= How can I align the button and/or icons to the center or to the right side of posts? =
|
142 |
+
It depends on your theme, but you can try adding the following CSS code to your main stylesheet.
|
143 |
|
144 |
+
To align right:
|
145 |
+
`.addtoany_share_save_container { text-align:right; }`
|
146 |
+
|
147 |
+
To align center:
|
148 |
+
`.addtoany_share_save_container { text-align:center; }`
|
149 |
|
150 |
= How can I remove a button from individual posts and pages? =
|
151 |
|
152 |
Type the following tag into the page or post that you do not want the button to appear in: `<!--nosharesave-->`
|
153 |
|
154 |
+
= How can I force the button to appear in individual posts and pages? =
|
155 |
+
|
156 |
+
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-->`
|
157 |
+
|
158 |
+
= Why doesn't Facebook use the page title and how can I set the image Facebook uses? =
|
159 |
+
|
160 |
+
Facebook does link sharing a little differently than most other services. Facebook will sometimes use the Meta Description of a shared page instead of the page's title or the title you have set for AddToAny.
|
161 |
+
|
162 |
+
To change the title, description and/or image on Facebook, you will need to modify your theme header file according to <a href="http://wiki.developers.facebook.com/index.php/Facebook_Share/Specifying_Meta_Tags">Facebook's specification</a>. With WordPress, this can be accomplished with plugins like the <a href="http://wordpress.org/extend/plugins/all-in-one-seo-pack/">All in One SEO Pack plugin</a>. Please see that plugin to for details, and post in the WordPress or plugin author's forums for more support.
|
163 |
+
|
164 |
= Why do embedded objects (like Flash) disappear when the menu is displayed? =
|
165 |
|
166 |
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.
|
175 |
|
176 |
== Changelog ==
|
177 |
|
178 |
+
= .9.9.4.9 =
|
179 |
+
* New params to customize the shared link and title for buttons/icons placed in theme file(s)
|
180 |
+
* See plugin FAQ for template code
|
181 |
+
* Ensure line break within feeds by enclosing AddToAny in a paragraph tag
|
182 |
+
* Increase opacity on standalone icons by 10%
|
183 |
+
* Offer CSS code in the settings panel to copy & paste into a stylesheet
|
184 |
+
* New standalone services
|
185 |
+
* Google Buzz (using Google Reader endpoint - automatic update to come)
|
186 |
+
* Blip
|
187 |
+
* Grono
|
188 |
+
* Wykop
|
189 |
+
|
190 |
= .9.9.4.8 =
|
191 |
* Inline CSS toggle
|
192 |
* If turned off, copy the CSS to your theme's stylesheet
|
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 readers share, bookmark, and email your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
-
Version: .9.9.4.
|
7 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
@@ -31,12 +31,12 @@ function A2A_SHARE_SAVE_textdomain() {
|
|
31 |
}
|
32 |
add_action('init', 'A2A_SHARE_SAVE_textdomain');
|
33 |
|
34 |
-
function A2A_SHARE_SAVE_link_vars() {
|
35 |
global $post;
|
36 |
|
37 |
-
$linkname = get_the_title($post->ID);
|
38 |
$linkname_enc = rawurlencode( $linkname );
|
39 |
-
$linkurl = get_permalink($post->ID);
|
40 |
$linkurl_enc = rawurlencode( $linkurl );
|
41 |
|
42 |
return compact( 'linkname', 'linkname_enc', 'linkurl', 'linkurl_enc' );
|
@@ -46,8 +46,9 @@ include_once('services.php');
|
|
46 |
|
47 |
function ADDTOANY_SHARE_SAVE_ICONS( $args = false ) {
|
48 |
if( $args )
|
49 |
-
extract( $args ); // output_later, html_wrap_open, html_wrap_close
|
50 |
-
|
|
|
51 |
|
52 |
global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_services;
|
53 |
|
@@ -113,9 +114,9 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = false ) {
|
|
113 |
$A2A_SHARE_SAVE_services = apply_filters('A2A_SHARE_SAVE_services', $A2A_SHARE_SAVE_services);
|
114 |
|
115 |
if( $args )
|
116 |
-
extract( $args ); // output_later, html_wrap_open, html_wrap_close
|
117 |
-
|
118 |
-
extract(A2A_SHARE_SAVE_link_vars()); // linkname_enc, etc.
|
119 |
|
120 |
/* AddToAny button */
|
121 |
|
@@ -310,6 +311,9 @@ function A2A_SHARE_SAVE_to_bottom_of_content($content) {
|
|
310 |
if ( ! $is_feed ) {
|
311 |
$container_wrap_open = '<div class="addtoany_share_save_container"><ul class="addtoany_list">';
|
312 |
$container_wrap_close = '</ul></div>';
|
|
|
|
|
|
|
313 |
}
|
314 |
|
315 |
$content .= $container_wrap_open.ADDTOANY_SHARE_SAVE_ICONS( $icons_args ).ADDTOANY_SHARE_SAVE_BUTTON( $A2A_SHARE_SAVE_options ).$container_wrap_close;
|
@@ -319,8 +323,10 @@ function A2A_SHARE_SAVE_to_bottom_of_content($content) {
|
|
319 |
add_action('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content', 98);
|
320 |
|
321 |
|
322 |
-
function A2A_SHARE_SAVE_button_css() {
|
|
|
323 |
?><style type="text/css">
|
|
|
324 |
.addtoany_share_save_container{margin:16px 0;}
|
325 |
ul.addtoany_list{
|
326 |
display:inline;
|
@@ -333,7 +339,8 @@ function A2A_SHARE_SAVE_button_css() {
|
|
333 |
background:none !important;
|
334 |
border:0;
|
335 |
display:inline !important;
|
336 |
-
|
|
|
337 |
list-style-type:none;
|
338 |
margin:0 !important;
|
339 |
padding:0 !important;
|
@@ -348,18 +355,21 @@ function A2A_SHARE_SAVE_button_css() {
|
|
348 |
vertical-align:middle;
|
349 |
}
|
350 |
ul.addtoany_list a img{
|
351 |
-
opacity:.
|
352 |
-
-moz-opacity:.
|
353 |
-
filter:alpha(opacity=
|
354 |
}
|
355 |
ul.addtoany_list a:hover img, ul.addtoany_list a.addtoany_share_save img{
|
356 |
opacity:1;
|
357 |
-moz-opacity:1;
|
358 |
filter:alpha(opacity=100);
|
359 |
}
|
360 |
-
|
361 |
-
|
|
|
|
|
362 |
<?php
|
|
|
363 |
}
|
364 |
|
365 |
if (get_option('A2A_SHARE_SAVE_inline_css') != '-1') {
|
@@ -615,7 +625,7 @@ function A2A_SHARE_SAVE_options_page() {
|
|
615 |
<?php _e("Advanced users might want to explore AddToAny's <a href=\"http://www.addtoany.com/buttons/api/\" target=\"_blank\">JavaScript API</a>.", "add-to-any"); ?></p>
|
616 |
</label>
|
617 |
<p>
|
618 |
-
<textarea name="A2A_SHARE_SAVE_additional_js_variables" id="A2A_SHARE_SAVE_additional_js_variables" class="code" style="width: 98%; font-size: 12px;" rows="
|
619 |
</p>
|
620 |
<?php if( get_option('A2A_SHARE_SAVE_additional_js_variables')!='' ) { ?>
|
621 |
<label for="A2A_SHARE_SAVE_additional_js_variables" class="setting-description"><?php _e("<strong>Note</strong>: If you're adding new code, be careful not to accidentally overwrite any previous code.</label>", 'add-to-any'); ?>
|
@@ -628,8 +638,11 @@ function A2A_SHARE_SAVE_options_page() {
|
|
628 |
</label>
|
629 |
<br/><br/>
|
630 |
<div class="setting-description">
|
631 |
-
<strong>**</strong> <?php _e("If unchecked, be sure to place the CSS in your theme's stylesheet
|
632 |
-
|
|
|
|
|
|
|
633 |
</fieldset></td>
|
634 |
</tr>
|
635 |
</table>
|
@@ -762,6 +775,10 @@ function A2A_SHARE_SAVE_admin_head() {
|
|
762 |
jQuery('#addtoany_template_button_code').slideDown('fast');
|
763 |
jQuery(this).fadeOut('fast');
|
764 |
});
|
|
|
|
|
|
|
|
|
765 |
});
|
766 |
--></script>
|
767 |
|
@@ -788,7 +805,7 @@ function A2A_SHARE_SAVE_admin_head() {
|
|
788 |
li#addtoany_show_services:hover{border:1px solid #AAA;}
|
789 |
#addtoany_services_info{clear:left;display:none;}
|
790 |
|
791 |
-
#addtoany_template_button_code{display:none;}
|
792 |
</style>
|
793 |
<?php
|
794 |
}
|
3 |
Plugin Name: AddToAny: Share/Bookmark/Email Button
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Help readers share, bookmark, and email your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
+
Version: .9.9.4.9
|
7 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
31 |
}
|
32 |
add_action('init', 'A2A_SHARE_SAVE_textdomain');
|
33 |
|
34 |
+
function A2A_SHARE_SAVE_link_vars($linkname = FALSE, $linkurl = FALSE) {
|
35 |
global $post;
|
36 |
|
37 |
+
$linkname = ($linkname) ? $linkname : get_the_title($post->ID);
|
38 |
$linkname_enc = rawurlencode( $linkname );
|
39 |
+
$linkurl = ($linkurl) ? $linkurl : get_permalink($post->ID);
|
40 |
$linkurl_enc = rawurlencode( $linkurl );
|
41 |
|
42 |
return compact( 'linkname', 'linkname_enc', 'linkurl', 'linkurl_enc' );
|
46 |
|
47 |
function ADDTOANY_SHARE_SAVE_ICONS( $args = false ) {
|
48 |
if( $args )
|
49 |
+
extract( $args ); // output_later, html_wrap_open, html_wrap_close, linkname, linkurl
|
50 |
+
|
51 |
+
extract(A2A_SHARE_SAVE_link_vars($linkname, $linkurl)); // linkname_enc, etc.
|
52 |
|
53 |
global $A2A_SHARE_SAVE_plugin_url_path, $A2A_SHARE_SAVE_services;
|
54 |
|
114 |
$A2A_SHARE_SAVE_services = apply_filters('A2A_SHARE_SAVE_services', $A2A_SHARE_SAVE_services);
|
115 |
|
116 |
if( $args )
|
117 |
+
extract( $args ); // output_later, html_wrap_open, html_wrap_close, linkname, linkurl
|
118 |
+
|
119 |
+
extract(A2A_SHARE_SAVE_link_vars($linkname, $linkurl)); // linkname_enc, etc.
|
120 |
|
121 |
/* AddToAny button */
|
122 |
|
311 |
if ( ! $is_feed ) {
|
312 |
$container_wrap_open = '<div class="addtoany_share_save_container"><ul class="addtoany_list">';
|
313 |
$container_wrap_close = '</ul></div>';
|
314 |
+
} else {
|
315 |
+
$container_wrap_open = '<p>';
|
316 |
+
$container_wrap_close = '</p>';
|
317 |
}
|
318 |
|
319 |
$content .= $container_wrap_open.ADDTOANY_SHARE_SAVE_ICONS( $icons_args ).ADDTOANY_SHARE_SAVE_BUTTON( $A2A_SHARE_SAVE_options ).$container_wrap_close;
|
323 |
add_action('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content', 98);
|
324 |
|
325 |
|
326 |
+
function A2A_SHARE_SAVE_button_css($no_style_tag) {
|
327 |
+
if ( ! $no_style_tag) {
|
328 |
?><style type="text/css">
|
329 |
+
<?php } ?>
|
330 |
.addtoany_share_save_container{margin:16px 0;}
|
331 |
ul.addtoany_list{
|
332 |
display:inline;
|
339 |
background:none !important;
|
340 |
border:0;
|
341 |
display:inline !important;
|
342 |
+
<?php /* For vertical space in the event of wrapping: */ ?>
|
343 |
+
line-height:32px;
|
344 |
list-style-type:none;
|
345 |
margin:0 !important;
|
346 |
padding:0 !important;
|
355 |
vertical-align:middle;
|
356 |
}
|
357 |
ul.addtoany_list a img{
|
358 |
+
opacity:.7;
|
359 |
+
-moz-opacity:.7;
|
360 |
+
filter:alpha(opacity=70);
|
361 |
}
|
362 |
ul.addtoany_list a:hover img, ul.addtoany_list a.addtoany_share_save img{
|
363 |
opacity:1;
|
364 |
-moz-opacity:1;
|
365 |
filter:alpha(opacity=100);
|
366 |
}
|
367 |
+
<?php /* Must declare after "ul.addtoany_list img": */ ?>
|
368 |
+
a.addtoany_share_save img{border:0;width:auto;height:auto;}
|
369 |
+
<?php if ( ! $no_style_tag) { ?>
|
370 |
+
</style>
|
371 |
<?php
|
372 |
+
}
|
373 |
}
|
374 |
|
375 |
if (get_option('A2A_SHARE_SAVE_inline_css') != '-1') {
|
625 |
<?php _e("Advanced users might want to explore AddToAny's <a href=\"http://www.addtoany.com/buttons/api/\" target=\"_blank\">JavaScript API</a>.", "add-to-any"); ?></p>
|
626 |
</label>
|
627 |
<p>
|
628 |
+
<textarea name="A2A_SHARE_SAVE_additional_js_variables" id="A2A_SHARE_SAVE_additional_js_variables" class="code" style="width: 98%; font-size: 12px;" rows="6" cols="50"><?php echo stripslashes(get_option('A2A_SHARE_SAVE_additional_js_variables')); ?></textarea>
|
629 |
</p>
|
630 |
<?php if( get_option('A2A_SHARE_SAVE_additional_js_variables')!='' ) { ?>
|
631 |
<label for="A2A_SHARE_SAVE_additional_js_variables" class="setting-description"><?php _e("<strong>Note</strong>: If you're adding new code, be careful not to accidentally overwrite any previous code.</label>", 'add-to-any'); ?>
|
638 |
</label>
|
639 |
<br/><br/>
|
640 |
<div class="setting-description">
|
641 |
+
<strong>**</strong> <?php _e("If unchecked, be sure to place the CSS in your theme's stylesheet:", "add-to-any"); ?> <span id="addtoany_show_css_code" class="button-secondary">»</span>
|
642 |
+
<p id="addtoany_css_code">
|
643 |
+
<textarea class="code" style="width:98%;font-size:12px" rows="12" cols="50"><?php A2A_SHARE_SAVE_button_css(TRUE) ?></textarea>
|
644 |
+
</p>
|
645 |
+
</div>
|
646 |
</fieldset></td>
|
647 |
</tr>
|
648 |
</table>
|
775 |
jQuery('#addtoany_template_button_code').slideDown('fast');
|
776 |
jQuery(this).fadeOut('fast');
|
777 |
});
|
778 |
+
jQuery('#addtoany_show_css_code').click(function(e){
|
779 |
+
jQuery('#addtoany_css_code').slideDown('fast');
|
780 |
+
jQuery(this).fadeOut('fast');
|
781 |
+
});
|
782 |
});
|
783 |
--></script>
|
784 |
|
805 |
li#addtoany_show_services:hover{border:1px solid #AAA;}
|
806 |
#addtoany_services_info{clear:left;display:none;}
|
807 |
|
808 |
+
#addtoany_template_button_code, #addtoany_css_code{display:none;}
|
809 |
</style>
|
810 |
<?php
|
811 |
}
|
icons/blip.png
ADDED
Binary file
|
icons/google_buzz.png
ADDED
Binary file
|
icons/grono.png
ADDED
Binary file
|
icons/wykop.png
ADDED
Binary file
|
services.php
CHANGED
@@ -50,6 +50,10 @@ $A2A_SHARE_SAVE_services = Array(
|
|
50 |
"name" => "Blinklist",
|
51 |
"icon" => "blinklist",
|
52 |
),
|
|
|
|
|
|
|
|
|
53 |
"blogmarks" => Array(
|
54 |
"name" => "BlogMarks",
|
55 |
"icon" => "blogmarks",
|
@@ -162,6 +166,10 @@ $A2A_SHARE_SAVE_services = Array(
|
|
162 |
"name" => "Google Bookmarks",
|
163 |
"icon" => "google",
|
164 |
),
|
|
|
|
|
|
|
|
|
165 |
"google_gmail" => Array(
|
166 |
"name" => "Google Gmail",
|
167 |
"icon" => "gmail",
|
@@ -170,6 +178,10 @@ $A2A_SHARE_SAVE_services = Array(
|
|
170 |
"name" => "Google Reader",
|
171 |
"icon" => "reader",
|
172 |
),
|
|
|
|
|
|
|
|
|
173 |
"hatena" => Array(
|
174 |
"name" => "Hatena",
|
175 |
"icon" => "hatena",
|
@@ -510,6 +522,10 @@ $A2A_SHARE_SAVE_services = Array(
|
|
510 |
"name" => "WordPress",
|
511 |
"icon" => "wordpress",
|
512 |
),
|
|
|
|
|
|
|
|
|
513 |
"xerpi" => Array(
|
514 |
"name" => "Xerpi",
|
515 |
"icon" => "xerpi",
|
50 |
"name" => "Blinklist",
|
51 |
"icon" => "blinklist",
|
52 |
),
|
53 |
+
"blip" => Array(
|
54 |
+
"name" => "Blip",
|
55 |
+
"icon" => "blip",
|
56 |
+
),
|
57 |
"blogmarks" => Array(
|
58 |
"name" => "BlogMarks",
|
59 |
"icon" => "blogmarks",
|
166 |
"name" => "Google Bookmarks",
|
167 |
"icon" => "google",
|
168 |
),
|
169 |
+
"google_buzz" => Array(
|
170 |
+
"name" => "Google Buzz",
|
171 |
+
"icon" => "google_buzz",
|
172 |
+
),
|
173 |
"google_gmail" => Array(
|
174 |
"name" => "Google Gmail",
|
175 |
"icon" => "gmail",
|
178 |
"name" => "Google Reader",
|
179 |
"icon" => "reader",
|
180 |
),
|
181 |
+
"grono" => Array(
|
182 |
+
"name" => "Grono",
|
183 |
+
"icon" => "grono",
|
184 |
+
),
|
185 |
"hatena" => Array(
|
186 |
"name" => "Hatena",
|
187 |
"icon" => "hatena",
|
522 |
"name" => "WordPress",
|
523 |
"icon" => "wordpress",
|
524 |
),
|
525 |
+
"wykop" => Array(
|
526 |
+
"name" => "Wykop",
|
527 |
+
"icon" => "wykop",
|
528 |
+
),
|
529 |
"xerpi" => Array(
|
530 |
"name" => "Xerpi",
|
531 |
"icon" => "xerpi",
|