Version Description
- Fixed undefined index issue
- Updated Youtube api updated
- Bitly changes
Download this release
Release Info
Developer | socialdude |
Plugin | ![]() |
Version | 2.5.6 |
Comparing to | |
See all releases |
Code changes from version 2.5.5 to 2.5.6
- analyst/src/helpers.php +97 -21
- css/sfsi-admin-common-style.css +58 -1
- css/sfsi-admin-style.css +80 -3
- css/sfsi-style.css +10 -5
- js/custom-admin.js +450 -78
- libs/controllers/sfsi_buttons_controller.php +153 -8
- libs/controllers/sfsi_class_theme_check.php +13 -2
- libs/controllers/sfsi_socialhelper.php +18 -6
- libs/controllers/sfsiocns_OnPosts.php +229 -238
- libs/sfsi_custom_social_sharing_data.php +14 -16
- libs/sfsi_install_uninstall.php +310 -11
- readme.txt +7 -2
- ultimate_social_media_icons.php +571 -85
- views/sfsi_global_banners.php +284 -0
- views/sfsi_option_view2.php +6 -6
- views/sfsi_option_view3.php +99 -88
- views/sfsi_option_view4.php +31 -3
- views/sfsi_option_view5.php +17 -1
- views/sfsi_options_view.php +1 -1
- views/sfsi_other_banners.php +211 -0
- views/sfsi_plugin_lists.php +248 -0
- views/sfsi_pop_content.php +1 -1
- views/sfsi_question3.php +1 -1
- views/sfsi_section_for_premium.php +169 -39
- views/subviews/que3/sfsi_que3_place_via_shortcode.php +47 -48
analyst/src/helpers.php
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
<?php
|
2 |
|
3 |
-
if (!
|
4 |
/**
|
5 |
* Generates path to file in assets folder
|
6 |
*
|
@@ -16,7 +16,7 @@ if (! function_exists('analyst_assets_path')) {
|
|
16 |
}
|
17 |
|
18 |
|
19 |
-
if (!
|
20 |
/**
|
21 |
* Generates url to file in assets folder
|
22 |
*
|
@@ -32,31 +32,30 @@ if (! function_exists('analyst_assets_url')) {
|
|
32 |
// of that path to get the content dir AKA directly where
|
33 |
// plugins are installed and make the magic...
|
34 |
$contentDir = is_link(WP_PLUGIN_DIR) ?
|
35 |
-
dirname(wp_normalize_path(readlink(WP_PLUGIN_DIR))) :
|
36 |
-
dirname(wp_normalize_path(WP_PLUGIN_DIR));
|
37 |
|
38 |
-
$relativePath = str_replace(
|
39 |
|
40 |
return content_url(wp_normalize_path($relativePath));
|
41 |
}
|
42 |
}
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
}
|
57 |
}
|
|
|
58 |
|
59 |
-
if (!
|
60 |
/**
|
61 |
* Require certain template with data
|
62 |
*
|
@@ -72,13 +71,90 @@ if (! function_exists('analyst_require_template')) {
|
|
72 |
}
|
73 |
}
|
74 |
|
75 |
-
if (!
|
76 |
/**
|
77 |
* Dump some data
|
78 |
*/
|
79 |
-
function dd
|
80 |
{
|
81 |
// var_dump(func_get_args());
|
82 |
die();
|
83 |
}
|
84 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
<?php
|
2 |
|
3 |
+
if (!function_exists('analyst_assets_path')) {
|
4 |
/**
|
5 |
* Generates path to file in assets folder
|
6 |
*
|
16 |
}
|
17 |
|
18 |
|
19 |
+
if (!function_exists('analyst_assets_url')) {
|
20 |
/**
|
21 |
* Generates url to file in assets folder
|
22 |
*
|
32 |
// of that path to get the content dir AKA directly where
|
33 |
// plugins are installed and make the magic...
|
34 |
$contentDir = is_link(WP_PLUGIN_DIR) ?
|
35 |
+
dirname(wp_normalize_path(readlink(WP_PLUGIN_DIR))) : dirname(wp_normalize_path(WP_PLUGIN_DIR));
|
|
|
36 |
|
37 |
+
$relativePath = str_replace($contentDir, '', $absolutePath);
|
38 |
|
39 |
return content_url(wp_normalize_path($relativePath));
|
40 |
}
|
41 |
}
|
42 |
|
43 |
+
if (!function_exists('analyst_templates_path')) {
|
44 |
+
/**
|
45 |
+
* Generates path to file in templates folder
|
46 |
+
*
|
47 |
+
* @param $file
|
48 |
+
* @return string
|
49 |
+
*/
|
50 |
+
function analyst_templates_path($file)
|
51 |
+
{
|
52 |
+
$path = sprintf('%s/templates/%s', realpath(__DIR__ . '/..'), trim($file, '/'));
|
53 |
+
|
54 |
+
return wp_normalize_path($path);
|
|
|
55 |
}
|
56 |
+
}
|
57 |
|
58 |
+
if (!function_exists('analyst_require_template')) {
|
59 |
/**
|
60 |
* Require certain template with data
|
61 |
*
|
71 |
}
|
72 |
}
|
73 |
|
74 |
+
if (!function_exists('dd')) {
|
75 |
/**
|
76 |
* Dump some data
|
77 |
*/
|
78 |
+
function dd()
|
79 |
{
|
80 |
// var_dump(func_get_args());
|
81 |
die();
|
82 |
}
|
83 |
}
|
84 |
+
|
85 |
+
|
86 |
+
|
87 |
+
// function sfsi_check_plugin_is_active($dir_slug, $option_name, $site_url)
|
88 |
+
// {
|
89 |
+
|
90 |
+
|
91 |
+
// // var_dump($plugin_list);
|
92 |
+
// $is_active_gallery_plugin = array();
|
93 |
+
// foreach ($plugin_list as $key => $plugin) {
|
94 |
+
// var_dump($plugin);
|
95 |
+
// $is_active_gallery_plugin[$key] = is_plugin_active($plugin_list);
|
96 |
+
// }
|
97 |
+
// if(in_array(true, $is_active_gallery_plugin)){
|
98 |
+
// return true;
|
99 |
+
// }
|
100 |
+
// }
|
101 |
+
|
102 |
+
// function sfsi_check_on_plugin_page($dir_slug, $option_name, $site_url="")
|
103 |
+
// {
|
104 |
+
// var_dump('in helper');
|
105 |
+
|
106 |
+
// return is_plugin_active($dir_slug) && isset($_GET) && isset($_GET["page"]) && ($_GET['page']==$option_name);
|
107 |
+
// }
|
108 |
+
|
109 |
+
function sfsi_get_plugin($dir_slug)
|
110 |
+
{
|
111 |
+
// if(is_plugin_active($dir_slug)){
|
112 |
+
$plugins = get_plugins();
|
113 |
+
if (isset($plugins[$dir_slug])) {
|
114 |
+
return $plugins[$dir_slug];
|
115 |
+
} else {
|
116 |
+
return null;
|
117 |
+
}
|
118 |
+
// }
|
119 |
+
}
|
120 |
+
|
121 |
+
function sfsi_plugin_waiting_time($option)
|
122 |
+
{
|
123 |
+
|
124 |
+
if (isset($option['show_banner']) && $option['show_banner'] == "no" || isset($option['timestamp']) && !empty($option['timestamp'])) {
|
125 |
+
$sfsi_banner_timestamp = strtotime($option['timestamp']);
|
126 |
+
$sfsi_show_banner_timestamp = $sfsi_banner_timestamp + (21 * 24 * 60 * 60);
|
127 |
+
if (time() >= $sfsi_show_banner_timestamp) {
|
128 |
+
return true;
|
129 |
+
}
|
130 |
+
return false;
|
131 |
+
}
|
132 |
+
return false;
|
133 |
+
}
|
134 |
+
|
135 |
+
function sfsi_wp_img_count()
|
136 |
+
{
|
137 |
+
$query_img_args = array(
|
138 |
+
'post_type' => 'attachment',
|
139 |
+
'post_mime_type' => array(
|
140 |
+
'jpg|jpeg|jpe' => 'image/jpeg',
|
141 |
+
'gif' => 'image/gif',
|
142 |
+
'png' => 'image/png',
|
143 |
+
),
|
144 |
+
'post_status' => 'inherit',
|
145 |
+
'posts_per_page' => -1,
|
146 |
+
);
|
147 |
+
$query_img = new WP_Query($query_img_args);
|
148 |
+
return $query_img->post_count;
|
149 |
+
}
|
150 |
+
|
151 |
+
function sfsi_check_pinterest_icon_placed()
|
152 |
+
{
|
153 |
+
$sfsi_section1 = unserialize(get_option('sfsi_section1_options', false));
|
154 |
+
if ($sfsi_section1['sfsi_pinterest_display'] == 'yes') {
|
155 |
+
return true;
|
156 |
+
}
|
157 |
+
return false;
|
158 |
+
}
|
159 |
+
|
160 |
+
|
css/sfsi-admin-common-style.css
CHANGED
@@ -52,7 +52,7 @@ img#sfsi-social-media-image-preview {}
|
|
52 |
input#sfsi-social-media-image-button,input#sfsi-social-pinterest-image-button {width: 100%;margin-top: 10px;min-height: 45px;background: #45a745;color: white;font-size: 16px;}
|
53 |
.imgTxt{ margin-top: 10px;width: 100%;}
|
54 |
.imgTopTxt{ font-size: 14px;padding-bottom: 10px;}
|
55 |
-
.imgTopTxt strong {font-size: 17px;font-family: inherit;}
|
56 |
.sfsi_custom_social_titlePlusDescription { margin-left: 30px; width: 70%;float: left; margin-top:7px;}
|
57 |
.sfsi_titlePlusDescription{ margin-left: 30px; width: 100%;float: left;}
|
58 |
.sfsi_custom_social_data_title{float: left;width: 100%;}
|
@@ -95,4 +95,61 @@ a.sfsi_disable_usm_ogtags_setting_change {color: #444;cursor: pointer;font-weigh
|
|
95 |
font-size: 22px;
|
96 |
margin-left: -25px;
|
97 |
margin-top: -28px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
98 |
}
|
52 |
input#sfsi-social-media-image-button,input#sfsi-social-pinterest-image-button {width: 100%;margin-top: 10px;min-height: 45px;background: #45a745;color: white;font-size: 16px;}
|
53 |
.imgTxt{ margin-top: 10px;width: 100%;}
|
54 |
.imgTopTxt{ font-size: 14px;padding-bottom: 10px;}
|
55 |
+
.imgTopTxt strong {font-size: 17px;font-family: inherit;font-weight: bold;}
|
56 |
.sfsi_custom_social_titlePlusDescription { margin-left: 30px; width: 70%;float: left; margin-top:7px;}
|
57 |
.sfsi_titlePlusDescription{ margin-left: 30px; width: 100%;float: left;}
|
58 |
.sfsi_custom_social_data_title{float: left;width: 100%;}
|
95 |
font-size: 22px;
|
96 |
margin-left: -25px;
|
97 |
margin-top: -28px;
|
98 |
+
}
|
99 |
+
|
100 |
+
.sfsi_new_prmium_follw.sfsi_banner_body {
|
101 |
+
width: 91%;
|
102 |
+
display: flex;
|
103 |
+
padding: 11px 20px;
|
104 |
+
margin:15px 40px;
|
105 |
+
}
|
106 |
+
|
107 |
+
.sfsi_new_prmium_follw p a {
|
108 |
+
color: #12a252 !important;
|
109 |
+
text-decoration: none;
|
110 |
+
}
|
111 |
+
|
112 |
+
.sfsi_new_prmium_follw p {
|
113 |
+
margin: 0 !important;
|
114 |
+
}
|
115 |
+
.sfsi_new_prmium_follw p {
|
116 |
+
color: #1a1d20 !important;
|
117 |
+
font-size: 18px !important;
|
118 |
+
font-family: helveticaregular !important;
|
119 |
+
}
|
120 |
+
|
121 |
+
.sfsi_new_prmium_follw .sfsi_banner_dismiss{
|
122 |
+
height: fit-content;
|
123 |
+
font-size: 16px;
|
124 |
+
line-height: 27px;
|
125 |
+
cursor: pointer;
|
126 |
+
}
|
127 |
+
|
128 |
+
.sfsi_new_prmium_follw {
|
129 |
+
margin-top: 20px;
|
130 |
+
background: #f3faf6;
|
131 |
+
border: 1px solid #12a252;
|
132 |
+
padding: 15px 75px 20px 24px;
|
133 |
+
/* float: left; */
|
134 |
+
clear: both;
|
135 |
+
}
|
136 |
+
|
137 |
+
.sfsi_new_prmium_follw.sfsi_banner_body.sfsi_warning_banner{
|
138 |
+
background: #ffe1e4;
|
139 |
+
border: 1px solid #cd2d2d;
|
140 |
+
}
|
141 |
+
|
142 |
+
.sfsi_new_prmium_follw.sfsi_banner_body .sfsi_premiumNoticeDismiss input{
|
143 |
+
color: inherit;
|
144 |
+
border: 0px #000 solid;
|
145 |
+
background-color: inherit;
|
146 |
+
cursor: pointer;
|
147 |
+
font-weight: 600;
|
148 |
+
}
|
149 |
+
.sfsi_new_prmium_follw.sfsi_banner_body .sfsi_premiumNoticeDismiss input:focus {
|
150 |
+
outline:none;
|
151 |
+
}
|
152 |
+
|
153 |
+
.sfsi_new_prmium_follw.sfsi_banner_body div:first-child{
|
154 |
+
width: 96%;
|
155 |
}
|
css/sfsi-admin-style.css
CHANGED
@@ -1529,6 +1529,27 @@ ul.tab_2_email_sec li .radio {
|
|
1529 |
background-size: contain;
|
1530 |
}
|
1531 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1532 |
/*tab 6 css*/
|
1533 |
.tab6 .social_icon_like1 {
|
1534 |
width: 100%;
|
@@ -2330,7 +2351,7 @@ ul.sfsi_floaticon_margin_sec li ins {
|
|
2330 |
background: #f3faf6;
|
2331 |
border: 1px solid #12a252;
|
2332 |
padding: 25px 38px 35px 40px;
|
2333 |
-
float: left;
|
2334 |
clear: both;
|
2335 |
}
|
2336 |
.notice_custom_icons_premium.sfsi_new_prmium_follw {
|
@@ -2403,7 +2424,7 @@ ul.sfsi_floaticon_margin_sec li ins {
|
|
2403 |
margin-top: 20px;
|
2404 |
display: inline-block;
|
2405 |
padding: 15px 75px 20px 24px;
|
2406 |
-
float: left;
|
2407 |
}
|
2408 |
.sfsi_new_prmium_follw p {
|
2409 |
margin: 0 !important;
|
@@ -4644,6 +4665,62 @@ text-decoration:none!important;
|
|
4644 |
|
4645 |
.sfsi-premium-btn a:hover {
|
4646 |
color: #ffffff;
|
4647 |
-
|
4648 |
cursor: pointer;
|
4649 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1529 |
background-size: contain;
|
1530 |
}
|
1531 |
|
1532 |
+
.icns_tab_3.sfsi_premium_ad span{
|
1533 |
+
width: 55px;
|
1534 |
+
height: 56px;
|
1535 |
+
float: left;
|
1536 |
+
margin: 0 4px 0 0;
|
1537 |
+
background-size: auto 110px;
|
1538 |
+
}
|
1539 |
+
.icns_tab_3.sfsi_premium_ad .premium_col_1{
|
1540 |
+
background-position: -760px -19px;
|
1541 |
+
}
|
1542 |
+
.icns_tab_3.sfsi_premium_ad .premium_col_2{
|
1543 |
+
background-position: -380px -19px;
|
1544 |
+
}
|
1545 |
+
.icns_tab_3.sfsi_premium_ad .premium_col_3{
|
1546 |
+
background-position: -500px -19px;
|
1547 |
+
}
|
1548 |
+
.icns_tab_3.sfsi_premium_ad .premium_col_4{
|
1549 |
+
background-position: -206px -19px;
|
1550 |
+
}
|
1551 |
+
|
1552 |
+
|
1553 |
/*tab 6 css*/
|
1554 |
.tab6 .social_icon_like1 {
|
1555 |
width: 100%;
|
2351 |
background: #f3faf6;
|
2352 |
border: 1px solid #12a252;
|
2353 |
padding: 25px 38px 35px 40px;
|
2354 |
+
/* float: left; */
|
2355 |
clear: both;
|
2356 |
}
|
2357 |
.notice_custom_icons_premium.sfsi_new_prmium_follw {
|
2424 |
margin-top: 20px;
|
2425 |
display: inline-block;
|
2426 |
padding: 15px 75px 20px 24px;
|
2427 |
+
/* float: left; */
|
2428 |
}
|
2429 |
.sfsi_new_prmium_follw p {
|
2430 |
margin: 0 !important;
|
4665 |
|
4666 |
.sfsi-premium-btn a:hover {
|
4667 |
color: #ffffff;
|
|
|
4668 |
cursor: pointer;
|
4669 |
}
|
4670 |
+
|
4671 |
+
.sfsi_new_prmium_follw .sfsi_banner_dismiss{
|
4672 |
+
height: fit-content;
|
4673 |
+
font-size: 16px;
|
4674 |
+
line-height: 27px;
|
4675 |
+
cursor: pointer;
|
4676 |
+
}
|
4677 |
+
|
4678 |
+
.sfsi_new_prmium_follw.sfsi_banner_body{
|
4679 |
+
width: 91%;
|
4680 |
+
display: flex;
|
4681 |
+
padding: 11px 20px;
|
4682 |
+
}
|
4683 |
+
|
4684 |
+
|
4685 |
+
.sfsi_new_prmium_follw.sfsi_banner_body.sfsi_warning_banner{
|
4686 |
+
background: #ffe1e4;
|
4687 |
+
border: 1px solid #cd2d2d;
|
4688 |
+
}
|
4689 |
+
|
4690 |
+
.icns_tab_3.sfsi_premium_ad .sfis_premium_ad_name{
|
4691 |
+
display: inline-block;
|
4692 |
+
margin-top: 18px;
|
4693 |
+
margin-left: 10px;
|
4694 |
+
font-size: 16px;
|
4695 |
+
opacity: 0.4;
|
4696 |
+
font-weight: bolder;
|
4697 |
+
}
|
4698 |
+
.tab4 ul.like_icon li span {
|
4699 |
+
width:60px!important;
|
4700 |
+
height:37px!important;
|
4701 |
+
}
|
4702 |
+
.sfsi_new_prmium_follw.sfsi_social_sharing{
|
4703 |
+
width:100%!important;
|
4704 |
+
}
|
4705 |
+
|
4706 |
+
/*.sf_si_our_prmium_plugin-add{
|
4707 |
+
width:100%!important;
|
4708 |
+
}*/
|
4709 |
+
/*@media only screen and (min-width: 1920px) {
|
4710 |
+
.sf_si_our_prmium_plugin-add{
|
4711 |
+
width:70%!important;
|
4712 |
+
}
|
4713 |
+
}*/
|
4714 |
+
.effectName label{
|
4715 |
+
width: calc( 100% - 50px );
|
4716 |
+
}
|
4717 |
+
|
4718 |
+
|
4719 |
+
.wapper.sfsi_mainContainer input {
|
4720 |
+
line-height: 1!important;
|
4721 |
+
}
|
4722 |
+
|
4723 |
+
|
4724 |
+
.ui-accordion-header:focus {
|
4725 |
+
outline: none;
|
4726 |
+
}
|
css/sfsi-style.css
CHANGED
@@ -963,7 +963,7 @@ ul.tab_3_icns li .radio {
|
|
963 |
left: 0;
|
964 |
width: 100%;
|
965 |
height: 100%;
|
966 |
-
|
967 |
z-index: 10;
|
968 |
padding: 20px;
|
969 |
display: none;
|
@@ -975,7 +975,7 @@ ul.tab_3_icns li .radio {
|
|
975 |
left: 0;
|
976 |
width: 100%;
|
977 |
height: 100%;
|
978 |
-
|
979 |
z-index: -1000;
|
980 |
padding: 20px;
|
981 |
opacity: 0;
|
@@ -2145,6 +2145,7 @@ h2.optional {
|
|
2145 |
.sfsi_mainContainer select,
|
2146 |
.sfsi_mainContainer textarea {
|
2147 |
color: #5a6570 !important;
|
|
|
2148 |
}
|
2149 |
|
2150 |
.adminTooltip {
|
@@ -2888,7 +2889,12 @@ a.sficn {
|
|
2888 |
z-index: 99;
|
2889 |
margin-left: -59px;
|
2890 |
margin-top: -14px;
|
2891 |
-
background: rgba(255, 255, 255, .
|
|
|
|
|
|
|
|
|
|
|
2892 |
}
|
2893 |
|
2894 |
.disabled_checkbox .sfsi_right_info.sfsi_Woocommerce_disable:before {
|
@@ -3048,7 +3054,7 @@ a.pop-up .radio{
|
|
3048 |
.sfsi_responsive_icon_gradient{
|
3049 |
background-image: -webkit-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
|
3050 |
background-image: -moz-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
|
3051 |
-
background-image: linear-gradient(bottom,rgba(0,0,0,.17) 0%,rgba(255,255,255,.17) 100%);
|
3052 |
}
|
3053 |
.tab6 ul.sfsi_icn_listing8 ul.sfsi_tab_3_icns li {
|
3054 |
width: 50%;
|
@@ -3095,7 +3101,6 @@ ul.sfsi_tab_3_icns {
|
|
3095 |
}
|
3096 |
.tab6 .sfsi_tab_3_icns.sfsi_shwthmbfraftr .social_icon_like1 li {
|
3097 |
width: auto;
|
3098 |
-
max-width: auto;
|
3099 |
min-width: auto;
|
3100 |
margin: 0 30px 0 0;
|
3101 |
}
|
963 |
left: 0;
|
964 |
width: 100%;
|
965 |
height: 100%;
|
966 |
+
background-color: #d3d3d3;
|
967 |
z-index: 10;
|
968 |
padding: 20px;
|
969 |
display: none;
|
975 |
left: 0;
|
976 |
width: 100%;
|
977 |
height: 100%;
|
978 |
+
background-color: #d3d3d3;
|
979 |
z-index: -1000;
|
980 |
padding: 20px;
|
981 |
opacity: 0;
|
2145 |
.sfsi_mainContainer select,
|
2146 |
.sfsi_mainContainer textarea {
|
2147 |
color: #5a6570 !important;
|
2148 |
+
line-height: 1 !important;
|
2149 |
}
|
2150 |
|
2151 |
.adminTooltip {
|
2889 |
z-index: 99;
|
2890 |
margin-left: -59px;
|
2891 |
margin-top: -14px;
|
2892 |
+
background: rgba(255, 255, 255, .6);
|
2893 |
+
}
|
2894 |
+
|
2895 |
+
.disabled_checkbox .sfsi_right_info.sfsi_Woocommerce_disable:before {
|
2896 |
+
margin-left: -49px !important;
|
2897 |
+
width: 400px;
|
2898 |
}
|
2899 |
|
2900 |
.disabled_checkbox .sfsi_right_info.sfsi_Woocommerce_disable:before {
|
3054 |
.sfsi_responsive_icon_gradient{
|
3055 |
background-image: -webkit-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
|
3056 |
background-image: -moz-linear-gradient(bottom,rgba(0, 0, 0, 0.17) 0%,rgba(255, 255, 255, 0.17) 100%);
|
3057 |
+
background-image: linear-gradient(to bottom,rgba(0,0,0,.17) 0%,rgba(255,255,255,.17) 100%);
|
3058 |
}
|
3059 |
.tab6 ul.sfsi_icn_listing8 ul.sfsi_tab_3_icns li {
|
3060 |
width: 50%;
|
3101 |
}
|
3102 |
.tab6 .sfsi_tab_3_icns.sfsi_shwthmbfraftr .social_icon_like1 li {
|
3103 |
width: auto;
|
|
|
3104 |
min-width: auto;
|
3105 |
margin: 0 30px 0 0;
|
3106 |
}
|
js/custom-admin.js
CHANGED
@@ -574,71 +574,71 @@ function sfsi_update_step4() {
|
|
574 |
|
575 |
wcc = 1 == SFSI("input[name='sfsi_wechat_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_wechat_countsDisplay']:checked").val(),
|
576 |
wcm = SFSI("input[name='sfsi_wechat_manualCounts']").val(),
|
577 |
-
|
578 |
resp = 1 == SFSI("input[name='sfsi_responsive_share_count']").prop("disabled") ? "" : SFSI("input[name='sfsi_responsive_share_count']:checked").val(),
|
579 |
original = 1 == SFSI("input[name='sfsi_original_counts']").prop("disabled") ? "" : SFSI("input[name='sfsi_original_counts']:checked").val(),
|
580 |
round = 1 == SFSI("input[name='sfsi_round_counts']").prop("disabled") ? "" : SFSI("input[name='sfsi_round_counts']:checked").val()
|
581 |
|
582 |
-
console.log(resp,original,round);
|
583 |
-
|
584 |
-
|
585 |
-
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
|
594 |
-
|
595 |
-
|
596 |
-
|
597 |
-
|
598 |
-
|
599 |
-
|
600 |
-
|
601 |
-
|
602 |
-
|
603 |
-
|
604 |
-
|
605 |
-
|
606 |
-
|
607 |
-
|
608 |
-
|
609 |
-
|
610 |
-
|
611 |
-
|
612 |
-
|
613 |
-
|
614 |
-
|
615 |
-
|
616 |
-
|
617 |
-
|
618 |
-
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
|
628 |
-
|
629 |
-
|
630 |
-
|
631 |
-
|
632 |
-
|
633 |
-
|
634 |
-
|
635 |
-
|
636 |
-
|
637 |
-
|
638 |
-
|
639 |
-
|
640 |
-
|
641 |
-
|
642 |
console.log($);
|
643 |
return SFSI.ajax({
|
644 |
url: sfsi_icon_ajax_object.ajax_url,
|
@@ -2166,6 +2166,42 @@ SFSI(document).ready(function (s) {
|
|
2166 |
SFSI("#sfsi_installDate").on("click", function () {
|
2167 |
sfsi_installDate_save();
|
2168 |
}),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2169 |
SFSI("#save_all_settings").on("click", function () {
|
2170 |
return SFSI("#save_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
|
2171 |
sfsi_update_step1(), sfsi_update_step8(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8),
|
@@ -2626,6 +2662,8 @@ SFSI(document).ready(function (s) {
|
|
2626 |
}
|
2627 |
|
2628 |
if (!error) {
|
|
|
|
|
2629 |
// console.log("feedid",feedid);
|
2630 |
if (feedid == "" || undefined == feedid) {
|
2631 |
var nonce = SFSI(this).attr('data-nonce-fetch-feed-id');
|
@@ -2646,18 +2684,30 @@ SFSI(document).ready(function (s) {
|
|
2646 |
if ("success" == s.res) {
|
2647 |
var feedid = s.feed_id;
|
2648 |
if (feedid == "" || null == feedid) {
|
2649 |
-
alert("Error: Claiming didn't work. Please try again later.")
|
|
|
|
|
|
|
2650 |
} else {
|
2651 |
jQuery('#calimingOptimizationForm input[name="feed_id"]').val(feedid);
|
2652 |
// console.log("feedid",feedid,SFSI("#calimingOptimizationForm input[name='feed_id']"),SFSI('#calimingOptimizationForm input[name="feedid"]').val());
|
2653 |
SFSI('#calimingOptimizationForm').submit();
|
|
|
|
|
|
|
2654 |
}
|
2655 |
} else {
|
2656 |
if ("failed" == s.res) {
|
2657 |
alert("Error: " + s.message + ".");
|
|
|
|
|
|
|
2658 |
|
2659 |
} else {
|
2660 |
alert("Error: Please try again.");
|
|
|
|
|
|
|
2661 |
}
|
2662 |
}
|
2663 |
}
|
@@ -2727,7 +2777,7 @@ function showhideutube(ref) {
|
|
2727 |
SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideUp();
|
2728 |
}
|
2729 |
}
|
2730 |
-
|
2731 |
function checkforinfoslction(ref) {
|
2732 |
var pos = jQuery(ref).children(".checkbox").css("background-position");
|
2733 |
|
@@ -2746,6 +2796,7 @@ function checkforinfoslction(ref) {
|
|
2746 |
|
2747 |
function checkforinfoslction_checkbox(ref) {
|
2748 |
|
|
|
2749 |
var pos = jQuery(ref).children(".checkbox").css("background-position");
|
2750 |
|
2751 |
var elem = jQuery(ref).parent().children('.sfsi_right_info').find('.kckslctn');
|
@@ -3437,18 +3488,339 @@ function sfsi_installDate_save() {
|
|
3437 |
nonce: nonce
|
3438 |
};
|
3439 |
console.log(data);
|
3440 |
-
|
3441 |
-
|
3442 |
-
|
3443 |
-
|
3444 |
-
|
3445 |
-
|
3446 |
-
|
3447 |
-
|
3448 |
-
|
3449 |
-
|
3450 |
-
|
3451 |
-
|
3452 |
-
|
3453 |
-
|
3454 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
574 |
|
575 |
wcc = 1 == SFSI("input[name='sfsi_wechat_countsDisplay']").prop("disabled") ? "" : SFSI("input[name='sfsi_wechat_countsDisplay']:checked").val(),
|
576 |
wcm = SFSI("input[name='sfsi_wechat_manualCounts']").val(),
|
577 |
+
|
578 |
resp = 1 == SFSI("input[name='sfsi_responsive_share_count']").prop("disabled") ? "" : SFSI("input[name='sfsi_responsive_share_count']:checked").val(),
|
579 |
original = 1 == SFSI("input[name='sfsi_original_counts']").prop("disabled") ? "" : SFSI("input[name='sfsi_original_counts']:checked").val(),
|
580 |
round = 1 == SFSI("input[name='sfsi_round_counts']").prop("disabled") ? "" : SFSI("input[name='sfsi_round_counts']:checked").val()
|
581 |
|
582 |
+
console.log(resp, original, round);
|
583 |
+
|
584 |
+
$ = {
|
585 |
+
action: "updateSrcn4",
|
586 |
+
sfsi_display_counts: e,
|
587 |
+
sfsi_email_countsDisplay: t,
|
588 |
+
sfsi_email_countsFrom: n,
|
589 |
+
sfsi_email_manualCounts: o,
|
590 |
+
sfsi_rss_countsDisplay: r,
|
591 |
+
sfsi_rss_manualCounts: c,
|
592 |
+
sfsi_facebook_countsDisplay: p,
|
593 |
+
sfsi_facebook_countsFrom: _,
|
594 |
+
sfsi_facebook_mypageCounts: mp,
|
595 |
+
sfsi_facebook_manualCounts: l,
|
596 |
+
sfsi_twitter_countsDisplay: S,
|
597 |
+
sfsi_twitter_countsFrom: u,
|
598 |
+
sfsi_twitter_manualCounts: f,
|
599 |
+
tw_consumer_key: d,
|
600 |
+
tw_consumer_secret: I,
|
601 |
+
tw_oauth_access_token: m,
|
602 |
+
tw_oauth_access_token_secret: F,
|
603 |
+
sfsi_linkedIn_countsDisplay: D,
|
604 |
+
sfsi_linkedIn_countsFrom: k,
|
605 |
+
sfsi_linkedIn_manualCounts: y,
|
606 |
+
ln_company: b,
|
607 |
+
ln_api_key: w,
|
608 |
+
ln_secret_key: x,
|
609 |
+
ln_oAuth_user_token: C,
|
610 |
+
sfsi_youtube_countsDisplay: U,
|
611 |
+
sfsi_youtube_countsFrom: O,
|
612 |
+
sfsi_youtube_manualCounts: T,
|
613 |
+
sfsi_youtube_user: j,
|
614 |
+
sfsi_youtube_channelId: SFSI("input[name='sfsi_youtube_channelId']").val(),
|
615 |
+
sfsi_pinterest_countsDisplay: P,
|
616 |
+
sfsi_pinterest_countsFrom: M,
|
617 |
+
sfsi_pinterest_manualCounts: L,
|
618 |
+
sfsi_pinterest_user: B,
|
619 |
+
sfsi_pinterest_board: E,
|
620 |
+
sfsi_instagram_countsDisplay: z,
|
621 |
+
sfsi_instagram_countsFrom: A,
|
622 |
+
sfsi_instagram_manualCounts: N,
|
623 |
+
sfsi_instagram_User: H,
|
624 |
+
sfsi_instagram_clientid: ha,
|
625 |
+
sfsi_instagram_appurl: ia,
|
626 |
+
sfsi_instagram_token: ja,
|
627 |
+
sfsi_telegram_countsDisplay: tc,
|
628 |
+
sfsi_telegram_manualCounts: tm,
|
629 |
+
sfsi_vk_countsDisplay: vc,
|
630 |
+
sfsi_vk_manualCounts: vm,
|
631 |
+
sfsi_ok_countsDisplay: oc,
|
632 |
+
sfsi_ok_manualCounts: om,
|
633 |
+
sfsi_weibo_countsDisplay: wc,
|
634 |
+
sfsi_weibo_manualCounts: wm,
|
635 |
+
sfsi_wechat_countsDisplay: wcc,
|
636 |
+
sfsi_wechat_manualCounts: wcm,
|
637 |
+
sfsi_responsive_share_count: resp,
|
638 |
+
sfsi_original_counts: original,
|
639 |
+
sfsi_round_counts: round,
|
640 |
+
nonce: nonce
|
641 |
+
};
|
642 |
console.log($);
|
643 |
return SFSI.ajax({
|
644 |
url: sfsi_icon_ajax_object.ajax_url,
|
2166 |
SFSI("#sfsi_installDate").on("click", function () {
|
2167 |
sfsi_installDate_save();
|
2168 |
}),
|
2169 |
+
SFSI("#sfsi_currentDate").on("click", function () {
|
2170 |
+
sfsi_currentDate_save();
|
2171 |
+
}),
|
2172 |
+
SFSI("#sfsi_showNextBannerDate").on("click", function () {
|
2173 |
+
sfsi_showNextBannerDate_save();
|
2174 |
+
}),
|
2175 |
+
SFSI("#sfsi_cycleDate").on("click", function () {
|
2176 |
+
sfsi_cycleDate_save();
|
2177 |
+
}),
|
2178 |
+
SFSI("#sfsi_loyaltyDate").on("click", function () {
|
2179 |
+
sfsi_loyaltyDate_save();
|
2180 |
+
}),
|
2181 |
+
SFSI("#sfsi_banner_global_firsttime_offer").on("click", function () {
|
2182 |
+
sfsi_banner_global_firsttime_offer_save();
|
2183 |
+
}),
|
2184 |
+
SFSI("#sfsi_banner_global_pinterest").on("click", function () {
|
2185 |
+
sfsi_banner_global_pinterest_save();
|
2186 |
+
}),
|
2187 |
+
SFSI("#sfsi_banner_global_social").on("click", function () {
|
2188 |
+
sfsi_banner_global_social_save();
|
2189 |
+
}),
|
2190 |
+
SFSI("#sfsi_banner_global_load_faster").on("click", function () {
|
2191 |
+
sfsi_banner_global_load_faster_save();
|
2192 |
+
}),
|
2193 |
+
SFSI("#sfsi_banner_global_shares").on("click", function () {
|
2194 |
+
sfsi_banner_global_shares_save();
|
2195 |
+
}),
|
2196 |
+
SFSI("#sfsi_banner_global_gdpr").on("click", function () {
|
2197 |
+
sfsi_banner_global_gdpr_save();
|
2198 |
+
}),
|
2199 |
+
SFSI("#sfsi_banner_global_http").on("click", function () {
|
2200 |
+
sfsi_banner_global_http_save();
|
2201 |
+
}),
|
2202 |
+
SFSI("#sfsi_banner_global_upgrade").on("click", function () {
|
2203 |
+
sfsi_banner_global_upgrade_save();
|
2204 |
+
}),
|
2205 |
SFSI("#save_all_settings").on("click", function () {
|
2206 |
return SFSI("#save_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
|
2207 |
sfsi_update_step1(), sfsi_update_step8(), 1 == global_error ? (showErrorSuc("error", 'Some Selection error in "Which icons do you want to show on your site?" tab.', 8),
|
2662 |
}
|
2663 |
|
2664 |
if (!error) {
|
2665 |
+
|
2666 |
+
SFSI(this).css("pointer-events", "none");
|
2667 |
// console.log("feedid",feedid);
|
2668 |
if (feedid == "" || undefined == feedid) {
|
2669 |
var nonce = SFSI(this).attr('data-nonce-fetch-feed-id');
|
2684 |
if ("success" == s.res) {
|
2685 |
var feedid = s.feed_id;
|
2686 |
if (feedid == "" || null == feedid) {
|
2687 |
+
alert("Error: Claiming didn't work. Please try again later.");
|
2688 |
+
SFSI(".sfsi_getMeFullAccess_class").css("pointer-events", "initial");
|
2689 |
+
|
2690 |
+
|
2691 |
} else {
|
2692 |
jQuery('#calimingOptimizationForm input[name="feed_id"]').val(feedid);
|
2693 |
// console.log("feedid",feedid,SFSI("#calimingOptimizationForm input[name='feed_id']"),SFSI('#calimingOptimizationForm input[name="feedid"]').val());
|
2694 |
SFSI('#calimingOptimizationForm').submit();
|
2695 |
+
SFSI(".sfsi_getMeFullAccess_class").css("pointer-events", "initial");
|
2696 |
+
|
2697 |
+
|
2698 |
}
|
2699 |
} else {
|
2700 |
if ("failed" == s.res) {
|
2701 |
alert("Error: " + s.message + ".");
|
2702 |
+
SFSI(".sfsi_getMeFullAccess_class").css("pointer-events", "initial");
|
2703 |
+
|
2704 |
+
|
2705 |
|
2706 |
} else {
|
2707 |
alert("Error: Please try again.");
|
2708 |
+
SFSI(".sfsi_getMeFullAccess_class").css("pointer-events", "initial");
|
2709 |
+
|
2710 |
+
|
2711 |
}
|
2712 |
}
|
2713 |
}
|
2777 |
SFSI(ref).parent(".enough_waffling").next(".cstmutbtxtwpr").children(".cstmutbchnlnmewpr").slideUp();
|
2778 |
}
|
2779 |
}
|
2780 |
+
|
2781 |
function checkforinfoslction(ref) {
|
2782 |
var pos = jQuery(ref).children(".checkbox").css("background-position");
|
2783 |
|
2796 |
|
2797 |
function checkforinfoslction_checkbox(ref) {
|
2798 |
|
2799 |
+
console.log(ref)
|
2800 |
var pos = jQuery(ref).children(".checkbox").css("background-position");
|
2801 |
|
2802 |
var elem = jQuery(ref).parent().children('.sfsi_right_info').find('.kckslctn');
|
3488 |
nonce: nonce
|
3489 |
};
|
3490 |
console.log(data);
|
3491 |
+
SFSI.ajax({
|
3492 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3493 |
+
type: "post",
|
3494 |
+
data: data,
|
3495 |
+
success: function (s) {
|
3496 |
+
console.log(s);
|
3497 |
+
if (s == "wrong_nonce") {
|
3498 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3499 |
+
global_error = 1;
|
3500 |
+
} else {
|
3501 |
+
console.log(s);
|
3502 |
+
}
|
3503 |
+
}
|
3504 |
+
});
|
3505 |
+
}
|
3506 |
+
|
3507 |
+
function sfsi_currentDate_save(){
|
3508 |
+
var nonce = SFSI("#sfsi_currentDate").attr("data-nonce");
|
3509 |
+
console.log(nonce);
|
3510 |
+
var sfsi_currentDate = SFSI("input[name='sfsi_currentDate']").val();
|
3511 |
+
var data = {
|
3512 |
+
action: "sfsi_currentDate",
|
3513 |
+
sfsi_currentDate:sfsi_currentDate,
|
3514 |
+
nonce: nonce
|
3515 |
+
};
|
3516 |
+
console.log(data);
|
3517 |
+
SFSI.ajax({
|
3518 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3519 |
+
type: "post",
|
3520 |
+
data: data,
|
3521 |
+
success: function (s) {
|
3522 |
+
console.log(s);
|
3523 |
+
if (s == "wrong_nonce") {
|
3524 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3525 |
+
global_error = 1;
|
3526 |
+
} else {
|
3527 |
+
console.log(s);
|
3528 |
+
}
|
3529 |
+
}
|
3530 |
+
});
|
3531 |
+
}
|
3532 |
+
|
3533 |
+
function sfsi_showNextBannerDate_save(){
|
3534 |
+
var nonce = SFSI("#sfsi_showNextBannerDate").attr("data-nonce");
|
3535 |
+
console.log(nonce);
|
3536 |
+
var sfsi_showNextBannerDate = SFSI("input[name='sfsi_showNextBannerDate']").val();
|
3537 |
+
var data = {
|
3538 |
+
action: "sfsi_showNextBannerDate",
|
3539 |
+
sfsi_showNextBannerDate:sfsi_showNextBannerDate,
|
3540 |
+
nonce: nonce
|
3541 |
+
};
|
3542 |
+
console.log(data);
|
3543 |
+
SFSI.ajax({
|
3544 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3545 |
+
type: "post",
|
3546 |
+
data: data,
|
3547 |
+
success: function (s) {
|
3548 |
+
console.log(s);
|
3549 |
+
if (s == "wrong_nonce") {
|
3550 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3551 |
+
global_error = 1;
|
3552 |
+
} else {
|
3553 |
+
console.log(s);
|
3554 |
+
}
|
3555 |
+
}
|
3556 |
+
});
|
3557 |
+
}
|
3558 |
+
|
3559 |
+
function sfsi_cycleDate_save(){
|
3560 |
+
var nonce = SFSI("#sfsi_cycleDate").attr("data-nonce");
|
3561 |
+
console.log(nonce);
|
3562 |
+
var sfsi_cycleDate = SFSI("input[name='sfsi_cycleDate']").val();
|
3563 |
+
var data = {
|
3564 |
+
action: "sfsi_cycleDate",
|
3565 |
+
sfsi_cycleDate:sfsi_cycleDate,
|
3566 |
+
nonce: nonce
|
3567 |
+
};
|
3568 |
+
console.log(data);
|
3569 |
+
SFSI.ajax({
|
3570 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3571 |
+
type: "post",
|
3572 |
+
data: data,
|
3573 |
+
success: function (s) {
|
3574 |
+
console.log(s);
|
3575 |
+
if (s == "wrong_nonce") {
|
3576 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3577 |
+
global_error = 1;
|
3578 |
+
} else {
|
3579 |
+
console.log(s);
|
3580 |
+
}
|
3581 |
+
}
|
3582 |
+
});
|
3583 |
+
}
|
3584 |
+
|
3585 |
+
function sfsi_loyaltyDate_save(){
|
3586 |
+
var nonce = SFSI("#sfsi_loyaltyDate").attr("data-nonce");
|
3587 |
+
console.log(nonce);
|
3588 |
+
var sfsi_loyaltyDate = SFSI("input[name='sfsi_loyaltyDate']").val();
|
3589 |
+
var data = {
|
3590 |
+
action: "sfsi_loyaltyDate",
|
3591 |
+
sfsi_loyaltyDate:sfsi_loyaltyDate,
|
3592 |
+
nonce: nonce
|
3593 |
+
};
|
3594 |
+
console.log(data);
|
3595 |
+
SFSI.ajax({
|
3596 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3597 |
+
type: "post",
|
3598 |
+
data: data,
|
3599 |
+
success: function (s) {
|
3600 |
+
console.log(s);
|
3601 |
+
if (s == "wrong_nonce") {
|
3602 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3603 |
+
global_error = 1;
|
3604 |
+
} else {
|
3605 |
+
console.log(s);
|
3606 |
+
}
|
3607 |
+
}
|
3608 |
+
});
|
3609 |
+
}
|
3610 |
+
|
3611 |
+
|
3612 |
+
function sfsi_banner_global_firsttime_offer_save(){
|
3613 |
+
var nonce = SFSI("#sfsi_banner_global_firsttime_offer").attr("data-nonce");
|
3614 |
+
console.log(nonce);
|
3615 |
+
var sfsi_banner_global_firsttime_offer = SFSI("input[name='sfsi_banner_global_firsttime_offer']").val();
|
3616 |
+
var data = {
|
3617 |
+
action: "sfsi_banner_global_firsttime_offer",
|
3618 |
+
sfsi_banner_global_firsttime_offer:sfsi_banner_global_firsttime_offer,
|
3619 |
+
nonce: nonce
|
3620 |
+
};
|
3621 |
+
console.log(data);
|
3622 |
+
SFSI.ajax({
|
3623 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3624 |
+
type: "post",
|
3625 |
+
data: data,
|
3626 |
+
success: function (s) {
|
3627 |
+
console.log(s);
|
3628 |
+
if (s == "wrong_nonce") {
|
3629 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3630 |
+
global_error = 1;
|
3631 |
+
} else {
|
3632 |
+
console.log(s);
|
3633 |
+
}
|
3634 |
+
}
|
3635 |
+
});
|
3636 |
+
}
|
3637 |
+
|
3638 |
+
|
3639 |
+
function sfsi_banner_global_pinterest_save(){
|
3640 |
+
var nonce = SFSI("#sfsi_banner_global_pinterest").attr("data-nonce");
|
3641 |
+
console.log(nonce);
|
3642 |
+
var sfsi_banner_global_pinterest = SFSI("input[name='sfsi_banner_global_pinterest']").val();
|
3643 |
+
var data = {
|
3644 |
+
action: "sfsi_banner_global_pinterest",
|
3645 |
+
sfsi_banner_global_pinterest:sfsi_banner_global_pinterest,
|
3646 |
+
nonce: nonce
|
3647 |
+
};
|
3648 |
+
console.log(data);
|
3649 |
+
SFSI.ajax({
|
3650 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3651 |
+
type: "post",
|
3652 |
+
data: data,
|
3653 |
+
success: function (s) {
|
3654 |
+
console.log(s);
|
3655 |
+
if (s == "wrong_nonce") {
|
3656 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3657 |
+
global_error = 1;
|
3658 |
+
} else {
|
3659 |
+
console.log(s);
|
3660 |
+
}
|
3661 |
+
}
|
3662 |
+
});
|
3663 |
+
}
|
3664 |
+
|
3665 |
+
|
3666 |
+
function sfsi_banner_global_social_save(){
|
3667 |
+
var nonce = SFSI("#sfsi_banner_global_social").attr("data-nonce");
|
3668 |
+
console.log(nonce);
|
3669 |
+
var sfsi_banner_global_social = SFSI("input[name='sfsi_banner_global_social']").val();
|
3670 |
+
var data = {
|
3671 |
+
action: "sfsi_banner_global_social",
|
3672 |
+
sfsi_banner_global_social:sfsi_banner_global_social,
|
3673 |
+
nonce: nonce
|
3674 |
+
};
|
3675 |
+
console.log(data);
|
3676 |
+
SFSI.ajax({
|
3677 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3678 |
+
type: "post",
|
3679 |
+
data: data,
|
3680 |
+
success: function (s) {
|
3681 |
+
console.log(s);
|
3682 |
+
if (s == "wrong_nonce") {
|
3683 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3684 |
+
global_error = 1;
|
3685 |
+
} else {
|
3686 |
+
console.log(s);
|
3687 |
+
}
|
3688 |
+
}
|
3689 |
+
});
|
3690 |
+
}
|
3691 |
+
|
3692 |
+
|
3693 |
+
function sfsi_banner_global_load_faster_save(){
|
3694 |
+
var nonce = SFSI("#sfsi_banner_global_load_faster").attr("data-nonce");
|
3695 |
+
console.log(nonce);
|
3696 |
+
var sfsi_banner_global_load_faster = SFSI("input[name='sfsi_banner_global_load_faster']").val();
|
3697 |
+
var data = {
|
3698 |
+
action: "sfsi_banner_global_load_faster",
|
3699 |
+
sfsi_banner_global_load_faster:sfsi_banner_global_load_faster,
|
3700 |
+
nonce: nonce
|
3701 |
+
};
|
3702 |
+
console.log(data);
|
3703 |
+
SFSI.ajax({
|
3704 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3705 |
+
type: "post",
|
3706 |
+
data: data,
|
3707 |
+
success: function (s) {
|
3708 |
+
console.log(s);
|
3709 |
+
if (s == "wrong_nonce") {
|
3710 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3711 |
+
global_error = 1;
|
3712 |
+
} else {
|
3713 |
+
console.log(s);
|
3714 |
+
}
|
3715 |
+
}
|
3716 |
+
});
|
3717 |
+
}
|
3718 |
+
|
3719 |
+
|
3720 |
+
function sfsi_banner_global_shares_save(){
|
3721 |
+
var nonce = SFSI("#sfsi_banner_global_shares").attr("data-nonce");
|
3722 |
+
console.log(nonce);
|
3723 |
+
var sfsi_banner_global_shares = SFSI("input[name='sfsi_banner_global_shares']").val();
|
3724 |
+
var data = {
|
3725 |
+
action: "sfsi_banner_global_shares",
|
3726 |
+
sfsi_banner_global_shares:sfsi_banner_global_shares,
|
3727 |
+
nonce: nonce
|
3728 |
+
};
|
3729 |
+
console.log(data);
|
3730 |
+
SFSI.ajax({
|
3731 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3732 |
+
type: "post",
|
3733 |
+
data: data,
|
3734 |
+
success: function (s) {
|
3735 |
+
console.log(s);
|
3736 |
+
if (s == "wrong_nonce") {
|
3737 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3738 |
+
global_error = 1;
|
3739 |
+
} else {
|
3740 |
+
console.log(s);
|
3741 |
+
}
|
3742 |
+
}
|
3743 |
+
});
|
3744 |
+
}
|
3745 |
+
|
3746 |
+
|
3747 |
+
function sfsi_banner_global_gdpr_save(){
|
3748 |
+
var nonce = SFSI("#sfsi_banner_global_gdpr").attr("data-nonce");
|
3749 |
+
console.log(nonce);
|
3750 |
+
var sfsi_banner_global_gdpr = SFSI("input[name='sfsi_banner_global_gdpr']").val();
|
3751 |
+
var data = {
|
3752 |
+
action: "sfsi_banner_global_gdpr",
|
3753 |
+
sfsi_banner_global_gdpr:sfsi_banner_global_gdpr,
|
3754 |
+
nonce: nonce
|
3755 |
+
};
|
3756 |
+
console.log(data);
|
3757 |
+
SFSI.ajax({
|
3758 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3759 |
+
type: "post",
|
3760 |
+
data: data,
|
3761 |
+
success: function (s) {
|
3762 |
+
console.log(s);
|
3763 |
+
if (s == "wrong_nonce") {
|
3764 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3765 |
+
global_error = 1;
|
3766 |
+
} else {
|
3767 |
+
console.log(s);
|
3768 |
+
}
|
3769 |
+
}
|
3770 |
+
});
|
3771 |
+
}
|
3772 |
+
|
3773 |
+
|
3774 |
+
function sfsi_banner_global_http_save(){
|
3775 |
+
var nonce = SFSI("#sfsi_banner_global_http").attr("data-nonce");
|
3776 |
+
console.log(nonce);
|
3777 |
+
var sfsi_banner_global_http = SFSI("input[name='sfsi_banner_global_http']").val();
|
3778 |
+
var data = {
|
3779 |
+
action: "sfsi_banner_global_http",
|
3780 |
+
sfsi_banner_global_http:sfsi_banner_global_http,
|
3781 |
+
nonce: nonce
|
3782 |
+
};
|
3783 |
+
console.log(data);
|
3784 |
+
SFSI.ajax({
|
3785 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3786 |
+
type: "post",
|
3787 |
+
data: data,
|
3788 |
+
success: function (s) {
|
3789 |
+
console.log(s);
|
3790 |
+
if (s == "wrong_nonce") {
|
3791 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3792 |
+
global_error = 1;
|
3793 |
+
} else {
|
3794 |
+
console.log(s);
|
3795 |
+
}
|
3796 |
+
}
|
3797 |
+
});
|
3798 |
+
}
|
3799 |
+
|
3800 |
+
|
3801 |
+
function sfsi_banner_global_upgrade_save(){
|
3802 |
+
var nonce = SFSI("#sfsi_banner_global_upgrade").attr("data-nonce");
|
3803 |
+
console.log(nonce);
|
3804 |
+
var sfsi_banner_global_upgrade = SFSI("input[name='sfsi_banner_global_upgrade']").val();
|
3805 |
+
var data = {
|
3806 |
+
action: "sfsi_banner_global_upgrade",
|
3807 |
+
sfsi_banner_global_upgrade:sfsi_banner_global_upgrade,
|
3808 |
+
nonce: nonce
|
3809 |
+
};
|
3810 |
+
console.log(data);
|
3811 |
+
SFSI.ajax({
|
3812 |
+
url: sfsi_icon_ajax_object.ajax_url,
|
3813 |
+
type: "post",
|
3814 |
+
data: data,
|
3815 |
+
success: function (s) {
|
3816 |
+
console.log(s);
|
3817 |
+
if (s == "wrong_nonce") {
|
3818 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 6);
|
3819 |
+
global_error = 1;
|
3820 |
+
} else {
|
3821 |
+
console.log(s);
|
3822 |
+
}
|
3823 |
+
}
|
3824 |
+
});
|
3825 |
+
}
|
3826 |
+
|
libs/controllers/sfsi_buttons_controller.php
CHANGED
@@ -411,10 +411,6 @@ function sfsi_options_updater4()
|
|
411 |
'sfsi_round_counts' => sanitize_text_field($sfsi_round_counts),
|
412 |
'sfsi_original_counts' => sanitize_text_field($sfsi_original_counts),
|
413 |
'sfsi_responsive_share_count' => sanitize_text_field($sfsi_responsive_share_count),
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
);
|
419 |
update_option('sfsi_section4_options', serialize($up_option4));
|
420 |
$new_counts = sfsi_getCounts();
|
@@ -1178,7 +1174,13 @@ function sfsi_bannerOption()
|
|
1178 |
|
1179 |
$objThemeCheck->sfsi_plus_bannereHtml(
|
1180 |
$themeDataObj->headline,
|
1181 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
1182 |
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1183 |
$themeDataObj->bottomtext
|
1184 |
);
|
@@ -1205,7 +1207,13 @@ function sfsi_bannerOption()
|
|
1205 |
|
1206 |
$objThemeCheck->sfsi_plus_bannereHtml(
|
1207 |
$themeDataObj->headline,
|
1208 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
1209 |
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1210 |
$themeDataObj->bottomtext
|
1211 |
);
|
@@ -1232,7 +1240,13 @@ function sfsi_bannerOption()
|
|
1232 |
|
1233 |
$objThemeCheck->sfsi_plus_bannereHtml(
|
1234 |
$themeDataObj->headline,
|
1235 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
1236 |
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1237 |
$themeDataObj->bottomtext
|
1238 |
);
|
@@ -1259,7 +1273,13 @@ function sfsi_bannerOption()
|
|
1259 |
|
1260 |
$objThemeCheck->sfsi_plus_bannereHtml(
|
1261 |
$themeDataObj->headline,
|
1262 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
1263 |
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1264 |
$themeDataObj->bottomtext
|
1265 |
);
|
@@ -1422,3 +1442,128 @@ function sfsi_installDate()
|
|
1422 |
echo json_encode(array("success"));
|
1423 |
exit;
|
1424 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
411 |
'sfsi_round_counts' => sanitize_text_field($sfsi_round_counts),
|
412 |
'sfsi_original_counts' => sanitize_text_field($sfsi_original_counts),
|
413 |
'sfsi_responsive_share_count' => sanitize_text_field($sfsi_responsive_share_count),
|
|
|
|
|
|
|
|
|
414 |
);
|
415 |
update_option('sfsi_section4_options', serialize($up_option4));
|
416 |
$new_counts = sfsi_getCounts();
|
1174 |
|
1175 |
$objThemeCheck->sfsi_plus_bannereHtml(
|
1176 |
$themeDataObj->headline,
|
1177 |
+
$themeName,
|
1178 |
+
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1179 |
+
$themeDataObj->bottomtext
|
1180 |
+
);
|
1181 |
+
$objThemeCheck->sfsi_plus_bannereHtml_main(
|
1182 |
+
$themeDataObj->headline,
|
1183 |
+
$themeName,
|
1184 |
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1185 |
$themeDataObj->bottomtext
|
1186 |
);
|
1207 |
|
1208 |
$objThemeCheck->sfsi_plus_bannereHtml(
|
1209 |
$themeDataObj->headline,
|
1210 |
+
$themeName,
|
1211 |
+
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1212 |
+
$themeDataObj->bottomtext
|
1213 |
+
);
|
1214 |
+
$objThemeCheck->sfsi_plus_bannereHtml_main(
|
1215 |
+
$themeDataObj->headline,
|
1216 |
+
$themeName,
|
1217 |
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1218 |
$themeDataObj->bottomtext
|
1219 |
);
|
1240 |
|
1241 |
$objThemeCheck->sfsi_plus_bannereHtml(
|
1242 |
$themeDataObj->headline,
|
1243 |
+
$themeName,
|
1244 |
+
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1245 |
+
$themeDataObj->bottomtext
|
1246 |
+
);
|
1247 |
+
$objThemeCheck->sfsi_plus_bannereHtml_main(
|
1248 |
+
$themeDataObj->headline,
|
1249 |
+
$themeName,
|
1250 |
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1251 |
$themeDataObj->bottomtext
|
1252 |
);
|
1273 |
|
1274 |
$objThemeCheck->sfsi_plus_bannereHtml(
|
1275 |
$themeDataObj->headline,
|
1276 |
+
$themeName,
|
1277 |
+
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1278 |
+
$themeDataObj->bottomtext
|
1279 |
+
);
|
1280 |
+
$objThemeCheck->sfsi_plus_bannereHtml_main(
|
1281 |
+
$themeDataObj->headline,
|
1282 |
+
$themeName,
|
1283 |
SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
|
1284 |
$themeDataObj->bottomtext
|
1285 |
);
|
1442 |
echo json_encode(array("success"));
|
1443 |
exit;
|
1444 |
}
|
1445 |
+
|
1446 |
+
add_action('wp_ajax_sfsi_currentDate', 'sfsi_currentDate');
|
1447 |
+
function sfsi_currentDate()
|
1448 |
+
{
|
1449 |
+
$sfsi_currentDate_value = isset($_POST["sfsi_currentDate"]) ? $_POST["sfsi_currentDate"] : '';
|
1450 |
+
update_option('sfsi_currentDate', $sfsi_currentDate_value);
|
1451 |
+
echo json_encode(array("success"));
|
1452 |
+
exit;
|
1453 |
+
}
|
1454 |
+
|
1455 |
+
add_action('wp_ajax_sfsi_showNextBannerDate', 'sfsi_showNextBannerDate');
|
1456 |
+
function sfsi_showNextBannerDate()
|
1457 |
+
{
|
1458 |
+
$sfsi_showNextBannerDate_value = isset($_POST["sfsi_showNextBannerDate"]) ? $_POST["sfsi_showNextBannerDate"] : '';
|
1459 |
+
update_option('sfsi_showNextBannerDate', $sfsi_showNextBannerDate_value);
|
1460 |
+
echo json_encode(array("success"));
|
1461 |
+
exit;
|
1462 |
+
}
|
1463 |
+
|
1464 |
+
add_action('wp_ajax_sfsi_cycleDate', 'sfsi_cycleDate');
|
1465 |
+
function sfsi_cycleDate()
|
1466 |
+
{
|
1467 |
+
$sfsi_cycleDate_value = isset($_POST["sfsi_cycleDate"]) ? $_POST["sfsi_cycleDate"] : '';
|
1468 |
+
update_option('sfsi_cycleDate', $sfsi_cycleDate_value);
|
1469 |
+
echo json_encode(array("success"));
|
1470 |
+
exit;
|
1471 |
+
}
|
1472 |
+
|
1473 |
+
add_action('wp_ajax_sfsi_loyaltyDate', 'sfsi_loyaltyDate');
|
1474 |
+
function sfsi_loyaltyDate()
|
1475 |
+
{
|
1476 |
+
$sfsi_loyaltyDate_value = isset($_POST["sfsi_loyaltyDate"]) ? $_POST["sfsi_loyaltyDate"] : '';
|
1477 |
+
update_option('sfsi_loyaltyDate', $sfsi_loyaltyDate_value);
|
1478 |
+
echo json_encode(array("success"));
|
1479 |
+
exit;
|
1480 |
+
}
|
1481 |
+
|
1482 |
+
add_action('wp_ajax_sfsi_banner_global_pinterest', 'sfsi_banner_global_pinterest');
|
1483 |
+
function sfsi_banner_global_pinterest()
|
1484 |
+
{
|
1485 |
+
$sfsi_banner_global_pinterest_value = isset($_POST["sfsi_banner_global_pinterest"]) ? $_POST["sfsi_banner_global_pinterest"] : '';
|
1486 |
+
$sfsi_banner_global_pinterest = unserialize(get_option('sfsi_banner_global_pinterest', false));
|
1487 |
+
$sfsi_banner_global_pinterest['timestamp'] = $sfsi_banner_global_pinterest_value;
|
1488 |
+
update_option('sfsi_banner_global_pinterest', serialize($sfsi_banner_global_pinterest));
|
1489 |
+
echo json_encode(array("success"));
|
1490 |
+
exit;
|
1491 |
+
}
|
1492 |
+
|
1493 |
+
add_action('wp_ajax_sfsi_banner_global_firsttime_offer', 'sfsi_banner_global_firsttime_offer');
|
1494 |
+
function sfsi_banner_global_firsttime_offer()
|
1495 |
+
{
|
1496 |
+
$sfsi_banner_global_firsttime_offer_value = isset($_POST["sfsi_banner_global_firsttime_offer"]) ? $_POST["sfsi_banner_global_firsttime_offer"] : '';
|
1497 |
+
$sfsi_banner_global_firsttime_offer = unserialize(get_option('sfsi_banner_global_firsttime_offer', false));
|
1498 |
+
$sfsi_banner_global_firsttime_offer['timestamp'] = $sfsi_banner_global_firsttime_offer_value;
|
1499 |
+
update_option('sfsi_banner_global_firsttime_offer', serialize($sfsi_banner_global_firsttime_offer));
|
1500 |
+
echo json_encode(array("success"));
|
1501 |
+
exit;
|
1502 |
+
}
|
1503 |
+
|
1504 |
+
add_action('wp_ajax_sfsi_banner_global_social', 'sfsi_banner_global_social');
|
1505 |
+
function sfsi_banner_global_social()
|
1506 |
+
{
|
1507 |
+
$sfsi_banner_global_social_value = isset($_POST["sfsi_banner_global_social"]) ? $_POST["sfsi_banner_global_social"] : '';
|
1508 |
+
$sfsi_banner_global_social = unserialize(get_option('sfsi_banner_global_social', false));
|
1509 |
+
$sfsi_banner_global_social['timestamp'] = $sfsi_banner_global_social_value;
|
1510 |
+
update_option('sfsi_banner_global_social', serialize($sfsi_banner_global_social));
|
1511 |
+
echo json_encode(array("success"));
|
1512 |
+
exit;
|
1513 |
+
}
|
1514 |
+
|
1515 |
+
add_action('wp_ajax_sfsi_banner_global_load_faster', 'sfsi_banner_global_load_faster');
|
1516 |
+
function sfsi_banner_global_load_faster()
|
1517 |
+
{
|
1518 |
+
$sfsi_banner_global_load_faster_value = isset($_POST["sfsi_banner_global_load_faster"]) ? $_POST["sfsi_banner_global_load_faster"] : '';
|
1519 |
+
$sfsi_banner_global_load_faster = unserialize(get_option('sfsi_banner_global_load_faster', false));
|
1520 |
+
$sfsi_banner_global_load_faster['timestamp'] = $sfsi_banner_global_load_faster_value;
|
1521 |
+
update_option('sfsi_banner_global_load_faster', serialize($sfsi_banner_global_load_faster));
|
1522 |
+
echo json_encode(array("success"));
|
1523 |
+
exit;
|
1524 |
+
}
|
1525 |
+
|
1526 |
+
add_action('wp_ajax_sfsi_banner_global_shares', 'sfsi_banner_global_shares');
|
1527 |
+
function sfsi_banner_global_shares()
|
1528 |
+
{
|
1529 |
+
$sfsi_banner_global_shares_value = isset($_POST["sfsi_banner_global_shares"]) ? $_POST["sfsi_banner_global_shares"] : '';
|
1530 |
+
$sfsi_banner_global_shares = unserialize(get_option('sfsi_banner_global_shares', false));
|
1531 |
+
$sfsi_banner_global_shares['timestamp'] = $sfsi_banner_global_shares_value;
|
1532 |
+
update_option('sfsi_banner_global_shares', serialize($sfsi_banner_global_shares));
|
1533 |
+
echo json_encode(array("success"));
|
1534 |
+
exit;
|
1535 |
+
}
|
1536 |
+
|
1537 |
+
|
1538 |
+
add_action('wp_ajax_sfsi_banner_global_gdpr', 'sfsi_banner_global_gdpr');
|
1539 |
+
function sfsi_banner_global_gdpr()
|
1540 |
+
{
|
1541 |
+
$sfsi_banner_global_gdpr_value = isset($_POST["sfsi_banner_global_gdpr"]) ? $_POST["sfsi_banner_global_gdpr"] : '';
|
1542 |
+
$sfsi_banner_global_gdpr = unserialize(get_option('sfsi_banner_global_gdpr', false));
|
1543 |
+
$sfsi_banner_global_gdpr['timestamp'] = $sfsi_banner_global_gdpr_value;
|
1544 |
+
update_option('sfsi_banner_global_gdpr', serialize($sfsi_banner_global_gdpr));
|
1545 |
+
echo json_encode(array("success"));
|
1546 |
+
exit;
|
1547 |
+
}
|
1548 |
+
|
1549 |
+
add_action('wp_ajax_sfsi_banner_global_http', 'sfsi_banner_global_http');
|
1550 |
+
function sfsi_banner_global_http()
|
1551 |
+
{
|
1552 |
+
$sfsi_banner_global_http_value = isset($_POST["sfsi_banner_global_http"]) ? $_POST["sfsi_banner_global_http"] : '';
|
1553 |
+
$sfsi_banner_global_http = unserialize(get_option('sfsi_banner_global_http', false));
|
1554 |
+
$sfsi_banner_global_http['timestamp'] = $sfsi_banner_global_http_value;
|
1555 |
+
update_option('sfsi_banner_global_http', serialize($sfsi_banner_global_http));
|
1556 |
+
echo json_encode(array("success"));
|
1557 |
+
exit;
|
1558 |
+
}
|
1559 |
+
|
1560 |
+
add_action('wp_ajax_sfsi_banner_global_upgrade', 'sfsi_banner_global_upgrade');
|
1561 |
+
function sfsi_banner_global_upgrade()
|
1562 |
+
{
|
1563 |
+
$sfsi_banner_global_upgrade_value = isset($_POST["sfsi_banner_global_upgrade"]) ? $_POST["sfsi_banner_global_upgrade"] : '';
|
1564 |
+
$sfsi_banner_global_upgrade = unserialize(get_option('sfsi_banner_global_upgrade', false));
|
1565 |
+
$sfsi_banner_global_upgrade['timestamp'] = $sfsi_banner_global_upgrade_value;
|
1566 |
+
update_option('sfsi_banner_global_upgrade', serialize($sfsi_banner_global_upgrade));
|
1567 |
+
echo json_encode(array("success"));
|
1568 |
+
exit;
|
1569 |
+
}
|
libs/controllers/sfsi_class_theme_check.php
CHANGED
@@ -511,7 +511,16 @@ class sfsi_ThemeCheck
|
|
511 |
return ($flag)? $strCheckForThemeType:$flag;
|
512 |
}
|
513 |
|
514 |
-
public function
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
515 |
{
|
516 |
echo '<div class="sfsi_new_notification_cat">
|
517 |
<div class="sfsi_new_notification_header_cat">
|
@@ -535,6 +544,8 @@ class sfsi_ThemeCheck
|
|
535 |
</div>
|
536 |
</div>
|
537 |
</div>';
|
538 |
-
}
|
|
|
|
|
539 |
}
|
540 |
?>
|
511 |
return ($flag)? $strCheckForThemeType:$flag;
|
512 |
}
|
513 |
|
514 |
+
public function sfsi_plus_bannereHtml_main($title, $siteLink, $bannerImage, $buttonTitle)
|
515 |
+
{
|
516 |
+
echo '<script type="text/javascript">
|
517 |
+
SFSI(".sfsi_webtheme").show();
|
518 |
+
SFSI(".icns_tab_3.sfsi_premium_ad span ").css("background-image", \'url('.$bannerImage.')\');
|
519 |
+
SFSI(".sfsi_premium_ad_lable").text(\''.$siteLink.'\');
|
520 |
+
</script>';
|
521 |
+
}
|
522 |
+
|
523 |
+
public function sfsi_plus_bannereHtml($title, $siteLink, $bannerImage, $buttonTitle)
|
524 |
{
|
525 |
echo '<div class="sfsi_new_notification_cat">
|
526 |
<div class="sfsi_new_notification_header_cat">
|
544 |
</div>
|
545 |
</div>
|
546 |
</div>';
|
547 |
+
}
|
548 |
+
|
549 |
+
|
550 |
}
|
551 |
?>
|
libs/controllers/sfsi_socialhelper.php
CHANGED
@@ -45,14 +45,26 @@ class sfsi_SocialHelper
|
|
45 |
}
|
46 |
|
47 |
/* get facebook likes */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
48 |
function sfsi_get_fb($url)
|
49 |
{
|
50 |
$count = 0;
|
51 |
-
$
|
|
|
|
|
52 |
$json = json_decode($json_string);
|
53 |
-
|
54 |
-
|
55 |
-
$count = $json->share->share_count;
|
56 |
}
|
57 |
return $count;
|
58 |
}
|
@@ -79,11 +91,11 @@ class sfsi_SocialHelper
|
|
79 |
!empty($sfsi_section4_options['sfsi_youtube_channelId'])
|
80 |
) ? $sfsi_section4_options['sfsi_youtube_channelId'] : 'UCYQyWnJPrY4XY3Avc7BU9aA';
|
81 |
|
82 |
-
$xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&id='.$user.'&key=
|
83 |
}
|
84 |
else
|
85 |
{
|
86 |
-
$xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername='.$user.'&key=
|
87 |
}
|
88 |
|
89 |
if($xmlData)
|
45 |
}
|
46 |
|
47 |
/* get facebook likes */
|
48 |
+
// function sfsi_get_fb($url)
|
49 |
+
// {
|
50 |
+
// $count = 0;
|
51 |
+
// $json_string = $this->file_get_contents_curl('https://graph.facebook.com/?id='.$url);
|
52 |
+
// $json = json_decode($json_string);
|
53 |
+
|
54 |
+
// if(isset($json) && isset($json->share) && isset($json->share->share_count)){
|
55 |
+
// $count = $json->share->share_count;
|
56 |
+
// }
|
57 |
+
// return $count;
|
58 |
+
// }
|
59 |
function sfsi_get_fb($url)
|
60 |
{
|
61 |
$count = 0;
|
62 |
+
$appid = '959456867427268';
|
63 |
+
$appsecret = '7cc27f382c47fd5cc3a7203e40d70bf1';
|
64 |
+
$json_string = $this->file_get_contents_curl('https://graph.facebook.com/?id='.$url."&fields=engagement&access_token=".$appid.'|'.$appsecret);
|
65 |
$json = json_decode($json_string);
|
66 |
+
if(isset($json) && isset($json->engagement)){
|
67 |
+
$count = $json->engagement->share_count + $json->engagement->reaction_count + $json->engagement->comment_count + $json->engagement->comment_plugin_count;
|
|
|
68 |
}
|
69 |
return $count;
|
70 |
}
|
91 |
!empty($sfsi_section4_options['sfsi_youtube_channelId'])
|
92 |
) ? $sfsi_section4_options['sfsi_youtube_channelId'] : 'UCYQyWnJPrY4XY3Avc7BU9aA';
|
93 |
|
94 |
+
$xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&id='.$user.'&key=AIzaSyB_XMi9MwNweEYyt7c122CidZxqGZqex6Y');
|
95 |
}
|
96 |
else
|
97 |
{
|
98 |
+
$xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername='.$user.'&key=AIzaSyB_XMi9MwNweEYyt7c122CidZxqGZqex6Y');
|
99 |
}
|
100 |
|
101 |
if($xmlData)
|
libs/controllers/sfsiocns_OnPosts.php
CHANGED
@@ -10,8 +10,8 @@ function sfsi_social_buttons_below($content)
|
|
10 |
// if($sfsi_section9["sfsi_show_via_afterposts"]!=="yes"){
|
11 |
// return $content;
|
12 |
// }
|
13 |
-
if($sfsi_section6["sfsi_display_button_type"]=="responsive_button"){
|
14 |
-
if(is_single() && $sfsi_section6["sfsi_responsive_icons_end_post"]=="yes"){
|
15 |
$content = $content . sfsi_social_responsive_buttons(null, $sfsi_section6);
|
16 |
}
|
17 |
} else {
|
@@ -38,11 +38,11 @@ function sfsi_social_buttons_below($content)
|
|
38 |
|
39 |
/* check if option activated in admin or not */
|
40 |
if ($sfsi_section6['sfsi_show_Onposts'] == "yes") {
|
41 |
-
$permalink = add_query_arg($_GET
|
42 |
$title = get_the_title();
|
43 |
$sfsiLikeWith = "45px;";
|
44 |
/* check for counter display */
|
45 |
-
if ($sfsi_section4['sfsi_display_counts'] == "yes"
|
46 |
$show_count = 1;
|
47 |
$sfsiLikeWith = "125px;";
|
48 |
} else {
|
@@ -58,7 +58,7 @@ function sfsi_social_buttons_below($content)
|
|
58 |
//adding wrapper div
|
59 |
$icons .= "<div class='sfsi_socialwpr'>";
|
60 |
if ($sfsi_section6['sfsi_rectsub'] == 'yes' && $sfsi_section6['sfsi_show_Onposts'] == "yes") {
|
61 |
-
|
62 |
$icons .= "<div class='sf_subscrbe sf_icon' style='text-align:left;vertical-align: middle;float:left;width:auto'>" . sfsi_Subscribelike($permalink, $show_count) . "</div>";
|
63 |
}
|
64 |
if ($sfsi_section6['sfsi_show_Onposts'] == "yes" && $sfsi_section6['sfsi_rectfb'] == 'yes') {
|
@@ -68,10 +68,10 @@ function sfsi_social_buttons_below($content)
|
|
68 |
if ($sfsi_section6['sfsi_show_Onposts'] == "yes" && $sfsi_section6['sfsi_rectfbshare'] == 'yes') {
|
69 |
$sfsi_section4 = unserialize(get_option('sfsi_section4_options', false));
|
70 |
$socialObj = new sfsi_SocialHelper();
|
71 |
-
$count_html="";
|
72 |
-
if ($show_count>0) {
|
73 |
if ($sfsi_section4['sfsi_facebook_countsDisplay'] == "yes" && $sfsi_section4['sfsi_display_counts'] == "yes") {
|
74 |
-
|
75 |
if ($sfsi_section4['sfsi_facebook_countsFrom'] == "manual") {
|
76 |
$counts = $sfsi_section4['sfsi_facebook_manualCounts'];
|
77 |
} else if ($sfsi_section4['sfsi_facebook_countsFrom'] == "likes") {
|
@@ -82,17 +82,17 @@ function sfsi_social_buttons_below($content)
|
|
82 |
$current_url = $sfsi_section4['sfsi_facebook_mypageCounts'];
|
83 |
$counts = $socialObj->sfsi_get_fb_pagelike($current_url);
|
84 |
}
|
85 |
-
$count_html = '<span class="bot_no">'
|
86 |
}
|
87 |
}
|
88 |
-
$icons .= "<div class='sf_fb_share sf_icon' style='text-align:left;vertical-align: middle;'>" . sfsiFB_Share_Custom($permalink, $show_count)
|
89 |
}
|
90 |
if (($sfsi_section6['sfsi_recttwtr'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes")) {
|
91 |
// if ($show_count ) {
|
92 |
// /* get twitter counts */
|
93 |
// if ($sfsi_section4['sfsi_twitter_countsFrom'] == "source") {
|
94 |
// $option2 = unserialize(get_option('sfsi_section2_options', false));
|
95 |
-
|
96 |
// $twitter_user = $option2['sfsi_twitter_followUserName'];
|
97 |
// $tw_settings = array(
|
98 |
// 'tw_consumer_key' => $sfsi_section4['tw_consumer_key'],
|
@@ -100,24 +100,24 @@ function sfsi_social_buttons_below($content)
|
|
100 |
// 'tw_oauth_access_token' => $sfsi_section4['tw_oauth_access_token'],
|
101 |
// 'tw_oauth_access_token_secret' => $sfsi_section4['tw_oauth_access_token_secret']
|
102 |
// );
|
103 |
-
|
104 |
// $followers = $socialObj->sfsi_get_tweets($twitter_user, $tw_settings);
|
105 |
// $counts = $socialObj->format_num($followers);
|
106 |
// } else {
|
107 |
// $counts = $socialObj->format_num($sfsi_section4['sfsi_twitter_manualCounts']);
|
108 |
-
|
109 |
// }
|
110 |
// if($counts>0){
|
111 |
// $count_html = '<span class="bot_no">'.$counts.'</span>';
|
112 |
// }
|
113 |
// }
|
114 |
-
$icons .= sfsi_twitterlike($permalink, $show_count,true);
|
115 |
// $icons .= "<div class='sf_twiter' style='text-align:left;float:left;vertical-align: middle;width:auto'>" . . "</div>";
|
116 |
}
|
117 |
|
118 |
if (($sfsi_section6['sfsi_show_Onposts'] == "yes") && $sfsi_section6['sfsi_rectpinit'] == 'yes') {
|
119 |
-
$count_html="";
|
120 |
-
if ($show_count
|
121 |
/* get Pinterest counts */
|
122 |
if ($sfsi_section4['sfsi_pinterest_countsFrom'] == "pins") {
|
123 |
$url = home_url();
|
@@ -126,11 +126,11 @@ function sfsi_social_buttons_below($content)
|
|
126 |
} else {
|
127 |
$counts = $sfsi_section4['sfsi_pinterest_manualCounts'];
|
128 |
}
|
129 |
-
if($counts>0){
|
130 |
-
$count_html = '<span class="bot_no">'
|
131 |
}
|
132 |
}
|
133 |
-
$icons .= "<div class='sf_pinit sf_icon' style='text-align:left;vertical-align: middle;float:left;line-height: 33px;width:auto;margin: 0 -2px;'>" . sfsi_pinterest_Customs($permalink, $show_count)
|
134 |
}
|
135 |
$icons .= "</div>";
|
136 |
//closing wrapper div
|
@@ -158,14 +158,14 @@ function sfsi_Subscribelike($permalink, $show_count)
|
|
158 |
$feed_data = $socialObj->SFSI_getFeedSubscriber($feed_id);
|
159 |
// var_dump($feed_data);die();
|
160 |
$counts = $socialObj->format_num($feed_data);
|
161 |
-
if(empty($counts)) {
|
162 |
$counts = (string) "0";
|
163 |
}
|
164 |
} else {
|
165 |
$counts = $sfsi_section4_options['sfsi_email_manualCounts'];
|
166 |
}
|
167 |
|
168 |
-
if (
|
169 |
$icon = '<a href="' . $url . '" target="_blank"><img src="' . SFSI_PLUGURL . 'images/follow_subscribe.png" alt="error" /></a><span class="bot_no">' . $counts . '</span>';
|
170 |
} else {
|
171 |
$icon = '<a href="' . $url . '" target="_blank"><img src="' . SFSI_PLUGURL . 'images/follow_subscribe.png" alt="error" /></a>';
|
@@ -174,7 +174,7 @@ function sfsi_Subscribelike($permalink, $show_count)
|
|
174 |
}
|
175 |
/*subscribe like*/
|
176 |
/*twitter like*/
|
177 |
-
function sfsi_twitterlike($permalink, $show_count
|
178 |
{
|
179 |
// $twitter_text = '';
|
180 |
// if (!empty($permalink)) {
|
@@ -188,15 +188,15 @@ function sfsi_twitterlike($permalink, $show_count,$rectangular_icon=false)
|
|
188 |
// if($show_count>0){
|
189 |
// $count_html = '<span class="bot_no">'.$show_count.'</span>';
|
190 |
// }
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
global $socialObj;
|
201 |
$socialObj = new sfsi_SocialHelper();
|
202 |
$twitter_text = '';
|
@@ -206,7 +206,7 @@ function sfsi_twitterlike($permalink, $show_count,$rectangular_icon=false)
|
|
206 |
if (!empty($postid)) {
|
207 |
$twitter_text = get_the_title($postid);
|
208 |
}
|
209 |
-
return $socialObj->sfsi_twitterSharewithcount($permalink, $twitter_text, $show_count
|
210 |
}
|
211 |
|
212 |
/*twitter like*/
|
@@ -224,9 +224,9 @@ function sfsi_twitterlike($permalink, $show_count,$rectangular_icon=false)
|
|
224 |
// return $pinit_html;8
|
225 |
// }
|
226 |
|
227 |
-
function sfsi_pinterest_Customs($permalink='', $show_count = false)
|
228 |
{
|
229 |
-
if(
|
230 |
$permalink = trailingslashit(get_permalink());
|
231 |
}
|
232 |
|
@@ -235,7 +235,7 @@ function sfsi_pinterest_Customs($permalink='', $show_count = false)
|
|
235 |
// $pinit_url = 'https://www.pinterest.com/pin/create/button/?url='.$url.'&media='.$media.'&description='.$description;
|
236 |
// $pinit_url = 'https://www.pinterest.com/pin/create/button/?url='.$url.'&media='..'&description='.;
|
237 |
|
238 |
-
$pinit_html = "<a href='#' onclick='sfsi_pinterest_modal_images(event,\""
|
239 |
return $pinit_html;
|
240 |
}
|
241 |
|
@@ -246,9 +246,9 @@ function sfsi_FBlike($permalink, $show_count)
|
|
246 |
$fb_like_html = '';
|
247 |
|
248 |
$option6 = unserialize(get_option('sfsi_section6_options', false));
|
249 |
-
|
250 |
$fb_like_html .= '<div class="fb-like" data-href="' . $permalink . '" data-send="' . $send . '" ';
|
251 |
-
|
252 |
if ($show_count == 1) {
|
253 |
$fb_like_html .= 'data-layout="button_count"';
|
254 |
} else {
|
@@ -258,14 +258,14 @@ function sfsi_FBlike($permalink, $show_count)
|
|
258 |
return $fb_like_html;
|
259 |
}
|
260 |
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
|
270 |
/* add all external javascript to wp_footer */
|
271 |
function sfsi_footer_script()
|
@@ -297,7 +297,7 @@ function sfsi_footer_script()
|
|
297 |
$sfsi_section6['sfsi_show_Onposts'] = isset($sfsi_section6['sfsi_show_Onposts']) && !empty($sfsi_section6['sfsi_show_Onposts']) ? $sfsi_section6['sfsi_show_Onposts'] : "no";
|
298 |
if ($sfsi_section1['sfsi_facebook_display'] == "yes") {
|
299 |
// var_dump($sfsi_section6['sfsi_rectfb'],$sfsi_section6['sfsi_show_Onposts']);
|
300 |
-
if ((($sfsi_section6['sfsi_rectfb'] == "yes"
|
301 |
?>
|
302 |
<!--facebook like and share js -->
|
303 |
<div id="fb-root"></div>
|
@@ -314,212 +314,203 @@ function sfsi_footer_script()
|
|
314 |
<?php
|
315 |
}
|
316 |
}
|
317 |
-
$isYoutubeFollowFeatureActive = (
|
318 |
-
|
319 |
-
(
|
320 |
-
isset($sfsi_section2['
|
321 |
-
!empty($sfsi_section2['sfsi_youtubeusernameorid']
|
322 |
-
|
323 |
-
|
324 |
-
(
|
325 |
-
"name" == $sfsi_section2['sfsi_youtubeusernameorid'] &&
|
326 |
-
isset($sfsi_section2['sfsi_ytube_user']) &&
|
327 |
-
!empty($sfsi_section2['sfsi_ytube_user'])
|
328 |
-
) ||
|
329 |
-
(
|
330 |
-
"id" == $sfsi_section2['sfsi_youtubeusernameorid'] &&
|
331 |
-
isset($sfsi_section2['sfsi_ytube_chnlid']) &&
|
332 |
-
!empty($sfsi_section2['sfsi_ytube_chnlid'])
|
333 |
-
)
|
334 |
-
);
|
335 |
if ($sfsi_section1['sfsi_youtube_display'] == "yes" && $sisi_common_options_check && $isYoutubeFollowFeatureActive) {
|
336 |
?>
|
337 |
-
|
338 |
-
|
339 |
-
|
340 |
-
|
341 |
-
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
|
358 |
-
|
359 |
-
|
360 |
-
|
361 |
-
|
362 |
-
|
363 |
-
|
364 |
-
|
365 |
|
366 |
-
|
367 |
-
|
368 |
-
|
369 |
-
|
370 |
-
|
371 |
-
|
372 |
-
|
373 |
-
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
-
|
380 |
-
|
381 |
-
|
382 |
-
|
383 |
-
|
384 |
-
|
385 |
-
|
386 |
-
}
|
387 |
}
|
388 |
}
|
389 |
}
|
390 |
-
|
391 |
-
|
392 |
-
|
393 |
-
/* update footer for frontend and admin both */
|
394 |
-
if (!is_admin()) {
|
395 |
-
global $post;
|
396 |
-
add_action('wp_footer', 'sfsi_footer_script');
|
397 |
-
add_action('wp_footer', 'sfsi_check_PopUp');
|
398 |
-
add_action('wp_footer', 'sfsi_frontFloter');
|
399 |
-
}
|
400 |
|
401 |
-
|
402 |
-
|
403 |
-
|
404 |
-
|
405 |
-
|
406 |
-
|
407 |
-
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
-
|
436 |
-
|
437 |
-
|
438 |
-
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
447 |
}
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
-
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
-
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
}
|
|
|
480 |
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
$icons.= ob_get_contents();
|
488 |
ob_end_clean();
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
$sfsi_anchor_div_style
|
509 |
-
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
|
|
|
|
523 |
$icons .= "\t\t" . "<a " . sfsi_checkNewWindow() . " href='" . ($icon_config['url'] == "" ? $share_url : $icon_config['url']) . "' style='" . ($icon_config['active'] == 'yes' ? ($sfsi_responsive_icons['settings']['icon_width_type'] === "Fixed icon width" ? 'display:inline-flex' : 'display:block') : 'display:none') . ";" . $sfsi_anchor_style . "' class=" . ($sfsi_responsive_icons['settings']['icon_width_type'] === "Fixed icon width" ? 'sfsi_responsive_fixed_width' : 'sfsi_responsive_fluid') . " >" . "\n";
|
524 |
$icons .= "\t\t\t<div class='sfsi_responsive_icon_item_container sfsi_responsive_icon_" . strtolower($icon) . "_container sfsi_" . strtolower($sfsi_responsive_icons['settings']['icon_size']) . "_button " . ($sfsi_responsive_icons['settings']['style'] == "Gradient" ? 'sfsi_responsive_icon_gradient' : '') . (" sfsi_" . (strtolower($sfsi_responsive_icons['settings']['text_align']) == "centered" ? 'centered' : 'left-align') . "_icon") . "' style='" . $sfsi_anchor_div_style . " ' >" . "\n";
|
525 |
$icons .= "\t\t\t\t<img style='max-height: 25px;display:unset;margin:0' class='sfsi_wicon' src='" . SFSI_PLUGURL . "images/responsive-icon/" . $icon . ('Follow' === $icon ? '.png' : '.svg') . "'>" . "\n";
|
10 |
// if($sfsi_section9["sfsi_show_via_afterposts"]!=="yes"){
|
11 |
// return $content;
|
12 |
// }
|
13 |
+
if ($sfsi_section6["sfsi_display_button_type"] == "responsive_button") {
|
14 |
+
if (is_single() && $sfsi_section6["sfsi_responsive_icons_end_post"] == "yes") {
|
15 |
$content = $content . sfsi_social_responsive_buttons(null, $sfsi_section6);
|
16 |
}
|
17 |
} else {
|
38 |
|
39 |
/* check if option activated in admin or not */
|
40 |
if ($sfsi_section6['sfsi_show_Onposts'] == "yes") {
|
41 |
+
$permalink = add_query_arg($_GET ? $_GET : array(), get_permalink($post->ID));
|
42 |
$title = get_the_title();
|
43 |
$sfsiLikeWith = "45px;";
|
44 |
/* check for counter display */
|
45 |
+
if ($sfsi_section4['sfsi_display_counts'] == "yes" && $sfsi_section4['sfsi_original_counts'] == "yes") {
|
46 |
$show_count = 1;
|
47 |
$sfsiLikeWith = "125px;";
|
48 |
} else {
|
58 |
//adding wrapper div
|
59 |
$icons .= "<div class='sfsi_socialwpr'>";
|
60 |
if ($sfsi_section6['sfsi_rectsub'] == 'yes' && $sfsi_section6['sfsi_show_Onposts'] == "yes") {
|
61 |
+
|
62 |
$icons .= "<div class='sf_subscrbe sf_icon' style='text-align:left;vertical-align: middle;float:left;width:auto'>" . sfsi_Subscribelike($permalink, $show_count) . "</div>";
|
63 |
}
|
64 |
if ($sfsi_section6['sfsi_show_Onposts'] == "yes" && $sfsi_section6['sfsi_rectfb'] == 'yes') {
|
68 |
if ($sfsi_section6['sfsi_show_Onposts'] == "yes" && $sfsi_section6['sfsi_rectfbshare'] == 'yes') {
|
69 |
$sfsi_section4 = unserialize(get_option('sfsi_section4_options', false));
|
70 |
$socialObj = new sfsi_SocialHelper();
|
71 |
+
$count_html = "";
|
72 |
+
if ($show_count > 0) {
|
73 |
if ($sfsi_section4['sfsi_facebook_countsDisplay'] == "yes" && $sfsi_section4['sfsi_display_counts'] == "yes") {
|
74 |
+
|
75 |
if ($sfsi_section4['sfsi_facebook_countsFrom'] == "manual") {
|
76 |
$counts = $sfsi_section4['sfsi_facebook_manualCounts'];
|
77 |
} else if ($sfsi_section4['sfsi_facebook_countsFrom'] == "likes") {
|
82 |
$current_url = $sfsi_section4['sfsi_facebook_mypageCounts'];
|
83 |
$counts = $socialObj->sfsi_get_fb_pagelike($current_url);
|
84 |
}
|
85 |
+
$count_html = '<span class="bot_no">' . $counts . '</span>';
|
86 |
}
|
87 |
}
|
88 |
+
$icons .= "<div class='sf_fb_share sf_icon' style='text-align:left;vertical-align: middle;'>" . sfsiFB_Share_Custom($permalink, $show_count) . $count_html . "</div>";
|
89 |
}
|
90 |
if (($sfsi_section6['sfsi_recttwtr'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes")) {
|
91 |
// if ($show_count ) {
|
92 |
// /* get twitter counts */
|
93 |
// if ($sfsi_section4['sfsi_twitter_countsFrom'] == "source") {
|
94 |
// $option2 = unserialize(get_option('sfsi_section2_options', false));
|
95 |
+
|
96 |
// $twitter_user = $option2['sfsi_twitter_followUserName'];
|
97 |
// $tw_settings = array(
|
98 |
// 'tw_consumer_key' => $sfsi_section4['tw_consumer_key'],
|
100 |
// 'tw_oauth_access_token' => $sfsi_section4['tw_oauth_access_token'],
|
101 |
// 'tw_oauth_access_token_secret' => $sfsi_section4['tw_oauth_access_token_secret']
|
102 |
// );
|
103 |
+
|
104 |
// $followers = $socialObj->sfsi_get_tweets($twitter_user, $tw_settings);
|
105 |
// $counts = $socialObj->format_num($followers);
|
106 |
// } else {
|
107 |
// $counts = $socialObj->format_num($sfsi_section4['sfsi_twitter_manualCounts']);
|
108 |
+
|
109 |
// }
|
110 |
// if($counts>0){
|
111 |
// $count_html = '<span class="bot_no">'.$counts.'</span>';
|
112 |
// }
|
113 |
// }
|
114 |
+
$icons .= sfsi_twitterlike($permalink, $show_count, true);
|
115 |
// $icons .= "<div class='sf_twiter' style='text-align:left;float:left;vertical-align: middle;width:auto'>" . . "</div>";
|
116 |
}
|
117 |
|
118 |
if (($sfsi_section6['sfsi_show_Onposts'] == "yes") && $sfsi_section6['sfsi_rectpinit'] == 'yes') {
|
119 |
+
$count_html = "";
|
120 |
+
if ($show_count) {
|
121 |
/* get Pinterest counts */
|
122 |
if ($sfsi_section4['sfsi_pinterest_countsFrom'] == "pins") {
|
123 |
$url = home_url();
|
126 |
} else {
|
127 |
$counts = $sfsi_section4['sfsi_pinterest_manualCounts'];
|
128 |
}
|
129 |
+
if ($counts > 0) {
|
130 |
+
$count_html = '<span class="bot_no">' . $counts . '</span>';
|
131 |
}
|
132 |
}
|
133 |
+
$icons .= "<div class='sf_pinit sf_icon' style='text-align:left;vertical-align: middle;float:left;line-height: 33px;width:auto;margin: 0 -2px;'>" . sfsi_pinterest_Customs($permalink, $show_count) . $count_html . "</div>";
|
134 |
}
|
135 |
$icons .= "</div>";
|
136 |
//closing wrapper div
|
158 |
$feed_data = $socialObj->SFSI_getFeedSubscriber($feed_id);
|
159 |
// var_dump($feed_data);die();
|
160 |
$counts = $socialObj->format_num($feed_data);
|
161 |
+
if (empty($counts)) {
|
162 |
$counts = (string) "0";
|
163 |
}
|
164 |
} else {
|
165 |
$counts = $sfsi_section4_options['sfsi_email_manualCounts'];
|
166 |
}
|
167 |
|
168 |
+
if ($show_count) {
|
169 |
$icon = '<a href="' . $url . '" target="_blank"><img src="' . SFSI_PLUGURL . 'images/follow_subscribe.png" alt |