Version Description
- Links with "@" in the url (e.g. as in Flickr-links) now get recognized as well
- Alignment issues of icons in tooltip fixed
- Layout optimizations in plugin area
- Users can now select to have the number of likes of their facebook page displayed as counts of the facebook icon on their blogs
- Typos in admin area corrected
- Users can now disable auto-scaling feature for mobile devices ("viewport" meta tag)
Download this release
Release Info
Developer | socialdude |
Plugin | Social Share Icons & Social Share Buttons |
Version | 1.3 |
Comparing to | |
See all releases |
Code changes from version 1.2 to 1.3
- css/sfsi-style.css +33 -24
- js/custom-admin.js +7 -4
- js/customValidate-min.js +1 -1
- libs/controllers/sfsi_buttons_controller.php +11 -1
- libs/controllers/sfsi_socialhelper.php +7 -0
- libs/sfsi_install_uninstall.php +1 -0
- libs/sfsi_widget.php +14 -0
- readme.txt +11 -3
- ultimate_social_media_icons.php +20 -5
- views/sfsi_option_view4.php +7 -2
- views/sfsi_option_view5.php +18 -0
- views/sfsi_pop_content.php +1 -1
css/sfsi-style.css
CHANGED
@@ -919,7 +919,8 @@ ul.flwstep>li {
|
|
919 |
text-decoration: none;
|
920 |
text-align: center;
|
921 |
display: inline-block;
|
922 |
-
margin-top:
|
|
|
923 |
}
|
924 |
.pop_up_box .upload {
|
925 |
width: 100%;
|
@@ -2239,6 +2240,11 @@ ul.tab_3_list li span {
|
|
2239 |
.sfsiplus_specify_counts .listing li .input {
|
2240 |
width: 73px;
|
2241 |
}
|
|
|
|
|
|
|
|
|
|
|
2242 |
.tab3 .Shuffle_auto .sub_sub_box .tab_3_option {
|
2243 |
padding-top: 0!important;
|
2244 |
margin-bottom: 10px!important;
|
@@ -2516,21 +2522,21 @@ h2.optional {
|
|
2516 |
overflow: hidden;
|
2517 |
}
|
2518 |
.fb_tool_bdr .sfsi_inside .icon1 {
|
2519 |
-
margin:
|
2520 |
height: 28px;
|
2521 |
display: inline-block;
|
2522 |
float: none;
|
2523 |
width: 62px;
|
2524 |
}
|
2525 |
.fb_tool_bdr .sfsi_inside .icon2 {
|
2526 |
-
margin:
|
2527 |
height: 20px;
|
2528 |
width: 49px;
|
2529 |
display: inline-block;
|
2530 |
overflow: hidden;
|
2531 |
}
|
2532 |
.fb_tool_bdr .sfsi_inside .icon3 {
|
2533 |
-
margin: 1px 0
|
2534 |
height: 20px;
|
2535 |
width: 62px;
|
2536 |
display: inline-block;
|
@@ -2590,14 +2596,14 @@ h2.optional {
|
|
2590 |
width: 76px;
|
2591 |
}
|
2592 |
.gpls_tool_bdr .sfsi_inside .icon2 {
|
2593 |
-
margin: 2px 0;
|
2594 |
display: inline-block;
|
2595 |
float: none;
|
2596 |
height: 24px;
|
2597 |
width: 38px;
|
2598 |
}
|
2599 |
.gpls_tool_bdr .sfsi_inside .icon3 {
|
2600 |
-
margin: 2px 0;
|
2601 |
display: inline-block;
|
2602 |
float: none;
|
2603 |
height: 24px;
|
@@ -2624,23 +2630,26 @@ h2.optional {
|
|
2624 |
width: 62px;
|
2625 |
overflow: hidden;
|
2626 |
}
|
|
|
|
|
|
|
2627 |
.twt_tool_bdr .sfsi_inside .icon1 {
|
2628 |
-
margin:
|
2629 |
display: inline-block;
|
2630 |
float: none;
|
2631 |
-
width:
|
2632 |
overflow: hidden;
|
2633 |
-
height:
|
2634 |
}
|
2635 |
.twt_tool_bdr .sfsi_inside .icon1 iframe {
|
2636 |
-
width:
|
2637 |
}
|
2638 |
.twt_tool_bdr .sfsi_inside .icon2 {
|
2639 |
margin: 2px 0!important;
|
2640 |
display: inline-block;
|
2641 |
float: none;
|
2642 |
-
height:
|
2643 |
-
width:
|
2644 |
}
|
2645 |
.twt_tool_bdr .sfsi_inside .twt_1 {
|
2646 |
margin: 9px 0 0;
|
@@ -2666,14 +2675,14 @@ h2.optional {
|
|
2666 |
float: left;
|
2667 |
}
|
2668 |
.utube_tool_bdr .sfsi_inside .icon1{
|
2669 |
-
margin:
|
2670 |
height: 24px;
|
2671 |
display: inline-block;
|
2672 |
float: none;
|
2673 |
-
width:
|
2674 |
}
|
2675 |
.utube_tool_bdr .sfsi_inside .icon2 {
|
2676 |
-
margin:
|
2677 |
height: 24px;
|
2678 |
display: inline-block;
|
2679 |
float: none;
|
@@ -2694,34 +2703,34 @@ h2.optional {
|
|
2694 |
float: left;
|
2695 |
width: 100%}
|
2696 |
.linkedin_tool_bdr .sfsi_inside .icon1{
|
2697 |
-
margin:
|
2698 |
display: inline-block;
|
2699 |
float: none;
|
2700 |
-
height:
|
2701 |
width: 100%;
|
2702 |
}
|
2703 |
.linkedin_tool_bdr .sfsi_inside .icon2{
|
2704 |
-
margin:
|
2705 |
display: inline-block;
|
2706 |
float: none;
|
2707 |
-
height:
|
2708 |
width: 100%;
|
2709 |
}
|
2710 |
.linkedin_tool_bdr .sfsi_inside .icon3 {
|
2711 |
-
margin:
|
2712 |
display: inline-block;
|
2713 |
float: none;
|
2714 |
-
height:
|
2715 |
width: 100%;
|
2716 |
}
|
2717 |
|
2718 |
|
2719 |
.linkedin_tool_bdr .sfsi_inside .icon4 {
|
2720 |
-
margin:
|
2721 |
display: inline-block;
|
2722 |
float: none;
|
2723 |
height: 28px;
|
2724 |
-
width:
|
2725 |
}
|
2726 |
.sfsi_plus_FrntInner .linkedin_tool_bdr .sfsi_inside .icon1{ margin: 7px 0;}
|
2727 |
.sfsi_plus_widget .linkedin_tool_bdr .sfsi_inside .icon4,
|
@@ -2741,7 +2750,7 @@ h2.optional {
|
|
2741 |
}
|
2742 |
.twt_tool_bdr .sfsi_inside .icon1>iframe {
|
2743 |
margin: 0 auto!important;
|
2744 |
-
float:
|
2745 |
width: 100%}
|
2746 |
.twt_tool_bdr .sfsi_inside .icon1>iframe #widget {
|
2747 |
text-align: center;
|
919 |
text-decoration: none;
|
920 |
text-align: center;
|
921 |
display: inline-block;
|
922 |
+
margin-top: 20px;
|
923 |
+
width: 100%;
|
924 |
}
|
925 |
.pop_up_box .upload {
|
926 |
width: 100%;
|
2240 |
.sfsiplus_specify_counts .listing li .input {
|
2241 |
width: 73px;
|
2242 |
}
|
2243 |
+
.sfsiplus_fbpgidwpr{width: 160px; float: left; font-weight: bold;}
|
2244 |
+
.sfsiplus_fbpgidwpr.sfsiplus_fbpgiddesc{font-weight: normal; width: 100%; font-size: 14px; color: #888888;padding: 4px 0 0 60px; }
|
2245 |
+
.sfsiplus_specify_counts .listing li .input.mypginpt {
|
2246 |
+
width: 288px;
|
2247 |
+
}
|
2248 |
.tab3 .Shuffle_auto .sub_sub_box .tab_3_option {
|
2249 |
padding-top: 0!important;
|
2250 |
margin-bottom: 10px!important;
|
2522 |
overflow: hidden;
|
2523 |
}
|
2524 |
.fb_tool_bdr .sfsi_inside .icon1 {
|
2525 |
+
margin: 0px 0 0px 0;
|
2526 |
height: 28px;
|
2527 |
display: inline-block;
|
2528 |
float: none;
|
2529 |
width: 62px;
|
2530 |
}
|
2531 |
.fb_tool_bdr .sfsi_inside .icon2 {
|
2532 |
+
margin: 1px 0 1px 0 ;
|
2533 |
height: 20px;
|
2534 |
width: 49px;
|
2535 |
display: inline-block;
|
2536 |
overflow: hidden;
|
2537 |
}
|
2538 |
.fb_tool_bdr .sfsi_inside .icon3 {
|
2539 |
+
margin: 1px 0 0px 0;
|
2540 |
height: 20px;
|
2541 |
width: 62px;
|
2542 |
display: inline-block;
|
2596 |
width: 76px;
|
2597 |
}
|
2598 |
.gpls_tool_bdr .sfsi_inside .icon2 {
|
2599 |
+
margin: 2px 0 3px 0;
|
2600 |
display: inline-block;
|
2601 |
float: none;
|
2602 |
height: 24px;
|
2603 |
width: 38px;
|
2604 |
}
|
2605 |
.gpls_tool_bdr .sfsi_inside .icon3 {
|
2606 |
+
margin: 3px 0 2px 0;
|
2607 |
display: inline-block;
|
2608 |
float: none;
|
2609 |
height: 24px;
|
2630 |
width: 62px;
|
2631 |
overflow: hidden;
|
2632 |
}
|
2633 |
+
.twt_tool_bdr .sfsi_inside .cstmicon1 a img{
|
2634 |
+
float: left;
|
2635 |
+
}
|
2636 |
.twt_tool_bdr .sfsi_inside .icon1 {
|
2637 |
+
margin: 0px 0 0px !important;
|
2638 |
display: inline-block;
|
2639 |
float: none;
|
2640 |
+
width: 61px;
|
2641 |
overflow: hidden;
|
2642 |
+
height: 21px;
|
2643 |
}
|
2644 |
.twt_tool_bdr .sfsi_inside .icon1 iframe {
|
2645 |
+
width: 61px!important;
|
2646 |
}
|
2647 |
.twt_tool_bdr .sfsi_inside .icon2 {
|
2648 |
margin: 2px 0!important;
|
2649 |
display: inline-block;
|
2650 |
float: none;
|
2651 |
+
height: 19px;
|
2652 |
+
width: 58px;
|
2653 |
}
|
2654 |
.twt_tool_bdr .sfsi_inside .twt_1 {
|
2655 |
margin: 9px 0 0;
|
2675 |
float: left;
|
2676 |
}
|
2677 |
.utube_tool_bdr .sfsi_inside .icon1{
|
2678 |
+
margin: 7px 0 0;
|
2679 |
height: 24px;
|
2680 |
display: inline-block;
|
2681 |
float: none;
|
2682 |
+
width: 87px;
|
2683 |
}
|
2684 |
.utube_tool_bdr .sfsi_inside .icon2 {
|
2685 |
+
margin: 3px 0 0;
|
2686 |
height: 24px;
|
2687 |
display: inline-block;
|
2688 |
float: none;
|
2703 |
float: left;
|
2704 |
width: 100%}
|
2705 |
.linkedin_tool_bdr .sfsi_inside .icon1{
|
2706 |
+
margin: 0px 0;
|
2707 |
display: inline-block;
|
2708 |
float: none;
|
2709 |
+
height: 23px;
|
2710 |
width: 100%;
|
2711 |
}
|
2712 |
.linkedin_tool_bdr .sfsi_inside .icon2{
|
2713 |
+
margin: 0px 0;
|
2714 |
display: inline-block;
|
2715 |
float: none;
|
2716 |
+
height: 23px;
|
2717 |
width: 100%;
|
2718 |
}
|
2719 |
.linkedin_tool_bdr .sfsi_inside .icon3 {
|
2720 |
+
margin: 0px 0;
|
2721 |
display: inline-block;
|
2722 |
float: none;
|
2723 |
+
height: 23px;
|
2724 |
width: 100%;
|
2725 |
}
|
2726 |
|
2727 |
|
2728 |
.linkedin_tool_bdr .sfsi_inside .icon4 {
|
2729 |
+
margin: 0px 0;
|
2730 |
display: inline-block;
|
2731 |
float: none;
|
2732 |
height: 28px;
|
2733 |
+
width: 66px;
|
2734 |
}
|
2735 |
.sfsi_plus_FrntInner .linkedin_tool_bdr .sfsi_inside .icon1{ margin: 7px 0;}
|
2736 |
.sfsi_plus_widget .linkedin_tool_bdr .sfsi_inside .icon4,
|
2750 |
}
|
2751 |
.twt_tool_bdr .sfsi_inside .icon1>iframe {
|
2752 |
margin: 0 auto!important;
|
2753 |
+
float: left !important;
|
2754 |
width: 100%}
|
2755 |
.twt_tool_bdr .sfsi_inside .icon1>iframe #widget {
|
2756 |
text-align: center;
|
js/custom-admin.js
CHANGED
@@ -382,7 +382,7 @@ function sfsi_plus_update_step4() {
|
|
382 |
var s = !1, i = sfsi_plus_validationStep4();
|
383 |
if (!i) return global_error = 1, !1;
|
384 |
sfsiplus_beForeLoad();
|
385 |
-
var e = SFSI("input[name='sfsi_plus_display_counts']:checked").val(), t = 1 == SFSI("input[name='sfsi_plus_email_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_email_countsDisplay']:checked").val(), n = 1 == SFSI("input[name='sfsi_plus_email_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_email_countsFrom']:checked").val(), o = SFSI("input[name='sfsi_plus_email_manualCounts']").val(), a = SFSI("input[name='sfsi_plus_google_api_key']").val(), r = 1 == SFSI("input[name='sfsi_plus_rss_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_rss_countsDisplay']:checked").val(), c = SFSI("input[name='sfsi_plus_rss_manualCounts']").val(), p = 1 == SFSI("input[name='sfsi_plus_facebook_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebook_countsDisplay']:checked").val(), _ = 1 == SFSI("input[name='sfsi_plus_facebook_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebook_countsFrom']:checked").val(), l = SFSI("input[name='sfsi_plus_facebook_manualCounts']").val(), S = 1 == SFSI("input[name='sfsi_plus_twitter_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_countsDisplay']:checked").val(), u = 1 == SFSI("input[name='sfsi_plus_twitter_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_countsFrom']:checked").val(), f = SFSI("input[name='sfsi_plus_twitter_manualCounts']").val(), d = SFSI("input[name='sfsiplus_tw_consumer_key']").val(), I = SFSI("input[name='sfsiplus_tw_consumer_secret']").val(), m = SFSI("input[name='sfsiplus_tw_oauth_access_token']").val(), F = SFSI("input[name='sfsiplus_tw_oauth_access_token_secret']").val(), h = 1 == SFSI("input[name='sfsi_plus_google_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_google_countsDisplay']:checked").val(), v = 1 == SFSI("input[name='sfsi_plus_google_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_google_countsFrom']:checked").val(), g = SFSI("input[name='sfsi_plus_google_manualCounts']").val(), k = 1 == SFSI("input[name='sfsi_plus_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_plus_linkedIn_manualCounts']").val(), b = SFSI("input[name='sfsi_plus_ln_company']").val(), w = SFSI("input[name='sfsi_plus_ln_api_key']").val(), x = SFSI("input[name='sfsi_plus_ln_secret_key']").val(), C = SFSI("input[name='sfsi_plus_ln_oAuth_user_token']").val(), D = 1 == SFSI("input[name='sfsi_plus_linkedIn_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_countsDisplay']:checked").val(), k = 1 == SFSI("input[name='sfsi_plus_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_plus_linkedIn_manualCounts']").val(), U = 1 == SFSI("input[name='sfsi_plus_youtube_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_countsDisplay']:checked").val(), O = 1 == SFSI("input[name='sfsi_plus_youtube_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_countsFrom']:checked").val(), T = SFSI("input[name='sfsi_plus_youtube_manualCounts']").val(), j = SFSI("input[name='sfsi_plus_youtube_user']").val(), P = 1 == SFSI("input[name='sfsi_plus_pinterest_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_countsDisplay']:checked").val(), M = 1 == SFSI("input[name='sfsi_plus_pinterest_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_countsFrom']:checked").val(), L = SFSI("input[name='sfsi_plus_pinterest_manualCounts']").val(), B = SFSI("input[name='sfsi_plus_pinterest_user']").val(), E = SFSI("input[name='sfsi_plus_pinterest_board']").val(), z = 1 == SFSI("input[name='sfsi_plus_instagram_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_instagram_countsDisplay']:checked").val(), A = 1 == SFSI("input[name='sfsi_plus_instagram_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_instagram_countsFrom']:checked").val(), N = SFSI("input[name='sfsi_plus_instagram_manualCounts']").val(), H = SFSI("input[name='sfsi_plus_instagram_User']").val(), R = 1 == SFSI("input[name='sfsi_plus_shares_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_shares_countsDisplay']:checked").val(), W = 1 == SFSI("input[name='sfsi_plus_shares_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_shares_countsFrom']:checked").val(), q = SFSI("input[name='sfsi_plus_shares_manualCounts']").val(), $ = {
|
386 |
action:"plus_updateSrcn4",
|
387 |
sfsi_plus_display_counts:e,
|
388 |
sfsi_plus_email_countsDisplay:t,
|
@@ -392,6 +392,7 @@ function sfsi_plus_update_step4() {
|
|
392 |
sfsi_plus_rss_manualCounts:c,
|
393 |
sfsi_plus_facebook_countsDisplay:p,
|
394 |
sfsi_plus_facebook_countsFrom:_,
|
|
|
395 |
sfsi_plus_facebook_manualCounts:l,
|
396 |
sfsi_plus_twitter_countsDisplay:S,
|
397 |
sfsi_plus_twitter_countsFrom:u,
|
@@ -458,7 +459,7 @@ function sfsi_plus_update_step5() {
|
|
458 |
var s = sfsi_plus_validationStep5();
|
459 |
if (!s) return global_error = 1, !1;
|
460 |
sfsiplus_beForeLoad();
|
461 |
-
var i = SFSI("input[name='sfsi_plus_icons_size']").val(), e = SFSI("input[name='sfsi_plus_icons_perRow']").val(), t = SFSI("input[name='sfsi_plus_icons_spacing']").val(), n = SFSI("#sfsi_plus_icons_Alignment").val(), o = SFSI("input[name='sfsi_plus_icons_ClickPageOpen']:checked").val(), a = SFSI("input[name='sfsi_plus_icons_float']:checked").val(), dsb = SFSI("input[name='sfsi_plus_disable_floaticons']:checked").val(), r = SFSI("#sfsi_plus_icons_floatPosition").val(), c = SFSI("input[name='sfsi_plus_icons_stick']:checked").val(), p = SFSI("#sfsi_plus_rssIcon_order").attr("data-index"), _ = SFSI("#sfsi_plus_emailIcon_order").attr("data-index"), l = SFSI("#sfsi_plus_googleIcon_order").attr("data-index"), S = SFSI("#sfsi_plus_facebookIcon_order").attr("data-index"), u = SFSI("#sfsi_plus_twitterIcon_order").attr("data-index"), f = SFSI("#sfsi_plus_youtubeIcon_order").attr("data-index"), d = SFSI("#sfsi_plus_pinterestIcon_order").attr("data-index"), I = SFSI("#sfsi_plus_instagramIcon_order").attr("data-index"), m = SFSI("#sfsi_plus_shareIcon_order").attr("data-index"), F = SFSI("#sfsi_plus_linkedinIcon_order").attr("data-index"), h = new Array();
|
462 |
SFSI(".sfsiplus_custom_iconOrder").each(function()
|
463 |
{
|
464 |
h.push({
|
@@ -479,6 +480,7 @@ function sfsi_plus_update_step5() {
|
|
479 |
sfsi_plus_icons_ClickPageOpen:o,
|
480 |
sfsi_plus_icons_float:a,
|
481 |
sfsi_plus_disable_floaticons:dsb,
|
|
|
482 |
sfsi_plus_icons_floatPosition:r,
|
483 |
sfsi_plus_icons_stick:c,
|
484 |
sfsi_plus_rss_MouseOverText:v,
|
@@ -1096,7 +1098,8 @@ SFSI(document).ready(function(s) {
|
|
1096 |
SFSI('input[name="sfsi_plus_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
|
1097 |
"manual" == SFSI("input[name='sfsi_plus_email_countsFrom']:checked").val() ? SFSI("input[name='sfsi_plus_email_manualCounts']").slideDown() :SFSI("input[name='sfsi_plus_email_manualCounts']").slideUp()),
|
1098 |
"sfsi_plus_facebook_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_facebook_countsDisplay"]').prop("checked", !0),
|
1099 |
-
SFSI('input[name="sfsi_plus_facebook_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
|
|
|
1100 |
"manual" == SFSI("input[name='sfsi_plus_facebook_countsFrom']:checked").val() ? SFSI("input[name='sfsi_plus_facebook_manualCounts']").slideDown() :SFSI("input[name='sfsi_plus_facebook_manualCounts']").slideUp()),
|
1101 |
"sfsi_plus_twitter_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_twitter_countsDisplay"]').prop("checked", !0),
|
1102 |
SFSI('input[name="sfsi_plus_twitter_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
|
@@ -1226,7 +1229,7 @@ SFSI(document).ready(function(s) {
|
|
1226 |
SFSI('input[name="sfsi_plus_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"),
|
1227 |
SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
|
1228 |
}), SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function() {
|
1229 |
-
var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) +
|
1230 |
SFSI(".sfsi_plus_holders").each(function() {
|
1231 |
SFSI(this).css("height", s);
|
1232 |
});
|
382 |
var s = !1, i = sfsi_plus_validationStep4();
|
383 |
if (!i) return global_error = 1, !1;
|
384 |
sfsiplus_beForeLoad();
|
385 |
+
var e = SFSI("input[name='sfsi_plus_display_counts']:checked").val(), t = 1 == SFSI("input[name='sfsi_plus_email_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_email_countsDisplay']:checked").val(), n = 1 == SFSI("input[name='sfsi_plus_email_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_email_countsFrom']:checked").val(), o = SFSI("input[name='sfsi_plus_email_manualCounts']").val(), a = SFSI("input[name='sfsi_plus_google_api_key']").val(), r = 1 == SFSI("input[name='sfsi_plus_rss_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_rss_countsDisplay']:checked").val(), c = SFSI("input[name='sfsi_plus_rss_manualCounts']").val(), p = 1 == SFSI("input[name='sfsi_plus_facebook_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebook_countsDisplay']:checked").val(), _ = 1 == SFSI("input[name='sfsi_plus_facebook_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_facebook_countsFrom']:checked").val(), mp = SFSI("input[name='sfsi_plus_facebook_mypageCounts']").val(), l = SFSI("input[name='sfsi_plus_facebook_manualCounts']").val(), S = 1 == SFSI("input[name='sfsi_plus_twitter_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_countsDisplay']:checked").val(), u = 1 == SFSI("input[name='sfsi_plus_twitter_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_twitter_countsFrom']:checked").val(), f = SFSI("input[name='sfsi_plus_twitter_manualCounts']").val(), d = SFSI("input[name='sfsiplus_tw_consumer_key']").val(), I = SFSI("input[name='sfsiplus_tw_consumer_secret']").val(), m = SFSI("input[name='sfsiplus_tw_oauth_access_token']").val(), F = SFSI("input[name='sfsiplus_tw_oauth_access_token_secret']").val(), h = 1 == SFSI("input[name='sfsi_plus_google_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_google_countsDisplay']:checked").val(), v = 1 == SFSI("input[name='sfsi_plus_google_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_google_countsFrom']:checked").val(), g = SFSI("input[name='sfsi_plus_google_manualCounts']").val(), k = 1 == SFSI("input[name='sfsi_plus_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_plus_linkedIn_manualCounts']").val(), b = SFSI("input[name='sfsi_plus_ln_company']").val(), w = SFSI("input[name='sfsi_plus_ln_api_key']").val(), x = SFSI("input[name='sfsi_plus_ln_secret_key']").val(), C = SFSI("input[name='sfsi_plus_ln_oAuth_user_token']").val(), D = 1 == SFSI("input[name='sfsi_plus_linkedIn_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_countsDisplay']:checked").val(), k = 1 == SFSI("input[name='sfsi_plus_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_plus_linkedIn_manualCounts']").val(), U = 1 == SFSI("input[name='sfsi_plus_youtube_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_countsDisplay']:checked").val(), O = 1 == SFSI("input[name='sfsi_plus_youtube_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_youtube_countsFrom']:checked").val(), T = SFSI("input[name='sfsi_plus_youtube_manualCounts']").val(), j = SFSI("input[name='sfsi_plus_youtube_user']").val(), P = 1 == SFSI("input[name='sfsi_plus_pinterest_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_countsDisplay']:checked").val(), M = 1 == SFSI("input[name='sfsi_plus_pinterest_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_pinterest_countsFrom']:checked").val(), L = SFSI("input[name='sfsi_plus_pinterest_manualCounts']").val(), B = SFSI("input[name='sfsi_plus_pinterest_user']").val(), E = SFSI("input[name='sfsi_plus_pinterest_board']").val(), z = 1 == SFSI("input[name='sfsi_plus_instagram_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_instagram_countsDisplay']:checked").val(), A = 1 == SFSI("input[name='sfsi_plus_instagram_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_instagram_countsFrom']:checked").val(), N = SFSI("input[name='sfsi_plus_instagram_manualCounts']").val(), H = SFSI("input[name='sfsi_plus_instagram_User']").val(), R = 1 == SFSI("input[name='sfsi_plus_shares_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_shares_countsDisplay']:checked").val(), W = 1 == SFSI("input[name='sfsi_plus_shares_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_plus_shares_countsFrom']:checked").val(), q = SFSI("input[name='sfsi_plus_shares_manualCounts']").val(), $ = {
|
386 |
action:"plus_updateSrcn4",
|
387 |
sfsi_plus_display_counts:e,
|
388 |
sfsi_plus_email_countsDisplay:t,
|
392 |
sfsi_plus_rss_manualCounts:c,
|
393 |
sfsi_plus_facebook_countsDisplay:p,
|
394 |
sfsi_plus_facebook_countsFrom:_,
|
395 |
+
sfsi_plus_facebook_mypageCounts:mp,
|
396 |
sfsi_plus_facebook_manualCounts:l,
|
397 |
sfsi_plus_twitter_countsDisplay:S,
|
398 |
sfsi_plus_twitter_countsFrom:u,
|
459 |
var s = sfsi_plus_validationStep5();
|
460 |
if (!s) return global_error = 1, !1;
|
461 |
sfsiplus_beForeLoad();
|
462 |
+
var i = SFSI("input[name='sfsi_plus_icons_size']").val(), e = SFSI("input[name='sfsi_plus_icons_perRow']").val(), t = SFSI("input[name='sfsi_plus_icons_spacing']").val(), n = SFSI("#sfsi_plus_icons_Alignment").val(), o = SFSI("input[name='sfsi_plus_icons_ClickPageOpen']:checked").val(), a = SFSI("input[name='sfsi_plus_icons_float']:checked").val(), dsb = SFSI("input[name='sfsi_plus_disable_floaticons']:checked").val(), dsbv = SFSI("input[name='sfsi_plus_disable_viewport']:checked").val(), r = SFSI("#sfsi_plus_icons_floatPosition").val(), c = SFSI("input[name='sfsi_plus_icons_stick']:checked").val(), p = SFSI("#sfsi_plus_rssIcon_order").attr("data-index"), _ = SFSI("#sfsi_plus_emailIcon_order").attr("data-index"), l = SFSI("#sfsi_plus_googleIcon_order").attr("data-index"), S = SFSI("#sfsi_plus_facebookIcon_order").attr("data-index"), u = SFSI("#sfsi_plus_twitterIcon_order").attr("data-index"), f = SFSI("#sfsi_plus_youtubeIcon_order").attr("data-index"), d = SFSI("#sfsi_plus_pinterestIcon_order").attr("data-index"), I = SFSI("#sfsi_plus_instagramIcon_order").attr("data-index"), m = SFSI("#sfsi_plus_shareIcon_order").attr("data-index"), F = SFSI("#sfsi_plus_linkedinIcon_order").attr("data-index"), h = new Array();
|
463 |
SFSI(".sfsiplus_custom_iconOrder").each(function()
|
464 |
{
|
465 |
h.push({
|
480 |
sfsi_plus_icons_ClickPageOpen:o,
|
481 |
sfsi_plus_icons_float:a,
|
482 |
sfsi_plus_disable_floaticons:dsb,
|
483 |
+
sfsi_plus_disable_viewport: dsbv,
|
484 |
sfsi_plus_icons_floatPosition:r,
|
485 |
sfsi_plus_icons_stick:c,
|
486 |
sfsi_plus_rss_MouseOverText:v,
|
1098 |
SFSI('input[name="sfsi_plus_email_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
|
1099 |
"manual" == SFSI("input[name='sfsi_plus_email_countsFrom']:checked").val() ? SFSI("input[name='sfsi_plus_email_manualCounts']").slideDown() :SFSI("input[name='sfsi_plus_email_manualCounts']").slideUp()),
|
1100 |
"sfsi_plus_facebook_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_facebook_countsDisplay"]').prop("checked", !0),
|
1101 |
+
SFSI('input[name="sfsi_plus_facebook_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
|
1102 |
+
"mypage" == SFSI("input[name='sfsi_plus_facebook_countsFrom']:checked").val() ? (SFSI("input[name='sfsi_plus_facebook_mypageCounts']").slideDown(),SFSI(".sfsiplus_fbpgidwpr").slideDown()) :(SFSI("input[name='sfsi_plus_facebook_mypageCounts']").slideUp(),SFSI(".sfsiplus_fbpgidwpr").slideUp()),
|
1103 |
"manual" == SFSI("input[name='sfsi_plus_facebook_countsFrom']:checked").val() ? SFSI("input[name='sfsi_plus_facebook_manualCounts']").slideDown() :SFSI("input[name='sfsi_plus_facebook_manualCounts']").slideUp()),
|
1104 |
"sfsi_plus_twitter_countsFrom" == s.attr("name") && (SFSI('input[name="sfsi_plus_twitter_countsDisplay"]').prop("checked", !0),
|
1105 |
SFSI('input[name="sfsi_plus_twitter_countsDisplay"]').parent().find("span.checkbox").attr("style", "background-position:0px -36px;"),
|
1229 |
SFSI('input[name="sfsi_plus_icons_float"][value="no"]').parent().find("span.radio").attr("style", "background-position:0px -41px;"),
|
1230 |
SFSI('input[name="sfsi_plus_icons_float"][value="yes"]').parent().find("span.radio").attr("style", "background-position:0px -0px;"));
|
1231 |
}), SFSI(".sfsi_plus_wDiv").length > 0 && setTimeout(function() {
|
1232 |
+
var s = parseInt(SFSI(".sfsi_plus_wDiv").height()) + 0 + "px";
|
1233 |
SFSI(".sfsi_plus_holders").each(function() {
|
1234 |
SFSI(this).css("height", s);
|
1235 |
});
|
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_google_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_google_page"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_google_pageURL"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid Google+ page Url ",2);SFSI('input[name="sfsi_plus_google_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_google_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_google_countsDisplay"]'),"checked")){if(SFSI('input[name="sfsi_plus_google_countsFrom"]:checked').val()=="follower"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_google_api_key"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid google api key",4);SFSI('input[name="sfsi_plus_google_api_key"]').addClass("inputError");return false}}if(SFSI('input[name="sfsi_plus_google_countsFrom"]:checked').val()=="manual"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_google_manualCounts"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter google+ manual counts ",4);SFSI('input[name="sfsi_plus_google_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_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_google_page"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_google_page"]'),"checked")){if(!sfsi_validator(SFSI('input[name="sfsi_plus_google_pageURL"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Invalid Google+ page Url ",2);SFSI('input[name="sfsi_plus_google_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_google_countsDisplay"]'),"activte")&&sfsi_validator(SFSI('input[name="sfsi_plus_google_countsDisplay"]'),"checked")){if(SFSI('input[name="sfsi_plus_google_countsFrom"]:checked').val()=="follower"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_google_api_key"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter a valid google api key",4);SFSI('input[name="sfsi_plus_google_api_key"]').addClass("inputError");return false}}if(SFSI('input[name="sfsi_plus_google_countsFrom"]:checked').val()=="manual"){if(!sfsi_validator(SFSI('input[name="sfsi_plus_google_manualCounts"]'),"blank")){sfsiplus_showErrorSuc("error","Error : Please Enter google+ manual counts ",4);SFSI('input[name="sfsi_plus_google_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}}
|
libs/controllers/sfsi_buttons_controller.php
CHANGED
@@ -205,6 +205,7 @@ function sfsi_plus_options_updater4()
|
|
205 |
|
206 |
$sfsi_plus_facebook_countsDisplay = isset($_POST["sfsi_plus_facebook_countsDisplay"]) ? $_POST["sfsi_plus_facebook_countsDisplay"] : 'no';
|
207 |
$sfsi_plus_facebook_countsFrom = isset($_POST["sfsi_plus_facebook_countsFrom"]) ? $_POST["sfsi_plus_facebook_countsFrom"] : 'manual';
|
|
|
208 |
$sfsi_plus_facebook_manualCounts = isset($_POST["sfsi_plus_facebook_manualCounts"]) ? trim($_POST["sfsi_plus_facebook_manualCounts"]) : '';
|
209 |
$sfsi_plus_facebook_PageLink = isset($_POST["sfsi_plus_facebook_PageLink"]) ? trim($_POST["sfsi_plus_facebook_PageLink"]) : '';
|
210 |
|
@@ -263,6 +264,7 @@ function sfsi_plus_options_updater4()
|
|
263 |
|
264 |
'sfsi_plus_facebook_countsDisplay'=>$sfsi_plus_facebook_countsDisplay,
|
265 |
'sfsi_plus_facebook_countsFrom'=>$sfsi_plus_facebook_countsFrom,
|
|
|
266 |
'sfsi_plus_facebook_manualCounts'=>$sfsi_plus_facebook_manualCounts,
|
267 |
//'sfsi_plus_facebook_PageLink'=>$sfsi_plus_facebook_PageLink,
|
268 |
|
@@ -330,7 +332,8 @@ function sfsi_plus_options_updater5()
|
|
330 |
$sfsi_plus_icons_ClickPageOpen = isset($_POST["sfsi_plus_icons_ClickPageOpen"]) ? $_POST["sfsi_plus_icons_ClickPageOpen"] : 'no';
|
331 |
|
332 |
$sfsi_plus_icons_float = isset($_POST["sfsi_plus_icons_float"]) ? $_POST["sfsi_plus_icons_float"] : 'no';
|
333 |
-
$sfsi_plus_disable_floaticons = isset($_POST["sfsi_plus_disable_floaticons"]) ? $_POST["sfsi_plus_disable_floaticons"] : 'no';
|
|
|
334 |
$sfsi_plus_icons_floatPosition = isset($_POST["sfsi_plus_icons_floatPosition"]) ? $_POST["sfsi_plus_icons_floatPosition"] : 'center-right';
|
335 |
$sfsi_plus_icons_stick = isset($_POST["sfsi_plus_icons_stick"]) ? $_POST["sfsi_plus_icons_stick"] : 'no';
|
336 |
$sfsi_plus_rss_MouseOverText = isset($_POST["sfsi_plus_rss_MouseOverText"]) ? $_POST["sfsi_plus_rss_MouseOverText"] : '';
|
@@ -374,6 +377,7 @@ function sfsi_plus_options_updater5()
|
|
374 |
'sfsi_plus_icons_ClickPageOpen'=>$sfsi_plus_icons_ClickPageOpen,
|
375 |
'sfsi_plus_icons_float'=>$sfsi_plus_icons_float,
|
376 |
'sfsi_plus_disable_floaticons'=>$sfsi_plus_disable_floaticons,
|
|
|
377 |
'sfsi_plus_icons_floatPosition'=>$sfsi_plus_icons_floatPosition,
|
378 |
'sfsi_plus_icons_stick'=>$sfsi_plus_icons_stick,
|
379 |
/* mouse over texts */
|
@@ -582,6 +586,12 @@ function sfsi_plus_getCounts()
|
|
582 |
}
|
583 |
|
584 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
else
|
586 |
{
|
587 |
$scounts['fb_count']=$sfsi_plus_section4_options['sfsi_plus_facebook_manualCounts'];
|
205 |
|
206 |
$sfsi_plus_facebook_countsDisplay = isset($_POST["sfsi_plus_facebook_countsDisplay"]) ? $_POST["sfsi_plus_facebook_countsDisplay"] : 'no';
|
207 |
$sfsi_plus_facebook_countsFrom = isset($_POST["sfsi_plus_facebook_countsFrom"]) ? $_POST["sfsi_plus_facebook_countsFrom"] : 'manual';
|
208 |
+
$sfsi_plus_facebook_mypageCounts = isset($_POST["sfsi_plus_facebook_mypageCounts"]) ? trim($_POST["sfsi_plus_facebook_mypageCounts"]) : '';
|
209 |
$sfsi_plus_facebook_manualCounts = isset($_POST["sfsi_plus_facebook_manualCounts"]) ? trim($_POST["sfsi_plus_facebook_manualCounts"]) : '';
|
210 |
$sfsi_plus_facebook_PageLink = isset($_POST["sfsi_plus_facebook_PageLink"]) ? trim($_POST["sfsi_plus_facebook_PageLink"]) : '';
|
211 |
|
264 |
|
265 |
'sfsi_plus_facebook_countsDisplay'=>$sfsi_plus_facebook_countsDisplay,
|
266 |
'sfsi_plus_facebook_countsFrom'=>$sfsi_plus_facebook_countsFrom,
|
267 |
+
'sfsi_plus_facebook_mypageCounts'=>$sfsi_plus_facebook_mypageCounts,
|
268 |
'sfsi_plus_facebook_manualCounts'=>$sfsi_plus_facebook_manualCounts,
|
269 |
//'sfsi_plus_facebook_PageLink'=>$sfsi_plus_facebook_PageLink,
|
270 |
|
332 |
$sfsi_plus_icons_ClickPageOpen = isset($_POST["sfsi_plus_icons_ClickPageOpen"]) ? $_POST["sfsi_plus_icons_ClickPageOpen"] : 'no';
|
333 |
|
334 |
$sfsi_plus_icons_float = isset($_POST["sfsi_plus_icons_float"]) ? $_POST["sfsi_plus_icons_float"] : 'no';
|
335 |
+
$sfsi_plus_disable_floaticons = isset($_POST["sfsi_plus_disable_floaticons"]) ? $_POST["sfsi_plus_disable_floaticons"] : 'no';
|
336 |
+
$sfsi_plus_disable_viewport = isset($_POST["sfsi_plus_disable_viewport"]) ? $_POST["sfsi_plus_disable_viewport"] : 'no';
|
337 |
$sfsi_plus_icons_floatPosition = isset($_POST["sfsi_plus_icons_floatPosition"]) ? $_POST["sfsi_plus_icons_floatPosition"] : 'center-right';
|
338 |
$sfsi_plus_icons_stick = isset($_POST["sfsi_plus_icons_stick"]) ? $_POST["sfsi_plus_icons_stick"] : 'no';
|
339 |
$sfsi_plus_rss_MouseOverText = isset($_POST["sfsi_plus_rss_MouseOverText"]) ? $_POST["sfsi_plus_rss_MouseOverText"] : '';
|
377 |
'sfsi_plus_icons_ClickPageOpen'=>$sfsi_plus_icons_ClickPageOpen,
|
378 |
'sfsi_plus_icons_float'=>$sfsi_plus_icons_float,
|
379 |
'sfsi_plus_disable_floaticons'=>$sfsi_plus_disable_floaticons,
|
380 |
+
'sfsi_plus_disable_viewport'=>$sfsi_plus_disable_viewport,
|
381 |
'sfsi_plus_icons_floatPosition'=>$sfsi_plus_icons_floatPosition,
|
382 |
'sfsi_plus_icons_stick'=>$sfsi_plus_icons_stick,
|
383 |
/* mouse over texts */
|
586 |
}
|
587 |
|
588 |
}
|
589 |
+
else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="mypage" )
|
590 |
+
{
|
591 |
+
$url = $sfsi_plus_section4_options['sfsi_plus_facebook_mypageCounts'];
|
592 |
+
$fb_data = $socialObj->sfsi_get_fb_pagelike($url);
|
593 |
+
$scounts['fb_count']= $fb_data;
|
594 |
+
}
|
595 |
else
|
596 |
{
|
597 |
$scounts['fb_count']=$sfsi_plus_section4_options['sfsi_plus_facebook_manualCounts'];
|
libs/controllers/sfsi_socialhelper.php
CHANGED
@@ -58,6 +58,13 @@ function sfsi_get_fb($url)
|
|
58 |
$json = json_decode($json_string, true);
|
59 |
return isset($json[0])? $json[0]:0;
|
60 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
/* get google+ follwers */
|
62 |
function sfsi_get_google($url,$google_api_key)
|
63 |
{
|
58 |
$json = json_decode($json_string, true);
|
59 |
return isset($json[0])? $json[0]:0;
|
60 |
}
|
61 |
+
/* get facebook page likes */
|
62 |
+
function sfsi_get_fb_pagelike($url)
|
63 |
+
{
|
64 |
+
$json_string = $this->file_get_contents_curl('http://graph.facebook.com/'.$url);
|
65 |
+
$json = json_decode($json_string, true);
|
66 |
+
return isset($json['likes'])? $json['likes']:0;
|
67 |
+
}
|
68 |
/* get google+ follwers */
|
69 |
function sfsi_get_google($url,$google_api_key)
|
70 |
{
|
libs/sfsi_install_uninstall.php
CHANGED
@@ -114,6 +114,7 @@ function sfsi_plus_activate_plugin()
|
|
114 |
'sfsi_plus_icons_ClickPageOpen'=>'yes',
|
115 |
'sfsi_plus_icons_float'=>'no',
|
116 |
'sfsi_plus_disable_floaticons'=>'no',
|
|
|
117 |
'sfsi_plus_icons_floatPosition'=>'center-right',
|
118 |
'sfsi_plus_icons_stick'=>'no',
|
119 |
'sfsi_plus_rssIcon_order'=>'1',
|
114 |
'sfsi_plus_icons_ClickPageOpen'=>'yes',
|
115 |
'sfsi_plus_icons_float'=>'no',
|
116 |
'sfsi_plus_disable_floaticons'=>'no',
|
117 |
+
'sfsi_plus_disable_viewport'=>'no',
|
118 |
'sfsi_plus_icons_floatPosition'=>'center-right',
|
119 |
'sfsi_plus_icons_stick'=>'no',
|
120 |
'sfsi_plus_rssIcon_order'=>'1',
|
libs/sfsi_widget.php
CHANGED
@@ -491,6 +491,13 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0)
|
|
491 |
$counts=$socialObj->format_num($fb_data['share_count']);
|
492 |
|
493 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
494 |
}
|
495 |
|
496 |
//Custom Skin Support {Monad}
|
@@ -1486,6 +1493,13 @@ function sfsi_plus_postsprepairIcons($icon_name,$is_front=0)
|
|
1486 |
//$counts=$socialObj->format_num($fb_data['share_count']);
|
1487 |
|
1488 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1489 |
}
|
1490 |
|
1491 |
//Custom Skin Support {Monad}
|
491 |
$counts=$socialObj->format_num($fb_data['share_count']);
|
492 |
|
493 |
}
|
494 |
+
else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="mypage")
|
495 |
+
{
|
496 |
+
$current_url = $sfsi_plus_section4_options['sfsi_plus_facebook_mypageCounts'];
|
497 |
+
$fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
|
498 |
+
$counts=$socialObj->format_num($fb_data);
|
499 |
+
|
500 |
+
}
|
501 |
}
|
502 |
|
503 |
//Custom Skin Support {Monad}
|
1493 |
//$counts=$socialObj->format_num($fb_data['share_count']);
|
1494 |
|
1495 |
}
|
1496 |
+
else if($sfsi_plus_section4_options['sfsi_plus_facebook_countsFrom']=="mypage")
|
1497 |
+
{
|
1498 |
+
$current_url = $sfsi_plus_section4_options['sfsi_plus_facebook_mypageCounts'];
|
1499 |
+
$fb_data=$socialObj->sfsi_get_fb_pagelike($current_url);
|
1500 |
+
//$counts=$socialObj->format_num($fb_data);
|
1501 |
+
|
1502 |
+
}
|
1503 |
}
|
1504 |
|
1505 |
//Custom Skin Support {Monad}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=seb.r
|
|
4 |
Tags: social media, social media icons, sidebar, admin, icons, sharing icons, social media widget, social icon widget, socialmedia, fb widget, facebook, facebook icon, facebook button, facebook share button, facebook like button, twitter, twitter icon, twitter button, google+, google, google plus, google plus icon, google plus button, pinterest, pinterest icon, pinterest button, instagram, Instagram icon, Instagram button, youtube, youtube icon, youtube button, linkedin, linkedin icon, linkedin button, subscription popup, pop-up, ultimate, email, rss, rss2email, subscription icons, subscription icon, social media pop-up, free, newsletter, email newsletter, follow, follow me, counter, feed, feeds, filter, links, link, media, plugin, social, widget, tweet button, email button, email icon, socialize, facebook like, facebook recommend
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.2.2
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -73,6 +73,14 @@ Please check out the FAQ on http://ultimatelysocial.com
|
|
73 |
|
74 |
== Changelog ==
|
75 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
= 1.2 =
|
77 |
* Vulnerabilities (AJAX) fixed
|
78 |
* OG-issues (caused in conjunction with other plugins) fixed
|
@@ -96,5 +104,5 @@ Please check out the FAQ on http://ultimatelysocial.com
|
|
96 |
|
97 |
== Upgrade Notice ==
|
98 |
|
99 |
-
= 1.
|
100 |
-
|
4 |
Tags: social media, social media icons, sidebar, admin, icons, sharing icons, social media widget, social icon widget, socialmedia, fb widget, facebook, facebook icon, facebook button, facebook share button, facebook like button, twitter, twitter icon, twitter button, google+, google, google plus, google plus icon, google plus button, pinterest, pinterest icon, pinterest button, instagram, Instagram icon, Instagram button, youtube, youtube icon, youtube button, linkedin, linkedin icon, linkedin button, subscription popup, pop-up, ultimate, email, rss, rss2email, subscription icons, subscription icon, social media pop-up, free, newsletter, email newsletter, follow, follow me, counter, feed, feeds, filter, links, link, media, plugin, social, widget, tweet button, email button, email icon, socialize, facebook like, facebook recommend
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.2.2
|
7 |
+
Stable tag: 1.3
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= 1.3 =
|
77 |
+
* Links with "@" in the url (e.g. as in Flickr-links) now get recognized as well
|
78 |
+
* Alignment issues of icons in tooltip fixed
|
79 |
+
* Layout optimizations in plugin area
|
80 |
+
* Users can now select to have the number of likes of their facebook page displayed as counts of the facebook icon on their blogs
|
81 |
+
* Typos in admin area corrected
|
82 |
+
* Users can now disable auto-scaling feature for mobile devices ("viewport" meta tag)
|
83 |
+
|
84 |
= 1.2 =
|
85 |
* Vulnerabilities (AJAX) fixed
|
86 |
* OG-issues (caused in conjunction with other plugins) fixed
|
104 |
|
105 |
== Upgrade Notice ==
|
106 |
|
107 |
+
= 1.3 =
|
108 |
+
Minor adjustments and some new features, but no upgrade needed if you didn't face any issues
|
ultimate_social_media_icons.php
CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://ultimatelysocial.com
|
|
5 |
Description: The best social media plugin on the market. And 100% FREE. Allows you to add social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, Pinterest, Instagram, Google+, LinkedIn, Share-button). It offers a wide range of design options and other features.
|
6 |
Author: UltimatelySocial
|
7 |
Author URI: http://ultimatelysocial.com
|
8 |
-
Version: 1.
|
9 |
License: GPLv2
|
10 |
*/
|
11 |
|
@@ -98,17 +98,32 @@ add_action('wp_head', 'ultimateplusfbmetatags');
|
|
98 |
function ultimateplusfbmetatags()
|
99 |
{
|
100 |
$metarequest = get_option("adding_plustags");
|
101 |
-
|
|
|
102 |
{
|
103 |
-
$post_id = get_the_ID();
|
104 |
$post = get_post( $post_id );
|
105 |
$attachment_id = get_post_thumbnail_id($post_id);
|
106 |
$title = str_replace('"', "", strip_tags(get_the_title($post_id)));
|
107 |
$description = $post->post_content;
|
108 |
$description = str_replace('"', "", strip_tags($description));
|
109 |
$url = get_permalink($post_id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
|
111 |
-
echo ' <meta name="viewport" content="width=device-width, initial-scale=1">';
|
112 |
if($attachment_id)
|
113 |
{
|
114 |
$feat_image = wp_get_attachment_url( $attachment_id );
|
@@ -363,4 +378,4 @@ function sfsi_plus_string_sanitize($s) {
|
|
363 |
$result = preg_replace("/[^a-zA-Z0-9]+/", " ", html_entity_decode($s, ENT_QUOTES));
|
364 |
return $result;
|
365 |
}
|
366 |
-
?>
|
5 |
Description: The best social media plugin on the market. And 100% FREE. Allows you to add social media & share icons to your blog (esp. Facebook, Twitter, Email, RSS, Pinterest, Instagram, Google+, LinkedIn, Share-button). It offers a wide range of design options and other features.
|
6 |
Author: UltimatelySocial
|
7 |
Author URI: http://ultimatelysocial.com
|
8 |
+
Version: 1.3
|
9 |
License: GPLv2
|
10 |
*/
|
11 |
|
98 |
function ultimateplusfbmetatags()
|
99 |
{
|
100 |
$metarequest = get_option("adding_plustags");
|
101 |
+
$post_id = get_the_ID();
|
102 |
+
if($metarequest == 'yes' && !empty($post_id))
|
103 |
{
|
|
|
104 |
$post = get_post( $post_id );
|
105 |
$attachment_id = get_post_thumbnail_id($post_id);
|
106 |
$title = str_replace('"', "", strip_tags(get_the_title($post_id)));
|
107 |
$description = $post->post_content;
|
108 |
$description = str_replace('"', "", strip_tags($description));
|
109 |
$url = get_permalink($post_id);
|
110 |
+
|
111 |
+
//checking for disabling viewport meta tag
|
112 |
+
$option5 = unserialize(get_option('sfsi_plus_section5_options',false));
|
113 |
+
if(isset($option5['sfsi_plus_disable_viewport']))
|
114 |
+
{
|
115 |
+
$sfsi_plus_disable_viewport = $option5['sfsi_plus_disable_viewport'];
|
116 |
+
}
|
117 |
+
else
|
118 |
+
{
|
119 |
+
$sfsi_plus_disable_viewport = 'no';
|
120 |
+
}
|
121 |
+
if($sfsi_plus_disable_viewport == 'no')
|
122 |
+
{
|
123 |
+
echo ' <meta name="viewport" content="width=device-width, initial-scale=1">';
|
124 |
+
}
|
125 |
+
//checking for disabling viewport meta tag
|
126 |
|
|
|
127 |
if($attachment_id)
|
128 |
{
|
129 |
$feat_image = wp_get_attachment_url( $attachment_id );
|
378 |
$result = preg_replace("/[^a-zA-Z0-9]+/", " ", html_entity_decode($s, ENT_QUOTES));
|
379 |
return $result;
|
380 |
}
|
381 |
+
?>
|
views/sfsi_option_view4.php
CHANGED
@@ -1,6 +1,10 @@
|
|
1 |
<?php
|
2 |
/* unserialize all saved option for section 4 options */
|
3 |
$option4= unserialize(get_option('sfsi_plus_section4_options',false));
|
|
|
|
|
|
|
|
|
4 |
$option2= unserialize(get_option('sfsi_plus_section2_options',false));
|
5 |
$counts=sfsi_plus_getCounts(); /* fetch counts for admin sections */
|
6 |
/* check for email icon display */
|
@@ -82,8 +86,9 @@
|
|
82 |
</div>
|
83 |
<div class="listing">
|
84 |
<ul>
|
85 |
-
<li><input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes') ? 'checked="true"' : '' ;?> type="radio" value="likes" class="styled" />Retrieve the number of
|
86 |
-
<li><input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='
|
|
|
87 |
</ul>
|
88 |
</div>
|
89 |
</div> <!-- END FACEBOOK ICON COUNT SECTION-->
|
1 |
<?php
|
2 |
/* unserialize all saved option for section 4 options */
|
3 |
$option4= unserialize(get_option('sfsi_plus_section4_options',false));
|
4 |
+
if(!isset($option4['sfsi_plus_facebook_mypageCounts']))
|
5 |
+
{
|
6 |
+
$option4['sfsi_plus_facebook_mypageCounts'] = '';
|
7 |
+
}
|
8 |
$option2= unserialize(get_option('sfsi_plus_section2_options',false));
|
9 |
$counts=sfsi_plus_getCounts(); /* fetch counts for admin sections */
|
10 |
/* check for email icon display */
|
86 |
</div>
|
87 |
<div class="listing">
|
88 |
<ul>
|
89 |
+
<li><input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes') ? 'checked="true"' : '' ;?> type="radio" value="likes" class="styled" />Retrieve the number of likes <strong>of your blog</strong></li>
|
90 |
+
<li><input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='mypage') ? 'checked="true"' : '' ;?> type="radio" value="mypage" class="styled" />Retrieve the number of likes <strong>of your facebook page</strong><br><div class="sfsiplus_fbpgidwpr" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'display:none;' : '' ;?>">Facebook page ID:</div> <input name="sfsi_plus_facebook_mypageCounts" type="text" class="input mypginpt" value="<?php echo ($option4['sfsi_plus_facebook_mypageCounts']!='') ? $option4['sfsi_plus_facebook_mypageCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'display:none;' : '' ;?>" /><div class="sfsiplus_fbpgidwpr sfsiplus_fbpgiddesc" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'display:none;' : '' ;?>">(You'll find it at the bottom of the <code><<</code>About<code>>></code>-tab on your facebook page)</div></li>
|
91 |
+
<li><input name="sfsi_plus_facebook_countsFrom" <?php echo ($option4['sfsi_plus_facebook_countsFrom']=='manual') ? 'checked="true"' : '' ;?> type="radio" value="manual" class="styled" />Enter the figure manually<input name="sfsi_plus_facebook_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_plus_facebook_manualCounts']!='') ? $option4['sfsi_plus_facebook_manualCounts'] : '' ;?>" style="<?php echo ($option4['sfsi_plus_facebook_countsFrom']=='likes' || $option4['sfsi_plus_facebook_countsFrom']=='followers' || $option4['sfsi_plus_facebook_countsFrom']=='mypage') ? 'display:none;' : '' ;?>" /></li>
|
92 |
</ul>
|
93 |
</div>
|
94 |
</div> <!-- END FACEBOOK ICON COUNT SECTION-->
|
views/sfsi_option_view5.php
CHANGED
@@ -24,6 +24,15 @@
|
|
24 |
}
|
25 |
ksort($icons_order);
|
26 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
27 |
?>
|
28 |
<!-- Section 5 "Any other wishes for your main icons?" main div Start -->
|
29 |
<div class="tab5">
|
@@ -159,6 +168,15 @@
|
|
159 |
</ul>
|
160 |
</div>
|
161 |
<!--disable float icons-->
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
162 |
</div><!-- END icon's floating and stick section -->
|
163 |
|
164 |
<!-- mouse over text section start here -->
|
24 |
}
|
25 |
ksort($icons_order);
|
26 |
|
27 |
+
if(isset($option5['sfsi_plus_disable_viewport']))
|
28 |
+
{
|
29 |
+
$sfsi_plus_disable_viewport = $option5['sfsi_plus_disable_viewport'];
|
30 |
+
}
|
31 |
+
else
|
32 |
+
{
|
33 |
+
$sfsi_plus_disable_viewport = 'no';
|
34 |
+
}
|
35 |
+
|
36 |
?>
|
37 |
<!-- Section 5 "Any other wishes for your main icons?" main div Start -->
|
38 |
<div class="tab5">
|
168 |
</ul>
|
169 |
</div>
|
170 |
<!--disable float icons-->
|
171 |
+
<!--disabling view port meta tag-->
|
172 |
+
<div class="space disblfltonmbl">
|
173 |
+
<p class="list">Disable auto-scaling feature for mobile devices("viewport" meta tag)</p>
|
174 |
+
<ul class="enough_waffling">
|
175 |
+
<li><input name="sfsi_plus_disable_viewport" <?php echo ($sfsi_plus_disable_viewport=='yes') ? 'checked="true"' : '' ;?> type="radio" value="yes" class="styled" /><label>Yes</label></li>
|
176 |
+
<li><input name="sfsi_plus_disable_viewport" <?php echo ($sfsi_plus_disable_viewport=='no') ? 'checked="true"' : '' ;?> type="radio" value="no" class="styled" /><label>No</label></li>
|
177 |
+
</ul>
|
178 |
+
</div>
|
179 |
+
<!--disabling view port meta tag-->
|
180 |
</div><!-- END icon's floating and stick section -->
|
181 |
|
182 |
<!-- mouse over text section start here -->
|
views/sfsi_pop_content.php
CHANGED
@@ -450,7 +450,7 @@ I want to see how it works</a></div>
|
|
450 |
</div>
|
451 |
</li>
|
452 |
<li>
|
453 |
-
<div class="cstm_icnname">
|
454 |
<div class="cstmskins_btn">
|
455 |
<?php
|
456 |
if(get_option("plus_pintrest_skin"))
|
450 |
</div>
|
451 |
</li>
|
452 |
<li>
|
453 |
+
<div class="cstm_icnname">Pinterest</div>
|
454 |
<div class="cstmskins_btn">
|
455 |
<?php
|
456 |
if(get_option("plus_pintrest_skin"))
|