Version Description
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 0.9.9.6.9 |
Comparing to | |
See all releases |
Code changes from version 0.9.9.6.8 to 0.9.9.6.9
- README.txt +19 -5
- add-to-any.php +76 -38
- addtoany.min.css +1 -1
- icons/facebook_like.png +0 -0
- icons/twitter_tweet.png +0 -0
README.txt
CHANGED
@@ -1,15 +1,17 @@
|
|
1 |
=== AddToAny: Share/Bookmark/Email Button ===
|
2 |
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, sociable, icon, icons, wpmu, addtoany, add
|
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 |
|
10 |
== Description ==
|
11 |
|
12 |
-
The WordPress plugin to help people **share**, **bookmark**, and **email** your posts and pages using **any service**, such as Facebook, Twitter, Google Buzz, Digg, Delicious, and well over 100 more social bookmarking
|
|
|
|
|
13 |
|
14 |
<a href="http://www.addtoany.com/" title="Sharing and bookmarking button widget" target="_blank">Share Button</a> (demo)
|
15 |
|
@@ -22,7 +24,7 @@ Standalone **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 |
* Google Analytics integration (<a href="http://www.addtoany.com/ext/google_analytics/">access guide</a>)
|
24 |
* WordPress optimized, localized (English, Chinese, Spanish, Japanese, French, Portuguese, Italian, Dutch, Danish, Catalan, Russian, Albanian, Romanian, Belarusian)
|
25 |
-
* Easily customizable for beginners
|
26 |
* Many more publisher and user features!
|
27 |
|
28 |
After **years of ongoing development**, over **1 million downloads**, and **ongoing support from the community**, AddToAny still strives to be the best WordPress plugin for sharing. We hope it's perfect for everyone by version 1.0.
|
@@ -46,7 +48,7 @@ See also:
|
|
46 |
|
47 |
= Where are the options? =
|
48 |
|
49 |
-
In your Admin panel, go to `Settings` > `Share/Save Buttons`. Among other options, you can choose which button
|
50 |
|
51 |
= Why isn't the drop-down menu appearing? =
|
52 |
|
@@ -145,6 +147,12 @@ Facebook does link sharing a little differently than most other services. Facebo
|
|
145 |
|
146 |
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 for details, and post in the WordPress or plugin author's forums for more support.
|
147 |
|
|
|
|
|
|
|
|
|
|
|
|
|
148 |
= Does the plugin output W3C valid code? =
|
149 |
|
150 |
Yes, AddToAny outputs 100% W3C valid XHTML and W3C valid CSS 3.0.
|
@@ -169,6 +177,12 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
|
|
169 |
|
170 |
== Changelog ==
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
= .9.9.6.8 =
|
173 |
* A2A Kit is now inline again for backwards compatibility with manual placements
|
174 |
* Container (used for the default auto-placement) now clears floats to fix <a href="http://wordpress.org/support/topic/plugin-addtoany-sharebookmarkemail-button-button-not-at-bottom-of-post">position issue when an image is aligned left or right</a>
|
1 |
=== AddToAny: Share/Bookmark/Email Button ===
|
2 |
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, facebook like, like, myspace, twitter, tweet, messenger, stumbleupon, technorati, sociable, icon, icons, wpmu, addtoany, add
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.0
|
6 |
+
Stable tag: 0.9.9.6.9
|
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 |
|
10 |
== Description ==
|
11 |
|
12 |
+
The WordPress plugin to help people **share**, **bookmark**, and **email** your posts and pages using **any service**, such as Facebook, Twitter, Google Buzz, Digg, Delicious, and well over 100 more sharing and social bookmarking sites. New: **Facebook Like Button** and **Twitter Tweet Button**.
|
13 |
+
|
14 |
+
The plugin comes with AddToAny's customizable Smart Menu, which places the services visitors use at the top of the menu, based on each visitor's browsing and usage history.
|
15 |
|
16 |
<a href="http://www.addtoany.com/" title="Sharing and bookmarking button widget" target="_blank">Share Button</a> (demo)
|
17 |
|
24 |
* Includes all <a href="http://www.addtoany.com/services/" target="_blank">services</a>
|
25 |
* Google Analytics integration (<a href="http://www.addtoany.com/ext/google_analytics/">access guide</a>)
|
26 |
* WordPress optimized, localized (English, Chinese, Spanish, Japanese, French, Portuguese, Italian, Dutch, Danish, Catalan, Russian, Albanian, Romanian, Belarusian)
|
27 |
+
* Easily customizable for beginners or advanced users, and highly extensible for developers and designers
|
28 |
* Many more publisher and user features!
|
29 |
|
30 |
After **years of ongoing development**, over **1 million downloads**, and **ongoing support from the community**, AddToAny still strives to be the best WordPress plugin for sharing. We hope it's perfect for everyone by version 1.0.
|
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, individual icons and advanced sharing buttons (Facebook Like Button and Twitter Tweet Button) to display, and where and how to display them.
|
52 |
|
53 |
= Why isn't the drop-down menu appearing? =
|
54 |
|
147 |
|
148 |
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 for details, and post in the WordPress or plugin author's forums for more support.
|
149 |
|
150 |
+
= Why does the Facebook Like Button have so much whitespace to the right of it? =
|
151 |
+
|
152 |
+
The minimum width for the Facebook Like Button is 90 pixels. This is required to display the total number of Likes to the right of the button. See Facebook's <a href="http://developers.facebook.com/docs/reference/plugins/like">Like Button documentation</a> for details.
|
153 |
+
|
154 |
+
It's not recommended, but you can change the width of the Facebook Like Button using CSS code, for instance: `.facebook_like { width:50px !important; }`
|
155 |
+
|
156 |
= Does the plugin output W3C valid code? =
|
157 |
|
158 |
Yes, AddToAny outputs 100% W3C valid XHTML and W3C valid CSS 3.0.
|
177 |
|
178 |
== Changelog ==
|
179 |
|
180 |
+
= .9.9.6.9 =
|
181 |
+
* Facebook Like button
|
182 |
+
* Twitter Tweet button
|
183 |
+
* Standalone service chooser - improved drag & drop and styling
|
184 |
+
* Update CSS to support Like and Tweet
|
185 |
+
|
186 |
= .9.9.6.8 =
|
187 |
* A2A Kit is now inline again for backwards compatibility with manual placements
|
188 |
* Container (used for the default auto-placement) now clears floats to fix <a href="http://wordpress.org/support/topic/plugin-addtoany-sharebookmarkemail-button-button-not-at-bottom-of-post">position issue when an image is aligned left or right</a>
|
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 |
*/
|
@@ -103,6 +103,11 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
103 |
// Make available services extensible via plugins, themes (functions.php), etc.
|
104 |
$A2A_SHARE_SAVE_services = apply_filters('A2A_SHARE_SAVE_services', $A2A_SHARE_SAVE_services);
|
105 |
|
|
|
|
|
|
|
|
|
|
|
106 |
$active_services = get_option('A2A_SHARE_SAVE_active_services');
|
107 |
|
108 |
$ind_html = "" . $html_container_open;
|
@@ -112,40 +117,44 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
112 |
|
113 |
foreach($active_services as $active_service) {
|
114 |
|
115 |
-
|
116 |
-
if( !in_array($active_service, array_keys($A2A_SHARE_SAVE_services)) )
|
117 |
continue;
|
118 |
|
119 |
-
$
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
$
|
125 |
-
$
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
130 |
}
|
131 |
-
|
132 |
-
if ( $custom_service && isset($service['icon_url']) )
|
133 |
-
$icon = $service['icon_url'];
|
134 |
-
elseif ( ! isset($service['icon']))
|
135 |
-
$icon = 'default';
|
136 |
-
else
|
137 |
-
$icon = $service['icon'];
|
138 |
-
$width = (isset($service['icon_width'])) ? $service['icon_width'] : '16';
|
139 |
-
$height = (isset($service['icon_height'])) ? $service['icon_height'] : '16';
|
140 |
-
|
141 |
-
$url = ($custom_service) ? $href : "http://www.addtoany.com/add_to/" . $safe_name . "?linkurl=" . $linkurl_enc . "&linkname=" . $linkname_enc;
|
142 |
-
$src = ($custom_service) ? $icon : $A2A_SHARE_SAVE_plugin_url_path."/icons/".$icon.".png";
|
143 |
-
|
144 |
-
$link = $html_wrap_open."<a class=\"a2a_button_$safe_name\" href=\"$url\" title=\"$name\" rel=\"nofollow\" target=\"_blank\">";
|
145 |
-
$link .= "<img src=\"$src\" width=\"$width\" height=\"$height\" alt=\"$name\"/>";
|
146 |
-
$link .= "</a>".$html_wrap_close;
|
147 |
|
148 |
-
$ind_html .=
|
149 |
}
|
150 |
|
151 |
$ind_html .= $html_container_close;
|
@@ -270,6 +279,26 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
270 |
echo $button_html;
|
271 |
}
|
272 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
if (!function_exists('A2A_menu_locale')) {
|
274 |
function A2A_menu_locale() {
|
275 |
global $A2A_locale;
|
@@ -440,7 +469,7 @@ function A2A_SHARE_SAVE_button_css_IE() {
|
|
440 |
|
441 |
// Use stylesheet?
|
442 |
if (get_option('A2A_SHARE_SAVE_inline_css') != '-1' && ! is_admin()) {
|
443 |
-
wp_enqueue_style('A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.
|
444 |
|
445 |
// Conditional inline CSS stylesheet for IE
|
446 |
add_filter('wp_head', 'A2A_SHARE_SAVE_button_css_IE');
|
@@ -582,6 +611,12 @@ function A2A_SHARE_SAVE_options_page() {
|
|
582 |
</ul>
|
583 |
<p id="addtoany_services_info"><?php _e("Choose the services you want below. Click a chosen service again to remove. Reorder services by dragging and dropping as they appear above.", "add-to-any"); ?></p>
|
584 |
<ul id="addtoany_services_selectable" class="addtoany_admin_list">
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
<?php
|
586 |
// Show all services
|
587 |
$active_services = get_option('A2A_SHARE_SAVE_active_services');
|
@@ -596,8 +631,7 @@ function A2A_SHARE_SAVE_options_page() {
|
|
596 |
if ( ! isset($site['icon']))
|
597 |
$site['icon'] = 'default';
|
598 |
?>
|
599 |
-
<li id="a2a_wp_<?php echo $service_safe_name; ?>"
|
600 |
-
title="<?php echo $site['name']; ?>">
|
601 |
<span><img src="<?php echo ($custom_service) ? $site['icon_url'] : $A2A_SHARE_SAVE_plugin_url_path.'/icons/'.$site['icon'].'.png'; ?>" width="<?php echo (isset($site['icon_width'])) ? $site['icon_width'] : '16'; ?>" height="<?php echo (isset($site['icon_height'])) ? $site['icon_height'] : '16'; ?>" alt="" /><?php echo $site['name']; ?></span>
|
602 |
</li>
|
603 |
<?php
|
@@ -778,7 +812,7 @@ function A2A_SHARE_SAVE_options_page() {
|
|
778 |
</form>
|
779 |
|
780 |
<h2><?php _e('Like this plugin?','add-to-any'); ?></h2>
|
781 |
-
<p><?php _e('<a href="http://wordpress.org/extend/plugins/add-to-any/">Give it a good rating</a> on WordPress.org.','add-to-any');
|
782 |
<p><?php _e('<a href="http://www.addtoany.com/share_save?linkname=WordPress%20Share%20%2F%20Bookmark%20Plugin%20by%20AddToAny.com&linkurl=http%3A%2F%2Fwordpress.org%2Fextend%2Fplugins%2Fadd-to-any%2F">Share it</a> with your friends.','add-to-any'); ?></p>
|
783 |
|
784 |
<h2><?php _e('Need support?','add-to-any'); ?></h2>
|
@@ -825,6 +859,7 @@ function A2A_SHARE_SAVE_admin_head() {
|
|
825 |
};
|
826 |
|
827 |
jQuery('#addtoany_services_sortable').sortable({
|
|
|
828 |
items: 'li:not(#addtoany_show_services, .dummy)',
|
829 |
placeholder: 'ui-sortable-placeholder',
|
830 |
opacity: .6,
|
@@ -913,23 +948,26 @@ function A2A_SHARE_SAVE_admin_head() {
|
|
913 |
--></script>
|
914 |
|
915 |
<style type="text/css">
|
916 |
-
.ui-sortable-placeholder{border:1px dashed #AAA;}
|
917 |
.addtoany_admin_list{list-style:none;padding:0;margin:0;}
|
918 |
.addtoany_admin_list li{-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;}
|
919 |
|
920 |
#addtoany_services_selectable{clear:left;display:none;}
|
921 |
-
#addtoany_services_selectable li{cursor:crosshair;float:left;width:150px;font-size:11px;margin:0;padding:
|
922 |
<?php // white-space:nowrap could go above, but then webkit does not wrap floats if parent has no width set; wrapping in <span> instead (below) ?>
|
923 |
#addtoany_services_selectable li span{white-space:nowrap;}
|
924 |
#addtoany_services_selectable li:hover, #addtoany_services_selectable li.addtoany_selected{border:1px solid #AAA;background-color:#FFF;}
|
925 |
#addtoany_services_selectable li.addtoany_selected:hover{border-color:#F00;}
|
926 |
#addtoany_services_selectable li:active{border:1px solid #000;}
|
927 |
-
#addtoany_services_selectable
|
|
|
|
|
928 |
|
929 |
#addtoany_services_sortable li, #addtoany_services_sortable li.dummy:hover{cursor:move;float:left;padding:9px;border:1px solid transparent;_border-color:#FAFAFA/*IE6*/;}
|
930 |
#addtoany_services_sortable li:hover{border:1px solid #AAA;background-color:#FFF;}
|
931 |
#addtoany_services_sortable li.dummy, #addtoany_services_sortable li.dummy:hover{cursor:auto;background-color:transparent;}
|
932 |
#addtoany_services_sortable img{width:16px;height:16px;border:0;vertical-align:middle;}
|
|
|
933 |
|
934 |
li#addtoany_show_services{border:1px solid #DFDFDF;background-color:#FFF;cursor:pointer;}
|
935 |
li#addtoany_show_services:hover{border:1px solid #AAA;}
|
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.9
|
7 |
Author: AddToAny
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
103 |
// Make available services extensible via plugins, themes (functions.php), etc.
|
104 |
$A2A_SHARE_SAVE_services = apply_filters('A2A_SHARE_SAVE_services', $A2A_SHARE_SAVE_services);
|
105 |
|
106 |
+
$service_codes = array_keys($A2A_SHARE_SAVE_services);
|
107 |
+
|
108 |
+
// Include Facebook Like and Twitter Tweet
|
109 |
+
array_unshift($service_codes, 'facebook_like', 'twitter_tweet');
|
110 |
+
|
111 |
$active_services = get_option('A2A_SHARE_SAVE_active_services');
|
112 |
|
113 |
$ind_html = "" . $html_container_open;
|
117 |
|
118 |
foreach($active_services as $active_service) {
|
119 |
|
120 |
+
if ( !in_array($active_service, $service_codes) )
|
|
|
121 |
continue;
|
122 |
|
123 |
+
if ($active_service == 'facebook_like' || $active_service == 'twitter_tweet') {
|
124 |
+
$link = ADDTOANY_SHARE_SAVE_SPECIAL($active_service, $args);
|
125 |
+
}
|
126 |
+
else {
|
127 |
+
$service = $A2A_SHARE_SAVE_services[$active_service];
|
128 |
+
$safe_name = $active_service;
|
129 |
+
$name = $service['name'];
|
130 |
+
|
131 |
+
if (isset($service['href'])) {
|
132 |
+
$custom_service = TRUE;
|
133 |
+
$href = $service['href'];
|
134 |
+
$href = str_replace('A2A_LINKURL', $linkurl_enc, $href);
|
135 |
+
$href = str_replace('A2A_LINKNAME', $linkname_enc, $href);
|
136 |
+
} else {
|
137 |
+
$custom_service = FALSE;
|
138 |
+
}
|
139 |
+
|
140 |
+
if ( $custom_service && isset($service['icon_url']) )
|
141 |
+
$icon = $service['icon_url'];
|
142 |
+
elseif ( ! isset($service['icon']))
|
143 |
+
$icon = 'default';
|
144 |
+
else
|
145 |
+
$icon = $service['icon'];
|
146 |
+
$width = (isset($service['icon_width'])) ? $service['icon_width'] : '16';
|
147 |
+
$height = (isset($service['icon_height'])) ? $service['icon_height'] : '16';
|
148 |
+
|
149 |
+
$url = ($custom_service) ? $href : "http://www.addtoany.com/add_to/" . $safe_name . "?linkurl=" . $linkurl_enc . "&linkname=" . $linkname_enc;
|
150 |
+
$src = ($custom_service) ? $icon : $A2A_SHARE_SAVE_plugin_url_path."/icons/".$icon.".png";
|
151 |
+
|
152 |
+
$link = $html_wrap_open."<a class=\"a2a_button_$safe_name\" href=\"$url\" title=\"$name\" rel=\"nofollow\" target=\"_blank\">";
|
153 |
+
$link .= "<img src=\"$src\" width=\"$width\" height=\"$height\" alt=\"$name\"/>";
|
154 |
+
$link .= "</a>".$html_wrap_close;
|
155 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
|
157 |
+
$ind_html .= $link;
|
158 |
}
|
159 |
|
160 |
$ind_html .= $html_container_close;
|
279 |
echo $button_html;
|
280 |
}
|
281 |
|
282 |
+
function ADDTOANY_SHARE_SAVE_SPECIAL($special_service_code, $args = array() ) {
|
283 |
+
// $args array = output_later, linkname, linkurl
|
284 |
+
|
285 |
+
$linkname = (isset($args['linkname'])) ? $args['linkname'] : FALSE;
|
286 |
+
$linkurl = (isset($args['linkurl'])) ? $args['linkurl'] : FALSE;
|
287 |
+
|
288 |
+
$args = array_merge($args, A2A_SHARE_SAVE_link_vars($linkname, $linkurl)); // linkname_enc, etc.
|
289 |
+
extract( $args );
|
290 |
+
|
291 |
+
if ($special_service_code == 'facebook_like')
|
292 |
+
$special_html = '<iframe class="addtoany_special_service facebook_like" src="http://www.facebook.com/plugins/like.php?href=' . $linkurl_enc . '&layout=button_count&show_faces=false&width=75&action=like&colorscheme=light&height=20" allowtransparency="true" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:90px;height:20px"></iframe>';
|
293 |
+
elseif ($special_service_code == 'twitter_tweet')
|
294 |
+
$special_html = '<iframe class="addtoany_special_service twitter_tweet" src="http://platform.twitter.com/widgets/tweet_button.html?url=' . $linkurl_enc . '&counturl=' . $linkurl_enc . '&count=horizontal&text=' . $linkname_enc . ': " allowtransparency="true" frameborder="0" scrolling="no" style="border:none;overflow:hidden;width:55px;height:20px"></iframe>';
|
295 |
+
|
296 |
+
if ( $output_later )
|
297 |
+
return $special_html;
|
298 |
+
else
|
299 |
+
echo $special_html;
|
300 |
+
}
|
301 |
+
|
302 |
if (!function_exists('A2A_menu_locale')) {
|
303 |
function A2A_menu_locale() {
|
304 |
global $A2A_locale;
|
469 |
|
470 |
// Use stylesheet?
|
471 |
if (get_option('A2A_SHARE_SAVE_inline_css') != '-1' && ! is_admin()) {
|
472 |
+
wp_enqueue_style('A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.3');
|
473 |
|
474 |
// Conditional inline CSS stylesheet for IE
|
475 |
add_filter('wp_head', 'A2A_SHARE_SAVE_button_css_IE');
|
611 |
</ul>
|
612 |
<p id="addtoany_services_info"><?php _e("Choose the services you want below. Click a chosen service again to remove. Reorder services by dragging and dropping as they appear above.", "add-to-any"); ?></p>
|
613 |
<ul id="addtoany_services_selectable" class="addtoany_admin_list">
|
614 |
+
<li id="a2a_wp_facebook_like" class="addtoany_special_service" title="Facebook Like button">
|
615 |
+
<span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/facebook_like.png'; ?>" width="50" height="20" alt="Facebook Like" /></span>
|
616 |
+
</li>
|
617 |
+
<li id="a2a_wp_twitter_tweet" class="addtoany_special_service" title="Twitter Tweet button">
|
618 |
+
<span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/twitter_tweet.png'; ?>" width="55" height="20" alt="Twitter Tweet" /></span>
|
619 |
+
</li>
|
620 |
<?php
|
621 |
// Show all services
|
622 |
$active_services = get_option('A2A_SHARE_SAVE_active_services');
|
631 |
if ( ! isset($site['icon']))
|
632 |
$site['icon'] = 'default';
|
633 |
?>
|
634 |
+
<li id="a2a_wp_<?php echo $service_safe_name; ?>" title="<?php echo $site['name']; ?>">
|
|
|
635 |
<span><img src="<?php echo ($custom_service) ? $site['icon_url'] : $A2A_SHARE_SAVE_plugin_url_path.'/icons/'.$site['icon'].'.png'; ?>" width="<?php echo (isset($site['icon_width'])) ? $site['icon_width'] : '16'; ?>" height="<?php echo (isset($site['icon_height'])) ? $site['icon_height'] : '16'; ?>" alt="" /><?php echo $site['name']; ?></span>
|
636 |
</li>
|
637 |
<?php
|
812 |
</form>
|
813 |
|
814 |
<h2><?php _e('Like this plugin?','add-to-any'); ?></h2>
|
815 |
+
<p><?php _e('<a href="http://wordpress.org/extend/plugins/add-to-any/">Give it a good rating</a> on WordPress.org.','add-to-any'); ?> <a href="http://www.facebook.com/AddToAny">Facebook</a> / <a href="http://twitter.com/AddToAny">Twitter</a></p>
|
816 |
<p><?php _e('<a href="http://www.addtoany.com/share_save?linkname=WordPress%20Share%20%2F%20Bookmark%20Plugin%20by%20AddToAny.com&linkurl=http%3A%2F%2Fwordpress.org%2Fextend%2Fplugins%2Fadd-to-any%2F">Share it</a> with your friends.','add-to-any'); ?></p>
|
817 |
|
818 |
<h2><?php _e('Need support?','add-to-any'); ?></h2>
|
859 |
};
|
860 |
|
861 |
jQuery('#addtoany_services_sortable').sortable({
|
862 |
+
forcePlaceholderSize: true,
|
863 |
items: 'li:not(#addtoany_show_services, .dummy)',
|
864 |
placeholder: 'ui-sortable-placeholder',
|
865 |
opacity: .6,
|
948 |
--></script>
|
949 |
|
950 |
<style type="text/css">
|
951 |
+
.ui-sortable-placeholder{background-color:transparent;border:1px dashed #AAA !important;}
|
952 |
.addtoany_admin_list{list-style:none;padding:0;margin:0;}
|
953 |
.addtoany_admin_list li{-webkit-border-radius:9px;-moz-border-radius:9px;border-radius:9px;}
|
954 |
|
955 |
#addtoany_services_selectable{clear:left;display:none;}
|
956 |
+
#addtoany_services_selectable li{cursor:crosshair;float:left;width:150px;font-size:11px;margin:0;padding:6px;border:1px solid transparent;_border-color:#FAFAFA/*IE6*/;overflow:hidden;}
|
957 |
<?php // white-space:nowrap could go above, but then webkit does not wrap floats if parent has no width set; wrapping in <span> instead (below) ?>
|
958 |
#addtoany_services_selectable li span{white-space:nowrap;}
|
959 |
#addtoany_services_selectable li:hover, #addtoany_services_selectable li.addtoany_selected{border:1px solid #AAA;background-color:#FFF;}
|
960 |
#addtoany_services_selectable li.addtoany_selected:hover{border-color:#F00;}
|
961 |
#addtoany_services_selectable li:active{border:1px solid #000;}
|
962 |
+
#addtoany_services_selectable img{margin:0 4px;width:16px;height:16px;border:0;vertical-align:middle;}
|
963 |
+
#addtoany_services_selectable .addtoany_special_service{padding:3px 6px;}
|
964 |
+
#addtoany_services_selectable .addtoany_special_service img{width:auto;height:20px;}
|
965 |
|
966 |
#addtoany_services_sortable li, #addtoany_services_sortable li.dummy:hover{cursor:move;float:left;padding:9px;border:1px solid transparent;_border-color:#FAFAFA/*IE6*/;}
|
967 |
#addtoany_services_sortable li:hover{border:1px solid #AAA;background-color:#FFF;}
|
968 |
#addtoany_services_sortable li.dummy, #addtoany_services_sortable li.dummy:hover{cursor:auto;background-color:transparent;}
|
969 |
#addtoany_services_sortable img{width:16px;height:16px;border:0;vertical-align:middle;}
|
970 |
+
#addtoany_services_sortable .addtoany_special_service img{width:auto;height:20px;}
|
971 |
|
972 |
li#addtoany_show_services{border:1px solid #DFDFDF;background-color:#FFF;cursor:pointer;}
|
973 |
li#addtoany_show_services:hover{border:1px solid #AAA;}
|
addtoany.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.addtoany_share_save_container{clear:both;line-height:32px;margin:16px 0}.addtoany_list{display:inline}.addtoany_list a{padding:0 9px}.addtoany_list a img{height:16px;opacity:.7;overflow:hidden;vertical-align:middle;width:16px}.addtoany_list a:hover img,.addtoany_list a.addtoany_share_save img{opacity:1}a.addtoany_share_save img{border:0;width:auto;height:auto}
|
1 |
+
.addtoany_share_save_container{clear:both;line-height:32px;margin:16px 0}.addtoany_list{display:inline}.addtoany_list a{padding:0 9px}.addtoany_list a img{height:16px;opacity:.7;overflow:hidden;vertical-align:middle;width:16px}.addtoany_list a:hover img,.addtoany_list a.addtoany_share_save img{opacity:1}iframe.addtoany_special_service{padding:0 9px;vertical-align:middle}a.addtoany_share_save img{border:0;width:auto;height:auto}
|
icons/facebook_like.png
ADDED
Binary file
|
icons/twitter_tweet.png
ADDED
Binary file
|