AddToAny Share Buttons - Version 0.9.9.6.6

Version Description

Download this release

Release Info

Developer micropat
Plugin Icon 128x128 AddToAny Share Buttons
Version 0.9.9.6.6
Comparing to
See all releases

Code changes from version 0.9.9.6.5 to 0.9.9.6.6

Files changed (3) hide show
  1. README.txt +21 -17
  2. add-to-any.php +44 -45
  3. addtoany.min.css +1 -1
README.txt CHANGED
@@ -1,31 +1,31 @@
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, 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
 
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 and sharing sites. 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.
13
 
14
  <a href="http://www.addtoany.com/" title="Sharing and bookmarking button widget" target="_blank">Share Button</a> (demo)
15
 
16
- The Email tab makes it easy to share via Google Gmail, Yahoo! Mail, Hotmail, AOL, and any other web-based emailer or desktop program. The **Add to Favorites** button (or Bookmark tab) helps users bookmark using any browser (Internet Explorer, Firefox, Chrome, Safari, Opera, etc.).
17
 
18
- Individual **service icons** let you optimize your blog posts for specific social sites. Choose from over 100 individual services.
19
 
20
- * AddToAny <a href="http://www.addtoany.com/blog/smart-menus-the-services-your-visitors-use-displayed-first/" target="_blank">Smart Menu</a>
21
  * Individual service links (like Sociable)
22
  * Includes all <a href="http://www.addtoany.com/services/" target="_blank">services</a>
23
- * Menu updated automatically
24
  * Google Analytics integration (<a href="http://www.addtoany.com/ext/google_analytics/">access guide</a>)
25
  * WordPress optimized, localized (English, Chinese, Spanish, Japanese, French, Portuguese, Italian, Dutch, Danish, Catalan, Russian, Albanian, Romanian, Belarusian)
 
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.
29
 
30
  <a href="http://www.addtoany.com/share_save" title="Share" target="_blank">Share this plugin</a>
31
 
@@ -50,7 +50,7 @@ In your Admin panel, go to `Settings` > `Share/Save Buttons`. Among other optio
50
 
51
  = Why isn't the drop-down menu appearing? =
52
 
53
- It's likely because your theme wasn't <a href="http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks" target="_blank">coded properly</a>. Using the Theme Editor, make sure that the following piece of code is included in your theme's `footer.php` file just before the `</body>` line:
54
 
55
  `<?php wp_footer(); ?>`
56
 
@@ -82,24 +82,22 @@ If you want to customize the shared URL and title for this button, use the follo
82
 
83
  In the Theme Editor, place this line of code where you want the individual icons to appear in your theme (within an HTML list):
84
 
85
- `<?php echo '<ul class="addtoany_list">';
86
- if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') )
87
- ADDTOANY_SHARE_SAVE_ICONS( array("html_wrap_open" => "<li>", "html_wrap_close" => "</li>") );
88
- echo '</ul>'; ?>`
89
 
90
  If you want to customize the shared URL and title for these icons, use the following code as a template:
91
 
92
  `<?php
93
  if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) {
94
- echo '<ul class="addtoany_list">';
95
  ADDTOANY_SHARE_SAVE_ICONS( array(
96
- "html_wrap_open" => "<li>", "html_wrap_close" => "</li>",
97
  "linkname" => "Example Page", "linkurl" => "http://example.com/page.html"
98
  ));
99
- echo '</ul>';
100
  } ?>`
101
 
102
- Or you can place the icons as individual links (without being wrapped in an HTML list):
103
 
104
  `<?php if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) { ADDTOANY_SHARE_SAVE_ICONS(); } ?>`
105
 
@@ -171,6 +169,12 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
171
 
172
  == Changelog ==
173
 
 
 
 
 
 
 
174
  = .9.9.6.5 =
175
  * Add class-names to use official <a href="http://www.addtoany.com/buttons/customize/standalone_services">Standalone Services Kit</a>
176
  * Google Analytics stats for individual services
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, any
4
  Requires at least: 2.8
