AddToAny Share Buttons - Version 0.9.9.6.7

Version Description

Download this release

Release Info

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

Code changes from version 0.9.9.6.6 to 0.9.9.6.7

Files changed (3) hide show
  1. README.txt +9 -1
  2. add-to-any.php +6 -63
  3. addtoany.min.css +1 -1
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, 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
 
@@ -169,6 +169,14 @@ Please read <a href="http://www.addtoany.com/buttons/customize/show_over_embeds"
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
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.7
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
 
169
 
170
  == Changelog ==
171
 
172
+ = .9.9.6.7 =
173
+ * Major overhaul of CSS stylesheet again
174
+ * Fix A2A Kit styling for manual placements
175
+ * Simplify A2A Kit styling
176
+ * Remove short-lived clearfix
177
+ * Remove legacy fallback to inline CSS for WP 2.0
178
+ * Remove CSS code offer in admin
179
+
180
  = .9.9.6.6 =
181
  * Major changes to plugin CSS stylesheet to support A2A Kit (official standalone services)
182
  * Standalone services are no longer list items within an unordered list container
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.6
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
@@ -427,74 +427,22 @@ if (get_option('A2A_SHARE_SAVE_display_in_excerpts') != '-1') {
427
  }
428
 
429
 
430
- 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
- .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
469
- A2A_SHARE_SAVE_button_css_IE();
470
- }
471
- }
472
-
473
  function A2A_SHARE_SAVE_button_css_IE() {
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
484
-
485
  }
486
 
487
  // Use stylesheet?
488
  if (get_option('A2A_SHARE_SAVE_inline_css') != '-1' && ! is_admin()) {
489
- if (function_exists('wp_enqueue_style')) {
490
- // WP version 2.1+ only
491
- wp_enqueue_style('A2A_SHARE_SAVE', $A2A_SHARE_SAVE_plugin_url_path . '/addtoany.min.css', false, '1.0');
492
- } else {
493
- // Fallback to inline CSS for WP 2.0
494
- add_filter('wp_head', 'A2A_SHARE_SAVE_button_css');
495
- }
496
 
497
- // Always output conditional inline CSS stylesheet for IE
498
  add_filter('wp_head', 'A2A_SHARE_SAVE_button_css_IE');
499
  }
500
 
@@ -808,21 +756,16 @@ function A2A_SHARE_SAVE_options_page() {
808
  <label for="A2A_SHARE_SAVE_inline_css">
809
  <input name="A2A_SHARE_SAVE_inline_css" id="A2A_SHARE_SAVE_inline_css"
810
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_inline_css')!='-1') echo ' checked="checked"'; ?> value="1"/>
811
- <?php _e('Use CSS stylesheet', 'add-to-any'); ?> <strong>**</strong>
812
  </label><br/>
813
  <label for="A2A_SHARE_SAVE_cache">
814
  <input name="A2A_SHARE_SAVE_cache" id="A2A_SHARE_SAVE_cache"
815
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_cache')=='1') echo ' checked="checked"'; ?> value="1"/>
816
- <?php _e('Cache AddToAny locally with daily cache updates', 'add-to-any'); ?> <strong>***</strong>
817
  </label>
818
  <br/><br/>
819
  <div class="setting-description">
820
- <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">&#187;</span>
821
- <p id="addtoany_css_code">
822
- <textarea class="code" style="width:98%;font-size:12px" rows="12" cols="50"><?php A2A_SHARE_SAVE_button_css(TRUE) ?></textarea>
823
- </p>
824
- <br/>
825
- <strong>***</strong> <?php _e("Only consider for sites with frequently returning visitors. Since many visitors will have AddToAny cached in their browser already, serving AddToAny locally from your site will be slower for those visitors. Be sure to set far future cache/expires headers for image files in your <code>uploads/addtoany</code> directory.", "add-to-any"); ?>
826
  </div>
827
  </fieldset></td>
828
  </tr>
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
7
  Author: AddToAny
8
  Author URI: http://www.addtoany.com/
9
  */
427
  }
428
 
429
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
430
  function A2A_SHARE_SAVE_button_css_IE() {
431
  /* IE support for opacity: */ ?>
432
  <!--[if IE]>
433
  <style type="text/css">
434
  .addtoany_list a img{filter:alpha(opacity=70)}
435
  .addtoany_list a:hover img,.addtoany_list a.addtoany_share_save img{filter:alpha(opacity=100)}
 
 
436
  </style>
437
  <![endif]-->
438
  <?php
 
439
  }
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.1');
 
 
 
 
 
 
444
 
445
+ // Conditional inline CSS stylesheet for IE
446
  add_filter('wp_head', 'A2A_SHARE_SAVE_button_css_IE');
447
  }
448
 
756
  <label for="A2A_SHARE_SAVE_inline_css">
757
  <input name="A2A_SHARE_SAVE_inline_css" id="A2A_SHARE_SAVE_inline_css"
758
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_inline_css')!='-1') echo ' checked="checked"'; ?> value="1"/>
759
+ <?php _e('Use CSS stylesheet', 'add-to-any'); ?>
760
  </label><br/>
761
  <label for="A2A_SHARE_SAVE_cache">
762
  <input name="A2A_SHARE_SAVE_cache" id="A2A_SHARE_SAVE_cache"
763
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_cache')=='1') echo ' checked="checked"'; ?> value="1"/>
764
+ <?php _e('Cache AddToAny locally with daily cache updates', 'add-to-any'); ?> <strong>**</strong>
765
  </label>
766
  <br/><br/>
767
  <div class="setting-description">
768
+ <strong>**</strong> <?php _e("Only consider for sites with frequently returning visitors. Since many visitors will have AddToAny cached in their browser already, serving AddToAny locally from your site will be slower for those visitors. Be sure to set far future cache/expires headers for image files in your <code>uploads/addtoany</code> directory.", "add-to-any"); ?>
 
 
 
 
 
769
  </div>
770
  </fieldset></td>
771
  </tr>
addtoany.min.css CHANGED
@@ -1 +1 @@
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}
1
+ .addtoany_share_save_container{line-height:32px;margin:16px 0}.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}