AddToAny Share Buttons - Version 0.9.8.6.4

Version Description

Download this release

Release Info

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

Code changes from version 0.9.8.6.3 to 0.9.8.6.4

Files changed (3) hide show
  1. README.txt +6 -1
  2. add-to-any.php +15 -4
  3. add-to-any.po +52 -48
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.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,6 +66,11 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
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
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.4
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.4:
70
+
71
+ * Additional Options in Admin panel provides link to JavaScript API
72
+ * Option to have full addtoany.com legacy page open in a new window
73
+
74
  .9.8.6.3:
75
 
76
  * Replaced short form of PHP's open tags with long form to work around configurations with short_open_tag disabled
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.3
7
  Author: Add to Any
8
  Author URI: http://www.addtoany.com/contact/
9
  */
@@ -43,6 +43,8 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = false) {
43
  $_SERVER["REQUEST_URI"] ;
44
  $linkurl_enc = rawurlencode( $linkurl );
45
 
 
 
46
  if( !get_option('A2A_SHARE_SAVE_button') ) {
47
  $button_fname = 'share_save_120_16.gif';
48
  $button_width = ' width="120"';
@@ -72,7 +74,7 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = false) {
72
  $button = '<img src="'.$button_src.'"'.$button_width.$button_height.' alt="Share/Save/Bookmark"/>';
73
  ?>
74
 
75
- <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=<?php echo $sitename_enc; ?>&amp;siteurl=<?php echo $siteurl_enc; ?>&amp;linkname=<?php echo $linkname_enc; ?>&amp;linkurl=<?php echo $linkurl_enc; ?>"<?php echo $style; ?>><?php echo $button; ?></a>
76
 
77
  <?php
78
 
@@ -191,6 +193,7 @@ function A2A_SHARE_SAVE_options_page() {
191
  update_option( 'A2A_SHARE_SAVE_hide_embeds', ($_POST['A2A_SHARE_SAVE_hide_embeds']=='1') ? '1':'-1' );
192
  update_option( 'A2A_SHARE_SAVE_show_title', ($_POST['A2A_SHARE_SAVE_show_title']=='1') ? '1':'-1' );
193
  update_option( 'A2A_SHARE_SAVE_onclick', ($_POST['A2A_SHARE_SAVE_onclick']=='1') ? '1':'-1' );
 
194
  update_option( 'A2A_SHARE_SAVE_button', $_POST['A2A_SHARE_SAVE_button'] );
195
  update_option( 'A2A_SHARE_SAVE_button_custom', $_POST['A2A_SHARE_SAVE_button_custom'] );
196
  update_option( 'A2A_SHARE_SAVE_button_text', ( trim($_POST['A2A_SHARE_SAVE_button_text']) != '' ) ? $_POST['A2A_SHARE_SAVE_button_text'] : "Share/Save" );
@@ -320,8 +323,16 @@ function A2A_SHARE_SAVE_options_page() {
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>
@@ -335,7 +346,7 @@ function A2A_SHARE_SAVE_options_page() {
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>
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.4
7
  Author: Add to Any
8
  Author URI: http://www.addtoany.com/contact/
9
  */
43
  $_SERVER["REQUEST_URI"] ;
44
  $linkurl_enc = rawurlencode( $linkurl );
45
 
46
+ $button_target = (get_option('A2A_SHARE_SAVE_button_opens_new_window')=='1' && (get_option('A2A_SHARE_SAVE_onclick')!='1')) ? ' target="_blank"' : '';
47
+
48
  if( !get_option('A2A_SHARE_SAVE_button') ) {
49
  $button_fname = 'share_save_120_16.gif';
50
  $button_width = ' width="120"';
74
  $button = '<img src="'.$button_src.'"'.$button_width.$button_height.' alt="Share/Save/Bookmark"/>';
75
  ?>
76
 
77
+ <a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save?sitename=<?php echo $sitename_enc; ?>&amp;siteurl=<?php echo $siteurl_enc; ?>&amp;linkname=<?php echo $linkname_enc; ?>&amp;linkurl=<?php echo $linkurl_enc; ?>"<?php echo $style . $button_target; ?>><?php echo $button; ?></a>
78
 
79
  <?php
80
 
193
  update_option( 'A2A_SHARE_SAVE_hide_embeds', ($_POST['A2A_SHARE_SAVE_hide_embeds']=='1') ? '1':'-1' );
194
  update_option( 'A2A_SHARE_SAVE_show_title', ($_POST['A2A_SHARE_SAVE_show_title']=='1') ? '1':'-1' );
195
  update_option( 'A2A_SHARE_SAVE_onclick', ($_POST['A2A_SHARE_SAVE_onclick']=='1') ? '1':'-1' );
196
+ update_option( 'A2A_SHARE_SAVE_button_opens_new_window', ($_POST['A2A_SHARE_SAVE_button_opens_new_window']=='1') ? '1':'-1' );
197
  update_option( 'A2A_SHARE_SAVE_button', $_POST['A2A_SHARE_SAVE_button'] );
198
  update_option( 'A2A_SHARE_SAVE_button_custom', $_POST['A2A_SHARE_SAVE_button_custom'] );
199
  update_option( 'A2A_SHARE_SAVE_button_text', ( trim($_POST['A2A_SHARE_SAVE_button_text']) != '' ) ? $_POST['A2A_SHARE_SAVE_button_text'] : "Share/Save" );
323
  </label><br />
324
  <label>
325
  <input name="A2A_SHARE_SAVE_onclick"
326
+ type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_onclick')=='1') echo ' checked="checked"'; ?> value="1"
327
+ onclick="e=getElementsByName('A2A_SHARE_SAVE_button_opens_new_window')[0];if(this.checked){e.checked=false;e.disabled=true}else{e.disabled=false}"
328
+ onchange="e=getElementsByName('A2A_SHARE_SAVE_button_opens_new_window')[0];if(this.checked){e.checked=false;e.disabled=true}else{e.disabled=false}"/>
329
  <?php _e('Only show the menu when the user clicks the Share/Save button', 'add-to-any'); ?>
330
+ </label><br />
331
+ <label>
332
+ <input name="A2A_SHARE_SAVE_button_opens_new_window"
333
+ type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_button_opens_new_window')=='1') echo ' checked="checked"'; ?> value="1"
334
+ <?php if(get_option('A2A_SHARE_SAVE_onclick')=='1') echo ' disabled="disabled"'; ?>/>
335
+ <?php _e('Open the addtoany.com menu page in a new tab or window if the user clicks the Share/Save button', 'add-to-any'); ?>
336
  </label>
337
  </fieldset></td>
338
  </tr>
346
  </p>
347
  <label for="A2A_SHARE_SAVE_additional_js_variables">
348
  <?php _e('Below you can set special JavaScript variables to apply to each Share/Save menu.', 'add-to-any'); ?>
349
+ <?php _e("Advanced users might want to check out the code generated by Add to Any's <a href=\"http://www.addtoany.com/buttons/api/\">JavaScript API</a>.", "add-to-any"); ?>
350
  </label>
351
  <p>
352
  <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>
add-to-any.po CHANGED
@@ -2,7 +2,7 @@ msgid ""
2
  msgstr ""
3
  "Project-Id-Version: add-to-any\n"
4
  "Report-Msgid-Bugs-To: \n"
5
- "POT-Creation-Date: 2008-11-18 22:54-0800\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: MicroPat\n"
8
  "Language-Team: \n"
@@ -13,184 +13,188 @@ msgstr ""
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SearchPath-0: .\n"
15
 
16
- #: add-to-any.php:122
17
  msgid "Share"
18
  msgstr ""
19
 
20
- #: add-to-any.php:123
21
  msgid "Save"
22
  msgstr ""
23
 
24
- #: add-to-any.php:124
25
  msgid "Subscribe"
26
  msgstr ""
27
 
28
- #: add-to-any.php:125
29
  msgid "E-mail"
30
  msgstr ""
31
 
32
- #: add-to-any.php:126
33
  msgid "Bookmark"
34
  msgstr ""
35
 
36
- #: add-to-any.php:127
37
  msgid "Show all"
38
  msgstr ""
39
 
40
- #: add-to-any.php:128
41
  msgid "Show less"
42
  msgstr ""
43
 
44
- #: add-to-any.php:129
45
  msgid "Find service(s)"
46
  msgstr ""
47
 
48
- #: add-to-any.php:130
49
  msgid "Instantly find any service to add to"
50
  msgstr ""
51
 
52
- #: add-to-any.php:131
53
  msgid "Powered by"
54
  msgstr ""
55
 
56
- #: add-to-any.php:132
57
  msgid "Share via e-mail"
58
  msgstr ""
59
 
60
- #: add-to-any.php:133
61
  msgid "Subscribe via e-mail"
62
  msgstr ""
63
 
64
- #: add-to-any.php:134
65
  msgid "Bookmark in your browser"
66
  msgstr ""
67
 
68
- #: add-to-any.php:135
69
  msgid "Press Ctrl+D or Cmd+D to bookmark this page"
70
  msgstr ""
71
 
72
- #: add-to-any.php:136
73
  msgid "Add to your favorites"
74
  msgstr ""
75
 
76
- #: add-to-any.php:137
77
  msgid "Send from any e-mail address or e-mail program"
78
  msgstr ""
79
 
80
- #: add-to-any.php:138
81
  msgid "E-mail program"
82
  msgstr ""
83
 
84
- #: add-to-any.php:200
85
  msgid "Settings saved."
86
  msgstr ""
87
 
88
- #: add-to-any.php:209
89
  msgid "Add to Any: Share/Save "
90
  msgstr ""
91
 
92
- #: add-to-any.php:209
93
- #: add-to-any.php:364
94
  msgid "Settings"
95
  msgstr ""
96
 
97
- #: add-to-any.php:219
98
  msgid "Button"
99
  msgstr ""
100
 
101
- #: add-to-any.php:248
102
  msgid "Image URL"
103
  msgstr ""
104
 
105
- #: add-to-any.php:255
106
  msgid "Text only"
107
  msgstr ""
108
 
109
- #: add-to-any.php:263
110
  msgid "Button Placement"
111
  msgstr ""
112
 
113
- #: add-to-any.php:272
114
  msgid "Display Share/Save button at the bottom of posts"
115
  msgstr ""
116
 
117
- #: add-to-any.php:279
118
  msgid "Display Share/Save button at the bottom of posts on the front page"
119
  msgstr ""
120
 
121
- #: add-to-any.php:286
122
  msgid "Display Share/Save button at the bottom of posts in the feed"
123
  msgstr ""
124
 
125
- #: add-to-any.php:290
126
  msgid "Display Share/Save button at the bottom of pages"
127
  msgstr ""
128
 
129
- #: add-to-any.php:293
130
  msgid "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>)"
131
  msgstr ""
132
 
133
- #: add-to-any.php:298
134
  msgid "Menu Style"
135
  msgstr ""
136
 
137
- #: add-to-any.php:300
138
  msgid "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."
139
  msgstr ""
140
 
141
- #: add-to-any.php:302
142
  msgid "Open the Add to Any Menu Styler in a new window"
143
  msgstr ""
144
 
145
- #: add-to-any.php:304
146
  msgid "Open Menu Styler"
147
  msgstr ""
148
 
149
- #: add-to-any.php:309
150
  msgid "Menu Options"
151
  msgstr ""
152
 
153
- #: add-to-any.php:314
154
  msgid "Hide embedded objects (Flash, video, etc.) that intersect with the menu when displayed"
155
  msgstr ""
156
 
157
- #: add-to-any.php:319
158
  msgid "Show the title of the post (or page) within the menu"
159
  msgstr ""
160
 
161
- #: add-to-any.php:324
162
  msgid "Only show the menu when the user clicks the Share/Save button"
163
  msgstr ""
164
 
165
- #: add-to-any.php:329
 
 
 
 
166
  msgid "Additional Options"
167
  msgstr ""
168
 
169
- #: add-to-any.php:333
170
  msgid "Paste the code from Add to Any's Menu Styler in the box below!"
171
  msgstr ""
172
 
173
- #: add-to-any.php:337
174
  msgid "Below you can set special JavaScript variables to apply to each Share/Save menu."
175
  msgstr ""
176
 
177
- #: add-to-any.php:338
178
- msgid "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>."
179
  msgstr ""
180
 
181
- #: add-to-any.php:344
182
  msgid "<strong>Note</strong>: If you're adding new code, be careful not to accidentally overwrite any previous code.</label>"
183
  msgstr ""
184
 
185
- #: add-to-any.php:351
186
  msgid "Save Changes"
187
  msgstr ""
188
 
189
- #: add-to-any.php:364
190
  msgid "Share/Save"
191
  msgstr ""
192
 
193
- #: add-to-any.php:365
194
  msgid "Share/Save Buttons"
195
  msgstr ""
196
 
2
  msgstr ""
3
  "Project-Id-Version: add-to-any\n"
4
  "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2008-11-26 01:15-0800\n"
6
  "PO-Revision-Date: \n"
7
  "Last-Translator: MicroPat\n"
8
  "Language-Team: \n"
13
  "X-Poedit-Basepath: .\n"
14
  "X-Poedit-SearchPath-0: .\n"
15
 
16
+ #: add-to-any.php:124
17
  msgid "Share"
18
  msgstr ""
19
 
20
+ #: add-to-any.php:125
21
  msgid "Save"
22
  msgstr ""
23
 
24
+ #: add-to-any.php:126
25
  msgid "Subscribe"
26
  msgstr ""
27
 
28
+ #: add-to-any.php:127
29
  msgid "E-mail"
30
  msgstr ""
31
 
32
+ #: add-to-any.php:128
33
  msgid "Bookmark"
34
  msgstr ""
35
 
36
+ #: add-to-any.php:129
37
  msgid "Show all"
38
  msgstr ""
39
 
40
+ #: add-to-any.php:130
41
  msgid "Show less"
42
  msgstr ""
43
 
44
+ #: add-to-any.php:131
45
  msgid "Find service(s)"
46
  msgstr ""
47
 
48
+ #: add-to-any.php:132
49
  msgid "Instantly find any service to add to"
50
  msgstr ""
51
 
52
+ #: add-to-any.php:133
53
  msgid "Powered by"
54
  msgstr ""
55
 
56
+ #: add-to-any.php:134
57
  msgid "Share via e-mail"
58
  msgstr ""
59
 
60
+ #: add-to-any.php:135
61
  msgid "Subscribe via e-mail"
62
  msgstr ""
63
 
64
+ #: add-to-any.php:136
65
  msgid "Bookmark in your browser"
66
  msgstr ""
67
 
68
+ #: add-to-any.php:137
69
  msgid "Press Ctrl+D or Cmd+D to bookmark this page"
70
  msgstr ""
71
 
72
+ #: add-to-any.php:138
73
  msgid "Add to your favorites"
74
  msgstr ""
75
 
76
+ #: add-to-any.php:139
77
  msgid "Send from any e-mail address or e-mail program"
78
  msgstr ""
79
 
80
+ #: add-to-any.php:140
81
  msgid "E-mail program"
82
  msgstr ""
83
 
84
+ #: add-to-any.php:203
85
  msgid "Settings saved."
86
  msgstr ""
87
 
88
+ #: add-to-any.php:212
89
  msgid "Add to Any: Share/Save "
90
  msgstr ""
91
 
92
+ #: add-to-any.php:212
93
+ #: add-to-any.php:375
94
  msgid "Settings"
95
  msgstr ""
96
 
97
+ #: add-to-any.php:222
98
  msgid "Button"
99
  msgstr ""
100
 
101
+ #: add-to-any.php:251
102
  msgid "Image URL"
103
  msgstr ""
104
 
105
+ #: add-to-any.php:258
106
  msgid "Text only"
107
  msgstr ""
108
 
109
+ #: add-to-any.php:266
110
  msgid "Button Placement"
111
  msgstr ""
112
 
113
+ #: add-to-any.php:275
114
  msgid "Display Share/Save button at the bottom of posts"
115
  msgstr ""
116
 
117
+ #: add-to-any.php:282
118
  msgid "Display Share/Save button at the bottom of posts on the front page"
119
  msgstr ""
120
 
121
+ #: add-to-any.php:289
122
  msgid "Display Share/Save button at the bottom of posts in the feed"
123
  msgstr ""
124
 
125
+ #: add-to-any.php:293
126
  msgid "Display Share/Save button at the bottom of pages"
127
  msgstr ""
128
 
129
+ #: add-to-any.php:296
130
  msgid "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>)"
131
  msgstr ""
132
 
133
+ #: add-to-any.php:301
134
  msgid "Menu Style"
135
  msgstr ""
136
 
137
+ #: add-to-any.php:303
138
  msgid "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."
139
  msgstr ""
140
 
141
+ #: add-to-any.php:305
142
  msgid "Open the Add to Any Menu Styler in a new window"
143
  msgstr ""
144
 
145
+ #: add-to-any.php:307
146
  msgid "Open Menu Styler"
147
  msgstr ""
148
 
149
+ #: add-to-any.php:312
150
  msgid "Menu Options"
151
  msgstr ""
152
 
153
+ #: add-to-any.php:317
154
  msgid "Hide embedded objects (Flash, video, etc.) that intersect with the menu when displayed"
155
  msgstr ""
156
 
157
+ #: add-to-any.php:322
158
  msgid "Show the title of the post (or page) within the menu"
159
  msgstr ""
160
 
161
+ #: add-to-any.php:329
162
  msgid "Only show the menu when the user clicks the Share/Save button"
163
  msgstr ""
164
 
165
+ #: add-to-any.php:335
166
+ msgid "Open the addtoany.com menu page in a new tab or window if the user clicks the Share/Save button"
167
+ msgstr ""
168
+
169
+ #: add-to-any.php:340
170
  msgid "Additional Options"
171
  msgstr ""
172
 
173
+ #: add-to-any.php:344
174
  msgid "Paste the code from Add to Any's Menu Styler in the box below!"
175
  msgstr ""
176
 
177
+ #: add-to-any.php:348
178
  msgid "Below you can set special JavaScript variables to apply to each Share/Save menu."
179
  msgstr ""
180
 
181
+ #: add-to-any.php:349
182
+ msgid "Advanced users might want to check out the code generated by Add to Any's <a href=\"http://www.addtoany.com/buttons/api/\">JavaScript API</a>."
183
  msgstr ""
184
 
185
+ #: add-to-any.php:355
186
  msgid "<strong>Note</strong>: If you're adding new code, be careful not to accidentally overwrite any previous code.</label>"
187
  msgstr ""
188
 
189
+ #: add-to-any.php:362
190
  msgid "Save Changes"
191
  msgstr ""
192
 
193
+ #: add-to-any.php:375
194
  msgid "Share/Save"
195
  msgstr ""
196
 
197
+ #: add-to-any.php:376
198
  msgid "Share/Save Buttons"
199
  msgstr ""
200