AddToAny Share Buttons - Version 0.9.8.6.3

Version Description

Download this release

Release Info

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

Code changes from version 0.9.8.6.2 to 0.9.8.6.3

Files changed (2) hide show
  1. README.txt +5 -1
  2. add-to-any.php +20 -20
README.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.addtoany.com/contact/
4
  Tags: bookmarking, social, social bookmarking, bookmark, bookmarks, sharing, share, saving, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, e-mail, email, seo, button, delicious, google, digg, reddit, facebook, myspace, addtoany, add, any
5
  Requires at least: 2.0
6
  Tested up to: 2.7
7
- Stable tag: 0.9.8.6.2
8
 
9
  Helps readers share, save, and bookmark your posts and pages using any service, such as Delicious, Digg, Facebook, MySpace, and all the rest.
10
 
@@ -66,6 +66,10 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
66
 
67
  == Changelog ==
68
 
 
 
 
 
69
  .9.8.6.2:
70
 
71
  * Current page title + blog title are used if called outside The Loop
4
  Tags: bookmarking, social, social bookmarking, bookmark, bookmarks, sharing, share, saving, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, widget, e-mail, email, seo, button, delicious, google, digg, reddit, facebook, myspace, addtoany, add, any
5
  Requires at least: 2.0
6
  Tested up to: 2.7
7
+ Stable tag: 0.9.8.6.3
8
 
9
  Helps readers share, save, and bookmark your posts and pages using any service, such as Delicious, Digg, Facebook, MySpace, and all the rest.
10
 
66
 
67
  == Changelog ==
68
 
69
+ .9.8.6.3:
70
+
71
+ * Replaced short form of PHP's open tags with long form to work around configurations with short_open_tag disabled
72
+
73
  .9.8.6.2:
74
 
75
  * Current page title + blog title are used if called outside The Loop
add-to-any.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Add to Any: Share/Save/Bookmark Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Helps readers share, save, and bookmark your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
- Version: .9.8.6.2
7
  Author: Add to Any
8
  Author URI: http://www.addtoany.com/contact/
9
  */
@@ -216,7 +216,7 @@ function A2A_SHARE_SAVE_options_page() {
216
 
217
  <table class="form-table">
218
  <tr valign="top">
219
- <th scope="row"><? _e("Button", "add-to-any"); ?></th>
220
  <td><fieldset>
221
  <label>
222
  <input name="A2A_SHARE_SAVE_button" value="favicon.png|16|16" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='favicon.png|16|16') echo ' checked="checked"'; ?>