5
  Tested up to: 3.0
6
+ Stable tag: 0.9.9.6.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 and sharing sites. 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.
13
 
14
  <a href="http://www.addtoany.com/" title="Sharing and bookmarking button widget" target="_blank">Share Button</a> (demo)
15
 
16
+ The Email tab makes it easy to share via Google Gmail, Yahoo! Mail, Hotmail, AOL, and any other web-based emailer or desktop program. The Add to Favorites button (or Bookmark tab) helps users bookmark using any browser (Internet Explorer, Firefox, Chrome, Safari, Opera, etc.).
17
 
18
+ Standalone **service icons** let you optimize your blog posts for specific social sites. Choose from over 100 individual services.
19
 
20
+ * AddToAny <a href="http://www.addtoany.com/blog/smart-menus-the-services-your-visitors-use-displayed-first/" target="_blank">Smart Menu</a> & <a href="http://www.addtoany.com/buttons/customize/standalone_services" target="_blank">AddToAny Kit</a>
21
  * Individual service links (like Sociable)
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 and advanced users, and highly extensible for developers
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.
29
 
30
  <a href="http://www.addtoany.com/share_save" title="Share" target="_blank">Share this plugin</a>
31
 
50
 
51
  = Why isn't the drop-down menu appearing? =
52
 
53
+ It's likely because your theme wasn't <a href="http://codex.wordpress.org/Theme_Development#Plugin_API_Hooks" target="_blank">coded properly</a>. With many themes you can use the Theme Editor to make sure that the following piece of code is included in your theme's `footer.php` file just before the `</body>` line:
54
 
55
  `<?php wp_footer(); ?>`
56
 
82
 
83
  In the Theme Editor, place this line of code where you want the individual icons to appear in your theme (within an HTML list):
84
 
85
+ `<?php echo '<div class="a2a_kit addtoany_list">';
86
+ if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) { ADDTOANY_SHARE_SAVE_ICONS(); }
87
+ echo '</div>'; ?>`
 
88
 
89
  If you want to customize the shared URL and title for these icons, use the following code as a template:
90
 
91
  `<?php
92
  if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) {
93
+ echo '<div class="a2a_kit addtoany_list">';
94
  ADDTOANY_SHARE_SAVE_ICONS( array(
 
95
  "linkname" => "Example Page", "linkurl" => "http://example.com/page.html"
96
  ));
97
+ echo '</div>';
98
  } ?>`
99
 
100
+ Or you can place the icons as individual links without styling:
101
 
102
  `<?php if( function_exists('ADDTOANY_SHARE_SAVE_ICONS') ) { ADDTOANY_SHARE_SAVE_ICONS(); } ?>`
103
 
169
 
170
  == Changelog ==
171
 
172
+ = .9.9.6.6 =
173
+ * Major changes to plugin CSS stylesheet to support A2A Kit (official standalone services)
174
+ * Standalone services are no longer list items within an unordered list container
175
+ * Button is no longer a list item
176
+ * Button/standalones now follow the HTML markup layout suggested by the <a href="http://www.addtoany.com/buttons/customize/standalone_services">AddToAny Kit</a>
177
+
178
  = .9.9.6.5 =
179
  * Add class-names to use official <a href="http://www.addtoany.com/buttons/customize/standalone_services">Standalone Services Kit</a>
