Version Description
- New Custom Icons option in the Advanced Options section
- Use any icons at any location (media uploads directory, CDN, etc.)
- This new method for using custom icons permits plugin updates that do not overwrite custom icons
- Improve descriptions in settings
Download this release
Release Info
Developer | micropat |
Plugin | AddToAny Share Buttons |
Version | 1.2.9 |
Comparing to | |
See all releases |
Code changes from version 1.2.8.7 to 1.2.9
- README.txt +51 -15
- add-to-any.php +33 -12
- addtoany.admin.php +19 -6
README.txt
CHANGED
@@ -1,9 +1,9 @@
|
|
1 |
=== Share Buttons by AddToAny ===
|
2 |
Contributors: micropat
|
3 |
-
Tags: sharing, share,
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.9
|
6 |
-
Stable tag: 1.2.
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
|
9 |
|
@@ -11,26 +11,52 @@ Share buttons for WordPress including AddToAny's universal sharing button, Faceb
|
|
11 |
|
12 |
The WordPress sharing plugin to help people share, bookmark, 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 |
<a href="http://www.addtoany.com/" title="Sharing buttons">Share Buttons</a> demo
|
15 |
|
16 |
-
|
17 |
|
18 |
-
|
|
|
19 |
|
20 |
-
|
21 |
-
|
22 |
-
*
|
23 |
-
* Custom sharing icons
|
24 |
-
* Choose exactly where you want AddToAny to appear
|
25 |
-
* Google Analytics integration (<a href="http://www.addtoany.com/ext/google_analytics/">access guide</a>)
|
26 |
-
* WordPress optimized with asynchronous script loading
|
27 |
-
* Mobile optimized for sharing to native apps or to web apps per service
|
28 |
-
* Localized in English, Chinese, Spanish, Arabic, French, Portuguese, Japanese, Italian, Dutch, Danish, Catalan, Persian, Russian, Turkish, Albanian, Romanian, Belarusian, Greek, Irish
|
29 |
-
* Easily <a href="http://www.addtoany.com/buttons/customize/wordpress">customizable</a> for beginners or advanced users, and <a href="/plugins/add-to-any/faq/" title="See 'How can I add both the universal button and the individual icons to another area of my theme?'">highly extensible</a> for developers and designers
|
30 |
* Supports theme features such as HTML5 & XHTML, widgets, infinite scroll, post formats
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
* Many more publisher and user features
|
32 |
|
33 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
34 |
|
35 |
<a href="http://www.addtoany.com/share_save" title="Share">Share this</a> plugin
|
36 |
|
@@ -91,6 +117,10 @@ To change the title, description and/or image on Facebook, your theme's header f
|
|
91 |
|
92 |
For more technical information on setting your pages up for Facebook sharing, see "Facebook Sharing Checklist" in <a href="https://developers.facebook.com/docs/plugins/checklist/">Facebook's documentation</a>.
|
93 |
|
|
|
|
|
|
|
|
|
94 |
= How can I add both the universal button and the individual icons to another area of my theme? =
|
95 |
|
96 |
In the Theme Editor, place this code block where you want the button and individual icons to appear in your theme:
|
@@ -241,6 +271,12 @@ Upload the plugin directory (including all files and directories within) to the
|
|
241 |
|
242 |
== Changelog ==
|
243 |
|
|
|
|
|
|
|
|
|
|
|
|
|
244 |
= 1.2.8.7 =
|
245 |
* Fix code styling
|
246 |
|
1 |
=== Share Buttons by AddToAny ===
|
2 |
Contributors: micropat
|
3 |
+
Tags: sharing, share, share this, bookmarking, social, share button, share buttons, share links, social share, social sharing, social bookmarking, social bookmarks, bookmark, bookmarks, save, Post, posts, page, pages, images, image, admin, statistics, stats, links, plugin, shortcode, sidebar, widget, email, e-mail, print, seo, button, delicious, google, tumblr, linkedin, digg, reddit, facebook, facebook share, facebook like, like, twitter, twitter button, twitter share, tweet, +1, plus 1, google plus, google plus one, plus one, pinterest, pin, pin it, pinit, buffer, stumbleupon, bitly, technorati, lockerz, addthis, sociable, sharedaddy, sharethis, shareaholic, icon, icons, vector, SVG, wpmu, Add to Any, AddToAny
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 3.9
|
6 |
+
Stable tag: 1.2.9
|
7 |
|
8 |
Share buttons for WordPress including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more.
|
9 |
|
11 |
|
12 |
The WordPress sharing plugin to help people share, bookmark, 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 social share icons let you optimize your blog posts & pages for specific social sites.
|
15 |
+
|
16 |
+
= Share Buttons =
|
17 |
+
|
18 |
+
* **New**: Vector sharing buttons (SVG sharing icons)
|
19 |
+
* Universal Sharing Button and Smart Menu
|
20 |
+
* Sharing Kit for individual share links
|
21 |
+
* **New**: Custom sharing icons
|
22 |
+
* Choose from over 100 individual services
|
23 |
+
* 3rd party buttons include the Facebook Like Button, Twitter Tweet Button, Pinterest Pin It Button, Google+ Share Button and Google +1 Button
|
24 |
+
* Universal email sharing makes it easy to share via Gmail, Yahoo! Mail, Outlook.com (Hotmail), AOL Mail, and any other web and native apps
|
25 |
+
|
26 |
<a href="http://www.addtoany.com/" title="Sharing buttons">Share Buttons</a> demo
|
27 |
|
28 |
+
= Analytics Integration =
|
29 |
|
30 |
+
* Automatic Google Analytics integration (<a href="http://www.addtoany.com/ext/google_analytics/">access guide</a>) for sharing analytics
|
31 |
+
* Track shared links with bit.ly, awe.sm, goo.gl, and custom URL shorteners
|
32 |
|
33 |
+
= WordPress Optimized =
|
34 |
+
|
35 |
+
* Loads asynchronously so your content always loads before or in parallel with AddToAny
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
* Supports theme features such as HTML5 & XHTML, widgets, infinite scroll, post formats
|
37 |
+
|
38 |
+
= Mobile Optimized & Retina Ready =
|
39 |
+
|
40 |
+
* AddToAny gives users the choice in sharing from a service's native app or from a web app
|
41 |
+
* For example, choose between Twitter's native app or Twitter's mobile web app
|
42 |
+
* AddToAny's SVG icons are lightweight and pixel-perfect at any size
|
43 |
+
|
44 |
+
= Customizable & Extensible =
|
45 |
+
|
46 |
+
* Choose exactly where you want AddToAny to appear
|
47 |
+
* Easily <a href="http://www.addtoany.com/buttons/customize/wordpress">customize sharing</a> on your WordPress site
|
48 |
+
* <a href="/plugins/add-to-any/faq/">Highly extensible</a> for developers and designers
|
49 |
+
* Custom icons let you use any icons at any location (media uploads directory, CDN, etc.)
|
50 |
* Many more publisher and user features
|
51 |
|
52 |
+
= Wide Support =
|
53 |
+
|
54 |
+
* Over 8 years of active development
|
55 |
+
* Over 2.9 million downloads
|
56 |
+
* Translated into dozens of languages
|
57 |
+
* Ongoing support from the community
|
58 |
+
|
59 |
+
This plugin still strives to be the best WordPress plugin for sharing, and development is fueled by your praise and feedback.
|
60 |
|
61 |
<a href="http://www.addtoany.com/share_save" title="Share">Share this</a> plugin
|
62 |
|
117 |
|
118 |
For more technical information on setting your pages up for Facebook sharing, see "Facebook Sharing Checklist" in <a href="https://developers.facebook.com/docs/plugins/checklist/">Facebook's documentation</a>.
|
119 |
|
120 |
+
= How can I use custom icons? =
|
121 |
+
|
122 |
+
Upload sharing icons in a single directory to a public location, and make sure the icon filenames match the icon filenames packaged in the AddToAny plugin. In your Admin panel, go to `Settings` > `AddToAny` > `Advanced Options` > check the "Use custom icons" checkbox and specify the URL to your custom icons directory (including the trailing `/`). For AddToAny's universal button, go to Universal Button, select `Image URL` and specify the exact location of your AddToAny universal sharing icon (including the filename).
|
123 |
+
|
124 |
= How can I add both the universal button and the individual icons to another area of my theme? =
|
125 |
|
126 |
In the Theme Editor, place this code block where you want the button and individual icons to appear in your theme:
|
271 |
|
272 |
== Changelog ==
|
273 |
|
274 |
+
= 1.2.9 =
|
275 |
+
* New Custom Icons option in the Advanced Options section
|
276 |
+
* Use any icons at any location (media uploads directory, CDN, etc.)
|
277 |
+
* This new method for using custom icons permits plugin updates that do not overwrite custom icons
|
278 |
+
* Improve descriptions in settings
|
279 |
+
|
280 |
= 1.2.8.7 =
|
281 |
* Fix code styling
|
282 |
|
add-to-any.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Share Buttons by AddToAny
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
-
Version: 1.2.
|
7 |
Author: micropat
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
@@ -112,13 +112,19 @@ function ADDTOANY_SHARE_SAVE_KIT( $args = false ) {
|
|
112 |
$args['no_universal_button'] = true;
|
113 |
}
|
114 |
|
115 |
-
//
|
116 |
-
|
|
|
|
|
|
|
|
|
|
|
117 |
$icon_size = ' a2a_kit_size_32';
|
118 |
-
elseif ( $options['icon_size'] == '16' )
|
119 |
$icon_size = '';
|
120 |
-
else
|
121 |
$icon_size = ' a2a_kit_size_' . $options['icon_size'] . '';
|
|
|
122 |
|
123 |
if ( ! isset( $args['html_container_open'] ) ) {
|
124 |
$args['html_container_open'] = '<div class="a2a_kit' . $icon_size . ' a2a_target addtoany_list" id="wpa2a_' . $_addtoany_counter . '">'; // ID is later removed by JS (for AJAX)
|
@@ -187,6 +193,16 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
187 |
// False only if "icon_size" is set to '16'
|
188 |
$large_icons = ( isset( $options['icon_size'] ) && $options['icon_size'] == '16' ) ? false : true;
|
189 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
$active_services = $options['active_services'];
|
191 |
|
192 |
$ind_html = "" . $html_container_open;
|
@@ -206,8 +222,7 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
206 |
$special_args = $args;
|
207 |
$special_args['output_later'] = true;
|
208 |
$link = ADDTOANY_SHARE_SAVE_SPECIAL( $active_service, $special_args );
|
209 |
-
}
|
210 |
-
else {
|
211 |
$service = $A2A_SHARE_SAVE_services[ $active_service ];
|
212 |
$safe_name = $active_service;
|
213 |
$name = $service['name'];
|
@@ -236,11 +251,17 @@ function ADDTOANY_SHARE_SAVE_ICONS( $args = array() ) {
|
|
236 |
$height = ( isset( $service['icon_height'] ) ) ? $service['icon_height'] : '16';
|
237 |
|
238 |
$url = ( $custom_service ) ? $href : "http://www.addtoany.com/add_to/" . $safe_name . "?linkurl=" . $linkurl_enc . "&linkname=" . $linkname_enc;
|
239 |
-
$src = ( $icon_url ) ? $icon_url : $
|
240 |
$class_attr = ( $custom_service ) ? "" : " class=\"a2a_button_$safe_name\"";
|
241 |
|
|
|
|
|
|
|
|
|
|
|
|
|
242 |
$link = $html_wrap_open . "<a$class_attr href=\"$url\" title=\"$name\" rel=\"nofollow\" target=\"_blank\">";
|
243 |
-
$link .= ( $large_icons ) ? "" : "<img src=\"$src\" width=\"$width\" height=\"$height\" alt=\"$name\"/>";
|
244 |
$link .= "</a>" . $html_wrap_close;
|
245 |
}
|
246 |
|
@@ -261,8 +282,8 @@ function ADDTOANY_SHARE_SAVE_BUTTON( $args = array() ) {
|
|
261 |
|
262 |
global $A2A_SHARE_SAVE_plugin_url_path, $_addtoany_targets, $_addtoany_counter, $_addtoany_init;
|
263 |
|
264 |
-
$linkname = (isset($args['linkname'])) ? $args['linkname'] :
|
265 |
-
$linkurl = (isset($args['linkurl'])) ? $args['linkurl'] :
|
266 |
$_addtoany_targets = ( isset( $_addtoany_targets ) ) ? $_addtoany_targets : array();
|
267 |
|
268 |
$args = array_merge($args, A2A_SHARE_SAVE_link_vars($linkname, $linkurl)); // linkname_enc, etc.
|
@@ -569,7 +590,7 @@ function A2A_SHARE_SAVE_footer_script() {
|
|
569 |
|
570 |
$javascript_footer = "\n" . '<script type="text/javascript">' . "<!--\n"
|
571 |
. "wpa2a.targets=["
|
572 |
-
. implode( ",", $_addtoany_targets)
|
573 |
. "];\n"
|
574 |
. "wpa2a.html_done=true;"
|
575 |
. "if(wpa2a.script_ready&&!wpa2a.done)wpa2a.init();" // External script may load before html_done=true, but will only init if html_done=true. So call wpa2a.init() if external script is ready, and if wpa2a.init() hasn't been called already. Otherwise, wait for callback to call wpa2a.init()
|
3 |
Plugin Name: Share Buttons by AddToAny
|
4 |
Plugin URI: http://www.addtoany.com/
|
5 |
Description: Share buttons for your pages including AddToAny's universal sharing button, Facebook, Twitter, Google+, Pinterest, StumbleUpon and many more. [<a href="options-general.php?page=add-to-any.php">Settings</a>]
|
6 |
+
Version: 1.2.9
|
7 |
Author: micropat
|
8 |
Author URI: http://www.addtoany.com/
|
9 |
*/
|
112 |
$args['no_universal_button'] = true;
|
113 |
}
|
114 |
|
115 |
+
// Custom icons enabled?
|
116 |
+
$custom_icons = ( isset( $options['custom_icons'] ) && $options['custom_icons'] == 'url' && isset( $options['custom_icons_url'] ) ) ? true : false;
|
117 |
+
|
118 |
+
// Set a2a_kit_size_## class name unless "icon_size" is set to '16' or custom icons are enabled
|
119 |
+
if ( $custom_icons ) {
|
120 |
+
$icon_size = '';
|
121 |
+
} elseif ( ! $options['icon_size'] ) {
|
122 |
$icon_size = ' a2a_kit_size_32';
|
123 |
+
} elseif ( $options['icon_size'] == '16' ) {
|
124 |
$icon_size = '';
|
125 |
+
} else {
|
126 |
$icon_size = ' a2a_kit_size_' . $options['icon_size'] . '';
|
127 |
+
}
|
128 |
|
129 |
if ( ! isset( $args['html_container_open'] ) ) {
|
130 |
$args['html_container_open'] = '<div class="a2a_kit' . $icon_size . ' a2a_target addtoany_list" id="wpa2a_' . $_addtoany_counter . '">'; // ID is later removed by JS (for AJAX)
|
193 |
// False only if "icon_size" is set to '16'
|
194 |
$large_icons = ( isset( $options['icon_size'] ) && $options['icon_size'] == '16' ) ? false : true;
|
195 |
|
196 |
+
// Directory of either custom icons or the packaged icons
|
197 |
+
if ( isset( $options['custom_icons'] ) && $options['custom_icons'] == 'url' && isset( $options['custom_icons_url'] ) ) {
|
198 |
+
// Custom icons expected at a specified URL, i.e. //example.com/blog/uploads/addtoany/icons/custom/
|
199 |
+
$icons_dir = $options['custom_icons_url'];
|
200 |
+
$custom_icons = true;
|
201 |
+
} else {
|
202 |
+
// Packaged 16px icons
|
203 |
+
$icons_dir = $A2A_SHARE_SAVE_plugin_url_path . '/icons/';
|
204 |
+
}
|
205 |
+
|
206 |
$active_services = $options['active_services'];
|
207 |
|
208 |
$ind_html = "" . $html_container_open;
|
222 |
$special_args = $args;
|
223 |
$special_args['output_later'] = true;
|
224 |
$link = ADDTOANY_SHARE_SAVE_SPECIAL( $active_service, $special_args );
|
225 |
+
} else {
|
|
|
226 |
$service = $A2A_SHARE_SAVE_services[ $active_service ];
|
227 |
$safe_name = $active_service;
|
228 |
$name = $service['name'];
|
251 |
$height = ( isset( $service['icon_height'] ) ) ? $service['icon_height'] : '16';
|
252 |
|
253 |
$url = ( $custom_service ) ? $href : "http://www.addtoany.com/add_to/" . $safe_name . "?linkurl=" . $linkurl_enc . "&linkname=" . $linkname_enc;
|
254 |
+
$src = ( $icon_url ) ? $icon_url : $icons_dir . $icon . ".png";
|
255 |
$class_attr = ( $custom_service ) ? "" : " class=\"a2a_button_$safe_name\"";
|
256 |
|
257 |
+
// Remove all dimention values if using custom icons
|
258 |
+
if ( isset( $custom_icons ) ) {
|
259 |
+
$width = '';
|
260 |
+
$height = '';
|
261 |
+
}
|
262 |
+
|
263 |
$link = $html_wrap_open . "<a$class_attr href=\"$url\" title=\"$name\" rel=\"nofollow\" target=\"_blank\">";
|
264 |
+
$link .= ( $large_icons && ! isset( $custom_icons ) ) ? "" : "<img src=\"$src\" width=\"$width\" height=\"$height\" alt=\"$name\"/>";
|
265 |
$link .= "</a>" . $html_wrap_close;
|
266 |
}
|
267 |
|
282 |
|
283 |
global $A2A_SHARE_SAVE_plugin_url_path, $_addtoany_targets, $_addtoany_counter, $_addtoany_init;
|
284 |
|
285 |
+
$linkname = (isset($args['linkname'])) ? $args['linkname'] : false;
|
286 |
+
$linkurl = (isset($args['linkurl'])) ? $args['linkurl'] : false;
|
287 |
$_addtoany_targets = ( isset( $_addtoany_targets ) ) ? $_addtoany_targets : array();
|
288 |
|
289 |
$args = array_merge($args, A2A_SHARE_SAVE_link_vars($linkname, $linkurl)); // linkname_enc, etc.
|
590 |
|
591 |
$javascript_footer = "\n" . '<script type="text/javascript">' . "<!--\n"
|
592 |
. "wpa2a.targets=["
|
593 |
+
. implode( ",", $_addtoany_targets )
|
594 |
. "];\n"
|
595 |
. "wpa2a.html_done=true;"
|
596 |
. "if(wpa2a.script_ready&&!wpa2a.done)wpa2a.init();" // External script may load before html_done=true, but will only init if html_done=true. So call wpa2a.init() if external script is ready, and if wpa2a.init() hasn't been called already. Otherwise, wait for callback to call wpa2a.init()
|
addtoany.admin.php
CHANGED
@@ -207,6 +207,8 @@ function A2A_SHARE_SAVE_options_page() {
|
|
207 |
$new_options['button'] = @$_POST['A2A_SHARE_SAVE_button'];
|
208 |
$new_options['button_custom'] = @$_POST['A2A_SHARE_SAVE_button_custom'];
|
209 |
$new_options['additional_js_variables'] = trim( @$_POST['A2A_SHARE_SAVE_additional_js_variables'] );
|
|
|
|
|
210 |
$new_options['inline_css'] = (@$_POST['A2A_SHARE_SAVE_inline_css']=='1') ? '1' : '-1';
|
211 |
$new_options['cache'] = (@$_POST['A2A_SHARE_SAVE_cache']=='1') ? '1' : '-1';
|
212 |
|
@@ -533,19 +535,30 @@ function A2A_SHARE_SAVE_options_page() {
|
|
533 |
<tr valign="top">
|
534 |
<th scope="row"><?php _e('Advanced Options', 'add-to-any'); ?></th>
|
535 |
<td><fieldset>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
536 |
<label for="A2A_SHARE_SAVE_inline_css">
|
537 |
<input name="A2A_SHARE_SAVE_inline_css" id="A2A_SHARE_SAVE_inline_css" type="checkbox"<?php if($options['inline_css']!='-1') echo ' checked="checked"'; ?> value="1"/>
|
538 |
-
<?php _e('Use CSS
|
539 |
</label>
|
|
|
|
|
|
|
540 |
<br/>
|
541 |
<label for="A2A_SHARE_SAVE_cache">
|
542 |
<input name="A2A_SHARE_SAVE_cache" id="A2A_SHARE_SAVE_cache" type="checkbox"<?php if($options['cache']=='1') echo ' checked="checked"'; ?> value="1"/>
|
543 |
-
<?php _e('Cache AddToAny locally with daily cache updates', 'add-to-any'); ?>
|
544 |
</label>
|
545 |
-
<
|
546 |
-
|
547 |
-
|
548 |
-
</div>
|
549 |
</fieldset></td>
|
550 |
</tr>
|
551 |
</table>
|
207 |
$new_options['button'] = @$_POST['A2A_SHARE_SAVE_button'];
|
208 |
$new_options['button_custom'] = @$_POST['A2A_SHARE_SAVE_button_custom'];
|
209 |
$new_options['additional_js_variables'] = trim( @$_POST['A2A_SHARE_SAVE_additional_js_variables'] );
|
210 |
+
$new_options['custom_icons'] = (@$_POST['A2A_SHARE_SAVE_custom_icons']=='url') ? 'url' : '-1';
|
211 |
+
$new_options['custom_icons_url'] = @$_POST['A2A_SHARE_SAVE_custom_icons_url'];
|
212 |
$new_options['inline_css'] = (@$_POST['A2A_SHARE_SAVE_inline_css']=='1') ? '1' : '-1';
|
213 |
$new_options['cache'] = (@$_POST['A2A_SHARE_SAVE_cache']=='1') ? '1' : '-1';
|
214 |
|
535 |
<tr valign="top">
|
536 |
<th scope="row"><?php _e('Advanced Options', 'add-to-any'); ?></th>
|
537 |
<td><fieldset>
|
538 |
+
<label for="A2A_SHARE_SAVE_custom_icons">
|
539 |
+
<input name="A2A_SHARE_SAVE_custom_icons" id="A2A_SHARE_SAVE_custom_icons" type="checkbox"<?php if($options['custom_icons']=='url') echo ' checked="checked"'; ?> value="url"/>
|
540 |
+
<?php _e('Use custom icons. URL:', 'add-to-any'); ?>
|
541 |
+
</label>
|
542 |
+
<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 echo $options['custom_icons_url']; ?>" />
|
543 |
+
<p class="description">
|
544 |
+
<?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 sharing icon (<a href=\"#\" onclick=\"document.getElementsByName('A2A_SHARE_SAVE_button_custom')[0].focus();return false\">above</a>).", "add-to-any"); ?>
|
545 |
+
</p>
|
546 |
+
<br/>
|
547 |
<label for="A2A_SHARE_SAVE_inline_css">
|
548 |
<input name="A2A_SHARE_SAVE_inline_css" id="A2A_SHARE_SAVE_inline_css" type="checkbox"<?php if($options['inline_css']!='-1') echo ' checked="checked"'; ?> value="1"/>
|
549 |
+
<?php _e('Use default CSS', 'add-to-any'); ?>
|
550 |
</label>
|
551 |
+
<p class="description">
|
552 |
+
<?php _e("Only disable AddToAny's default stylesheet if you already have the necessary CSS code applied to your AddToAny buttons.", "add-to-any"); ?>
|
553 |
+
</p>
|
554 |
<br/>
|
555 |
<label for="A2A_SHARE_SAVE_cache">
|
556 |
<input name="A2A_SHARE_SAVE_cache" id="A2A_SHARE_SAVE_cache" type="checkbox"<?php if($options['cache']=='1') echo ' checked="checked"'; ?> value="1"/>
|
557 |
+
<?php _e('Cache AddToAny locally with daily cache updates', 'add-to-any'); ?>
|
558 |
</label>
|
559 |
+
<p class="description">
|
560 |
+
<?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"); ?>
|
561 |
+
</p>
|
|
|
562 |
</fieldset></td>
|
563 |
</tr>
|
564 |
</table>
|