Version Description
- Option to keep Facebook likes when switching from http to https protocol
Download this release
Release Info
Developer | kasal |
Plugin | Hupso Share Buttons for Twitter, Facebook & Google+ |
Version | 4.1.0 |
Comparing to | |
See all releases |
Code changes from version 4.0.7 to 4.1.0
- readme.txt +5 -1
- share-buttons-hupso.php +43 -4
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.hupso.com/
|
|
4 |
Tags: twitter, facebook, google, social sharing, share buttons, social share buttons, share icons, stumbleupon, addthis, sharethis, sexybookmarks, addtoany, multisite, pinterest, print, tumblr, bebo, social media, social buttons, social share, email, print button, social plugin, social widget, email button, post, plus 1, vkontakte, vk.com, reddit, delicous, del.icio.us, linkedin, tumblr, pinterest, stumbleupon, digg, stumble upon, pinterest button, +1, google +1, tweet, like, share, sharing, shortcode
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.7.2
|
7 |
-
Stable tag: 4.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -18,6 +18,7 @@ These services are used by millions of people every day, so sharing your content
|
|
18 |
|
19 |
**Main features / advantages**
|
20 |
|
|
|
21 |
* Slick, minimalistic design.
|
22 |
* Very small and fast. The code for sharing button is very small (only a few KB), so share buttons will not slow down your website - even on devices with slow network connections.
|
23 |
* All major social networks are supported: Twitter, Facebook (Facebook Share / Facebook Like / Facebook Send), Google Plus, Linkedin, Tumblr, Pinterest, StumbleUpon, Digg, Reddit, Bebo, Delicious, VKontakte, Odnoklassniki, Sina Weibo, QZone, Renren.
|
@@ -305,6 +306,9 @@ Please send bug reports and suggestion using [this feedback form](http://www.hup
|
|
305 |
|
306 |
== Changelog ==
|
307 |
|
|
|
|
|
|
|
308 |
= 4.0.7 =
|
309 |
* Compatible with Wordpress 4.7.2
|
310 |
* Fix for counters not aligned properly with some themes
|
4 |
Tags: twitter, facebook, google, social sharing, share buttons, social share buttons, share icons, stumbleupon, addthis, sharethis, sexybookmarks, addtoany, multisite, pinterest, print, tumblr, bebo, social media, social buttons, social share, email, print button, social plugin, social widget, email button, post, plus 1, vkontakte, vk.com, reddit, delicous, del.icio.us, linkedin, tumblr, pinterest, stumbleupon, digg, stumble upon, pinterest button, +1, google +1, tweet, like, share, sharing, shortcode
|
5 |
Requires at least: 2.9
|
6 |
Tested up to: 4.7.2
|
7 |
+
Stable tag: 4.1.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
18 |
|
19 |
**Main features / advantages**
|
20 |
|
21 |
+
* Keep Facebook likes when switching your website from http to https protocol
|
22 |
* Slick, minimalistic design.
|
23 |
* Very small and fast. The code for sharing button is very small (only a few KB), so share buttons will not slow down your website - even on devices with slow network connections.
|
24 |
* All major social networks are supported: Twitter, Facebook (Facebook Share / Facebook Like / Facebook Send), Google Plus, Linkedin, Tumblr, Pinterest, StumbleUpon, Digg, Reddit, Bebo, Delicious, VKontakte, Odnoklassniki, Sina Weibo, QZone, Renren.
|
306 |
|
307 |
== Changelog ==
|
308 |
|
309 |
+
= 4.1.0 =
|
310 |
+
* Option to keep Facebook likes when switching from http to https protocol
|
311 |
+
|
312 |
= 4.0.7 =
|
313 |
* Compatible with Wordpress 4.7.2
|
314 |
* Fix for counters not aligned properly with some themes
|
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.0
|
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.0
|
16 |
|
17 |
$hupso_dev = '';
|
18 |
$hupso_state = 'normal';
|
@@ -181,6 +181,7 @@ function hupso_plugin_uninstall() {
|
|
181 |
delete_option( 'hupso_background_color' );
|
182 |
delete_option( 'hupso_border_color' );
|
183 |
delete_option( 'hupso_meta_box' );
|
|
|
184 |
|
185 |
/* Delete custom post types */
|
186 |
$args = array(
|
@@ -263,6 +264,15 @@ function hupso_set_facebook_thumbnail() {
|
|
263 |
if ( $thumb_image != '' ) {
|
264 |
echo '<meta property="og:image" content="' . esc_url($thumb_image) . '"/>';
|
265 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
266 |
}
|
267 |
|
268 |
function hupso_get_the_excerpt($content) {
|
@@ -989,7 +999,26 @@ function hupso_admin_settings_show() {
|
|
989 |
<input type="radio" name="hupso_custom_icons" onclick="hupso_create_code()" onchange="hupso_create_code()" value="custom" <?php echo $hupso_custom_icons_custom_checked; ?>/> <?php _e('Yes, serve images from remote URL: ', 'hupso'); ?><br/>
|
990 |
<input type="text" name="hupso_image_folder_url" value="<?php echo esc_url($hupso_image_folder_url);?>" onchange="hupso_create_code()" onmouseout="hupso_create_code()" size="50" /><br/><input type="hidden" name="hupso_image_folder_local" value="<?php echo esc_url($image_url);?>" /><?php _e('Enter URL to folder with custom social images. Include "/" at the end of the URL. If you would like to use custom icons, make sure you <a href="http://www.hupso.com/share/custom-social-icons.php" target="_blank">read instructions</a>.', 'hupso'); ?> <?php _e('This setting has no effect when using Counters.', 'hupso'); ?>
|
991 |
</td>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
992 |
</tr>
|
|
|
|
|
993 |
</div>
|
994 |
|
995 |
</table>
|
@@ -1284,8 +1313,18 @@ function hupso_admin_settings_save() {
|
|
1284 |
else {
|
1285 |
delete_option ( $name );
|
1286 |
}
|
1287 |
-
}
|
1288 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1289 |
|
1290 |
}
|
1291 |
|
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.1.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.1.0';
|
16 |
|
17 |
$hupso_dev = '';
|
18 |
$hupso_state = 'normal';
|
181 |
delete_option( 'hupso_background_color' );
|
182 |
delete_option( 'hupso_border_color' );
|
183 |
delete_option( 'hupso_meta_box' );
|
184 |
+
delete_option( 'hupso_keep_likes' );
|
185 |
|
186 |
/* Delete custom post types */
|
187 |
$args = array(
|
264 |
if ( $thumb_image != '' ) {
|
265 |
echo '<meta property="og:image" content="' . esc_url($thumb_image) . '"/>';
|
266 |
}
|
267 |
+
|
268 |
+
|
269 |
+
$keep_likes = get_option( 'hupso_keep_likes' , '0' );
|
270 |
+
if ( $keep_likes == '1' ) {
|
271 |
+
if ( isset($_SERVER['HTTPS']) ) {
|
272 |
+
$url = 'http://' . $_SERVER["HTTP_HOST"] . $_SERVER["REQUEST_URI"];
|
273 |
+
echo '<meta property="og:url" content="' . esc_url($url) . '"/>' . "\n";
|
274 |
+
}
|
275 |
+
}
|
276 |
}
|
277 |
|
278 |
function hupso_get_the_excerpt($content) {
|
999 |
<input type="radio" name="hupso_custom_icons" onclick="hupso_create_code()" onchange="hupso_create_code()" value="custom" <?php echo $hupso_custom_icons_custom_checked; ?>/> <?php _e('Yes, serve images from remote URL: ', 'hupso'); ?><br/>
|
1000 |
<input type="text" name="hupso_image_folder_url" value="<?php echo esc_url($hupso_image_folder_url);?>" onchange="hupso_create_code()" onmouseout="hupso_create_code()" size="50" /><br/><input type="hidden" name="hupso_image_folder_local" value="<?php echo esc_url($image_url);?>" /><?php _e('Enter URL to folder with custom social images. Include "/" at the end of the URL. If you would like to use custom icons, make sure you <a href="http://www.hupso.com/share/custom-social-icons.php" target="_blank">read instructions</a>.', 'hupso'); ?> <?php _e('This setting has no effect when using Counters.', 'hupso'); ?>
|
1001 |
</td>
|
1002 |
+
</tr>
|
1003 |
+
|
1004 |
+
<tr>
|
1005 |
+
<td style="width:100px;"><?php _e('Keep old Facebook likes (https)', 'hupso'); ?></div></td>
|
1006 |
+
<td><hr style="height:1px; width:400px;" align="left"/>
|
1007 |
+
<?php
|
1008 |
+
$checked = ' checked="checked" ';
|
1009 |
+
$hupso_keep_likes = get_option( 'hupso_keep_likes', '0');
|
1010 |
+
if ( $hupso_keep_likes == '1' )
|
1011 |
+
$hupso_keep_likes_checked = $checked;
|
1012 |
+
else
|
1013 |
+
$hupso_keep_likes_checked = '';
|
1014 |
+
|
1015 |
+
?>
|
1016 |
+
<input type="checkbox" name="hupso_keep_likes" value="1" <?php echo $hupso_keep_likes_checked; ?> /><?php _e('Keep Facebook likes when switching your website from http to https protocol.', 'hupso'); ?><p><?php _e('If this is checked Facebook will keep using your old http URLs to count your likes (by adding og:url meta tag). When you switch to https, counts will show 0 likes at first, but will refresh (return to old) when someone clicks on Like button for the first time. You can also update the counts by using <a href="https://developers.facebook.com/tools/debug/" target="_blank">Facebook\'s Open Graph Debugger</a>.', 'hupso'); ?></p>
|
1017 |
+
</td>
|
1018 |
+
|
1019 |
</tr>
|
1020 |
+
|
1021 |
+
|
1022 |
</div>
|
1023 |
|
1024 |
</table>
|
1313 |
else {
|
1314 |
delete_option ( $name );
|
1315 |
}
|
1316 |
+
}
|
1317 |
+
|
1318 |
+
/* keep Facebook likes */
|
1319 |
+
if ( $post ) {
|
1320 |
+
$keep_likes = @$_POST[ 'hupso_keep_likes' ];
|
1321 |
+
if ($keep_likes == '1') {
|
1322 |
+
update_option( 'hupso_keep_likes', '1' );
|
1323 |
+
}
|
1324 |
+
else {
|
1325 |
+
update_option( 'hupso_keep_likes', '0' );
|
1326 |
+
}
|
1327 |
+
}
|
1328 |
|
1329 |
}
|
1330 |
|