Version Description
- Updated Tweet about my page can be empty.
- Updated Export section aligned center to button.
- Updated top_arow css removed.
Download this release
Release Info
Developer | socialdude |
Plugin | Social Media Share Buttons & Social Sharing Icons |
Version | 2.4.6 |
Comparing to | |
See all releases |
Code changes from version 2.4.5 to 2.4.6
- css/sfsi-style.css +1 -14
- js/custom-admin.js +8 -8
- js/customValidate-min.js +1 -1
- js/customValidate.js +8 -8
- libs/controllers/sfsi_buttons_controller.php +1 -1
- libs/controllers/sfsi_socialhelper.php +6 -1
- libs/sfsi_install_uninstall.php +7 -2
- libs/sfsi_widget.php +2 -2
- readme.txt +13 -7
- ultimate_social_media_icons.php +2 -3
- views/sfsi_option_view7.php +3 -0
- views/sfsi_section_for_premium.php +5 -3
css/sfsi-style.css
CHANGED
@@ -985,20 +985,7 @@ ul.tab_3_icns li .radio {
|
|
985 |
cursor: pointer;
|
986 |
}
|
987 |
|
988 |
-
.top_arow {
|
989 |
-
background: url(../images/top_aro.png) no-repeat;
|
990 |
-
position: absolute;
|
991 |
-
top: -29px;
|
992 |
-
left: 38%;
|
993 |
-
width: 33px;
|
994 |
-
height: 29px;
|
995 |
-
backgoround-color: #fff;
|
996 |
-
}
|
997 |
|
998 |
-
.sfsi_tool_tip_2 .top_arow .sfsi_inside,
|
999 |
-
.top_arow .sfsi_inside {
|
1000 |
-
float: left;
|
1001 |
-
}
|
1002 |
|
1003 |
.sfsi_tool_tip_2 .tool_tip>img,
|
1004 |
.tool_tip>img {
|
@@ -3485,7 +3472,7 @@ ul.sfsi_icn_listing8 li .tb_4_ck{
|
|
3485 |
display: flex;
|
3486 |
height: 0px;
|
3487 |
position: absolute;
|
3488 |
-
top:
|
3489 |
right: 0;
|
3490 |
}
|
3491 |
|
985 |
cursor: pointer;
|
986 |
}
|
987 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
988 |
|
|
|
|
|
|
|
|
|
989 |
|
990 |
.sfsi_tool_tip_2 .tool_tip>img,
|
991 |
.tool_tip>img {
|
3472 |
display: flex;
|
3473 |
height: 0px;
|
3474 |
position: absolute;
|
3475 |
+
top: 42px;
|
3476 |
right: 0;
|
3477 |
}
|
3478 |
|
js/custom-admin.js
CHANGED
@@ -1097,14 +1097,14 @@ function sfsi_validationStep2() {
|
|
1097 |
return false;
|
1098 |
}
|
1099 |
}
|
1100 |
-
/* validate twitter about page */
|
1101 |
-
if (sfsi_validator(SFSI('input[name="sfsi_twitter_aboutPage"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_aboutPage"]'), 'checked')) {
|
1102 |
-
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
-
|
1107 |
-
}
|
1108 |
/* twitter validation */
|
1109 |
if (sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'), 'checked')) {
|
1110 |
if (!sfsi_validator(SFSI('input[name="sfsi_twitter_pageURL"]'), 'blank')) {
|
1097 |
return false;
|
1098 |
}
|
1099 |
}
|
1100 |
+
// /* validate twitter about page */
|
1101 |
+
// if (sfsi_validator(SFSI('input[name="sfsi_twitter_aboutPage"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_aboutPage"]'), 'checked')) {
|
1102 |
+
// if (!sfsi_validator(SFSI('#sfsi_twitter_aboutPageText'), 'blank')) {
|
1103 |
+
// showErrorSuc("error", "Error : Tweet about my page is blank ", 2);
|
1104 |
+
// SFSI('#sfsi_twitter_aboutPageText').addClass('inputError');
|
1105 |
+
// return false;
|
1106 |
+
// }
|
1107 |
+
// }
|
1108 |
/* twitter validation */
|
1109 |
if (sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'), 'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'), 'checked')) {
|
1110 |
if (!sfsi_validator(SFSI('input[name="sfsi_twitter_pageURL"]'), 'blank')) {
|
js/customValidate-min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function sfsi_plus_validationStep2(){SFSI("input").removeClass("inputError");if(sfsi_validator(SFSI('input[name="sfsi_plus_rss_display"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_rss_url"]'),"url")){sfsiplus_showErrorSuc("error","Error : Invalid Rss url ",2);SFSI('input[name="sfsi_plus_rss_url"]').addClass("inputError");return false}}if(sfsi_validator(SFSI('input[name="sfsi_plus_facebookPage_option"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_facebookPage_option"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_facebookPage_url"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid Facebook page url ",2);SFSI('input[name="sfsi_plus_facebookPage_url"]').addClass("inputError");return false}}if(sfsi_validator(SFSI('input[name="sfsi_plus_twitter_followme"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_twitter_followme"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_twitter_followUserName"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid Twitter UserName ",2);SFSI('input[name="sfsi_plus_twitter_followUserName"]').addClass("inputError");return false}}if(sfsi_validator(SFSI('input[name="sfsi_plus_twitter_aboutPage"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_twitter_aboutPage"]'),"checked")){if(!sfsi_validator(SFSI("#sfsi_plus_twitter_aboutPageText"),"blank")){sfsiplus_showErrorSuc("error","Error : Tweet about my page is blank ",2);SFSI("#sfsi_plus_twitter_aboutPageText").addClass("inputError");return false}}if(sfsi_validator(SFSI('input[name="sfsi_plus_twitter_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_twitter_page"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_twitter_pageURL"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid twitter page Url ",2);SFSI('input[name="sfsi_plus_twitter_pageURL"]').addClass("inputError");return false}}if(sfsi_validator(SFSI('input[name="sfsi_plus_youtube_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_youtube_page"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_youtube_pageUrl"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid youtube Url ",2);SFSI('input[name="sfsi_plus_youtube_pageUrl"]').addClass("inputError");return false}}if(sfsi_validator(SFSI('input[name="sfsi_plus_youtube_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_youtube_follow"]'),"checked")){if(jQuery("input[name='sfsi_plus_youtubeusernameorid']:checked").val()=="name"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_ytube_user"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid youtube user ",2);SFSI('input[name="sfsi_plus_ytube_user"]').addClass("inputError");return false}}else{if(!sfsi_validator(SFSI('input[name="sfsi_plus_ytube_chnlid"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid youtube channel id",2);SFSI('input[name="sfsi_plus_ytube_chnlid"]').addClass("inputError");return false}}}if(sfsi_validator(SFSI('input[name="sfsi_plus_pinterest_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_pinterest_page"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_pinterest_pageUrl"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid pinterest page url ",2);SFSI('input[name="sfsi_plus_pinterest_pageUrl"]').addClass("inputError");return false}}if(sfsi_validator(SFSI('input[name="sfsi_plus_instagram_display"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_instagram_pageUrl"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid Instagram url ",2);SFSI('input[name="sfsi_plus_instagram_pageUrl"]').addClass("inputError");return false}}if(sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_page"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_pageURL"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid LinkedIn page url ",2);SFSI('input[name="sfsi_plus_linkedin_pageURL"]').addClass("inputError");return false}}if(sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_recommendBusines"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_recommendBusines"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_recommendProductId"]'),"blank")||!sfsi_validator(SFSI('input[name="sfsi_plus_linkedin_recommendCompany"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter Product Id and Company for LinkedIn Recommendation ",2);SFSI('input[name="sfsi_plus_linkedin_recommendProductId"]').addClass("inputError");SFSI('input[name="sfsi_plus_linkedin_recommendCompany"]').addClass("inputError");return false}}var e=0;SFSI("input[name='sfsi_plus_CustomIcon_links[]']").each(function(){if(!sfsi_validator(SFSI(this),"blank")||!sfsi_validator(SFSI(SFSI(this)),"url")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid Custom link ",2);SFSI(this).addClass("inputError");e=1}});if(!e)return true;else return false}function sfsi_plus_validationStep3(){SFSI("input").removeClass("inputError");if(sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_icons"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_icons"]'),"checked")){if((!sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_Firstload"]'),"activte")||!sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_Firstload"]'),"checked"))&&(!sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_interval"]'),"activte")||!sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_interval"]'),"checked"))){sfsiplus_showErrorSuc("error","Error : Please Chose a Shuffle option ",3);SFSI('input[name="sfsi_plus_shuffle_Firstload"]').addClass("inputError");SFSI('input[name="sfsi_plus_shuffle_interval"]').addClass("inputError");return false}}if(!sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_icons"]'),"checked")&&(sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_Firstload"]'),"checked")||sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_interval"]'),"checked"))){sfsiplus_showErrorSuc("error",'Error : Please check "Shuffle them automatically" option also ',3);SFSI('input[name="sfsi_plus_shuffle_Firstload"]').addClass("inputError");SFSI('input[name="sfsi_plus_shuffle_interval"]').addClass("inputError");return false}if(sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_interval"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_interval"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_intervalTime"]'),"blank")||!sfsi_validator(SFSI('input[name="sfsi_plus_shuffle_intervalTime"]'),"int")){sfsiplus_showErrorSuc("error","Error : Invalid shuffle time interval",3);SFSI('input[name="sfsi_plus_shuffle_intervalTime"]').addClass("inputError");return false}}return true}function sfsi_plus_validationStep4(){if(sfsi_validator(SFSI('input[name="sfsi_plus_email_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_email_countsDisplay"]'),"checked")){if(SFSI('input[name="sfsi_plus_email_countsFrom"]:checked').val()=="manual"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_email_manualCounts"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter manual counts for Email icon ",4);SFSI('input[name="sfsi_plus_email_manualCounts"]').addClass("inputError");return false}}}if(sfsi_validator(SFSI('input[name="sfsi_plus_rss_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_rss_countsDisplay"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_rss_manualCounts"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter manual counts for Rss icon ",4);SFSI('input[name="sfsi_plus_rss_countsDisplay"]').addClass("inputError");return false}}if(sfsi_validator(SFSI('input[name="sfsi_plus_facebook_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_facebook_countsDisplay"]'),"checked")){if(SFSI('input[name="sfsi_plus_facebook_countsFrom"]:checked').val()=="manual"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_facebook_manualCounts"]'),"blank")&&!sfsi_validator(SFSI('input[name="sfsi_plus_facebook_manualCounts"]'),"url")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid facebook manual counts ",4);SFSI('input[name="sfsi_plus_facebook_manualCounts"]').addClass("inputError");return false}}}if(sfsi_validator(SFSI('input[name="sfsi_plus_twitter_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_twitter_countsDisplay"]'),"checked")){if(SFSI('input[name="sfsi_plus_twitter_countsFrom"]:checked').val()=="source"){if(!sfsi_validator(SFSI('input[name="sfsiplus_tw_consumer_key"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid consumer key",4);SFSI('input[name="sfsiplus_tw_consumer_key"]').addClass("inputError");return false}if(!sfsi_validator(SFSI('input[name="sfsiplus_tw_consumer_secret"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid consume secret ",4);SFSI('input[name="sfsiplus_tw_consumer_secret"]').addClass("inputError");return false}if(!sfsi_validator(SFSI('input[name="sfsiplus_tw_oauth_access_token"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid oauth access token",4);SFSI('input[name="sfsiplus_tw_oauth_access_token"]').addClass("inputError");return false}if(!sfsi_validator(SFSI('input[name="sfsiplus_tw_oauth_access_token_secret"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a oAuth access token secret",4);SFSI('input[name="sfsiplus_tw_oauth_access_token_secret"]').addClass("inputError");return false}}if(SFSI('input[name="sfsi_plus_linkedIn_countsFrom"]:checked').val()=="manual"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_twitter_manualCounts"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter Twitter manual counts ",4);SFSI('input[name="sfsi_plus_twitter_manualCounts"]').addClass("inputError");return false}}}if(sfsi_validator(SFSI('input[name="sfsi_plus_linkedIn_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_linkedIn_countsDisplay"]'),"checked")){if(SFSI('input[name="sfsi_plus_linkedIn_countsFrom"]:checked').val()=="follower"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_ln_company"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid company name",4);SFSI('input[name="sfsi_plus_ln_company"]').addClass("inputError");return false}if(!sfsi_validator(SFSI('input[name="sfsi_plus_ln_api_key"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid API key ",4);SFSI('input[name="sfsi_plus_ln_api_key"]').addClass("inputError");return false}if(!sfsi_validator(SFSI('input[name="sfsi_plus_ln_secret_key"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid secret ",4);SFSI('input[name="sfsi_plus_ln_secret_key"]').addClass("inputError");return false}if(!sfsi_validator(SFSI('input[name="sfsi_plus_ln_oAuth_user_token"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a oAuth Access Token",4);SFSI('input[name="sfsi_plus_ln_oAuth_user_token"]').addClass("inputError");return false}}if(SFSI('input[name="sfsi_plus_linkedIn_countsFrom"]:checked').val()=="manual"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_linkedIn_manualCounts"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter LinkedIn manual counts ",4);SFSI('input[name="sfsi_plus_linkedIn_manualCounts"]').addClass("inputError");return false}}}if(sfsi_validator(SFSI('input[name="sfsi_plus_youtube_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_youtube_countsDisplay"]'),"checked")){if(SFSI('input[name="sfsi_plus_youtube_countsFrom"]:checked').val()=="subscriber"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_youtube_user"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a youtube user name",4);SFSI('input[name="sfsi_plus_youtube_user"]').addClass("inputError");return false}}if(SFSI('input[name="sfsi_plus_youtube_countsFrom"]:checked').val()=="manual"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_youtube_manualCounts"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter youtube manual counts ",4);SFSI('input[name="sfsi_plus_youtube_manualCounts"]').addClass("inputError");return false}}}if(sfsi_validator(SFSI('input[name="sfsi_plus_pinterest_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_pinterest_countsDisplay"]'),"checked")){if(SFSI('input[name="sfsi_plus_pinterest_countsFrom"]:checked').val()=="manual"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_pinterest_manualCounts"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter Pinterest manual counts ",4);SFSI('input[name="sfsi_plus_pinterest_manualCounts"]').addClass("inputError");return false}}}if(sfsi_validator(SFSI('input[name="sfsi_plus_instagram_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_instagram_countsDisplay"]'),"checked")){if(SFSI('input[name="sfsi_plus_instagram_countsFrom"]:checked').val()=="manual"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_instagram_manualCounts"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter Instagram manual counts ",4);SFSI('input[name="sfsi_plus_instagram_manualCounts"]').addClass("inputError");return false}}if(SFSI('input[name="sfsi_plus_instagram_countsFrom"]:checked').val()=="followers"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_instagram_User"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a instagram user name",4);SFSI('input[name="sfsi_plus_instagram_User"]').addClass("inputError");return false}}}if(sfsi_validator(SFSI('input[name="sfsi_plus_shares_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_shares_countsDisplay"]'),"checked")){if(SFSI('input[name="sfsi_plus_shares_countsFrom"]:checked').val()=="manual"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_shares_manualCounts"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter Share icon manual counts ",4);SFSI('input[name="sfsi_plus_shares_manualCounts"]').addClass("inputError");return false}}}return true}function sfsi_plus_validationStep5(){if(!sfsi_validator(SFSI('input[name="sfsi_plus_icons_size"]'),"int")){sfsiplus_showErrorSuc("error","Error : Please enter a numeric value only ",5);SFSI('input[name="sfsi_plus_icons_size"]').addClass("inputError");return false}if(parseInt(SFSI('input[name="sfsi_plus_icons_size"]').val())>100){sfsiplus_showErrorSuc("error","Error : Icons Size allow 100px maximum ",5);SFSI('input[name="sfsi_plus_icons_size"]').addClass("inputError");return false}if(parseInt(SFSI('input[name="sfsi_plus_icons_size"]').val())<=0){sfsiplus_showErrorSuc("error","Error : Icons Size should be more than 0 ",5);SFSI('input[name="sfsi_plus_icons_size"]').addClass("inputError");return false}if(!sfsi_validator(SFSI('input[name="sfsi_plus_icons_spacing"]'),"int")){sfsiplus_showErrorSuc("error","Error : Please enter a numeric value only ",5);SFSI('input[name="sfsi_plus_icons_spacing"]').addClass("inputError");return false}if(parseInt(SFSI('input[name="sfsi_plus_icons_spacing"]').val())<0){sfsiplus_showErrorSuc("error","Error : Icons Spacing should be 0 or more",5);SFSI('input[name="sfsi_plus_icons_spacing"]').addClass("inputError");return false}if(!sfsi_validator(SFSI('input[name="sfsi_plus_icons_perRow"]'),"int")){sfsiplus_showErrorSuc("error","Error : Please enter a numeric value only ",5);SFSI('input[name="sfsi_plus_icons_perRow"]').addClass("inputError");return false}if(parseInt(SFSI('input[name="sfsi_plus_icons_perRow"]').val())<=0){sfsiplus_showErrorSuc("error","Error : Icons Per row should be more than 0",5);SFSI('input[name="sfsi_plus_icons_perRow"]').addClass("inputError");return false}if(SFSI('input[name="sfsi_plus_icons_float"]:checked').val()=="yes"&&SFSI('input[name="sfsi_plus_icons_stick"]:checked').val()=="yes"){sfsiplus_showErrorSuc("error","Error : Only one allow from Sticking & floating ",5);SFSI('input[name="sfsi_plus_icons_float"][value="no"]').prop("checked",true);return false}return true}function sfsi_plus_validationStep7(){if(!sfsi_validator(SFSI('input[name="sfsi_plus_popup_border_thickness"]'),"int")){sfsiplus_showErrorSuc("error","Error : Please enter a numeric value only ",7);SFSI('input[name="sfsi_plus_popup_border_thickness"]').addClass("inputError");return false}if(!sfsi_validator(SFSI('input[name="sfsi_plus_popup_fontSize"]'),"int")){sfsiplus_showErrorSuc("error","Error : Please enter a numeric value only ",7);SFSI('input[name="sfsi_plus_popup_fontSize"]').addClass("inputError");return false}if(SFSI('input[name="sfsi_plus_Shown_pop"]:checked').val()=="once"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_Shown_popupOnceTime"]'),"blank")&&!sfsi_validator(SFSI('input[name="sfsi_plus_Shown_popupOnceTime"]'),"url")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid pop up shown time ",7);SFSI('input[name="sfsi_plus_Shown_popupOnceTime"]').addClass("inputError");return false}}if(SFSI('input[name="sfsi_plus_Show_popupOn"]:checked').val()=="selectedpage"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_Show_popupOn"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter page ids with comma ",7);SFSI('input[name="sfsi_plus_Show_popupOn"]').addClass("inputError");return false}}if(!sfsi_validator(SFSI('input[name="sfsi_plus_icons_spacing"]'),"int")){sfsiplus_showErrorSuc("error","Error : Please enter a numeric value only ",7);SFSI('input[name="sfsi_plus_icons_spacing"]').addClass("inputError");return false}if(!sfsi_validator(SFSI('input[name="sfsi_plus_icons_perRow"]'),"int")){sfsiplus_showErrorSuc("error","Error : Please enter a numeric value only ",7);SFSI('input[name="sfsi_plus_icons_perRow"]').addClass("inputError");return false}return true}function sfsi_validator(e,t){var n=new RegExp("^(http|https|ftp)://([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]).(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0).(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0).(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0-9-]+.)*[a-zA-Z0-9-]+.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$");switch(t){case"blank":if(!e.val().trim())return false;else return true;break;case"url":if(!n.test(e.val().trim()))return false;else return true;break;case"checked":if(!e.attr("checked")===true)return false;else return true;break;case"activte":if(!e.attr("disabled"))return true;else return false;break;case"int":if(!isNaN(e.val()))return true;else return false;break}}
|
1 |
+
function sfsi_validationStep2(){if(SFSI("input").removeClass("inputError"),sfsi_validator(SFSI('input[name="sfsi_rss_display"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_rss_url"]'),"url"))return showErrorSuc("error","Error : Invalid Rss url ",2),SFSI('input[name="sfsi_rss_url"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_facebookPage_option"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_facebookPage_option"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_facebookPage_url"]'),"blank"))return showErrorSuc("error","Error : Invalid Facebook page url ",2),SFSI('input[name="sfsi_facebookPage_url"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_twitter_followme"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_twitter_followme"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_twitter_followUserName"]'),"blank"))return showErrorSuc("error","Error : Invalid Twitter UserName ",2),SFSI('input[name="sfsi_twitter_followUserName"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_twitter_pageURL"]'),"blank"))return showErrorSuc("error","Error : Invalid twitter page Url ",2),SFSI('input[name="sfsi_twitter_pageURL"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_youtube_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_youtube_page"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_youtube_pageUrl"]'),"blank"))return showErrorSuc("error","Error : Invalid youtube Url ",2),SFSI('input[name="sfsi_youtube_pageUrl"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_youtube_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_youtube_follow"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_ytube_user"]'),"blank"))return showErrorSuc("error","Error : Invalid youtube user ",2),SFSI('input[name="sfsi_ytube_user"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_pinterest_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_pinterest_page"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_pinterest_pageUrl"]'),"blank"))return showErrorSuc("error","Error : Invalid pinterest page url ",2),SFSI('input[name="sfsi_pinterest_pageUrl"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_instagram_display"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_instagram_pageUrl"]'),"blank"))return showErrorSuc("error","Error : Invalid Instagram url ",2),SFSI('input[name="sfsi_instagram_pageUrl"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_linkedin_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_linkedin_page"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_linkedin_pageURL"]'),"blank"))return showErrorSuc("error","Error : Invalid LinkedIn page url ",2),SFSI('input[name="sfsi_linkedin_pageURL"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendBusines"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendBusines"]'),"checked")&&(!sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendProductId"]'),"blank")||!sfsi_validator(SFSI('input[name="sfsi_linkedin_recommendCompany"]'),"blank")))return showErrorSuc("error","Error : Please Enter Product Id and Company for LinkedIn Recommendation ",2),SFSI('input[name="sfsi_linkedin_recommendProductId"]').addClass("inputError"),SFSI('input[name="sfsi_linkedin_recommendCompany"]').addClass("inputError"),!1;var r=0;return SFSI("input[name='sfsi_CustomIcon_links[]']").each(function(){sfsi_validator(SFSI(this),"blank")&&sfsi_validator(SFSI(SFSI(this)),"url")||(showErrorSuc("error","Error : Please Enter a valid Custom link ",2),SFSI(this).addClass("inputError"),r=1)}),!r}function sfsi_validationStep3(){return SFSI("input").removeClass("inputError"),sfsi_validator(SFSI('input[name="sfsi_shuffle_icons"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_shuffle_icons"]'),"checked")&&!(sfsi_validator(SFSI('input[name="sfsi_shuffle_Firstload"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_shuffle_Firstload"]'),"checked")||sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'),"checked"))?(showErrorSuc("error","Error : Please Chose a Shuffle option ",3),SFSI('input[name="sfsi_shuffle_Firstload"]').addClass("inputError"),SFSI('input[name="sfsi_shuffle_interval"]').addClass("inputError"),!1):sfsi_validator(SFSI('input[name="sfsi_shuffle_icons"]'),"checked")||!sfsi_validator(SFSI('input[name="sfsi_shuffle_Firstload"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'),"checked")?!(sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_shuffle_interval"]'),"checked")&&(!sfsi_validator(SFSI('input[name="sfsi_shuffle_intervalTime"]'),"blank")||!sfsi_validator(SFSI('input[name="sfsi_shuffle_intervalTime"]'),"int")))||(showErrorSuc("error","Error : Invalid shuffle time interval",3),SFSI('input[name="sfsi_shuffle_intervalTime"]').addClass("inputError"),!1):(showErrorSuc("error",'Error : Please check "Shuffle them automatically" option also ',3),SFSI('input[name="sfsi_shuffle_Firstload"]').addClass("inputError"),SFSI('input[name="sfsi_shuffle_interval"]').addClass("inputError"),!1)}function sfsi_validationStep4(){if(sfsi_validator(SFSI('input[name="sfsi_email_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_email_countsDisplay"]'),"checked")&&"manual"==SFSI('input[name="sfsi_email_countsFrom"]:checked').val()&&!sfsi_validator(SFSI('input[name="sfsi_email_manualCounts"]'),"blank"))return showErrorSuc("error","Error : Please Enter manual counts for Email icon ",4),SFSI('input[name="sfsi_email_manualCounts"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_rss_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_rss_countsDisplay"]'),"checked")&&!sfsi_validator(SFSI('input[name="sfsi_rss_manualCounts"]'),"blank"))return showErrorSuc("error","Error : Please Enter manual counts for Rss icon ",4),SFSI('input[name="sfsi_rss_countsDisplay"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_facebook_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_facebook_countsDisplay"]'),"checked")&&"manual"==SFSI('input[name="sfsi_facebook_countsFrom"]:checked').val()&&!sfsi_validator(SFSI('input[name="sfsi_facebook_manualCounts"]'),"blank")&&!sfsi_validator(SFSI('input[name="sfsi_facebook_manualCounts"]'),"url"))return showErrorSuc("error","Error : Please Enter a valid facebook manual counts ",4),SFSI('input[name="sfsi_facebook_manualCounts"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_twitter_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_twitter_countsDisplay"]'),"checked")){if("source"==SFSI('input[name="sfsi_twitter_countsFrom"]:checked').val()){if(!sfsi_validator(SFSI('input[name="tw_consumer_key"]'),"blank"))return showErrorSuc("error","Error : Please Enter a valid consumer key",4),SFSI('input[name="tw_consumer_key"]').addClass("inputError"),!1;if(!sfsi_validator(SFSI('input[name="tw_consumer_secret"]'),"blank"))return showErrorSuc("error","Error : Please Enter a valid consume secret ",4),SFSI('input[name="tw_consumer_secret"]').addClass("inputError"),!1;if(!sfsi_validator(SFSI('input[name="tw_oauth_access_token"]'),"blank"))return showErrorSuc("error","Error : Please Enter a valid oauth access token",4),SFSI('input[name="tw_oauth_access_token"]').addClass("inputError"),!1;if(!sfsi_validator(SFSI('input[name="tw_oauth_access_token_secret"]'),"blank"))return showErrorSuc("error","Error : Please Enter a oAuth access token secret",4),SFSI('input[name="tw_oauth_access_token_secret"]').addClass("inputError"),!1}if("manual"==SFSI('input[name="sfsi_linkedIn_countsFrom"]:checked').val()&&!sfsi_validator(SFSI('input[name="sfsi_twitter_manualCounts"]'),"blank"))return showErrorSuc("error","Error : Please Enter Twitter manual counts ",4),SFSI('input[name="sfsi_twitter_manualCounts"]').addClass("inputError"),!1}if(sfsi_validator(SFSI('input[name="sfsi_linkedIn_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_linkedIn_countsDisplay"]'),"checked")){if("follower"==SFSI('input[name="sfsi_linkedIn_countsFrom"]:checked').val()){if(!sfsi_validator(SFSI('input[name="ln_company"]'),"blank"))return showErrorSuc("error","Error : Please Enter a valid company name",4),SFSI('input[name="ln_company"]').addClass("inputError"),!1;if(!sfsi_validator(SFSI('input[name="ln_api_key"]'),"blank"))return showErrorSuc("error","Error : Please Enter a valid API key ",4),SFSI('input[name="ln_api_key"]').addClass("inputError"),!1;if(!sfsi_validator(SFSI('input[name="ln_secret_key"]'),"blank"))return showErrorSuc("error","Error : Please Enter a valid secret ",4),SFSI('input[name="ln_secret_key"]').addClass("inputError"),!1;if(!sfsi_validator(SFSI('input[name="ln_oAuth_user_token"]'),"blank"))return showErrorSuc("error","Error : Please Enter a oAuth Access Token",4),SFSI('input[name="ln_oAuth_user_token"]').addClass("inputError"),!1}if("manual"==SFSI('input[name="sfsi_linkedIn_countsFrom"]:checked').val()&&!sfsi_validator(SFSI('input[name="sfsi_linkedIn_manualCounts"]'),"blank"))return showErrorSuc("error","Error : Please Enter LinkedIn manual counts ",4),SFSI('input[name="sfsi_linkedIn_manualCounts"]').addClass("inputError"),!1}if(sfsi_validator(SFSI('input[name="sfsi_youtube_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_youtube_countsDisplay"]'),"checked")){if("subscriber"==SFSI('input[name="sfsi_youtube_countsFrom"]:checked').val()&&!sfsi_validator(SFSI('input[name="sfsi_youtube_user"]'),"blank"))return showErrorSuc("error","Error : Please Enter a youtube user name",4),SFSI('input[name="sfsi_youtube_user"]').addClass("inputError"),!1;if("manual"==SFSI('input[name="sfsi_youtube_countsFrom"]:checked').val()&&!sfsi_validator(SFSI('input[name="sfsi_youtube_manualCounts"]'),"blank"))return showErrorSuc("error","Error : Please Enter youtube manual counts ",4),SFSI('input[name="sfsi_youtube_manualCounts"]').addClass("inputError"),!1}if(sfsi_validator(SFSI('input[name="sfsi_pinterest_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_pinterest_countsDisplay"]'),"checked")&&"manual"==SFSI('input[name="sfsi_pinterest_countsFrom"]:checked').val()&&!sfsi_validator(SFSI('input[name="sfsi_pinterest_manualCounts"]'),"blank"))return showErrorSuc("error","Error : Please Enter Pinterest manual counts ",4),SFSI('input[name="sfsi_pinterest_manualCounts"]').addClass("inputError"),!1;if(sfsi_validator(SFSI('input[name="sfsi_instagram_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_instagram_countsDisplay"]'),"checked")){if("manual"==SFSI('input[name="sfsi_instagram_countsFrom"]:checked').val()&&!sfsi_validator(SFSI('input[name="sfsi_instagram_manualCounts"]'),"blank"))return showErrorSuc("error","Error : Please Enter Instagram manual counts ",4),SFSI('input[name="sfsi_instagram_manualCounts"]').addClass("inputError"),!1;if("followers"==SFSI('input[name="sfsi_instagram_countsFrom"]:checked').val()&&!sfsi_validator(SFSI('input[name="sfsi_instagram_User"]'),"blank"))return showErrorSuc("error","Error : Please Enter a instagram user name",4),SFSI('input[name="sfsi_instagram_User"]').addClass("inputError"),!1}return!0}function sfsi_validationStep5(){return sfsi_validator(SFSI('input[name="sfsi_icons_size"]'),"int")?parseInt(SFSI('input[name="sfsi_icons_size"]').val())>100?(showErrorSuc("error","Error : Icons Size allow 100px maximum ",5),SFSI('input[name="sfsi_icons_size"]').addClass("inputError"),!1):parseInt(SFSI('input[name="sfsi_icons_size"]').val())<=0?(showErrorSuc("error","Error : Icons Size should be more than 0 ",5),SFSI('input[name="sfsi_icons_size"]').addClass("inputError"),!1):sfsi_validator(SFSI('input[name="sfsi_icons_spacing"]'),"int")?parseInt(SFSI('input[name="sfsi_icons_spacing"]').val())<0?(showErrorSuc("error","Error : Icons Spacing should be 0 or more",5),SFSI('input[name="sfsi_icons_spacing"]').addClass("inputError"),!1):sfsi_validator(SFSI('input[name="sfsi_icons_perRow"]'),"int")?!(parseInt(SFSI('input[name="sfsi_icons_perRow"]').val())<=0)||(showErrorSuc("error","Error : Icons Per row should be more than 0",5),SFSI('input[name="sfsi_icons_perRow"]').addClass("inputError"),!1):(showErrorSuc("error","Error : Please enter a numeric value only ",5),SFSI('input[name="sfsi_icons_perRow"]').addClass("inputError"),!1):(showErrorSuc("error","Error : Please enter a numeric value only ",5),SFSI('input[name="sfsi_icons_spacing"]').addClass("inputError"),!1):(showErrorSuc("error","Error : Please enter a numeric value only ",5),SFSI('input[name="sfsi_icons_size"]').addClass("inputError"),!1)}function sfsi_validationStep7(){return sfsi_validator(SFSI('input[name="sfsi_popup_border_thickness"]'),"int")?sfsi_validator(SFSI('input[name="sfsi_popup_fontSize"]'),"int")?"once"!=SFSI('input[name="sfsi_Shown_pop"]:checked').val()||sfsi_validator(SFSI('input[name="sfsi_Shown_popupOnceTime"]'),"blank")||sfsi_validator(SFSI('input[name="sfsi_Shown_popupOnceTime"]'),"url")?"selectedpage"!=SFSI('input[name="sfsi_Show_popupOn"]:checked').val()||sfsi_validator(SFSI('input[name="sfsi_Show_popupOn"]'),"blank")?sfsi_validator(SFSI('input[name="sfsi_icons_spacing"]'),"int")?!!sfsi_validator(SFSI('input[name="sfsi_icons_perRow"]'),"int")||(showErrorSuc("error","Error : Please enter a numeric value only ",7),SFSI('input[name="sfsi_icons_perRow"]').addClass("inputError"),!1):(showErrorSuc("error","Error : Please enter a numeric value only ",7),SFSI('input[name="sfsi_icons_spacing"]').addClass("inputError"),!1):(showErrorSuc("error","Error : Please Enter page ids with comma ",7),SFSI('input[name="sfsi_Show_popupOn"]').addClass("inputError"),!1):(showErrorSuc("error","Error : Please Enter a valid pop up shown time ",7),SFSI('input[name="sfsi_Shown_popupOnceTime"]').addClass("inputError"),!1):(showErrorSuc("error","Error : Please enter a numeric value only ",7),SFSI('input[name="sfsi_popup_fontSize"]').addClass("inputError"),!1):(showErrorSuc("error","Error : Please enter a numeric value only ",7),SFSI('input[name="sfsi_popup_border_thickness"]').addClass("inputError"),!1)}function sfsi_validator(r,s){var a=new RegExp("^(http|https|ftp)://([a-zA-Z0-9.-]+(:[a-zA-Z0-9.&%$-]+)*@)*((25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]).(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0).(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[1-9]|0).(25[0-5]|2[0-4][0-9]|[0-1]{1}[0-9]{2}|[1-9]{1}[0-9]{1}|[0-9])|([a-zA-Z0-9-]+.)*[a-zA-Z0-9-]+.(com|edu|gov|int|mil|net|org|biz|arpa|info|name|pro|aero|coop|museum|[a-zA-Z]{2}))(:[0-9]+)*(/($|[a-zA-Z0-9.,?'\\+&%$#=~_-]+))*$");switch(s){case"blank":return!!r.val().trim();case"url":return!!a.test(r.val().trim());case"checked":return!0!=!r.attr("checked");case"activte":return!r.attr("disabled");case"int":return!isNaN(r.val())}}
|
js/customValidate.js
CHANGED
@@ -36,16 +36,16 @@ function sfsi_validationStep2()
|
|
36 |
}
|
37 |
}
|
38 |
/* validate twitter about page */
|
39 |
-
|
40 |
-
{
|
41 |
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
}
|
49 |
|
50 |
/* twitter validation */
|
51 |
if(sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'),'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'),'checked'))
|
36 |
}
|
37 |
}
|
38 |
/* validate twitter about page */
|
39 |
+
// if(sfsi_validator(SFSI('input[name="sfsi_twitter_aboutPage"]'),'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_aboutPage"]'),'checked'))
|
40 |
+
// {
|
41 |
|
42 |
+
// // if(!sfsi_validator(SFSI('#sfsi_twitter_aboutPageText'),'blank'))
|
43 |
+
// // { showErrorSuc("error","Error : Tweet about my page is blank ",2);
|
44 |
+
// // SFSI('#sfsi_twitter_aboutPageText').addClass('inputError');
|
45 |
|
46 |
+
// // return false;
|
47 |
+
// // }
|
48 |
+
// }
|
49 |
|
50 |
/* twitter validation */
|
51 |
if(sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'),'activte') && sfsi_validator(SFSI('input[name="sfsi_twitter_page"]'),'checked'))
|
libs/controllers/sfsi_buttons_controller.php
CHANGED
@@ -79,7 +79,7 @@ function sfsi_options_updater2()
|
|
79 |
$sfsi_twitter_aboutPage = isset($_POST["sfsi_twitter_aboutPage"]) ? sanitize_text_field($_POST["sfsi_twitter_aboutPage"]) : 'no';
|
80 |
$sfsi_twitter_page = isset($_POST["sfsi_twitter_page"]) ? sanitize_text_field($_POST["sfsi_twitter_page"]) : 'no';
|
81 |
$sfsi_twitter_pageURL = isset($_POST["sfsi_twitter_pageURL"]) ? esc_url(trim($_POST["sfsi_twitter_pageURL"])) : '';
|
82 |
-
$sfsi_twitter_aboutPageText = isset($_POST["sfsi_twitter_aboutPageText"]) ? sanitize_text_field($_POST["sfsi_twitter_aboutPageText"]) : '
|
83 |
$sfsi_youtube_pageUrl = isset($_POST["sfsi_youtube_pageUrl"]) ? esc_url(trim($_POST["sfsi_youtube_pageUrl"])) : '';
|
84 |
$sfsi_youtube_page = isset($_POST["sfsi_youtube_page"]) ? sanitize_text_field($_POST["sfsi_youtube_page"]) : 'no';
|
85 |
$sfsi_youtube_follow = isset($_POST["sfsi_youtube_follow"]) ? sanitize_text_field($_POST["sfsi_youtube_follow"]) : 'no';
|
79 |
$sfsi_twitter_aboutPage = isset($_POST["sfsi_twitter_aboutPage"]) ? sanitize_text_field($_POST["sfsi_twitter_aboutPage"]) : 'no';
|
80 |
$sfsi_twitter_page = isset($_POST["sfsi_twitter_page"]) ? sanitize_text_field($_POST["sfsi_twitter_page"]) : 'no';
|
81 |
$sfsi_twitter_pageURL = isset($_POST["sfsi_twitter_pageURL"]) ? esc_url(trim($_POST["sfsi_twitter_pageURL"])) : '';
|
82 |
+
$sfsi_twitter_aboutPageText = isset($_POST["sfsi_twitter_aboutPageText"]) ? sanitize_text_field($_POST["sfsi_twitter_aboutPageText"]) : '';
|
83 |
$sfsi_youtube_pageUrl = isset($_POST["sfsi_youtube_pageUrl"]) ? esc_url(trim($_POST["sfsi_youtube_pageUrl"])) : '';
|
84 |
$sfsi_youtube_page = isset($_POST["sfsi_youtube_page"]) ? sanitize_text_field($_POST["sfsi_youtube_page"]) : 'no';
|
85 |
$sfsi_youtube_follow = isset($_POST["sfsi_youtube_follow"]) ? sanitize_text_field($_POST["sfsi_youtube_follow"]) : 'no';
|
libs/controllers/sfsi_socialhelper.php
CHANGED
@@ -283,7 +283,12 @@ class sfsi_SocialHelper
|
|
283 |
/* create on page twitter share icon */
|
284 |
public function sfsi_twitterShare($permalink,$tweettext)
|
285 |
{
|
286 |
-
|
|
|
|
|
|
|
|
|
|
|
287 |
return $twitter_html;
|
288 |
}
|
289 |
|
283 |
/* create on page twitter share icon */
|
284 |
public function sfsi_twitterShare($permalink,$tweettext)
|
285 |
{
|
286 |
+
if($tweettext){
|
287 |
+
$twitter_html = '<a rel="nofollow" href="http://twitter.com/share" data-count="none" class="sr-twitter-button twitter-share-button" lang="en" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
|
288 |
+
}else{
|
289 |
+
$twitter_html = '<a rel="nofollow" href="http://twitter.com/share" data-count="none" class="sr-twitter-button twitter-share-button" lang="en" data-url="'.$permalink.'" data-text=" " ></a>';
|
290 |
+
|
291 |
+
}
|
292 |
return $twitter_html;
|
293 |
}
|
294 |
|
libs/sfsi_install_uninstall.php
CHANGED
@@ -39,7 +39,7 @@ function sfsi_update_plugin()
|
|
39 |
update_option("sfsi_custom_icons", "yes");
|
40 |
}
|
41 |
//Install version
|
42 |
-
update_option("sfsi_pluginVersion", "2.
|
43 |
|
44 |
if (!get_option('sfsi_serverphpVersionnotification')) {
|
45 |
add_option("sfsi_serverphpVersionnotification", "yes");
|
@@ -452,7 +452,12 @@ function sfsi_update_plugin()
|
|
452 |
if (isset($option5['sfsi_google_MouseOverText'])) {
|
453 |
unset($option5['sfsi_google_MouseOverText']);
|
454 |
}
|
455 |
-
|
|
|
|
|
|
|
|
|
|
|
456 |
if (!isset($option5['sfsi_pplus_icons_suppress_errors'])) {
|
457 |
|
458 |
$sup_errors = "no";
|
39 |
update_option("sfsi_custom_icons", "yes");
|
40 |
}
|
41 |
//Install version
|
42 |
+
update_option("sfsi_pluginVersion", "2.46");
|
43 |
|
44 |
if (!get_option('sfsi_serverphpVersionnotification')) {
|
45 |
add_option("sfsi_serverphpVersionnotification", "yes");
|
452 |
if (isset($option5['sfsi_google_MouseOverText'])) {
|
453 |
unset($option5['sfsi_google_MouseOverText']);
|
454 |
}
|
455 |
+
if (!isset($option5['sfsi_icons_Alignment_via_widget'])) {
|
456 |
+
$option5['sfsi_icons_Alignment_via_widget'] = 'left';
|
457 |
+
}
|
458 |
+
if (!isset($option5['sfsi_icons_Alignment_via_shortcode'])) {
|
459 |
+
$option5['sfsi_icons_Alignment_via_shortcode'] = 'left';
|
460 |
+
}
|
461 |
if (!isset($option5['sfsi_pplus_icons_suppress_errors'])) {
|
462 |
|
463 |
$sup_errors = "no";
|
libs/sfsi_widget.php
CHANGED
@@ -118,8 +118,8 @@ class Sfsi_Widget extends WP_Widget
|
|
118 |
$icons_per_row = ($sfsi_section5['sfsi_icons_perRow']) ? $sfsi_section5['sfsi_icons_perRow'] : '';
|
119 |
|
120 |
$icons_alignment = $sfsi_section5['sfsi_icons_Alignment'];
|
121 |
-
$icons_alignment_widget = $sfsi_section5['sfsi_icons_Alignment_via_widget'];
|
122 |
-
$icons_alignment_shortcode = $sfsi_section5['sfsi_icons_Alignment_via_shortcode'];
|
123 |
|
124 |
$position = 'position:absolute;';
|
125 |
$position1 = 'position:absolute;';
|
118 |
$icons_per_row = ($sfsi_section5['sfsi_icons_perRow']) ? $sfsi_section5['sfsi_icons_perRow'] : '';
|
119 |
|
120 |
$icons_alignment = $sfsi_section5['sfsi_icons_Alignment'];
|
121 |
+
$icons_alignment_widget = isset($sfsi_section5['sfsi_icons_Alignment_via_widget'])?sanitize_text_field($sfsi_section5['sfsi_icons_Alignment_via_widget']):'left';
|
122 |
+
$icons_alignment_shortcode = isset($sfsi_section5['sfsi_icons_Alignment_via_shortcode'])?sanitize_text_field($sfsi_section5['sfsi_icons_Alignment_via_shortcode']):'left';
|
123 |
|
124 |
$position = 'position:absolute;';
|
125 |
$position1 = 'position:absolute;';
|
readme.txt
CHANGED
@@ -3,7 +3,7 @@ Contributors: socialdude, socialtech
|
|
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: 3.5
|
5 |
Tested up to: 5.3
|
6 |
-
Stable tag: 2.4.
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
@@ -15,7 +15,7 @@ Social media plugin which let's you add share icons for RSS, Email, Facebook, Tw
|
|
15 |
|
16 |
This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
|
17 |
|
18 |
-
[
|
19 |
|
20 |
See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
|
21 |
|
@@ -46,7 +46,7 @@ The social media plugin is very easy to use as it takes you through all the step
|
|
46 |
|
47 |
In case of issues or questions please ask in the [Support forum](https://wordpress.org/support/plugin/ultimate-social-media-icons).
|
48 |
|
49 |
-
We hope you enjoy the free social media plugin!
|
50 |
|
51 |
= New Premium Plugin =
|
52 |
|
@@ -274,10 +274,16 @@ You cannot use the same plugin twice, however you can install both the USM as we
|
|
274 |
|
275 |
|
276 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
277 |
= 2.4.5 =
|
278 |
-
* Updated Export section and success message after export
|
279 |
-
*
|
280 |
-
* Added Lazy load css
|
281 |
|
282 |
= 2.4.4 =
|
283 |
* All console.log commented.
|
@@ -888,5 +894,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
|
|
888 |
|
889 |
== Upgrade Notice ==
|
890 |
|
891 |
-
= 2.4.
|
892 |
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: 3.5
|
5 |
Tested up to: 5.3
|
6 |
+
Stable tag: 2.4.6
|
7 |
License: GPLv2
|
8 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
|
15 |
|
16 |
This free plugin has a lot to offer. Even more can be found in the Premium Plugin, please watch this short video:
|
17 |
|
18 |
+
[youtube https://youtu.be/xaZ8m5zSYRg]
|
19 |
|
20 |
See [all features of the Premium plugin](https://www.ultimatelysocial.com/usm-premium/).
|
21 |
|
46 |
|
47 |
In case of issues or questions please ask in the [Support forum](https://wordpress.org/support/plugin/ultimate-social-media-icons).
|
48 |
|
49 |
+
We hope you'll enjoy the free social media plugin!
|
50 |
|
51 |
= New Premium Plugin =
|
52 |
|
274 |
|
275 |
|
276 |
== Changelog ==
|
277 |
+
|
278 |
+
= 2.4.6 =
|
279 |
+
* Updated Tweet about my page can be empty.
|
280 |
+
* Updated Export section aligned center to button.
|
281 |
+
* Updated top_arow css removed.
|
282 |
+
|
283 |
= 2.4.5 =
|
284 |
+
* Updated Export section and success message after export.
|
285 |
+
* Updated the ping function.
|
286 |
+
* Added Lazy load css.
|
287 |
|
288 |
= 2.4.4 =
|
289 |
* All console.log commented.
|
894 |
|
895 |
== Upgrade Notice ==
|
896 |
|
897 |
+
= 2.4.6 =
|
898 |
Please upgrade
|
ultimate_social_media_icons.php
CHANGED
@@ -6,7 +6,7 @@ Description: Easy to use and 100% FREE social media plugin which adds social med
|
|
6 |
|
7 |
Author: UltimatelySocial
|
8 |
Author URI: http://ultimatelysocial.com
|
9 |
-
Version: 2.4.
|
10 |
License: GPLv2 or later
|
11 |
*/
|
12 |
require_once 'analyst/main.php';
|
@@ -88,12 +88,11 @@ register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
|
|
88 |
|
89 |
register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
|
90 |
|
91 |
-
if (!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.
|
92 |
|
93 |
add_action("init", "sfsi_update_plugin");
|
94 |
}
|
95 |
/* redirect setting page hook */
|
96 |
-
|
97 |
add_action('admin_init', 'sfsi_plugin_redirect');
|
98 |
|
99 |
function sfsi_plugin_redirect()
|
6 |
|
7 |
Author: UltimatelySocial
|
8 |
Author URI: http://ultimatelysocial.com
|
9 |
+
Version: 2.4.6
|
10 |
License: GPLv2 or later
|
11 |
*/
|
12 |
require_once 'analyst/main.php';
|
88 |
|
89 |
register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
|
90 |
|
91 |
+
if (!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.46) {
|
92 |
|
93 |
add_action("init", "sfsi_update_plugin");
|
94 |
}
|
95 |
/* redirect setting page hook */
|
|
|
96 |
add_action('admin_init', 'sfsi_plugin_redirect');
|
97 |
|
98 |
function sfsi_plugin_redirect()
|
views/sfsi_option_view7.php
CHANGED
@@ -3,6 +3,9 @@
|
|
3 |
/* unserialize all saved option for section 7 options */
|
4 |
|
5 |
$option7 = unserialize(get_option('sfsi_section7_options', false));
|
|
|
|
|
|
|
6 |
|
7 |
/*
|
8 |
|
3 |
/* unserialize all saved option for section 7 options */
|
4 |
|
5 |
$option7 = unserialize(get_option('sfsi_section7_options', false));
|
6 |
+
while(is_string($option7)){
|
7 |
+
$option7 = unserialize($option7);
|
8 |
+
}
|
9 |
|
10 |
/*
|
11 |
|
views/sfsi_section_for_premium.php
CHANGED
@@ -35,7 +35,7 @@
|
|
35 |
margin-left: 15px;
|
36 |
}
|
37 |
.sfsi-footer-right-section{
|
38 |
-
width:
|
39 |
position: relative;
|
40 |
min-height: 1px;
|
41 |
float: left;
|
@@ -199,7 +199,7 @@
|
|
199 |
width: 51%;
|
200 |
}
|
201 |
.sfsi-footer-right-section {
|
202 |
-
width:
|
203 |
}
|
204 |
}
|
205 |
</style>
|
@@ -299,7 +299,9 @@
|
|
299 |
</div>
|
300 |
<div class="sfsi-footer-right-section">
|
301 |
<span class="sfsi-right-video">
|
302 |
-
<
|
|
|
|
|
303 |
</span>
|
304 |
<a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=new_bottom_banner_to_checkout&utm_medium=banner" class="sfsi-checkout-premium-plugin-button">Check out the Premium Plugin >></a>
|
305 |
</div>
|
35 |
margin-left: 15px;
|
36 |
}
|
37 |
.sfsi-footer-right-section{
|
38 |
+
width: 34%;
|
39 |
position: relative;
|
40 |
min-height: 1px;
|
41 |
float: left;
|
199 |
width: 51%;
|
200 |
}
|
201 |
.sfsi-footer-right-section {
|
202 |
+
width: 40%;
|
203 |
}
|
204 |
}
|
205 |
</style>
|
299 |
</div>
|
300 |
<div class="sfsi-footer-right-section">
|
301 |
<span class="sfsi-right-video">
|
302 |
+
<div style="position:relative;padding-top:56.25%;">
|
303 |
+
<iframe src="https://video.inchev.com/videos/embed/c952d896-34be-45bc-8142-ba14694c1bd0" frameborder="0" webkitallowfullscreen="" mozallowfullscreen="" allowfullscreen="" style="position:absolute;top:0;left:0;width:100%;height:100%;"></iframe>
|
304 |
+
</div>
|
305 |
</span>
|
306 |
<a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=new_bottom_banner_to_checkout&utm_medium=banner" class="sfsi-checkout-premium-plugin-button">Check out the Premium Plugin >></a>
|
307 |
</div>
|