Version Description
- Speed improvements (buttons will load faster)
- Compatible with Wordpress 4.9.8
Download this release
Release Info
Developer | kasal |
Plugin | Hupso Share Buttons for Twitter, Facebook & Google+ |
Version | 4.2.0 |
Comparing to | |
See all releases |
Code changes from version 4.1.4 to 4.2.0
- readme.txt +6 -2
- share-buttons-hupso.php +29 -2
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: kasal
|
|
3 |
Donate link: http://www.hupso.com/
|
4 |
Tags: twitter, facebook, google, social sharing, share buttons, social share buttons, share icons, stumbleupon, addthis, sharethis, addtoany, sexybookmarks, pinterest, print, tumblr, bebo, social media, social buttons, social share, email, print button, social plugin, social widget, email button, post, vkontakte, vk.com, reddit, delicous, del.icio.us, linkedin, tumblr, pinterest, stumbleupon, digg, stumble upon, pinterest button, tweet, like, share, sharing, shortcode, button, page, amp
|
5 |
Requires at least: 2.9
|
6 |
-
Tested up to: 4.8
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -310,6 +310,10 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
|
|
310 |
|
311 |
== Changelog ==
|
312 |
|
|
|
|
|
|
|
|
|
313 |
= 4.1.4 =
|
314 |
* Compatible with AMP plugin by Automattic
|
315 |
|
3 |
Donate link: http://www.hupso.com/
|
4 |
Tags: twitter, facebook, google, social sharing, share buttons, social share buttons, share icons, stumbleupon, addthis, sharethis, addtoany, sexybookmarks, pinterest, print, tumblr, bebo, social media, social buttons, social share, email, print button, social plugin, social widget, email button, post, vkontakte, vk.com, reddit, delicous, del.icio.us, linkedin, tumblr, pinterest, stumbleupon, digg, stumble upon, pinterest button, tweet, like, share, sharing, shortcode, button, page, amp
|
5 |
Requires at least: 2.9
|
6 |
+
Tested up to: 4.9.8
|
7 |
+
Stable tag: 4.2.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
310 |
|
311 |
== Changelog ==
|
312 |
|
313 |
+
= 4.2.0 =
|
314 |
+
* Speed improvements (buttons will load faster)
|
315 |
+
* Compatible with Wordpress 4.9.8
|
316 |
+
|
317 |
= 4.1.4 =
|
318 |
* Compatible with AMP plugin by Automattic
|
319 |
|
share-buttons-hupso.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: Hupso Share Buttons for Twitter, Facebook & Google+
|
4 |
Plugin URI: http://www.hupso.com/share/
|
5 |
Description: Add simple social share buttons to your articles. Your visitors will be able to easily share your content on the most popular social networks: Twitter, Facebook, Google Plus, Linkedin, Tumblr, Pinterest, StumbleUpon, Digg, Reddit, Bebo, VKontakte and Delicous. These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
|
6 |
-
Version: 4.
|
7 |
Author: kasal
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
@@ -12,7 +12,7 @@ Domain Path: /languages
|
|
12 |
*/
|
13 |
|
14 |
global $HUPSO_VERSION;
|
15 |
-
$HUPSO_VERSION = '4.
|
16 |
|
17 |
$hupso_dev = '';
|
18 |
$hupso_state = 'normal';
|
@@ -58,6 +58,7 @@ if ( is_admin() ) {
|
|
58 |
add_action('admin_menu', 'hupso_admin_menu');
|
59 |
}
|
60 |
|
|
|
61 |
add_action( 'wp_head', 'hupso_set_facebook_thumbnail', 1 );
|
62 |
|
63 |
$hupso_all_services = array(
|
@@ -217,6 +218,32 @@ function hupso_admin_menu() {
|
|
217 |
add_options_page('Hupso Share Buttons Settings', 'Hupso Share Buttons', 'manage_options', __FILE__, 'hupso_admin_settings_show', '', 6);
|
218 |
}
|
219 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
220 |
|
221 |
function hupso_set_facebook_thumbnail() {
|
222 |
global $post;
|
3 |
Plugin Name: Hupso Share Buttons for Twitter, Facebook & Google+
|
4 |
Plugin URI: http://www.hupso.com/share/
|
5 |
Description: Add simple social share buttons to your articles. Your visitors will be able to easily share your content on the most popular social networks: Twitter, Facebook, Google Plus, Linkedin, Tumblr, Pinterest, StumbleUpon, Digg, Reddit, Bebo, VKontakte and Delicous. These services are used by millions of people every day, so sharing your content there will increase traffic to your website.
|
6 |
+
Version: 4.2.0
|
7 |
Author: kasal
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
12 |
*/
|
13 |
|
14 |
global $HUPSO_VERSION;
|
15 |
+
$HUPSO_VERSION = '4.2.0';
|
16 |
|
17 |
$hupso_dev = '';
|
18 |
$hupso_state = 'normal';
|
58 |
add_action('admin_menu', 'hupso_admin_menu');
|
59 |
}
|
60 |
|
61 |
+
add_action( 'wp_head', 'hupso_prefetch', 1 );
|
62 |
add_action( 'wp_head', 'hupso_set_facebook_thumbnail', 1 );
|
63 |
|
64 |
$hupso_all_services = array(
|
218 |
add_options_page('Hupso Share Buttons Settings', 'Hupso Share Buttons', 'manage_options', __FILE__, 'hupso_admin_settings_show', '', 6);
|
219 |
}
|
220 |
|
221 |
+
function hupso_prefetch() {
|
222 |
+
if ( isset($_SERVER['HTTPS']) ) {
|
223 |
+
$protocol = 'https://';
|
224 |
+
}
|
225 |
+
else {
|
226 |
+
$protocol = 'http://';
|
227 |
+
}
|
228 |
+
$button_type = get_option( 'hupso_button_type', 'share_toolbar' );
|
229 |
+
switch ( $button_type ) {
|
230 |
+
case 'share_button':
|
231 |
+
$js_file = 'share.js';
|
232 |
+
break;
|
233 |
+
case 'share_toolbar':
|
234 |
+
$js_file = 'share_toolbar.js';
|
235 |
+
break;
|
236 |
+
case 'counters':
|
237 |
+
$js_file = 'counters.js';
|
238 |
+
break;
|
239 |
+
default:
|
240 |
+
$js_file = 'share_toolbar.js';
|
241 |
+
}
|
242 |
+
$js_url = $protocol . 'static.hupso.com/share/js/' . $js_file;
|
243 |
+
echo '<link rel="dns-prefetch" href="' . $js_url . '">';
|
244 |
+
echo '<link rel="preconnect" href="' . $js_url . '">';
|
245 |
+
echo '<link rel="preload" href="' . $js_url . '">';
|
246 |
+
}
|
247 |
|
248 |
function hupso_set_facebook_thumbnail() {
|
249 |
global $post;
|