Version Description
- Wrap addtoany shortcode with .addtoany_shortcode to enable specific styling
- Add Flipboard
- Update FAQ on hardcoding just the icons (both large and small icons)
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 1.2.7.1 |
Comparing to | |
See all releases |
Code changes from version 1.2.7 to 1.2.7.1
- README.txt +12 -5
- add-to-any.php +4 -3
- icons/diigo.png +0 -0
- icons/flipboard.png +0 -0
- services.php +4 -0
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, sidebar, widget, email, e-mail, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook like, like, myspace, twitter, tweet, +1, plus 1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, messenger, stumbleupon, technorati, lockerz, addthis, sexybookmarks, sociable, sharedaddy, shareaholic, icon, icons, vector, SVG, wpmu, addtoany
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.7
|
6 |
-
Stable tag: 1.2.7
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
|
9 |
|
@@ -103,7 +103,7 @@ If you want to customize the shared URL and title for this button, use the follo
|
|
103 |
|
104 |
In the Theme Editor, place this line of code where you want the individual icons to appear in your theme (within an HTML list):
|
105 |
|
106 |
-
`<?php echo '<div class="a2a_kit addtoany_list">';
|
107 |
if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) { ADDTOANY_SHARE_SAVE_ICONS(); }
|
108 |
echo '</div>'; ?>`
|
109 |
|
@@ -111,13 +111,15 @@ If you want to customize the shared URL and title for these icons, use the follo
|
|
111 |
|
112 |
`<?php
|
113 |
if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) {
|
114 |
-
echo '<div class="a2a_kit addtoany_list">';
|
115 |
ADDTOANY_SHARE_SAVE_ICONS( array(
|
116 |
"linkname" => "Example Page", "linkurl" => "http://example.com/page.html"
|
117 |
));
|
118 |
echo '</div>';
|
119 |
} ?>`
|
120 |
|
|
|
|
|
121 |
Or you can place the icons as individual links without styling:
|
122 |
|
123 |
`<?php if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) { ADDTOANY_SHARE_SAVE_ICONS(); } ?>`
|
@@ -143,7 +145,7 @@ You can create a plugin or customize the following PHP sample code to add to you
|
|
143 |
}
|
144 |
add_filter('A2A_SHARE_SAVE_services', 'addtoany_add_services', 10, 1);`
|
145 |
|
146 |
-
= How can I align the
|
147 |
It depends on your theme, but you can try adding the following CSS code to your main stylesheet.
|
148 |
|
149 |
To align right:
|
@@ -194,7 +196,7 @@ The Google+ Share Button width can be changed using CSS code, for instance: `.a2
|
|
194 |
|
195 |
= Does the plugin output W3C valid code? =
|
196 |
|
197 |
-
Yes, this plugin outputs 100% W3C valid XHTML & HTML5 and W3C valid CSS 3
|
198 |
|
199 |
If you use the Facebook Like, Twitter Tweet or Google +1 buttons in an HTML5 theme, note that the button iframes use the `scrolling` attribute, which is valid XHTML but the attribute has been deprecated in HTML5. It's needed to prevent scrollbars from appearing over the Like, Tweet, and +1 buttons inside of the iframes.
|
200 |
|
@@ -231,6 +233,11 @@ Upload the plugin directory (including all files and directories within) to the
|
|
231 |
|
232 |
== Changelog ==
|
233 |
|
|
|
|
|
|
|
|
|
|
|
234 |
= 1.2.7 =
|
235 |
* Fix backwards compatibility with WordPress 2.8
|
236 |
* Checkbox option to disable sharing buttons on each post and page
|
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, sidebar, widget, email, e-mail, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook like, like, myspace, twitter, tweet, +1, plus 1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, messenger, stumbleupon, technorati, lockerz, addthis, sexybookmarks, sociable, sharedaddy, shareaholic, icon, icons, vector, SVG, wpmu, addtoany
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.7
|
6 |
+
Stable tag: 1.2.7.1
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
|
9 |
|
103 |
|
104 |
In the Theme Editor, place this line of code where you want the individual icons to appear in your theme (within an HTML list):
|
105 |
|
106 |
+
`<?php echo '<div class="a2a_kit a2a_kit_size_32 addtoany_list">';
|
107 |
if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) { ADDTOANY_SHARE_SAVE_ICONS(); }
|
108 |
echo '</div>'; ?>`
|
109 |
|
111 |
|
112 |
`<?php
|
113 |
if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) {
|
114 |
+
echo '<div class="a2a_kit a2a_kit_size_32 addtoany_list">';
|
115 |
ADDTOANY_SHARE_SAVE_ICONS( array(
|
116 |
"linkname" => "Example Page", "linkurl" => "http://example.com/page.html"
|
117 |
));
|
118 |
echo '</div>';
|
119 |
} ?>`
|
120 |
|
121 |
+
(If you are using the small icons, remove `a2a_kit_size_32` from the line `<div class="a2a_kit a2a_kit_size_32 addtoany_list">` so that you have `<div class="a2a_kit addtoany_list">`.)
|
122 |
+
|
123 |
Or you can place the icons as individual links without styling:
|
124 |
|
125 |
`<?php if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) { ADDTOANY_SHARE_SAVE_ICONS(); } ?>`
|
145 |
}
|
146 |
add_filter('A2A_SHARE_SAVE_services', 'addtoany_add_services', 10, 1);`
|
147 |
|
148 |
+
= How can I align the sharing button(s) to the center or to the right side of posts? =
|
149 |
It depends on your theme, but you can try adding the following CSS code to your main stylesheet.
|
150 |
|
151 |
To align right:
|
196 |
|
197 |
= Does the plugin output W3C valid code? =
|
198 |
|
199 |
+
Yes, this plugin outputs 100% W3C valid XHTML & HTML5 and W3C valid CSS 3 by default.
|
200 |
|
201 |
If you use the Facebook Like, Twitter Tweet or Google +1 buttons in an HTML5 theme, note that the button iframes use the `scrolling` attribute, which is valid XHTML but the attribute has been deprecated in HTML5. It's needed to prevent scrollbars from appearing over the Like, Tweet, and +1 buttons inside of the iframes.
|
202 |
|
233 |
|
234 |
== Changelog ==
|
235 |
|
236 |
+
= 1.2.7.1 =
|
237 |
+
* Wrap addtoany shortcode with .addtoany_shortcode to enable specific styling
|
238 |
+
* Add Flipboard
|
239 |
+
* Update FAQ on hardcoding just the icons (both large and small icons)
|
240 |
+
|
241 |
= 1.2.7 =
|
242 |
* Fix backwards compatibility with WordPress 2.8
|
243 |
* Checkbox option to disable sharing buttons on each post and page
|
add-to-any.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Share Buttons by AddToAny
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
-
Version: 1.2.7
|
7 |
Author: micropat
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
@@ -682,12 +682,13 @@ function A2A_SHARE_SAVE_shortcode( $attributes ) {
|
|
682 |
'url' => 'something',
|
683 |
'title' => 'something else',
|
684 |
), $attributes ) );
|
685 |
-
|
686 |
$linkname = (isset($attributes['title'])) ? $attributes['title'] : FALSE;
|
687 |
$linkurl = (isset($attributes['url'])) ? $attributes['url'] : FALSE;
|
688 |
$output_later = TRUE;
|
689 |
|
690 |
-
return
|
|
|
|
|
691 |
}
|
692 |
|
693 |
add_shortcode( 'addtoany', 'A2A_SHARE_SAVE_shortcode' );
|
3 |
Plugin Name: Share Buttons by AddToAny
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
+
Version: 1.2.7.1
|
7 |
Author: micropat
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
682 |
'url' => 'something',
|
683 |
'title' => 'something else',
|
684 |
), $attributes ) );
|
|
|
685 |
$linkname = (isset($attributes['title'])) ? $attributes['title'] : FALSE;
|
686 |
$linkurl = (isset($attributes['url'])) ? $attributes['url'] : FALSE;
|
687 |
$output_later = TRUE;
|
688 |
|
689 |
+
return '<div class="addtoany_shortcode">'
|
690 |
+
. ADDTOANY_SHARE_SAVE_KIT( compact('linkname', 'linkurl', 'output_later') )
|
691 |
+
. '</div>';
|
692 |
}
|
693 |
|
694 |
add_shortcode( 'addtoany', 'A2A_SHARE_SAVE_shortcode' );
|
icons/diigo.png
CHANGED
Binary file
|
icons/flipboard.png
ADDED
Binary file
|
services.php
CHANGED
@@ -168,6 +168,10 @@ $A2A_SHARE_SAVE_services = Array(
|
|
168 |
"name" => "Favoriten",
|
169 |
"icon" => "favoriten",
|
170 |
),
|
|
|
|
|
|
|
|
|
171 |
"folkd" => Array(
|
172 |
"name" => "Folkd",
|
173 |
"icon" => "folkd",
|
168 |
"name" => "Favoriten",
|
169 |
"icon" => "favoriten",
|
170 |
),
|
171 |
+
"flipboard" => Array(
|
172 |
+
"name" => "Flipboard",
|
173 |
+
"icon" => "flipboard",
|
174 |
+
),
|
175 |
"folkd" => Array(
|
176 |
"name" => "Folkd",
|
177 |
"icon" => "folkd",
|