Version Description
- Cookies don't get set anymore if selected to show pop-up when user scrolls to end of page (relevant for GDPR compliance)
Download this release
Release Info
Developer | socialdude |
Plugin | Social Share Icons & Social Share Buttons |
Version | 2.8.5 |
Comparing to | |
See all releases |
Code changes from version 2.8.4 to 2.8.5
- libs/controllers/sfsi_socialhelper.php +9 -9
- libs/sfsi_install_uninstall.php +1 -1
- libs/sfsi_widget.php +5 -4
- readme.txt +5 -2
- ultimate_social_media_icons.php +5 -5
- views/sfsi_option_view1.php +1 -1
libs/controllers/sfsi_socialhelper.php
CHANGED
@@ -61,19 +61,19 @@ class sfsi_plus_SocialHelper
|
|
61 |
/* get facebook page likes */
|
62 |
function sfsi_get_fb_pagelike($url)
|
63 |
{
|
64 |
-
$appid
|
65 |
-
$appsecret
|
66 |
-
$json_url
|
67 |
-
$json_string
|
68 |
-
$json
|
69 |
return isset($json['fan_count'])? $json['fan_count']:0;
|
70 |
}
|
71 |
|
72 |
/* get google+ follwers */
|
73 |
function sfsi_get_google($url,$google_api_key)
|
74 |
{
|
75 |
-
if(filter_var($url, FILTER_VALIDATE_URL) && !empty($google_api_key))
|
76 |
-
{
|
77 |
$url = parse_url($url);
|
78 |
$url_path=explode('/',$url['path']);
|
79 |
if(isset($url_path))
|
@@ -94,11 +94,11 @@ class sfsi_plus_SocialHelper
|
|
94 |
{
|
95 |
return 0;
|
96 |
}
|
97 |
-
}
|
98 |
else
|
99 |
{
|
100 |
return 0;
|
101 |
-
}
|
102 |
}
|
103 |
|
104 |
/* get google+ likes */
|
61 |
/* get facebook page likes */
|
62 |
function sfsi_get_fb_pagelike($url)
|
63 |
{
|
64 |
+
$appid = '954871214567352';
|
65 |
+
$appsecret = 'a780eb3d3687a084d6e5919585cc6a12';
|
66 |
+
$json_url ='https://graph.facebook.com/'.$url.'?fields=fan_count&access_token='.$appid.'|'.$appsecret;
|
67 |
+
$json_string = $this->file_get_contents_curl($json_url);
|
68 |
+
$json = json_decode($json_string, true);
|
69 |
return isset($json['fan_count'])? $json['fan_count']:0;
|
70 |
}
|
71 |
|
72 |
/* get google+ follwers */
|
73 |
function sfsi_get_google($url,$google_api_key)
|
74 |
{
|
75 |
+
//if(filter_var($url, FILTER_VALIDATE_URL) && !empty($google_api_key))
|
76 |
+
//{
|
77 |
$url = parse_url($url);
|
78 |
$url_path=explode('/',$url['path']);
|
79 |
if(isset($url_path))
|
94 |
{
|
95 |
return 0;
|
96 |
}
|
97 |
+
/*}
|
98 |
else
|
99 |
{
|
100 |
return 0;
|
101 |
+
}*/
|
102 |
}
|
103 |
|
104 |
/* get google+ likes */
|
libs/sfsi_install_uninstall.php
CHANGED
@@ -12,7 +12,7 @@ function sfsi_plus_update_plugin()
|
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
-
update_option("sfsi_plus_pluginVersion", "2.
|
16 |
|
17 |
if(!get_option('sfsi_plus_serverphpVersionnotification'))
|
18 |
{
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
+
update_option("sfsi_plus_pluginVersion", "2.85");
|
16 |
|
17 |
if(!get_option('sfsi_plus_serverphpVersionnotification'))
|
18 |
{
|
libs/sfsi_widget.php
CHANGED
@@ -709,7 +709,7 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no", $fromPost
|
|
709 |
|
710 |
//$visit_icon = $visit_iconsUrl."google.png";
|
711 |
|
712 |
-
$url = ($sfsi_plus_section2_options['sfsi_plus_google_pageURL'])
|
713 |
|
714 |
/* check for icons to display */
|
715 |
if($sfsi_plus_section2_options['sfsi_plus_googleLike_option']=="yes" || $sfsi_plus_section2_options['sfsi_plus_googleShare_option']=="yes")
|
@@ -749,9 +749,10 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0, $onpost="no", $fromPost
|
|
749 |
}
|
750 |
else if($sfsi_plus_section4_options['sfsi_plus_google_countsFrom']=="follower")
|
751 |
{
|
752 |
-
$api_key
|
753 |
-
$followers
|
754 |
-
$counts
|
|
|
755 |
if(empty($counts))
|
756 |
{
|
757 |
$counts = (string) "0";
|
709 |
|
710 |
//$visit_icon = $visit_iconsUrl."google.png";
|
711 |
|
712 |
+
$url = ($sfsi_plus_section2_options['sfsi_plus_google_pageURL']) ? $sfsi_plus_section2_options['sfsi_plus_google_pageURL'] : 'javascript:void(0);';
|
713 |
|
714 |
/* check for icons to display */
|
715 |
if($sfsi_plus_section2_options['sfsi_plus_googleLike_option']=="yes" || $sfsi_plus_section2_options['sfsi_plus_googleShare_option']=="yes")
|
749 |
}
|
750 |
else if($sfsi_plus_section4_options['sfsi_plus_google_countsFrom']=="follower")
|
751 |
{
|
752 |
+
$api_key = $sfsi_plus_section4_options['sfsi_plus_google_api_key'];
|
753 |
+
$followers = $socialObj->sfsi_get_google($url,$api_key);
|
754 |
+
$counts = $followers;
|
755 |
+
|
756 |
if(empty($counts))
|
757 |
{
|
758 |
$counts = (string) "0";
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: socialsharepro
|
|
3 |
Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.9.4
|
6 |
-
Stable tag: 2.8.
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -444,6 +444,9 @@ The premium plugin offrs many more social buttons from other social media platfo
|
|
444 |
|
445 |
== Changelog ==
|
446 |
|
|
|
|
|
|
|
447 |
= 2.8.4 =
|
448 |
* Like count issue fixed
|
449 |
* Youtube subscribe issue fixed
|
@@ -745,5 +748,5 @@ The premium plugin offrs many more social buttons from other social media platfo
|
|
745 |
|
746 |
== Upgrade Notice ==
|
747 |
|
748 |
-
= 2.8.
|
749 |
* Please update
|
3 |
Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
|
4 |
Requires at least: 3.0
|
5 |
Tested up to: 4.9.4
|
6 |
+
Stable tag: 2.8.5
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
444 |
|
445 |
== Changelog ==
|
446 |
|
447 |
+
= 2.8.5 =
|
448 |
+
* Cookies don't get set anymore if selected to show pop-up when user scrolls to end of page (relevant for GDPR compliance)
|
449 |
+
|
450 |
= 2.8.4 =
|
451 |
* Like count issue fixed
|
452 |
* Youtube subscribe issue fixed
|
748 |
|
749 |
== Upgrade Notice ==
|
750 |
|
751 |
+
= 2.8.5 =
|
752 |
* Please update
|
ultimate_social_media_icons.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Ultimate Social Media PLUS
|
4 |
-
Plugin URI: http://
|
5 |
Description: The best social media plugin on the market. And 100% FREE. Allows you to add social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, Pinterest, Instagram, Google+, LinkedIn, Share-button). It offers a wide range of design options and other features.
|
6 |
-
Author:
|
7 |
Text Domain: ultimate-social-media-plus
|
8 |
Domain Path: /languages
|
9 |
-
Author URI: http://
|
10 |
-
Version: 2.8.
|
11 |
License: GPLv2
|
12 |
*/
|
13 |
|
@@ -92,7 +92,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
|
|
92 |
//register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
|
93 |
|
94 |
/*Plugin version setup*/
|
95 |
-
if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.
|
96 |
{
|
97 |
add_action("init", "sfsi_plus_update_plugin");
|
98 |
}
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Ultimate Social Media PLUS
|
4 |
+
Plugin URI: http://socialshare.pro
|
5 |
Description: The best social media plugin on the market. And 100% FREE. Allows you to add social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, Pinterest, Instagram, Google+, LinkedIn, Share-button). It offers a wide range of design options and other features.
|
6 |
+
Author: SocialSharePro
|
7 |
Text Domain: ultimate-social-media-plus
|
8 |
Domain Path: /languages
|
9 |
+
Author URI: http://socialshare.pro
|
10 |
+
Version: 2.8.5
|
11 |
License: GPLv2
|
12 |
*/
|
13 |
|
92 |
//register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
|
93 |
|
94 |
/*Plugin version setup*/
|
95 |
+
if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.85)
|
96 |
{
|
97 |
add_action("init", "sfsi_plus_update_plugin");
|
98 |
}
|
views/sfsi_option_view1.php
CHANGED
@@ -100,7 +100,7 @@
|
|
100 |
<?php if(get_option('sfsi_plus_footer_sec')=="yes") { $nonce = wp_create_nonce("remove_plusfooter"); ?> <a style="font-size:13px;margin-left:30px;color:#777777;" href="javascript:;" class="sfsiplus_removeFooter" data-nonce="<?php echo $nonce;?>"><?php _e( 'Remove credit link', SFSI_PLUS_DOMAIN); ?></a>
|
101 |
<?php } ?>
|
102 |
</span>
|
103 |
-
<label class="expanded-area"
|
104 |
<?php _e( 'Everybody uses email – that’s why it’s much more effective than social media to make people follow you', SFSI_PLUS_DOMAIN); ?>
|
105 |
(<a href="http://www.entrepreneur.com/article/230949" target="_new">
|
106 |
<?php _e( 'learn more', SFSI_PLUS_DOMAIN); ?>
|
100 |
<?php if(get_option('sfsi_plus_footer_sec')=="yes") { $nonce = wp_create_nonce("remove_plusfooter"); ?> <a style="font-size:13px;margin-left:30px;color:#777777;" href="javascript:;" class="sfsiplus_removeFooter" data-nonce="<?php echo $nonce;?>"><?php _e( 'Remove credit link', SFSI_PLUS_DOMAIN); ?></a>
|
101 |
<?php } ?>
|
102 |
</span>
|
103 |
+
<label class="expanded-area">
|
104 |
<?php _e( 'Everybody uses email – that’s why it’s much more effective than social media to make people follow you', SFSI_PLUS_DOMAIN); ?>
|
105 |
(<a href="http://www.entrepreneur.com/article/230949" target="_new">
|
106 |
<?php _e( 'learn more', SFSI_PLUS_DOMAIN); ?>
|