Version Description
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 0.9.8.1 |
Comparing to | |
See all releases |
Code changes from version 0.9.7 to 0.9.8.1
- README.txt +15 -2
- add-to-any.php +57 -64
- add-to-any.po +49 -41
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: micropat
|
|
3 |
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 |
-
Stable tag: 0.9.
|
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,19 @@ This is done to overcome browser limitations that prevent the drop-down menu fro
|
|
66 |
|
67 |
== Changelog ==
|
68 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
69 |
.9.7:
|
70 |
|
71 |
* Internationalization
|
3 |
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.1
|
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.1:
|
70 |
+
|
71 |
+
* Fixed repo problem
|
72 |
+
|
73 |
+
.9.8:
|
74 |
+
|
75 |
+
* JavaScript removed from blog feed
|
76 |
+
* Option to display button (without menu) or to not display it at all below posts in blog feed
|
77 |
+
* Replaced some UTF-8 encoding functions with core WordPress functions
|
78 |
+
* For XHTML validation, special characters are converted to HTML entities within JavaScript variables
|
79 |
+
* Reprioritized plugin to load later
|
80 |
+
* Text-only button option
|
81 |
+
|
82 |
.9.7:
|
83 |
|
84 |
* Internationalization
|
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.
|
7 |
Author: Add to Any
|
8 |
Author URI: http://www.addtoany.com/contact/
|
9 |
*/
|
@@ -23,49 +23,13 @@ function A2A_SHARE_SAVE_textdomain() {
|
|
23 |
add_action('init', 'A2A_SHARE_SAVE_textdomain');
|
24 |
|
25 |
|
26 |
-
// Returns the utf string corresponding to the unicode value (from php.net, courtesy - romans@void.lv)
|
27 |
-
if (!function_exists('A2A_SHARE_SAVE_code2utf')) {
|
28 |
-
function A2A_SHARE_SAVE_code2utf($num)
|
29 |
-
{
|
30 |
-
if ($num < 128) return chr($num);
|
31 |
-
if ($num < 2048) return chr(($num >> 6) + 192) . chr(($num & 63) + 128);
|
32 |
-
if ($num < 65536) return chr(($num >> 12) + 224) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
|
33 |
-
if ($num < 2097152) return chr(($num >> 18) + 240) . chr((($num >> 12) & 63) + 128) . chr((($num >> 6) & 63) + 128) . chr(($num & 63) + 128);
|
34 |
-
return '';
|
35 |
-
}
|
36 |
-
}
|
37 |
-
|
38 |
-
// Since UTF-8 does not work in PHP4 ( http://us2.php.net/manual/en/function.html-entity-decode.php ) :
|
39 |
-
if (!function_exists('A2A_SHARE_SAVE_html_entity_decode_utf8')) {
|
40 |
-
function A2A_SHARE_SAVE_html_entity_decode_utf8($string)
|
41 |
-
{
|
42 |
-
static $trans_tbl;
|
43 |
-
|
44 |
-
// replace numeric entities
|
45 |
-
$string = preg_replace('~&#x([0-9a-f]+);~ei', 'A2A_SHARE_SAVE_code2utf(hexdec("\\1"))', $string);
|
46 |
-
$string = preg_replace('~&#([0-9]+);~e', 'A2A_SHARE_SAVE_code2utf(\\1)', $string);
|
47 |
-
|
48 |
-
// replace literal entities
|
49 |
-
if (!isset($trans_tbl))
|
50 |
-
{
|
51 |
-
$trans_tbl = array();
|
52 |
-
|
53 |
-
foreach (get_html_translation_table(HTML_ENTITIES) as $val=>$key)
|
54 |
-
$trans_tbl[$key] = utf8_encode($val);
|
55 |
-
}
|
56 |
-
|
57 |
-
return strtr($string, $trans_tbl);
|
58 |
-
}
|
59 |
-
}
|
60 |
-
|
61 |
-
|
62 |
function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
63 |
|
64 |
if($output_buffering)ob_start();
|
65 |
|
66 |
$sitename_enc = rawurlencode( get_bloginfo('name') );
|
67 |
$siteurl_enc = rawurlencode( trailingslashit( get_bloginfo('url') ) );
|
68 |
-
$linkname =
|
69 |
$linkname_enc = rawurlencode( $linkname );
|
70 |
$linkurl = get_permalink($post->ID);
|
71 |
$linkurl_enc = rawurlencode( $linkurl );
|
@@ -79,6 +43,8 @@ function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
|
79 |
$button_src = get_option('A2A_SHARE_SAVE_button_custom');
|
80 |
$button_width = '';
|
81 |
$button_height = '';
|
|
|
|
|
82 |
} else {
|
83 |
$button_attrs = explode( '|', get_option('A2A_SHARE_SAVE_button') );
|
84 |
$button_fname = $button_attrs[0];
|
@@ -91,32 +57,41 @@ function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
|
91 |
$style_bg = ';' . $style_bg . ' !important;';
|
92 |
$style = ' style="'.$style_bg.'padding:1px 5px 5px 22px"';
|
93 |
$button = 'Share/Save';
|
94 |
-
} else
|
|
|
|
|
95 |
$button = '<img src="'.$button_src.'"'.$button_width.$button_height.' alt="Share/Save/Bookmark"/>';
|
96 |
?>
|
97 |
|
98 |
-
<a class="a2a_dd addtoany_share_save" <?php
|
|
|
|
|
|
|
99 |
|
100 |
<?php
|
101 |
-
global $A2A_javascript, $A2A_SHARE_SAVE_external_script_called;
|
102 |
-
if( $A2A_javascript == '' || !$A2A_SHARE_SAVE_external_script_called ) {
|
103 |
-
$external_script_call = '</script><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>';
|
104 |
-
$A2A_SHARE_SAVE_external_script_called = true;
|
105 |
-
}
|
106 |
-
else
|
107 |
-
$external_script_call = 'a2a_init("page");</script>';
|
108 |
-
$A2A_javascript .= '<script type="text/javascript">' . "\n"
|
109 |
-
. A2A_menu_locale()
|
110 |
-
. 'a2a_linkname="' . str_replace('"', '\\"', $linkname) . '";' . "\n"
|
111 |
-
. 'a2a_linkurl="' . $linkurl . '";' . "\n"
|
112 |
-
. ((get_option('A2A_SHARE_SAVE_hide_embeds')=='-1') ? 'a2a_hide_embeds=0;' . "\n" : '')
|
113 |
-
. ((get_option('A2A_SHARE_SAVE_show_title')=='1') ? 'a2a_show_title=1;' . "\n" : '')
|
114 |
-
. stripslashes(get_option('A2A_SHARE_SAVE_additional_js_variables')) . "\n"
|
115 |
-
. $external_script_call . "\n\n";
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
|
118 |
-
|
119 |
-
add_action('wp_footer', 'A2A_menu_javascript');
|
120 |
|
121 |
if($output_buffering) {
|
122 |
$button = ob_get_contents();
|
@@ -163,7 +138,8 @@ function A2A_SHARE_SAVE_to_bottom_of_content($content) {
|
|
163 |
( !is_page() && get_option('A2A_SHARE_SAVE_display_in_posts')=='-1' ) || // All posts
|
164 |
( !is_page() && !is_single() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) || // Front page posts
|
165 |
( is_page() && get_option('A2A_SHARE_SAVE_display_in_pages')=='-1' ) || // Pages
|
166 |
-
( (strpos($content, '<!--nosharesave-->')!==false ) )
|
|
|
167 |
)
|
168 |
)
|
169 |
return $content;
|
@@ -172,7 +148,7 @@ function A2A_SHARE_SAVE_to_bottom_of_content($content) {
|
|
172 |
return $content;
|
173 |
}
|
174 |
|
175 |
-
add_action('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content');
|
176 |
|
177 |
|
178 |
function A2A_SHARE_SAVE_button_css() {
|
@@ -197,11 +173,13 @@ function A2A_SHARE_SAVE_options_page() {
|
|
197 |
update_option( 'A2A_SHARE_SAVE_display_in_posts_on_front_page', ($_POST['A2A_SHARE_SAVE_display_in_posts_on_front_page']=='1') ? '1':'-1' );
|
198 |
update_option( 'A2A_SHARE_SAVE_display_in_posts', ($_POST['A2A_SHARE_SAVE_display_in_posts']=='1') ? '1':'-1' );
|
199 |
update_option( 'A2A_SHARE_SAVE_display_in_pages', ($_POST['A2A_SHARE_SAVE_display_in_pages']=='1') ? '1':'-1' );
|
|
|
200 |
update_option( 'A2A_SHARE_SAVE_hide_embeds', ($_POST['A2A_SHARE_SAVE_hide_embeds']=='1') ? '1':'-1' );
|
201 |
update_option( 'A2A_SHARE_SAVE_show_title', ($_POST['A2A_SHARE_SAVE_show_title']=='1') ? '1':'-1' );
|
202 |
update_option( 'A2A_SHARE_SAVE_onclick', ($_POST['A2A_SHARE_SAVE_onclick']=='1') ? '1':'-1' );
|
203 |
update_option( 'A2A_SHARE_SAVE_button', $_POST['A2A_SHARE_SAVE_button'] );
|
204 |
update_option( 'A2A_SHARE_SAVE_button_custom', $_POST['A2A_SHARE_SAVE_button_custom'] );
|
|
|
205 |
update_option( 'A2A_SHARE_SAVE_additional_js_variables', trim($_POST['A2A_SHARE_SAVE_additional_js_variables']) );
|
206 |
|
207 |
?>
|
@@ -255,8 +233,15 @@ function A2A_SHARE_SAVE_options_page() {
|
|
255 |
style="margin:9px 0;vertical-align:middle">
|
256 |
<span style="margin:0 9px;vertical-align:middle"><? _e("Image URL"); ?>:</span>
|
257 |
</label>
|
258 |
-
<input name="A2A_SHARE_SAVE_button_custom" type="text" class="code" size="50" onclick="e=document.getElementsByName('A2A_SHARE_SAVE_button');e[e.length-
|
259 |
-
value="<?php echo get_option('A2A_SHARE_SAVE_button_custom'); ?>"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
|
261 |
</fieldset></td>
|
262 |
</tr>
|
@@ -265,8 +250,10 @@ function A2A_SHARE_SAVE_options_page() {
|
|
265 |
<td><fieldset>
|
266 |
<label>
|
267 |
<input name="A2A_SHARE_SAVE_display_in_posts"
|
268 |
-
onclick="e=getElementsByName('A2A_SHARE_SAVE_display_in_posts_on_front_page')[0];
|
269 |
-
|
|
|
|
|
270 |
type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_display_in_posts')!='-1') echo ' checked="checked"'; ?> value="1"/>
|
271 |
<? _e('Display Share/Save button at the bottom of posts', 'add-to-any'); ?> <strong>*</strong>
|
272 |
</label><br/>
|
@@ -277,11 +264,17 @@ function A2A_SHARE_SAVE_options_page() {
|
|
277 |
?> value="1"/>
|
278 |
<? _e('Display Share/Save button at the bottom of posts on the front page', 'add-to-any'); ?>
|
279 |
</label><br/>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
<label>
|
281 |
<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"/>
|
282 |
<? _e('Display Share/Save button at the bottom of pages', 'add-to-any'); ?> <strong>*</strong>
|
283 |
</label>
|
284 |
-
|
285 |
<br/><br/>
|
286 |
<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/>
|
287 |
<code><?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?></code>
|
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.1
|
7 |
Author: Add to Any
|
8 |
Author URI: http://www.addtoany.com/contact/
|
9 |
*/
|
23 |
add_action('init', 'A2A_SHARE_SAVE_textdomain');
|
24 |
|
25 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
26 |
function ADDTOANY_SHARE_SAVE_BUTTON($output_buffering=false) {
|
27 |
|
28 |
if($output_buffering)ob_start();
|
29 |
|
30 |
$sitename_enc = rawurlencode( get_bloginfo('name') );
|
31 |
$siteurl_enc = rawurlencode( trailingslashit( get_bloginfo('url') ) );
|
32 |
+
$linkname = get_the_title();
|
33 |
$linkname_enc = rawurlencode( $linkname );
|
34 |
$linkurl = get_permalink($post->ID);
|
35 |
$linkurl_enc = rawurlencode( $linkurl );
|
43 |
$button_src = get_option('A2A_SHARE_SAVE_button_custom');
|
44 |
$button_width = '';
|
45 |
$button_height = '';
|
46 |
+
} else if( get_option('A2A_SHARE_SAVE_button') == 'TEXT' ) {
|
47 |
+
$button_text = get_option('A2A_SHARE_SAVE_button_text');
|
48 |
} else {
|
49 |
$button_attrs = explode( '|', get_option('A2A_SHARE_SAVE_button') );
|
50 |
$button_fname = $button_attrs[0];
|
57 |
$style_bg = ';' . $style_bg . ' !important;';
|
58 |
$style = ' style="'.$style_bg.'padding:1px 5px 5px 22px"';
|
59 |
$button = 'Share/Save';
|
60 |
+
} else if( $button_text ) {
|
61 |
+
$button = $button_text;
|
62 |
+
} else
|
63 |
$button = '<img src="'.$button_src.'"'.$button_width.$button_height.' alt="Share/Save/Bookmark"/>';
|
64 |
?>
|
65 |
|
66 |
+
<a class="a2a_dd addtoany_share_save" <?php
|
67 |
+
if( !is_feed() ) {
|
68 |
+
echo (get_option('A2A_SHARE_SAVE_onclick')=='1') ? 'onclick="a2a_show_dropdown(this);return false"' : 'onmouseover="a2a_show_dropdown(this)"'; echo ' onmouseout="a2a_onMouseOut_delay()" ';
|
69 |
+
} ?>href="http://www.addtoany.com/share_save?sitename=<?php echo $sitename_enc; ?>&siteurl=<?php echo $siteurl_enc; ?>&linkname=<?php echo $linkname_enc; ?>&linkurl=<?php echo $linkurl_enc; ?>"<?php echo $style; ?>><?php echo $button; ?></a>
|
70 |
|
71 |
<?php
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
|
73 |
+
if( !is_feed() ) {
|
74 |
+
|
75 |
+
global $A2A_javascript, $A2A_SHARE_SAVE_external_script_called;
|
76 |
+
if( $A2A_javascript == '' || !$A2A_SHARE_SAVE_external_script_called ) {
|
77 |
+
$external_script_call = '</script><script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>';
|
78 |
+
$A2A_SHARE_SAVE_external_script_called = true;
|
79 |
+
}
|
80 |
+
else
|
81 |
+
$external_script_call = 'a2a_init("page");</script>';
|
82 |
+
$A2A_javascript .= '<script type="text/javascript">' . "\n"
|
83 |
+
. A2A_menu_locale()
|
84 |
+
. 'a2a_linkname="' . js_escape($linkname) . '";' . "\n"
|
85 |
+
. 'a2a_linkurl="' . $linkurl . '";' . "\n"
|
86 |
+
. ((get_option('A2A_SHARE_SAVE_hide_embeds')=='-1') ? 'a2a_hide_embeds=0;' . "\n" : '')
|
87 |
+
. ((get_option('A2A_SHARE_SAVE_show_title')=='1') ? 'a2a_show_title=1;' . "\n" : '')
|
88 |
+
. stripslashes(get_option('A2A_SHARE_SAVE_additional_js_variables')) . "\n"
|
89 |
+
. $external_script_call . "\n\n";
|
90 |
+
|
91 |
+
remove_action('wp_footer', 'A2A_menu_javascript');
|
92 |
+
add_action('wp_footer', 'A2A_menu_javascript');
|
93 |
|
94 |
+
}
|
|
|
95 |
|
96 |
if($output_buffering) {
|
97 |
$button = ob_get_contents();
|
138 |
( !is_page() && get_option('A2A_SHARE_SAVE_display_in_posts')=='-1' ) || // All posts
|
139 |
( !is_page() && !is_single() && get_option('A2A_SHARE_SAVE_display_in_posts_on_front_page')=='-1' ) || // Front page posts
|
140 |
( is_page() && get_option('A2A_SHARE_SAVE_display_in_pages')=='-1' ) || // Pages
|
141 |
+
( (strpos($content, '<!--nosharesave-->')!==false ) ) || // <!--nosharesave-->
|
142 |
+
( is_feed() && (get_option('A2A_SHARE_SAVE_display_in_feed')=='-1') ) // Display in feed?
|
143 |
)
|
144 |
)
|
145 |
return $content;
|
148 |
return $content;
|
149 |
}
|
150 |
|
151 |
+
add_action('the_content', 'A2A_SHARE_SAVE_to_bottom_of_content', 98);
|
152 |
|
153 |
|
154 |
function A2A_SHARE_SAVE_button_css() {
|
173 |
update_option( 'A2A_SHARE_SAVE_display_in_posts_on_front_page', ($_POST['A2A_SHARE_SAVE_display_in_posts_on_front_page']=='1') ? '1':'-1' );
|
174 |
update_option( 'A2A_SHARE_SAVE_display_in_posts', ($_POST['A2A_SHARE_SAVE_display_in_posts']=='1') ? '1':'-1' );
|
175 |
update_option( 'A2A_SHARE_SAVE_display_in_pages', ($_POST['A2A_SHARE_SAVE_display_in_pages']=='1') ? '1':'-1' );
|
176 |
+
update_option( 'A2A_SHARE_SAVE_display_in_feed', ($_POST['A2A_SHARE_SAVE_display_in_feed']=='1') ? '1':'-1' );
|
177 |
update_option( 'A2A_SHARE_SAVE_hide_embeds', ($_POST['A2A_SHARE_SAVE_hide_embeds']=='1') ? '1':'-1' );
|
178 |
update_option( 'A2A_SHARE_SAVE_show_title', ($_POST['A2A_SHARE_SAVE_show_title']=='1') ? '1':'-1' );
|
179 |
update_option( 'A2A_SHARE_SAVE_onclick', ($_POST['A2A_SHARE_SAVE_onclick']=='1') ? '1':'-1' );
|
180 |
update_option( 'A2A_SHARE_SAVE_button', $_POST['A2A_SHARE_SAVE_button'] );
|
181 |
update_option( 'A2A_SHARE_SAVE_button_custom', $_POST['A2A_SHARE_SAVE_button_custom'] );
|
182 |
+
update_option( 'A2A_SHARE_SAVE_button_text', ( trim($_POST['A2A_SHARE_SAVE_button_text']) != '' ) ? $_POST['A2A_SHARE_SAVE_button_text'] : "Share/Save" );
|
183 |
update_option( 'A2A_SHARE_SAVE_additional_js_variables', trim($_POST['A2A_SHARE_SAVE_additional_js_variables']) );
|
184 |
|
185 |
?>
|
233 |
style="margin:9px 0;vertical-align:middle">
|
234 |
<span style="margin:0 9px;vertical-align:middle"><? _e("Image URL"); ?>:</span>
|
235 |
</label>
|
236 |
+
<input name="A2A_SHARE_SAVE_button_custom" type="text" class="code" size="50" onclick="e=document.getElementsByName('A2A_SHARE_SAVE_button');e[e.length-2].checked=true" style="vertical-align:middle"
|
237 |
+
value="<?php echo get_option('A2A_SHARE_SAVE_button_custom'); ?>" /><br>
|
238 |
+
<label>
|
239 |
+
<input name="A2A_SHARE_SAVE_button" value="TEXT" type="radio"<?php if( get_option('A2A_SHARE_SAVE_button') == 'TEXT' ) echo ' checked="checked"'; ?>
|
240 |
+
style="margin:9px 0;vertical-align:middle">
|
241 |
+
<span style="margin:0 9px;vertical-align:middle"><? _e("Text only"); ?>:</span>
|
242 |
+
</label>
|
243 |
+
<input name="A2A_SHARE_SAVE_button_text" type="text" class="code" size="50" onclick="e=document.getElementsByName('A2A_SHARE_SAVE_button');e[e.length-1].checked=true" style="vertical-align:middle"
|
244 |
+
value="<?php echo ( trim(get_option('A2A_SHARE_SAVE_button_text')) != '' ) ? get_option('A2A_SHARE_SAVE_button_text') : "Share/Save"; ?>" />
|
245 |
|
246 |
</fieldset></td>
|
247 |
</tr>
|
250 |
<td><fieldset>
|
251 |
<label>
|
252 |
<input name="A2A_SHARE_SAVE_display_in_posts"
|
253 |
+
onclick="e=getElementsByName('A2A_SHARE_SAVE_display_in_posts_on_front_page')[0];f=getElementsByName('A2A_SHARE_SAVE_display_in_feed')[0];
|
254 |
+
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}"
|
255 |
+
onchange="e=getElementsByName('A2A_SHARE_SAVE_display_in_posts_on_front_page')[0];f=getElementsByName('A2A_SHARE_SAVE_display_in_feed')[0];
|
256 |
+
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}"
|
257 |
type="checkbox"<?php if(get_option('A2A_SHARE_SAVE_display_in_posts')!='-1') echo ' checked="checked"'; ?> value="1"/>
|
258 |
<? _e('Display Share/Save button at the bottom of posts', 'add-to-any'); ?> <strong>*</strong>
|
259 |
</label><br/>
|
264 |
?> value="1"/>
|
265 |
<? _e('Display Share/Save button at the bottom of posts on the front page', 'add-to-any'); ?>
|
266 |
</label><br/>
|
267 |
+
<label>
|
268 |
+
<input name="A2A_SHARE_SAVE_display_in_feed" type="checkbox"<?php
|
269 |
+
if(get_option('A2A_SHARE_SAVE_display_in_feed')!='-1') echo ' checked="checked"';
|
270 |
+
if(get_option('A2A_SHARE_SAVE_display_in_posts')=='-1') echo ' disabled="disabled"';
|
271 |
+
?> value="1"/>
|
272 |
+
<? _e('Display Share/Save button at the bottom of posts in the feed', 'add-to-any'); ?>
|
273 |
+
</label><br/>
|
274 |
<label>
|
275 |
<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"/>
|
276 |
<? _e('Display Share/Save button at the bottom of pages', 'add-to-any'); ?> <strong>*</strong>
|
277 |
</label>
|
|
|
278 |
<br/><br/>
|
279 |
<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/>
|
280 |
<code><?php if( function_exists('ADDTOANY_SHARE_SAVE_BUTTON') ) { ADDTOANY_SHARE_SAVE_BUTTON(); } ?></code>
|
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-
|
6 |
"PO-Revision-Date: \n"
|
7 |
"Last-Translator: MicroPat\n"
|
8 |
"Language-Team: \n"
|
@@ -13,160 +13,168 @@ msgstr ""
|
|
13 |
"X-Poedit-Basepath: .\n"
|
14 |
"X-Poedit-SearchPath-0: .\n"
|
15 |
|
16 |
-
#: add-to-any.php:
|
17 |
msgid "Share"
|
18 |
msgstr ""
|
19 |
|
20 |
-
#: add-to-any.php:
|
21 |
msgid "Save"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: add-to-any.php:
|
25 |
msgid "Subscribe"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: add-to-any.php:
|
29 |
msgid "Show all"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: add-to-any.php:
|
33 |
msgid "Show less"
|
34 |
msgstr ""
|
35 |
|
36 |
-
#: add-to-any.php:
|
37 |
msgid "Find service(s)"
|
38 |
msgstr ""
|
39 |
|
40 |
-
#: add-to-any.php:
|
41 |
msgid "Instantly find any service to add to"
|
42 |
msgstr ""
|
43 |
|
44 |
-
#: add-to-any.php:
|
45 |
msgid "Powered by"
|
46 |
msgstr ""
|
47 |
|
48 |
-
#: add-to-any.php:
|
49 |
msgid "Share via e-mail"
|
50 |
msgstr ""
|
51 |
|
52 |
-
#: add-to-any.php:
|
53 |
msgid "Subscribe via e-mail"
|
54 |
msgstr ""
|
55 |
|
56 |
-
#: add-to-any.php:
|
57 |
msgid "Bookmark in your browser"
|
58 |
msgstr ""
|
59 |
|
60 |
-
#: add-to-any.php:
|
61 |
msgid "After clicking OK, press Ctrl+D or Cmd+D to bookmark this page"
|
62 |
msgstr ""
|
63 |
|
64 |
-
#: add-to-any.php:
|
65 |
msgid "Add to your favorites"
|
66 |
msgstr ""
|
67 |
|
68 |
-
#: add-to-any.php:
|
69 |
msgid "Settings saved."
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: add-to-any.php:
|
73 |
msgid "Add to Any: Share/Save "
|
74 |
msgstr ""
|
75 |
|
76 |
-
#: add-to-any.php:
|
77 |
-
#: add-to-any.php:
|
78 |
msgid "Settings"
|
79 |
msgstr ""
|
80 |
|
81 |
-
#: add-to-any.php:
|
82 |
msgid "Button"
|
83 |
msgstr ""
|
84 |
|
85 |
-
#: add-to-any.php:
|
86 |
msgid "Image URL"
|
87 |
msgstr ""
|
88 |
|
89 |
-
#: add-to-any.php:
|
|
|
|
|
|
|
|
|
90 |
msgid "Button Placement"
|
91 |
msgstr ""
|
92 |
|
93 |
-
#: add-to-any.php:
|
94 |
msgid "Display Share/Save button at the bottom of posts"
|
95 |
msgstr ""
|
96 |
|
97 |
-
#: add-to-any.php:
|
98 |
msgid "Display Share/Save button at the bottom of posts on the front page"
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: add-to-any.php:
|
|
|
|
|
|
|
|
|
102 |
msgid "Display Share/Save button at the bottom of pages"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: add-to-any.php:
|
106 |
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>)"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: add-to-any.php:
|
110 |
msgid "Menu Style"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: add-to-any.php:
|
114 |
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."
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: add-to-any.php:
|
118 |
msgid "Open the Add to Any Menu Styler in a new window"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: add-to-any.php:
|
122 |
msgid "Open Menu Styler"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: add-to-any.php:
|
126 |
msgid "Menu Options"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: add-to-any.php:
|
130 |
msgid "Hide embedded objects (Flash, video, etc.) that intersect with the menu when displayed"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: add-to-any.php:
|
134 |
msgid "Show the title of the post (or page) within the menu"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: add-to-any.php:
|
138 |
msgid "Only show the menu when the user clicks the Share/Save button"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: add-to-any.php:
|
142 |
msgid "Additional Options"
|
143 |
msgstr ""
|
144 |
|
145 |
-
#: add-to-any.php:
|
146 |
msgid "Paste the code from Add to Any's Menu Styler in the box below!"
|
147 |
msgstr ""
|
148 |
|
149 |
-
#: add-to-any.php:
|
150 |
msgid "Below you can set special JavaScript variables to apply to each Share/Save menu."
|
151 |
msgstr ""
|
152 |
|
153 |
-
#: add-to-any.php:
|
154 |
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>."
|
155 |
msgstr ""
|
156 |
|
157 |
-
#: add-to-any.php:
|
158 |
msgid "<strong>Note</strong>: If you're adding new code, be careful not to accidentally overwrite any previous code.</label>"
|
159 |
msgstr ""
|
160 |
|
161 |
-
#: add-to-any.php:
|
162 |
msgid "Save Changes"
|
163 |
msgstr ""
|
164 |
|
165 |
-
#: add-to-any.php:
|
166 |
msgid "Share/Save"
|
167 |
msgstr ""
|
168 |
|
169 |
-
#: add-to-any.php:
|
170 |
msgid "Share/Save Buttons"
|
171 |
msgstr ""
|
172 |
|
2 |
msgstr ""
|
3 |
"Project-Id-Version: add-to-any\n"
|
4 |
"Report-Msgid-Bugs-To: \n"
|
5 |
+
"POT-Creation-Date: 2008-10-23 18:09-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:115
|
17 |
msgid "Share"
|
18 |
msgstr ""
|
19 |
|
20 |
+
#: add-to-any.php:116
|
21 |
msgid "Save"
|
22 |
msgstr ""
|
23 |
|
24 |
+
#: add-to-any.php:117
|
25 |
msgid "Subscribe"
|
26 |
msgstr ""
|
27 |
|
28 |
+
#: add-to-any.php:118
|
29 |
msgid "Show all"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: add-to-any.php:119
|
33 |
msgid "Show less"
|
34 |
msgstr ""
|
35 |
|
36 |
+
#: add-to-any.php:120
|
37 |
msgid "Find service(s)"
|
38 |
msgstr ""
|
39 |
|
40 |
+
#: add-to-any.php:121
|
41 |
msgid "Instantly find any service to add to"
|
42 |
msgstr ""
|
43 |
|
44 |
+
#: add-to-any.php:122
|
45 |
msgid "Powered by"
|
46 |
msgstr ""
|
47 |
|
48 |
+
#: add-to-any.php:123
|
49 |
msgid "Share via e-mail"
|
50 |
msgstr ""
|
51 |
|
52 |
+
#: add-to-any.php:124
|
53 |
msgid "Subscribe via e-mail"
|
54 |
msgstr ""
|
55 |
|
56 |
+
#: add-to-any.php:125
|
57 |
msgid "Bookmark in your browser"
|
58 |
msgstr ""
|
59 |
|
60 |
+
#: add-to-any.php:126
|
61 |
msgid "After clicking OK, press Ctrl+D or Cmd+D to bookmark this page"
|
62 |
msgstr ""
|
63 |
|
64 |
+
#: add-to-any.php:127
|
65 |
msgid "Add to your favorites"
|
66 |
msgstr ""
|
67 |
|
68 |
+
#: add-to-any.php:186
|
69 |
msgid "Settings saved."
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: add-to-any.php:195
|
73 |
msgid "Add to Any: Share/Save "
|
74 |
msgstr ""
|
75 |
|
76 |
+
#: add-to-any.php:195
|
77 |
+
#: add-to-any.php:350
|
78 |
msgid "Settings"
|
79 |
msgstr ""
|
80 |
|
81 |
+
#: add-to-any.php:205
|
82 |
msgid "Button"
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: add-to-any.php:234
|
86 |
msgid "Image URL"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#: add-to-any.php:241
|
90 |
+
msgid "Text only"
|
91 |
+
msgstr ""
|
92 |
+
|
93 |
+
#: add-to-any.php:249
|
94 |
msgid "Button Placement"
|
95 |
msgstr ""
|
96 |
|
97 |
+
#: add-to-any.php:258
|
98 |
msgid "Display Share/Save button at the bottom of posts"
|
99 |
msgstr ""
|
100 |
|
101 |
+
#: add-to-any.php:265
|
102 |
msgid "Display Share/Save button at the bottom of posts on the front page"
|
103 |
msgstr ""
|
104 |
|
105 |
+
#: add-to-any.php:272
|
106 |
+
msgid "Display Share/Save button at the bottom of posts in the feed"
|
107 |
+
msgstr ""
|
108 |
+
|
109 |
+
#: add-to-any.php:276
|
110 |
msgid "Display Share/Save button at the bottom of pages"
|
111 |
msgstr ""
|
112 |
|
113 |
+
#: add-to-any.php:279
|
114 |
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>)"
|
115 |
msgstr ""
|
116 |
|
117 |
+
#: add-to-any.php:284
|
118 |
msgid "Menu Style"
|
119 |
msgstr ""
|
120 |
|
121 |
+
#: add-to-any.php:286
|
122 |
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."
|
123 |
msgstr ""
|
124 |
|
125 |
+
#: add-to-any.php:288
|
126 |
msgid "Open the Add to Any Menu Styler in a new window"
|
127 |
msgstr ""
|
128 |
|
129 |
+
#: add-to-any.php:290
|
130 |
msgid "Open Menu Styler"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: add-to-any.php:295
|
134 |
msgid "Menu Options"
|
135 |
msgstr ""
|
136 |
|
137 |
+
#: add-to-any.php:300
|
138 |
msgid "Hide embedded objects (Flash, video, etc.) that intersect with the menu when displayed"
|
139 |
msgstr ""
|
140 |
|
141 |
+
#: add-to-any.php:305
|
142 |
msgid "Show the title of the post (or page) within the menu"
|
143 |
msgstr ""
|
144 |
|
145 |
+
#: add-to-any.php:310
|
146 |
msgid "Only show the menu when the user clicks the Share/Save button"
|
147 |
msgstr ""
|
148 |
|
149 |
+
#: add-to-any.php:315
|
150 |
msgid "Additional Options"
|
151 |
msgstr ""
|
152 |
|
153 |
+
#: add-to-any.php:319
|
154 |
msgid "Paste the code from Add to Any's Menu Styler in the box below!"
|
155 |
msgstr ""
|
156 |
|
157 |
+
#: add-to-any.php:323
|
158 |
msgid "Below you can set special JavaScript variables to apply to each Share/Save menu."
|
159 |
msgstr ""
|
160 |
|
161 |
+
#: add-to-any.php:324
|
162 |
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>."
|
163 |
msgstr ""
|
164 |
|
165 |
+
#: add-to-any.php:330
|
166 |
msgid "<strong>Note</strong>: If you're adding new code, be careful not to accidentally overwrite any previous code.</label>"
|
167 |
msgstr ""
|
168 |
|
169 |
+
#: add-to-any.php:337
|
170 |
msgid "Save Changes"
|
171 |
msgstr ""
|
172 |
|
173 |
+
#: add-to-any.php:350
|
174 |
msgid "Share/Save"
|
175 |
msgstr ""
|
176 |
|
177 |
+
#: add-to-any.php:351
|
178 |
msgid "Share/Save Buttons"
|
179 |
msgstr ""
|
180 |
|