Version Description
- Add Pinterest Pin It Button and options
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 1.2.4 |
Comparing to | |
See all releases |
Code changes from version 1.2.3 to 1.2.4
- README.txt +13 -8
- add-to-any.php +23 -7
- icons/pinterest_pin.png +0 -0
README.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Share Buttons by AddToAny ===
|
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, 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, 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 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
|
9 |
|
@@ -11,7 +11,7 @@ Share buttons for WordPress including AddToAny's universal sharing button, Faceb
|
|
11 |
|
12 |
The WordPress sharing plugin to help people **share**, **bookmark**, and **email** your posts and pages using any service, such as Facebook, Twitter, Pinterest, Google, Reddit, Tumblr, StumbleUpon, LinkedIn, and well over 100 more sharing and social bookmarking sites.
|
13 |
|
14 |
-
3rd party buttons include the **Facebook Like Button**, **Twitter Tweet Button**, **
|
15 |
|
16 |
This sharing plugin lets you customize the AddToAny universal Smart Menu, which places the services visitors use at the top of the menu based on each visitor's usage.
|
17 |
|
@@ -31,7 +31,7 @@ Social **share icons** let you optimize your blog posts & pages for specific soc
|
|
31 |
* Easily customizable for beginners or advanced users, and highly extensible for developers and designers
|
32 |
* Many more publisher and user features!
|
33 |
|
34 |
-
|
35 |
|
36 |
<a href="http://www.addtoany.com/share_save" title="Share">Share this</a> plugin
|
37 |
|
@@ -51,7 +51,7 @@ See also:
|
|
51 |
|
52 |
= Where are the options? =
|
53 |
|
54 |
-
In your Admin panel, go to `Settings` > `AddToAny`. Among other options, you can choose a universal sharing button, individual sharing icons, and official sharing buttons (Facebook Like Button, Twitter Tweet Button, Google+ Share Button, Google +1 Button) to display, and where and how to display them.
|
55 |
|
56 |
To place the buttons as a "widget" in your theme (if your theme supports WordPress Widgets), go to `Appearance` > `Widgets`, then drag AddToAny to an available Widget Area and click `Save`.
|
57 |
|
@@ -178,15 +178,17 @@ To change the title, description and/or image on Facebook, you will need to modi
|
|
178 |
|
179 |
For more technical information on setting your pages up for Facebook sharing, see "Step 2 - Get Open Graph Tags" in <a href="http://developers.facebook.com/docs/reference/plugins/like/">Facebook's documentation</a>.
|
180 |
|
181 |
-
= Why does the Facebook Like Button, Twitter Tweet Button, Google+ Share Button, or Google +1 Button have so much whitespace to the right of it? =
|
182 |
|
183 |
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
|
184 |
|
185 |
It's not recommended, but you can change the width of the Facebook Like Button using CSS code, for instance: `.a2a_button_facebook_like { width:50px !important; }`
|
186 |
|
187 |
-
The Twitter Tweet Button with '
|
188 |
|
189 |
-
The
|
|
|
|
|
190 |
|
191 |
The Google+ Share Button width can be changed using CSS code, for instance: `.a2a_button_google_plus_share { width:57px !important; }`
|
192 |
|
@@ -229,6 +231,9 @@ Upload the plugin directory (including all files and directories within) to the
|
|
229 |
|
230 |
== Changelog ==
|
231 |
|
|
|
|
|
|
|
232 |
= 1.2.3 =
|
233 |
* Adjust CSS to improve icon and text alignment
|
234 |
* Add <a href="http://wordpress.org/extend/plugins/add-to-any/faq/">FAQ</a> for removing sharing button(s) from Archive pages (including Category, Tag, Author, Date, and Search pages)
|
1 |
=== Share Buttons by AddToAny ===
|
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, 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.4
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
|
9 |
|
11 |
|
12 |
The WordPress sharing plugin to help people **share**, **bookmark**, and **email** your posts and pages using any service, such as Facebook, Twitter, Pinterest, Google, Reddit, Tumblr, StumbleUpon, LinkedIn, and well over 100 more sharing and social bookmarking sites.
|
13 |
|
14 |
+
3rd party buttons include the **Facebook Like Button**, **Twitter Tweet Button**, **Pinterest Pin It Button**, **Google+ Share Button** and **Google +1 Button**.
|
15 |
|
16 |
This sharing plugin lets you customize the AddToAny universal Smart Menu, which places the services visitors use at the top of the menu based on each visitor's usage.
|
17 |
|
31 |
* Easily customizable for beginners or advanced users, and highly extensible for developers and designers
|
32 |
* Many more publisher and user features!
|
33 |
|
34 |
+
With **years of active development**, over **2.6 million downloads**, and **ongoing support from the community**, this plugin still strives to be the best WordPress plugin for sharing. Thanks for your feedback!
|
35 |
|
36 |
<a href="http://www.addtoany.com/share_save" title="Share">Share this</a> plugin
|
37 |
|
51 |
|
52 |
= Where are the options? =
|
53 |
|
54 |
+
In your Admin panel, go to `Settings` > `AddToAny`. Among other options, you can choose a universal sharing button, individual sharing icons, and official sharing buttons (Facebook Like Button, Twitter Tweet Button, Pinterest Pin It Button, Google+ Share Button, Google +1 Button) to display, and where and how to display them.
|
55 |
|
56 |
To place the buttons as a "widget" in your theme (if your theme supports WordPress Widgets), go to `Appearance` > `Widgets`, then drag AddToAny to an available Widget Area and click `Save`.
|
57 |
|
178 |
|
179 |
For more technical information on setting your pages up for Facebook sharing, see "Step 2 - Get Open Graph Tags" in <a href="http://developers.facebook.com/docs/reference/plugins/like/">Facebook's documentation</a>.
|
180 |
|
181 |
+
= Why does the Facebook Like Button, Twitter Tweet Button, Pinterest Pin It Button, Google+ Share Button, or Google +1 Button have so much whitespace to the right of it? =
|
182 |
|
183 |
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
|
184 |
|
185 |
It's not recommended, but you can change the width of the Facebook Like Button using CSS code, for instance: `.a2a_button_facebook_like { width:50px !important; }`
|
186 |
|
187 |
+
The Twitter Tweet Button with 'show count' enabled is 130 pixels. You can change the width using CSS code, for instance: `.a2a_button_twitter_tweet { width:100px !important; }`
|
188 |
|
189 |
+
The Pinterest Pin It Button with 'show count' enabled is 76 pixels. You can change the width using CSS code, for instance: `.a2a_button_pinterest_pin { width:90px !important; }`
|
190 |
+
|
191 |
+
The Google +1 Button with 'show count' enabled is 90 pixels. You can change the width using CSS code, for instance: `.a2a_button_google_plusone { width:65px !important; }`
|
192 |
|
193 |
The Google+ Share Button width can be changed using CSS code, for instance: `.a2a_button_google_plus_share { width:57px !important; }`
|
194 |
|
231 |
|
232 |
== Changelog ==
|
233 |
|
234 |
+
= 1.2.4 =
|
235 |
+
* Add Pinterest Pin It Button and options
|
236 |
+
|
237 |
= 1.2.3 =
|
238 |
* Adjust CSS to improve icon and text alignment
|
239 |
* Add <a href="http://wordpress.org/extend/plugins/add-to-any/faq/">FAQ</a> for removing sharing button(s) from Archive pages (including Category, Tag, Author, Date, and Search pages)
|
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 |
Author: micropat
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
@@ -160,7 +160,7 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
160 |
$service_codes = (is_array($A2A_SHARE_SAVE_services)) ? array_keys($A2A_SHARE_SAVE_services) : Array();
|
161 |
|
162 |
// Include Facebook Like and Twitter Tweet etc.
|
163 |
-
array_unshift($service_codes, 'facebook_like', 'twitter_tweet', 'google_plusone', 'google_plus_share');
|
164 |
|
165 |
$options = get_option('addtoany_options');
|
166 |
|
@@ -179,7 +179,7 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
179 |
if ( !in_array($active_service, $service_codes) )
|
180 |
continue;
|
181 |
|
182 |
-
if ($active_service == 'facebook_like' || $active_service == 'twitter_tweet' || $active_service == 'google_plusone' || $active_service == 'google_plus_share') {
|
183 |
$special_args = $args;
|
184 |
$special_args['output_later'] = TRUE;
|
185 |
$link = ADDTOANY_SHARE_SAVE_SPECIAL($active_service, $special_args);
|
@@ -390,6 +390,12 @@ function ADDTOANY_SHARE_SAVE_SPECIAL($special_service_code, $args = array() ) {
|
|
390 |
$special_html = sprintf($special_anchor_template, $special_service_code, $custom_attributes);
|
391 |
}
|
392 |
|
|
|
|
|
|
|
|
|
|
|
|
|
393 |
if ( $output_later )
|
394 |
return $special_html;
|
395 |
else
|
@@ -919,6 +925,9 @@ function A2A_SHARE_SAVE_options_page() {
|
|
919 |
$new_options['special_google_plus_share_options'] = array(
|
920 |
'show_count' => ((@$_POST['addtoany_google_plus_share_show_count'] == '1') ? '1' : '-1')
|
921 |
);
|
|
|
|
|
|
|
922 |
|
923 |
update_option('addtoany_options', $new_options);
|
924 |
|
@@ -1018,7 +1027,10 @@ function A2A_SHARE_SAVE_options_page() {
|
|
1018 |
<span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/google_plusone.png'; ?>" width="32" height="20" alt="Google +1" /></span>
|
1019 |
</li>
|
1020 |
<li id="a2a_wp_google_plus_share" class="addtoany_special_service" title="Google+ Share button">
|
1021 |
-
<span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/google_plus_share.png'; ?>" width="57" height="20" alt="Google+ Share
|
|
|
|
|
|
|
1022 |
</li>
|
1023 |
<?php
|
1024 |
// Show all services
|
@@ -1330,8 +1342,8 @@ function A2A_SHARE_SAVE_admin_head() {
|
|
1330 |
|
1331 |
// Special service options?
|
1332 |
service_name = services_array[i].substr(7);
|
1333 |
-
if (service_name == 'facebook_like' || service_name == 'twitter_tweet' || service_name == 'google_plusone' || service_name == 'google_plus_share') {
|
1334 |
-
if (service_name == 'twitter_tweet' || service_name == 'google_plusone' || service_name == 'google_plus_share') {
|
1335 |
show_count_value = (jQuery('#' + services_array[i] + '_show_count').is(':checked')) ? '1' : '-1' ;
|
1336 |
jQuery('#addtoany_admin_form').append('<input class="addtoany_hidden_options" name="addtoany_' + service_name + '_show_count" type="hidden" value="' + show_count_value + '"/>');
|
1337 |
}
|
@@ -1375,7 +1387,7 @@ function A2A_SHARE_SAVE_admin_head() {
|
|
1375 |
+ '<option' + checked + ' value="recommend">Recommend</option>'
|
1376 |
+ '</select>';
|
1377 |
} else {
|
1378 |
-
// twitter_tweet & google_plusone & google_plus_share
|
1379 |
if (service_options[this_service_name] && service_options[this_service_name].show_count) {
|
1380 |
checked = ' checked="checked"';
|
1381 |
}
|
@@ -1475,6 +1487,10 @@ function A2A_SHARE_SAVE_admin_head() {
|
|
1475 |
|| ! isset($_POST['addtoany_google_plus_share_show_count']) && $options['special_google_plus_share_options']['show_count'] == '1') {
|
1476 |
?>service_options.google_plus_share = {show_count: 1};<?php
|
1477 |
}
|
|
|
|
|
|
|
|
|
1478 |
?>
|
1479 |
|
1480 |
jQuery.each(services, function(i, val){
|
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.4
|
7 |
Author: micropat
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
160 |
$service_codes = (is_array($A2A_SHARE_SAVE_services)) ? array_keys($A2A_SHARE_SAVE_services) : Array();
|
161 |
|
162 |
// Include Facebook Like and Twitter Tweet etc.
|
163 |
+
array_unshift($service_codes, 'facebook_like', 'twitter_tweet', 'google_plusone', 'google_plus_share', 'pinterest_pin');
|
164 |
|
165 |
$options = get_option('addtoany_options');
|
166 |
|
179 |
if ( !in_array($active_service, $service_codes) )
|
180 |
continue;
|
181 |
|
182 |
+
if ($active_service == 'facebook_like' || $active_service == 'twitter_tweet' || $active_service == 'google_plusone' || $active_service == 'google_plus_share' || $active_service == 'pinterest_pin') {
|
183 |
$special_args = $args;
|
184 |
$special_args['output_later'] = TRUE;
|
185 |
$link = ADDTOANY_SHARE_SAVE_SPECIAL($active_service, $special_args);
|
390 |
$special_html = sprintf($special_anchor_template, $special_service_code, $custom_attributes);
|
391 |
}
|
392 |
|
393 |
+
elseif ($special_service_code == 'pinterest_pin') {
|
394 |
+
$custom_attributes .= ($options['special_pinterest_pin_options']['show_count'] == '1') ? '' : ' data-pin-config="none"';
|
395 |
+
$custom_attributes .= ' data-url="' . $linkurl . '"';
|
396 |
+
$special_html = sprintf($special_anchor_template, $special_service_code, $custom_attributes);
|
397 |
+
}
|
398 |
+
|
399 |
if ( $output_later )
|
400 |
return $special_html;
|
401 |
else
|
925 |
$new_options['special_google_plus_share_options'] = array(
|
926 |
'show_count' => ((@$_POST['addtoany_google_plus_share_show_count'] == '1') ? '1' : '-1')
|
927 |
);
|
928 |
+
$new_options['special_pinterest_pin_options'] = array(
|
929 |
+
'show_count' => ((@$_POST['addtoany_pinterest_pin_show_count'] == '1') ? '1' : '-1')
|
930 |
+
);
|
931 |
|
932 |
update_option('addtoany_options', $new_options);
|
933 |
|
1027 |
<span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/google_plusone.png'; ?>" width="32" height="20" alt="Google +1" /></span>
|
1028 |
</li>
|
1029 |
<li id="a2a_wp_google_plus_share" class="addtoany_special_service" title="Google+ Share button">
|
1030 |
+
<span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/google_plus_share.png'; ?>" width="57" height="20" alt="Google+ Share" /></span>
|
1031 |
+
</li>
|
1032 |
+
<li id="a2a_wp_pinterest_pin" class="addtoany_special_service" title="Pinterest Pin It button">
|
1033 |
+
<span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/pinterest_pin.png'; ?>" width="40" height="20" alt="Pinterest Pin It" /></span>
|
1034 |
</li>
|
1035 |
<?php
|
1036 |
// Show all services
|
1342 |
|
1343 |
// Special service options?
|
1344 |
service_name = services_array[i].substr(7);
|
1345 |
+
if (service_name == 'facebook_like' || service_name == 'twitter_tweet' || service_name == 'google_plusone' || service_name == 'google_plus_share' || service_name == 'pinterest_pin') {
|
1346 |
+
if (service_name == 'twitter_tweet' || service_name == 'google_plusone' || service_name == 'google_plus_share' || service_name == 'pinterest_pin') {
|
1347 |
show_count_value = (jQuery('#' + services_array[i] + '_show_count').is(':checked')) ? '1' : '-1' ;
|
1348 |
jQuery('#addtoany_admin_form').append('<input class="addtoany_hidden_options" name="addtoany_' + service_name + '_show_count" type="hidden" value="' + show_count_value + '"/>');
|
1349 |
}
|
1387 |
+ '<option' + checked + ' value="recommend">Recommend</option>'
|
1388 |
+ '</select>';
|
1389 |
} else {
|
1390 |
+
// twitter_tweet & google_plusone & google_plus_share & pinterest_pin
|
1391 |
if (service_options[this_service_name] && service_options[this_service_name].show_count) {
|
1392 |
checked = ' checked="checked"';
|
1393 |
}
|
1487 |
|| ! isset($_POST['addtoany_google_plus_share_show_count']) && $options['special_google_plus_share_options']['show_count'] == '1') {
|
1488 |
?>service_options.google_plus_share = {show_count: 1};<?php
|
1489 |
}
|
1490 |
+
if ( isset($_POST['addtoany_pinterest_pin_show_count']) && $_POST['addtoany_pinterest_pin_show_count'] == '1'
|
1491 |
+
|| ! isset($_POST['addtoany_pinterest_pin_show_count']) && $options['special_pinterest_pin_options']['show_count'] == '1') {
|
1492 |
+
?>service_options.pinterest_pin = {show_count: 1};<?php
|
1493 |
+
}
|
1494 |
?>
|
1495 |
|
1496 |
jQuery.each(services, function(i, val){
|
icons/pinterest_pin.png
ADDED
Binary file
|