Version Description
- New question 3 to facilitate placement of icons
Download this release
Release Info
Developer | socialdude |
Plugin | Social Media Share Buttons & Social Sharing Icons |
Version | 2.0.0 |
Comparing to | |
See all releases |
Code changes from version 1.9.8 to 2.0.0
- css/sfsi-admin-style.css +122 -4
- css/sfsi-style.css +5 -2
- helpers/twitteroauth/twiiterCount.php +9 -4
- images/bottom_left.png +0 -0
- images/bottom_right.png +0 -0
- images/center_left.png +0 -0
- images/center_right.png +0 -0
- images/float_position_icon.png +0 -0
- images/music.png +0 -0
- images/print.png +0 -0
- images/top_left.png +0 -0
- images/top_right.png +0 -0
- js/custom-admin.js +218 -33
- js/customValidate.js +7 -7
- libs/controllers/sfsi_buttons_controller.php +86 -30
- libs/controllers/sfsi_floater_icons.php +4 -3
- libs/controllers/sfsi_frontpopUp.php +38 -36
- libs/controllers/sfsiocns_OnPosts.php +2 -0
- libs/sfsi_Init_JqueryCss.php +4 -4
- libs/sfsi_install_uninstall.php +448 -267
- libs/sfsi_widget.php +62 -32
- readme.txt +3 -3
- ultimate_social_media_icons.php +10 -5
- views/sfsi_affiliate_banner.php +1 -1
- views/sfsi_option_view4.php +4 -3
- views/sfsi_option_view5.php +100 -73
- views/sfsi_option_view6.php +2 -2
- views/sfsi_options_view.php +44 -24
- views/sfsi_question3.php +67 -0
- views/subviews/que3/sfsi_que3_place_via_after_posts.php +37 -0
- views/subviews/que3/sfsi_que3_place_via_float.php +186 -0
- views/subviews/que3/sfsi_que3_place_via_shortcode.php +37 -0
- views/subviews/que3/sfsi_que3_place_via_widget.php +38 -0
css/sfsi-admin-style.css
CHANGED
@@ -47,13 +47,13 @@ body {
|
|
47 |
outline: 0;
|
48 |
}
|
49 |
.wapper {
|
50 |
-
padding:
|
51 |
display: block;
|
52 |
background: #f1f1f1;
|
53 |
}
|
54 |
.main_contant {
|
55 |
margin: 0;
|
56 |
-
padding: 0;
|
57 |
width: 100%;
|
58 |
float: left;
|
59 |
}
|
@@ -73,6 +73,9 @@ body {
|
|
73 |
text-decoration: underline;
|
74 |
font-family: helveticabold;
|
75 |
}
|
|
|
|
|
|
|
76 |
#accordion p, #accordion1 p {
|
77 |
color: #5a6570;
|
78 |
text-align: left;
|
@@ -83,7 +86,7 @@ body {
|
|
83 |
padding-top: 19px;
|
84 |
}
|
85 |
#accordion p:first-child, #accordion1 p:first-child {
|
86 |
-
padding-top:
|
87 |
}
|
88 |
#accordion h4, #accordion1 h4 {
|
89 |
margin: 0;
|
@@ -1959,4 +1962,119 @@ h2.optional { float: left;clear: both;margin-top: 25px !important; }
|
|
1959 |
.premiumButtonsContainer{width: 44% !important;}
|
1960 |
.premiumButtonsContainer .premiumSection2{width: 41% !important;}
|
1961 |
.premiumButtonsContainer .premiumSection3{width: 41% !important;}
|
1962 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
47 |
outline: 0;
|
48 |
}
|
49 |
.wapper {
|
50 |
+
padding: 30px 40px 40px 40px;
|
51 |
display: block;
|
52 |
background: #f1f1f1;
|
53 |
}
|
54 |
.main_contant {
|
55 |
margin: 0;
|
56 |
+
padding: 20px 0 0 0;
|
57 |
width: 100%;
|
58 |
float: left;
|
59 |
}
|
73 |
text-decoration: underline;
|
74 |
font-family: helveticabold;
|
75 |
}
|
76 |
+
a#save_all_settings {
|
77 |
+
padding: 15px 10px;
|
78 |
+
}
|
79 |
#accordion p, #accordion1 p {
|
80 |
color: #5a6570;
|
81 |
text-align: left;
|
86 |
padding-top: 19px;
|
87 |
}
|
88 |
#accordion p:first-child, #accordion1 p:first-child {
|
89 |
+
padding-top: 2px;
|
90 |
}
|
91 |
#accordion h4, #accordion1 h4 {
|
92 |
margin: 0;
|
1962 |
.premiumButtonsContainer{width: 44% !important;}
|
1963 |
.premiumButtonsContainer .premiumSection2{width: 41% !important;}
|
1964 |
.premiumButtonsContainer .premiumSection3{width: 41% !important;}
|
1965 |
+
}
|
1966 |
+
|
1967 |
+
/************************************ Question 3-> Where shall they be displayed? CSS STARTS *************************/
|
1968 |
+
.tab9 h1 {font-size: 20px !important;ont-weight: bold !important;margin-bottom: 20px !important;}
|
1969 |
+
.tab9 span.checkbox {margin-top: 3px;}
|
1970 |
+
.tab9 input {width: 317px; background: #e5e5e5;box-shadow: 2px 2px 3px #dcdcdc inset;border: 0;padding: 13px 10px !important;font-size: 17px;color: #5a6570;}
|
1971 |
+
.tab9 ul.sfsi_icn_listing8 {list-style: outside none none;margin: 5px 0 0;overflow: hidden;}
|
1972 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_right_info {font-family: helveticaregular;width: 94.7%;float: left;}
|
1973 |
+
.tab9 ul.sfsi_icn_listing8 li {float: left;padding: 11px 0 15px 8px;width: 100%;margin: 0;}
|
1974 |
+
.tab9 .sfsi_float_position_icon_label img{margin-left: auto;margin-right: auto;display: block;margin-top: 7px; }
|
1975 |
+
.tab9 .sfsi_float_position_icon_label img.sfsi_img_center_bottom {position: absolute;bottom: 0px;left: 18%;}
|
1976 |
+
.tab9 .sfsiLocationli .cstmfltonpgstck p{padding-top: 0px!important; padding-left: 20px!important; display: table;font-size: 19px !important}
|
1977 |
+
.sfsi_mainContainer .checkbox{ float: left; }
|
1978 |
+
|
1979 |
+
|
1980 |
+
#accordion .tab9 .sfsi_icn_listing8 li .sfsi_right_info .kckslctn p:first-child {margin-top: 17px !important;}
|
1981 |
+
#accordion .tab9 .sfsi_icn_listing8 li .sfsi_right_info p {padding-left: 20px;font-size: 19px !important; display: table}
|
1982 |
+
#accordion .tab9 .sfsi_icn_listing8 li.sfsi_show_via_shortcode .sfsi_right_info p:last-child {padding-top: 0px;}
|
1983 |
+
#accordion .tab9 .sfsi_icn_listing8 li.sfsi_show_via_shortcode .sfsi_right_info .kckslctn p:last-child {padding-top: 19px !important;}
|
1984 |
+
.tab9 .sfsi_premium_feature_note {font-size: 18px !important;margin-left:12px !important;padding-top:0px !important;}
|
1985 |
+
.tab9 .ul.sfsi_make_icons.sfsi_plus_mobile_float {float: left;}
|
1986 |
+
.tab9 .sfsi_disable_floatingicons_mobile { width: 88%; float: left; margin:25px 0 0 27px }
|
1987 |
+
.tab9 .sfsi_disable_floatingicons_mobile h4 { float: left;line-height: 56px !important;margin-right: 50px !important;font-family: 'helveticaneue-light' !important;color: #5a6570 !important;}
|
1988 |
+
.tab9 .sfsi_toglepstpgspn {font-weight: bold;}
|
1989 |
+
.tab9 .sfsi_show_via_shortcode .kckslctn,.tab9 .sfsi_show_via_afterposts .kckslctn{font-size: 15px;margin-top: 5px; }
|
1990 |
+
.tab9 .sfsi_show_via_shortcode .kckslctn h4,.tab9 .sfsi_show_via_afterposts .kckslctn h4{font-size: 18px !important;padding: 18px 0 0 0 !important; }
|
1991 |
+
.tab9 .sfsi_navigate_to_question7{text-decoration:underline;cursor:pointer}
|
1992 |
+
.tab9 .sfsiLocationli h4{font-size:19px!important}
|
1993 |
+
.tab9 .sfsi_make_icons span.radio{background-position:0 0;display:inline-block;vertical-align:middle;float: left;}
|
1994 |
+
.tab9 ul.sfsi_icn_listing8 li .flthmonpg li{min-width:33%;width:33%!important}.
|
1995 |
+
.tab9 .radio_section.tb_4_ck{margin:0 20px 0 0!important;float:left}
|
1996 |
+
.tab9 .sfsi_tab_3_icns {display: block;}
|
1997 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns .sfsi_make_icons li{width:13%;min-width:35px}
|
1998 |
+
.tab9 .sfsi_make_icons .sfsi_flicnsoptn3{color:#69737c;display:inline-block;float:none;font-family:helveticaneue-light;font-size:20px;margin:0 0 0 15px;vertical-align:middle;width:auto}
|
1999 |
+
.tab9 .sfsi_float_position_icon_label{border:1px solid #ccc;border-radius:18px;margin-top:3px;position:relative;width:189px;height:148px}
|
2000 |
+
.tab9 .save_button{padding-top:0}
|
2001 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns li{padding-left:0;padding-bottom:15px}
|
2002 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns ul.sfsi_floaticon_margin_sec li{min-width:50%;padding-left:0;padding-bottom:15px;float:left;width:50%}
|
2003 |
+
.tab9 .sfsi_tab_3_icns.flthmonpg .radio{margin-top:55px}
|
2004 |
+
.tab9 .sfsi_position_divider{float:left;margin-top:0;margin-left:15px;width:100%}
|
2005 |
+
#accordion .tab9 ul.sfsiplus_shwthmbfraftr .labelhdng4,#accordion .tab9 ul.sfsiplus_shwthmbfraftr .row h4.labelhdng4{color:#555;font-size:20px;margin-left:20px;font-family:helveticaregular}
|
2006 |
+
.tab9 .sfsiLocationli .sfsi_right_info .sfsi_tab_3_icns{float:left;clear:both}
|
2007 |
+
.tab9 ul.sfsi_tab_3_icns li .sfsiplus_icns_tab_3,ul.sfsi_tab_3_icns li .radio{float:left}
|
2008 |
+
.tab9 ul.sfsi_tab_3_icns.flthmonpg{margin-top:20px}
|
2009 |
+
.tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec li{float:left}
|
2010 |
+
.tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec label{font-size:17px;padding-right:7px;width:63px!important;display:inline-block;margin-top:10px}
|
2011 |
+
.tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec ins{margin-top:10px}
|
2012 |
+
.tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec li input{background-color:#dedede;border:none;box-shadow:none;padding:14px 8px;width:80px}
|
2013 |
+
.tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec li ins{font-size:17px;font-weight:400;margin-left:15px;text-decoration:none}
|
2014 |
+
.tab9 .sfsi_flicnsoptn3{color:#69737c;float:left;font-size:20px;margin:62px 5px 0 20px;font-family:helveticaneue-light;width:136px}
|
2015 |
+
.tab9 ul.sfsi_tab_3_icns label{float:left;line-height:42px;color:#69737C;font-size:18px;font-family:helveticaregular;min-width:120px}
|
2016 |
+
|
2017 |
+
@media screen and (max-width: 823px){
|
2018 |
+
.wapper { padding: 0 15px; }
|
2019 |
+
.welcometext { width: 62% !important; }
|
2020 |
+
.supportforum { margin-top: 22px; }
|
2021 |
+
.main_contant h1 { line-height: 35px;}
|
2022 |
+
#sfpageLoad { width: 100% !important;left: 0px !important;}
|
2023 |
+
.tab9 .sfsi_position_divider { margin-left: 0px !important; }
|
2024 |
+
.row ul.tab_2_email_sec li{ width: 31%; }
|
2025 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_right_info {width: 89.7% !important;}
|
2026 |
+
.tab9 ul.sfsi_icn_listing8 li.sfsiLocationli .sfsi_right_info {width: 100% !important;}
|
2027 |
+
.tab9 .sfsi_float_position_icon_label { clear: both !important; }
|
2028 |
+
.tab9 .sfsi_tab_3_icns.flthmonpg .radio { margin-top: 0px !important; }
|
2029 |
+
.tab9 .sfsi_flicnsoptn3 {margin: 5px 5px 0 20px!important;width: 131px !important;}
|
2030 |
+
.tab9 .sfsiLocationli label, .tab9 .sfsi_float_position_icon_label { margin-top: 13px; clear: both !important;}
|
2031 |
+
.tab9 .sfsi_position_divider:nth-child(2) {margin: 20px 0;}
|
2032 |
+
.tab9 ul.sfsi_tab_3_icns.flthmonpg {margin-left: 44px;}
|
2033 |
+
|
2034 |
+
.tab9 ul.sfsi_make_icons.sfsi_plus_mobile_float {float: left;clear: both;}
|
2035 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns .sfsi_make_icons li { width: 50% !important; }
|
2036 |
+
}
|
2037 |
+
@media screen and (min-width: 360px) and (max-width: 414px){
|
2038 |
+
.tab9 ul.sfsi_icn_listing8 li .flthmonpg li{ width: 100% !important; }
|
2039 |
+
}
|
2040 |
+
@media screen and (min-width: 640px) and (max-width: 640px){
|
2041 |
+
.tab9 ul.sfsi_icn_listing8 li .flthmonpg li{ width: 100% !important ; }
|
2042 |
+
.tab9 .sfsi_img_center_bottom { padding-top: 0px !important;width: 62% !important;margin-top: -10px;margin-left: 5px;}
|
2043 |
+
}
|
2044 |
+
@media screen and (min-width: 1024px) and (max-width: 1024px){
|
2045 |
+
.wapper { padding: 0 30px 0px 15px; }
|
2046 |
+
.welcometext { width: 62% !important; }
|
2047 |
+
.supportforum { margin-top: 22px; }
|
2048 |
+
.main_contant h1 { line-height: 35px;}
|
2049 |
+
#sfpageLoad { width: 100% !important;}
|
2050 |
+
.tab9 ul.sfsi_tab_3_icns.flthmonpg {margin-left: 45px;}
|
2051 |
+
.row ul.tab_2_email_sec li{ width: 31%; }
|
2052 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_right_info {width: 90.7% !important;}
|
2053 |
+
.tab9 ul.sfsi_icn_listing8 li.sfsiLocationli .sfsi_right_info {width: 100% !important;}
|
2054 |
+
.tab9 .sfsi_float_position_icon_label { clear: both !important; }
|
2055 |
+
.tab9 .sfsiLocationli label, .tab9 .sfsi_float_position_icon_label { margin-top: 13px;clear: both;float: left;}
|
2056 |
+
.tab9 .sfsi_tab_3_icns.flthmonpg .radio {margin-top: 0px !important;}
|
2057 |
+
.tab9 .sfsi_flicnsoptn3 {margin-top: 3px !important}
|
2058 |
+
.tab9 .sfsi_position_divider:nth-child(2) {margin: 20px 0;}
|
2059 |
+
.tab9 .sfsi_position_divider{ margin-left: 0px !important; }
|
2060 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns .sfsi_make_icons li { width: 30% !important; }
|
2061 |
+
.tab9 ul.sfsi_make_icons.sfsi_plus_mobile_float { width: 100% !important; }
|
2062 |
+
}
|
2063 |
+
|
2064 |
+
@media screen and (min-width: 1080px) and (max-width: 1080px){
|
2065 |
+
.tab9 ul.sfsi_tab_3_icns label {clear: both;margin-top: 20px;}
|
2066 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns ul.sfsi_make_icons {float: left;clear: both; width: 100%;}
|
2067 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns ul.sfsi_make_icons li {width: 50%;}
|
2068 |
+
}
|
2069 |
+
|
2070 |
+
@media screen and (min-width: 1920px) and (max-width: 1920px){
|
2071 |
+
.tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns ul.sfsi_make_icons li span.sfsi_flicnsoptn3 { padding-top: 6px;padding-left: 5px; }
|
2072 |
+
}
|
2073 |
+
|
2074 |
+
@media screen and (min-width: 1366px) and (max-width: 1366px){
|
2075 |
+
.wapper { padding: 40px 40px 40px 10px;}
|
2076 |
+
.tab9 ul.sfsi_icn_listing8 li.sfsiLocationli .sfsi_right_info {width: 100% !important;}
|
2077 |
+
.tab9 .sfsi_flicnsoptn3{font-size: 18px !important;min-width: 113px !important; margin: 60px 0px 0 10px !important;width: auto !important;}
|
2078 |
+
.tab9 .sfsi_position_divider { margin-left: 0px !important; }
|
2079 |
+
}
|
2080 |
+
/************************************ Question 3-> Where shall they be displayed? CSS CLOSES *************************/
|
css/sfsi-style.css
CHANGED
@@ -346,6 +346,7 @@ label.toglpstpgsbttl { float: left; margin-top: 5px !important}
|
|
346 |
padding: 0;
|
347 |
list-style: none;
|
348 |
display: inline-block;
|
|
|
349 |
}
|
350 |
.tab5 ul.enough_waffling li span {
|
351 |
float: left;
|
@@ -386,7 +387,9 @@ label.toglpstpgsbttl { float: left; margin-top: 5px !important}
|
|
386 |
}
|
387 |
.sticking a {
|
388 |
color: #a4a9ad;
|
389 |
-
|
|
|
|
|
390 |
}
|
391 |
.sticking .field {
|
392 |
position: relative;
|
@@ -1045,7 +1048,7 @@ a.addthis_button_compact {
|
|
1045 |
background: #f1f1f1;
|
1046 |
}
|
1047 |
#accordion {
|
1048 |
-
margin-top:
|
1049 |
}
|
1050 |
.main_contant p>a, .tab1 p span {
|
1051 |
font-family: helveticabold;
|
346 |
padding: 0;
|
347 |
list-style: none;
|
348 |
display: inline-block;
|
349 |
+
float: left;
|
350 |
}
|
351 |
.tab5 ul.enough_waffling li span {
|
352 |
float: left;
|
387 |
}
|
388 |
.sticking a {
|
389 |
color: #a4a9ad;
|
390 |
+
}
|
391 |
+
.sticking p{
|
392 |
+
line-height: 19px !important;
|
393 |
}
|
394 |
.sticking .field {
|
395 |
position: relative;
|
1048 |
background: #f1f1f1;
|
1049 |
}
|
1050 |
#accordion {
|
1051 |
+
margin-top: 25px;
|
1052 |
}
|
1053 |
.main_contant p>a, .tab1 p span {
|
1054 |
font-family: helveticabold;
|
helpers/twitteroauth/twiiterCount.php
CHANGED
@@ -12,10 +12,15 @@ function sfsi_twitter_followers(){
|
|
12 |
if(isset($sfsi_section4_options['tw_consumer_key']) && isset($sfsi_section4_options['tw_consumer_secret'])
|
13 |
&& isset($sfsi_section4_options['tw_oauth_access_token']) && isset($sfsi_section4_options['tw_oauth_access_token_secret'])){
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
|
|
|
|
|
|
|
|
|
|
19 |
}
|
20 |
|
21 |
return $count;
|
12 |
if(isset($sfsi_section4_options['tw_consumer_key']) && isset($sfsi_section4_options['tw_consumer_secret'])
|
13 |
&& isset($sfsi_section4_options['tw_oauth_access_token']) && isset($sfsi_section4_options['tw_oauth_access_token_secret'])){
|
14 |
|
15 |
+
try {
|
16 |
+
$connection = new TwitterOAuth($sfsi_section4_options['tw_consumer_key'], $sfsi_section4_options['tw_consumer_secret'], $sfsi_section4_options['tw_oauth_access_token'], $sfsi_section4_options['tw_oauth_access_token_secret']);
|
17 |
+
|
18 |
+
$statuses = $connection->get('followers/ids');
|
19 |
+
$count = isset($statuses) && isset($statuses->ids)? count($statuses->ids) : 0;
|
20 |
+
}
|
21 |
+
catch(Exception $e) {
|
22 |
+
return $count;
|
23 |
+
}
|
24 |
}
|
25 |
|
26 |
return $count;
|
images/bottom_left.png
ADDED
Binary file
|
images/bottom_right.png
ADDED
Binary file
|
images/center_left.png
ADDED
Binary file
|
images/center_right.png
ADDED
Binary file
|
images/float_position_icon.png
ADDED
Binary file
|
images/music.png
ADDED
Binary file
|
images/print.png
ADDED
Binary file
|
images/top_left.png
ADDED
Binary file
|
images/top_right.png
ADDED
Binary file
|
js/custom-admin.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
function sfsi_update_index(){
|
2 |
var s = 1;
|
3 |
SFSI("ul.icn_listing li.custom").each(function() {
|
4 |
SFSI(this).children("span.custom-txt").html("Custom " + s), s++;
|
@@ -508,10 +508,36 @@ function sfsi_update_step4() {
|
|
508 |
function sfsi_update_step5() {
|
509 |
var nonce = SFSI("#sfsi_save5").attr("data-nonce");
|
510 |
sfsi_update_step3();
|
|
|
511 |
var s = sfsi_validationStep5();
|
|
|
512 |
if (!s) return global_error = 1, !1;
|
|
|
513 |
beForeLoad();
|
514 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
515 |
SFSI(".custom_iconOrder").each(function()
|
516 |
{
|
517 |
h.push({
|
@@ -519,7 +545,11 @@ function sfsi_update_step5() {
|
|
519 |
ele:SFSI(this).attr("element-id")
|
520 |
});
|
521 |
});
|
522 |
-
|
|
|
|
|
|
|
|
|
523 |
|
524 |
var v = 1 == SFSI("input[name='sfsi_rss_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_MouseOverText']").val(), g = 1 == SFSI("input[name='sfsi_email_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_MouseOverText']").val(), k = 1 == SFSI("input[name='sfsi_twitter_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_MouseOverText']").val(), y = 1 == SFSI("input[name='sfsi_facebook_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_MouseOverText']").val(), b = 1 == SFSI("input[name='sfsi_google_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_MouseOverText']").val(), w = 1 == SFSI("input[name='sfsi_linkedIn_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_MouseOverText']").val(), x = 1 == SFSI("input[name='sfsi_youtube_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_MouseOverText']").val(), C = 1 == SFSI("input[name='sfsi_pinterest_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_MouseOverText']").val(), D = 1 == SFSI("input[name='sfsi_instagram_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_MouseOverText']").val(), U = 1 == SFSI("input[name='sfsi_share_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_share_MouseOverText']").val(), O = {};
|
525 |
SFSI("input[name='sfsi_custom_MouseOverTexts[]']").each(function() {
|
@@ -535,13 +565,15 @@ function sfsi_update_step5() {
|
|
535 |
sfsi_icons_perRow:e,
|
536 |
sfsi_icons_spacing:t,
|
537 |
sfsi_icons_ClickPageOpen:o,
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
|
|
|
|
545 |
sfsi_icons_stick:c,
|
546 |
sfsi_rss_MouseOverText:v,
|
547 |
sfsi_email_MouseOverText:g,
|
@@ -780,6 +812,62 @@ function sfsi_update_step8()
|
|
780 |
});
|
781 |
}
|
782 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
783 |
function sfsi_validationStep2()
|
784 |
{
|
785 |
//var class_name= SFSI(element).hasAttr('sfsi_validate');
|
@@ -1216,12 +1304,12 @@ function sfsi_validationStep5()
|
|
1216 |
return false;
|
1217 |
}
|
1218 |
/* validate icons effects */
|
1219 |
-
if(SFSI('input[name="sfsi_icons_float"]:checked').val()=="yes" && SFSI('input[name="sfsi_icons_stick"]:checked').val()=="yes")
|
1220 |
-
{
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
}
|
1225 |
return true;
|
1226 |
}
|
1227 |
function sfsi_validationStep7()
|
@@ -1373,7 +1461,7 @@ function beForeLoad() {
|
|
1373 |
}
|
1374 |
|
1375 |
function afterLoad() {
|
1376 |
-
SFSI("input").removeClass("inputError"), SFSI(".save_button >a").html("Save"), SFSI(".
|
1377 |
SFSI(".save_button >a").css("pointer-events", "auto"), SFSI(".save_button >a").removeAttr("onclick"),
|
1378 |
SFSI(".loader-img").hide();
|
1379 |
}
|
@@ -1974,6 +2062,9 @@ SFSI(document).ready(function(s) {
|
|
1974 |
SFSI("#sfsi_save8").on("click", function() {
|
1975 |
sfsi_update_step8() && sfsicollapse(this);
|
1976 |
}),
|
|
|
|
|
|
|
1977 |
SFSI("#save_all_settings").on("click", function() {
|
1978 |
return SFSI("#save_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
|
1979 |
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),
|
@@ -2112,21 +2203,32 @@ SFSI(document).ready(function(s) {
|
|
2112 |
|
2113 |
SFSI(document).on("click", '.checkbox', function () {
|
2114 |
|
2115 |
-
|
|
|
|
|
2116 |
|
2117 |
if(s.attr('name')== "sfsi_custom_social_hide"){
|
2118 |
-
var
|
2119 |
-
|
2120 |
-
yPos = backgroundPos[1];
|
2121 |
-
var val = (yPos=="0px") ? "no":"yes";
|
2122 |
-
SFSI('input[name="sfsi_custom_social_hide"]').val(val);
|
2123 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2124 |
});
|
2125 |
|
2126 |
//*------------------------------- Sharing text & pcitures checkbox for showing section in Page, Post CLOSES -------------------------------------//
|
2127 |
|
2128 |
/*SFSI(".radio").live("click", function() {*/
|
2129 |
SFSI(document).on("click", '.radio', function () {
|
|
|
2130 |
var s = SFSI(this).parent().find("input:radio:first");
|
2131 |
"sfsi_email_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_email_countsDisplay"]').prop("checked", !0),
|
2132 |
SFSI('input[name="sfsi_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
|
@@ -2178,13 +2280,29 @@ SFSI(document).ready(function(s) {
|
|
2178 |
SFSI('input[name="sfsi_shares_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
|
2179 |
"manual" == SFSI("input[name='sfsi_shares_countsFrom']:checked").val() ? SFSI("input[name='sfsi_shares_manualCounts']").slideDown() :SFSI("input[name='sfsi_shares_manualCounts']").slideUp());
|
2180 |
}),
|
2181 |
-
|
|
|
|
|
2182 |
SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
|
2183 |
SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
|
|
|
2184 |
SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
|
|
|
2185 |
/*SFSI(".radio").live("click", function(){*/
|
2186 |
SFSI(document).on("click", '.radio', function () {
|
|
|
2187 |
var s = SFSI(this).parent().find("input:radio:first");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2188 |
"sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
|
2189 |
}), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s) {
|
2190 |
s.stopPropagation();
|
@@ -2269,16 +2387,24 @@ SFSI(document).ready(function(s) {
|
|
2269 |
SFSI(this).text("Collapse")) :(SFSI(this).siblings("p").children("label").fadeOut("slow"),
|
2270 |
SFSI(this).text("Read more"));
|
2271 |
}), /*SFSI(".radio").live("click", function() {*/SFSI(document).on("click", '.radio', function () {
|
|
|
2272 |
var s = SFSI(this).parent().find("input:radio:first");
|
|
|
2273 |
"sfsi_icons_float" == s.attr("name") && "yes" == s.val() && (SFSI(".float_options").slideDown("slow"),
|
|
|
2274 |
SFSI('input[name="sfsi_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_icons_stick"][value="yes"]').removeAttr("checked"),
|
2275 |
SFSI('input[name="sfsi_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"),
|
2276 |
SFSI('input[name="sfsi_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;")),
|
2277 |
-
|
|
|
|
|
|
|
2278 |
SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", !0), SFSI('input[name="sfsi_icons_float"][value="yes"]').prop("checked", !1),
|
2279 |
SFSI('input[name="sfsi_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"),
|
2280 |
SFSI('input[name="sfsi_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
|
|
|
2281 |
}),
|
|
|
2282 |
SFSI(".sfsi_wDiv").length > 0 && setTimeout(function() {
|
2283 |
var s = parseInt(SFSI(".sfsi_wDiv").height()) + 0 + "px";
|
2284 |
SFSI(".sfsi_holders").each(function() {
|
@@ -2368,16 +2494,75 @@ function showhideutube(ref)
|
|
2368 |
function checkforinfoslction(ref)
|
2369 |
{
|
2370 |
var pos = jQuery(ref).children(".checkbox").css("background-position");
|
2371 |
-
|
2372 |
-
|
2373 |
-
|
2374 |
-
|
2375 |
-
|
2376 |
-
|
2377 |
-
|
2378 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2379 |
}
|
|
|
2380 |
var initTop = new Array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2381 |
SFSI("body").on("click", ".sfsi_tokenGenerateButton a", function(){
|
2382 |
var clienId = SFSI("input[name='sfsi_instagram_clientid']").val();
|
2383 |
var redirectUrl = SFSI("input[name='sfsi_instagram_appurl']").val();
|
1 |
+
function sfsi_update_index(){
|
2 |
var s = 1;
|
3 |
SFSI("ul.icn_listing li.custom").each(function() {
|
4 |
SFSI(this).children("span.custom-txt").html("Custom " + s), s++;
|
508 |
function sfsi_update_step5() {
|
509 |
var nonce = SFSI("#sfsi_save5").attr("data-nonce");
|
510 |
sfsi_update_step3();
|
511 |
+
|
512 |
var s = sfsi_validationStep5();
|
513 |
+
|
514 |
if (!s) return global_error = 1, !1;
|
515 |
+
|
516 |
beForeLoad();
|
517 |
+
|
518 |
+
var i = SFSI("input[name='sfsi_icons_size']").val(),
|
519 |
+
e = SFSI("input[name='sfsi_icons_perRow']").val(),
|
520 |
+
t = SFSI("input[name='sfsi_icons_spacing']").val(),
|
521 |
+
n = SFSI("#sfsi_icons_Alignment").val(),
|
522 |
+
o = SFSI("input[name='sfsi_icons_ClickPageOpen']:checked").val(),
|
523 |
+
|
524 |
+
//a = SFSI("input[name='sfsi_icons_float']:checked").val(),
|
525 |
+
//dsb = SFSI("input[name='sfsi_disable_floaticons']:checked").val(),
|
526 |
+
//r = SFSI("#sfsi_icons_floatPosition").val(),
|
527 |
+
|
528 |
+
c = SFSI("input[name='sfsi_icons_stick']:checked").val(),
|
529 |
+
p = SFSI("#sfsi_rssIcon_order").attr("data-index"),
|
530 |
+
_ = SFSI("#sfsi_emailIcon_order").attr("data-index"),
|
531 |
+
l = SFSI("#sfsi_googleIcon_order").attr("data-index"),
|
532 |
+
S = SFSI("#sfsi_facebookIcon_order").attr("data-index"),
|
533 |
+
u = SFSI("#sfsi_twitterIcon_order").attr("data-index"),
|
534 |
+
f = SFSI("#sfsi_youtubeIcon_order").attr("data-index"),
|
535 |
+
d = SFSI("#sfsi_pinterestIcon_order").attr("data-index"),
|
536 |
+
I = SFSI("#sfsi_instagramIcon_order").attr("data-index"),
|
537 |
+
m = SFSI("#sfsi_shareIcon_order").attr("data-index"),
|
538 |
+
F = SFSI("#sfsi_linkedinIcon_order").attr("data-index"),
|
539 |
+
h = new Array();
|
540 |
+
|
541 |
SFSI(".custom_iconOrder").each(function()
|
542 |
{
|
543 |
h.push({
|
545 |
ele:SFSI(this).attr("element-id")
|
546 |
});
|
547 |
});
|
548 |
+
|
549 |
+
// var mst = SFSI("input[name='sfsi_icons_floatMargin_top']").val(),
|
550 |
+
// msb = SFSI("input[name='sfsi_icons_floatMargin_bottom']").val(),
|
551 |
+
// msl = SFSI("input[name='sfsi_icons_floatMargin_left']").val(),
|
552 |
+
// msr = SFSI("input[name='sfsi_icons_floatMargin_right']").val();
|
553 |
|
554 |
var v = 1 == SFSI("input[name='sfsi_rss_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_MouseOverText']").val(), g = 1 == SFSI("input[name='sfsi_email_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_MouseOverText']").val(), k = 1 == SFSI("input[name='sfsi_twitter_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_MouseOverText']").val(), y = 1 == SFSI("input[name='sfsi_facebook_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_MouseOverText']").val(), b = 1 == SFSI("input[name='sfsi_google_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_MouseOverText']").val(), w = 1 == SFSI("input[name='sfsi_linkedIn_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_MouseOverText']").val(), x = 1 == SFSI("input[name='sfsi_youtube_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_MouseOverText']").val(), C = 1 == SFSI("input[name='sfsi_pinterest_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_MouseOverText']").val(), D = 1 == SFSI("input[name='sfsi_instagram_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_MouseOverText']").val(), U = 1 == SFSI("input[name='sfsi_share_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_share_MouseOverText']").val(), O = {};
|
555 |
SFSI("input[name='sfsi_custom_MouseOverTexts[]']").each(function() {
|
565 |
sfsi_icons_perRow:e,
|
566 |
sfsi_icons_spacing:t,
|
567 |
sfsi_icons_ClickPageOpen:o,
|
568 |
+
|
569 |
+
// sfsi_icons_float:a,
|
570 |
+
// sfsi_disable_floaticons:dsb,
|
571 |
+
// sfsi_icons_floatPosition:r,
|
572 |
+
// sfsi_icons_floatMargin_top:mst,
|
573 |
+
// sfsi_icons_floatMargin_bottom:msb,
|
574 |
+
// sfsi_icons_floatMargin_left:msl,
|
575 |
+
// sfsi_icons_floatMargin_right:msr,
|
576 |
+
|
577 |
sfsi_icons_stick:c,
|
578 |
sfsi_rss_MouseOverText:v,
|
579 |
sfsi_email_MouseOverText:g,
|
812 |
});
|
813 |
}
|
814 |
|
815 |
+
// Queestion 3
|
816 |
+
function sfsi_update_step9()
|
817 |
+
{
|
818 |
+
var nonce = SFSI("#sfsi_save9").attr("data-nonce");
|
819 |
+
beForeLoad();
|
820 |
+
|
821 |
+
var i_float = SFSI("input[name='sfsi_icons_float']:checked").val(),
|
822 |
+
i_floatP = SFSI("input[name='sfsi_icons_floatPosition']:checked").val(),
|
823 |
+
i_floatMt = SFSI("input[name='sfsi_icons_floatMargin_top']").val(),
|
824 |
+
i_floatMb = SFSI("input[name='sfsi_icons_floatMargin_bottom']").val(),
|
825 |
+
i_floatMl = SFSI("input[name='sfsi_icons_floatMargin_left']").val(),
|
826 |
+
i_floatMr = SFSI("input[name='sfsi_icons_floatMargin_right']").val(),
|
827 |
+
i_disableFloat = SFSI("input[name='sfsi_disable_floaticons']:checked").val(),
|
828 |
+
|
829 |
+
show_via_widget = SFSI("input[name='sfsi_show_via_widget']").val(),
|
830 |
+
show_via__shortcode = SFSI("input[name='sfsi_show_via_shortcode']").val(),
|
831 |
+
sfsi_show_via_afterposts = SFSI("input[name='sfsi_show_via_afterposts']").val();
|
832 |
+
|
833 |
+
var f = {
|
834 |
+
|
835 |
+
action :"updateSrcn9",
|
836 |
+
|
837 |
+
sfsi_icons_float : i_float,
|
838 |
+
sfsi_icons_floatPosition : i_floatP,
|
839 |
+
sfsi_icons_floatMargin_top : i_floatMt,
|
840 |
+
sfsi_icons_floatMargin_bottom : i_floatMb,
|
841 |
+
sfsi_icons_floatMargin_left : i_floatMl,
|
842 |
+
sfsi_icons_floatMargin_right : i_floatMr,
|
843 |
+
sfsi_disable_floaticons : i_disableFloat,
|
844 |
+
|
845 |
+
sfsi_show_via_widget : show_via_widget,
|
846 |
+
sfsi_show_via_shortcode : show_via__shortcode,
|
847 |
+
sfsi_show_via_afterposts : sfsi_show_via_afterposts,
|
848 |
+
nonce:nonce
|
849 |
+
};
|
850 |
+
SFSI.ajax({
|
851 |
+
url:ajax_object.ajax_url,
|
852 |
+
type:"post",
|
853 |
+
data:f,
|
854 |
+
dataType:"json",
|
855 |
+
async:!0,
|
856 |
+
success:function(s) {
|
857 |
+
if(s == "wrong_nonce")
|
858 |
+
{
|
859 |
+
showErrorSuc("error", "Unauthorised Request, Try again after refreshing page", 9);
|
860 |
+
afterLoad();
|
861 |
+
}
|
862 |
+
else
|
863 |
+
{
|
864 |
+
"success" == s ? (showErrorSuc("success", "Saved !", 9), sfsicollapse("#sfsi_save9")) :showErrorSuc("error", "Unkown error , please try again", 9),
|
865 |
+
afterLoad();
|
866 |
+
}
|
867 |
+
}
|
868 |
+
});
|
869 |
+
}
|
870 |
+
|
871 |
function sfsi_validationStep2()
|
872 |
{
|
873 |
//var class_name= SFSI(element).hasAttr('sfsi_validate');
|
1304 |
return false;
|
1305 |
}
|
1306 |
/* validate icons effects */
|
1307 |
+
// if(SFSI('input[name="sfsi_icons_float"]:checked').val()=="yes" && SFSI('input[name="sfsi_icons_stick"]:checked').val()=="yes")
|
1308 |
+
// {
|
1309 |
+
// showErrorSuc("error","Error : Only one allow from Sticking & floating ",5);
|
1310 |
+
// SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", true);
|
1311 |
+
// return false;
|
1312 |
+
// }
|
1313 |
return true;
|
1314 |
}
|
1315 |
function sfsi_validationStep7()
|
1461 |
}
|
1462 |
|
1463 |
function afterLoad() {
|
1464 |
+
SFSI("input").removeClass("inputError"), SFSI(".save_button >a").html("Save"), SFSI(".tab10>div.save_button >a").html("Save All Settings"),
|
1465 |
SFSI(".save_button >a").css("pointer-events", "auto"), SFSI(".save_button >a").removeAttr("onclick"),
|
1466 |
SFSI(".loader-img").hide();
|
1467 |
}
|
2062 |
SFSI("#sfsi_save8").on("click", function() {
|
2063 |
sfsi_update_step8() && sfsicollapse(this);
|
2064 |
}),
|
2065 |
+
SFSI("#sfsi_save9").on("click", function() {
|
2066 |
+
sfsi_update_step9() && sfsicollapse(this);
|
2067 |
+
}),
|
2068 |
SFSI("#save_all_settings").on("click", function() {
|
2069 |
return SFSI("#save_all_settings").text("Saving.."), SFSI(".save_button >a").css("pointer-events", "none"),
|
2070 |
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),
|
2203 |
|
2204 |
SFSI(document).on("click", '.checkbox', function () {
|
2205 |
|
2206 |
+
var s = SFSI(this).parent().find("input:checkbox:first");
|
2207 |
+
var backgroundPos = jQuery(this).css('background-position').split(" ");
|
2208 |
+
var xPos = backgroundPos[0],yPos = backgroundPos[1];
|
2209 |
|
2210 |
if(s.attr('name')== "sfsi_custom_social_hide"){
|
2211 |
+
var val = (yPos=="0px") ? "no":"yes";
|
2212 |
+
SFSI('input[name="sfsi_custom_social_hide"]').val(val);
|
|
|
|
|
|
|
2213 |
}
|
2214 |
+
|
2215 |
+
if("sfsi_show_via_widget" == s.attr('name')
|
2216 |
+
|| "sfsi_show_via_shortcode" == s.attr('name')
|
2217 |
+
|| "sfsi_show_via_afterposts" == s.attr('name')
|
2218 |
+
|| "sfsi_custom_social_hide" == s.attr('name')
|
2219 |
+
)
|
2220 |
+
{
|
2221 |
+
var val = (yPos=="0px") ? "no":"yes";
|
2222 |
+
SFSI('input[name="'+s.attr('name')+'"]').val(val);
|
2223 |
+
}
|
2224 |
+
|
2225 |
});
|
2226 |
|
2227 |
//*------------------------------- Sharing text & pcitures checkbox for showing section in Page, Post CLOSES -------------------------------------//
|
2228 |
|
2229 |
/*SFSI(".radio").live("click", function() {*/
|
2230 |
SFSI(document).on("click", '.radio', function () {
|
2231 |
+
|
2232 |
var s = SFSI(this).parent().find("input:radio:first");
|
2233 |
"sfsi_email_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_email_countsDisplay"]').prop("checked", !0),
|
2234 |
SFSI('input[name="sfsi_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
|
2280 |
SFSI('input[name="sfsi_shares_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
|
2281 |
"manual" == SFSI("input[name='sfsi_shares_countsFrom']:checked").val() ? SFSI("input[name='sfsi_shares_manualCounts']").slideDown() :SFSI("input[name='sfsi_shares_manualCounts']").slideUp());
|
2282 |
}),
|
2283 |
+
|
2284 |
+
sfsi_make_popBox(),
|
2285 |
+
|
2286 |
SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
|
2287 |
SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
|
2288 |
+
|
2289 |
SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
|
2290 |
+
|
2291 |
/*SFSI(".radio").live("click", function(){*/
|
2292 |
SFSI(document).on("click", '.radio', function () {
|
2293 |
+
|
2294 |
var s = SFSI(this).parent().find("input:radio:first");
|
2295 |
+
|
2296 |
+
if("sfsi_icons_floatPosition" == s.attr("name")){
|
2297 |
+
SFSI('input[name="sfsi_icons_floatPosition"]').removeAttr("checked");
|
2298 |
+
s.attr("checked", true);
|
2299 |
+
}
|
2300 |
+
|
2301 |
+
if("sfsi_disable_floaticons" == s.attr("name")){
|
2302 |
+
SFSI('input[name="sfsi_disable_floaticons"]').removeAttr("checked");
|
2303 |
+
s.attr("checked", true);
|
2304 |
+
}
|
2305 |
+
|
2306 |
"sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
|
2307 |
}), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s) {
|
2308 |
s.stopPropagation();
|
2387 |
SFSI(this).text("Collapse")) :(SFSI(this).siblings("p").children("label").fadeOut("slow"),
|
2388 |
SFSI(this).text("Read more"));
|
2389 |
}), /*SFSI(".radio").live("click", function() {*/SFSI(document).on("click", '.radio', function () {
|
2390 |
+
|
2391 |
var s = SFSI(this).parent().find("input:radio:first");
|
2392 |
+
|
2393 |
"sfsi_icons_float" == s.attr("name") && "yes" == s.val() && (SFSI(".float_options").slideDown("slow"),
|
2394 |
+
|
2395 |
SFSI('input[name="sfsi_icons_stick"][value="no"]').attr("checked", !0), SFSI('input[name="sfsi_icons_stick"][value="yes"]').removeAttr("checked"),
|
2396 |
SFSI('input[name="sfsi_icons_stick"][value="no"]').parent().find("span").attr("style", "background-position:0px -41px;"),
|
2397 |
SFSI('input[name="sfsi_icons_stick"][value="yes"]').parent().find("span").attr("style", "background-position:0px -0px;")),
|
2398 |
+
|
2399 |
+
//("sfsi_icons_stick" == s.attr("name") && "yes" == s.val() || "sfsi_icons_float" == s.attr("name") && "no" == s.val()) && (SFSI(".float_options").slideUp("slow"),
|
2400 |
+
("sfsi_icons_stick" == s.attr("name") && "yes" == s.val()) && (SFSI(".float_options").slideUp("slow"),
|
2401 |
+
|
2402 |
SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", !0), SFSI('input[name="sfsi_icons_float"][value="yes"]').prop("checked", !1),
|
2403 |
SFSI('input[name="sfsi_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"),
|
2404 |
SFSI('input[name="sfsi_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
|
2405 |
+
|
2406 |
}),
|
2407 |
+
|
2408 |
SFSI(".sfsi_wDiv").length > 0 && setTimeout(function() {
|
2409 |
var s = parseInt(SFSI(".sfsi_wDiv").height()) + 0 + "px";
|
2410 |
SFSI(".sfsi_holders").each(function() {
|
2494 |
function checkforinfoslction(ref)
|
2495 |
{
|
2496 |
var pos = jQuery(ref).children(".checkbox").css("background-position");
|
2497 |
+
|
2498 |
+
var rightInfoClass = jQuery(ref).next().attr('class');
|
2499 |
+
|
2500 |
+
var rightInfoPElem = jQuery(ref).next("."+rightInfoClass).children("p").first();
|
2501 |
+
|
2502 |
+
var elemName = 'label';
|
2503 |
+
|
2504 |
+
if(pos == "0px 0px")
|
2505 |
+
{
|
2506 |
+
rightInfoPElem.children(elemName).hide();
|
2507 |
+
}
|
2508 |
+
else
|
2509 |
+
{
|
2510 |
+
rightInfoPElem.children(elemName).show();
|
2511 |
+
}
|
2512 |
+
}
|
2513 |
+
|
2514 |
+
function checkforinfoslction_checkbox(ref){
|
2515 |
+
|
2516 |
+
var pos = jQuery(ref).children(".checkbox").css("background-position");
|
2517 |
+
|
2518 |
+
var elem = jQuery(ref).parent().children('.sfsi_right_info').find('.kckslctn');
|
2519 |
+
|
2520 |
+
if(pos == "0px 0px")
|
2521 |
+
{
|
2522 |
+
elem.hide();
|
2523 |
+
}
|
2524 |
+
else
|
2525 |
+
{
|
2526 |
+
elem.show();
|
2527 |
+
}
|
2528 |
+
}
|
2529 |
+
|
2530 |
+
function sfsi_toggleflotpage_que3(ref)
|
2531 |
+
{
|
2532 |
+
var pos = jQuery(ref).children(".checkbox").css("background-position");
|
2533 |
+
if(pos == "0px 0px")
|
2534 |
+
{
|
2535 |
+
jQuery(ref).next(".sfsi_right_info").hide();
|
2536 |
+
|
2537 |
+
}
|
2538 |
+
else
|
2539 |
+
{
|
2540 |
+
jQuery(ref).next(".sfsi_right_info").show();
|
2541 |
+
}
|
2542 |
}
|
2543 |
+
|
2544 |
var initTop = new Array();
|
2545 |
+
|
2546 |
+
SFSI('.sfsi_navigate_to_question7').on("click",function(){
|
2547 |
+
|
2548 |
+
var elem = SFSI('#ui-id-6');
|
2549 |
+
|
2550 |
+
if(elem.hasClass('accordion-content-active')){
|
2551 |
+
|
2552 |
+
// Cloase tab of Question 3
|
2553 |
+
elem.find('.sfsiColbtn').trigger('click');
|
2554 |
+
|
2555 |
+
// Open tab of Question 7
|
2556 |
+
if(!SFSI('#ui-id-14').hasClass('accordion-content-active')){
|
2557 |
+
SFSI('#ui-id-13').trigger('click');
|
2558 |
+
}
|
2559 |
+
|
2560 |
+
var pos = SFSI("#ui-id-13").offset();
|
2561 |
+
var scrollToPos = pos.top - SFSI(window).height() * 0.99 + 30;
|
2562 |
+
SFSI('html,body').animate({scrollTop: scrollToPos}, 500);
|
2563 |
+
}
|
2564 |
+
});
|
2565 |
+
|
2566 |
SFSI("body").on("click", ".sfsi_tokenGenerateButton a", function(){
|
2567 |
var clienId = SFSI("input[name='sfsi_instagram_clientid']").val();
|
2568 |
var redirectUrl = SFSI("input[name='sfsi_instagram_appurl']").val();
|
js/customValidate.js
CHANGED
@@ -491,13 +491,13 @@ function sfsi_validationStep5()
|
|
491 |
return false;
|
492 |
}
|
493 |
|
494 |
-
|
495 |
-
if(SFSI('input[name="sfsi_icons_float"]:checked').val()=="yes" && SFSI('input[name="sfsi_icons_stick"]:checked').val()=="yes")
|
496 |
-
{
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
}
|
501 |
|
502 |
|
503 |
return true;
|
491 |
return false;
|
492 |
}
|
493 |
|
494 |
+
/* validate icons effects */
|
495 |
+
// if(SFSI('input[name="sfsi_icons_float"]:checked').val()=="yes" && SFSI('input[name="sfsi_icons_stick"]:checked').val()=="yes")
|
496 |
+
// {
|
497 |
+
// showErrorSuc("error","Error : Only one allow from Sticking & floating ",5);
|
498 |
+
// SFSI('input[name="sfsi_icons_float"][value="no"]').prop("checked", true);
|
499 |
+
// return false;
|
500 |
+
// }
|
501 |
|
502 |
|
503 |
return true;
|
libs/controllers/sfsi_buttons_controller.php
CHANGED
@@ -359,14 +359,16 @@ function sfsi_options_updater5()
|
|
359 |
$sfsi_icons_perRow = isset($_POST["sfsi_icons_perRow"]) ? $_POST["sfsi_icons_perRow"] : '5';
|
360 |
$sfsi_icons_ClickPageOpen = isset($_POST["sfsi_icons_ClickPageOpen"]) ? $_POST["sfsi_icons_ClickPageOpen"] : 'no';
|
361 |
|
362 |
-
$sfsi_icons_float = isset($_POST["sfsi_icons_float"]) ? $_POST["sfsi_icons_float"] : 'no';
|
363 |
-
$sfsi_disable_floaticons = isset($_POST["sfsi_disable_floaticons"]) ? $_POST["sfsi_disable_floaticons"] : 'no';
|
364 |
-
$sfsi_icons_floatPosition = isset($_POST["sfsi_icons_floatPosition"]) ? $_POST["sfsi_icons_floatPosition"] : 'center-right';
|
365 |
-
$sfsi_icons_floatMargin_top = isset($_POST["sfsi_icons_floatMargin_top"]) ? $_POST["sfsi_icons_floatMargin_top"] : '';
|
366 |
-
$sfsi_icons_floatMargin_bottom = isset($_POST["sfsi_icons_floatMargin_bottom"])? $_POST["sfsi_icons_floatMargin_bottom"]:'';
|
367 |
-
$sfsi_icons_floatMargin_left = isset($_POST["sfsi_icons_floatMargin_left"]) ? $_POST["sfsi_icons_floatMargin_left"] : '';
|
368 |
-
$sfsi_icons_floatMargin_right = isset($_POST["sfsi_icons_floatMargin_right"]) ? $_POST["sfsi_icons_floatMargin_right"]:'';
|
|
|
369 |
$sfsi_icons_stick = isset($_POST["sfsi_icons_stick"]) ? $_POST["sfsi_icons_stick"] : 'no';
|
|
|
370 |
$sfsi_rss_MouseOverText = isset($_POST["sfsi_rss_MouseOverText"]) ? $_POST["sfsi_rss_MouseOverText"] : '';
|
371 |
$sfsi_email_MouseOverText = isset($_POST["sfsi_email_MouseOverText"]) ? $_POST["sfsi_email_MouseOverText"] : '';
|
372 |
$sfsi_twitter_MouseOverText = isset($_POST["sfsi_twitter_MouseOverText"]) ? $_POST["sfsi_twitter_MouseOverText"] : '';
|
@@ -400,13 +402,15 @@ function sfsi_options_updater5()
|
|
400 |
'sfsi_icons_Alignment' => sanitize_text_field($sfsi_icons_Alignment),
|
401 |
'sfsi_icons_perRow' => intval($sfsi_icons_perRow),
|
402 |
'sfsi_icons_ClickPageOpen' => sanitize_text_field($sfsi_icons_ClickPageOpen),
|
403 |
-
|
404 |
-
'
|
405 |
-
'
|
406 |
-
'
|
407 |
-
'
|
408 |
-
'
|
409 |
-
'
|
|
|
|
|
410 |
'sfsi_icons_stick' => sanitize_text_field($sfsi_icons_stick),
|
411 |
/* mouse over texts */
|
412 |
'sfsi_rss_MouseOverText' => sanitize_text_field($sfsi_rss_MouseOverText),
|
@@ -445,7 +449,9 @@ function sfsi_options_updater6()
|
|
445 |
if ( !wp_verify_nonce( $_POST['nonce'], "update_step6")) {
|
446 |
echo json_encode(array("wrong_nonce")); exit;
|
447 |
}
|
|
|
448 |
$sfsi_show_Onposts = isset($_POST["sfsi_show_Onposts"]) ? $_POST["sfsi_show_Onposts"] : 'no';
|
|
|
449 |
$sfsi_icons_postPositon = isset($_POST["sfsi_icons_postPositon"]) ? $_POST["sfsi_icons_postPositon"] : '';
|
450 |
$sfsi_icons_alignment = isset($_POST["sfsi_icons_alignment"]) ? $_POST["sfsi_icons_alignment"] : 'center-right';
|
451 |
$sfsi_textBefor_icons = isset($_POST["sfsi_textBefor_icons"]) ? $_POST["sfsi_textBefor_icons"] : '';
|
@@ -459,7 +465,9 @@ function sfsi_options_updater6()
|
|
459 |
$sfsi_rectfbshare = isset($_POST["sfsi_rectfbshare"]) ? $_POST["sfsi_rectfbshare"] : 'no';
|
460 |
/* post options */
|
461 |
$up_option6=array(
|
|
|
462 |
'sfsi_show_Onposts' => sanitize_text_field($sfsi_show_Onposts),
|
|
|
463 |
'sfsi_icons_postPositon'=> sanitize_text_field($sfsi_icons_postPositon),
|
464 |
'sfsi_icons_alignment' => sanitize_text_field($sfsi_icons_alignment),
|
465 |
'sfsi_textBefor_icons' => sanitize_text_field(stripslashes($sfsi_textBefor_icons)),
|
@@ -528,35 +536,36 @@ function sfsi_options_updater8()
|
|
528 |
if ( !wp_verify_nonce( $_POST['nonce'], "update_step8")) {
|
529 |
echo json_encode(array("wrong_nonce")); exit;
|
530 |
}
|
|
|
531 |
$sfsi_form_adjustment = isset($_POST["sfsi_form_adjustment"]) ? $_POST["sfsi_form_adjustment"] : 'yes';
|
532 |
$sfsi_form_height = isset($_POST["sfsi_form_height"]) ? $_POST["sfsi_form_height"] : '180';
|
533 |
$sfsi_form_width = isset($_POST["sfsi_form_width"]) ? $_POST["sfsi_form_width"] : '230';
|
534 |
$sfsi_form_border = isset($_POST["sfsi_form_border"]) ? $_POST["sfsi_form_border"] : 'no';
|
535 |
$sfsi_form_border_thickness = isset($_POST["sfsi_form_border_thickness"]) ? $_POST["sfsi_form_border_thickness"] : '1';
|
536 |
-
$sfsi_form_border_color = isset($_POST["sfsi_form_border_color"]) ? $_POST["sfsi_form_border_color"] : '#
|
537 |
$sfsi_form_background = isset($_POST["sfsi_form_background"]) ? $_POST["sfsi_form_background"] : '#eff7f7';
|
538 |
|
539 |
-
$sfsi_form_heading_text = isset($_POST["sfsi_form_heading_text"]) ? $_POST["sfsi_form_heading_text"] : '';
|
540 |
-
$sfsi_form_heading_font = isset($_POST["sfsi_form_heading_font"]) ? $_POST["sfsi_form_heading_font"] : '';
|
541 |
-
$sfsi_form_heading_fontstyle= isset($_POST["sfsi_form_heading_fontstyle"]) ? $_POST["sfsi_form_heading_fontstyle"] : '';
|
542 |
-
$sfsi_form_heading_fontcolor= isset($_POST["sfsi_form_heading_fontcolor"]) ? $_POST["sfsi_form_heading_fontcolor"] : '';
|
543 |
-
$sfsi_form_heading_fontsize = isset($_POST["sfsi_form_heading_fontsize"]) ? $_POST["sfsi_form_heading_fontsize"] : '
|
544 |
$sfsi_form_heading_fontalign= isset($_POST["sfsi_form_heading_fontalign"]) ? $_POST["sfsi_form_heading_fontalign"] :'center';
|
545 |
|
546 |
-
$sfsi_form_field_text = isset($_POST["sfsi_form_field_text"]) ? $_POST["sfsi_form_field_text"] : '';
|
547 |
-
$sfsi_form_field_font = isset($_POST["sfsi_form_field_font"]) ? $_POST["sfsi_form_field_font"] : '';
|
548 |
-
$sfsi_form_field_fontstyle = isset($_POST["sfsi_form_field_fontstyle"]) ? $_POST["sfsi_form_field_fontstyle"] : '';
|
549 |
-
$sfsi_form_field_fontcolor = isset($_POST["sfsi_form_field_fontcolor"]) ? $_POST["sfsi_form_field_fontcolor"] : '';
|
550 |
-
$sfsi_form_field_fontsize = isset($_POST["sfsi_form_field_fontsize"]) ? $_POST["sfsi_form_field_fontsize"] : '
|
551 |
$sfsi_form_field_fontalign = isset($_POST["sfsi_form_field_fontalign"]) ? $_POST["sfsi_form_field_fontalign"] :'center';
|
552 |
|
553 |
$sfsi_form_button_text = isset($_POST["sfsi_form_button_text"]) ? $_POST["sfsi_form_button_text"] : 'Subscribe';
|
554 |
-
$sfsi_form_button_font = isset($_POST["sfsi_form_button_font"]) ? $_POST["sfsi_form_button_font"] : '';
|
555 |
-
$sfsi_form_button_fontstyle = isset($_POST["sfsi_form_button_fontstyle"]) ? $_POST["sfsi_form_button_fontstyle"] : '';
|
556 |
-
$sfsi_form_button_fontcolor = isset($_POST["sfsi_form_button_fontcolor"]) ? $_POST["sfsi_form_button_fontcolor"] : '';
|
557 |
-
$sfsi_form_button_fontsize = isset($_POST["sfsi_form_button_fontsize"]) ? $_POST["sfsi_form_button_fontsize"] : '
|
558 |
$sfsi_form_button_fontalign = isset($_POST["sfsi_form_button_fontalign"]) ? $_POST["sfsi_form_button_fontalign"] :'center';
|
559 |
-
$sfsi_form_button_background= isset($_POST["sfsi_form_button_background"]) ? $_POST["sfsi_form_button_background"]:'#
|
560 |
|
561 |
/* icons pop options */
|
562 |
$up_option8 = array(
|
@@ -594,6 +603,53 @@ function sfsi_options_updater8()
|
|
594 |
header('Content-Type: application/json');
|
595 |
echo json_encode(array("success")); exit;
|
596 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
597 |
/* upload custom icons images */
|
598 |
/* get counts for admin section */
|
599 |
function sfsi_getCounts()
|
359 |
$sfsi_icons_perRow = isset($_POST["sfsi_icons_perRow"]) ? $_POST["sfsi_icons_perRow"] : '5';
|
360 |
$sfsi_icons_ClickPageOpen = isset($_POST["sfsi_icons_ClickPageOpen"]) ? $_POST["sfsi_icons_ClickPageOpen"] : 'no';
|
361 |
|
362 |
+
// $sfsi_icons_float = isset($_POST["sfsi_icons_float"]) ? $_POST["sfsi_icons_float"] : 'no';
|
363 |
+
// $sfsi_disable_floaticons = isset($_POST["sfsi_disable_floaticons"]) ? $_POST["sfsi_disable_floaticons"] : 'no';
|
364 |
+
// $sfsi_icons_floatPosition = isset($_POST["sfsi_icons_floatPosition"]) ? $_POST["sfsi_icons_floatPosition"] : 'center-right';
|
365 |
+
// $sfsi_icons_floatMargin_top = isset($_POST["sfsi_icons_floatMargin_top"]) ? $_POST["sfsi_icons_floatMargin_top"] : '';
|
366 |
+
// $sfsi_icons_floatMargin_bottom = isset($_POST["sfsi_icons_floatMargin_bottom"])? $_POST["sfsi_icons_floatMargin_bottom"]:'';
|
367 |
+
// $sfsi_icons_floatMargin_left = isset($_POST["sfsi_icons_floatMargin_left"]) ? $_POST["sfsi_icons_floatMargin_left"] : '';
|
368 |
+
// $sfsi_icons_floatMargin_right = isset($_POST["sfsi_icons_floatMargin_right"]) ? $_POST["sfsi_icons_floatMargin_right"]:'';
|
369 |
+
|
370 |
$sfsi_icons_stick = isset($_POST["sfsi_icons_stick"]) ? $_POST["sfsi_icons_stick"] : 'no';
|
371 |
+
|
372 |
$sfsi_rss_MouseOverText = isset($_POST["sfsi_rss_MouseOverText"]) ? $_POST["sfsi_rss_MouseOverText"] : '';
|
373 |
$sfsi_email_MouseOverText = isset($_POST["sfsi_email_MouseOverText"]) ? $_POST["sfsi_email_MouseOverText"] : '';
|
374 |
$sfsi_twitter_MouseOverText = isset($_POST["sfsi_twitter_MouseOverText"]) ? $_POST["sfsi_twitter_MouseOverText"] : '';
|
402 |
'sfsi_icons_Alignment' => sanitize_text_field($sfsi_icons_Alignment),
|
403 |
'sfsi_icons_perRow' => intval($sfsi_icons_perRow),
|
404 |
'sfsi_icons_ClickPageOpen' => sanitize_text_field($sfsi_icons_ClickPageOpen),
|
405 |
+
|
406 |
+
// 'sfsi_icons_float' => sanitize_text_field($sfsi_icons_float),
|
407 |
+
// 'sfsi_disable_floaticons' => sanitize_text_field($sfsi_disable_floaticons),
|
408 |
+
// 'sfsi_icons_floatPosition' => sanitize_text_field($sfsi_icons_floatPosition),
|
409 |
+
// 'sfsi_icons_floatMargin_top' => intval($sfsi_icons_floatMargin_top),
|
410 |
+
// 'sfsi_icons_floatMargin_bottom' => intval($sfsi_icons_floatMargin_bottom),
|
411 |
+
// 'sfsi_icons_floatMargin_left' => intval($sfsi_icons_floatMargin_left),
|
412 |
+
// 'sfsi_icons_floatMargin_right' => intval($sfsi_icons_floatMargin_right),
|
413 |
+
|
414 |
'sfsi_icons_stick' => sanitize_text_field($sfsi_icons_stick),
|
415 |
/* mouse over texts */
|
416 |
'sfsi_rss_MouseOverText' => sanitize_text_field($sfsi_rss_MouseOverText),
|
449 |
if ( !wp_verify_nonce( $_POST['nonce'], "update_step6")) {
|
450 |
echo json_encode(array("wrong_nonce")); exit;
|
451 |
}
|
452 |
+
|
453 |
$sfsi_show_Onposts = isset($_POST["sfsi_show_Onposts"]) ? $_POST["sfsi_show_Onposts"] : 'no';
|
454 |
+
|
455 |
$sfsi_icons_postPositon = isset($_POST["sfsi_icons_postPositon"]) ? $_POST["sfsi_icons_postPositon"] : '';
|
456 |
$sfsi_icons_alignment = isset($_POST["sfsi_icons_alignment"]) ? $_POST["sfsi_icons_alignment"] : 'center-right';
|
457 |
$sfsi_textBefor_icons = isset($_POST["sfsi_textBefor_icons"]) ? $_POST["sfsi_textBefor_icons"] : '';
|
465 |
$sfsi_rectfbshare = isset($_POST["sfsi_rectfbshare"]) ? $_POST["sfsi_rectfbshare"] : 'no';
|
466 |
/* post options */
|
467 |
$up_option6=array(
|
468 |
+
|
469 |
'sfsi_show_Onposts' => sanitize_text_field($sfsi_show_Onposts),
|
470 |
+
|
471 |
'sfsi_icons_postPositon'=> sanitize_text_field($sfsi_icons_postPositon),
|
472 |
'sfsi_icons_alignment' => sanitize_text_field($sfsi_icons_alignment),
|
473 |
'sfsi_textBefor_icons' => sanitize_text_field(stripslashes($sfsi_textBefor_icons)),
|
536 |
if ( !wp_verify_nonce( $_POST['nonce'], "update_step8")) {
|
537 |
echo json_encode(array("wrong_nonce")); exit;
|
538 |
}
|
539 |
+
|
540 |
$sfsi_form_adjustment = isset($_POST["sfsi_form_adjustment"]) ? $_POST["sfsi_form_adjustment"] : 'yes';
|
541 |
$sfsi_form_height = isset($_POST["sfsi_form_height"]) ? $_POST["sfsi_form_height"] : '180';
|
542 |
$sfsi_form_width = isset($_POST["sfsi_form_width"]) ? $_POST["sfsi_form_width"] : '230';
|
543 |
$sfsi_form_border = isset($_POST["sfsi_form_border"]) ? $_POST["sfsi_form_border"] : 'no';
|
544 |
$sfsi_form_border_thickness = isset($_POST["sfsi_form_border_thickness"]) ? $_POST["sfsi_form_border_thickness"] : '1';
|
545 |
+
$sfsi_form_border_color = isset($_POST["sfsi_form_border_color"]) ? $_POST["sfsi_form_border_color"] : '#b5b5b5';
|
546 |
$sfsi_form_background = isset($_POST["sfsi_form_background"]) ? $_POST["sfsi_form_background"] : '#eff7f7';
|
547 |
|
548 |
+
$sfsi_form_heading_text = isset($_POST["sfsi_form_heading_text"]) ? $_POST["sfsi_form_heading_text"] : 'Get new posts by email';
|
549 |
+
$sfsi_form_heading_font = isset($_POST["sfsi_form_heading_font"]) ? $_POST["sfsi_form_heading_font"] : 'Helvetica,Arial,sans-serif';
|
550 |
+
$sfsi_form_heading_fontstyle= isset($_POST["sfsi_form_heading_fontstyle"]) ? $_POST["sfsi_form_heading_fontstyle"] : 'bold';
|
551 |
+
$sfsi_form_heading_fontcolor= isset($_POST["sfsi_form_heading_fontcolor"]) ? $_POST["sfsi_form_heading_fontcolor"] : '#000000';
|
552 |
+
$sfsi_form_heading_fontsize = isset($_POST["sfsi_form_heading_fontsize"]) ? $_POST["sfsi_form_heading_fontsize"] : '16';
|
553 |
$sfsi_form_heading_fontalign= isset($_POST["sfsi_form_heading_fontalign"]) ? $_POST["sfsi_form_heading_fontalign"] :'center';
|
554 |
|
555 |
+
$sfsi_form_field_text = isset($_POST["sfsi_form_field_text"]) ? $_POST["sfsi_form_field_text"] : 'Subscribe';
|
556 |
+
$sfsi_form_field_font = isset($_POST["sfsi_form_field_font"]) ? $_POST["sfsi_form_field_font"] : 'Helvetica,Arial,sans-serif';
|
557 |
+
$sfsi_form_field_fontstyle = isset($_POST["sfsi_form_field_fontstyle"]) ? $_POST["sfsi_form_field_fontstyle"] : 'normal';
|
558 |
+
$sfsi_form_field_fontcolor = isset($_POST["sfsi_form_field_fontcolor"]) ? $_POST["sfsi_form_field_fontcolor"] : '#000000';
|
559 |
+
$sfsi_form_field_fontsize = isset($_POST["sfsi_form_field_fontsize"]) ? $_POST["sfsi_form_field_fontsize"] : '14';
|
560 |
$sfsi_form_field_fontalign = isset($_POST["sfsi_form_field_fontalign"]) ? $_POST["sfsi_form_field_fontalign"] :'center';
|
561 |
|
562 |
$sfsi_form_button_text = isset($_POST["sfsi_form_button_text"]) ? $_POST["sfsi_form_button_text"] : 'Subscribe';
|
563 |
+
$sfsi_form_button_font = isset($_POST["sfsi_form_button_font"]) ? $_POST["sfsi_form_button_font"] : 'Helvetica,Arial,sans-serif';
|
564 |
+
$sfsi_form_button_fontstyle = isset($_POST["sfsi_form_button_fontstyle"]) ? $_POST["sfsi_form_button_fontstyle"] : 'bold';
|
565 |
+
$sfsi_form_button_fontcolor = isset($_POST["sfsi_form_button_fontcolor"]) ? $_POST["sfsi_form_button_fontcolor"] : '#000000';
|
566 |
+
$sfsi_form_button_fontsize = isset($_POST["sfsi_form_button_fontsize"]) ? $_POST["sfsi_form_button_fontsize"] : '16';
|
567 |
$sfsi_form_button_fontalign = isset($_POST["sfsi_form_button_fontalign"]) ? $_POST["sfsi_form_button_fontalign"] :'center';
|
568 |
+
$sfsi_form_button_background= isset($_POST["sfsi_form_button_background"]) ? $_POST["sfsi_form_button_background"]:'#dedede';
|
569 |
|
570 |
/* icons pop options */
|
571 |
$up_option8 = array(
|
603 |
header('Content-Type: application/json');
|
604 |
echo json_encode(array("success")); exit;
|
605 |
}
|
606 |
+
|
607 |
+
/* save settings for section 3 */
|
608 |
+
add_action('wp_ajax_updateSrcn9','sfsi_options_updater9');
|
609 |
+
function sfsi_options_updater9(){
|
610 |
+
|
611 |
+
if ( !wp_verify_nonce( $_POST['nonce'], "update_step9")) {
|
612 |
+
echo json_encode(array("wrong_nonce")); exit;
|
613 |
+
}
|
614 |
+
|
615 |
+
$sfsi_show_via_widget = isset($_POST["sfsi_show_via_widget"]) ? $_POST["sfsi_show_via_widget"] : 'no';
|
616 |
+
|
617 |
+
$sfsi_icons_float = isset($_POST["sfsi_icons_float"]) ? $_POST["sfsi_icons_float"] : 'no';
|
618 |
+
$sfsi_icons_floatPosition = isset($_POST["sfsi_icons_floatPosition"]) ? $_POST["sfsi_icons_floatPosition"] : 'center-right';
|
619 |
+
$sfsi_icons_floatMargin_top = isset($_POST["sfsi_icons_floatMargin_top"]) ? $_POST["sfsi_icons_floatMargin_top"] : '';
|
620 |
+
$sfsi_icons_floatMargin_bottom = isset($_POST["sfsi_icons_floatMargin_bottom"]) ? $_POST["sfsi_icons_floatMargin_bottom"]: '';
|
621 |
+
$sfsi_icons_floatMargin_left = isset($_POST["sfsi_icons_floatMargin_left"]) ? $_POST["sfsi_icons_floatMargin_left"] : '';
|
622 |
+
$sfsi_icons_floatMargin_right = isset($_POST["sfsi_icons_floatMargin_right"]) ? $_POST["sfsi_icons_floatMargin_right"] : '';
|
623 |
+
$sfsi_disable_floaticons = isset($_POST["sfsi_disable_floaticons"]) ? $_POST["sfsi_disable_floaticons"] : 'no';
|
624 |
+
|
625 |
+
$sfsi_show_via_shortcode = isset($_POST["sfsi_show_via_shortcode"]) ? $_POST["sfsi_show_via_shortcode"] : 'no';
|
626 |
+
|
627 |
+
$sfsi_show_via_afterposts = isset($_POST["sfsi_show_via_afterposts"]) ? $_POST["sfsi_show_via_afterposts"] : 'no';
|
628 |
+
|
629 |
+
|
630 |
+
/* icons pop options */
|
631 |
+
$up_option9 = array(
|
632 |
+
|
633 |
+
'sfsi_show_via_widget' => sanitize_text_field($sfsi_show_via_widget),
|
634 |
+
|
635 |
+
'sfsi_icons_float' => sanitize_text_field($sfsi_icons_float),
|
636 |
+
'sfsi_icons_floatPosition' => sanitize_text_field($sfsi_icons_floatPosition),
|
637 |
+
'sfsi_icons_floatMargin_top' => intval(sanitize_text_field($sfsi_icons_floatMargin_top)),
|
638 |
+
'sfsi_icons_floatMargin_bottom' => intval(sanitize_text_field($sfsi_icons_floatMargin_bottom)),
|
639 |
+
'sfsi_icons_floatMargin_left' => intval(sanitize_text_field($sfsi_icons_floatMargin_left)),
|
640 |
+
'sfsi_icons_floatMargin_right' => intval(sanitize_text_field($sfsi_icons_floatMargin_right)),
|
641 |
+
'sfsi_disable_floaticons' => sanitize_text_field($sfsi_disable_floaticons),
|
642 |
+
|
643 |
+
'sfsi_show_via_shortcode' => sanitize_text_field($sfsi_show_via_shortcode),
|
644 |
+
|
645 |
+
'sfsi_show_via_afterposts' => sanitize_text_field($sfsi_show_via_afterposts)
|
646 |
+
|
647 |
+
);
|
648 |
+
|
649 |
+
update_option('sfsi_section9_options',serialize($up_option9));
|
650 |
+
header('Content-Type: application/json');
|
651 |
+
echo json_encode(array("success")); exit;
|
652 |
+
}
|
653 |
/* upload custom icons images */
|
654 |
/* get counts for admin section */
|
655 |
function sfsi_getCounts()
|
libs/controllers/sfsi_floater_icons.php
CHANGED
@@ -1,9 +1,10 @@
|
|
1 |
<?php
|
2 |
/* make icons float icons even widget is not active */
|
3 |
function sfsi_frontFloter ($content) {
|
4 |
-
$
|
5 |
-
|
6 |
-
|
|
|
7 |
ob_start();
|
8 |
/* call the all icons function under sfsi_widget.php file */
|
9 |
echo sfsi_check_visiblity(1);
|
1 |
<?php
|
2 |
/* make icons float icons even widget is not active */
|
3 |
function sfsi_frontFloter ($content) {
|
4 |
+
$sfsi_section9= unserialize(get_option('sfsi_section9_options',false));
|
5 |
+
$sfsi_section9['sfsi_icons_float'];
|
6 |
+
|
7 |
+
if($sfsi_section9['sfsi_icons_float']=="yes") :
|
8 |
ob_start();
|
9 |
/* call the all icons function under sfsi_widget.php file */
|
10 |
echo sfsi_check_visiblity(1);
|
libs/controllers/sfsi_frontpopUp.php
CHANGED
@@ -62,42 +62,44 @@ function sfsi_check_PopUp($content)
|
|
62 |
$time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
|
63 |
$time_popUp = $time_popUp*1000;
|
64 |
ob_start();
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
|
|
|
|
101 |
}
|
102 |
if($sfsi_section7_options['sfsi_Shown_pop']=="LimitPopUp")
|
103 |
{
|
62 |
$time_popUp = (int) $sfsi_section7_options['sfsi_Shown_popupOnceTime'];
|
63 |
$time_popUp = $time_popUp*1000;
|
64 |
ob_start();
|
65 |
+
|
66 |
+
?>
|
67 |
+
<script>
|
68 |
+
jQuery( document ).scroll(function( $ )
|
69 |
+
{
|
70 |
+
var y = jQuery(this).scrollTop();
|
71 |
+
|
72 |
+
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))
|
73 |
+
{
|
74 |
+
if(jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height()-100)
|
75 |
+
{
|
76 |
+
jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+"px",position:"absolute"});
|
77 |
+
jQuery('.sfsi_outr_div').fadeIn(200);
|
78 |
+
jQuery('.sfsi_FrntInner_chg').fadeIn(200);
|
79 |
+
}
|
80 |
+
else{
|
81 |
+
jQuery('.sfsi_outr_div').fadeOut();
|
82 |
+
jQuery('.sfsi_FrntInner_chg').fadeOut();
|
83 |
+
}
|
84 |
+
}
|
85 |
+
else
|
86 |
+
{
|
87 |
+
if(jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height()-3)
|
88 |
+
{
|
89 |
+
jQuery('.sfsi_outr_div').css({'z-index':'9996',opacity:1,top:jQuery(window).scrollTop()+200+"px",position:"absolute"});
|
90 |
+
jQuery('.sfsi_outr_div').fadeIn(200);
|
91 |
+
jQuery('.sfsi_FrntInner_chg').fadeIn(200);
|
92 |
+
}
|
93 |
+
else
|
94 |
+
{
|
95 |
+
jQuery('.sfsi_outr_div').fadeOut();
|
96 |
+
jQuery('.sfsi_FrntInner_chg').fadeOut();
|
97 |
+
}
|
98 |
+
}
|
99 |
+
});
|
100 |
+
</script>
|
101 |
+
<?php
|
102 |
+
echo ob_get_clean();
|
103 |
}
|
104 |
if($sfsi_section7_options['sfsi_Shown_pop']=="LimitPopUp")
|
105 |
{
|
libs/controllers/sfsiocns_OnPosts.php
CHANGED
@@ -298,6 +298,8 @@ function sfsi_footer_script()
|
|
298 |
$sfsi_section6['sfsi_rectfbshare'] = 'no';
|
299 |
}
|
300 |
|
|
|
|
|
301 |
if($sfsi_section1['sfsi_facebook_display']=="yes" || ($sfsi_section6['sfsi_rectfb'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") || ($sfsi_section6['sfsi_rectfbshare'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes"))
|
302 |
{
|
303 |
?>
|
298 |
$sfsi_section6['sfsi_rectfbshare'] = 'no';
|
299 |
}
|
300 |
|
301 |
+
$sfsi_section6['sfsi_show_Onposts'] = isset($sfsi_section6['sfsi_show_Onposts']) && !empty($sfsi_section6['sfsi_show_Onposts']) ? $sfsi_section6['sfsi_show_Onposts'] : "no";
|
302 |
+
|
303 |
if($sfsi_section1['sfsi_facebook_display']=="yes" || ($sfsi_section6['sfsi_rectfb'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes") || ($sfsi_section6['sfsi_rectfbshare'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes"))
|
304 |
{
|
305 |
?>
|
libs/sfsi_Init_JqueryCss.php
CHANGED
@@ -17,9 +17,9 @@ function theme_back_enqueue_script()
|
|
17 |
}
|
18 |
|
19 |
//including floating option css
|
20 |
-
$
|
21 |
|
22 |
-
if($
|
23 |
{
|
24 |
wp_enqueue_style("disable_sfsi", SFSI_PLUGURL . 'css/disable_sfsi.css' );
|
25 |
}
|
@@ -86,8 +86,8 @@ function theme_front_enqueue_script()
|
|
86 |
wp_enqueue_style("SFSImainCss", SFSI_PLUGURL . 'css/sfsi-style.css', true);
|
87 |
|
88 |
//including floating option css
|
89 |
-
$
|
90 |
-
if($
|
91 |
{
|
92 |
wp_enqueue_style("disable_sfsi", SFSI_PLUGURL . 'css/disable_sfsi.css' );
|
93 |
}
|
17 |
}
|
18 |
|
19 |
//including floating option css
|
20 |
+
$option9= unserialize(get_option('sfsi_section9_options',false));
|
21 |
|
22 |
+
if($option9['sfsi_disable_floaticons'] == 'yes')
|
23 |
{
|
24 |
wp_enqueue_style("disable_sfsi", SFSI_PLUGURL . 'css/disable_sfsi.css' );
|
25 |
}
|
86 |
wp_enqueue_style("SFSImainCss", SFSI_PLUGURL . 'css/sfsi-style.css', true);
|
87 |
|
88 |
//including floating option css
|
89 |
+
$option9= unserialize(get_option('sfsi_section9_options',false));
|
90 |
+
if($option9['sfsi_disable_floaticons'] == 'yes')
|
91 |
{
|
92 |
wp_enqueue_style("disable_sfsi", SFSI_PLUGURL . 'css/disable_sfsi.css' );
|
93 |
}
|
libs/sfsi_install_uninstall.php
CHANGED
@@ -12,8 +12,7 @@ function sfsi_update_plugin()
|
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
-
update_option("sfsi_pluginVersion", "
|
16 |
-
|
17 |
|
18 |
if(!get_option('sfsi_serverphpVersionnotification'))
|
19 |
{
|
@@ -56,95 +55,35 @@ function sfsi_update_plugin()
|
|
56 |
add_option("sfsi_languageNotice", "yes");
|
57 |
}
|
58 |
|
59 |
-
/* subscription form */
|
60 |
-
$options8 = array('sfsi_form_adjustment'=>'yes',
|
61 |
-
'sfsi_form_height'=>'180',
|
62 |
-
'sfsi_form_width' =>'230',
|
63 |
-
'sfsi_form_border'=>'yes',
|
64 |
-
'sfsi_form_border_thickness'=>'1',
|
65 |
-
'sfsi_form_border_color'=>'#b5b5b5',
|
66 |
-
'sfsi_form_background'=>'#ffffff',
|
67 |
-
|
68 |
-
'sfsi_form_heading_text'=>'Get new posts by email',
|
69 |
-
'sfsi_form_heading_font'=>'Helvetica,Arial,sans-serif',
|
70 |
-
'sfsi_form_heading_fontstyle'=>'bold',
|
71 |
-
'sfsi_form_heading_fontcolor'=>'#000000',
|
72 |
-
'sfsi_form_heading_fontsize'=>'16',
|
73 |
-
'sfsi_form_heading_fontalign'=>'center',
|
74 |
-
|
75 |
-
'sfsi_form_field_text'=>'Enter your email',
|
76 |
-
'sfsi_form_field_font'=>'Helvetica,Arial,sans-serif',
|
77 |
-
'sfsi_form_field_fontstyle'=>'normal',
|
78 |
-
'sfsi_form_field_fontcolor'=>'#000000',
|
79 |
-
'sfsi_form_field_fontsize'=>'14',
|
80 |
-
'sfsi_form_field_fontalign'=>'center',
|
81 |
-
|
82 |
-
'sfsi_form_button_text'=>'Subscribe',
|
83 |
-
'sfsi_form_button_font'=>'Helvetica,Arial,sans-serif',
|
84 |
-
'sfsi_form_button_fontstyle'=>'bold',
|
85 |
-
'sfsi_form_button_fontcolor'=>'#000000',
|
86 |
-
'sfsi_form_button_fontsize'=>'16',
|
87 |
-
'sfsi_form_button_fontalign'=>'center',
|
88 |
-
'sfsi_form_button_background'=>'#dedede',
|
89 |
-
);
|
90 |
-
add_option('sfsi_section8_options', serialize($options8));
|
91 |
-
|
92 |
-
/*Float Icon setting*/
|
93 |
-
$option5 = unserialize(get_option('sfsi_section5_options',false));
|
94 |
-
if(isset($option5) && !empty($option5) && !isset($option5['sfsi_icons_floatMargin_top']))
|
95 |
-
{
|
96 |
-
$option5['sfsi_icons_floatMargin_top'] = '';
|
97 |
-
$option5['sfsi_icons_floatMargin_bottom'] = '';
|
98 |
-
$option5['sfsi_icons_floatMargin_left'] = '';
|
99 |
-
$option5['sfsi_icons_floatMargin_right'] = '';
|
100 |
-
update_option('sfsi_section5_options', serialize($option5));
|
101 |
-
}
|
102 |
-
|
103 |
-
/*Youtube Channelid settings*/
|
104 |
-
$option4 = unserialize(get_option('sfsi_section4_options',false));
|
105 |
-
if(isset($option4) && !empty($option4) && !isset($option4['sfsi_youtube_channelId']))
|
106 |
-
{
|
107 |
-
$option4['sfsi_youtube_channelId'] = '';
|
108 |
-
update_option('sfsi_section4_options', serialize($option4));
|
109 |
-
}
|
110 |
-
|
111 |
-
$option6= unserialize(get_option('sfsi_section6_options',false));
|
112 |
-
if(isset($option6) && !empty($option6))
|
113 |
-
{
|
114 |
-
if(!isset($option6['sfsi_rectpinit']))
|
115 |
-
{
|
116 |
-
$option6['sfsi_rectpinit'] = 'no';
|
117 |
-
}
|
118 |
-
if(!isset($option6['sfsi_rectfbshare']))
|
119 |
-
{
|
120 |
-
$option6['sfsi_rectfbshare'] = 'no';
|
121 |
-
}
|
122 |
-
update_option('sfsi_section6_options', serialize($option6));
|
123 |
-
}
|
124 |
-
|
125 |
/*Extra important options*/
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
|
|
|
|
|
|
|
|
132 |
$option4 = unserialize(get_option('sfsi_section4_options',false));
|
133 |
-
if(isset($option4) && !empty($option4) && !isset($option4['sfsi_instagram_clientid']))
|
134 |
-
{
|
135 |
-
$option4['sfsi_instagram_clientid'] = '';
|
136 |
-
$option4['sfsi_instagram_appurl'] = '';
|
137 |
-
$option4['sfsi_instagram_token'] = '';
|
138 |
-
}
|
139 |
|
140 |
-
$
|
141 |
-
if(isset($option5) && !empty($option5) && !isset($option5['sfsi_custom_social_hide']))
|
142 |
{
|
143 |
-
$
|
144 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
145 |
}
|
146 |
|
147 |
$option2 = unserialize(get_option('sfsi_section2_options',false));
|
|
|
148 |
if(isset($option2) && !empty($option2))
|
149 |
{
|
150 |
if(!isset($option2['sfsi_youtubeusernameorid'])){
|
@@ -168,8 +107,166 @@ function sfsi_update_plugin()
|
|
168 |
|
169 |
update_option('sfsi_section4_options', serialize($option4));
|
170 |
update_option('sfsi_section2_options', serialize($option2));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
}
|
|
|
173 |
function sfsi_activate_plugin()
|
174 |
{
|
175 |
add_option('sfsi_plugin_do_activation_redirect', true);
|
@@ -186,21 +283,23 @@ function sfsi_activate_plugin()
|
|
186 |
add_option("show_premium_cumulative_count_notification", "yes");
|
187 |
}
|
188 |
|
|
|
189 |
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
|
|
204 |
|
205 |
if(get_option('sfsi_feed_id') && get_option('sfsi_redirect_url'))
|
206 |
{
|
@@ -213,182 +312,260 @@ function sfsi_activate_plugin()
|
|
213 |
$sffeeds = SFSI_getFeedUrl();
|
214 |
}
|
215 |
|
216 |
-
|
217 |
-
$options2=array('sfsi_rss_url'=>sfsi_get_bloginfo('rss2_url'),
|
218 |
-
'sfsi_rss_icons' =>'email',
|
219 |
-
'sfsi_email_url' =>$sffeeds->redirect_url,
|
220 |
-
'sfsi_facebookPage_option' =>'no',
|
221 |
-
'sfsi_facebookPage_url' =>'',
|
222 |
-
'sfsi_facebookLike_option' =>'yes',
|
223 |
-
'sfsi_facebookShare_option' =>'yes',
|
224 |
-
'sfsi_twitter_followme' =>'no',
|
225 |
-
'sfsi_twitter_followUserName'=>'',
|
226 |
-
'sfsi_twitter_aboutPage' =>'yes',
|
227 |
-
'sfsi_twitter_page' =>'no',
|
228 |
-
'sfsi_twitter_pageURL' =>'',
|
229 |
-
'sfsi_twitter_aboutPageText' =>'Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name',
|
230 |
-
'sfsi_google_page' =>'no',
|
231 |
-
'sfsi_google_pageURL' =>'',
|
232 |
-
'sfsi_googleLike_option' =>'yes',
|
233 |
-
'sfsi_googleShare_option' =>'yes',
|
234 |
-
'sfsi_youtube_pageUrl' =>'',
|
235 |
-
'sfsi_youtube_page' =>'no',
|
236 |
-
'sfsi_youtubeusernameorid' => '',
|
237 |
-
'sfsi_ytube_chnlid' => '',
|
238 |
-
'sfsi_youtube_follow' =>'no',
|
239 |
-
'sfsi_pinterest_page' =>'no',
|
240 |
-
'sfsi_pinterest_pageUrl' =>'',
|
241 |
-
'sfsi_pinterest_pingBlog' =>'',
|
242 |
-
'sfsi_instagram_page' =>'no',
|
243 |
-
'sfsi_instagram_pageUrl' =>'',
|
244 |
-
'sfsi_linkedin_page' =>'no',
|
245 |
-
'sfsi_linkedin_pageURL' =>'',
|
246 |
-
'sfsi_linkedin_follow' =>'no',
|
247 |
-
'sfsi_linkedin_followCompany'=>'',
|
248 |
-
'sfsi_linkedin_SharePage' =>'yes',
|
249 |
-
'sfsi_linkedin_recommendBusines' =>'no',
|
250 |
-
'sfsi_linkedin_recommendCompany' =>'',
|
251 |
-
'sfsi_linkedin_recommendProductId'=>'',
|
252 |
-
'sfsi_CustomIcon_links' =>''
|
253 |
-
);
|
254 |
-
add_option('sfsi_section2_options', serialize($options2));
|
255 |
-
|
256 |
-
/* Design and animation option */
|
257 |
-
$options3=array('sfsi_mouseOver'=>'no',
|
258 |
-
'sfsi_mouseOver_effect'=>'fade_in',
|
259 |
-
'sfsi_shuffle_icons'=>'no',
|
260 |
-
'sfsi_shuffle_Firstload'=>'no',
|
261 |
-
'sfsi_shuffle_interval'=>'no',
|
262 |
-
'sfsi_shuffle_intervalTime'=>'',
|
263 |
-
'sfsi_actvite_theme'=>'default' );
|
264 |
-
add_option('sfsi_section3_options', serialize($options3));
|
265 |
-
|
266 |
-
/* display counts options */
|
267 |
-
$options4=array('sfsi_display_counts'=>'no',
|
268 |
-
'sfsi_email_countsDisplay'=>'no',
|
269 |
-
'sfsi_email_countsFrom'=>'source',
|
270 |
-
'sfsi_email_manualCounts'=>'20',
|
271 |
-
'sfsi_rss_countsDisplay'=>'no',
|
272 |
-
'sfsi_rss_manualCounts'=>'20',
|
273 |
-
'sfsi_facebook_PageLink'=>'',
|
274 |
-
'sfsi_facebook_countsDisplay'=>'no',
|
275 |
-
'sfsi_facebook_countsFrom'=>'manual',
|
276 |
-
'sfsi_facebook_manualCounts'=>'20',
|
277 |
-
'sfsi_twitter_countsDisplay'=>'no',
|
278 |
-
'sfsi_twitter_countsFrom'=>'manual',
|
279 |
-
'sfsi_twitter_manualCounts'=>'20',
|
280 |
-
'sfsi_google_api_key'=>'',
|
281 |
-
'sfsi_google_countsDisplay'=>'no',
|
282 |
-
'sfsi_google_countsFrom'=>'manual',
|
283 |
-
'sfsi_google_manualCounts'=>'20',
|
284 |
-
'sfsi_linkedIn_countsDisplay'=>'no',
|
285 |
-
'sfsi_linkedIn_countsFrom'=>'manual',
|
286 |
-
'sfsi_linkedIn_manualCounts'=>'20',
|
287 |
-
'ln_api_key'=>'',
|
288 |
-
'ln_secret_key'=>'',
|
289 |
-
'ln_oAuth_user_token'=>'',
|
290 |
-
'ln_company'=>'',
|
291 |
-
'sfsi_youtubeusernameorid'=>'name',
|
292 |
-
'sfsi_youtube_user'=>'',
|
293 |
-
'sfsi_youtube_channelId' =>'',
|
294 |
-
'sfsi_ytube_chnlid'=>'',
|
295 |
-
'sfsi_youtube_countsDisplay'=>'no',
|
296 |
-
'sfsi_youtube_countsFrom'=>'manual',
|
297 |
-
'sfsi_youtube_manualCounts'=>'20',
|
298 |
-
'sfsi_pinterest_countsDisplay'=>'no',
|
299 |
-
'sfsi_pinterest_countsFrom'=>'manual',
|
300 |
-
'sfsi_pinterest_manualCounts'=>'20',
|
301 |
-
'sfsi_pinterest_user'=>'',
|
302 |
-
'sfsi_pinterest_board'=>'',
|
303 |
-
|
304 |
-
'sfsi_instagram_countsFrom'=>'manual',
|
305 |
-
'sfsi_instagram_countsDisplay'=>'no',
|
306 |
-
'sfsi_instagram_manualCounts'=>'20',
|
307 |
|
308 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
309 |
|
310 |
-
|
311 |
-
|
312 |
-
|
313 |
-
|
314 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
315 |
|
316 |
-
|
317 |
-
|
318 |
-
|
319 |
-
'
|
320 |
-
|
321 |
-
|
322 |
-
|
323 |
-
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
|
334 |
-
|
335 |
-
|
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 |
/*Some additional option added*/
|
393 |
update_option('sfsi_feed_id',sanitize_text_field($sffeeds->feed_id));
|
394 |
update_option('sfsi_redirect_url',esc_url($sffeeds->redirect_url));
|
@@ -399,6 +576,7 @@ function sfsi_activate_plugin()
|
|
399 |
|
400 |
/*Changes in option 2*/
|
401 |
$get_option2 = unserialize(get_option('sfsi_section2_options',false));
|
|
|
402 |
$get_option2['sfsi_email_url'] = $sffeeds->redirect_url;
|
403 |
update_option('sfsi_section2_options', serialize($get_option2));
|
404 |
|
@@ -416,6 +594,8 @@ function sfsi_activate_plugin()
|
|
416 |
}
|
417 |
/* end function */
|
418 |
|
|
|
|
|
419 |
/* deactivate plugin */
|
420 |
function sfsi_deactivate_plugin()
|
421 |
{
|
@@ -455,6 +635,7 @@ function sfsi_Unistall_plugin()
|
|
455 |
delete_option('sfsi_section6_options');
|
456 |
delete_option('sfsi_section7_options');
|
457 |
delete_option('sfsi_section8_options');
|
|
|
458 |
delete_option('sfsi_feed_id');
|
459 |
delete_option('sfsi_redirect_url');
|
460 |
delete_option('sfsi_footer_sec');
|
12 |
}
|
13 |
|
14 |
//Install version
|
15 |
+
update_option("sfsi_pluginVersion", "2.00");
|
|
|
16 |
|
17 |
if(!get_option('sfsi_serverphpVersionnotification'))
|
18 |
{
|
55 |
add_option("sfsi_languageNotice", "yes");
|
56 |
}
|
57 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
/*Extra important options*/
|
59 |
+
if(!get_option('sfsi_instagram_sf_count')){
|
60 |
+
|
61 |
+
$sfsi_instagram_sf_count = array(
|
62 |
+
"date" => strtotime(date("Y-m-d")),
|
63 |
+
"sfsi_sf_count" => "",
|
64 |
+
"sfsi_instagram_count" => ""
|
65 |
+
);
|
66 |
+
add_option('sfsi_instagram_sf_count', serialize($sfsi_instagram_sf_count));
|
67 |
+
}
|
68 |
+
|
69 |
$option4 = unserialize(get_option('sfsi_section4_options',false));
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
|
71 |
+
if(isset($option4) && !empty($option4))
|
|
|
72 |
{
|
73 |
+
if(!isset($option4['sfsi_instagram_clientid'])){
|
74 |
+
$option4['sfsi_instagram_clientid'] = '';
|
75 |
+
$option4['sfsi_instagram_appurl'] = '';
|
76 |
+
$option4['sfsi_instagram_token'] = '';
|
77 |
+
}
|
78 |
+
|
79 |
+
/*Youtube Channelid settings*/
|
80 |
+
if(!isset($option4['sfsi_youtube_channelId'])){
|
81 |
+
$option4['sfsi_youtube_channelId'] = '';
|
82 |
+
}
|
83 |
}
|
84 |
|
85 |
$option2 = unserialize(get_option('sfsi_section2_options',false));
|
86 |
+
|
87 |
if(isset($option2) && !empty($option2))
|
88 |
{
|
89 |
if(!isset($option2['sfsi_youtubeusernameorid'])){
|
107 |
|
108 |
update_option('sfsi_section4_options', serialize($option4));
|
109 |
update_option('sfsi_section2_options', serialize($option2));
|
110 |
+
|
111 |
+
|
112 |
+
$option7 = unserialize(get_option('sfsi_section7_options',false));
|
113 |
+
$option7 = isset($option7) && !empty($option7) ? $option7 : array();
|
114 |
+
|
115 |
+
if(!isset($option7['sfsi_show_popup'])) { $option7['sfsi_show_popup'] = 'no'; }
|
116 |
+
if(!isset($option7['sfsi_popup_text'])) { $option7['sfsi_popup_text'] = 'Enjoy this blog? Please spread the word :)'; }
|
117 |
+
if(!isset($option7['sfsi_popup_background_color'])) { $option7['sfsi_popup_background_color'] = '#eff7f7'; }
|
118 |
+
if(!isset($option7['sfsi_popup_border_color'])) { $option7['sfsi_popup_border_color'] = '#f3faf2'; }
|
119 |
+
if(!isset($option7['sfsi_popup_border_thickness'])) { $option7['sfsi_popup_border_thickness'] = '1'; }
|
120 |
+
if(!isset($option7['sfsi_popup_border_shadow'])) { $option7['sfsi_popup_border_shadow'] = 'yes'; }
|
121 |
+
if(!isset($option7['sfsi_popup_font'])) { $option7['sfsi_popup_font'] = 'Helvetica,Arial,sans-serif';}
|
122 |
+
if(!isset($option7['sfsi_popup_fontSize'])) { $option7['sfsi_popup_fontSize'] = '30';}
|
123 |
+
if(!isset($option7['sfsi_popup_fontStyle'])) { $option7['sfsi_popup_fontStyle'] = 'normal';}
|
124 |
+
if(!isset($option7['sfsi_popup_fontColor'])) { $option7['sfsi_popup_fontColor'] = '#000000';}
|
125 |
+
if(!isset($option7['sfsi_Show_popupOn'])) { $option7['sfsi_Show_popupOn'] = 'none';}
|
126 |
+
if(!isset($option7['sfsi_Show_popupOn_PageIDs'])) { $option7['sfsi_Show_popupOn_PageIDs'] = '';}
|
127 |
+
if(!isset($option7['sfsi_Shown_popupOnceTime'])) { $option7['sfsi_Shown_popupOnceTime'] = '';}
|
128 |
+
if(!isset($option7['sfsi_Shown_popuplimitPerUserTime'])) { $option7['sfsi_Shown_popuplimitPerUserTime'] = '';}
|
129 |
+
|
130 |
+
update_option('sfsi_section7_options', serialize($option7));
|
131 |
+
|
132 |
+
/* subscription form */
|
133 |
+
$option8 = unserialize(get_option('sfsi_section8_options',false));
|
134 |
+
$option8 = isset($option8) && !empty($option8) ? $option8 : array();
|
135 |
+
|
136 |
+
if(!isset($option8['sfsi_form_adjustment'])) { $option8['sfsi_form_adjustment'] = 'yes';}
|
137 |
+
if(!isset($option8['sfsi_form_height'])) { $option8['sfsi_form_height'] = '180';}
|
138 |
+
if(!isset($option8['sfsi_form_width'])) { $option8['sfsi_form_width'] = '230';}
|
139 |
+
if(!isset($option8['sfsi_form_border'])) { $option8['sfsi_form_border'] = 'yes';}
|
140 |
+
if(!isset($option8['sfsi_form_border_thickness'])) { $option8['sfsi_form_border_thickness'] = '1';}
|
141 |
+
if(!isset($option8['sfsi_form_border_color'])) { $option8['sfsi_form_border_color'] = '#b5b5b5';}
|
142 |
+
if(!isset($option8['sfsi_form_background'])) { $option8['sfsi_form_background'] = '#ffffff';} //
|
143 |
+
if(!isset($option8['sfsi_form_heading_text'])) { $option8['sfsi_form_heading_text'] = 'Get new posts by email';}
|
144 |
+
if(!isset($option8['sfsi_form_heading_font'])) { $option8['sfsi_form_heading_font'] = 'Helvetica,Arial,sans-serif';}
|
145 |
+
if(!isset($option8['sfsi_form_heading_fontstyle'])) { $option8['sfsi_form_heading_fontstyle'] = 'bold';}
|
146 |
+
if(!isset($option8['sfsi_form_heading_fontcolor'])) { $option8['sfsi_form_heading_fontcolor'] = '#000000';}
|
147 |
+
if(!isset($option8['sfsi_form_heading_fontsize'])) { $option8['sfsi_form_heading_fontsize'] = '16';}
|
148 |
+
if(!isset($option8['sfsi_form_heading_fontalign'])) { $option8['sfsi_form_heading_fontalign'] = 'center';}
|
149 |
+
if(!isset($option8['sfsi_form_field_text'])) { $option8['sfsi_form_field_text'] = 'Enter your email';}
|
150 |
+
if(!isset($option8['sfsi_form_field_font'])) { $option8['sfsi_form_field_font'] = 'Helvetica,Arial,sans-serif';}
|
151 |
+
if(!isset($option8['sfsi_form_field_fontstyle'])) { $option8['sfsi_form_field_fontstyle'] = 'normal';}
|
152 |
+
if(!isset($option8['sfsi_form_field_fontcolor'])) { $option8['sfsi_form_field_fontcolor'] = '#000000';}
|
153 |
+
if(!isset($option8['sfsi_form_field_fontsize'])) { $option8['sfsi_form_field_fontsize'] = '14';}
|
154 |
+
if(!isset($option8['sfsi_form_field_fontalign'])) { $option8['sfsi_form_field_fontalign'] = 'center';}
|
155 |
+
if(!isset($option8['sfsi_form_button_text'])) { $option8['sfsi_form_button_text'] = 'Subscribe';}
|
156 |
+
if(!isset($option8['sfsi_form_button_font'])) { $option8['sfsi_form_button_font'] = 'Helvetica,Arial,sans-serif';}
|
157 |
+
if(!isset($option8['sfsi_form_button_fontstyle'])) { $option8['sfsi_form_button_fontstyle'] = 'bold';}
|
158 |
+
if(!isset($option8['sfsi_form_button_fontcolor'])) { $option8['sfsi_form_button_fontcolor'] = '#000000';}
|
159 |
+
if(!isset($option8['sfsi_form_button_fontsize'])) { $option8['sfsi_form_button_fontsize'] = '16';}
|
160 |
+
if(!isset($option8['sfsi_form_button_fontalign'])) { $option8['sfsi_form_button_fontalign'] = 'center';}
|
161 |
+
if(!isset($option8['sfsi_form_button_background'])) { $option8['sfsi_form_button_background'] = '#dedede';}
|
162 |
+
|
163 |
+
update_option('sfsi_section8_options', serialize($option8));
|
164 |
+
|
165 |
+
|
166 |
+
/*Float Icon setting*/
|
167 |
+
$option5 = unserialize(get_option('sfsi_section5_options',false));
|
168 |
+
|
169 |
+
$sfsi_show_via_widget = 'no';
|
170 |
+
|
171 |
+
$sfsi_icons_float = 'no';
|
172 |
+
$sfsi_icons_floatPosition = 'center-right';
|
173 |
+
$sfsi_icons_floatMargin_top = '';
|
174 |
+
$sfsi_icons_floatMargin_bottom = '';
|
175 |
+
$sfsi_icons_floatMargin_left = '';
|
176 |
+
$sfsi_icons_floatMargin_right = '';
|
177 |
+
$sfsi_disable_floaticons = 'no';
|
178 |
+
|
179 |
+
$sfsi_show_via_shortcode = 'no';
|
180 |
+
$sfsi_show_via_afterposts = 'no';
|
181 |
+
|
182 |
+
|
183 |
+
if(isset($option5) && !empty($option5))
|
184 |
+
{
|
185 |
+
if(isset($option5['sfsi_icons_float'])){
|
186 |
+
$sfsi_icons_float = $option5['sfsi_icons_float'];
|
187 |
+
unset($option5['sfsi_icons_float']);
|
188 |
+
}
|
189 |
+
|
190 |
+
if(isset($option5['sfsi_icons_floatPosition'])){
|
191 |
+
$sfsi_icons_floatPosition = $option5['sfsi_icons_floatPosition'];
|
192 |
+
unset($option5['sfsi_icons_floatPosition']);
|
193 |
+
}
|
194 |
+
|
195 |
+
if(isset($option5['sfsi_icons_floatMargin_top'])){
|
196 |
+
$sfsi_icons_floatMargin_top = $option5['sfsi_icons_floatMargin_top'];
|
197 |
+
unset($option5['sfsi_icons_floatMargin_top']);
|
198 |
+
}
|
199 |
+
|
200 |
+
if(isset($option5['sfsi_icons_floatMargin_bottom'])){
|
201 |
+
$sfsi_icons_floatMargin_bottom = $option5['sfsi_icons_floatMargin_bottom'];
|
202 |
+
unset($option5['sfsi_icons_floatMargin_bottom']);
|
203 |
+
}
|
204 |
+
|
205 |
+
if(isset($option5['sfsi_icons_floatMargin_left'])){
|
206 |
+
$sfsi_icons_floatMargin_left = $option5['sfsi_icons_floatMargin_left'];
|
207 |
+
unset($option5['sfsi_icons_floatMargin_left']);
|
208 |
+
}
|
209 |
+
|
210 |
+
if(isset($option5['sfsi_icons_floatMargin_right'])){
|
211 |
+
$sfsi_icons_floatMargin_right = $option5['sfsi_icons_floatMargin_right'];
|
212 |
+
unset($option5['sfsi_icons_floatMargin_right']);
|
213 |
+
}
|
214 |
+
|
215 |
+
if(isset($option5['sfsi_disable_floaticons'])){
|
216 |
+
$sfsi_disable_floaticons = $option5['sfsi_disable_floaticons'];
|
217 |
+
unset($option5['sfsi_disable_floaticons']);
|
218 |
+
}
|
219 |
+
|
220 |
+
if(isset($option5['sfsi_custom_social_hide'])){
|
221 |
+
$option5['sfsi_custom_social_hide'] = 'no';
|
222 |
+
}
|
223 |
+
}
|
224 |
+
|
225 |
+
update_option('sfsi_section5_options', serialize($option5));
|
226 |
|
227 |
+
$option6= unserialize(get_option('sfsi_section6_options',false));
|
228 |
+
|
229 |
+
if(isset($option6) && !empty($option6))
|
230 |
+
{
|
231 |
+
if(!isset($option6['sfsi_rectpinit']))
|
232 |
+
{
|
233 |
+
$option6['sfsi_rectpinit'] = 'no';
|
234 |
+
}
|
235 |
+
if(!isset($option6['sfsi_rectfbshare']))
|
236 |
+
{
|
237 |
+
$option6['sfsi_rectfbshare'] = 'no';
|
238 |
+
}
|
239 |
+
|
240 |
+
update_option('sfsi_section6_options', serialize($option6));
|
241 |
+
}
|
242 |
+
|
243 |
+
|
244 |
+
// Setting default values for Question 3
|
245 |
+
$option9 = unserialize(get_option('sfsi_section9_options',false));
|
246 |
+
$option9 = isset($option9) && !empty($option9) ? $option9 : array();
|
247 |
+
|
248 |
+
if(!isset($option9['sfsi_show_via_widget'])){
|
249 |
+
|
250 |
+
if(class_exists('Sfsi_Widget')){
|
251 |
+
$widegtObj = new Sfsi_Widget();
|
252 |
+
$sfsi_show_via_widget = is_active_widget(false,false,$widegtObj->id_base,true) ? "yes" : "no";
|
253 |
+
}
|
254 |
+
$option9['sfsi_show_via_widget'] = $sfsi_show_via_widget;
|
255 |
+
}
|
256 |
+
|
257 |
+
if(!isset($option9['sfsi_show_via_shortcode'])) { $option9['sfsi_show_via_shortcode'] = $sfsi_show_via_shortcode;}
|
258 |
+
if(!isset($option9['sfsi_show_via_afterposts'])) { $option9['sfsi_show_via_afterposts'] = $sfsi_show_via_afterposts;}
|
259 |
+
if(!isset($option9['sfsi_icons_float'])) { $option9['sfsi_icons_float'] = $sfsi_icons_float;}
|
260 |
+
if(!isset($option9['sfsi_icons_floatPosition'])) { $option9['sfsi_icons_floatPosition'] = $sfsi_icons_floatPosition;}
|
261 |
+
if(!isset($option9['sfsi_icons_floatMargin_top'])) { $option9['sfsi_icons_floatMargin_top'] = $sfsi_icons_floatMargin_top;}
|
262 |
+
if(!isset($option9['sfsi_icons_floatMargin_bottom'])){ $option9['sfsi_icons_floatMargin_bottom'] = $sfsi_icons_floatMargin_bottom;}
|
263 |
+
if(!isset($option9['sfsi_icons_floatMargin_left'])) { $option9['sfsi_icons_floatMargin_left'] = $sfsi_icons_floatMargin_left;}
|
264 |
+
if(!isset($option9['sfsi_icons_floatMargin_right'])) { $option9['sfsi_icons_floatMargin_right'] = $sfsi_icons_floatMargin_right;}
|
265 |
+
if(!isset($option9['sfsi_disable_floaticons'])) { $option9['sfsi_disable_floaticons'] = $sfsi_disable_floaticons;}
|
266 |
+
|
267 |
+
update_option('sfsi_section9_options', serialize($option9));
|
268 |
}
|
269 |
+
|
270 |
function sfsi_activate_plugin()
|
271 |
{
|
272 |
add_option('sfsi_plugin_do_activation_redirect', true);
|
283 |
add_option("show_premium_cumulative_count_notification", "yes");
|
284 |
}
|
285 |
|
286 |
+
if(!get_option('sfsi_section1_options')){
|
287 |
|
288 |
+
$options1=array('sfsi_rss_display'=>'yes',
|
289 |
+
'sfsi_email_display'=>'yes',
|
290 |
+
'sfsi_facebook_display'=>'yes',
|
291 |
+
'sfsi_twitter_display'=>'yes',
|
292 |
+
'sfsi_google_display'=>'yes',
|
293 |
+
'sfsi_share_display'=>'no',
|
294 |
+
'sfsi_pinterest_display'=>'no',
|
295 |
+
'sfsi_instagram_display'=>'no',
|
296 |
+
'sfsi_linkedin_display'=>'no',
|
297 |
+
'sfsi_youtube_display'=>'no',
|
298 |
+
'sfsi_custom_display'=>'',
|
299 |
+
'sfsi_custom_files'=>''
|
300 |
+
);
|
301 |
+
add_option('sfsi_section1_options', serialize($options1));
|
302 |
+
}
|
303 |
|
304 |
if(get_option('sfsi_feed_id') && get_option('sfsi_redirect_url'))
|
305 |
{
|
312 |
$sffeeds = SFSI_getFeedUrl();
|
313 |
}
|
314 |
|
315 |
+
if(!get_option('sfsi_section2_options')){
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
316 |
|
317 |
+
/* Links and icons options */
|
318 |
+
$options2=array('sfsi_rss_url'=>sfsi_get_bloginfo('rss2_url'),
|
319 |
+
'sfsi_rss_icons' =>'email',
|
320 |
+
'sfsi_email_url' =>$sffeeds->redirect_url,
|
321 |
+
'sfsi_facebookPage_option' =>'no',
|
322 |
+
'sfsi_facebookPage_url' =>'',
|
323 |
+
'sfsi_facebookLike_option' =>'yes',
|
324 |
+
'sfsi_facebookShare_option' =>'yes',
|
325 |
+
'sfsi_twitter_followme' =>'no',
|
326 |
+
'sfsi_twitter_followUserName'=>'',
|
327 |
+
'sfsi_twitter_aboutPage' =>'yes',
|
328 |
+
'sfsi_twitter_page' =>'no',
|
329 |
+
'sfsi_twitter_pageURL' =>'',
|
330 |
+
'sfsi_twitter_aboutPageText' =>'Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name',
|
331 |
+
'sfsi_google_page' =>'no',
|
332 |
+
'sfsi_google_pageURL' =>'',
|
333 |
+
'sfsi_googleLike_option' =>'yes',
|
334 |
+
'sfsi_googleShare_option' =>'yes',
|
335 |
+
'sfsi_youtube_pageUrl' =>'',
|
336 |
+
'sfsi_youtube_page' =>'no',
|
337 |
+
'sfsi_youtubeusernameorid' => '',
|
338 |
+
'sfsi_ytube_chnlid' => '',
|
339 |
+
'sfsi_youtube_follow' =>'no',
|
340 |
+
'sfsi_pinterest_page' =>'no',
|
341 |
+
'sfsi_pinterest_pageUrl' =>'',
|
342 |
+
'sfsi_pinterest_pingBlog' =>'',
|
343 |
+
'sfsi_instagram_page' =>'no',
|
344 |
+
'sfsi_instagram_pageUrl' =>'',
|
345 |
+
'sfsi_linkedin_page' =>'no',
|
346 |
+
'sfsi_linkedin_pageURL' =>'',
|
347 |
+
'sfsi_linkedin_follow' =>'no',
|
348 |
+
'sfsi_linkedin_followCompany'=>'',
|
349 |
+
'sfsi_linkedin_SharePage' =>'yes',
|
350 |
+
'sfsi_linkedin_recommendBusines' =>'no',
|
351 |
+
'sfsi_linkedin_recommendCompany' =>'',
|
352 |
+
'sfsi_linkedin_recommendProductId'=>'',
|
353 |
+
'sfsi_CustomIcon_links' =>''
|
354 |
+
);
|
355 |
+
add_option('sfsi_section2_options', serialize($options2));
|
356 |
+
}
|
357 |
|
358 |
+
if(!get_option('sfsi_section3_options')){
|
359 |
+
|
360 |
+
/* Design and animation option */
|
361 |
+
$options3=array('sfsi_mouseOver'=>'no',
|
362 |
+
'sfsi_mouseOver_effect'=>'fade_in',
|
363 |
+
'sfsi_shuffle_icons'=>'no',
|
364 |
+
'sfsi_shuffle_Firstload'=>'no',
|
365 |
+
'sfsi_shuffle_interval'=>'no',
|
366 |
+
'sfsi_shuffle_intervalTime'=>'',
|
367 |
+
'sfsi_actvite_theme'=>'default' );
|
368 |
+
add_option('sfsi_section3_options', serialize($options3));
|
369 |
+
}
|
370 |
|
371 |
+
if(!get_option('sfsi_section4_options')){
|
372 |
+
|
373 |
+
/* display counts options */
|
374 |
+
$options4=array('sfsi_display_counts'=>'no',
|
375 |
+
'sfsi_email_countsDisplay'=>'no',
|
376 |
+
'sfsi_email_countsFrom'=>'source',
|
377 |
+
'sfsi_email_manualCounts'=>'20',
|
378 |
+
'sfsi_rss_countsDisplay'=>'no',
|
379 |
+
'sfsi_rss_manualCounts'=>'20',
|
380 |
+
'sfsi_facebook_PageLink'=>'',
|
381 |
+
'sfsi_facebook_countsDisplay'=>'no',
|
382 |
+
'sfsi_facebook_countsFrom'=>'manual',
|
383 |
+
'sfsi_facebook_manualCounts'=>'20',
|
384 |
+
'sfsi_twitter_countsDisplay'=>'no',
|
385 |
+
'sfsi_twitter_countsFrom'=>'manual',
|
386 |
+
'sfsi_twitter_manualCounts'=>'20',
|
387 |
+
'sfsi_google_api_key'=>'',
|
388 |
+
'sfsi_google_countsDisplay'=>'no',
|
389 |
+
'sfsi_google_countsFrom'=>'manual',
|
390 |
+
'sfsi_google_manualCounts'=>'20',
|
391 |
+
'sfsi_linkedIn_countsDisplay'=>'no',
|
392 |
+
'sfsi_linkedIn_countsFrom'=>'manual',
|
393 |
+
'sfsi_linkedIn_manualCounts'=>'20',
|
394 |
+
'ln_api_key'=>'',
|
395 |
+
'ln_secret_key'=>'',
|
396 |
+
'ln_oAuth_user_token'=>'',
|
397 |
+
'ln_company'=>'',
|
398 |
+
'sfsi_youtubeusernameorid'=>'name',
|
399 |
+
'sfsi_youtube_user'=>'',
|
400 |
+
'sfsi_youtube_channelId' =>'',
|
401 |
+
'sfsi_ytube_chnlid'=>'',
|
402 |
+
'sfsi_youtube_countsDisplay'=>'no',
|
403 |
+
'sfsi_youtube_countsFrom'=>'manual',
|
404 |
+
'sfsi_youtube_manualCounts'=>'20',
|
405 |
+
'sfsi_pinterest_countsDisplay'=>'no',
|
406 |
+
'sfsi_pinterest_countsFrom'=>'manual',
|
407 |
+
'sfsi_pinterest_manualCounts'=>'20',
|
408 |
+
'sfsi_pinterest_user'=>'',
|
409 |
+
'sfsi_pinterest_board'=>'',
|
410 |
+
|
411 |
+
'sfsi_instagram_countsFrom'=>'manual',
|
412 |
+
'sfsi_instagram_countsDisplay'=>'no',
|
413 |
+
'sfsi_instagram_manualCounts'=>'20',
|
414 |
+
|
415 |
+
'sfsi_instagram_User'=>'',
|
416 |
+
|
417 |
+
'sfsi_shares_countsDisplay'=>'no',
|
418 |
+
'sfsi_shares_countsFrom'=>'manual',
|
419 |
+
'sfsi_shares_manualCounts'=>'20'
|
420 |
);
|
421 |
+
add_option('sfsi_section4_options', serialize($options4));
|
422 |
+
}
|
423 |
|
424 |
+
if(!get_option('sfsi_section5_options')){
|
425 |
+
|
426 |
+
$options5=array(
|
427 |
+
'sfsi_icons_size'=>'40',
|
428 |
+
'sfsi_icons_spacing'=>'5',
|
429 |
+
'sfsi_icons_Alignment'=>'left',
|
430 |
+
'sfsi_icons_perRow'=>'5',
|
431 |
+
'sfsi_icons_ClickPageOpen'=>'yes',
|
432 |
+
'sfsi_icons_float'=>'no',
|
433 |
+
'sfsi_disable_floaticons'=>'no',
|
434 |
+
'sfsi_icons_floatPosition'=>'center-right',
|
435 |
+
'sfsi_icons_floatMargin_top'=>'',
|
436 |
+
'sfsi_icons_floatMargin_bottom'=>'',
|
437 |
+
'sfsi_icons_floatMargin_left'=>'',
|
438 |
+
'sfsi_icons_floatMargin_right'=>'',
|
439 |
+
'sfsi_icons_stick'=>'no',
|
440 |
+
'sfsi_rssIcon_order'=>'1',
|
441 |
+
'sfsi_emailIcon_order'=>'2',
|
442 |
+
'sfsi_facebookIcon_order'=>'3',
|
443 |
+
'sfsi_googleIcon_order'=>'4',
|
444 |
+
'sfsi_twitterIcon_order'=>'5',
|
445 |
+
'sfsi_shareIcon_order'=>'6',
|
446 |
+
'sfsi_youtubeIcon_order'=>'7',
|
447 |
+
'sfsi_pinterestIcon_order'=>'8',
|
448 |
+
'sfsi_linkedinIcon_order'=>'9',
|
449 |
+
'sfsi_instagramIcon_order'=>'10',
|
450 |
+
'sfsi_CustomIcons_order'=>'',
|
451 |
+
'sfsi_rss_MouseOverText'=>'RSS',
|
452 |
+
'sfsi_email_MouseOverText'=>'Follow by Email',
|
453 |
+
'sfsi_twitter_MouseOverText'=>'Twitter',
|
454 |
+
'sfsi_facebook_MouseOverText'=>'Facebook',
|
455 |
+
'sfsi_google_MouseOverText'=>'Google+',
|
456 |
+
'sfsi_linkedIn_MouseOverText'=>'LinkedIn',
|
457 |
+
'sfsi_pinterest_MouseOverText'=>'Pinterest',
|
458 |
+
'sfsi_instagram_MouseOverText'=>'Instagram',
|
459 |
+
'sfsi_youtube_MouseOverText'=>'YouTube',
|
460 |
+
'sfsi_share_MouseOverText'=>'Share',
|
461 |
+
'sfsi_custom_MouseOverTexts'=>'',
|
462 |
+
'sfsi_custom_social_hide' => 'no'
|
463 |
+
);
|
464 |
+
add_option('sfsi_section5_options', serialize($options5));
|
465 |
+
}
|
466 |
|
467 |
+
if(!get_option('sfsi_section6_options')){
|
468 |
+
|
469 |
+
/* post options */
|
470 |
+
$options6=array('sfsi_show_Onposts'=>'no',
|
471 |
+
'sfsi_show_Onbottom'=>'no',
|
472 |
+
'sfsi_icons_postPositon'=>'source',
|
473 |
+
'sfsi_icons_alignment'=>'center-right',
|
474 |
+
'sfsi_rss_countsDisplay'=>'no',
|
475 |
+
'sfsi_textBefor_icons'=>'Please follow and like us:',
|
476 |
+
'sfsi_icons_DisplayCounts'=>'no',
|
477 |
+
'sfsi_rectsub'=>'yes',
|
478 |
+
'sfsi_rectfb'=>'yes',
|
479 |
+
'sfsi_rectgp'=>'yes',
|
480 |
+
'sfsi_rectshr'=>'no',
|
481 |
+
'sfsi_recttwtr'=>'yes',
|
482 |
+
'sfsi_rectpinit'=>'yes',
|
483 |
+
'sfsi_rectfbshare'=>'yes'
|
484 |
+
);
|
485 |
+
add_option('sfsi_section6_options', serialize($options6));
|
486 |
+
}
|
487 |
|
488 |
+
if(!get_option('sfsi_section7_options')){
|
489 |
+
|
490 |
+
/* icons pop options */
|
491 |
+
$options7=array('sfsi_show_popup'=>'no',
|
492 |
+
'sfsi_popup_text'=>'Enjoy this blog? Please spread the word :)',
|
493 |
+
'sfsi_popup_background_color'=>'#eff7f7',
|
494 |
+
'sfsi_popup_border_color'=>'#f3faf2',
|
495 |
+
'sfsi_popup_border_thickness'=>'1',
|
496 |
+
'sfsi_popup_border_shadow'=>'yes',
|
497 |
+
'sfsi_popup_font'=>'Helvetica,Arial,sans-serif',
|
498 |
+
'sfsi_popup_fontSize'=>'30',
|
499 |
+
'sfsi_popup_fontStyle'=>'normal',
|
500 |
+
'sfsi_popup_fontColor'=>'#000000',
|
501 |
+
'sfsi_Show_popupOn'=>'none',
|
502 |
+
'sfsi_Show_popupOn_PageIDs'=>'',
|
503 |
+
'sfsi_Shown_pop'=>'ETscroll',
|
504 |
+
'sfsi_Shown_popupOnceTime'=>'',
|
505 |
+
'sfsi_Shown_popuplimitPerUserTime'=>'',
|
506 |
+
);
|
507 |
+
add_option('sfsi_section7_options', serialize($options7));
|
508 |
+
}
|
509 |
+
|
510 |
+
if(!get_option('sfsi_section8_options')){
|
511 |
+
|
512 |
+
/* Question 8 */
|
513 |
+
$options8=array(
|
514 |
+
'sfsi_form_adjustment' => 'yes',
|
515 |
+
'sfsi_form_height' => '180',
|
516 |
+
'sfsi_form_width' => '230',
|
517 |
+
'sfsi_form_border' => 'no',
|
518 |
+
'sfsi_form_border_thickness'=> '1',
|
519 |
+
'sfsi_form_border_color' => '#b5b5b5',
|
520 |
+
'sfsi_form_background' => '#ffffff',
|
521 |
+
|
522 |
+
'sfsi_form_heading_text' => 'Get new posts by email',
|
523 |
+
'sfsi_form_heading_font' => 'Helvetica,Arial,sans-serif',
|
524 |
+
'sfsi_form_heading_fontstyle'=> 'bold',
|
525 |
+
'sfsi_form_heading_fontcolor'=> '#000000',
|
526 |
+
'sfsi_form_heading_fontsize'=> '16',
|
527 |
+
'sfsi_form_heading_fontalign'=> 'center',
|
528 |
+
|
529 |
+
'sfsi_form_field_text' => 'Subscribe',
|
530 |
+
'sfsi_form_field_font' => 'Helvetica,Arial,sans-serif',
|
531 |
+
'sfsi_form_field_fontstyle' => 'normal',
|
532 |
+
'sfsi_form_field_fontcolor' => '#000000',
|
533 |
+
'sfsi_form_field_fontsize' => '14',
|
534 |
+
'sfsi_form_field_fontalign' => 'center',
|
535 |
+
|
536 |
+
'sfsi_form_button_text' => 'Subscribe',
|
537 |
+
'sfsi_form_button_font' => 'Helvetica,Arial,sans-serif',
|
538 |
+
'sfsi_form_button_fontstyle'=> 'bold',
|
539 |
+
'sfsi_form_button_fontcolor'=> '#000000',
|
540 |
+
'sfsi_form_button_fontsize' => '16',
|
541 |
+
'sfsi_form_button_fontalign'=> 'center',
|
542 |
+
'sfsi_form_button_background'=> '#dedede',
|
543 |
+
);
|
544 |
+
add_option('sfsi_section8_options', serialize($options8));
|
545 |
+
}
|
546 |
+
|
547 |
+
if(!get_option('sfsi_section9_options')){
|
548 |
+
|
549 |
+
/* Question 3->Where shall they be displayed? */
|
550 |
+
$options9 =array(
|
551 |
+
|
552 |
+
'sfsi_show_via_widget' => 'no',
|
553 |
+
|
554 |
+
'sfsi_icons_float' => 'no',
|
555 |
+
'sfsi_icons_floatPosition' => 'center-right',
|
556 |
+
'sfsi_icons_floatMargin_top' => '',
|
557 |
+
'sfsi_icons_floatMargin_bottom' => '',
|
558 |
+
'sfsi_icons_floatMargin_left' => '',
|
559 |
+
'sfsi_icons_floatMargin_right' => '',
|
560 |
+
'sfsi_disable_floaticons' => 'no',
|
561 |
+
|
562 |
+
'sfsi_show_via_shortcode' => 'no',
|
563 |
+
'sfsi_show_via_afterposts' => 'no'
|
564 |
+
|
565 |
+
);
|
566 |
+
add_option('sfsi_section9_options', serialize($options9));
|
567 |
+
}
|
568 |
+
|
569 |
/*Some additional option added*/
|
570 |
update_option('sfsi_feed_id',sanitize_text_field($sffeeds->feed_id));
|
571 |
update_option('sfsi_redirect_url',esc_url($sffeeds->redirect_url));
|
576 |
|
577 |
/*Changes in option 2*/
|
578 |
$get_option2 = unserialize(get_option('sfsi_section2_options',false));
|
579 |
+
|
580 |
$get_option2['sfsi_email_url'] = $sffeeds->redirect_url;
|
581 |
update_option('sfsi_section2_options', serialize($get_option2));
|
582 |
|
594 |
}
|
595 |
/* end function */
|
596 |
|
597 |
+
|
598 |
+
|
599 |
/* deactivate plugin */
|
600 |
function sfsi_deactivate_plugin()
|
601 |
{
|
635 |
delete_option('sfsi_section6_options');
|
636 |
delete_option('sfsi_section7_options');
|
637 |
delete_option('sfsi_section8_options');
|
638 |
+
delete_option('sfsi_section9_options');
|
639 |
delete_option('sfsi_feed_id');
|
640 |
delete_option('sfsi_redirect_url');
|
641 |
delete_option('sfsi_footer_sec');
|
libs/sfsi_widget.php
CHANGED
@@ -26,10 +26,12 @@ class Sfsi_Widget extends WP_Widget
|
|
26 |
{
|
27 |
extract( $args );
|
28 |
/*Our variables from the widget settings. */
|
29 |
-
$title
|
30 |
-
$show_info
|
|
|
31 |
global $is_floter;
|
32 |
echo $before_widget;
|
|
|
33 |
/* Display the widget title */
|
34 |
if ( $title ) echo $before_title . $title . $after_title;
|
35 |
?>
|
@@ -109,18 +111,19 @@ function sfsi_check_visiblity($isFloter=0)
|
|
109 |
global $wpdb;
|
110 |
/* Access the saved settings in database */
|
111 |
$sfsi_section1_options = unserialize(get_option('sfsi_section1_options',false));
|
112 |
-
$sfsi_section3
|
113 |
-
$sfsi_section5
|
|
|
114 |
|
115 |
/* calculate the width and icons display alignments */
|
116 |
-
$icons_space
|
117 |
-
$icons_size
|
118 |
-
$icons_per_row
|
119 |
|
120 |
-
$icons_alignment
|
121 |
-
$position
|
122 |
-
$position1
|
123 |
-
$jquery='<script>';
|
124 |
|
125 |
$jquery .= 'jQuery(".sfsi_widget").each(function( index ) {
|
126 |
if(jQuery(this).attr("data-position") == "widget")
|
@@ -152,10 +155,10 @@ function sfsi_check_visiblity($isFloter=0)
|
|
152 |
}
|
153 |
|
154 |
/* check if icons floating is activated in admin */
|
155 |
-
if($
|
156 |
{
|
157 |
$top = "15";
|
158 |
-
switch($
|
159 |
{
|
160 |
case "top-left" : if(is_admin_bar_showing()) : $position.="position:absolute;left:30px;top:35px;"; $top="35"; else : $position.="position:absolute;left:10px;top:2%"; $top="10"; endif;
|
161 |
break;
|
@@ -165,13 +168,27 @@ function sfsi_check_visiblity($isFloter=0)
|
|
165 |
break;
|
166 |
case "center-left" : $position.="position:absolute;left:30px;top:50%"; $top="center";
|
167 |
break;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
168 |
case "bottom-right" : $position.="position:absolute;right:30px;bottom:0px"; $top="bottom";
|
169 |
break;
|
170 |
case "bottom-left" : $position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
|
171 |
break;
|
172 |
}
|
173 |
//$jquery.="jQuery( document ).ready(function( $ ) { sfsi_float_widget('".$top."')});";
|
174 |
-
if($
|
175 |
{
|
176 |
$jquery.="jQuery( document ).ready(function( $ )
|
177 |
{
|
@@ -180,6 +197,15 @@ function sfsi_check_visiblity($isFloter=0)
|
|
180 |
sfsi_float_widget('".$top."');
|
181 |
});";
|
182 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
183 |
else
|
184 |
{
|
185 |
$jquery.="jQuery( document ).ready(function( $ ) { sfsi_float_widget('".$top."')});";
|
@@ -235,11 +261,12 @@ function sfsi_check_visiblity($isFloter=0)
|
|
235 |
if(!empty($icons_per_row))
|
236 |
{
|
237 |
$width = ((int)$icons_space+(int)$icons_size)*(int)$icons_per_row;
|
238 |
-
$main_width = $width
|
239 |
$main_width = $main_width."px";
|
240 |
}
|
241 |
else
|
242 |
{
|
|
|
243 |
$main_width = "35%";
|
244 |
}
|
245 |
|
@@ -276,41 +303,44 @@ function sfsi_check_visiblity($isFloter=0)
|
|
276 |
|
277 |
$jquery.="</script>";
|
278 |
$icons.='</div >';
|
279 |
-
|
|
|
|
|
280 |
$icons_main.=$icons.'<div id="sfsi_holder" class="sfsi_holders" style="position: relative; float: left;width:100%;z-index:-1;"></div >'.$jquery;
|
281 |
/* if floating of icons is active create a floater div */
|
282 |
$icons_float='';
|
283 |
-
|
|
|
284 |
{
|
285 |
-
if($
|
286 |
{
|
287 |
-
$styleMargin = "margin-top:".$
|
288 |
}
|
289 |
-
elseif($
|
290 |
{
|
291 |
-
$styleMargin = "margin-top:".$
|
292 |
}
|
293 |
-
elseif($
|
294 |
{
|
295 |
-
$styleMargin = "margin-left:".$
|
296 |
}
|
297 |
-
elseif($
|
298 |
{
|
299 |
-
$styleMargin = "margin-right:".$
|
300 |
}
|
301 |
-
elseif($
|
302 |
{
|
303 |
-
$styleMargin = "margin-bottom:".$
|
304 |
}
|
305 |
-
elseif($
|
306 |
{
|
307 |
-
$styleMargin = "margin-bottom:".$
|
308 |
-
}
|
309 |
|
310 |
-
$icons_float = '<style type="text/css">#sfsi_floater { '.$styleMargin.' }</style>';
|
311 |
$icons_float .= '<div class="norm_row sfsi_wDiv" id="sfsi_floater" style="z-index: 9999;width:'.$width.'px;text-align:'.$icons_alignment.';'.$position.'">';
|
312 |
$icons_float .= $icons;
|
313 |
-
$icons_float .= "<input type='hidden' id='sfsi_floater_sec' value='".$
|
314 |
$icons_float.="</div>".$jquery;
|
315 |
return $icons_float; exit;
|
316 |
}
|
26 |
{
|
27 |
extract( $args );
|
28 |
/*Our variables from the widget settings. */
|
29 |
+
$title = apply_filters('widget_title', $instance['title'] );
|
30 |
+
$show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
|
31 |
+
|
32 |
global $is_floter;
|
33 |
echo $before_widget;
|
34 |
+
|
35 |
/* Display the widget title */
|
36 |
if ( $title ) echo $before_title . $title . $after_title;
|
37 |
?>
|
111 |
global $wpdb;
|
112 |
/* Access the saved settings in database */
|
113 |
$sfsi_section1_options = unserialize(get_option('sfsi_section1_options',false));
|
114 |
+
$sfsi_section3 = unserialize(get_option('sfsi_section3_options',false));
|
115 |
+
$sfsi_section5 = unserialize(get_option('sfsi_section5_options',false));
|
116 |
+
$sfsi_section9 = unserialize(get_option('sfsi_section9_options',false));
|
117 |
|
118 |
/* calculate the width and icons display alignments */
|
119 |
+
$icons_space = $sfsi_section5['sfsi_icons_spacing'];
|
120 |
+
$icons_size = $sfsi_section5['sfsi_icons_size'];
|
121 |
+
$icons_per_row = ($sfsi_section5['sfsi_icons_perRow'])? $sfsi_section5['sfsi_icons_perRow'] : '';
|
122 |
|
123 |
+
$icons_alignment = $sfsi_section5['sfsi_icons_Alignment'];
|
124 |
+
$position = 'position:absolute;';
|
125 |
+
$position1 = 'position:absolute;';
|
126 |
+
$jquery ='<script>';
|
127 |
|
128 |
$jquery .= 'jQuery(".sfsi_widget").each(function( index ) {
|
129 |
if(jQuery(this).attr("data-position") == "widget")
|
155 |
}
|
156 |
|
157 |
/* check if icons floating is activated in admin */
|
158 |
+
if($sfsi_section9['sfsi_icons_float']=="yes")
|
159 |
{
|
160 |
$top = "15";
|
161 |
+
switch($sfsi_section9['sfsi_icons_floatPosition'])
|
162 |
{
|
163 |
case "top-left" : if(is_admin_bar_showing()) : $position.="position:absolute;left:30px;top:35px;"; $top="35"; else : $position.="position:absolute;left:10px;top:2%"; $top="10"; endif;
|
164 |
break;
|
168 |
break;
|
169 |
case "center-left" : $position.="position:absolute;left:30px;top:50%"; $top="center";
|
170 |
break;
|
171 |
+
case "center-top" :
|
172 |
+
if(is_admin_bar_showing())
|
173 |
+
{
|
174 |
+
$position .= "left:50%;top:35px;"; $top="35";
|
175 |
+
}
|
176 |
+
else
|
177 |
+
{
|
178 |
+
$position .= "left:50%;top:10px;"; $top="10";
|
179 |
+
}
|
180 |
+
break;
|
181 |
+
case "center-bottom" :
|
182 |
+
$position .= "left:50%;bottom:0px"; $top="bottom";
|
183 |
+
break;
|
184 |
+
|
185 |
case "bottom-right" : $position.="position:absolute;right:30px;bottom:0px"; $top="bottom";
|
186 |
break;
|
187 |
case "bottom-left" : $position.="position:absolute;left:30px;bottom:0px"; $top="bottom";
|
188 |
break;
|
189 |
}
|
190 |
//$jquery.="jQuery( document ).ready(function( $ ) { sfsi_float_widget('".$top."')});";
|
191 |
+
if($sfsi_section9['sfsi_icons_floatPosition'] == 'center-right' || $sfsi_section9['sfsi_icons_floatPosition'] == 'center-left')
|
192 |
{
|
193 |
$jquery.="jQuery( document ).ready(function( $ )
|
194 |
{
|
197 |
sfsi_float_widget('".$top."');
|
198 |
});";
|
199 |
}
|
200 |
+
else if($sfsi_section9['sfsi_icons_floatPosition'] == 'center-top' || $sfsi_section9['sfsi_icons_floatPosition'] == 'center-bottom'){
|
201 |
+
|
202 |
+
$jquery.="jQuery(document).ready(function( $ )
|
203 |
+
{
|
204 |
+
var leftalign = ( jQuery(window).width() - jQuery('#sfsi_floater').width() ) / 2;
|
205 |
+
jQuery('#sfsi_floater').css('left',leftalign);
|
206 |
+
sfsi_float_widget('".$top."');
|
207 |
+
});";
|
208 |
+
}
|
209 |
else
|
210 |
{
|
211 |
$jquery.="jQuery( document ).ready(function( $ ) { sfsi_float_widget('".$top."')});";
|
261 |
if(!empty($icons_per_row))
|
262 |
{
|
263 |
$width = ((int)$icons_space+(int)$icons_size)*(int)$icons_per_row;
|
264 |
+
$main_width = $width = $width+$extra;
|
265 |
$main_width = $main_width."px";
|
266 |
}
|
267 |
else
|
268 |
{
|
269 |
+
$width = ((int)$icons_space+(int)$icons_size);
|
270 |
$main_width = "35%";
|
271 |
}
|
272 |
|
303 |
|
304 |
$jquery.="</script>";
|
305 |
$icons.='</div >';
|
306 |
+
|
307 |
+
$margin = $width+11;
|
308 |
+
|
309 |
$icons_main.=$icons.'<div id="sfsi_holder" class="sfsi_holders" style="position: relative; float: left;width:100%;z-index:-1;"></div >'.$jquery;
|
310 |
/* if floating of icons is active create a floater div */
|
311 |
$icons_float='';
|
312 |
+
|
313 |
+
if($sfsi_section9['sfsi_icons_float']=="yes" && $isFloter==1)
|
314 |
{
|
315 |
+
if($sfsi_section9['sfsi_icons_floatPosition'] == "top-left")
|
316 |
{
|
317 |
+
$styleMargin = "margin-top:".$sfsi_section9['sfsi_icons_floatMargin_top']."px;margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
|
318 |
}
|
319 |
+
elseif($sfsi_section9['sfsi_icons_floatPosition'] == "top-right")
|
320 |
{
|
321 |
+
$styleMargin = "margin-top:".$sfsi_section9['sfsi_icons_floatMargin_top']."px;margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
|
322 |
}
|
323 |
+
elseif($sfsi_section9['sfsi_icons_floatPosition'] == "center-left")
|
324 |
{
|
325 |
+
$styleMargin = "margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
|
326 |
}
|
327 |
+
elseif($sfsi_section9['sfsi_icons_floatPosition'] == "center-right")
|
328 |
{
|
329 |
+
$styleMargin = "margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
|
330 |
}
|
331 |
+
elseif($sfsi_section9['sfsi_icons_floatPosition'] == "bottom-left")
|
332 |
{
|
333 |
+
$styleMargin = "margin-bottom:".$sfsi_section9['sfsi_icons_floatMargin_bottom']."px;margin-left:".$sfsi_section9['sfsi_icons_floatMargin_left']."px;";
|
334 |
}
|
335 |
+
elseif($sfsi_section9['sfsi_icons_floatPosition'] == "bottom-right")
|
336 |
{
|
337 |
+
$styleMargin = "margin-bottom:".$sfsi_section9['sfsi_icons_floatMargin_bottom']."px;margin-right:".$sfsi_section9['sfsi_icons_floatMargin_right']."px;";
|
338 |
+
}
|
339 |
|
340 |
+
$icons_float = isset($styleMargin) && !empty($styleMargin) ? '<style type="text/css">#sfsi_floater { '.$styleMargin.' }</style>' : '';
|
341 |
$icons_float .= '<div class="norm_row sfsi_wDiv" id="sfsi_floater" style="z-index: 9999;width:'.$width.'px;text-align:'.$icons_alignment.';'.$position.'">';
|
342 |
$icons_float .= $icons;
|
343 |
+
$icons_float .= "<input type='hidden' id='sfsi_floater_sec' value='".$sfsi_section9['sfsi_icons_floatPosition']."' />";
|
344 |
$icons_float.="</div>".$jquery;
|
345 |
return $icons_float; exit;
|
346 |
}
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: socialdude
|
|
3 |
Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.9.4
|
6 |
-
Stable tag:
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -275,7 +275,7 @@ You cannot use the same plugin twice, however you can install both the USM as we
|
|
275 |
|
276 |
== Changelog ==
|
277 |
|
278 |
-
=
|
279 |
* New question 3 to facilitate placement of icons
|
280 |
|
281 |
= 1.9.7 =
|
@@ -699,5 +699,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
|
|
699 |
|
700 |
== Upgrade Notice ==
|
701 |
|
702 |
-
=
|
703 |
Please upgrade
|
3 |
Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
|
4 |
Requires at least: 2.8
|
5 |
Tested up to: 4.9.4
|
6 |
+
Stable tag: 2.0.0
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
275 |
|
276 |
== Changelog ==
|
277 |
|
278 |
+
= 2.0.0 =
|
279 |
* New question 3 to facilitate placement of icons
|
280 |
|
281 |
= 1.9.7 =
|
699 |
|
700 |
== Upgrade Notice ==
|
701 |
|
702 |
+
= 2.0.0 =
|
703 |
Please upgrade
|
ultimate_social_media_icons.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://ultimatelysocial.com
|
|
5 |
Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
|
6 |
Author: UltimatelySocial
|
7 |
Author URI: http://ultimatelysocial.com
|
8 |
-
Version:
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
@@ -55,7 +55,7 @@ register_activation_hook(__FILE__, 'sfsi_activate_plugin' );
|
|
55 |
register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
|
56 |
register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
|
57 |
|
58 |
-
if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') <
|
59 |
{
|
60 |
add_action("init", "sfsi_update_plugin");
|
61 |
}
|
@@ -81,9 +81,11 @@ function DISPLAY_ULTIMATE_SOCIAL_ICONS($args = null, $content = null)
|
|
81 |
if(!isset($after_widget)): $after_widget =''; endif;
|
82 |
|
83 |
/*Our variables from the widget settings. */
|
84 |
-
$title
|
85 |
-
$show_info
|
|
|
86 |
global $is_floter;
|
|
|
87 |
$return.= $before_widget;
|
88 |
/* Display the widget title */
|
89 |
if ( $title ) $return .= $before_title . $title . $after_title;
|
@@ -707,7 +709,10 @@ function sfsi_actionLinks($links)
|
|
707 |
$links[] = '<a target="_blank" href="https://goo.gl/auxJ9C#no-topic-0" id="sfsi_deactivateButton" style="color:#FF0000;"><b>Need help?</b></a>';
|
708 |
$links[] = '<a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_manage_plugin_page&utm_campaign=check_out_pro_version&utm_medium=banner" id="sfsi_deactivateButton" style="color:#38B54A;"><b>Check out pro version</b></a>';
|
709 |
$links[] = @$links["deactivate"];
|
710 |
-
|
|
|
|
|
|
|
711 |
$links[] = '<a href="'.admin_url("/admin.php?page=sfsi-options").'">Settings</a>';
|
712 |
unset($links['deactivate']);
|
713 |
unset($links['edit']);
|
5 |
Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
|
6 |
Author: UltimatelySocial
|
7 |
Author URI: http://ultimatelysocial.com
|
8 |
+
Version: 2.0.0
|
9 |
License: GPLv2 or later
|
10 |
*/
|
11 |
|
55 |
register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
|
56 |
register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
|
57 |
|
58 |
+
if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.00)
|
59 |
{
|
60 |
add_action("init", "sfsi_update_plugin");
|
61 |
}
|
81 |
if(!isset($after_widget)): $after_widget =''; endif;
|
82 |
|
83 |
/*Our variables from the widget settings. */
|
84 |
+
$title = apply_filters('widget_title', $instance['title'] );
|
85 |
+
$show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
|
86 |
+
|
87 |
global $is_floter;
|
88 |
+
|
89 |
$return.= $before_widget;
|
90 |
/* Display the widget title */
|
91 |
if ( $title ) $return .= $before_title . $title . $after_title;
|
709 |
$links[] = '<a target="_blank" href="https://goo.gl/auxJ9C#no-topic-0" id="sfsi_deactivateButton" style="color:#FF0000;"><b>Need help?</b></a>';
|
710 |
$links[] = '<a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_manage_plugin_page&utm_campaign=check_out_pro_version&utm_medium=banner" id="sfsi_deactivateButton" style="color:#38B54A;"><b>Check out pro version</b></a>';
|
711 |
$links[] = @$links["deactivate"];
|
712 |
+
|
713 |
+
if(isset($links["edit"]) && empty($links["edit"])){
|
714 |
+
$links[] = @$links["edit"];
|
715 |
+
}
|
716 |
$links[] = '<a href="'.admin_url("/admin.php?page=sfsi-options").'">Settings</a>';
|
717 |
unset($links['deactivate']);
|
718 |
unset($links['edit']);
|
views/sfsi_affiliate_banner.php
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
<style type="text/css">
|
2 |
-
.tab10 .save_button{padding-bottom: 20px;}div#accordion2 {margin-top:
|
3 |
#accordion2 h3 span {position: absolute;left: 0;top: 0;width: 50px;height: 49px;background: #31373d;line-height: 50px;text-align: center;font-family: helveticaregular;font-size: 20px;color: #FFF;}
|
4 |
.tab11 img{min-height: 150px;min-width: 150px;margin-left: auto;margin-right: auto;text-align: center;display: table-cell;vertical-align: middle;}
|
5 |
</style>
|
1 |
<style type="text/css">
|
2 |
+
.tab10 .save_button{padding-bottom: 20px;}div#accordion2 {margin-top: 20px;}
|
3 |
#accordion2 h3 span {position: absolute;left: 0;top: 0;width: 50px;height: 49px;background: #31373d;line-height: 50px;text-align: center;font-family: helveticaregular;font-size: 20px;color: #FFF;}
|
4 |
.tab11 img{min-height: 150px;min-width: 150px;margin-left: auto;margin-right: auto;text-align: center;display: table-cell;vertical-align: middle;}
|
5 |
</style>
|
views/sfsi_option_view4.php
CHANGED
@@ -118,7 +118,7 @@ if(isset($option4['sfsi_youtube_user']) && !empty($option4['sfsi_youtube_user'])
|
|
118 |
}
|
119 |
else{
|
120 |
if("name"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])){
|
121 |
-
$option4['sfsi_youtube_user'] = $option2['sfsi_ytube_user'];
|
122 |
}
|
123 |
}
|
124 |
|
@@ -127,7 +127,7 @@ if(isset($option4['sfsi_youtube_channelId']) && !empty($option4['sfsi_youtube_ch
|
|
127 |
}
|
128 |
else{
|
129 |
if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])){
|
130 |
-
$option4['sfsi_youtube_channelId'] = $option2['sfsi_ytube_chnlid'];
|
131 |
}
|
132 |
}
|
133 |
|
@@ -136,7 +136,8 @@ $counts = sfsi_getCounts();
|
|
136 |
|
137 |
/* check for email icon display */
|
138 |
$email_image="email.png";
|
139 |
-
|
|
|
140 |
{
|
141 |
$email_image="sf_arow_icn.png";
|
142 |
}
|
118 |
}
|
119 |
else{
|
120 |
if("name"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])){
|
121 |
+
$option4['sfsi_youtube_user'] = isset($option2['sfsi_ytube_user']) && !empty($option2['sfsi_ytube_user']) ? $option2['sfsi_ytube_user']: '';
|
122 |
}
|
123 |
}
|
124 |
|
127 |
}
|
128 |
else{
|
129 |
if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])){
|
130 |
+
$option4['sfsi_youtube_channelId'] = isset($option2['sfsi_ytube_chnlid']) && !empty($option2['sfsi_ytube_chnlid']) ? $option2['sfsi_ytube_chnlid']: '';
|
131 |
}
|
132 |
}
|
133 |
|
136 |
|
137 |
/* check for email icon display */
|
138 |
$email_image="email.png";
|
139 |
+
|
140 |
+
if(isset($option2['sfsi_rss_icons']) && !empty($option2['sfsi_rss_icons']) && $option2['sfsi_rss_icons']=="sfsi")
|
141 |
{
|
142 |
$email_image="sf_arow_icn.png";
|
143 |
}
|
views/sfsi_option_view5.php
CHANGED
@@ -35,27 +35,26 @@
|
|
35 |
$option5['sfsi_icons_ClickPageOpen'] = (isset($option5['sfsi_icons_ClickPageOpen']))
|
36 |
? sanitize_text_field($option5['sfsi_icons_ClickPageOpen'])
|
37 |
:'';
|
38 |
-
$option5['sfsi_icons_float'] = (isset($option5['sfsi_icons_float']))
|
39 |
-
|
40 |
-
|
41 |
-
$option5['sfsi_disable_floaticons'] = (isset($option5['sfsi_disable_floaticons']))
|
42 |
-
|
43 |
-
|
44 |
-
$option5['sfsi_icons_floatPosition'] = (isset($option5['sfsi_icons_floatPosition']))
|
45 |
-
|
46 |
-
|
47 |
-
$option5['sfsi_icons_floatMargin_top'] = (isset($option5['sfsi_icons_floatMargin_top']))
|
48 |
-
|
49 |
-
|
50 |
-
$option5['sfsi_icons_floatMargin_bottom'] = (isset($option5['sfsi_icons_floatMargin_bottom']))
|
51 |
-
|
52 |
-
|
53 |
-
$option5['sfsi_icons_floatMargin_left'] = (isset($option5['sfsi_icons_floatMargin_left']))
|
54 |
-
|
55 |
-
|
56 |
-
$option5['sfsi_icons_floatMargin_right'] = (isset($option5['sfsi_icons_floatMargin_right']))
|
57 |
-
|
58 |
-
: '';
|
59 |
|
60 |
$option5['sfsi_icons_stick'] = (isset($option5['sfsi_icons_stick']))
|
61 |
? sanitize_text_field($option5['sfsi_icons_stick'])
|
@@ -234,69 +233,97 @@
|
|
234 |
|
235 |
<!-- icon's floating and stick section start here -->
|
236 |
<div class="row sticking">
|
237 |
-
|
238 |
-
<
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
-
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
-
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
|
279 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
280 |
|
281 |
-
|
282 |
|
283 |
<div class="space">
|
284 |
-
|
|
|
|
|
285 |
<ul class="enough_waffling">
|
286 |
-
|
287 |
-
|
288 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
289 |
|
290 |
</div>
|
|
|
291 |
<!--disable float icons-->
|
292 |
-
|
293 |
<p class="list">Disable float icons on mobile devices</p>
|
294 |
<ul class="enough_waffling">
|
295 |
-
<li><input name="sfsi_disable_floaticons" <?php echo ($option5['sfsi_disable_floaticons']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" /><label>Yes</label></li>
|
296 |
-
<li><input name="sfsi_disable_floaticons" <?php echo ($option5['sfsi_disable_floaticons']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" /><label>No</label></li>
|
297 |
</ul>
|
298 |
-
</div>
|
299 |
<!--disable float icons-->
|
|
|
300 |
</div><!-- END icon's floating and stick section -->
|
301 |
|
302 |
<!--******************************************************* Sharing texts & pictures section STARTS *********************************************************************-->
|
35 |
$option5['sfsi_icons_ClickPageOpen'] = (isset($option5['sfsi_icons_ClickPageOpen']))
|
36 |
? sanitize_text_field($option5['sfsi_icons_ClickPageOpen'])
|
37 |
:'';
|
38 |
+
// $option5['sfsi_icons_float'] = (isset($option5['sfsi_icons_float']))
|
39 |
+
// ? sanitize_text_field($option5['sfsi_icons_float'])
|
40 |
+
// : '';
|
41 |
+
// $option5['sfsi_disable_floaticons'] = (isset($option5['sfsi_disable_floaticons']))
|
42 |
+
// ? sanitize_text_field($option5['sfsi_disable_floaticons'])
|
43 |
+
// : '';
|
44 |
+
// $option5['sfsi_icons_floatPosition'] = (isset($option5['sfsi_icons_floatPosition']))
|
45 |
+
// ? sanitize_text_field($option5['sfsi_icons_floatPosition'])
|
46 |
+
// :'';
|
47 |
+
// $option5['sfsi_icons_floatMargin_top'] = (isset($option5['sfsi_icons_floatMargin_top']))
|
48 |
+
// ? intval($option5['sfsi_icons_floatMargin_top'])
|
49 |
+
// : '';
|
50 |
+
// $option5['sfsi_icons_floatMargin_bottom'] = (isset($option5['sfsi_icons_floatMargin_bottom']))
|
51 |
+
// ? intval($option5['sfsi_icons_floatMargin_bottom'])
|
52 |
+
// : '';
|
53 |
+
// $option5['sfsi_icons_floatMargin_left'] = (isset($option5['sfsi_icons_floatMargin_left']))
|
54 |
+
// ? intval($option5['sfsi_icons_floatMargin_left'])
|
55 |
+
// : '';
|
56 |
+
// $option5['sfsi_icons_floatMargin_right'] = (isset($option5['sfsi_icons_floatMargin_right']))
|
57 |
+
// ? intval($option5['sfsi_icons_floatMargin_right']): '';
|
|
|
58 |
|
59 |
$option5['sfsi_icons_stick'] = (isset($option5['sfsi_icons_stick']))
|
60 |
? sanitize_text_field($option5['sfsi_icons_stick'])
|
233 |
|
234 |
<!-- icon's floating and stick section start here -->
|
235 |
<div class="row sticking">
|
236 |
+
|
237 |
+
<h4>Sticky icons</h4>
|
238 |
+
|
239 |
+
<!-- <div class="space">
|
240 |
+
|
241 |
+
<p class="list">Make icons float?</p>
|
242 |
+
<ul class="enough_waffling">
|
243 |
+
<li><input name="sfsi_icons_float" <?php //echo ($option5['sfsi_icons_float']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" /><label>Yes</label></li>
|
244 |
+
<li><input name="sfsi_icons_float" <?php //echo ($option5['sfsi_icons_float']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" /><label>No</label></li>
|
245 |
+
</ul>
|
246 |
+
|
247 |
+
</div> -->
|
248 |
+
|
249 |
+
<div class="clear float_options" <?php if($option5['sfsi_icons_stick']=='yes') :?> style="display:none" <?php endif;?>>
|
250 |
+
<!--<div class="clear float_options" <?php //if($option5['sfsi_icons_stick']=='yes' || $option5['sfsi_icons_float']=='no') :?> style="display:none" <?php //endif;?>>-->
|
251 |
+
|
252 |
+
<!-- <div style="width: 100%; float: left;">
|
253 |
+
<div class="float">Where shall they float?</div>
|
254 |
+
<div class="field " >
|
255 |
+
<select name="sfsi_icons_floatPosition" id="sfsi_icons_floatPosition" class="styled">
|
256 |
+
<option value="top-left" <?php //echo ($option5['sfsi_icons_floatPosition']=='top-left') ? 'selected="selected"' : '' ;?> >Top - Left</option>
|
257 |
+
<option value="top-right" <?php //echo ($option5['sfsi_icons_floatPosition']=='top-right') ? 'selected="selected"' : '' ;?> >Top - Right</option>
|
258 |
+
<option value="center-left" <?php //echo ($option5['sfsi_icons_floatPosition']=='center-left') ? 'selected="selected"' : '' ;?> >Center - Left</option>
|
259 |
+
<option value="center-right" <?php //echo ($option5['sfsi_icons_floatPosition']=='center-right') ? 'selected="selected"' : '' ;?> >Center - Right</option>
|
260 |
+
<option value="bottom-left" <?php //echo ($option5['sfsi_icons_floatPosition']=='bottom-left') ? 'selected="selected"' : '' ;?> >Bottom - Left</option>
|
261 |
+
<option value="bottom-right" <?php //echo ($option5['sfsi_icons_floatPosition']=='bottom-right') ? 'selected="selected"' : '' ;?> >Bottom - Right</option>
|
262 |
+
</select>
|
263 |
+
</div>
|
264 |
+
</div> -->
|
265 |
+
|
266 |
+
<!-- <div style="width: 88%; float: left; margin:25px 0 0 187px">
|
267 |
+
<h4>Margin From :</h4>
|
268 |
+
<ul class="sfsi_floaticon_margin_sec">
|
269 |
+
<li>
|
270 |
+
<label>Top :</label>
|
271 |
+
<input name="sfsi_icons_floatMargin_top" type="text" value="<?php //echo ($option5['sfsi_icons_floatMargin_top']!='') ? $option5['sfsi_icons_floatMargin_top'] : '' ;?>" /><ins>Pixels</ins>
|
272 |
+
</li>
|
273 |
+
<li>
|
274 |
+
<label>Bottom :</label>
|
275 |
+
<input name="sfsi_icons_floatMargin_bottom" type="text" value="<?php //echo ($option5['sfsi_icons_floatMargin_bottom'] != '') ? $option5['sfsi_icons_floatMargin_bottom'] : '' ;?>" /><ins>Pixels</ins>
|
276 |
+
</li>
|
277 |
+
<li>
|
278 |
+
<label>Left :</label>
|
279 |
+
<input name="sfsi_icons_floatMargin_left" type="text" value="<?php //echo ($option5['sfsi_icons_floatMargin_left']!='') ? $option5['sfsi_icons_floatMargin_left'] : '' ;?>" /><ins>Pixels</ins>
|
280 |
+
</li>
|
281 |
+
<li>
|
282 |
+
<label>Right :</label>
|
283 |
+
<input name="sfsi_icons_floatMargin_right" type="text" value="<?php //echo ($option5['sfsi_icons_floatMargin_right']!='') ? $option5['sfsi_icons_floatMargin_right'] : '' ;?>" /><ins>Pixels</ins>
|
284 |
+
</li>
|
285 |
+
</ul>
|
286 |
+
</div> -->
|
287 |
|
288 |
+
</div>
|
289 |
|
290 |
<div class="space">
|
291 |
+
|
292 |
+
<p class="list">Make icons stick ?</p>
|
293 |
+
|
294 |
<ul class="enough_waffling">
|
295 |
+
|
296 |
+
<li>
|
297 |
+
<input name="sfsi_icons_stick" <?php echo ($option5['sfsi_icons_stick']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
|
298 |
+
<label>Yes</label>
|
299 |
+
</li>
|
300 |
+
|
301 |
+
<li>
|
302 |
+
<input name="sfsi_icons_stick" <?php echo ($option5['sfsi_icons_stick']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" />
|
303 |
+
<label>No</label>
|
304 |
+
</li>
|
305 |
+
|
306 |
+
</ul>
|
307 |
+
|
308 |
+
<p>
|
309 |
+
If you select «Yes» here, then the icons which you placed via <span style="text-decoration: underline;"><b>widget</b></span> or <span style="text-decoration: underline;"><b>shortcode</b></span> will still be visible on the screen as user scrolls down your page, i.e. they will stick at the top.</p>
|
310 |
+
|
311 |
+
<p>
|
312 |
+
This is not to be confused with making the icons permanently placed at the same position, which is possible in the <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium"><b>Premium Plugin</b></a>.
|
313 |
+
</p>
|
314 |
|
315 |
</div>
|
316 |
+
|
317 |
<!--disable float icons-->
|
318 |
+
<!-- <div class="space disblfltonmbl">
|
319 |
<p class="list">Disable float icons on mobile devices</p>
|
320 |
<ul class="enough_waffling">
|
321 |
+
<li><input name="sfsi_disable_floaticons" <?php //echo ($option5['sfsi_disable_floaticons']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" /><label>Yes</label></li>
|
322 |
+
<li><input name="sfsi_disable_floaticons" <?php //echo ($option5['sfsi_disable_floaticons']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" /><label>No</label></li>
|
323 |
</ul>
|
324 |
+
</div> -->
|
325 |
<!--disable float icons-->
|
326 |
+
|
327 |
</div><!-- END icon's floating and stick section -->
|
328 |
|
329 |
<!--******************************************************* Sharing texts & pictures section STARTS *********************************************************************-->
|
views/sfsi_option_view6.php
CHANGED
@@ -5,7 +5,7 @@ $option6 = unserialize(get_option('sfsi_section6_options',false));
|
|
5 |
/**
|
6 |
* Sanitize, escape and validate values
|
7 |
*/
|
8 |
-
$option6['sfsi_show_Onposts'] = (isset($option6['sfsi_show_Onposts'])) ? sanitize_text_field($option6['sfsi_show_Onposts']) : '';
|
9 |
$option6['sfsi_show_Onbottom'] = (isset($option6['sfsi_show_Onbottom'])) ? sanitize_text_field($option6['sfsi_show_Onbottom']) : '';
|
10 |
$option6['sfsi_icons_postPositon'] = (isset($option6['sfsi_icons_postPositon'])) ? sanitize_text_field($option6['sfsi_icons_postPositon']) : '';
|
11 |
$option6['sfsi_icons_alignment'] = (isset($option6['sfsi_icons_alignment'])) ? sanitize_text_field($option6['sfsi_icons_alignment']) : '';
|
@@ -127,7 +127,7 @@ if(!isset($option6['sfsi_rectfbshare']))
|
|
127 |
</div> -->
|
128 |
|
129 |
<!-- icons display section -->
|
130 |
-
<h4 class="sfsi_dsplyatend">So: do you want to display those at the end of every post?</h4>
|
131 |
<ul class="enough_waffling sfsi_dsplyatend">
|
132 |
<li><input name="sfsi_show_Onposts" <?php echo ($option6['sfsi_show_Onposts']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" /><label>Yes</label></li>
|
133 |
<li><input name="sfsi_show_Onposts" <?php echo ($option6['sfsi_show_Onposts']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" /><label>No</label></li>
|
5 |
/**
|
6 |
* Sanitize, escape and validate values
|
7 |
*/
|
8 |
+
$option6['sfsi_show_Onposts'] = (isset($option6['sfsi_show_Onposts'])) ? sanitize_text_field($option6['sfsi_show_Onposts']) : 'no';
|
9 |
$option6['sfsi_show_Onbottom'] = (isset($option6['sfsi_show_Onbottom'])) ? sanitize_text_field($option6['sfsi_show_Onbottom']) : '';
|
10 |
$option6['sfsi_icons_postPositon'] = (isset($option6['sfsi_icons_postPositon'])) ? sanitize_text_field($option6['sfsi_icons_postPositon']) : '';
|
11 |
$option6['sfsi_icons_alignment'] = (isset($option6['sfsi_icons_alignment'])) ? sanitize_text_field($option6['sfsi_icons_alignment']) : '';
|
127 |
</div> -->
|
128 |
|
129 |
<!-- icons display section -->
|
130 |
+
<h4 class="sfsi_dsplyatend" id="sfsi_dsplyafterposts">So: do you want to display those at the end of every post?</h4>
|
131 |
<ul class="enough_waffling sfsi_dsplyatend">
|
132 |
<li><input name="sfsi_show_Onposts" <?php echo ($option6['sfsi_show_Onposts']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" /><label>Yes</label></li>
|
133 |
<li><input name="sfsi_show_Onposts" <?php echo ($option6['sfsi_show_Onposts']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" /><label>No</label></li>
|
views/sfsi_options_view.php
CHANGED
@@ -80,11 +80,22 @@
|
|
80 |
<div class="main_contant">
|
81 |
|
82 |
<h1>Welcome to the Ultimate Social Icons and Share Plugin!</h1>
|
|
|
83 |
<div class="welcometext">
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
<p><a style="text-decoration: none;" href="javascript:void(0)">New: </a>In our new Premium Plugin many other different placement options are supported, e.g. place the icons floating/statically on the place by defining margins, only show them on certain pages, show them only on mobile etc. etc. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=top_introduction&utm_medium=banner" target="_blank">See all features</a></p>
|
86 |
|
87 |
-
<p>Please <a target="_blank" style="text-decoration: underline;" href="https://goo.gl/auxJ9C#no-topic-0">give us feedback</a> and tell us how we can make the plugin better. Thank you!.</p>
|
|
|
88 |
</div>
|
89 |
|
90 |
<div class="supportforum">
|
@@ -109,10 +120,9 @@
|
|
109 |
|
110 |
</div> <!-- END Top content area of plugin -->
|
111 |
|
|
|
|
|
112 |
|
113 |
-
|
114 |
-
<!-- step 1 end here -->
|
115 |
-
<div id="accordion">
|
116 |
<h3><span>1</span>Which icons do you want to show on your site? </h3>
|
117 |
<!-- step 1 end here -->
|
118 |
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view1.php'); ?>
|
@@ -122,43 +132,53 @@
|
|
122 |
<h3><span>2</span>What do you want the icons to do? </h3>
|
123 |
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view2.php'); ?>
|
124 |
<!-- step 2 END here -->
|
|
|
125 |
<!-- step 3 start here -->
|
|
|
|
|
|
|
|
|
126 |
|
127 |
-
|
|
|
128 |
<h2 class="optional">Optional</h2>
|
129 |
-
<div id="accordion1">
|
130 |
-
<h3><span>3</span>What design & animation do you want to give your icons?</h3>
|
131 |
-
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view3.php'); ?>
|
132 |
-
<!-- step 3 END here -->
|
133 |
|
134 |
-
|
135 |
-
|
136 |
-
|
|
|
|
|
137 |
<!-- step 4 END here -->
|
138 |
|
139 |
<!-- step 5 Start here -->
|
140 |
-
<h3><span>5</span>
|
141 |
-
|
142 |
<!-- step 5 END here -->
|
143 |
|
144 |
<!-- step 6 Start here -->
|
145 |
-
<h3><span>6</span>
|
146 |
-
|
147 |
<!-- step 6 END here -->
|
148 |
|
149 |
-
|
150 |
<!-- step 7 Start here -->
|
151 |
-
<h3><span>7</span>Do you want to display
|
152 |
-
<?php include(SFSI_DOCROOT.'/views/
|
153 |
<!-- step 7 END here -->
|
154 |
-
|
|
|
155 |
<!-- step 8 Start here -->
|
156 |
-
<h3><span>8</span>Do you want to
|
157 |
-
|
158 |
<!-- step 8 END here -->
|
|
|
|
|
|
|
|
|
|
|
159 |
|
160 |
</div>
|
161 |
-
|
|
|
162 |
<div class="save_button">
|
163 |
<img src="<?php echo SFSI_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" />
|
164 |
<a href="javascript:;" id="save_all_settings" title="Save All Settings">Save All Settings</a>
|
80 |
<div class="main_contant">
|
81 |
|
82 |
<h1>Welcome to the Ultimate Social Icons and Share Plugin!</h1>
|
83 |
+
|
84 |
<div class="welcometext">
|
85 |
+
|
86 |
+
<p>Simple answer the questions below (at least the first 3) by clicking on them - that's it! </p>
|
87 |
+
|
88 |
+
<p>If you want more features like <a target="_blank" href="https://www.ultimatelysocial.com/all-platforms/">more platform icons</a>, <a target="_blank" href="https://www.ultimatelysocial.com/themed-icons-search/">themed icons</a>, more design options, better sharing features, mobile optimization, faster loading, full support and <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/">much more</a>, then please check out our <a target="_blank" href="https://www.ultimatelysocial.com/checkout?edd_action=add_to_cart&download_id=150&edd_options[price_id]=2">Premium Plugin</a>. Pricing is really fair (24.98 USD).</p>
|
89 |
+
|
90 |
+
|
91 |
+
<p>For questions and suggestions please raise a ticket in the <a target="_blank" href="https://goo.gl/auxJ9C#no-topic-0">Support Forum.</a></p>
|
92 |
+
|
93 |
+
<!-- <p>Get started by clicking on the first question below. Once done, go to the <a href="<?php //echo admin_url('/widgets.php');?>">widget area</a> and move the widget to the sidebar so that your icons are displayed.</p>
|
94 |
+
|
95 |
<p><a style="text-decoration: none;" href="javascript:void(0)">New: </a>In our new Premium Plugin many other different placement options are supported, e.g. place the icons floating/statically on the place by defining margins, only show them on certain pages, show them only on mobile etc. etc. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=top_introduction&utm_medium=banner" target="_blank">See all features</a></p>
|
96 |
|
97 |
+
<p>Please <a target="_blank" style="text-decoration: underline;" href="https://goo.gl/auxJ9C#no-topic-0">give us feedback</a> and tell us how we can make the plugin better. Thank you!.</p> -->
|
98 |
+
|
99 |
</div>
|
100 |
|
101 |
<div class="supportforum">
|
120 |
|
121 |
</div> <!-- END Top content area of plugin -->
|
122 |
|
123 |
+
<!-- step 1 end here -->
|
124 |
+
<div id="accordion">
|
125 |
|
|
|
|
|
|
|
126 |
<h3><span>1</span>Which icons do you want to show on your site? </h3>
|
127 |
<!-- step 1 end here -->
|
128 |
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view1.php'); ?>
|
132 |
<h3><span>2</span>What do you want the icons to do? </h3>
|
133 |
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view2.php'); ?>
|
134 |
<!-- step 2 END here -->
|
135 |
+
|
136 |
<!-- step 3 start here -->
|
137 |
+
<h3><span>3</span>Where shall they be displayed? </h3>
|
138 |
+
<?php include(SFSI_DOCROOT.'/views/sfsi_question3.php'); ?>
|
139 |
+
<!-- step 3 end here -->
|
140 |
+
|
141 |
|
142 |
+
</div>
|
143 |
+
|
144 |
<h2 class="optional">Optional</h2>
|
|
|
|
|
|
|
|
|
145 |
|
146 |
+
<div id="accordion1">
|
147 |
+
|
148 |
+
<!-- step 4 start here -->
|
149 |
+
<h3><span>4</span>What design & animation do you want to give your icons?</h3>
|
150 |
+
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view3.php'); ?>
|
151 |
<!-- step 4 END here -->
|
152 |
|
153 |
<!-- step 5 Start here -->
|
154 |
+
<h3><span>5</span>Do you want to display "counts" next to your icons?</h3>
|
155 |
+
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view4.php'); ?>
|
156 |
<!-- step 5 END here -->
|
157 |
|
158 |
<!-- step 6 Start here -->
|
159 |
+
<h3><span>6</span>Any other wishes for your main icons?</h3>
|
160 |
+
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view5.php'); ?>
|
161 |
<!-- step 6 END here -->
|
162 |
|
|
|
163 |
<!-- step 7 Start here -->
|
164 |
+
<h3><span>7</span>Do you want to display icons at the end of every post?</h3>
|
165 |
+
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view6.php'); ?>
|
166 |
<!-- step 7 END here -->
|
167 |
+
|
168 |
+
|
169 |
<!-- step 8 Start here -->
|
170 |
+
<h3><span>8</span>Do you want to display a pop-up, asking people to subscribe?</h3>
|
171 |
+
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view7.php'); ?>
|
172 |
<!-- step 8 END here -->
|
173 |
+
|
174 |
+
<!-- step 9 Start here -->
|
175 |
+
<h3><span>9</span>Do you want to show a subscription form (<b>increases sign ups</b>)?</h3>
|
176 |
+
<?php include(SFSI_DOCROOT.'/views/sfsi_option_view8.php'); ?>
|
177 |
+
<!-- step 9 END here -->
|
178 |
|
179 |
</div>
|
180 |
+
|
181 |
+
<div class="tab10">
|
182 |
<div class="save_button">
|
183 |
<img src="<?php echo SFSI_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" />
|
184 |
<a href="javascript:;" id="save_all_settings" title="Save All Settings">Save All Settings</a>
|
views/sfsi_question3.php
ADDED
@@ -0,0 +1,67 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$option9 = unserialize(get_option('sfsi_section9_options',false));
|
4 |
+
|
5 |
+
?>
|
6 |
+
<div class="tab9">
|
7 |
+
|
8 |
+
<ul class="sfsi_icn_listing8">
|
9 |
+
|
10 |
+
<!--********************** Show them via a widget section **************************************-->
|
11 |
+
|
12 |
+
<?php @include(SFSI_DOCROOT.'/views/subviews/que3/sfsi_que3_place_via_widget.php'); ?>
|
13 |
+
|
14 |
+
<!--********************** Define the location on the page **************************************-->
|
15 |
+
|
16 |
+
<?php @include(SFSI_DOCROOT.'/views/subviews/que3/sfsi_que3_place_via_float.php'); ?>
|
17 |
+
|
18 |
+
<!--********************** Place via shortcode *******************************************-->
|
19 |
+
|
20 |
+
<?php @include(SFSI_DOCROOT.'/views/subviews/que3/sfsi_que3_place_via_shortcode.php'); ?>
|
21 |
+
|
22 |
+
|
23 |
+
<!--********************** Show them after post****************************************-->
|
24 |
+
|
25 |
+
<?php @include(SFSI_DOCROOT.'/views/subviews/que3/sfsi_que3_place_via_after_posts.php'); ?>
|
26 |
+
|
27 |
+
</ul>
|
28 |
+
|
29 |
+
|
30 |
+
<p class="sfsi_premium_feature_note">
|
31 |
+
In the Premium Plugin you can also <b>exclude icons</b> from showing on certain pages. <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/"><b>See all features</b></a>
|
32 |
+
</p>
|
33 |
+
|
34 |
+
|
35 |
+
<!-- SAVE BUTTON SECTION -->
|
36 |
+
<div class="save_button">
|
37 |
+
|
38 |
+
<img src="<?php echo SFSI_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
|
39 |
+
|
40 |
+
<?php $nonce = wp_create_nonce("update_step9"); ?>
|
41 |
+
|
42 |
+
<a href="javascript:;" id="sfsi_save9" title="Save" data-nonce="<?php echo $nonce;?>">Save</a>
|
43 |
+
|
44 |
+
</div>
|
45 |
+
<!-- END SAVE BUTTON SECTION -->
|
46 |
+
|
47 |
+
<a class="sfsiColbtn closeSec" href="javascript:;">Collapse area
|
48 |
+
</a>
|
49 |
+
|
50 |
+
<label class="closeSec"></label>
|
51 |
+
|
52 |
+
<!-- ERROR AND SUCCESS MESSAGE AREA-->
|
53 |
+
<p class="red_txt errorMsg" style="display:none"> </p>
|
54 |
+
<p class="green_txt sucMsg" style="display:none"> </p>
|
55 |
+
<div class="clear"></div>
|
56 |
+
|
57 |
+
</div>
|
58 |
+
|
59 |
+
<?php
|
60 |
+
function sfsi_premium_isSeletcted($givenVal, $value)
|
61 |
+
{
|
62 |
+
if($givenVal == $value)
|
63 |
+
return 'selected="true"';
|
64 |
+
else
|
65 |
+
return '';
|
66 |
+
}
|
67 |
+
?>
|
views/subviews/que3/sfsi_que3_place_via_after_posts.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$sfsi_show_via_afterposts = "no";
|
4 |
+
|
5 |
+
if(isset($option9['sfsi_show_via_afterposts']) && !empty($option9['sfsi_show_via_afterposts'])){
|
6 |
+
$sfsi_show_via_afterposts = $option9['sfsi_show_via_afterposts'];
|
7 |
+
}
|
8 |
+
|
9 |
+
$label_style = 'style="display:none;"';
|
10 |
+
$checked = "";
|
11 |
+
|
12 |
+
if($sfsi_show_via_afterposts =='yes'){
|
13 |
+
$label_style = 'style="display:block;"';
|
14 |
+
$checked = 'checked="true"';
|
15 |
+
}
|
16 |
+
?>
|
17 |
+
<li class="sfsi_show_via_afterposts">
|
18 |
+
|
19 |
+
<div class="radio_section tb_4_ck" onclick="checkforinfoslction_checkbox(this);"><input name="sfsi_show_via_afterposts" <?php echo $checked; ?> type="checkbox" value="<?php echo $sfsi_show_via_afterposts; ?>" class="styled" /></div>
|
20 |
+
|
21 |
+
<div class="sfsi_right_info">
|
22 |
+
|
23 |
+
<p>
|
24 |
+
|
25 |
+
<span class="sfsi_toglepstpgspn">Show icons after posts</span>
|
26 |
+
|
27 |
+
<div class="kckslctn" <?php echo $label_style;?>>
|
28 |
+
|
29 |
+
<p>Please select this under <a href="#sfsi_dsplyafterposts" class="sfsi_navigate_to_question7">question 7</a>.</p>
|
30 |
+
|
31 |
+
<p>If you want to place the <b>round icons</b> after/before posts (i.e. the ones you selected under question 1): This is possible in the <a href="https://www.ultimatelysocial.com/usm-premium/" target="_blank"><b>Premium Plugin.</b></a></p>
|
32 |
+
</div>
|
33 |
+
|
34 |
+
</p>
|
35 |
+
|
36 |
+
</div>
|
37 |
+
</li>
|
views/subviews/que3/sfsi_que3_place_via_float.php
ADDED
@@ -0,0 +1,186 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$option9['sfsi_icons_float'] = (isset($option9['sfsi_icons_float'])) ? sanitize_text_field($option9['sfsi_icons_float']): 'no';
|
4 |
+
|
5 |
+
$option9['sfsi_icons_floatPosition'] = (isset($option9['sfsi_icons_floatPosition'])) ? sanitize_text_field($option9['sfsi_icons_floatPosition']) :'center-right';
|
6 |
+
|
7 |
+
$option9['sfsi_icons_floatMargin_top'] = (isset($option9['sfsi_icons_floatMargin_top'])) ? intval($option9['sfsi_icons_floatMargin_top']) : '';
|
8 |
+
|
9 |
+
$option9['sfsi_icons_floatMargin_bottom'] = (isset($option9['sfsi_icons_floatMargin_bottom'])) ? intval($option9['sfsi_icons_floatMargin_bottom']) : '';
|
10 |
+
|
11 |
+
$option9['sfsi_icons_floatMargin_left'] = (isset($option9['sfsi_icons_floatMargin_left'])) ? intval($option9['sfsi_icons_floatMargin_left']) : '';
|
12 |
+
|
13 |
+
$option9['sfsi_icons_floatMargin_right'] = (isset($option9['sfsi_icons_floatMargin_right'])) ? intval($option9['sfsi_icons_floatMargin_right']) : '';
|
14 |
+
|
15 |
+
$option9['sfsi_disable_floaticons'] = (isset($option9['sfsi_disable_floaticons'])) ? sanitize_text_field($option9['sfsi_disable_floaticons']): 'no';
|
16 |
+
|
17 |
+
$style = ($option9['sfsi_icons_float'] == "yes") ? 'display: block;' : "display: none;";
|
18 |
+
|
19 |
+
?>
|
20 |
+
|
21 |
+
<li class="sfsiLocationli">
|
22 |
+
|
23 |
+
<div class="radio_section tb_4_ck cstmfltonpgstck" onclick="sfsi_toggleflotpage_que3(this);">
|
24 |
+
<input name="sfsi_icons_float" <?php echo ($option9['sfsi_icons_float']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
|
25 |
+
|
26 |
+
<p><span class="sfsi_toglepstpgspn">Define the location on the page</span></p>
|
27 |
+
|
28 |
+
</div>
|
29 |
+
|
30 |
+
<div class="sfsi_right_info" <?php echo 'style="'.$style.'"';?>>
|
31 |
+
|
32 |
+
<div class="sfsi_tab_3_icns">
|
33 |
+
|
34 |
+
<ul class="sfsi_tab_3_icns flthmonpg">
|
35 |
+
|
36 |
+
<div class="sfsi_position_divider">
|
37 |
+
|
38 |
+
<li>
|
39 |
+
<input name="sfsi_icons_floatPosition" <?php echo ( $option9['sfsi_icons_floatPosition']=='top-left') ? 'checked="true"' : '' ;?> type="radio" value="top-left" class="styled" />
|
40 |
+
|
41 |
+
<span class="sfsi_flicnsoptn3 sfsioptntl">Top left</span>
|
42 |
+
|
43 |
+
<label><img src="<?php echo SFSI_PLUGURL;?>images/top_left.png" /></label>
|
44 |
+
|
45 |
+
</li>
|
46 |
+
|
47 |
+
<li>
|
48 |
+
<input name="sfsi_icons_floatPosition" <?php echo ( $option9['sfsi_icons_floatPosition']=='center-top') ? 'checked="true"' : '' ;?> type="radio" value="center-top" class="styled" />
|
49 |
+
|
50 |
+
<span class="sfsi_flicnsoptn3 sfsioptncl">Center top</span>
|
51 |
+
|
52 |
+
<label class="sfsi_float_position_icon_label"><img src="<?php echo SFSI_PLUGURL;?>images/float_position_icon.png" /></label>
|
53 |
+
</li>
|
54 |
+
|
55 |
+
<li>
|
56 |
+
<input name="sfsi_icons_floatPosition" <?php echo ( $option9['sfsi_icons_floatPosition']=='top-right') ? 'checked="true"' : '' ;?> type="radio" value="top-right" class="styled" />
|
57 |
+
|
58 |
+
<span class="sfsi_flicnsoptn3 sfsioptntr">Top right</span>
|
59 |
+
|
60 |
+
<label><img src="<?php echo SFSI_PLUGURL;?>images/top_right.png" /></label>
|
61 |
+
|
62 |
+
</li>
|
63 |
+
|
64 |
+
</div>
|
65 |
+
|
66 |
+
<div class="sfsi_position_divider">
|
67 |
+
|
68 |
+
<li>
|
69 |
+
<input name="sfsi_icons_floatPosition" <?php echo ( $option9['sfsi_icons_floatPosition']=='center-left') ? 'checked="true"' : '' ;?> type="radio" value="center-left" class="styled" />
|
70 |
+
|
71 |
+
<span class="sfsi_flicnsoptn3 sfsioptncl">Center left</span>
|
72 |
+
|
73 |
+
<label><img src="<?php echo SFSI_PLUGURL;?>images/center_left.png" /></label>
|
74 |
+
|
75 |
+
</li>
|
76 |
+
|
77 |
+
<li></li>
|
78 |
+
|
79 |
+
<li>
|
80 |
+
<input name="sfsi_icons_floatPosition" <?php echo ( $option9['sfsi_icons_floatPosition']=='center-right') ? 'checked="true"' : '' ;?> type="radio" value="center-right" class="styled" />
|
81 |
+
|
82 |
+
<span class="sfsi_flicnsoptn3 sfsioptncr">Center right</span>
|
83 |
+
|
84 |
+
<label><img src="<?php echo SFSI_PLUGURL;?>images/center_right.png" /></label>
|
85 |
+
|
86 |
+
</li>
|
87 |
+
|
88 |
+
</div>
|
89 |
+
|
90 |
+
<div class="sfsi_position_divider">
|
91 |
+
<li>
|
92 |
+
<input name="sfsi_icons_floatPosition" <?php echo ( $option9['sfsi_icons_floatPosition']=='bottom-left') ? 'checked="true"' : '' ;?> type="radio" value="bottom-left" class="styled" />
|
93 |
+
|
94 |
+
<span class="sfsi_flicnsoptn3 sfsioptnbl">Bottom left</span>
|
95 |
+
|
96 |
+
<label><img src="<?php echo SFSI_PLUGURL;?>images/bottom_left.png" /></label>
|
97 |
+
|
98 |
+
</li>
|
99 |
+
|
100 |
+
|
101 |
+
<li>
|
102 |
+
<input name="sfsi_icons_floatPosition" <?php echo ( $option9['sfsi_icons_floatPosition']=='center-bottom') ? 'checked="true"' : '' ;?> type="radio" value="center-bottom" class="styled" />
|
103 |
+
|
104 |
+
<span class="sfsi_flicnsoptn3 sfsioptncr">Center bottom</span>
|
105 |
+
|
106 |
+
<label class="sfsi_float_position_icon_label sfsi_center_botttom"><img class="sfsi_img_center_bottom" src="<?php echo SFSI_PLUGURL;?>images/float_position_icon.png" /></label>
|
107 |
+
</li>
|
108 |
+
|
109 |
+
<li>
|
110 |
+
<input name="sfsi_icons_floatPosition" <?php echo ( $option9['sfsi_icons_floatPosition']=='bottom-right') ? 'checked="true"' : '' ;?> type="radio" value="bottom-right" class="styled" />
|
111 |
+
|
112 |
+
<span class="sfsi_flicnsoptn3 sfsioptnbr">Bottom right</span>
|
113 |
+
|
114 |
+
<label><img src="<?php echo SFSI_PLUGURL;?>images/bottom_right.png" /></label>
|
115 |
+
|
116 |
+
</li>
|
117 |
+
|
118 |
+
</div>
|
119 |
+
|
120 |
+
</ul>
|
121 |
+
|
122 |
+
<div style="width: 88%; float: left; margin:25px 0 0 25px">
|
123 |
+
|
124 |
+
<h4>Margin From: </h4>
|
125 |
+
|
126 |
+
<ul class="sfsi_floaticon_margin_sec">
|
127 |
+
|
128 |
+
|
129 |
+
<li>
|
130 |
+
<label>Top:</label>
|
131 |
+
<input name="sfsi_icons_floatMargin_top" type="text" value="<?php echo ($option9['sfsi_icons_floatMargin_top']!='') ? $option9['sfsi_icons_floatMargin_top'] : '' ;?>" />
|
132 |
+
<ins>Pixels</ins>
|
133 |
+
|
134 |
+
</li>
|
135 |
+
|
136 |
+
<li>
|
137 |
+
<label>Bottom:</label>
|
138 |
+
<input name="sfsi_icons_floatMargin_bottom" type="text" value="<?php echo ($option9['sfsi_icons_floatMargin_bottom'] != '') ? $option9['sfsi_icons_floatMargin_bottom'] : '' ;?>" />
|
139 |
+
<ins>Pixels</ins>
|
140 |
+
</li>
|
141 |
+
|
142 |
+
|
143 |
+
<li>
|
144 |
+
<label>Left:</label>
|
145 |
+
<input name="sfsi_icons_floatMargin_left" type="text" value="<?php echo ($option9['sfsi_icons_floatMargin_left']!='') ? $option9['sfsi_icons_floatMargin_left'] : '' ;?>" />
|
146 |
+
<ins>Pixels</ins>
|
147 |
+
</li>
|
148 |
+
|
149 |
+
<li>
|
150 |
+
<label>Right:</label>
|
151 |
+
<input name="sfsi_icons_floatMargin_right" type="text" value="<?php echo ($option9['sfsi_icons_floatMargin_right']!='') ? $option9['sfsi_icons_floatMargin_right'] : '' ;?>" />
|
152 |
+
<ins>Pixels</ins>
|
153 |
+
</li>
|
154 |
+
|
155 |
+
</ul>
|
156 |
+
|
157 |
+
</div>
|
158 |
+
|
159 |
+
<div style="width: 88%; float: left; margin:25px 0 0 7px">
|
160 |
+
<p style="line-height: 34px;">
|
161 |
+
The icons will be floating on your page. If you want them <b>"sticky"</b>, please check out the <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/"><b>Premium Plugin</b></a>. Also in the Premium Plugin you can show the icons <b>vertically</b>, and give them <b>different settings for mobile.</b>
|
162 |
+
</p>
|
163 |
+
|
164 |
+
</div>
|
165 |
+
|
166 |
+
<div class="sfsi_disable_floatingicons_mobile">
|
167 |
+
|
168 |
+
<h4>Want to disable the floating icons on mobile?</h4>
|
169 |
+
|
170 |
+
<ul class="sfsi_make_icons sfsi_plus_mobile_float">
|
171 |
+
<li>
|
172 |
+
<input name="sfsi_disable_floaticons" <?php echo ( $option9['sfsi_disable_floaticons']=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" />
|
173 |
+
<span class="sfsi_flicnsoptn3">Yes</span>
|
174 |
+
</li>
|
175 |
+
|
176 |
+
<li>
|
177 |
+
<input name="sfsi_disable_floaticons" <?php echo ( $option9['sfsi_disable_floaticons']=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled"/>
|
178 |
+
<span class="sfsi_flicnsoptn3">No</span>
|
179 |
+
</li>
|
180 |
+
</ul>
|
181 |
+
</div>
|
182 |
+
|
183 |
+
</div>
|
184 |
+
|
185 |
+
</div>
|
186 |
+
</li>
|
views/subviews/que3/sfsi_que3_place_via_shortcode.php
ADDED
@@ -0,0 +1,37 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$sfsi_show_via_shortcode = isset($option9['sfsi_show_via_shortcode']) && !empty($option9['sfsi_show_via_shortcode']) ? $option9['sfsi_show_via_shortcode'] : "no";
|
4 |
+
|
5 |
+
$checked = '';
|
6 |
+
$label_style = 'style="display:none;"';
|
7 |
+
|
8 |
+
if("yes" == $sfsi_show_via_shortcode){
|
9 |
+
$checked = 'checked="true"';
|
10 |
+
$label_style = 'style="display:block;"';
|
11 |
+
}
|
12 |
+
|
13 |
+
?>
|
14 |
+
|
15 |
+
<li class="sfsi_show_via_shortcode">
|
16 |
+
|
17 |
+
<div class="radio_section tb_4_ck" onclick="checkforinfoslction_checkbox(this);">
|
18 |
+
<input name="sfsi_show_via_shortcode" <?php echo $checked; ?> type="checkbox" value="<?php echo $sfsi_show_via_shortcode; ?>" class="styled" />
|
19 |
+
</div>
|
20 |
+
|
21 |
+
<div class="sfsi_right_info">
|
22 |
+
|
23 |
+
<p>
|
24 |
+
<span class="sfsi_toglepstpgspn">Place via shortcode</span><br>
|
25 |
+
|
26 |
+
<div class="kckslctn" <?php echo $label_style;?>>
|
27 |
+
|
28 |
+
<p>Please use the shortcode <b>[DISPLAY_ULTIMATE_SOCIAL_ICONS]</b> to place the icons anywhere you want.</p>
|
29 |
+
|
30 |
+
<p>Or, place the icons directly into our (theme) codes by using <b><php echo do_shortcode('[DISPLAY_ULTIMATE_SOCIAL_ICONS]'); ?></b></p>
|
31 |
+
|
32 |
+
<p>Want to show icons <b>vertically</b> or <b>centralize the icons</b> in the shortcode container? Or need <b>different settings for mobile</b>? Check out the <a href="https://www.ultimatelysocial.com/usm-premium/" target="_blank"><b>Premium Plugin.</b></a></p>
|
33 |
+
|
34 |
+
</div>
|
35 |
+
</p>
|
36 |
+
</div>
|
37 |
+
</li>
|
views/subviews/que3/sfsi_que3_place_via_widget.php
ADDED
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
|
3 |
+
$sfsi_show_via_widget = "no";
|
4 |
+
|
5 |
+
if(isset($option9['sfsi_show_via_widget']) && !empty($option9['sfsi_show_via_widget'])){
|
6 |
+
$sfsi_show_via_widget = $option9['sfsi_show_via_widget'];
|
7 |
+
}
|
8 |
+
|
9 |
+
$label_style = 'style="display:none;font-size: 16px;"';
|
10 |
+
$checked = '';
|
11 |
+
|
12 |
+
if($sfsi_show_via_widget =='yes'){
|
13 |
+
$label_style = 'style="display:block;font-size: 16px;"';
|
14 |
+
$checked = 'checked="true"';
|
15 |
+
}
|
16 |
+
|
17 |
+
?>
|
18 |
+
|
19 |
+
<li class="sfsi_show_via_widget_li">
|
20 |
+
|
21 |
+
<div class="radio_section tb_4_ck" onclick="checkforinfoslction(this);">
|
22 |
+
|
23 |
+
<input name="sfsi_show_via_widget" <?php echo $checked ;?> id="sfsi_show_via_widget_li" type="checkbox" value="<?php echo $sfsi_show_via_widget; ?>" class="styled" />
|
24 |
+
|
25 |
+
</div>
|
26 |
+
|
27 |
+
<div class="sfsi_right_info">
|
28 |
+
<p>
|
29 |
+
<span class="sfsi_toglepstpgspn">Show them via a widget</span><br>
|
30 |
+
|
31 |
+
<label <?php echo $label_style; ?> class="sfsiplus_sub-subtitle ckckslctn">Go to the <a href="<?php echo admin_url('widgets.php');?>">widget area</a> and drag & drop it where you want to show them!
|
32 |
+
|
33 |
+
</label>
|
34 |
+
</p>
|
35 |
+
|
36 |
+
</div>
|
37 |
+
|
38 |
+
</li>
|