@@ -269,79 +269,79 @@ function A2A_SHARE_SAVE_options_page() {
269
  onchange="e=getElementsByName('A2A_SHARE_SAVE_display_in_posts_on_front_page')[0];f=getElementsByName('A2A_SHARE_SAVE_display_in_feed')[0];
270
  if(!this.checked){e.checked=false;e.disabled=true; f.checked=false;f.disabled=true}else{e.checked=true;e.disabled=false; f.checked=true;f.disabled=false}"
271
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_display_in_posts')!='-1') echo ' checked="checked"'; ?> value="1"/>
272
- <? _e('Display Share/Save button at the bottom of posts', 'add-to-any'); ?> <strong>*</strong>
273
  </label><br/>
274
  <label>
275
  &nbsp; &nbsp; &nbsp; <input name="A2A_SHARE_SAVE_display_in_posts_on_front_page" type="checkbox"<?php
276
  if(get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')!='-1') echo ' checked="checked"';
277
  if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
278
  ?> value="1"/>
279
- <? _e('Display Share/Save button at the bottom of posts on the front page', 'add-to-any'); ?>
280
  </label><br/>
281
  <label>
282
  &nbsp; &nbsp; &nbsp; <input name="A2A_SHARE_SAVE_display_in_feed" type="checkbox"<?php
283
  if(get_option('A2A_SHARE_SAVE_display_in_feed')!='-1') echo ' checked="checked"';
284
  if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
285
  ?> value="1"/>
286
- <? _e('Display Share/Save button at the bottom of posts in the feed', 'add-to-any'); ?>
287
  </label><br/>
288
  <label>
289
  <input name="A2A_SHARE_SAVE_display_in_pages" type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_display_in_pages')!='-1') echo ' checked="checked"'; ?> value="1"/>
290
- <? _e('Display Share/Save button at the bottom of pages', 'add-to-any'); ?> <strong>*</strong>
291
  </label>
292
  <br/><br/>
293
- <strong>*</strong> <? _e("If unchecked, be sure to place the following code in <a href=\"theme-editor.php\">your template pages</a> (within <code>index.php</code>, <code>single.php</code>, and/or <code>page.php</code>)", "add-to-any"); ?>:<br/>
294
  <code>&lt;?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?&gt;</code>
295
  </fieldset></td>
296
  </tr>
297
  <tr valign="top">
298
- <th scope="row"><? _e('Menu Style', 'add-to-any'); ?></th>
299
  <td><fieldset>
300
- <? _e("Using Add to Any's Menu Styler, you can customize the colors of your Share/Save 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"); ?>
301
  <p>
302
- <a href="http://www.addtoany.com/buttons/share_save/menu_style/wordpress" class="button-secondary" title="<? _e("Open the Add to Any Menu Styler in a new window", "add-to-any"); ?>" target="_blank"
303
  onclick="document.getElementById('A2A_SHARE_SAVE_additional_js_variables').focus();
304
- document.getElementById('A2A_SHARE_SAVE_menu_styler_note').style.display='';"><? _e("Open Menu Styler", "add-to-any"); ?></a>
305
  </p>
306
  </fieldset></td>
307
  </tr>
308
  <tr valign="top">
309
- <th scope="row"><? _e('Menu Options', 'add-to-any'); ?></th>
310
  <td><fieldset>
311
  <label>
312
  <input name="A2A_SHARE_SAVE_hide_embeds"
313
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_hide_embeds')!='-1') echo ' checked="checked"'; ?> value="1"/>
314
- <? _e('Hide embedded objects (Flash, video, etc.) that intersect with the menu when displayed', 'add-to-any'); ?>
315
  </label><br />
316
  <label>
317
  <input name="A2A_SHARE_SAVE_show_title"
318
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_show_title')=='1') echo ' checked="checked"'; ?> value="1"/>
319
- <? _e('Show the title of the post (or page) within the menu', 'add-to-any'); ?>
320
  </label><br />
321
  <label>
322
  <input name="A2A_SHARE_SAVE_onclick"
323
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_onclick')=='1') echo ' checked="checked"'; ?> value="1"/>
324
- <? _e('Only show the menu when the user clicks the Share/Save button', 'add-to-any'); ?>
325
  </label>
326
  </fieldset></td>
327
  </tr>
328
  <tr valign="top">
329
- <th scope="row"><? _e('Additional Options', 'add-to-any'); ?></th>
330
  <td><fieldset>
331
  <p id="A2A_SHARE_SAVE_menu_styler_note" style="display:none">
332
  <label for="A2A_SHARE_SAVE_additional_js_variables">
333
- <strong><? _e("Paste the code from Add to Any's Menu Styler in the box below!", 'add-to-any'); ?></strong>
334
  </label>
335
  </p>
336
  <label for="A2A_SHARE_SAVE_additional_js_variables">
337
- <? _e('Below you can set special JavaScript variables to apply to each Share/Save menu.', 'add-to-any'); ?>
338
- <? _e("Advanced users might want to check out the code generated by Add to Any's general <a href=\"http://www.addtoany.com/buttons/share_save\">Share/Save button generator</a>.", "add-to-any"); ?>
339
  </label>
340
  <p>
341
  <textarea name="A2A_SHARE_SAVE_additional_js_variables" id="A2A_SHARE_SAVE_additional_js_variables" class="code" style="width: 98%; font-size: 12px;" rows="5" cols="50"><?php echo stripslashes(get_option('A2A_SHARE_SAVE_additional_js_variables')); ?></textarea>
342
  </p>
343
  <?php if( get_option('A2A_SHARE_SAVE_additional_js_variables')!='' ) { ?>
344
- <label for="A2A_SHARE_SAVE_additional_js_variables"><? _e("<strong>Note</strong>: If you're adding new code, be careful not to accidentally overwrite any previous code.</label>", 'add-to-any'); ?>
345
  <?php } ?>
346
  </fieldset></td>
347
  </tr>
3
  Plugin Name: Add to Any: Share/Save/Bookmark Button
4
  Plugin URI: http://www.addtoany.com/
5
  Description: Helps readers share, save, and bookmark your posts and pages using any service. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
6
+ Version: .9.8.6.3
7
  Author: Add to Any
8
  Author URI: http://www.addtoany.com/contact/
9
  */
216
 
217
  <table class="form-table">
218
  <tr valign="top">
219
+ <th scope="row"><?php _e("Button", "add-to-any"); ?></th>
220
  <td><fieldset>
221
  <label>
222
  <input name="A2A_SHARE_SAVE_button" value="favicon.png|16|16" type="radio"<?php if(get_option('A2A_SHARE_SAVE_button')=='favicon.png|16|16') echo ' checked="checked"'; ?>
269
  onchange="e=getElementsByName('A2A_SHARE_SAVE_display_in_posts_on_front_page')[0];f=getElementsByName('A2A_SHARE_SAVE_display_in_feed')[0];
270
  if(!this.checked){e.checked=false;e.disabled=true; f.checked=false;f.disabled=true}else{e.checked=true;e.disabled=false; f.checked=true;f.disabled=false}"
271
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_display_in_posts')!='-1') echo ' checked="checked"'; ?> value="1"/>
272
+ <?php _e('Display Share/Save button at the bottom of posts', 'add-to-any'); ?> <strong>*</strong>
273
  </label><br/>
274
  <label>
275
  &nbsp; &nbsp; &nbsp; <input name="A2A_SHARE_SAVE_display_in_posts_on_front_page" type="checkbox"<?php
276
  if(get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')!='-1') echo ' checked="checked"';
277
  if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
278
  ?> value="1"/>
279
+ <?php _e('Display Share/Save button at the bottom of posts on the front page', 'add-to-any'); ?>
280
  </label><br/>
281
  <label>
282
  &nbsp; &nbsp; &nbsp; <input name="A2A_SHARE_SAVE_display_in_feed" type="checkbox"<?php
283
  if(get_option('A2A_SHARE_SAVE_display_in_feed')!='-1') echo ' checked="checked"';
284
  if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
285
  ?> value="1"/>
286
+ <?php _e('Display Share/Save button at the bottom of posts in the feed', 'add-to-any'); ?>
287
  </label><br/>
288
  <label>
289
  <input name="A2A_SHARE_SAVE_display_in_pages" type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_display_in_pages')!='-1') echo ' checked="checked"'; ?> value="1"/>
290
+ <?php _e('Display Share/Save button at the bottom of pages', 'add-to-any'); ?> <strong>*</strong>
291
  </label>
292
  <br/><br/>
293
+ <strong>*</strong> <?php _e("If unchecked, be sure to place the following code in <a href=\"theme-editor.php\">your template pages</a> (within <code>index.php</code>, <code>single.php</code>, and/or <code>page.php</code>)", "add-to-any"); ?>:<br/>
294
  <code>&lt;?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?&gt;</code>
295
  </fieldset></td>
296
  </tr>
297
  <tr valign="top">
298
+ <th scope="row"><?php _e('Menu Style', 'add-to-any'); ?></th>
299
  <td><fieldset>
300
+ <?php _e("Using Add to Any's Menu Styler, you can customize the colors of your Share/Save 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"); ?>
301
  <p>
302
+ <a href="http://www.addtoany.com/buttons/share_save/menu_style/wordpress" class="button-secondary" title="<?php _e("Open the Add to Any Menu Styler in a new window", "add-to-any"); ?>" target="_blank"
303
  onclick="document.getElementById('A2A_SHARE_SAVE_additional_js_variables').focus();
304
+ document.getElementById('A2A_SHARE_SAVE_menu_styler_note').style.display='';"><?php _e("Open Menu Styler", "add-to-any"); ?></a>
305
  </p>
306
  </fieldset></td>
307
  </tr>
308
  <tr valign="top">
309
+ <th scope="row"><?php _e('Menu Options', 'add-to-any'); ?></th>
310
  <td><fieldset>
311
  <label>
312
  <input name="A2A_SHARE_SAVE_hide_embeds"
313
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_hide_embeds')!='-1') echo ' checked="checked"'; ?> value="1"/>
314
+ <?php _e('Hide embedded objects (Flash, video, etc.) that intersect with the menu when displayed', 'add-to-any'); ?>
315
  </label><br />
316
  <label>
317
  <input name="A2A_SHARE_SAVE_show_title"
318
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_show_title')=='1') echo ' checked="checked"'; ?> value="1"/>
319
+ <?php _e('Show the title of the post (or page) within the menu', 'add-to-any'); ?>
320
  </label><br />
321
  <label>
322
  <input name="A2A_SHARE_SAVE_onclick"
323
  type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_onclick')=='1') echo ' checked="checked"'; ?> value="1"/>
324
+ <?php _e('Only show the menu when the user clicks the Share/Save button', 'add-to-any'); ?>
325
  </label>
326
  </fieldset></td>
327
  </tr>
328
  <tr valign="top">
329
+ <th scope="row"><?php _e('Additional Options', 'add-to-any'); ?></th>
330
  <td><fieldset>
331
  <p id="A2A_SHARE_SAVE_menu_styler_note" style="display:none">
332
  <label for="A2A_SHARE_SAVE_additional_js_variables">
333
+ <strong><?php _e("Paste the code from Add to Any's Menu Styler in the box below!", 'add-to-any'); ?></strong>
334
  </label>
335
  </p>
336
  <label for="A2A_SHARE_SAVE_additional_js_variables">
337
+ <?php _e('Below you can set special JavaScript variables to apply to each Share/Save menu.', 'add-to-any'); ?>
338
+ <?php _e("Advanced users might want to check out the code generated by Add to Any's general <a href=\"http://www.addtoany.com/buttons/share_save\">Share/Save button generator</a>.", "add-to-any"); ?>
339
  </label>
340
  <p>
341
  <textarea name="A2A_SHARE_SAVE_additional_js_variables" id="A2A_SHARE_SAVE_additional_js_variables" class="code" style="width: 98%; font-size: 12px;" rows="5" cols="50"><?php echo stripslashes(get_option('A2A_SHARE_SAVE_additional_js_variables')); ?></textarea>
342
  </p>
343
  <?php if( get_option('A2A_SHARE_SAVE_additional_js_variables')!='' ) { ?>
344
+ <label for="A2A_SHARE_SAVE_additional_js_variables"><?php _e("<strong>Note</strong>: If you're adding new code, be careful not to accidentally overwrite any previous code.</label>", 'add-to-any'); ?>
345
  <?php } ?>
346
  </fieldset></td>
347
  </tr>