AddToAny Share Buttons - Version 1.6.6

Version Description

  • Harden local caching option (thanks pineappleclock)
  • Remove old warning message when template tags seem to be missing (thanks Tenebral, and theme authors everywhere)
  • Adjust gettext calls by switching to single quotes for the text domain argument
Download this release

Release Info

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

Code changes from version 1.6.5 to 1.6.6

Files changed (3) hide show
  1. README.txt +10 -5
  2. add-to-any.php +37 -83
  3. addtoany.admin.php +24 -26
README.txt CHANGED
@@ -1,17 +1,17 @@
1
- === Share Buttons by AddToAny ===
2
  Contributors: micropat, addtoany
3
  Tags: AddToAny, sharing, share, social, share button, share buttons, social media, media, marketing, bookmark, bookmarks, save, post, posts, page, pages, images, image, admin, analytics, statistics, stats, links, plugin, shortcode, sidebar, widget, responsive, email, e-mail, print, seo, button, woocommerce, ecommerce, e-commerce, amazon, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, tweet button, google plus, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, instagram, behance, flickr, foursquare, vimeo, youtube, feed, rss, lockerz, addthis, sociable, share this, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpml, wpmu, Add to Any
4
  Requires at least: 2.8
5
  Tested up to: 4.3
6
- Stable tag: 1.6.5
7
 
8
- Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more.
9
 
10
  == Description ==
11
 
12
- The WordPress sharing plugin to help people share, save, 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
- AddToAny's customizable platform and social share icons let you optimize your site's blog posts & pages for the best social sharing engagement.
15
 
16
  = Share Buttons & Follow Buttons =
17
 
@@ -298,6 +298,11 @@ Upload the plugin directory (including all files and directories within) to the
298
 
299
  == Changelog ==
300
 
 
 
 
 
 
301
  = 1.6.5 =
302
  * Update Google icon
303
  * Update Google+ icon
1
+ === AddToAny Share Buttons ===
2
  Contributors: micropat, addtoany
3
  Tags: AddToAny, sharing, share, social, share button, share buttons, social media, media, marketing, bookmark, bookmarks, save, post, posts, page, pages, images, image, admin, analytics, statistics, stats, links, plugin, shortcode, sidebar, widget, responsive, email, e-mail, print, seo, button, woocommerce, ecommerce, e-commerce, amazon, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, tweet button, google plus, pinterest, pin, pin it, pinit, wanelo, buffer, stumbleupon, bitly, whatsapp, instagram, behance, flickr, foursquare, vimeo, youtube, feed, rss, lockerz, addthis, sociable, share this, sharethis, shareaholic, icon, icons, vector, SVG, floating, floating buttons, wpml, wpmu, Add to Any
4
  Requires at least: 2.8
5
  Tested up to: 4.3
6
+ Stable tag: 1.6.6
7
 
8
+ Share buttons for WordPress including the AddToAny sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp, many more, and follow icons too.
9
 
10
  == Description ==
11
 
12
+ The AddToAny WordPress sharing plugin helps people share your posts and pages to any service, such as Facebook, Twitter, Pinterest, Google, WhatsApp, LinkedIn, Tumblr, Reddit, and over 100 more sharing and social media sites & apps.
13
 
14
+ AddToAny is the universal sharing platform, and AddToAny's plugin is the most popular share plugin for WordPress, making sites social media ready since 2006.
15
 
16
  = Share Buttons & Follow Buttons =
17
 
298
 
299
  == Changelog ==
300
 
301
+ = 1.6.6 =
302
+ * Harden local caching option (thanks pineappleclock)
303
+ * Remove old warning message when template tags seem to be missing (thanks Tenebral, and theme authors everywhere)
304
+ * Adjust gettext calls by switching to single quotes for the text domain argument
305
+
306
  = 1.6.5 =
307
  * Update Google icon
308
  * Update Google+ icon
add-to-any.php CHANGED
@@ -1,11 +1,13 @@
1
  <?php
2
  /*
3
- Plugin Name: Share Buttons by AddToAny
4
  Plugin URI: https://www.addtoany.com/
5
  Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: 1.6.5
7
  Author: AddToAny
8
  Author URI: https://www.addtoany.com/
 
 
9
  */
10
 
