Version Description
- Update: Responsive icons options display logic corrected.
- Update: Twitter and other external js inclusion logic updated.
- Solved: Cancel button on banner reapplied.
- Solved: Validation for section 2 options while section 1 options are checked but not saved corrected.
- Update: Feedback system updated
Download this release
Release Info
Developer | socialsharepro |
Plugin | Social Share Icons & Social Share Buttons |
Version | 3.1.9 |
Comparing to | |
See all releases |
Code changes from version 3.1.8 to 3.1.9
- analyst/src/Account/Account.php +7 -3
- analyst/src/helpers.php +8 -5
- analyst/templates/forms/install.php +4 -3
- analyst/version.php +1 -1
- css/sfsi-admin-style.css +1 -1
- js/customValidate-min.js +61 -18
- libs/controllers/sfsi_buttons_controller.php +1 -1
- libs/controllers/sfsiocns_OnPosts.php +75 -50
- libs/sfsi_Init_JqueryCss.php +11 -5
- libs/sfsi_install_uninstall.php +3 -3
- readme.txt +9 -2
- ultimate_social_media_icons.php +96 -70
analyst/src/Account/Account.php
CHANGED
@@ -232,6 +232,8 @@ class Account implements TrackerContract
|
|
232 |
$this->setIsInstalled(true);
|
233 |
|
234 |
AccountDataFactory::syncData();
|
|
|
|
|
235 |
}
|
236 |
|
237 |
/**
|
@@ -258,7 +260,7 @@ class Account implements TrackerContract
|
|
258 |
|
259 |
AccountDataFactory::syncData();
|
260 |
|
261 |
-
|
262 |
}
|
263 |
|
264 |
/**
|
@@ -300,7 +302,7 @@ class Account implements TrackerContract
|
|
300 |
|
301 |
AccountDataFactory::syncData();
|
302 |
|
303 |
-
|
304 |
}
|
305 |
|
306 |
/**
|
@@ -353,7 +355,7 @@ class Account implements TrackerContract
|
|
353 |
$notificationId
|
354 |
);
|
355 |
|
356 |
-
|
357 |
}
|
358 |
|
359 |
/**
|
@@ -421,6 +423,8 @@ class Account implements TrackerContract
|
|
421 |
$factory->remove($confirmationNotificationId);
|
422 |
|
423 |
AccountDataFactory::syncData();
|
|
|
|
|
424 |
}
|
425 |
|
426 |
/**
|
232 |
$this->setIsInstalled(true);
|
233 |
|
234 |
AccountDataFactory::syncData();
|
235 |
+
|
236 |
+
wp_send_json_success();
|
237 |
}
|
238 |
|
239 |
/**
|
260 |
|
261 |
AccountDataFactory::syncData();
|
262 |
|
263 |
+
wp_send_json_success();
|
264 |
}
|
265 |
|
266 |
/**
|
302 |
|
303 |
AccountDataFactory::syncData();
|
304 |
|
305 |
+
wp_send_json_success();
|
306 |
}
|
307 |
|
308 |
/**
|
355 |
$notificationId
|
356 |
);
|
357 |
|
358 |
+
wp_send_json_success();
|
359 |
}
|
360 |
|
361 |
/**
|
423 |
$factory->remove($confirmationNotificationId);
|
424 |
|
425 |
AccountDataFactory::syncData();
|
426 |
+
|
427 |
+
wp_send_json_success();
|
428 |
}
|
429 |
|
430 |
/**
|
analyst/src/helpers.php
CHANGED
@@ -27,7 +27,11 @@ if (! function_exists('analyst_assets_url')) {
|
|
27 |
{
|
28 |
$absolutePath = analyst_assets_path($file);
|
29 |
|
30 |
-
|
|
|
|
|
|
|
|
|
31 |
|
32 |
$relativePath = str_replace( $contentDir, '', $absolutePath);
|
33 |
|
@@ -69,11 +73,10 @@ if (! function_exists('analyst_require_template')) {
|
|
69 |
if (! function_exists('dd')) {
|
70 |
/**
|
71 |
* Dump some data
|
72 |
-
*
|
73 |
-
* @param array $params
|
74 |
*/
|
75 |
-
function dd (
|
76 |
{
|
77 |
-
|
|
|
78 |
}
|
79 |
}
|
27 |
{
|
28 |
$absolutePath = analyst_assets_path($file);
|
29 |
|
30 |
+
// We can always rely on WP_PLUGIN_DIR, because that's where
|
31 |
+
// wordpress install it's plugin's. So we remove last segment
|
32 |
+
// of that path to get the content dir AKA directly where
|
33 |
+
// plugins are installed and make the magic...
|
34 |
+
$contentDir = dirname(wp_normalize_path(WP_PLUGIN_DIR));
|
35 |
|
36 |
$relativePath = str_replace( $contentDir, '', $absolutePath);
|
37 |
|
73 |
if (! function_exists('dd')) {
|
74 |
/**
|
75 |
* Dump some data
|
|
|
|
|
76 |
*/
|
77 |
+
function dd ()
|
78 |
{
|
79 |
+
var_dump(func_get_args());
|
80 |
+
die();
|
81 |
}
|
82 |
}
|
analyst/templates/forms/install.php
CHANGED
@@ -61,7 +61,7 @@
|
|
61 |
window.location.reload()
|
62 |
},
|
63 |
error: function () {
|
64 |
-
|
65 |
}
|
66 |
}).done(function () {
|
67 |
$('#analyst-disable-install-modal-mask').hide()
|
@@ -72,10 +72,11 @@
|
|
72 |
})
|
73 |
}
|
74 |
|
75 |
-
|
76 |
-
if ($('#analyst-install-modal').attr('analyst-plugin-id') && isInPluginsPage) {
|
77 |
$('#analyst-install-modal').show()
|
78 |
}
|
|
|
|
|
79 |
$('.analyst-install-modal-close').click(function () {
|
80 |
$('#analyst-install-modal').hide()
|
81 |
})
|
61 |
window.location.reload()
|
62 |
},
|
63 |
error: function () {
|
64 |
+
$('#analyst-install-modal').hide()
|
65 |
}
|
66 |
}).done(function () {
|
67 |
$('#analyst-disable-install-modal-mask').hide()
|
72 |
})
|
73 |
}
|
74 |
|
75 |
+
if ($('#analyst-install-modal').attr('analyst-plugin-id')) {
|
|
|
76 |
$('#analyst-install-modal').show()
|
77 |
}
|
78 |
+
|
79 |
+
|
80 |
$('.analyst-install-modal-close').click(function () {
|
81 |
$('#analyst-install-modal').hide()
|
82 |
})
|
analyst/version.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
|
3 |
return array(
|
4 |
// The sdk version
|
5 |
-
'sdk' => '1.3.
|
6 |
|
7 |
// Minimum supported WordPress version
|
8 |
'wp' => '4.7',
|
2 |
|
3 |
return array(
|
4 |
// The sdk version
|
5 |
+
'sdk' => '1.3.20',
|
6 |
|
7 |
// Minimum supported WordPress version
|
8 |
'wp' => '4.7',
|
css/sfsi-admin-style.css
CHANGED
@@ -222,7 +222,7 @@ ul.sfsiplus_icn_listing8 li .sfsiplus_right_info a {
|
|
222 |
padding: 10px 0 0 70px;
|
223 |
margin: 15px 0 7px 21px;
|
224 |
height: 52px;
|
225 |
-
line-height:
|
226 |
font-family: helveticaregular;
|
227 |
font-size: 22px;
|
228 |
|
222 |
padding: 10px 0 0 70px;
|
223 |
margin: 15px 0 7px 21px;
|
224 |
height: 52px;
|
225 |
+
line-height: 32px;
|
226 |
font-family: helveticaregular;
|
227 |
font-size: 22px;
|
228 |
|
js/customValidate-min.js
CHANGED
@@ -1,24 +1,67 @@
|
|
1 |
function sfsi_plus_validationStep2() {
|
2 |
if (SFSI("input").removeClass("inputError"), sfsi_validator(SFSI('input[name="sfsi_plus_rss_display"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_rss_url"]'), "url")) return sfsiplus_showErrorSuc("error", "Error : Invalid Rss url ", 2), SFSI('input[name="sfsi_plus_rss_url"]').addClass("inputError"), !1;
|
3 |
-
|
4 |
-
if (
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
if (
|
9 |
-
|
10 |
-
if (
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
if (
|
15 |
-
|
16 |
-
|
17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
18 |
var s = 0;
|
19 |
-
return SFSI("input[name='sfsi_plus_CustomIcon_links[]']").each(function() {
|
20 |
//sfsi_validator(SFSI(this), "blank") && sfsi_validator(SFSI(SFSI(this)), "url") || (sfsiplus_showErrorSuc("error", "Error : Please Enter a valid Custom link ", 2), SFSI(this).addClass("inputError"), s = 1)
|
21 |
-
|
22 |
}), s ? !1 : !0
|
23 |
}
|
24 |
|
@@ -30,7 +73,7 @@ function sfsi_plus_validationStep4() {
|
|
30 |
if (sfsi_validator(SFSI('input[name="sfsi_plus_email_countsDisplay"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_email_countsDisplay"]'), "checked") && "manual" == SFSI('input[name="sfsi_plus_email_countsFrom"]:checked').val() && !sfsi_validator(SFSI('input[name="sfsi_plus_email_manualCounts"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Please Enter manual counts for Email icon ", 4), SFSI('input[name="sfsi_plus_email_manualCounts"]').addClass("inputError"), !1;
|
31 |
if (sfsi_validator(SFSI('input[name="sfsi_plus_rss_countsDisplay"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_rss_countsDisplay"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_rss_manualCounts"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Please Enter manual counts for Rss icon ", 4), SFSI('input[name="sfsi_plus_rss_countsDisplay"]').addClass("inputError"), !1;
|
32 |
if (sfsi_validator(SFSI('input[name="sfsi_plus_facebook_countsDisplay"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_facebook_countsDisplay"]'), "checked") && "manual" == SFSI('input[name="sfsi_plus_facebook_countsFrom"]:checked').val() && !sfsi_validator(SFSI('input[name="sfsi_plus_facebook_manualCounts"]'), "blank") && !sfsi_validator(SFSI('input[name="sfsi_plus_facebook_manualCounts"]'), "url")) return sfsiplus_showErrorSuc("error", "Error : Please Enter a valid facebook manual counts ", 4), SFSI('input[name="sfsi_plus_facebook_manualCounts"]').addClass("inputError"), !1;
|
33 |
-
|
34 |
if (sfsi_validator(SFSI('input[name="sfsi_plus_twitter_countsDisplay"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_twitter_countsDisplay"]'), "checked")) {
|
35 |
if ("source" == SFSI('input[name="sfsi_plus_twitter_countsFrom"]:checked').val()) {
|
36 |
if (!sfsi_validator(SFSI('input[name="sfsiplus_tw_consumer_key"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Please Enter a valid consumer key", 4), SFSI('input[name="sfsiplus_tw_consumer_key"]').addClass("inputError"), !1;
|
1 |
function sfsi_plus_validationStep2() {
|
2 |
if (SFSI("input").removeClass("inputError"), sfsi_validator(SFSI('input[name="sfsi_plus_rss_display"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_rss_url"]'), "url")) return sfsiplus_showErrorSuc("error", "Error : Invalid Rss url ", 2), SFSI('input[name="sfsi_plus_rss_url"]').addClass("inputError"), !1;
|
3 |
+
|
4 |
+
if (SFSI(".tab2 > .sfsiplus_facebook_section").css("display") === "block") {
|
5 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_facebookPage_option"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_facebookPage_option"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_facebookPage_url"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid Facebook page url ", 2), SFSI('input[name="sfsi_plus_facebookPage_url"]').addClass("inputError"), !1;
|
6 |
+
}
|
7 |
+
|
8 |
+
if (SFSI(".tab2 > .sfsiplus_twitter_section").css("display") === "block") {
|
9 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_twitter_followme"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_twitter_followme"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_twitter_followUserName"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid Twitter UserName ", 2), SFSI('input[name="sfsi_plus_twitter_followUserName"]').addClass("inputError"), !1;
|
10 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_twitter_aboutPage"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_twitter_aboutPage"]'), "checked") && !sfsi_validator(SFSI("#sfsi_plus_twitter_aboutPageText"), "blank")) return sfsiplus_showErrorSuc("error", "Error : Tweet about my page is blank ", 2), SFSI("#sfsi_plus_twitter_aboutPageText").addClass("inputError"), !1;
|
11 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_twitter_page"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_twitter_page"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_twitter_pageURL"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid twitter page Url ", 2), SFSI('input[name="sfsi_plus_twitter_pageURL"]').addClass("inputError"), !1;
|
12 |
+
}
|
13 |
+
|
14 |
+
if (SFSI(".tab2 > .sfsiplus_youtube_section").css("display") === "block") {
|
15 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_youtube_page"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_youtube_page"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_youtube_pageUrl"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid youtube Url ", 2), SFSI('input[name="sfsi_plus_youtube_pageUrl"]').addClass("inputError"), !1;
|
16 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_youtube_page"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_youtube_follow"]'), "checked"))
|
17 |
+
if ("name" == jQuery("input[name='sfsi_plus_youtubeusernameorid']:checked").val()) {
|
18 |
+
if (!sfsi_validator(SFSI('input[name="sfsi_plus_ytube_user"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid youtube user ", 2), SFSI('input[name="sfsi_plus_ytube_user"]').addClass("inputError"), !1
|
19 |
+
} else if (!sfsi_validator(SFSI('input[name="sfsi_plus_ytube_chnlid"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid youtube channel id", 2), SFSI('input[name="sfsi_plus_ytube_chnlid"]').addClass("inputError"), !1;
|
20 |
+
}
|
21 |
+
|
22 |
+
if (SFSI(".tab2 > .sfsiplus_pintrest_section").css("display") === "block") {
|
23 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_pinterest_page"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_pinterest_page"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_pinterest_pageUrl"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid pinterest page url ", 2), SFSI('input[name="sfsi_plus_pinterest_pageUrl"]').addClass("inputError"), !1;
|
24 |
+
}
|
25 |
+
|
26 |
+
if (SFSI(".tab2 > .sfsiplus_instagram_section").css("display") === "block") {
|
27 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_instagram_display"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_instagram_pageUrl"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid Instagram url ", 2), SFSI('input[name="sfsi_plus_instagram_pageUrl"]').addClass("inputError"), !1;
|
28 |
+
}
|
29 |
+
|
30 |
+
if (SFSI(".tab2 > .sfsiplus_houzz_section").css("display") === "block") {
|
31 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_houzz_display"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_houzz_pageUrl"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid Houzz url ", 2), SFSI('input[name="sfsi_plus_houzz_pageUrl"]').addClass("inputError"), !1;
|
32 |
+
}
|
33 |
+
|
34 |
+
if (SFSI(".tab2 > .sfsiplus_linkedin_section").css("display") === "block") {
|
35 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_page"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_page"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_pageURL"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid LinkedIn page url ", 2), SFSI('input[name="sfsi_plus_linkedin_pageURL"]').addClass("inputError"), !1;
|
36 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_recommendBusines"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_recommendBusines"]'), "checked") && (!sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_recommendProductId"]'), "blank") || !sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_recommendCompany"]'), "blank"))) return sfsiplus_showErrorSuc("error", "Error : Please Enter Product Id and Company for LinkedIn Recommendation ", 2), SFSI('input[name="sfsi_plus_linkedin_recommendProductId"]').addClass("inputError"), SFSI('input[name="sfsi_plus_linkedin_recommendCompany"]').addClass("inputError"), !1;
|
37 |
+
}
|
38 |
+
if (SFSI(".tab2 > .sfsiplus_weibo_section").css("display") === "block") {
|
39 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_weibo_display"]'), "checked") && (sfsi_validator(SFSI('input[name="sfsi_plus_weiboVisit_option"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_weiboVisit_url"]'), "blank"))) return sfsiplus_showErrorSuc("error", "Error : Invalid weibo url ", 2), SFSI('input[name="sfsi_plus_weiboVisit_url"]').addClass("inputError"), !1;
|
40 |
+
}
|
41 |
+
|
42 |
+
if (SFSI(".tab2 > .sfsiplus_vk_section").css("display") === "block") {
|
43 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_vk_display"]'), "checked") && (sfsi_validator(SFSI('input[name="sfsi_plus_vkVisit_option"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_vkVisit_url"]'), "blank"))) return sfsiplus_showErrorSuc("error", "Error : Invalid vk url ", 2), SFSI('input[name="sfsi_plus_vkVisit_url"]').addClass("inputError"), !1;
|
44 |
+
}
|
45 |
+
|
46 |
+
if (SFSI(".tab2 > .sfsiplus_telegram_section").css("display") === "block") {
|
47 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_telegram_display"]'), "checked") && ( !sfsi_validator(SFSI('input[name="sfsi_plus_telegram_message"]'), "blank"))) return sfsiplus_showErrorSuc("error", "Error : Please enter telegram pre-filled message", 2), SFSI('input[name="sfsi_plus_telegram_message"]').addClass("inputError"), !1;
|
48 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_telegram_display"]'), "checked") && ( !sfsi_validator(SFSI('input[name="sfsi_plus_telegram_username"]'), "blank"))) return sfsiplus_showErrorSuc("error", "Error : Please enter telegram username", 2), SFSI('input[name="sfsi_plus_telegram_username"]').addClass("inputError"), !1;
|
49 |
+
}
|
50 |
+
|
51 |
+
if (SFSI(".tab2 > .sfsiplus_ok_section").css("display") === "block") {
|
52 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_ok_display"]'), "checked") && (sfsi_validator(SFSI('input[name="sfsi_plus_okVisit_option"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_okVisit_url"]'), "blank"))) return sfsiplus_showErrorSuc("error", "Error : Invalid ok url ", 2), SFSI('input[name="sfsi_plus_okVisit_url"]').addClass("inputError"), !1;
|
53 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_ok_display"]'), "checked") && (sfsi_validator(SFSI('input[name="sfsi_plus_okSubscribe_option"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_okSubscribe_userid"]'), "blank"))) return sfsiplus_showErrorSuc("error", "Error : Invalid ok userid ", 2), SFSI('input[name="sfsi_plus_okSubscribe_userid"]').addClass("inputError"), !1;
|
54 |
+
}
|
55 |
+
|
56 |
+
if (SFSI(".tab2 > .sfsiplus_houzz_section").css("display") === "block") {
|
57 |
+
if (sfsi_validator(SFSI('input[name="sfsi_plus_houzz_display"]'), "checked") //&& sfsi_validator(SFSI('input[name="sfsi_plus_houzzVisit_option"]'), "checked") //
|
58 |
+
&& !sfsi_validator(SFSI('input[name="sfsi_plus_houzz_pageUrl"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Invalid houzz url ", 2), SFSI('input[name="sfsi_plus_houzz_pageUrl"]').addClass("inputError"), !1;
|
59 |
+
}
|
60 |
+
|
61 |
var s = 0;
|
62 |
+
return SFSI("input[name='sfsi_plus_CustomIcon_links[]']").each(function () {
|
63 |
//sfsi_validator(SFSI(this), "blank") && sfsi_validator(SFSI(SFSI(this)), "url") || (sfsiplus_showErrorSuc("error", "Error : Please Enter a valid Custom link ", 2), SFSI(this).addClass("inputError"), s = 1)
|
64 |
+
sfsi_validator(SFSI(this), "blank") || (sfsiplus_showErrorSuc("error", "Error : Please Enter a valid Custom link ", 2), SFSI(this).addClass("inputError"), s = 1)
|
65 |
}), s ? !1 : !0
|
66 |
}
|
67 |
|
73 |
if (sfsi_validator(SFSI('input[name="sfsi_plus_email_countsDisplay"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_email_countsDisplay"]'), "checked") && "manual" == SFSI('input[name="sfsi_plus_email_countsFrom"]:checked').val() && !sfsi_validator(SFSI('input[name="sfsi_plus_email_manualCounts"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Please Enter manual counts for Email icon ", 4), SFSI('input[name="sfsi_plus_email_manualCounts"]').addClass("inputError"), !1;
|
74 |
if (sfsi_validator(SFSI('input[name="sfsi_plus_rss_countsDisplay"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_rss_countsDisplay"]'), "checked") && !sfsi_validator(SFSI('input[name="sfsi_plus_rss_manualCounts"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Please Enter manual counts for Rss icon ", 4), SFSI('input[name="sfsi_plus_rss_countsDisplay"]').addClass("inputError"), !1;
|
75 |
if (sfsi_validator(SFSI('input[name="sfsi_plus_facebook_countsDisplay"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_facebook_countsDisplay"]'), "checked") && "manual" == SFSI('input[name="sfsi_plus_facebook_countsFrom"]:checked').val() && !sfsi_validator(SFSI('input[name="sfsi_plus_facebook_manualCounts"]'), "blank") && !sfsi_validator(SFSI('input[name="sfsi_plus_facebook_manualCounts"]'), "url")) return sfsiplus_showErrorSuc("error", "Error : Please Enter a valid facebook manual counts ", 4), SFSI('input[name="sfsi_plus_facebook_manualCounts"]').addClass("inputError"), !1;
|
76 |
+
|
77 |
if (sfsi_validator(SFSI('input[name="sfsi_plus_twitter_countsDisplay"]'), "activte") && sfsi_validator(SFSI('input[name="sfsi_plus_twitter_countsDisplay"]'), "checked")) {
|
78 |
if ("source" == SFSI('input[name="sfsi_plus_twitter_countsFrom"]:checked').val()) {
|
79 |
if (!sfsi_validator(SFSI('input[name="sfsiplus_tw_consumer_key"]'), "blank")) return sfsiplus_showErrorSuc("error", "Error : Please Enter a valid consumer key", 4), SFSI('input[name="sfsiplus_tw_consumer_key"]').addClass("inputError"), !1;
|
libs/controllers/sfsi_buttons_controller.php
CHANGED
@@ -1446,7 +1446,7 @@ function sfsi_plus_bannerOption()
|
|
1446 |
SFSI.ajax({
|
1447 |
url:sfsi_plus_ajax_object.ajax_url,
|
1448 |
type:"post",
|
1449 |
-
data: {action: "sfsiPlus_new_notification_read",nonce:"' . (wp_create_nonce('
|
1450 |
success:function(msg){
|
1451 |
if(jQuery.trim(msg) == "success")
|
1452 |
{
|
1446 |
SFSI.ajax({
|
1447 |
url:sfsi_plus_ajax_object.ajax_url,
|
1448 |
type:"post",
|
1449 |
+
data: {action: "sfsiPlus_new_notification_read",nonce:"' . (wp_create_nonce('plus_notification_read')) . '"},
|
1450 |
success:function(msg){
|
1451 |
if(jQuery.trim(msg) == "success")
|
1452 |
{
|
libs/controllers/sfsiocns_OnPosts.php
CHANGED
@@ -282,27 +282,45 @@ function sfsi_plus_footer_script()
|
|
282 |
{
|
283 |
$sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
|
284 |
}
|
285 |
-
$common_options_check = (
|
286 |
-
|
287 |
-
|
288 |
-
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
302 |
}
|
303 |
-
|
304 |
-
|
305 |
-
|
|
|
306 |
|
307 |
<!-- youtube share -->
|
308 |
<script type="text/javascript">
|
@@ -313,43 +331,50 @@ function sfsi_plus_footer_script()
|
|
313 |
})();
|
314 |
</script>
|
315 |
<?php
|
316 |
-
}
|
317 |
}
|
318 |
-
if(
|
319 |
-
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
}
|
325 |
-
if($common_options_check)
|
326 |
-
{
|
327 |
-
|
328 |
-
?>
|
329 |
-
<!-- linkedIn share and follow js -->
|
330 |
-
<script src="//platform.linkedin.com/in.js">lang: <?php echo $icons_language;?></script>
|
331 |
-
<?php
|
332 |
-
}
|
333 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
334 |
|
335 |
}
|
336 |
-
if(
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
|
|
|
|
|
|
|
|
|
|
342 |
<?php
|
343 |
-
}
|
344 |
}
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
<?php
|
352 |
-
}
|
353 |
}
|
354 |
|
355 |
/* activate footer credit link */
|
282 |
{
|
283 |
$sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
|
284 |
}
|
285 |
+
$common_options_check = (
|
286 |
+
($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") ||
|
287 |
+
($sfsi_section8['sfsi_plus_float_on_page'] == "yes") ||
|
288 |
+
(isset($sfsi_section8['sfsi_plus_float_page_position']) && "yes" == $sfsi_section8['sfsi_plus_float_page_position']) ||
|
289 |
+
($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") ||
|
290 |
+
($sfsi_section8['sfsi_plus_place_item_gutenberg'] == "yes") ||
|
291 |
+
(isset($sfsi_section8['sfsi_plus_show_item_onposts']) && "yes" == $sfsi_section8['sfsi_plus_show_item_onposts'] && (isset($sfsi_section8["sfsi_plus_display_button_type"])) && "normal_button" == $sfsi_section8["sfsi_plus_display_button_type"] )
|
292 |
+
);
|
293 |
+
if(
|
294 |
+
(
|
295 |
+
$sfsi_section8['sfsi_plus_rectfb'] == "yes" &&
|
296 |
+
$sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
|
297 |
+
$sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
|
298 |
+
) ||
|
299 |
+
(
|
300 |
+
$sfsi_section8['sfsi_plus_rectfbshare'] == "yes" &&
|
301 |
+
$sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
|
302 |
+
$sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
|
303 |
+
) ||
|
304 |
+
($sfsi_section1['sfsi_plus_facebook_display']=="yes" && ($sfsi_section2['sfsi_plus_facebookShare_option']=="yes" || $sfsi_section2['sfsi_plus_facebookLike_option']=="yes" ) && $common_options_check)
|
305 |
+
)
|
306 |
+
{?>
|
307 |
+
<!--facebook like and share js -->
|
308 |
+
<div id="fb-root"></div>
|
309 |
+
|
310 |
+
<script>
|
311 |
+
(function(d, s, id) {
|
312 |
+
var js, fjs = d.getElementsByTagName(s)[0];
|
313 |
+
if (d.getElementById(id)) return;
|
314 |
+
js = d.createElement(s); js.id = id;
|
315 |
+
js.src = "//connect.facebook.net/<?php echo $icons_language;?>/sdk.js#xfbml=1&version=v2.5";
|
316 |
+
fjs.parentNode.insertBefore(js, fjs);
|
317 |
+
}(document, 'script', 'facebook-jssdk'));</script>
|
318 |
+
<?php
|
319 |
}
|
320 |
+
|
321 |
+
if(
|
322 |
+
($sfsi_section1['sfsi_plus_youtube_display']=="yes" && $sfsi_section2['sfsi_plus_youtube_follow']=="yes" && $common_options_check)
|
323 |
+
){?>
|
324 |
|
325 |
<!-- youtube share -->
|
326 |
<script type="text/javascript">
|
331 |
})();
|
332 |
</script>
|
333 |
<?php
|
|
|
334 |
}
|
335 |
+
if(
|
336 |
+
($sfsi_section1['sfsi_plus_linkedin_display']=="yes" && ( $sfsi_section2['sfsi_plus_linkedin_follow']=="yes" || $sfsi_section2['sfsi_plus_linkedin_recommendBusines']=="yes" || $sfsi_section2['sfsi_plus_linkedin_SharePage'] == "yes" ) && $common_options_check)
|
337 |
+
){
|
338 |
+
if($icons_language == 'ar_AR')
|
339 |
+
{
|
340 |
+
$icons_language = 'ar_AE';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
}
|
342 |
+
if($common_options_check)
|
343 |
+
{
|
344 |
+
|
345 |
+
?>
|
346 |
+
<!-- linkedIn share and follow js -->
|
347 |
+
<script src="//platform.linkedin.com/in.js">lang: <?php echo $icons_language;?></script>
|
348 |
+
<?php
|
349 |
+
}
|
350 |
|
351 |
}
|
352 |
+
if(
|
353 |
+
(
|
354 |
+
$sfsi_section8['sfsi_plus_rectpinit'] == "yes" &&
|
355 |
+
$sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
|
356 |
+
$sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
|
357 |
+
) ||
|
358 |
+
($sfsi_section1['sfsi_plus_pinterest_display']=="yes" && $sfsi_section2["sfsi_plus_pinterest_pingBlog"]=="yes" && $common_options_check)
|
359 |
+
){
|
360 |
+
?>
|
361 |
+
<!--pinit js -->
|
362 |
+
<script src="//assets.pinterest.com/js/pinit.js"></script>
|
363 |
<?php
|
|
|
364 |
}
|
365 |
+
if(
|
366 |
+
(
|
367 |
+
$sfsi_section8['sfsi_plus_recttwtr'] == "yes" &&
|
368 |
+
$sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
|
369 |
+
$sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons"
|
370 |
+
) ||
|
371 |
+
($sfsi_section1['sfsi_plus_twitter_display']=="yes" && $sfsi_section2["sfsi_plus_twitter_aboutPage"]=="yes" && $common_options_check)
|
372 |
+
)
|
373 |
+
{?>
|
374 |
+
<!-- twitter JS End -->
|
375 |
+
<script>
|
376 |
+
!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
377 |
<?php
|
|
|
378 |
}
|
379 |
|
380 |
/* activate footer credit link */
|
libs/sfsi_Init_JqueryCss.php
CHANGED
@@ -82,6 +82,7 @@ function sfsiplus_plugin_front_enqueue_script()
|
|
82 |
{
|
83 |
wp_enqueue_style("SFSIPLUSmainCss", SFSI_PLUS_PLUGURL . 'css/sfsi-style.css' );
|
84 |
$option5= unserialize(get_option('sfsi_plus_section5_options',false));
|
|
|
85 |
if($option5['sfsi_plus_disable_floaticons'] == 'yes')
|
86 |
{
|
87 |
wp_enqueue_style("disable_sfsiplus", SFSI_PLUS_PLUGURL . 'css/disable_sfsi.css' );
|
@@ -94,17 +95,22 @@ function sfsiplus_plugin_front_enqueue_script()
|
|
94 |
wp_register_script('SFSIPLUSjqueryModernizr', SFSI_PLUS_PLUGURL . 'js/shuffle/modernizr.custom.min.js', '','',true);
|
95 |
wp_enqueue_script("SFSIPLUSjqueryModernizr");
|
96 |
|
97 |
-
|
98 |
-
|
|
|
|
|
|
|
|
|
|
|
99 |
|
100 |
-
wp_register_script('SFSIPLUSjqueryrandom-shuffle', SFSI_PLUS_PLUGURL . 'js/shuffle/random-shuffle-min.js', '','',true);
|
101 |
-
wp_enqueue_script("SFSIPLUSjqueryrandom-shuffle");
|
102 |
$option1 = unserialize(get_option("sfsi_plus_section1_options",false));
|
103 |
$option2 = unserialize(get_option("sfsi_plus_section2_options",false));
|
104 |
-
|
|
|
105 |
wp_register_script('SFSIPLUSqrcode.js', SFSI_PLUS_PLUGURL . 'js/qrcode.min.js', '', '', true);
|
106 |
wp_enqueue_script("SFSIPLUSqrcode.js");
|
107 |
}
|
|
|
108 |
wp_register_script('SFSIPLUSCustomJs', SFSI_PLUS_PLUGURL . 'js/custom.js', '', '', true);
|
109 |
wp_enqueue_script("SFSIPLUSCustomJs");
|
110 |
/* end cusotm js */
|
82 |
{
|
83 |
wp_enqueue_style("SFSIPLUSmainCss", SFSI_PLUS_PLUGURL . 'css/sfsi-style.css' );
|
84 |
$option5= unserialize(get_option('sfsi_plus_section5_options',false));
|
85 |
+
$option3= unserialize(get_option('sfsi_plus_section3_options',false));
|
86 |
if($option5['sfsi_plus_disable_floaticons'] == 'yes')
|
87 |
{
|
88 |
wp_enqueue_style("disable_sfsiplus", SFSI_PLUS_PLUGURL . 'css/disable_sfsi.css' );
|
95 |
wp_register_script('SFSIPLUSjqueryModernizr', SFSI_PLUS_PLUGURL . 'js/shuffle/modernizr.custom.min.js', '','',true);
|
96 |
wp_enqueue_script("SFSIPLUSjqueryModernizr");
|
97 |
|
98 |
+
// if(isset($option3["sfsi_plus_shuffle_icons"])&&"yes"==$option3["sfsi_plus_shuffle_icons"]){
|
99 |
+
wp_register_script('SFSIPLUSjqueryShuffle', SFSI_PLUS_PLUGURL . 'js/shuffle/jquery.shuffle.min.js', '','',true);
|
100 |
+
wp_enqueue_script("SFSIPLUSjqueryShuffle");
|
101 |
+
|
102 |
+
wp_register_script('SFSIPLUSjqueryrandom-shuffle', SFSI_PLUS_PLUGURL . 'js/shuffle/random-shuffle-min.js', '','',true);
|
103 |
+
wp_enqueue_script("SFSIPLUSjqueryrandom-shuffle");
|
104 |
+
// }
|
105 |
|
|
|
|
|
106 |
$option1 = unserialize(get_option("sfsi_plus_section1_options",false));
|
107 |
$option2 = unserialize(get_option("sfsi_plus_section2_options",false));
|
108 |
+
|
109 |
+
if(isset($option1["sfsi_plus_wechat_display"]) && $option1["sfsi_plus_wechat_display"]=="yes"){
|
110 |
wp_register_script('SFSIPLUSqrcode.js', SFSI_PLUS_PLUGURL . 'js/qrcode.min.js', '', '', true);
|
111 |
wp_enqueue_script("SFSIPLUSqrcode.js");
|
112 |
}
|
113 |
+
|
114 |
wp_register_script('SFSIPLUSCustomJs', SFSI_PLUS_PLUGURL . 'js/custom.js', '', '', true);
|
115 |
wp_enqueue_script("SFSIPLUSCustomJs");
|
116 |
/* end cusotm js */
|
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", "3.
|
16 |
|
17 |
if(!get_option('sfsi_plus_serverphpVersionnotification'))
|
18 |
{
|
@@ -896,8 +896,8 @@ function sfsi_plus_setUpfeeds($feed_id)
|
|
896 |
$resp = wp_remote_get( 'https://www.specificfeeds.com/rssegtcrons/download_rssmorefeed_data_single/'.$feed_id."/Y", $args );
|
897 |
if ( is_wp_error( $resp ) ) {
|
898 |
// var_dump($resp);
|
899 |
-
update_option("sfsi_plus_curlErrorNotices", "yes");
|
900 |
-
update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
|
901 |
}else{
|
902 |
update_option("sfsi_plus_curlErrorNotices", "no");
|
903 |
update_option("sfsi_plus_curlErrorMessage", "");
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
+
update_option("sfsi_plus_pluginVersion", "3.19");
|
16 |
|
17 |
if(!get_option('sfsi_plus_serverphpVersionnotification'))
|
18 |
{
|
896 |
$resp = wp_remote_get( 'https://www.specificfeeds.com/rssegtcrons/download_rssmorefeed_data_single/'.$feed_id."/Y", $args );
|
897 |
if ( is_wp_error( $resp ) ) {
|
898 |
// var_dump($resp);
|
899 |
+
//update_option("sfsi_plus_curlErrorNotices", "yes");
|
900 |
+
//update_option("sfsi_plus_curlErrorMessage", $resp->get_error_message());
|
901 |
}else{
|
902 |
update_option("sfsi_plus_curlErrorNotices", "no");
|
903 |
update_option("sfsi_plus_curlErrorMessage", "");
|
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: 5.2
|
6 |
-
Stable tag: 3.1.
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -446,6 +446,13 @@ The premium plugin offrs many more social buttons from other social media platfo
|
|
446 |
|
447 |
|
448 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
449 |
= 3.1.8 =
|
450 |
* New Feature: Responsive icons in the plugin.
|
451 |
* Solved: Icons not rendering on woocomerce product page.
|
@@ -887,5 +894,5 @@ The premium plugin offrs many more social buttons from other social media platfo
|
|
887 |
|
888 |
== Upgrade Notice ==
|
889 |
|
890 |
-
= 3.1.
|
891 |
* 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: 5.2
|
6 |
+
Stable tag: 3.1.9
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
446 |
|
447 |
|
448 |
== Changelog ==
|
449 |
+
= 3.1.9 =
|
450 |
+
* Update: Responsive icons options display logic corrected.
|
451 |
+
* Update: Twitter and other external js inclusion logic updated.
|
452 |
+
* Solved: Cancel button on banner reapplied.
|
453 |
+
* Solved: Validation for section 2 options while section 1 options are checked but not saved corrected.
|
454 |
+
* Update: Feedback system updated
|
455 |
+
|
456 |
= 3.1.8 =
|
457 |
* New Feature: Responsive icons in the plugin.
|
458 |
* Solved: Icons not rendering on woocomerce product page.
|
894 |
|
895 |
== Upgrade Notice ==
|
896 |
|
897 |
+
= 3.1.9 =
|
898 |
* Please update
|
ultimate_social_media_icons.php
CHANGED
@@ -7,7 +7,7 @@ Author: social share pro
|
|
7 |
Text Domain: ultimate-social-media-plus
|
8 |
Domain Path: /languages
|
9 |
Author URI: http://socialshare.pro/
|
10 |
-
Version: 3.1.
|
11 |
License: GPLv2
|
12 |
*/
|
13 |
|
@@ -111,7 +111,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
|
|
111 |
//register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
|
112 |
|
113 |
/*Plugin version setup*/
|
114 |
-
if (!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.
|
115 |
add_action("init", "sfsi_plus_update_plugin");
|
116 |
}
|
117 |
|
@@ -335,9 +335,10 @@ function sfsi_plus_beforaftereposts($content)
|
|
335 |
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
336 |
$icons_before .= sfsi_plus_social_buttons_below($content = null);
|
337 |
}else if($option8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
338 |
-
if (isset($option8['sfsi_plus_responsive_icons_end_post']) && $option8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
339 |
-
|
340 |
-
}
|
|
|
341 |
} else {
|
342 |
$icons_before .= "<div class='sfsi_plus_Sicons' style='" . $style . "'>";
|
343 |
$icons_before .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
@@ -347,20 +348,28 @@ function sfsi_plus_beforaftereposts($content)
|
|
347 |
$icons_before .= '</div>';
|
348 |
/*$icons_before .= '</br>';*/
|
349 |
}
|
350 |
-
if ($option8['
|
351 |
/*$icons_after .= '</br>';*/
|
352 |
$icons_after .= '<div class="sfsiaftrpstwpr" style="' . $style_parent . '">';
|
353 |
-
if
|
354 |
-
|
355 |
-
|
356 |
-
if
|
357 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
358 |
}
|
359 |
-
} else {
|
360 |
-
$icons_after .= "<div class='sfsi_plus_Sicons' style='" . $style . "'>";
|
361 |
-
$icons_after .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
362 |
-
$icons_after .= sfsi_plus_check_posts_visiblity(0, "yes");
|
363 |
-
$icons_after .= "</div>";
|
364 |
}
|
365 |
|
366 |
$icons_after .= '</div>';
|
@@ -485,6 +494,11 @@ function sfsi_plus_beforeafterblogposts($content)
|
|
485 |
}
|
486 |
$icons_before .= "<div class='sf_pinit' style='display: inline-block;vertical-align: middle;text-align:left;width: " . $sfsiLikeWithpinit . "'>" . sfsi_plus_pinitpinterest($permalink, $show_count) . "</div>";
|
487 |
}
|
|
|
|
|
|
|
|
|
|
|
488 |
} else {
|
489 |
$icons_before .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
490 |
$icons_before .= sfsi_plus_check_posts_visiblity(0, "yes");
|
@@ -498,72 +512,84 @@ function sfsi_plus_beforeafterblogposts($content)
|
|
498 |
$contnet = $content;
|
499 |
}
|
500 |
}
|
501 |
-
if ($sfsi_section8['
|
502 |
//icon selection
|
503 |
$icons_after .= "<div class='sfsiaftrpstwpr' style='" . $style_parent . "'>";
|
504 |
$icons_after .= "<div class='sfsi_plus_Sicons " . $float . "' style='" . $style . "'>";
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
}
|
516 |
-
if ($sfsi_section8['sfsi_plus_rectsub'] == 'yes') {
|
517 |
-
if ($show_count) {
|
518 |
-
$sfsiLikeWithsub = "93px";
|
519 |
-
} else {
|
520 |
-
$sfsiLikeWithsub = "64px";
|
521 |
-
}
|
522 |
-
if (!isset($sfsiLikeWithsub)) {
|
523 |
-
$sfsiLikeWithsub = $sfsiLikeWith;
|
524 |
}
|
525 |
-
$
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
-
|
532 |
-
|
|
|
|
|
533 |
}
|
534 |
-
$
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
$
|
|
|
|
|
|
|
539 |
}
|
540 |
-
if (
|
541 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
542 |
}
|
543 |
-
$
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
$sfsiLikeWithtwtr
|
|
|
|
|
|
|
550 |
}
|
551 |
-
if (
|
552 |
-
$
|
|
|
|
|
|
|
|
|
|
|
553 |
}
|
554 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
555 |
}
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
$sfsiLikeWithpinit = "auto";
|
561 |
}
|
562 |
-
$icons_after .= "<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: " . $sfsiLikeWithpinit . "'>" . sfsi_plus_pinitpinterest($permalink, $show_count) . "</div>";
|
563 |
}
|
564 |
-
} else {
|
565 |
-
$icons_after .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
566 |
-
$icons_after .= sfsi_plus_check_posts_visiblity(0, "yes");
|
567 |
}
|
568 |
$icons_after .= "</div>";
|
569 |
$icons_after .= "</div>";
|
7 |
Text Domain: ultimate-social-media-plus
|
8 |
Domain Path: /languages
|
9 |
Author URI: http://socialshare.pro/
|
10 |
+
Version: 3.1.9
|
11 |
License: GPLv2
|
12 |
*/
|
13 |
|
111 |
//register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
|
112 |
|
113 |
/*Plugin version setup*/
|
114 |
+
if (!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 3.19) {
|
115 |
add_action("init", "sfsi_plus_update_plugin");
|
116 |
}
|
117 |
|
335 |
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
336 |
$icons_before .= sfsi_plus_social_buttons_below($content = null);
|
337 |
}else if($option8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
338 |
+
// if (isset($option8['sfsi_plus_responsive_icons_end_post']) && $option8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
339 |
+
// $icons_before .= sfsi_plus_social_responsive_buttons(null, $option8);
|
340 |
+
// }
|
341 |
+
$icons_before .= "";
|
342 |
} else {
|
343 |
$icons_before .= "<div class='sfsi_plus_Sicons' style='" . $style . "'>";
|
344 |
$icons_before .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
348 |
$icons_before .= '</div>';
|
349 |
/*$icons_before .= '</br>';*/
|
350 |
}
|
351 |
+
if ($option8['sfsi_plus_show_item_onposts'] == "yes") {
|
352 |
/*$icons_after .= '</br>';*/
|
353 |
$icons_after .= '<div class="sfsiaftrpstwpr" style="' . $style_parent . '">';
|
354 |
+
if($option8['sfsi_plus_display_after_posts'] == "yes"){
|
355 |
+
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
356 |
+
$icons_after .= sfsi_plus_social_buttons_below($content = null);
|
357 |
+
}else if($option8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
358 |
+
if (isset($option8['sfsi_plus_responsive_icons_end_post']) && $option8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
359 |
+
$icons_after .= sfsi_plus_social_responsive_buttons(null, $option8);
|
360 |
+
}
|
361 |
+
} else {
|
362 |
+
$icons_after .= "<div class='sfsi_plus_Sicons' style='" . $style . "'>";
|
363 |
+
$icons_after .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
364 |
+
$icons_after .= sfsi_plus_check_posts_visiblity(0, "yes");
|
365 |
+
$icons_after .= "</div>";
|
366 |
+
}
|
367 |
+
}else{
|
368 |
+
if(isset($option8['sfsi_plus_display_button_type']) && $option8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
369 |
+
if (isset($option8['sfsi_plus_responsive_icons_end_post']) && $option8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
370 |
+
$icons_after .= sfsi_plus_social_responsive_buttons(null, $option8);
|
371 |
+
}
|
372 |
}
|
|
|
|
|
|
|
|
|
|
|
373 |
}
|
374 |
|
375 |
$icons_after .= '</div>';
|
494 |
}
|
495 |
$icons_before .= "<div class='sf_pinit' style='display: inline-block;vertical-align: middle;text-align:left;width: " . $sfsiLikeWithpinit . "'>" . sfsi_plus_pinitpinterest($permalink, $show_count) . "</div>";
|
496 |
}
|
497 |
+
}else if($sfsi_section8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
498 |
+
// if (isset($sfsi_section8['sfsi_plus_responsive_icons_end_post']) && $sfsi_section8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
499 |
+
// $icons_before .= sfsi_plus_social_responsive_buttons(null, $sfsi_section8);
|
500 |
+
// }
|
501 |
+
$icons_before .="";
|
502 |
} else {
|
503 |
$icons_before .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
504 |
$icons_before .= sfsi_plus_check_posts_visiblity(0, "yes");
|
512 |
$contnet = $content;
|
513 |
}
|
514 |
}
|
515 |
+
if ($sfsi_section8['sfsi_plus_show_item_onposts'] == "yes") {
|
516 |
//icon selection
|
517 |
$icons_after .= "<div class='sfsiaftrpstwpr' style='" . $style_parent . "'>";
|
518 |
$icons_after .= "<div class='sfsi_plus_Sicons " . $float . "' style='" . $style . "'>";
|
519 |
+
if($sfsi_section8['sfsi_plus_display_after_blogposts'] == "yes"){
|
520 |
+
if ($sfsi_plus_display_button_type == 'standard_buttons') {
|
521 |
+
if (
|
522 |
+
$sfsi_section8['sfsi_plus_rectsub'] == 'yes' ||
|
523 |
+
$sfsi_section8['sfsi_plus_rectfb'] == 'yes' ||
|
524 |
+
$sfsi_section8['sfsi_plus_recttwtr'] == 'yes' ||
|
525 |
+
$sfsi_section8['sfsi_plus_rectpinit'] == 'yes' ||
|
526 |
+
$sfsi_section8['sfsi_plus_rectfbshare'] == 'yes'
|
527 |
+
) {
|
528 |
+
$icons_after .= "<div style='display: inline-block;margin-bottom: 0; margin-left: 0; margin-right: 8px; margin-top: 0; vertical-align: middle;width: auto;'><span>" . $txt . "</span></div>";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
529 |
}
|
530 |
+
if ($sfsi_section8['sfsi_plus_rectsub'] == 'yes') {
|
531 |
+
if ($show_count) {
|
532 |
+
$sfsiLikeWithsub = "93px";
|
533 |
+
} else {
|
534 |
+
$sfsiLikeWithsub = "64px";
|
535 |
+
}
|
536 |
+
if (!isset($sfsiLikeWithsub)) {
|
537 |
+
$sfsiLikeWithsub = $sfsiLikeWith;
|
538 |
+
}
|
539 |
+
$icons_after .= "<div class='sf_subscrbe' style='display: inline-block;vertical-align: middle; width: auto;'>" . sfsi_plus_Subscribelike($permalink, $show_count) . "</div>";
|
540 |
}
|
541 |
+
if ($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
|
542 |
+
if ($show_count) { } else {
|
543 |
+
$sfsiLikeWithfb = "48px";
|
544 |
+
}
|
545 |
+
if (!isset($sfsiLikeWithfb)) {
|
546 |
+
$sfsiLikeWithfb = $sfsiLikeWith;
|
547 |
+
}
|
548 |
+
$icons_after .= "<div class='sf_fb' style='display: inline-block; vertical-align: middle;width: auto;'>" . sfsi_plus_FBlike($permalink, $show_count) . "</div>";
|
549 |
}
|
550 |
+
if ($sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
|
551 |
+
if ($show_count) { } else {
|
552 |
+
$sfsiLikeWithfbshare = "48px";
|
553 |
+
}
|
554 |
+
if (!isset($sfsiLikeWithfbshare)) {
|
555 |
+
$sfsiLikeWithfbshare = $sfsiLikeWith;
|
556 |
+
}
|
557 |
+
$icons_after .= "<div class='sf_fb' style='display: inline-block; vertical-align: middle;width: auto;'>" . sfsi_plus_FBshare($permalink, $show_count) . "</div>";
|
558 |
}
|
559 |
+
if ($sfsi_section8['sfsi_plus_recttwtr'] == 'yes') {
|
560 |
+
if ($show_count) {
|
561 |
+
$sfsiLikeWithtwtr = "77px";
|
562 |
+
} else {
|
563 |
+
$sfsiLikeWithtwtr = "56px";
|
564 |
+
}
|
565 |
+
if (!isset($sfsiLikeWithtwtr)) {
|
566 |
+
$sfsiLikeWithtwtr = $sfsiLikeWith;
|
567 |
+
}
|
568 |
+
$icons_after .= "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_twitterlike($permalink, $show_count) . "</div>";
|
569 |
}
|
570 |
+
if ($sfsi_section8['sfsi_plus_rectpinit'] == 'yes') {
|
571 |
+
if ($show_count) {
|
572 |
+
$sfsiLikeWithpinit = "100px";
|
573 |
+
} else {
|
574 |
+
$sfsiLikeWithpinit = "auto";
|
575 |
+
}
|
576 |
+
$icons_after .= "<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: " . $sfsiLikeWithpinit . "'>" . sfsi_plus_pinitpinterest($permalink, $show_count) . "</div>";
|
577 |
}
|
578 |
+
}else if($sfsi_section8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
579 |
+
// if (isset($sfsi_section8['sfsi_plus_responsive_icons_end_post']) && $sfsi_section8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
580 |
+
// $icons_after .= sfsi_plus_social_responsive_buttons(null, $sfsi_section8);
|
581 |
+
// }
|
582 |
+
$icons_after .= "";
|
583 |
+
} else {
|
584 |
+
$icons_after .= "<div style='float:left;margin:0 0px; line-height:" . $lineheight . "px'><span>" . $txt . "</span></div>";
|
585 |
+
$icons_after .= sfsi_plus_check_posts_visiblity(0, "yes");
|
586 |
}
|
587 |
+
}else{
|
588 |
+
if(isset($sfsi_section8['sfsi_plus_display_button_type']) && $sfsi_section8['sfsi_plus_display_button_type'] == 'responsive_button'){
|
589 |
+
if (isset($sfsi_section8['sfsi_plus_responsive_icons_end_post']) && $sfsi_section8['sfsi_plus_responsive_icons_end_post'] == "yes") {
|
590 |
+
$icons_after .= sfsi_plus_social_responsive_buttons(null, $sfsi_section8);
|
|
|
591 |
}
|
|
|
592 |
}
|
|
|
|
|
|
|
593 |
}
|
594 |
$icons_after .= "</div>";
|
595 |
$icons_after .= "</div>";
|