180
  * Google Analytics stats for individual 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.5
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
@@ -50,17 +50,17 @@ include_once('services.php');
50
  function ADDTOANY_SHARE_SAVE_KIT( $args = false ) {
51
 
52
  if ( ! isset($args['html_container_open']))
53
- $args['html_container_open'] = "<ul class=\"a2a_kit addtoany_list\">";
54
  if ( ! isset($args['html_container_close']))
55
- $args['html_container_close'] = "</ul>";
56
  // Close container element in ADDTOANY_SHARE_SAVE_BUTTON, not prematurely in ADDTOANY_SHARE_SAVE_ICONS
57
  $html_container_close = $args['html_container_close']; // Cache for _BUTTON
58
  unset($args['html_container_close']); // Avoid passing to ADDTOANY_SHARE_SAVE_ICONS since set in _BUTTON
59
 
60
  if ( ! isset($args['html_wrap_open']))
61
- $args['html_wrap_open'] = "<li>";
62
  if ( ! isset($args['html_wrap_close']))
63
- $args['html_wrap_close'] = "</li>";
64
 
65
  $kit_html = ADDTOANY_SHARE_SAVE_ICONS($args);
66
 
@@ -398,10 +398,10 @@ function A2A_SHARE_SAVE_to_bottom_of_content($content) {
398
 
399
  $kit_args = array(
400
  "output_later" => true,
401
- "html_container_open" => ($is_feed) ? "" : "<ul class=\"a2a_kit addtoany_list\">",
402
- "html_container_close" => ($is_feed) ? "" : "</ul>",
403
- "html_wrap_open" => ($is_feed) ? "" : "<li>",
404
- "html_wrap_close" => ($is_feed) ? " " : "</li>",
405
  );
406
 
407
  if ( ! $is_feed ) {
@@ -431,41 +431,38 @@ function A2A_SHARE_SAVE_button_css($no_style_tag) {
431
  if ( ! $no_style_tag) {
432
  ?><style type="text/css">
433
  <?php } ?>
434
- .addtoany_share_save_container{margin:16px 0;}
435
- ul.addtoany_list{
436
- display:inline;
437
- list-style-type:none;
438
- margin:0 !important;
439
- padding:0 !important;
440
- text-indent:0 !important;
441
- }
442
- ul.addtoany_list li{
443
- background:none !important;
444
- border:0;
445
- display:inline !important;
446
  <?php /* For vertical space in the event of wrapping: */ ?>
447
- line-height:32px;
448
- list-style-type:none;
449
- margin:0 !important;
450
- padding:0 !important;
451
- }
452
- ul.addtoany_list li:before{content:"";}
453
- ul.addtoany_list li a{padding:0 9px;}
454
- ul.addtoany_list img{
455
- float:none;
456
- border:0;
457
- margin:0;
458
- padding:0;
459
- vertical-align:middle;
460
- }
461
- ul.addtoany_list a img{
462
- opacity:.7;
463
- }
464
- ul.addtoany_list a:hover img, ul.addtoany_list a.addtoany_share_save img{
465
- opacity:1;
466
- }
467
- <?php /* Must declare after "ul.addtoany_list img": */ ?>
468
- a.addtoany_share_save img{border:0;width:auto;height:auto;}
 
 
 
 
 
 
469
  <?php if ( ! $no_style_tag) { ?>
470
  </style>
471
  <?php
@@ -477,8 +474,10 @@ function A2A_SHARE_SAVE_button_css_IE() {
477
  /* IE support for opacity: */ ?>
478
  <!--[if IE]>
479
  <style type="text/css">
480
- ul.addtoany_list a img{filter:alpha(opacity=70)}
481
- ul.addtoany_list a:hover img,ul.addtoany_list a.addtoany_share_save img{filter:alpha(opacity=100)}
 
 
482
  </style>
483
  <![endif]-->
484
  <?php
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.6
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
50
  function ADDTOANY_SHARE_SAVE_KIT( $args = false ) {
51
 
52
  if ( ! isset($args['html_container_open']))
53
+ $args['html_container_open'] = "<div class=\"a2a_kit addtoany_list\">";
54
  if ( ! isset($args['html_container_close']))
55
+ $args['html_container_close'] = "</div>";
56
  // Close container element in ADDTOANY_SHARE_SAVE_BUTTON, not prematurely in ADDTOANY_SHARE_SAVE_ICONS
57
  $html_container_close = $args['html_container_close']; // Cache for _BUTTON
58
  unset($args['html_container_close']); // Avoid passing to ADDTOANY_SHARE_SAVE_ICONS since set in _BUTTON
59
 
60
  if ( ! isset($args['html_wrap_open']))
61
+ $args['html_wrap_open'] = "";
62
  if ( ! isset($args['html_wrap_close']))
63
+ $args['html_wrap_close'] = "";
64
 
65
  $kit_html = ADDTOANY_SHARE_SAVE_ICONS($args);
66
 
398
 
399
  $kit_args = array(
400
  "output_later" => true,
401
+ "html_container_open" => ($is_feed) ? "" : "<div class=\"a2a_kit addtoany_list\">",
402
+ "html_container_close" => ($is_feed) ? "" : "</div>",
403
+ "html_wrap_open" => ($is_feed) ? "" : "",
404
+ "html_wrap_close" => ($is_feed) ? " " : "",
405
  );
406
 
407
  if ( ! $is_feed ) {
431
  if ( ! $no_style_tag) {
432
  ?><style type="text/css">
433
  <?php } ?>
434
+ .addtoany_share_save_container{margin:16px 0;}
435
+ .addtoany_list a {
436
+ float: left;
 
 
 
 
 
 
 
 
 
437
  <?php /* For vertical space in the event of wrapping: */ ?>
438
+ line-height: 32px;
439
+ padding: 0 9px;
440
+ }
441
+ .addtoany_list a img {
442
+ display: block;
443
+ height: 16px;
444
+ line-height: 16px;
445
+ opacity:.7;
446
+ overflow: hidden;
447
+ width: 16px;
448
+ }
449
+ .addtoany_list a:hover img, .addtoany_list a.addtoany_share_save img{
450
+ opacity:1;
451
+ }
452
+ .addtoany_list a img, .addtoany_list a.addtoany_share_save {
453
+ float: left;
454
+ }
455
+ <?php /* Must declare after ".addtoany_list img": */ ?>
456
+ a.addtoany_share_save img{border:0;width:auto;height:auto;}
457
+ <?php /* Clearfix: */ ?>
458
+ .addtoany_list:after {
459
+ clear: both;
460
+ content: " ";
461
+ display: block;
462
+ font-size: 0;
463
+ height: 0;
464
+ visibility: hidden;
465
+ }
466
  <?php if ( ! $no_style_tag) { ?>
467
  </style>
468
  <?php
474
  /* IE support for opacity: */ ?>
475
  <!--[if IE]>
476
  <style type="text/css">
477
+ .addtoany_list a img{filter:alpha(opacity=70)}
478
+ .addtoany_list a:hover img,.addtoany_list a.addtoany_share_save img{filter:alpha(opacity=100)}
479
+ * html .addtoany_list{zoom:1}
480
+ *:first-child + html .addtoany_list{zoom:1}
481
  </style>
482
  <![endif]-->
483
  <?php
addtoany.min.css CHANGED
@@ -1 +1 @@
1
- .addtoany_share_save_container{margin:16px 0}ul.addtoany_list{display:inline;list-style-type:none;margin:0!important;padding:0!important;text-indent:0!important}ul.addtoany_list li{background:none!important;border:0;display:inline!important;line-height:32px;list-style-type:none;margin:0!important;padding:0!important}ul.addtoany_list li:before{content:""}ul.addtoany_list li a{padding:0 9px}ul.addtoany_list img{float:none;border:0;margin:0;padding:0;vertical-align:middle}ul.addtoany_list a img{opacity:.7}ul.addtoany_list a:hover img,ul.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{margin:16px 0}.addtoany_list a{float:left;line-height:32px;padding:0 9px}.addtoany_list a img{display:block;height:16px;line-height:16px;opacity:.7;overflow:hidden;width:16px}.addtoany_list a:hover img,.addtoany_list a.addtoany_share_save img{opacity:1}.addtoany_list a img,.addtoany_list a.addtoany_share_save{float:left}a.addtoany_share_save img{border:0;width:auto;height:auto}.addtoany_list:after{clear:both;content:" ";display:block;font-size:0;height:0;visibility:hidden}