11
  if ( ! isset( $A2A_locale ) ) {
@@ -44,9 +46,7 @@ function A2A_SHARE_SAVE_init() {
44
  $A2A_SHARE_SAVE_options = get_option( 'addtoany_options' );
45
  }
46
 
47
- load_plugin_textdomain( 'add-to-any',
48
- $A2A_SHARE_SAVE_plugin_url_path . '/languages',
49
- $A2A_SHARE_SAVE_plugin_basename . '/languages' );
50
 
51
  if ( ! isset( $A2A_SHARE_SAVE_options['display_in_excerpts'] ) || $A2A_SHARE_SAVE_options['display_in_excerpts'] != '-1' ) {
52
  // Excerpts use strip_tags() for the_content, so cancel if Excerpt and append to the_excerpt instead
@@ -566,24 +566,24 @@ if ( ! function_exists( 'A2A_menu_locale' ) ) {
566
  return false;
567
 
568
  $A2A_locale = 'a2a_localize = {
569
- Share: "' . __( "Share", "add-to-any" ) . '",
570
- Save: "' . __( "Save", "add-to-any" ) . '",
571
- Subscribe: "' . __( "Subscribe", "add-to-any" ) . '",
572
- Email: "' . __( "Email", "add-to-any" ) . '",
573
- Bookmark: "' . __( "Bookmark", "add-to-any" ) . '",
574
- ShowAll: "' . __( "Show all", "add-to-any" ) . '",
575
- ShowLess: "' . __( "Show less", "add-to-any" ) . '",
576
- FindServices: "' . __( "Find service(s)", "add-to-any" ) . '",
577
- FindAnyServiceToAddTo: "' . __( "Instantly find any service to add to", "add-to-any" ) . '",
578
- PoweredBy: "' . __( "Powered by", "add-to-any" ) . '",
579
- ShareViaEmail: "' . __( "Share via email", "add-to-any" ) . '",
580
- SubscribeViaEmail: "' . __( "Subscribe via email", "add-to-any" ) . '",
581
- BookmarkInYourBrowser: "' . __( "Bookmark in your browser", "add-to-any" ) . '",
582
- BookmarkInstructions: "' . __( "Press Ctrl+D or \u2318+D to bookmark this page", "add-to-any" ) . '",
583
- AddToYourFavorites: "' . __( "Add to your favorites", "add-to-any" ) . '",
584
- SendFromWebOrProgram: "' . __( "Send from any email address or email program", "add-to-any" ) . '",
585
- EmailProgram: "' . __( "Email program", "add-to-any" ) . '",
586
- More: "' . __( "More&#8230;", "add-to-any" ) . '"
587
  };
588
  ';
589
  return $A2A_locale;
@@ -732,25 +732,19 @@ function A2A_SHARE_SAVE_head_script() {
732
  $options = get_option( 'addtoany_options' );
733
 
734
  $http_or_https = ( is_ssl() ) ? 'https' : 'http';
 
 
 
 
 
735
 
736
- global $A2A_SHARE_SAVE_external_script_called;
737
- if ( ! $A2A_SHARE_SAVE_external_script_called ) {
738
- // Use local cache?
739
- $cache = ( isset( $options['cache'] ) && '1' == $options['cache'] ) ? true : false;
740
- $upload_dir = wp_upload_dir();
741
- $static_server = ( $cache ) ? $upload_dir['baseurl'] . '/addtoany' : $http_or_https . '://static.addtoany.com/menu';
742
-
743
- // Enternal script call + initial JS + set-once variables
744
- $additional_js = ( isset( $options['additional_js_variables'] ) ) ? $options['additional_js_variables'] : '' ;
745
- $script_configs = ( ( $cache ) ? "\n" . 'a2a_config.static_server="' . $static_server . '";' : '' )
746
- . ( ( isset( $options['onclick'] ) && '1' == $options['onclick'] ) ? "\n" . 'a2a_config.onclick=1;' : '' )
747
- . ( ( isset( $options['show_title'] ) && '1' == $options['show_title'] ) ? "\n" . 'a2a_config.show_title=1;' : '' )
748
- . ( ( $additional_js ) ? "\n" . stripslashes( $additional_js ) : '' );
749
- $A2A_SHARE_SAVE_external_script_called = true;
750
- }
751
- else {
752
- $script_configs = "";
753
- }
754
 
755
  $javascript_header = "\n" . '<script type="text/javascript">' . "<!--\n"
756
 
@@ -826,46 +820,6 @@ function A2A_SHARE_SAVE_footer_script() {
826
 
827
  add_action( 'wp_footer', 'A2A_SHARE_SAVE_footer_script' );
828
 
829
-
830
-
831
- function A2A_SHARE_SAVE_theme_hooks_check() {
832
- $template_directory = get_template_directory();
833
-
834
- // If footer.php exists in the current theme, scan for "wp_footer"
835
- $file = $template_directory . '/footer.php';
836
- if ( is_file( $file ) ) {
837
- $search_string = "wp_footer";
838
- $file_lines = @file( $file );
839
-
840
- foreach ( $file_lines as $line ) {
841
- $searchCount = substr_count( $line, $search_string );
842
- if ( $searchCount > 0 ) {
843
- return true;
844
- }
845
- }
846
-
847
- // wp_footer() not found:
848
- echo "<div class=\"update-nag\">" . __( "Your theme needs to be fixed. To fix your theme, use the <a href=\"theme-editor.php\">Theme Editor</a> to insert <code>&lt;?php wp_footer(); ?&gt;</code> just before the <code>&lt;/body&gt;</code> line of your theme's <code>footer.php</code> file." ) . "</div>";
849
- }
850
-
851
- // If header.php exists in the current theme, scan for "wp_head"
852
- $file = $template_directory . '/header.php';
853
- if ( is_file( $file ) ) {
854
- $search_string = "wp_head";
855
- $file_lines = @file( $file );
856
-
857
- foreach ( $file_lines as $line ) {
858
- $searchCount = substr_count( $line, $search_string );
859
- if ( $searchCount > 0 ) {
860
- return true;
861
- }
862
- }
863
-
864
- // wp_footer() not found:
865
- echo "<div class=\"update-nag\">" . __( "Your theme needs to be fixed. To fix your theme, use the <a href=\"theme-editor.php\">Theme Editor</a> to insert <code>&lt;?php wp_head(); ?&gt;</code> just before the <code>&lt;/head&gt;</code> line of your theme's <code>header.php</code> file." ) . "</div>";
866
- }
867
- }
868
-
869
  function A2A_SHARE_SAVE_auto_placement( $title ) {
870
  global $A2A_SHARE_SAVE_auto_placement_ready;
871
  $A2A_SHARE_SAVE_auto_placement_ready = true;
@@ -1142,8 +1096,8 @@ if ( is_admin() ) {
1142
  function A2A_SHARE_SAVE_add_menu_link() {
1143
  if ( current_user_can( 'manage_options' ) ) {
1144
  $page = add_options_page(
1145
- 'AddToAny: '. __( "Share/Save", "add-to-any" ) . " " . __( "Settings" )
1146
- , __( "AddToAny", "add-to-any" )
1147
  , 'activate_plugins'
1148
  , basename( __FILE__ )
1149
  , 'A2A_SHARE_SAVE_options_page'
1
  <?php
2
  /*
3
+ Plugin Name: AddToAny Share Buttons
4
  Plugin URI: https://www.addtoany.com/
5
  Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, WhatsApp and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: 1.6.6
7
  Author: AddToAny
8
  Author URI: https://www.addtoany.com/
9
+ Text Domain: add-to-any
10
+ Domain Path: /languages
11
  */
12
 
13
  if ( ! isset( $A2A_locale ) ) {
46
  $A2A_SHARE_SAVE_options = get_option( 'addtoany_options' );
47
  }
48
 
49
+ load_plugin_textdomain( 'add-to-any', false, $A2A_SHARE_SAVE_plugin_basename . '/languages/' );
 
 
50
 
51
  if ( ! isset( $A2A_SHARE_SAVE_options['display_in_excerpts'] ) || $A2A_SHARE_SAVE_options['display_in_excerpts'] != '-1' ) {
52
  // Excerpts use strip_tags() for the_content, so cancel if Excerpt and append to the_excerpt instead
566
  return false;
567
 
568
  $A2A_locale = 'a2a_localize = {
569
+ Share: "' . __( "Share", 'add-to-any' ) . '",
570
+ Save: "' . __( "Save", 'add-to-any' ) . '",
571
+ Subscribe: "' . __( "Subscribe", 'add-to-any' ) . '",
572
+ Email: "' . __( "Email", 'add-to-any' ) . '",
573
+ Bookmark: "' . __( "Bookmark", 'add-to-any' ) . '",
574
+ ShowAll: "' . __( "Show all", 'add-to-any' ) . '",
575
+ ShowLess: "' . __( "Show less", 'add-to-any' ) . '",
576
+ FindServices: "' . __( "Find service(s)", 'add-to-any' ) . '",
577
+ FindAnyServiceToAddTo: "' . __( "Instantly find any service to add to", 'add-to-any' ) . '",
578
+ PoweredBy: "' . __( "Powered by", 'add-to-any' ) . '",
579
+ ShareViaEmail: "' . __( "Share via email", 'add-to-any' ) . '",
580
+ SubscribeViaEmail: "' . __( "Subscribe via email", 'add-to-any' ) . '",
581
+ BookmarkInYourBrowser: "' . __( "Bookmark in your browser", 'add-to-any' ) . '",
582
+ BookmarkInstructions: "' . __( "Press Ctrl+D or \u2318+D to bookmark this page", 'add-to-any' ) . '",
583
+ AddToYourFavorites: "' . __( "Add to your favorites", 'add-to-any' ) . '",
584
+ SendFromWebOrProgram: "' . __( "Send from any email address or email program", 'add-to-any' ) . '",
585
+ EmailProgram: "' . __( "Email program", 'add-to-any' ) . '",
586
+ More: "' . __( "More&#8230;", 'add-to-any' ) . '"
587
  };
588
  ';
589
  return $A2A_locale;
732
  $options = get_option( 'addtoany_options' );
733
 
734
  $http_or_https = ( is_ssl() ) ? 'https' : 'http';
735
+
736
+ // Use local cache?
737
+ $cache = ( isset( $options['cache'] ) && '1' == $options['cache'] ) ? true : false;
738
+ $upload_dir = wp_upload_dir();
739
+ $static_server = ( $cache ) ? $upload_dir['baseurl'] . '/addtoany' : $http_or_https . '://static.addtoany.com/menu';
740
 
741
+ // Enternal script call + initial JS + set-once variables
742
+ $additional_js = ( isset( $options['additional_js_variables'] ) ) ? $options['additional_js_variables'] : '' ;
743
+ $script_configs = ( ( $cache ) ? "\n" . 'a2a_config.static_server="' . $static_server . '";' : '' )
744
+ . ( ( isset( $options['onclick'] ) && '1' == $options['onclick'] ) ? "\n" . 'a2a_config.onclick=1;' : '' )
745
+ . ( ( isset( $options['show_title'] ) && '1' == $options['show_title'] ) ? "\n" . 'a2a_config.show_title=1;' : '' )
746
+ . ( ( $additional_js ) ? "\n" . stripslashes( $additional_js ) : '' );
747
+ $A2A_SHARE_SAVE_external_script_called = true;
 
 
 
 
 
 
 
 
 
 
 
748
 
749
  $javascript_header = "\n" . '<script type="text/javascript">' . "<!--\n"
750
 
820
 
821
  add_action( 'wp_footer', 'A2A_SHARE_SAVE_footer_script' );
822
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
823
  function A2A_SHARE_SAVE_auto_placement( $title ) {
824
  global $A2A_SHARE_SAVE_auto_placement_ready;
825
  $A2A_SHARE_SAVE_auto_placement_ready = true;
1096
  function A2A_SHARE_SAVE_add_menu_link() {
1097
  if ( current_user_can( 'manage_options' ) ) {
1098
  $page = add_options_page(
1099
+ 'AddToAny: ' . __( "Share/Save", 'add-to-any' ) . " " . __( "Settings" )
1100
+ , __( "AddToAny", 'add-to-any' )
1101
  , 'activate_plugins'
1102
  , basename( __FILE__ )
1103
  , 'A2A_SHARE_SAVE_options_page'
addtoany.admin.php CHANGED
@@ -395,8 +395,6 @@ function A2A_SHARE_SAVE_options_page() {
395
 
396
  ?>
397
 
398
- <?php A2A_SHARE_SAVE_theme_hooks_check(); ?>
399
-
400
  <div class="wrap">
401
 
402
  <h1><?php _e( 'AddToAny Share Settings', 'add-to-any' ); ?></h1>
@@ -414,7 +412,7 @@ function A2A_SHARE_SAVE_options_page() {
414
 
415
  <?php if ( 'default' == $current_screen ) : ?>
416
  <tr valign="top">
417
- <th scope="row"><?php _e("Icon Size", "add-to-any"); ?></th>
418
  <td><fieldset>
419
  <label><input type="radio" name="A2A_SHARE_SAVE_icon_size" value="32"<?php if ( ! isset( $options['icon_size'] ) || '32' == $options['icon_size'] ) echo ' checked="checked"'; ?>> <?php _e('Large', 'add-to-any'); ?></label>
420
  <br>
@@ -427,12 +425,12 @@ function A2A_SHARE_SAVE_options_page() {
427
  </tr>
428
 
429
  <tr valign="top">
430
- <th scope="row"><?php _e("Standalone Buttons", "add-to-any"); ?></th>
431
  <td><fieldset>
432
  <ul id="addtoany_services_sortable" class="addtoany_admin_list addtoany_override a2a_kit_size_32">
433
  <li class="dummy"><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path; ?>/icons/transparent.gif" width="16" height="16" alt="" /></li>
434
  </ul>
435
- <p id="addtoany_services_info"><?php _e("Choose the services you want below. &nbsp;Click a chosen service again to remove. &nbsp;Reorder services by dragging and dropping as they appear above.", "add-to-any"); ?></p>
436
  <ul id="addtoany_services_selectable" class="addtoany_admin_list">
437
  <li id="a2a_wp_facebook_like" class="addtoany_special_service addtoany_3p_button" title="Facebook Like button">
438
  <span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/facebook_like.png'; ?>" width="50" height="20" alt="Facebook Like" /></span>
@@ -473,7 +471,7 @@ function A2A_SHARE_SAVE_options_page() {
473
  </tr>
474
 
475
  <tr valign="top">
476
- <th scope="row"><?php _e("Universal Button", "add-to-any"); ?></th>
477
  <td><fieldset>
478
  <div class="addtoany_icon_size_large">
479
  <label class="addtoany_override a2a_kit_size_32">
@@ -601,7 +599,7 @@ function A2A_SHARE_SAVE_options_page() {
601
 
602
  <br/><br/>
603
  <div class="setting-description">
604
- <?php _e("See <a href=\"widgets.php\" title=\"Theme Widgets\">Widgets</a> and <a href=\"options-general.php?page=add-to-any.php&action=floating\" title=\"AddToAny Floating Share Buttons\">Floating</a> for additional placement options. For advanced placement, see <a href=\"http://wordpress.org/plugins/add-to-any/faq/\">the FAQs</a>.", "add-to-any"); ?>
605
  </div>
606
  </fieldset></td>
607
  </tr>
@@ -619,10 +617,10 @@ function A2A_SHARE_SAVE_options_page() {
619
  <?php _e('Show the title of the page within the universal share menu', 'add-to-any'); ?>
620
  </label>
621
  <label>
622
- <p><?php _e("You can use AddToAny's Menu Styler to customize the colors of your universal share menu. When you're done, be sure to paste the generated code in the <a href=\"#\" onclick=\"document.getElementById('A2A_SHARE_SAVE_additional_js_variables').focus();return false\">Additional Options</a> box below.", "add-to-any"); ?></p>
623
  </label>
624
  <p>
625
- <a href="https://www.addtoany.com/buttons/share_save/menu_style/wordpress" class="button-secondary" title="<?php _e("Open the AddToAny Menu Styler in a new window", "add-to-any"); ?>" target="_blank" onclick="document.getElementById('A2A_SHARE_SAVE_additional_js_variables').focus(); document.getElementById('A2A_SHARE_SAVE_menu_styler_note').style.display='';"><?php _e("Open Menu Styler", "add-to-any"); ?></a>
626
  </p>
627
  </fieldset></td>
628
  </tr>
@@ -637,7 +635,7 @@ function A2A_SHARE_SAVE_options_page() {
637
  </p>
638
  <label for="A2A_SHARE_SAVE_additional_js_variables">
639
  <p><?php _e('Below you can add special JavaScript code for AddToAny.', 'add-to-any'); ?>
640
- <?php _e("Advanced users should explore AddToAny's <a href=\"https://www.addtoany.com/buttons/customize/wordpress\" target=\"_blank\">additional options</a>.", "add-to-any"); ?></p>
641
  </label>
642
  <p>
643
  <textarea name="A2A_SHARE_SAVE_additional_js_variables" id="A2A_SHARE_SAVE_additional_js_variables" class="code" style="width: 98%; font-size: 12px;" rows="6" cols="50"><?php if ( isset( $options['additional_js_variables'] ) ) echo stripslashes( $options['additional_js_variables'] ); ?></textarea>
@@ -652,9 +650,9 @@ function A2A_SHARE_SAVE_options_page() {
652
  <?php _e('Use custom icons. URL:', 'add-to-any'); ?>
653
  </label>
654
  <input name="A2A_SHARE_SAVE_custom_icons_url" type="text" class="code" size="50" style="vertical-align:middle" placeholder="//example.com/blog/uploads/addtoany/icons/custom/" value="<?php if ( isset( $options['custom_icons_url'] ) ) echo $options['custom_icons_url']; ?>" />
655
- <input name="A2A_SHARE_SAVE_custom_icons_type" type="text" class="code" size="5" style="vertical-align:middle" maxlength="4" placeholder="png" value="<?php if ( isset( $options['custom_icons_type'] ) ) echo $options['custom_icons_type']; else echo 'png'; ?>" title="<?php esc_attr_e("Filename extension", "add-to-any"); ?>" />
656
  <p class="description">
657
- <?php _e("Specify the URL of the directory containing your custom icons. For example, a URL of <code>//example.com/blog/uploads/addtoany/icons/custom/</code> containing <code>facebook.png</code> and <code>twitter.png</code>. Be sure that custom icon filenames match the icon filenames in <code>plugins/add-to-any/icons</code>. For AddToAny's Universal Button, select Image URL and specify the URL of your AddToAny universal share icon (<a href=\"#\" onclick=\"document.getElementsByName('A2A_SHARE_SAVE_button_custom')[0].focus();return false\">above</a>).", "add-to-any"); ?>
658
  </p>
659
  <br/>
660
  <label for="A2A_SHARE_SAVE_inline_css">
@@ -662,7 +660,7 @@ function A2A_SHARE_SAVE_options_page() {
662
  <?php _e('Use default CSS', 'add-to-any'); ?>
663
  </label>
664
  <p class="description">
665
- <?php _e("Only disable AddToAny's default stylesheet if you already have the necessary CSS code applied to your AddToAny buttons.", "add-to-any"); ?>
666
  </p>
667
  <br/>
668
  <label for="A2A_SHARE_SAVE_cache">
@@ -670,7 +668,7 @@ function A2A_SHARE_SAVE_options_page() {
670
  <?php _e('Cache AddToAny locally with daily cache updates', 'add-to-any'); ?>
671
  </label>
672
  <p class="description">
673
- <?php _e("Most sites should not use this option. By default, AddToAny loads asynchronously and most efficiently. Since many visitors will have AddToAny cached in their browser already, serving AddToAny locally from your site will be slower for those visitors. If local caching is enabled, be sure to set far future cache/expires headers for image files in your <code>uploads/addtoany</code> directory.", "add-to-any"); ?>
674
  </p>
675
  </fieldset></td>
676
  </tr>
@@ -680,13 +678,13 @@ function A2A_SHARE_SAVE_options_page() {
680
 
681
  <?php if ( 'floating' == $current_screen ) : ?>
682
 
683
- <p><?php _e('AddToAny &quot;floating&quot; share buttons stay in a fixed position even when the user scrolls.', "add-to-any"); ?></p>
684
- <p><?php _e('Large icons from your currently selected buttons are displayed in your floating bar(s). 3rd party buttons (Like, Tweet, etc.) are not displayed.', "add-to-any"); ?></p>
685
 
686
- <h3><?php _e('Vertical Buttons', "add-to-any"); ?></h3>
687
  <table class="form-table">
688
  <tr valign="top">
689
- <th scope="row"><?php _e("Placement", "add-to-any"); ?></th>
690
  <td><fieldset>
691
  <label><input type="radio" name="A2A_SHARE_SAVE_floating_vertical" value="left_docked"<?php if ( isset( $options['floating_vertical'] ) && 'left_docked' == $options['floating_vertical'] ) echo ' checked="checked"'; ?>> <?php _e('Left docked', 'add-to-any'); ?></label>
692
  <br>
@@ -696,7 +694,7 @@ function A2A_SHARE_SAVE_options_page() {
696
  </fieldset></td>
697
  </tr>
698
  <tr valign="top">
699
- <th scope="row"><?php _e("Responsiveness", "add-to-any"); ?></th>
700
  <td><fieldset>
701
  <label>
702
  <input id="A2A_SHARE_SAVE_floating_vertical_responsive" name="A2A_SHARE_SAVE_floating_vertical_responsive" type="checkbox"<?php
@@ -706,23 +704,23 @@ function A2A_SHARE_SAVE_options_page() {
706
  </fieldset></td>
707
  </tr>
708
  <tr valign="top">
709
- <th scope="row"><?php _e("Position", "add-to-any"); ?></th>
710
  <td><fieldset>
711
  <label><input name="A2A_SHARE_SAVE_floating_vertical_position" type="number" step="1" value="<?php if ( isset( $options['floating_vertical_position'] ) ) echo $options['floating_vertical_position']; else echo '100'; ?>" class="small-text" /> pixels from top</label>
712
  </fieldset></td>
713
  </tr>
714
  <tr valign="top">
715
- <th scope="row"><?php _e("Offset", "add-to-any"); ?></th>
716
  <td><fieldset>
717
  <label><input name="A2A_SHARE_SAVE_floating_vertical_offset" type="number" step="1" value="<?php if ( isset( $options['floating_vertical_offset'] ) ) echo $options['floating_vertical_offset']; else echo '0'; ?>" class="small-text" /> pixels from left or right</label>
718
  </fieldset></td>
719
  </tr>
720
  </table>
721
 
722
- <h3><?php _e('Horizontal Buttons', "add-to-any"); ?></h3>
723
  <table class="form-table">
724
  <tr valign="top">
725
- <th scope="row"><?php _e("Placement", "add-to-any"); ?></th>
726
  <td><fieldset>
727
  <label><input type="radio" name="A2A_SHARE_SAVE_floating_horizontal" value="left_docked"<?php if ( isset( $options['floating_horizontal'] ) && 'left_docked' == $options['floating_horizontal'] ) echo ' checked="checked"'; ?>> <?php _e('Left docked', 'add-to-any'); ?></label>
728
  <br>
@@ -732,7 +730,7 @@ function A2A_SHARE_SAVE_options_page() {
732
  </fieldset></td>
733
  </tr>
734
  <tr valign="top">
735
- <th scope="row"><?php _e("Responsiveness", "add-to-any"); ?></th>
736
  <td><fieldset>
737
  <label>
738
  <input id="A2A_SHARE_SAVE_floating_horizontal_responsive" name="A2A_SHARE_SAVE_floating_horizontal_responsive" type="checkbox"<?php
@@ -742,13 +740,13 @@ function A2A_SHARE_SAVE_options_page() {
742
  </fieldset></td>
743
  </tr>
744
  <tr valign="top">
745
- <th scope="row"><?php _e("Position", "add-to-any"); ?></th>
746
  <td><fieldset>
747
  <label><input name="A2A_SHARE_SAVE_floating_horizontal_position" type="number" step="1" value="<?php if ( isset( $options['floating_horizontal_position'] ) ) echo $options['floating_horizontal_position']; else echo '0'; ?>" class="small-text" /> pixels from left or right</label>
748
  </fieldset></td>
749
  </tr>
750
  <tr valign="top">
751
- <th scope="row"><?php _e("Offset", "add-to-any"); ?></th>
752
  <td><fieldset>
753
  <label><input name="A2A_SHARE_SAVE_floating_horizontal_offset" type="number" step="1" value="<?php if ( isset( $options['floating_horizontal_offset'] ) ) echo $options['floating_horizontal_offset']; else echo '0'; ?>" class="small-text" /> pixels from bottom</label>
754
  </fieldset></td>
395
 
396
  ?>
397
 
 
 
398
  <div class="wrap">
399
 
400
  <h1><?php _e( 'AddToAny Share Settings', 'add-to-any' ); ?></h1>
412
 
413
  <?php if ( 'default' == $current_screen ) : ?>
414
  <tr valign="top">
415
+ <th scope="row"><?php _e("Icon Size", 'add-to-any'); ?></th>
416
  <td><fieldset>
417
  <label><input type="radio" name="A2A_SHARE_SAVE_icon_size" value="32"<?php if ( ! isset( $options['icon_size'] ) || '32' == $options['icon_size'] ) echo ' checked="checked"'; ?>> <?php _e('Large', 'add-to-any'); ?></label>
418
  <br>
425
  </tr>
426
 
427
  <tr valign="top">
428
+ <th scope="row"><?php _e("Standalone Buttons", 'add-to-any'); ?></th>
429
  <td><fieldset>
430
  <ul id="addtoany_services_sortable" class="addtoany_admin_list addtoany_override a2a_kit_size_32">
431
  <li class="dummy"><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path; ?>/icons/transparent.gif" width="16" height="16" alt="" /></li>
432
  </ul>
433
+ <p id="addtoany_services_info"><?php _e("Choose the services you want below. &nbsp;Click a chosen service again to remove. &nbsp;Reorder services by dragging and dropping as they appear above.", 'add-to-any'); ?></p>
434
  <ul id="addtoany_services_selectable" class="addtoany_admin_list">
435
  <li id="a2a_wp_facebook_like" class="addtoany_special_service addtoany_3p_button" title="Facebook Like button">
436
  <span><img src="<?php echo $A2A_SHARE_SAVE_plugin_url_path.'/icons/facebook_like.png'; ?>" width="50" height="20" alt="Facebook Like" /></span>
471
  </tr>
472
 
473
  <tr valign="top">
474
+ <th scope="row"><?php _e("Universal Button", 'add-to-any'); ?></th>
475
  <td><fieldset>
476
  <div class="addtoany_icon_size_large">
477
  <label class="addtoany_override a2a_kit_size_32">
599
 
600
  <br/><br/>
601
  <div class="setting-description">
602
+ <?php _e("See <a href=\"widgets.php\" title=\"Theme Widgets\">Widgets</a> and <a href=\"options-general.php?page=add-to-any.php&action=floating\" title=\"AddToAny Floating Share Buttons\">Floating</a> for additional placement options. For advanced placement, see <a href=\"http://wordpress.org/plugins/add-to-any/faq/\">the FAQs</a>.", 'add-to-any'); ?>
603
  </div>
604
  </fieldset></td>
605
  </tr>
617
  <?php _e('Show the title of the page within the universal share menu', 'add-to-any'); ?>
618
  </label>
619
  <label>
620
+ <p><?php _e("You can use AddToAny's Menu Styler to customize the colors of your universal share menu. When you're done, be sure to paste the generated code in the <a href=\"#\" onclick=\"document.getElementById('A2A_SHARE_SAVE_additional_js_variables').focus();return false\">Additional Options</a> box below.", 'add-to-any'); ?></p>
621
  </label>
622
  <p>
623
+ <a href="https://www.addtoany.com/buttons/share_save/menu_style/wordpress" class="button-secondary" title="<?php _e("Open the AddToAny Menu Styler in a new window", 'add-to-any'); ?>" target="_blank" onclick="document.getElementById('A2A_SHARE_SAVE_additional_js_variables').focus(); document.getElementById('A2A_SHARE_SAVE_menu_styler_note').style.display='';"><?php _e("Open Menu Styler", 'add-to-any'); ?></a>
624
  </p>
625
  </fieldset></td>
626
  </tr>
635
  </p>
636
  <label for="A2A_SHARE_SAVE_additional_js_variables">
637
  <p><?php _e('Below you can add special JavaScript code for AddToAny.', 'add-to-any'); ?>
638
+ <?php _e("Advanced users should explore AddToAny's <a href=\"https://www.addtoany.com/buttons/customize/wordpress\" target=\"_blank\">additional options</a>.", 'add-to-any'); ?></p>
639
  </label>
640
  <p>
641
  <textarea name="A2A_SHARE_SAVE_additional_js_variables" id="A2A_SHARE_SAVE_additional_js_variables" class="code" style="width: 98%; font-size: 12px;" rows="6" cols="50"><?php if ( isset( $options['additional_js_variables'] ) ) echo stripslashes( $options['additional_js_variables'] ); ?></textarea>
650
  <?php _e('Use custom icons. URL:', 'add-to-any'); ?>
651
  </label>
652
  <input name="A2A_SHARE_SAVE_custom_icons_url" type="text" class="code" size="50" style="vertical-align:middle" placeholder="//example.com/blog/uploads/addtoany/icons/custom/" value="<?php if ( isset( $options['custom_icons_url'] ) ) echo $options['custom_icons_url']; ?>" />
653
+ <input name="A2A_SHARE_SAVE_custom_icons_type" type="text" class="code" size="5" style="vertical-align:middle" maxlength="4" placeholder="png" value="<?php if ( isset( $options['custom_icons_type'] ) ) echo $options['custom_icons_type']; else echo 'png'; ?>" title="<?php esc_attr_e("Filename extension", 'add-to-any'); ?>" />
654
  <p class="description">
655
+ <?php _e("Specify the URL of the directory containing your custom icons. For example, a URL of <code>//example.com/blog/uploads/addtoany/icons/custom/</code> containing <code>facebook.png</code> and <code>twitter.png</code>. Be sure that custom icon filenames match the icon filenames in <code>plugins/add-to-any/icons</code>. For AddToAny's Universal Button, select Image URL and specify the URL of your AddToAny universal share icon (<a href=\"#\" onclick=\"document.getElementsByName('A2A_SHARE_SAVE_button_custom')[0].focus();return false\">above</a>).", 'add-to-any'); ?>
656
  </p>
657
  <br/>
658
  <label for="A2A_SHARE_SAVE_inline_css">
660
  <?php _e('Use default CSS', 'add-to-any'); ?>
661
  </label>
662
  <p class="description">
663
+ <?php _e("Only disable AddToAny's default stylesheet if you already have the necessary CSS code applied to your AddToAny buttons.", 'add-to-any'); ?>
664
  </p>
665
  <br/>
666
  <label for="A2A_SHARE_SAVE_cache">
668
  <?php _e('Cache AddToAny locally with daily cache updates', 'add-to-any'); ?>
669
  </label>
670
  <p class="description">
671
+ <?php _e("Most sites should not use this option. By default, AddToAny loads asynchronously and most efficiently. Since many visitors will have AddToAny cached in their browser already, serving AddToAny locally from your site will be slower for those visitors. If local caching is enabled, be sure to set far future cache/expires headers for image files in your <code>uploads/addtoany</code> directory.", 'add-to-any'); ?>
672
  </p>
673
  </fieldset></td>
674
  </tr>
678
 
679
  <?php if ( 'floating' == $current_screen ) : ?>
680
 
681
+ <p><?php _e('AddToAny &quot;floating&quot; share buttons stay in a fixed position even when the user scrolls.', 'add-to-any'); ?></p>
682
+ <p><?php _e('Large icons from your currently selected buttons are displayed in your floating bar(s). 3rd party buttons (Like, Tweet, etc.) are not displayed.', 'add-to-any'); ?></p>
683
 
684
+ <h3><?php _e('Vertical Buttons', 'add-to-any'); ?></h3>
685
  <table class="form-table">
686
  <tr valign="top">
687
+ <th scope="row"><?php _e("Placement", 'add-to-any'); ?></th>
688
  <td><fieldset>
689
  <label><input type="radio" name="A2A_SHARE_SAVE_floating_vertical" value="left_docked"<?php if ( isset( $options['floating_vertical'] ) && 'left_docked' == $options['floating_vertical'] ) echo ' checked="checked"'; ?>> <?php _e('Left docked', 'add-to-any'); ?></label>
690
  <br>
694
  </fieldset></td>
695
  </tr>
696
  <tr valign="top">
697
+ <th scope="row"><?php _e("Responsiveness", 'add-to-any'); ?></th>
698
  <td><fieldset>
699
  <label>
700
  <input id="A2A_SHARE_SAVE_floating_vertical_responsive" name="A2A_SHARE_SAVE_floating_vertical_responsive" type="checkbox"<?php
704
  </fieldset></td>
705
  </tr>
706
  <tr valign="top">
707
+ <th scope="row"><?php _e("Position", 'add-to-any'); ?></th>
708
  <td><fieldset>
709
  <label><input name="A2A_SHARE_SAVE_floating_vertical_position" type="number" step="1" value="<?php if ( isset( $options['floating_vertical_position'] ) ) echo $options['floating_vertical_position']; else echo '100'; ?>" class="small-text" /> pixels from top</label>
710
  </fieldset></td>
711
  </tr>
712
  <tr valign="top">
713
+ <th scope="row"><?php _e("Offset", 'add-to-any'); ?></th>
714
  <td><fieldset>
715
  <label><input name="A2A_SHARE_SAVE_floating_vertical_offset" type="number" step="1" value="<?php if ( isset( $options['floating_vertical_offset'] ) ) echo $options['floating_vertical_offset']; else echo '0'; ?>" class="small-text" /> pixels from left or right</label>
716
  </fieldset></td>
717
  </tr>
718
  </table>
719
 
720
+ <h3><?php _e('Horizontal Buttons', 'add-to-any'); ?></h3>
721
  <table class="form-table">
722
  <tr valign="top">
723
+ <th scope="row"><?php _e("Placement", 'add-to-any'); ?></th>
724
  <td><fieldset>
725
  <label><input type="radio" name="A2A_SHARE_SAVE_floating_horizontal" value="left_docked"<?php if ( isset( $options['floating_horizontal'] ) && 'left_docked' == $options['floating_horizontal'] ) echo ' checked="checked"'; ?>> <?php _e('Left docked', 'add-to-any'); ?></label>
726
  <br>
730
  </fieldset></td>
731
  </tr>
732
  <tr valign="top">
733
+ <th scope="row"><?php _e("Responsiveness", 'add-to-any'); ?></th>
734
  <td><fieldset>
735
  <label>
736
  <input id="A2A_SHARE_SAVE_floating_horizontal_responsive" name="A2A_SHARE_SAVE_floating_horizontal_responsive" type="checkbox"<?php
740
  </fieldset></td>
741
  </tr>
742
  <tr valign="top">
743
+ <th scope="row"><?php _e("Position", 'add-to-any'); ?></th>
744
  <td><fieldset>
745
  <label><input name="A2A_SHARE_SAVE_floating_horizontal_position" type="number" step="1" value="<?php if ( isset( $options['floating_horizontal_position'] ) ) echo $options['floating_horizontal_position']; else echo '0'; ?>" class="small-text" /> pixels from left or right</label>
746
  </fieldset></td>
747
  </tr>
748
  <tr valign="top">
749
+ <th scope="row"><?php _e("Offset", 'add-to-any'); ?></th>
750
  <td><fieldset>
751
  <label><input name="A2A_SHARE_SAVE_floating_horizontal_offset" type="number" step="1" value="<?php if ( isset( $options['floating_horizontal_offset'] ) ) echo $options['floating_horizontal_offset']; else echo '0'; ?>" class="small-text" /> pixels from bottom</label>
752
  </fieldset></td>