Version Description
- New follow-icons added
- More "rectangle" icons added before/after posts
- Widget was rendered incorrectly on some templates, fixed now
- Icons didn't always line up (on some themes), fixed now
- Youtube API got changed, which made the counts not displayed correctly, this is now adjusted in the plugin
- Slight layout adjustments in plugin's admin area
Download this release
Release Info
Developer | socialdude |
Plugin | Social Share Icons & Social Share Buttons |
Version | 1.4 |
Comparing to | |
See all releases |
Code changes from version 1.3 to 1.4
- css/images/count_left_arow.png +0 -0
- css/images/follow_subscribe.png +0 -0
- css/images/subscribe.png +0 -0
- css/images/tab_3_icns.png +0 -0
- css/sfsi-style.css +213 -30
- images/follow_subscribe.png +0 -0
- images/icons_theme/badge/badge_subscribe.png +0 -0
- images/icons_theme/black/black_subscribe.png +0 -0
- images/icons_theme/chrome_blue/chrome_blue_subscribe.png +0 -0
- images/icons_theme/chrome_grey/chrome_grey_subscribe.png +0 -0
- images/icons_theme/crystal/crystal_subscribe.png +0 -0
- images/icons_theme/cubes/cubes_subscribe.png +0 -0
- images/icons_theme/cute/cute_subscribe.png +0 -0
- images/icons_theme/default/default_subscribe.png +0 -0
- images/icons_theme/flat/flat_subscribe.png +0 -0
- images/icons_theme/glossy/glossy_subscribe.png +0 -0
- images/icons_theme/official/official_subscribe.png +0 -0
- images/icons_theme/orange/orange_subscribe.png +0 -0
- images/icons_theme/shaded_dark/shaded_dark_subscribe.png +0 -0
- images/icons_theme/shaded_light/shaded_light_subscribe.png +0 -0
- images/icons_theme/silver/silver_subscribe.png +0 -0
- images/icons_theme/splash/splash_subscribe.png +0 -0
- images/icons_theme/stitched/stitched_subscribe.png +0 -0
- images/icons_theme/thin/thin_subscribe.png +0 -0
- images/icons_theme/transparent/transparent_subscribe.png +0 -0
- images/subscribe.png +0 -0
- images/tab_1_icn_list.png +0 -0
- images/tab_1_icn_list_old.png +0 -0
- images/tab_3_icns.png +0 -0
- images/tab_3_icns_old.png +0 -0
- images/twiiter.png +0 -0
- js/custom-admin.js +64 -13
- libs/controllers/sfsi_buttons_controller.php +18 -6
- libs/controllers/sfsi_socialhelper.php +67 -13
- libs/controllers/sfsiocns_OnPosts.php +121 -18
- libs/sfsi_install_uninstall.php +12 -6
- libs/sfsi_widget.php +59 -10
- readme.txt +12 -3
- ultimate_social_media_icons.php +97 -19
- views/sfsi_option_view2.php +20 -7
- views/sfsi_option_view4.php +17 -2
- views/sfsi_option_view8.php +63 -29
css/images/count_left_arow.png
ADDED
Binary file
|
css/images/follow_subscribe.png
ADDED
Binary file
|
css/images/subscribe.png
ADDED
Binary file
|
css/images/tab_3_icns.png
CHANGED
Binary file
|
css/sfsi-style.css
CHANGED
@@ -187,6 +187,16 @@ body {
|
|
187 |
background: url(../images/check_bg.jpg) no-repeat;
|
188 |
display: inherit;
|
189 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
190 |
.sfsi_mainContainer .radio {
|
191 |
width: 40px;
|
192 |
height: 40px;
|
@@ -993,6 +1003,15 @@ ul.sfsiplus_icn_listing8 li .tb_4_ck {
|
|
993 |
float: left;
|
994 |
margin: 10px 0 0;
|
995 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
996 |
.tab1 ul.plus_icn_listing li .custom, .tab1 ul.plus_icn_listing li .sfsicls_email, .tab1 ul.plus_icn_listing li .sfsicls_facebook, .tab1 ul.plus_icn_listing li .sfsicls_ggle_pls, .tab1 ul.plus_icn_listing li .sfsicls_instagram, .tab1 ul.plus_icn_listing li .sfsicls_linkdin, .tab1 ul.plus_icn_listing li .sfsicls_pinterest, .tab1 ul.plus_icn_listing li .sfsicls_rs_s, .tab1 ul.plus_icn_listing li .sfsicls_share, .tab1 ul.plus_icn_listing li .sfsicls_twt, .tab1 ul.plus_icn_listing li .sfsicls_utube {
|
997 |
background: url(../images/tab_1_icn_list.png) no-repeat;
|
998 |
float: left;
|
@@ -1105,7 +1124,13 @@ ul.sfsiplus_icn_listing8 li .sfsiplus_right_info a {
|
|
1105 |
}
|
1106 |
.row ul.tab_2_email_sec li {
|
1107 |
float: left;
|
1108 |
-
margin-right:
|
|
|
|
|
|
|
|
|
|
|
|
|
1109 |
}
|
1110 |
.row ul.tab_2_email_sec:first-child {
|
1111 |
margin-right: 2%}
|
@@ -1166,14 +1191,21 @@ ul.tab_2_email_sec .sf_arow {
|
|
1166 |
height: 52px;
|
1167 |
float: left;
|
1168 |
background: url(../images/sf_arow_icn.png) no-repeat;
|
1169 |
-
margin: 0
|
1170 |
}
|
1171 |
ul.tab_2_email_sec .email_icn {
|
1172 |
background: url(../images/tab_1_icn_list.png) 0 -71px no-repeat;
|
1173 |
width: 52px;
|
1174 |
height: 52px;
|
1175 |
float: left;
|
1176 |
-
margin: 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1177 |
}
|
1178 |
ul.tab_2_email_sec li .radio {
|
1179 |
float: left;
|
@@ -1181,8 +1213,16 @@ ul.tab_2_email_sec li .radio {
|
|
1181 |
}
|
1182 |
.row ul.tab_2_email_sec li label {
|
1183 |
margin: 13px 0 0 7px;
|
1184 |
-
font-size:
|
1185 |
float: left;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1186 |
}
|
1187 |
.inr_cont .fb_url {
|
1188 |
clear: both;
|
@@ -2234,14 +2274,22 @@ ul.tab_3_list li span {
|
|
2234 |
top: -93px;
|
2235 |
}
|
2236 |
#accordion .tab4 h4, #accordion1 .tab4 h4 {
|
|
|
2237 |
color: #414951;
|
2238 |
font-size: 20px;
|
2239 |
}
|
2240 |
.sfsiplus_specify_counts .listing li .input {
|
2241 |
width: 73px;
|
2242 |
}
|
2243 |
-
.sfsiplus_fbpgidwpr{width: 160px; float: left; font-weight: bold;}
|
2244 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2245 |
.sfsiplus_specify_counts .listing li .input.mypginpt {
|
2246 |
width: 288px;
|
2247 |
}
|
@@ -2319,7 +2367,7 @@ ul.tab_3_list li span {
|
|
2319 |
padding-bottom: 40px!important;
|
2320 |
}
|
2321 |
.tab8 .save_button {
|
2322 |
-
padding-top:
|
2323 |
}
|
2324 |
.tab8 .save_button a {
|
2325 |
padding: 16px 0;
|
@@ -2466,6 +2514,33 @@ label {
|
|
2466 |
left: 50%;
|
2467 |
width: 15px;
|
2468 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2469 |
.bot_no.sfsiSmBtn {
|
2470 |
font-size: 10px;
|
2471 |
margin-top: 4px;
|
@@ -2856,24 +2931,74 @@ h2.optional {
|
|
2856 |
width: 500px!important;
|
2857 |
}
|
2858 |
@media (max-width:767px) {
|
2859 |
-
|
2860 |
-
|
2861 |
-
}
|
2862 |
-
.sfsi_plus_outr_div {
|
2863 |
-
|
2864 |
-
.sfsi_plus_outr_div h2 {
|
2865 |
-
|
2866 |
-
|
2867 |
-
}
|
2868 |
-
.sfsi_plus_wicons {
|
2869 |
-
|
2870 |
-
}
|
2871 |
-
}
|
|
|
2872 |
height: 41px;
|
2873 |
}
|
2874 |
.sfsi_Sicons {
|
2875 |
position: relative;
|
2876 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2877 |
.sfsi_Sicons .sf_fb {
|
2878 |
position: relative;
|
2879 |
width: 75px;
|
@@ -2883,13 +3008,20 @@ h2.optional {
|
|
2883 |
width: 73px;
|
2884 |
margin: 2px 0 0;
|
2885 |
}
|
|
|
2886 |
.sfsi_Sicons .sf_fb .fb_iframe_widget>span {
|
2887 |
-
position:
|
2888 |
/*width: 450px!important;*/
|
|
|
2889 |
}
|
2890 |
.sfsi_Sicons .sf_addthis, .sfsi_Sicons .sf_google {
|
2891 |
position: relative;
|
2892 |
}
|
|
|
|
|
|
|
|
|
|
|
2893 |
.wrapper .sfsi_Sicons .sf_addthis {
|
2894 |
margin: 7px 0 0 4px!important;
|
2895 |
}
|
@@ -3400,7 +3532,7 @@ ul.cstmskin_iconlist {
|
|
3400 |
.tab8 .row.sfsiplus_PostsSettings_section .options .first.chcklbl { float: left !important; width: 335px !important; }
|
3401 |
.tab8 .row.sfsiplus_PostsSettings_section .options .chckwpr { width:538px; float:right; }
|
3402 |
.tab8 .row.sfsiplus_PostsSettings_section .options {
|
3403 |
-
width:
|
3404 |
margin:0;
|
3405 |
font-family: 'helveticaneue-light';
|
3406 |
float: left;
|
@@ -3644,7 +3776,7 @@ ul.plus_icn_listing li .sfsiplus_right_info label.sfsiplus_sub-subtitle a
|
|
3644 |
line-height: 30px;
|
3645 |
}
|
3646 |
.chckwpr .snglchckcntr:first-child { float:left; }
|
3647 |
-
.chckwpr .snglchckcntr:last-child { float:
|
3648 |
.chckwpr
|
3649 |
{
|
3650 |
width:100%;
|
@@ -3679,26 +3811,51 @@ label.sfsiplus_toglpstpgsbttl { float: left; margin-top: 5px !important}
|
|
3679 |
float: left
|
3680 |
}
|
3681 |
.tab8 .row.sfsiplus_PostsSettings_section .options .seconds.chcklbl { float: right; width: 538px !important; }
|
3682 |
-
.sfsibeforpstwpr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3683 |
{
|
3684 |
width: 100%;
|
3685 |
float: left;
|
3686 |
line-height: 18px;
|
|
|
3687 |
}
|
3688 |
-
.sfsibeforpstwpr .sfsi_Sicons span
|
3689 |
{
|
3690 |
font-size: 20px;
|
3691 |
}
|
3692 |
-
.
|
|
|
|
|
|
|
|
|
3693 |
{
|
3694 |
|
3695 |
}
|
3696 |
-
.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3697 |
{
|
3698 |
width: auto;
|
3699 |
float: left;
|
3700 |
}
|
3701 |
-
.sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons
|
|
|
|
|
|
|
|
|
3702 |
{
|
3703 |
float: left;
|
3704 |
}
|
@@ -3716,7 +3873,8 @@ label.sfsiplus_toglpstpgsbttl { float: left; margin-top: 5px !important}
|
|
3716 |
{
|
3717 |
font-weight: bold;
|
3718 |
}
|
3719 |
-
.sfsibeforpstwpr iframe
|
|
|
3720 |
.sfwp_fivestar_ul li { display: inline-block; padding-right: 20px; }
|
3721 |
.fb_iframe_widget iframe
|
3722 |
{
|
@@ -3724,4 +3882,29 @@ label.sfsiplus_toglpstpgsbttl { float: left; margin-top: 5px !important}
|
|
3724 |
}
|
3725 |
.sfsi_mainContainer p.bldtxtmsg{float: left; font-size: 15px; font-weight: bold; margin-top: 12px; width: 100%;}
|
3726 |
.addthis_toolbox a{border: medium none !important; float: left;}
|
3727 |
-
.sfsiplus_icn_listing8 li > div{width: auto; float: left;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
background: url(../images/check_bg.jpg) no-repeat;
|
188 |
display: inherit;
|
189 |
}
|
190 |
+
.tab8 .social_icon_like1 li span.checkbox {
|
191 |
+
width: 31px;
|
192 |
+
height: 31px;
|
193 |
+
background: url(../images/check_bg.jpg) no-repeat;
|
194 |
+
display: inherit;
|
195 |
+
}
|
196 |
+
.tab8 .social_icon_like1 li a
|
197 |
+
{
|
198 |
+
float: left;
|
199 |
+
}
|
200 |
.sfsi_mainContainer .radio {
|
201 |
width: 40px;
|
202 |
height: 40px;
|
1003 |
float: left;
|
1004 |
margin: 10px 0 0;
|
1005 |
}
|
1006 |
+
.tab8 .cstmdsplyulwpr .radio_section.tb_4_ck
|
1007 |
+
{
|
1008 |
+
margin-right: 10px !important;
|
1009 |
+
}
|
1010 |
+
.tab8 .social_icon_like1.cstmdsplyulwpr .cstmdsplsub{margin-top: 3px;}
|
1011 |
+
.tab8 .social_icon_like1.cstmdsplyulwpr .cstmdspllke{margin-top: 3px;}
|
1012 |
+
.tab8 .social_icon_like1.cstmdsplyulwpr .cstmdsplggpls{margin-top: 3px;}
|
1013 |
+
.tab8 .social_icon_like1.cstmdsplyulwpr .cstmdspltwtr{margin-top: 4px;}
|
1014 |
+
.tab8 .social_icon_like1.cstmdsplyulwpr .cstmdsplshr{margin-top: 3px;}
|
1015 |
.tab1 ul.plus_icn_listing li .custom, .tab1 ul.plus_icn_listing li .sfsicls_email, .tab1 ul.plus_icn_listing li .sfsicls_facebook, .tab1 ul.plus_icn_listing li .sfsicls_ggle_pls, .tab1 ul.plus_icn_listing li .sfsicls_instagram, .tab1 ul.plus_icn_listing li .sfsicls_linkdin, .tab1 ul.plus_icn_listing li .sfsicls_pinterest, .tab1 ul.plus_icn_listing li .sfsicls_rs_s, .tab1 ul.plus_icn_listing li .sfsicls_share, .tab1 ul.plus_icn_listing li .sfsicls_twt, .tab1 ul.plus_icn_listing li .sfsicls_utube {
|
1016 |
background: url(../images/tab_1_icn_list.png) no-repeat;
|
1017 |
float: left;
|
1124 |
}
|
1125 |
.row ul.tab_2_email_sec li {
|
1126 |
float: left;
|
1127 |
+
margin-right: 10px;
|
1128 |
+
width: 32%;
|
1129 |
+
}
|
1130 |
+
.sfsiplusicnsdvwrp
|
1131 |
+
{
|
1132 |
+
width: 110px;
|
1133 |
+
float: left;
|
1134 |
}
|
1135 |
.row ul.tab_2_email_sec:first-child {
|
1136 |
margin-right: 2%}
|
1191 |
height: 52px;
|
1192 |
float: left;
|
1193 |
background: url(../images/sf_arow_icn.png) no-repeat;
|
1194 |
+
margin: 0 0px 0 6px;
|
1195 |
}
|
1196 |
ul.tab_2_email_sec .email_icn {
|
1197 |
background: url(../images/tab_1_icn_list.png) 0 -71px no-repeat;
|
1198 |
width: 52px;
|
1199 |
height: 52px;
|
1200 |
float: left;
|
1201 |
+
margin: 0 0 0 5px;
|
1202 |
+
}
|
1203 |
+
ul.tab_2_email_sec .subscribe_icn {
|
1204 |
+
background: url(../images/tab_1_icn_list.png) 0 -860px no-repeat;
|
1205 |
+
width: 52px;
|
1206 |
+
height: 52px;
|
1207 |
+
float: left;
|
1208 |
+
margin: 0 0 0 5px;
|
1209 |
}
|
1210 |
ul.tab_2_email_sec li .radio {
|
1211 |
float: left;
|
1213 |
}
|
1214 |
.row ul.tab_2_email_sec li label {
|
1215 |
margin: 13px 0 0 7px;
|
1216 |
+
font-size: 16px;
|
1217 |
float: left;
|
1218 |
+
width: 160px;
|
1219 |
+
}
|
1220 |
+
.row ul.tab_2_email_sec li label span
|
1221 |
+
{
|
1222 |
+
font-size: 15px;
|
1223 |
+
color: #808080;
|
1224 |
+
width: 100%;
|
1225 |
+
float: left;
|
1226 |
}
|
1227 |
.inr_cont .fb_url {
|
1228 |
clear: both;
|
2274 |
top: -93px;
|
2275 |
}
|
2276 |
#accordion .tab4 h4, #accordion1 .tab4 h4 {
|
2277 |
+
|
2278 |
color: #414951;
|
2279 |
font-size: 20px;
|
2280 |
}
|
2281 |
.sfsiplus_specify_counts .listing li .input {
|
2282 |
width: 73px;
|
2283 |
}
|
2284 |
+
.sfsiplus_fbpgidwpr{width: 160px; float: left; font-weight: bold; font-size: 17px; color: #000000;}
|
2285 |
+
.sfsiplus_fbpgiddesc{font-weight: normal; width: 100%; font-size: 14px; color: #888888;padding: 4px 0 0 60px; }
|
2286 |
+
.sfsiplus_fbpgiddesc code
|
2287 |
+
{
|
2288 |
+
background: none repeat scroll 0 0 transparent;
|
2289 |
+
padding-right: 0px;
|
2290 |
+
padding-left: 0px;
|
2291 |
+
|
2292 |
+
}
|
2293 |
.sfsiplus_specify_counts .listing li .input.mypginpt {
|
2294 |
width: 288px;
|
2295 |
}
|
2367 |
padding-bottom: 40px!important;
|
2368 |
}
|
2369 |
.tab8 .save_button {
|
2370 |
+
padding-top: 0px;
|
2371 |
}
|
2372 |
.tab8 .save_button a {
|
2373 |
padding: 16px 0;
|
2514 |
left: 50%;
|
2515 |
width: 15px;
|
2516 |
}
|
2517 |
+
/*.sf_subscrbe .bot_no:before
|
2518 |
+
{
|
2519 |
+
content: url(images/count_left_arow.png);
|
2520 |
+
height: 9px;
|
2521 |
+
left: 0;
|
2522 |
+
margin-left: -12px;
|
2523 |
+
position: absolute;
|
2524 |
+
top: 0px;
|
2525 |
+
width: 15px;
|
2526 |
+
}*/
|
2527 |
+
.sf_subscrbe .bot_no
|
2528 |
+
{
|
2529 |
+
background: rgba(0, 0, 0, 0) url(images/count_left_arow.png) no-repeat scroll 0 0 / 27px auto;
|
2530 |
+
font-size: 12px !important;
|
2531 |
+
left: 67px;
|
2532 |
+
line-height: 17px !important;
|
2533 |
+
margin-left: 0px;
|
2534 |
+
margin-top: 9px;
|
2535 |
+
padding: 1px 0;
|
2536 |
+
position: absolute;
|
2537 |
+
text-align: center;
|
2538 |
+
top: -8px;
|
2539 |
+
white-space: pre;
|
2540 |
+
width: 33px;
|
2541 |
+
height: 19px;
|
2542 |
+
z-index: 9;
|
2543 |
+
}
|
2544 |
.bot_no.sfsiSmBtn {
|
2545 |
font-size: 10px;
|
2546 |
margin-top: 4px;
|
2931 |
width: 500px!important;
|
2932 |
}
|
2933 |
@media (max-width:767px) {
|
2934 |
+
.icon2 .fb_iframe_widget span {
|
2935 |
+
width: auto;
|
2936 |
+
}
|
2937 |
+
.sfsi_plus_outr_div {
|
2938 |
+
top: 10%}
|
2939 |
+
.sfsi_plus_outr_div h2 {
|
2940 |
+
font-size: 22px!important;
|
2941 |
+
line-height: 28px;
|
2942 |
+
}
|
2943 |
+
.sfsi_plus_wicons {
|
2944 |
+
padding-top: 0;
|
2945 |
+
}
|
2946 |
+
}
|
2947 |
+
.sfsiplus_specify_counts .listing li .high_prb {
|
2948 |
height: 41px;
|
2949 |
}
|
2950 |
.sfsi_Sicons {
|
2951 |
position: relative;
|
2952 |
}
|
2953 |
+
.sfsi_Sicons .sf_subscrbe{ margin: 2px 3px 3px 0; line-height: 20px;}
|
2954 |
+
.sfsi_Sicons .sf_fb{ margin: 0 4px 0 5px; line-height: 20px;}
|
2955 |
+
.sfsi_Sicons .sf_google{ margin: 0 5px 0 5px; line-height: 20px;}
|
2956 |
+
.sfsi_Sicons .sf_twiter{ margin: 1px 7px 0 4px; line-height: 20px;}
|
2957 |
+
.sfsi_Sicons .sf_addthis{ margin: 2px 7px 0 2px; line-height: 20px;}
|
2958 |
+
|
2959 |
+
.sfsi_Sicons.left .sf_subscrbe{ margin: 2px 8px 3px 0; }
|
2960 |
+
.sfsi_Sicons.left .sf_fb{ margin: 0 8px 0 0; }
|
2961 |
+
.sfsi_Sicons.left .sf_google{ margin: 0 8px 0 0; }
|
2962 |
+
.sfsi_Sicons.left .sf_twiter{ margin: 1px 8px 0 0; }
|
2963 |
+
.sfsi_Sicons.left .sf_addthis{ margin: 2px 7px 0 0; }
|
2964 |
+
|
2965 |
+
.sfsi_Sicons.right .sf_subscrbe{ margin: 2px 0 3px; }
|
2966 |
+
.sfsi_Sicons.right .sf_fb{ margin: 0 0 0 7px; }
|
2967 |
+
.sfsi_Sicons.right .sf_google{ margin: 0 0 0 8px; }
|
2968 |
+
.sfsi_Sicons.right .sf_twiter{ margin: 1px 0 0 8px; }
|
2969 |
+
.sfsi_Sicons.right .sf_addthis{ margin: 2px 0 0 8px; }
|
2970 |
+
|
2971 |
+
.sfsi_Sicons .sf_subscrbe, .sfsi_Sicons .sf_twiter
|
2972 |
+
{
|
2973 |
+
position: relative;
|
2974 |
+
width: 75px;
|
2975 |
+
}
|
2976 |
+
.sfsi_Sicons .sf_twiter iframe
|
2977 |
+
{
|
2978 |
+
margin: 0px;
|
2979 |
+
height: 20px !important;
|
2980 |
+
overflow: visible !important;
|
2981 |
+
}
|
2982 |
+
.sfsi_Sicons .sf_twiter iframe #widget
|
2983 |
+
{
|
2984 |
+
overflow: visible !important;
|
2985 |
+
}
|
2986 |
+
.sfsi_Sicons .sf_subscrbe a
|
2987 |
+
{
|
2988 |
+
width: auto;
|
2989 |
+
float: left;
|
2990 |
+
border: medium none;
|
2991 |
+
padding-top: 0px;
|
2992 |
+
}
|
2993 |
+
.sfsi_Sicons .sf_subscrbe a:focus
|
2994 |
+
{
|
2995 |
+
outline: medium none;
|
2996 |
+
}
|
2997 |
+
.sfsi_Sicons .sf_subscrbe a img
|
2998 |
+
{
|
2999 |
+
width: 65px;
|
3000 |
+
float: left;
|
3001 |
+
}
|
3002 |
.sfsi_Sicons .sf_fb {
|
3003 |
position: relative;
|
3004 |
width: 75px;
|
3008 |
width: 73px;
|
3009 |
margin: 2px 0 0;
|
3010 |
}
|
3011 |
+
/*absolute commented as for standard icon it was giving issue while icon was to be aligned centerd.*/
|
3012 |
.sfsi_Sicons .sf_fb .fb_iframe_widget>span {
|
3013 |
+
position: relative;
|
3014 |
/*width: 450px!important;*/
|
3015 |
+
float: left;
|
3016 |
}
|
3017 |
.sfsi_Sicons .sf_addthis, .sfsi_Sicons .sf_google {
|
3018 |
position: relative;
|
3019 |
}
|
3020 |
+
.sfsi_Sicons .sf_google>div
|
3021 |
+
{
|
3022 |
+
float: left !important;
|
3023 |
+
margin-top: 1px !important;
|
3024 |
+
}
|
3025 |
.wrapper .sfsi_Sicons .sf_addthis {
|
3026 |
margin: 7px 0 0 4px!important;
|
3027 |
}
|
3532 |
.tab8 .row.sfsiplus_PostsSettings_section .options .first.chcklbl { float: left !important; width: 335px !important; }
|
3533 |
.tab8 .row.sfsiplus_PostsSettings_section .options .chckwpr { width:538px; float:right; }
|
3534 |
.tab8 .row.sfsiplus_PostsSettings_section .options {
|
3535 |
+
width:90%;
|
3536 |
margin:0;
|
3537 |
font-family: 'helveticaneue-light';
|
3538 |
float: left;
|
3776 |
line-height: 30px;
|
3777 |
}
|
3778 |
.chckwpr .snglchckcntr:first-child { float:left; }
|
3779 |
+
.chckwpr .snglchckcntr:last-child { float:left; margin-left: 150px; }
|
3780 |
.chckwpr
|
3781 |
{
|
3782 |
width:100%;
|
3811 |
float: left
|
3812 |
}
|
3813 |
.tab8 .row.sfsiplus_PostsSettings_section .options .seconds.chcklbl { float: right; width: 538px !important; }
|
3814 |
+
.sfsibeforpstwpr
|
3815 |
+
{
|
3816 |
+
width: 100%;
|
3817 |
+
float: left;
|
3818 |
+
line-height: 18px;
|
3819 |
+
margin: 5px 0;
|
3820 |
+
}
|
3821 |
+
.sfsiaftrpstwpr
|
3822 |
{
|
3823 |
width: 100%;
|
3824 |
float: left;
|
3825 |
line-height: 18px;
|
3826 |
+
margin: 5px 0;
|
3827 |
}
|
3828 |
+
.sfsibeforpstwpr .sfsi_Sicons span
|
3829 |
{
|
3830 |
font-size: 20px;
|
3831 |
}
|
3832 |
+
.sfsiaftrpstwpr .sfsi_Sicons span
|
3833 |
+
{
|
3834 |
+
font-size: 20px;
|
3835 |
+
}
|
3836 |
+
.sfsibeforpstwpr .sfsi_Sicons
|
3837 |
{
|
3838 |
|
3839 |
}
|
3840 |
+
.sfsiaftrpstwpr .sfsi_Sicons
|
3841 |
+
{
|
3842 |
+
|
3843 |
+
}
|
3844 |
+
.sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr
|
3845 |
+
{
|
3846 |
+
width: auto;
|
3847 |
+
float: left;
|
3848 |
+
}
|
3849 |
+
.sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr
|
3850 |
{
|
3851 |
width: auto;
|
3852 |
float: left;
|
3853 |
}
|
3854 |
+
.sfsibeforpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons
|
3855 |
+
{
|
3856 |
+
float: left;
|
3857 |
+
}
|
3858 |
+
.sfsiaftrpstwpr .sfsiplus_norm_row.sfsi_plus_wDivothr .sfsi_plus_wicons
|
3859 |
{
|
3860 |
float: left;
|
3861 |
}
|
3873 |
{
|
3874 |
font-weight: bold;
|
3875 |
}
|
3876 |
+
.sfsibeforpstwpr iframe{max-width: none; vertical-align: middle;}
|
3877 |
+
.sfsiaftrpstwpr iframe{max-width: none; vertical-align: middle;}
|
3878 |
.sfwp_fivestar_ul li { display: inline-block; padding-right: 20px; }
|
3879 |
.fb_iframe_widget iframe
|
3880 |
{
|
3882 |
}
|
3883 |
.sfsi_mainContainer p.bldtxtmsg{float: left; font-size: 15px; font-weight: bold; margin-top: 12px; width: 100%;}
|
3884 |
.addthis_toolbox a{border: medium none !important; float: left;}
|
3885 |
+
.sfsiplus_icn_listing8 li > div{width: auto; float: left;}
|
3886 |
+
#accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisextrpdng
|
3887 |
+
{
|
3888 |
+
padding-bottom: 30px;
|
3889 |
+
float: left;
|
3890 |
+
}
|
3891 |
+
#accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisextrpdng
|
3892 |
+
{
|
3893 |
+
background: medium none;
|
3894 |
+
}
|
3895 |
+
#accordion .tab8 .sfsiplus_icn_listing8 li .sfsiplus_right_info p.cstmdisextrpdng code
|
3896 |
+
{
|
3897 |
+
background: none repeat scroll 0 0 transparent;
|
3898 |
+
padding-left: 0px;
|
3899 |
+
padding-right: 0px;
|
3900 |
+
}
|
3901 |
+
.options.sfsipluspstvwpr {
|
3902 |
+
margin-left: 17% !important;
|
3903 |
+
}
|
3904 |
+
.tab8 .row.sfsiplus_PostsSettings_section .options.sfsipluspstvwpr .first.chcklbl
|
3905 |
+
{
|
3906 |
+
width: 180px !important;
|
3907 |
+
}
|
3908 |
+
.sfsiplus_tab_3_icns.sfsiplus_shwthmbfraftr {
|
3909 |
+
overflow: visible;
|
3910 |
+
}
|
images/follow_subscribe.png
ADDED
Binary file
|
images/icons_theme/badge/badge_subscribe.png
ADDED
Binary file
|
images/icons_theme/black/black_subscribe.png
ADDED
Binary file
|
images/icons_theme/chrome_blue/chrome_blue_subscribe.png
ADDED
Binary file
|
images/icons_theme/chrome_grey/chrome_grey_subscribe.png
ADDED
Binary file
|
images/icons_theme/crystal/crystal_subscribe.png
ADDED
Binary file
|
images/icons_theme/cubes/cubes_subscribe.png
ADDED
Binary file
|
images/icons_theme/cute/cute_subscribe.png
ADDED
Binary file
|
images/icons_theme/default/default_subscribe.png
ADDED
Binary file
|
images/icons_theme/flat/flat_subscribe.png
ADDED
Binary file
|
images/icons_theme/glossy/glossy_subscribe.png
ADDED
Binary file
|
images/icons_theme/official/official_subscribe.png
ADDED
Binary file
|
images/icons_theme/orange/orange_subscribe.png
ADDED
Binary file
|
images/icons_theme/shaded_dark/shaded_dark_subscribe.png
ADDED
Binary file
|
images/icons_theme/shaded_light/shaded_light_subscribe.png
ADDED
Binary file
|
images/icons_theme/silver/silver_subscribe.png
ADDED
Binary file
|
images/icons_theme/splash/splash_subscribe.png
ADDED
Binary file
|
images/icons_theme/stitched/stitched_subscribe.png
ADDED
Binary file
|
images/icons_theme/thin/thin_subscribe.png
ADDED
Binary file
|
images/icons_theme/transparent/transparent_subscribe.png
ADDED
Binary file
|
images/subscribe.png
ADDED
Binary file
|
images/tab_1_icn_list.png
CHANGED
Binary file
|
images/tab_1_icn_list_old.png
ADDED
Binary file
|
images/tab_3_icns.png
CHANGED
Binary file
|
images/tab_3_icns_old.png
ADDED
Binary file
|
images/twiiter.png
ADDED
Binary file
|
js/custom-admin.js
CHANGED
@@ -66,18 +66,60 @@ function sfsi_plus_depened_sections() {
|
|
66 |
var s = i + 1, e = 74 * i;
|
67 |
SFSI(".sfsiplus_row_" + s + "_2").css("background-position", "-588px -" + e + "px");
|
68 |
}
|
69 |
-
var t = SFSI(".icon_img").attr("src")
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
}
|
82 |
SFSI("input[name='sfsi_plus_rss_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_rss_section", "show") :sfsi_plus_section_Display("sfsiplus_rss_section", "hide"),
|
83 |
SFSI("input[name='sfsi_plus_email_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_email_section", "show") :sfsi_plus_section_Display("sfsiplus_email_section", "hide"),
|
@@ -634,7 +676,11 @@ function sfsi_plus_update_step8() {
|
|
634 |
g = SFSI("input[name='sfsi_plus_display_on_homepage']:checked").val(),*/
|
635 |
f = SFSI("input[name='sfsi_plus_display_before_blogposts']:checked").val(),
|
636 |
g = SFSI("input[name='sfsi_plus_display_after_blogposts']:checked").val(),
|
637 |
-
|
|
|
|
|
|
|
|
|
638 |
_ = [];
|
639 |
/*SFSI("#sfsi_plus_Show_popupOn_PageIDs :selected").each(function(s, i) {
|
640 |
_[s] = SFSI(i).val()
|
@@ -659,6 +705,11 @@ function sfsi_plus_update_step8() {
|
|
659 |
sfsi_plus_display_on_homepage: g*/
|
660 |
sfsi_plus_display_before_blogposts: f,
|
661 |
sfsi_plus_display_after_blogposts: g,
|
|
|
|
|
|
|
|
|
|
|
662 |
nonce:nonce
|
663 |
};
|
664 |
SFSI.ajax({
|
66 |
var s = i + 1, e = 74 * i;
|
67 |
SFSI(".sfsiplus_row_" + s + "_2").css("background-position", "-588px -" + e + "px");
|
68 |
}
|
69 |
+
var t = SFSI(".icon_img").attr("src")
|
70 |
+
if(t)
|
71 |
+
{
|
72 |
+
if (t.indexOf("subscribe") !=-1)
|
73 |
+
{
|
74 |
+
var n = t.replace("subscribe.png", "sf_arow_icn.png");
|
75 |
+
}
|
76 |
+
else
|
77 |
+
{
|
78 |
+
var n = t.replace("email.png", "sf_arow_icn.png");
|
79 |
+
}
|
80 |
+
SFSI(".icon_img").attr("src", n);
|
81 |
+
}
|
82 |
+
}
|
83 |
+
else
|
84 |
+
{
|
85 |
+
if("email" == SFSI("input[name='sfsi_plus_rss_icons']:checked").val())
|
86 |
+
{
|
87 |
+
for (SFSI(".sfsiplus_row_1_2").css("background-position", "-58px 0"), i = 0; 16 > i; i++) {
|
88 |
+
var s = i + 1, e = 74 * i;
|
89 |
+
SFSI(".sfsiplus_row_" + s + "_2").css("background-position", "-58px -" + e + "px");
|
90 |
+
}
|
91 |
+
var t = SFSI(".icon_img").attr("src");
|
92 |
+
if (t) {
|
93 |
+
if (t.indexOf("sf_arow_icn") !=-1)
|
94 |
+
{
|
95 |
+
var n = t.replace("sf_arow_icn.png", "email.png");
|
96 |
+
}
|
97 |
+
else
|
98 |
+
{
|
99 |
+
var n = t.replace("subscribe.png", "email.png");
|
100 |
+
}
|
101 |
+
SFSI(".icon_img").attr("src", n);
|
102 |
+
}
|
103 |
+
}
|
104 |
+
else
|
105 |
+
{
|
106 |
+
for (SFSI(".sfsiplus_row_1_2").css("background-position", "-649px 0"), i = 0; 16 > i; i++) {
|
107 |
+
var s = i + 1, e = 74 * i;
|
108 |
+
SFSI(".sfsiplus_row_" + s + "_2").css("background-position", "-649px -" + e + "px");
|
109 |
+
}
|
110 |
+
var t = SFSI(".icon_img").attr("src");
|
111 |
+
if (t) {
|
112 |
+
if (t.indexOf("email") !=-1)
|
113 |
+
{
|
114 |
+
var n = t.replace("email.png", "subscribe.png");
|
115 |
+
}
|
116 |
+
else
|
117 |
+
{
|
118 |
+
var n = t.replace("sf_arow_icn.png", "subscribe.png");
|
119 |
+
}
|
120 |
+
SFSI(".icon_img").attr("src", n);
|
121 |
+
}
|
122 |
+
}
|
123 |
}
|
124 |
SFSI("input[name='sfsi_plus_rss_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_rss_section", "show") :sfsi_plus_section_Display("sfsiplus_rss_section", "hide"),
|
125 |
SFSI("input[name='sfsi_plus_email_display']").prop("checked") ? sfsi_plus_section_Display("sfsiplus_email_section", "show") :sfsi_plus_section_Display("sfsiplus_email_section", "hide"),
|
676 |
g = SFSI("input[name='sfsi_plus_display_on_homepage']:checked").val(),*/
|
677 |
f = SFSI("input[name='sfsi_plus_display_before_blogposts']:checked").val(),
|
678 |
g = SFSI("input[name='sfsi_plus_display_after_blogposts']:checked").val(),
|
679 |
+
rsub = SFSI("input[name='sfsi_plus_rectsub']:checked").val(),
|
680 |
+
rfb = SFSI("input[name='sfsi_plus_rectfb']:checked").val(),
|
681 |
+
rgp = SFSI("input[name='sfsi_plus_rectgp']:checked").val(),
|
682 |
+
rshr = SFSI("input[name='sfsi_plus_rectshr']:checked").val(),
|
683 |
+
rtwr = SFSI("input[name='sfsi_plus_recttwtr']:checked").val(),
|
684 |
_ = [];
|
685 |
/*SFSI("#sfsi_plus_Show_popupOn_PageIDs :selected").each(function(s, i) {
|
686 |
_[s] = SFSI(i).val()
|
705 |
sfsi_plus_display_on_homepage: g*/
|
706 |
sfsi_plus_display_before_blogposts: f,
|
707 |
sfsi_plus_display_after_blogposts: g,
|
708 |
+
sfsi_plus_rectsub: rsub,
|
709 |
+
sfsi_plus_rectfb: rfb,
|
710 |
+
sfsi_plus_rectgp: rgp,
|
711 |
+
sfsi_plus_rectshr: rshr,
|
712 |
+
sfsi_plus_recttwtr: rtwr,
|
713 |
nonce:nonce
|
714 |
};
|
715 |
SFSI.ajax({
|
libs/controllers/sfsi_buttons_controller.php
CHANGED
@@ -83,7 +83,7 @@ function sfsi_plus_options_updater2()
|
|
83 |
$sfsi_plus_linkedin_recommendProductId= isset($_POST["sfsi_plus_linkedin_recommendProductId"]) ? trim($_POST["sfsi_plus_linkedin_recommendProductId"]) : '';
|
84 |
|
85 |
$sfsi_plus_youtubeusernameorid = isset($_POST["sfsi_plus_youtubeusernameorid"]) ? trim($_POST["sfsi_plus_youtubeusernameorid"]) : '';
|
86 |
-
$
|
87 |
$sfsi_plus_ytube_chnlid = isset($_POST["sfsi_plus_ytube_chnlid"]) ? $_POST["sfsi_plus_ytube_chnlid"] : '';
|
88 |
|
89 |
$sfsi_plus_CustomIcon_links = isset($_POST["sfsi_plus_custom_links"]) ? serialize($_POST["sfsi_plus_custom_links"]) : '';
|
@@ -116,6 +116,9 @@ function sfsi_plus_options_updater2()
|
|
116 |
'sfsi_plus_youtube_pageUrl'=>$sfsi_plus_youtube_pageUrl,
|
117 |
'sfsi_plus_youtube_page'=>$sfsi_plus_youtube_page,
|
118 |
'sfsi_plus_youtube_follow'=>$sfsi_plus_youtube_follow,
|
|
|
|
|
|
|
119 |
/* pinterest options */
|
120 |
'sfsi_plus_pinterest_page'=>$sfsi_plus_pinterest_page,
|
121 |
'sfsi_plus_pinterest_pageUrl'=>$sfsi_plus_pinterest_pageUrl,
|
@@ -135,11 +138,8 @@ function sfsi_plus_options_updater2()
|
|
135 |
|
136 |
);
|
137 |
update_option('sfsi_plus_section2_options',serialize($up_option2));
|
138 |
-
|
139 |
-
$option4
|
140 |
-
$option4['sfsi_plus_youtubeusernameorid']=$sfsi_plus_youtubeusernameorid;
|
141 |
-
$option4['sfsi_plus_ytube_chnlid']=$sfsi_plus_ytube_chnlid;
|
142 |
-
update_option('sfsi_plus_section4_options',serialize($option4));
|
143 |
header('Content-Type: application/json');
|
144 |
echo json_encode(array("success")); exit;
|
145 |
}
|
@@ -503,6 +503,13 @@ function sfsi_plus_options_updater8()
|
|
503 |
$sfsi_plus_display_on_homepage = isset($_POST["sfsi_plus_display_on_homepage"]) ? $_POST["sfsi_plus_display_on_homepage"] : 'no';*/
|
504 |
$sfsi_plus_display_before_blogposts = isset($_POST["sfsi_plus_display_before_blogposts"]) ? $_POST["sfsi_plus_display_before_blogposts"] : 'no';
|
505 |
$sfsi_plus_display_after_blogposts = isset($_POST["sfsi_plus_display_after_blogposts"]) ? $_POST["sfsi_plus_display_after_blogposts"] : 'no';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
506 |
//post options
|
507 |
/*if($sfsi_plus_float_on_page == 'yes')
|
508 |
{
|
@@ -529,6 +536,11 @@ function sfsi_plus_options_updater8()
|
|
529 |
'sfsi_plus_display_on_homepage'=>$sfsi_plus_display_on_homepage,*/
|
530 |
'sfsi_plus_display_before_blogposts'=>$sfsi_plus_display_before_blogposts,
|
531 |
'sfsi_plus_display_after_blogposts'=>$sfsi_plus_display_after_blogposts,
|
|
|
|
|
|
|
|
|
|
|
532 |
);
|
533 |
update_option('sfsi_plus_section8_options',serialize($up_option8));
|
534 |
header('Content-Type: application/json');
|
83 |
$sfsi_plus_linkedin_recommendProductId= isset($_POST["sfsi_plus_linkedin_recommendProductId"]) ? trim($_POST["sfsi_plus_linkedin_recommendProductId"]) : '';
|
84 |
|
85 |
$sfsi_plus_youtubeusernameorid = isset($_POST["sfsi_plus_youtubeusernameorid"]) ? trim($_POST["sfsi_plus_youtubeusernameorid"]) : '';
|
86 |
+
$sfsi_plus_ytube_user = ($_POST["sfsi_plus_ytube_user"]) ? $_POST["sfsi_plus_ytube_user"] : '';
|
87 |
$sfsi_plus_ytube_chnlid = isset($_POST["sfsi_plus_ytube_chnlid"]) ? $_POST["sfsi_plus_ytube_chnlid"] : '';
|
88 |
|
89 |
$sfsi_plus_CustomIcon_links = isset($_POST["sfsi_plus_custom_links"]) ? serialize($_POST["sfsi_plus_custom_links"]) : '';
|
116 |
'sfsi_plus_youtube_pageUrl'=>$sfsi_plus_youtube_pageUrl,
|
117 |
'sfsi_plus_youtube_page'=>$sfsi_plus_youtube_page,
|
118 |
'sfsi_plus_youtube_follow'=>$sfsi_plus_youtube_follow,
|
119 |
+
'sfsi_plus_youtubeusernameorid'=>$sfsi_plus_youtubeusernameorid,
|
120 |
+
'sfsi_plus_ytube_chnlid'=>$sfsi_plus_ytube_chnlid,
|
121 |
+
'sfsi_plus_ytube_user'=>$sfsi_plus_ytube_user,
|
122 |
/* pinterest options */
|
123 |
'sfsi_plus_pinterest_page'=>$sfsi_plus_pinterest_page,
|
124 |
'sfsi_plus_pinterest_pageUrl'=>$sfsi_plus_pinterest_pageUrl,
|
138 |
|
139 |
);
|
140 |
update_option('sfsi_plus_section2_options',serialize($up_option2));
|
141 |
+
//$option4=unserialize(get_option('sfsi_plus_section4_options',false));
|
142 |
+
//update_option('sfsi_plus_section4_options',serialize($option4));
|
|
|
|
|
|
|
143 |
header('Content-Type: application/json');
|
144 |
echo json_encode(array("success")); exit;
|
145 |
}
|
503 |
$sfsi_plus_display_on_homepage = isset($_POST["sfsi_plus_display_on_homepage"]) ? $_POST["sfsi_plus_display_on_homepage"] : 'no';*/
|
504 |
$sfsi_plus_display_before_blogposts = isset($_POST["sfsi_plus_display_before_blogposts"]) ? $_POST["sfsi_plus_display_before_blogposts"] : 'no';
|
505 |
$sfsi_plus_display_after_blogposts = isset($_POST["sfsi_plus_display_after_blogposts"]) ? $_POST["sfsi_plus_display_after_blogposts"] : 'no';
|
506 |
+
$sfsi_plus_rectsub = isset($_POST["sfsi_plus_rectsub"]) ? $_POST["sfsi_plus_rectsub"] : 'no';
|
507 |
+
$sfsi_plus_rectfb = isset($_POST["sfsi_plus_rectfb"]) ? $_POST["sfsi_plus_rectfb"] : 'no';
|
508 |
+
$sfsi_plus_rectgp = isset($_POST["sfsi_plus_rectgp"]) ? $_POST["sfsi_plus_rectgp"] : 'no';
|
509 |
+
$sfsi_plus_rectshr = isset($_POST["sfsi_plus_rectshr"]) ? $_POST["sfsi_plus_rectshr"] : 'no';
|
510 |
+
$sfsi_plus_recttwtr = isset($_POST["sfsi_plus_recttwtr"]) ? $_POST["sfsi_plus_recttwtr"] : 'no';
|
511 |
+
|
512 |
+
|
513 |
//post options
|
514 |
/*if($sfsi_plus_float_on_page == 'yes')
|
515 |
{
|
536 |
'sfsi_plus_display_on_homepage'=>$sfsi_plus_display_on_homepage,*/
|
537 |
'sfsi_plus_display_before_blogposts'=>$sfsi_plus_display_before_blogposts,
|
538 |
'sfsi_plus_display_after_blogposts'=>$sfsi_plus_display_after_blogposts,
|
539 |
+
'sfsi_plus_rectsub'=>$sfsi_plus_rectsub,
|
540 |
+
'sfsi_plus_rectfb'=>$sfsi_plus_rectfb,
|
541 |
+
'sfsi_plus_rectgp'=>$sfsi_plus_rectgp,
|
542 |
+
'sfsi_plus_rectshr'=>$sfsi_plus_rectshr,
|
543 |
+
'sfsi_plus_recttwtr'=>$sfsi_plus_recttwtr
|
544 |
);
|
545 |
update_option('sfsi_plus_section8_options',serialize($up_option8));
|
546 |
header('Content-Type: application/json');
|
libs/controllers/sfsi_socialhelper.php
CHANGED
@@ -114,12 +114,15 @@ function sfsi_getPlus1($url)
|
|
114 |
/* get youtube subscribers */
|
115 |
function sfsi_get_youtube($user)
|
116 |
{
|
117 |
-
|
|
|
118 |
if($xmlData)
|
119 |
{
|
120 |
-
|
121 |
$xml = new SimpleXMLElement($xmlData);
|
122 |
-
$subs = $xml->ytstatistics['subscriberCount']
|
|
|
|
|
123 |
$subs=$this->format_num($subs);
|
124 |
}
|
125 |
else
|
@@ -231,6 +234,20 @@ public function sfsi_plus_FBlike($permalink)
|
|
231 |
$fb_like_html .= ' action="like"></fb:like>';
|
232 |
return $fb_like_html;exit;
|
233 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
234 |
/* create on page facebook share option */
|
235 |
public function sfsiFB_Share($permalink)
|
236 |
{
|
@@ -275,17 +292,47 @@ public function sfsi_Googlelike($permalink)
|
|
275 |
|
276 |
return $twitter_html;
|
277 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
278 |
/* create on page youtube subscribe icon */
|
279 |
public function sfsi_YouTubeSub($yuser) {
|
280 |
-
$
|
281 |
-
|
|
|
282 |
{
|
283 |
-
$
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
284 |
$youtube_html = '<div class="g-ytsubscribe" data-channel="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
|
285 |
}
|
286 |
else
|
287 |
{
|
288 |
-
$yuser = $
|
289 |
$youtube_html = '<div class="g-ytsubscribe" data-channelid="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
|
290 |
}
|
291 |
return $youtube_html;
|
@@ -330,7 +377,7 @@ public function sfsi_get_instagramFollowers($user_name)
|
|
330 |
/* get no of subscribers from specificfeeds for current blog */
|
331 |
public function SFSI_getFeedSubscriber($feedid)
|
332 |
{
|
333 |
-
|
334 |
|
335 |
curl_setopt_array($curl, array(
|
336 |
CURLOPT_RETURNTRANSFER => 1,
|
@@ -343,11 +390,18 @@ public function SFSI_getFeedSubscriber($feedid)
|
|
343 |
));
|
344 |
/* Send the request & save response to $resp */
|
345 |
$resp = curl_exec($curl);
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
351 |
}
|
352 |
/* check response from a url */
|
353 |
private function sfsi_get_http_response_code($url) {
|
114 |
/* get youtube subscribers */
|
115 |
function sfsi_get_youtube($user)
|
116 |
{
|
117 |
+
/*$xmlData = @file_get_contents('http://gdata.youtube.com/feeds/api/users/' . $user);//deprecated*/
|
118 |
+
$xmlData = @file_get_contents('https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername='.$user.'&key=AIzaSyA_SqAZGCpZ22vHzOUr3St5xf5XMy78oTY');
|
119 |
if($xmlData)
|
120 |
{
|
121 |
+
/*$xmlData = str_replace('yt:', 'yt', $xmlData);
|
122 |
$xml = new SimpleXMLElement($xmlData);
|
123 |
+
$subs = $xml->ytstatistics['subscriberCount'];*/
|
124 |
+
$xmlData = json_decode($xmlData);
|
125 |
+
$subs = $xmlData->items[0]->statistics->subscriberCount;
|
126 |
$subs=$this->format_num($subs);
|
127 |
}
|
128 |
else
|
234 |
$fb_like_html .= ' action="like"></fb:like>';
|
235 |
return $fb_like_html;exit;
|
236 |
}
|
237 |
+
/*subscribe like*/
|
238 |
+
function sfsi_plus_Subscribelike($permalink, $show_count)
|
239 |
+
{
|
240 |
+
|
241 |
+
}
|
242 |
+
/*subscribe like*/
|
243 |
+
/*twitter like*/
|
244 |
+
function sfsi_plus_twitterlike($permalink, $show_count)
|
245 |
+
{
|
246 |
+
$twitter_text = '';
|
247 |
+
return sfsi_twitterShare($permalink,$twitter_text);
|
248 |
+
}
|
249 |
+
/*twitter like*/
|
250 |
+
|
251 |
/* create on page facebook share option */
|
252 |
public function sfsiFB_Share($permalink)
|
253 |
{
|
292 |
|
293 |
return $twitter_html;
|
294 |
}
|
295 |
+
|
296 |
+
/* create on page twitter share icon with count */
|
297 |
+
public function sfsi_twitterSharewithcount($permalink,$tweettext, $show_count) {
|
298 |
+
if($show_count)
|
299 |
+
{
|
300 |
+
$twitter_html = '<a href="http://twitter.com/share" class="sr-twitter-button twitter-share-button" lang="en" data-counturl="'.$permalink.'" data-url="'.$permalink.'" data-text="'.$tweettext.'" ></a>';
|
301 |
+
}
|
302 |
+
else
|
303 |
+
{
|
304 |
+
$twitter_html = '<a href="http://twitter.com/share" data-count="none" class="sr-twitter-button twitter-share-button" lang="en" data-url="'.$permalink.'" data-text="'.$tweettext.'" ></a>';
|
305 |
+
}
|
306 |
+
return $twitter_html;
|
307 |
+
}
|
308 |
+
|
309 |
/* create on page youtube subscribe icon */
|
310 |
public function sfsi_YouTubeSub($yuser) {
|
311 |
+
$option2= unserialize(get_option('sfsi_plus_section2_options',false));
|
312 |
+
$option4= unserialize(get_option('sfsi_plus_section4_options',false));
|
313 |
+
if(isset($option2['sfsi_plus_youtubeusernameorid']))
|
314 |
{
|
315 |
+
$sfsi_plus_youtubeusernameorid = $option2['sfsi_plus_youtubeusernameorid'];
|
316 |
+
$sfsi_plus_ytube_chnlid = $option2['sfsi_plus_ytube_chnlid'];
|
317 |
+
}
|
318 |
+
elseif(isset($option4['sfsi_plus_youtubeusernameorid']))
|
319 |
+
{
|
320 |
+
$sfsi_plus_youtubeusernameorid = $option4['sfsi_plus_youtubeusernameorid'];
|
321 |
+
$sfsi_plus_ytube_chnlid = $option4['sfsi_plus_ytube_chnlid'];
|
322 |
+
}
|
323 |
+
else
|
324 |
+
{
|
325 |
+
$sfsi_plus_youtubeusernameorid = '';
|
326 |
+
$sfsi_plus_ytube_chnlid = '';
|
327 |
+
}
|
328 |
+
if($sfsi_plus_youtubeusernameorid == 'name')
|
329 |
+
{
|
330 |
+
$yuser = $option2['sfsi_plus_ytube_user'];
|
331 |
$youtube_html = '<div class="g-ytsubscribe" data-channel="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
|
332 |
}
|
333 |
else
|
334 |
{
|
335 |
+
$yuser = $sfsi_plus_ytube_chnlid;
|
336 |
$youtube_html = '<div class="g-ytsubscribe" data-channelid="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
|
337 |
}
|
338 |
return $youtube_html;
|
377 |
/* get no of subscribers from specificfeeds for current blog */
|
378 |
public function SFSI_getFeedSubscriber($feedid)
|
379 |
{
|
380 |
+
$curl = curl_init();
|
381 |
|
382 |
curl_setopt_array($curl, array(
|
383 |
CURLOPT_RETURNTRANSFER => 1,
|
390 |
));
|
391 |
/* Send the request & save response to $resp */
|
392 |
$resp = curl_exec($curl);
|
393 |
+
|
394 |
+
if(!empty($resp))
|
395 |
+
{
|
396 |
+
$resp=json_decode($resp);
|
397 |
+
curl_close($curl);
|
398 |
+
$feeddata=stripslashes_deep($resp->subscriber_count);
|
399 |
+
}
|
400 |
+
else
|
401 |
+
{
|
402 |
+
$feeddata = 0;
|
403 |
+
}
|
404 |
+
return $this->format_num($feeddata);exit;
|
405 |
}
|
406 |
/* check response from a url */
|
407 |
private function sfsi_get_http_response_code($url) {
|
libs/controllers/sfsiocns_OnPosts.php
CHANGED
@@ -12,6 +12,29 @@ function sfsi_plus_social_buttons_below($content) {
|
|
12 |
$sfsi_plus_show_item_onposts = $sfsi_section8['sfsi_plus_show_item_onposts'];
|
13 |
//new options that are added on the third questions
|
14 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
/* check if option activated in admin or not */
|
16 |
//if($sfsi_section6['sfsi_plus_show_Onposts']=="yes")
|
17 |
//removing following condition for now
|
@@ -35,12 +58,36 @@ function sfsi_plus_social_buttons_below($content) {
|
|
35 |
$txt=(isset($sfsi_section8['sfsi_plus_textBefor_icons']))? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:" ;
|
36 |
//$float= $sfsi_section6['sfsi_plus_icons_alignment'];
|
37 |
$float= $sfsi_section8['sfsi_plus_icons_alignment'];
|
38 |
-
$
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
$icons.="</div>";
|
45 |
if(!is_feed() && !is_home() && !is_page()) {
|
46 |
$content = $content .$icons;
|
@@ -49,6 +96,54 @@ function sfsi_plus_social_buttons_below($content) {
|
|
49 |
return $content;
|
50 |
}
|
51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
52 |
/* create google+ button */
|
53 |
function sfsi_plus_googlePlus($permalink,$show_count) {
|
54 |
$google_html = '<div class="g-plusone" data-href="' . $permalink . '" ';
|
@@ -77,27 +172,34 @@ function sfsi_plus_FBlike($permalink,$show_count) {
|
|
77 |
return $fb_like_html;
|
78 |
}
|
79 |
/* create add this button */
|
80 |
-
function sfsi_plus_Addthis($show_count)
|
81 |
{
|
82 |
-
|
83 |
-
$atiocn=' <script type="text/javascript">
|
84 |
var addthis_config = {
|
85 |
-
pubid: "YOUR-PROFILE-ID"
|
|
|
|
|
|
|
|
|
86 |
}
|
87 |
</script>';
|
88 |
|
89 |
if($show_count==1)
|
90 |
{
|
91 |
-
|
92 |
<a class="addthis_counter addthis_pill_style share_showhide"></a>
|
|
|
|
|
|
|
93 |
</div>';
|
94 |
-
|
95 |
|
96 |
}
|
97 |
else
|
98 |
{
|
99 |
-
|
100 |
-
|
|
|
101 |
}
|
102 |
}
|
103 |
|
@@ -127,7 +229,8 @@ if($show_count==1)
|
|
127 |
function sfsi_plus_footer_script() {
|
128 |
$sfsi_section1= unserialize(get_option('sfsi_plus_section1_options',false));
|
129 |
$sfsi_section6= unserialize(get_option('sfsi_plus_section6_options',false));
|
130 |
-
|
|
|
131 |
{
|
132 |
?>
|
133 |
<!--facebook like and share js -->
|
@@ -139,7 +242,7 @@ if($show_count==1)
|
|
139 |
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1425108201100352&version=v2.0";
|
140 |
fjs.parentNode.insertBefore(js, fjs);
|
141 |
}(document, 'script', 'facebook-jssdk'));</script>
|
142 |
-
<?php } if($sfsi_section1['sfsi_plus_google_display']=="yes" || $sfsi_section1['sfsi_plus_youtube_display']=="yes") { ?>
|
143 |
<!--google share and like and e js -->
|
144 |
<script type="text/javascript">
|
145 |
window.___gcfg = {
|
@@ -166,7 +269,7 @@ if($show_count==1)
|
|
166 |
<!-- linkedIn share and follow js -->
|
167 |
<script src="//platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
|
168 |
|
169 |
-
<?php } if($sfsi_section1['sfsi_plus_share_display']=="yes" || $sfsi_section6['sfsi_plus_show_Onposts']=="yes") { ?>
|
170 |
<!-- Addthis js -->
|
171 |
<script type="text/javascript" src="https://s7.addthis.com/js/300/addthis_widget.js"></script>
|
172 |
<script type="text/javascript">
|
@@ -177,7 +280,7 @@ if($show_count==1)
|
|
177 |
<!--pinit js -->
|
178 |
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
|
179 |
|
180 |
-
<?php } if($sfsi_section1['sfsi_plus_twitter_display']=="yes") {?>
|
181 |
<!-- twitter JS End -->
|
182 |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
183 |
<?php }
|
12 |
$sfsi_plus_show_item_onposts = $sfsi_section8['sfsi_plus_show_item_onposts'];
|
13 |
//new options that are added on the third questions
|
14 |
|
15 |
+
//checking for standard icons
|
16 |
+
if(!isset($sfsi_section8['sfsi_plus_rectsub']))
|
17 |
+
{
|
18 |
+
$sfsi_section8['sfsi_plus_rectsub'] = 'no';
|
19 |
+
}
|
20 |
+
if(!isset($sfsi_section8['sfsi_plus_rectfb']))
|
21 |
+
{
|
22 |
+
$sfsi_section8['sfsi_plus_rectfb'] = 'yes';
|
23 |
+
}
|
24 |
+
if(!isset($sfsi_section8['sfsi_plus_rectgp']))
|
25 |
+
{
|
26 |
+
$sfsi_section8['sfsi_plus_rectgp'] = 'yes';
|
27 |
+
}
|
28 |
+
if(!isset($sfsi_section8['sfsi_plus_rectshr']))
|
29 |
+
{
|
30 |
+
$sfsi_section8['sfsi_plus_rectshr'] = 'yes';
|
31 |
+
}
|
32 |
+
if(!isset($sfsi_section8['sfsi_plus_recttwtr']))
|
33 |
+
{
|
34 |
+
$sfsi_section8['sfsi_plus_recttwtr'] = 'no';
|
35 |
+
}
|
36 |
+
//checking for standard icons
|
37 |
+
|
38 |
/* check if option activated in admin or not */
|
39 |
//if($sfsi_section6['sfsi_plus_show_Onposts']=="yes")
|
40 |
//removing following condition for now
|
58 |
$txt=(isset($sfsi_section8['sfsi_plus_textBefor_icons']))? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:" ;
|
59 |
//$float= $sfsi_section6['sfsi_plus_icons_alignment'];
|
60 |
$float= $sfsi_section8['sfsi_plus_icons_alignment'];
|
61 |
+
if($sfsi_section8['sfsi_plus_rectsub'] == 'yes' || $sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectgp'] == 'yes' || $sfsi_section8['sfsi_plus_rectshr'] == 'yes' || $sfsi_section8['sfsi_plus_recttwtr'] == 'yes')
|
62 |
+
{
|
63 |
+
$icons="<div class='sfsi_Sicons ".$float."' style='float:".$float."'><div style='float:left;margin:0px 8px 0px 0px; line-height: 24px'><span>".$txt."</span></div>";
|
64 |
+
}
|
65 |
+
if($sfsi_section8['sfsi_plus_rectsub'] == 'yes')
|
66 |
+
{
|
67 |
+
if($show_count){$sfsiLikeWithsub = "93px";}else{$sfsiLikeWithsub = "64px";}
|
68 |
+
if(!isset($sfsiLikeWithsub)){$sfsiLikeWithsub = $sfsiLikeWith;}
|
69 |
+
$icons.="<div class='sf_subscrbe' style='float:left;width:".$sfsiLikeWithsub."'>".sfsi_plus_Subscribelike($permalink,$show_count)."</div>";
|
70 |
+
}
|
71 |
+
if($sfsi_section8['sfsi_plus_rectfb'] == 'yes')
|
72 |
+
{
|
73 |
+
if($show_count){}else{$sfsiLikeWithfb = "48px";}
|
74 |
+
if(!isset($sfsiLikeWithfb)){$sfsiLikeWithfb = $sfsiLikeWith;}
|
75 |
+
$icons.="<div class='sf_fb' style='float:left;width:".$sfsiLikeWithfb."'>".sfsi_plus_FBlike($permalink,$show_count)."</div>";
|
76 |
+
}
|
77 |
+
if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
|
78 |
+
{
|
79 |
+
$icons.="<div class='sf_google' style='float:left;max-width:62px;min-width:35px;'>".sfsi_plus_googlePlus($permalink,$show_count)."</div>";
|
80 |
+
}
|
81 |
+
if($sfsi_section8['sfsi_plus_recttwtr'] == 'yes')
|
82 |
+
{
|
83 |
+
if($show_count){$sfsiLikeWithtwtr = "77px";}else{$sfsiLikeWithtwtr = "56px";}
|
84 |
+
if(!isset($sfsiLikeWithtwtr)){$sfsiLikeWithtwtr = $sfsiLikeWith;}
|
85 |
+
$icons.="<div class='sf_twiter' style='float:left;width:".$sfsiLikeWithtwtr."'>".sfsi_plus_twitterlike($permalink,$show_count)."</div>";
|
86 |
+
}
|
87 |
+
if($sfsi_section8['sfsi_plus_rectshr'] == 'yes')
|
88 |
+
{
|
89 |
+
$icons.="<div class='sf_addthis' style='float:left;'>".sfsi_plus_Addthis($show_count, $permalink, $title)."</div>";
|
90 |
+
}
|
91 |
$icons.="</div>";
|
92 |
if(!is_feed() && !is_home() && !is_page()) {
|
93 |
$content = $content .$icons;
|
96 |
return $content;
|
97 |
}
|
98 |
|
99 |
+
/*subscribe like*/
|
100 |
+
function sfsi_plus_Subscribelike($permalink, $show_count)
|
101 |
+
{
|
102 |
+
global $socialObj;
|
103 |
+
$socialObj = new sfsi_plus_SocialHelper();
|
104 |
+
|
105 |
+
$sfsi_plus_section2_options= unserialize(get_option('sfsi_plus_section2_options',false));
|
106 |
+
$sfsi_plus_section4_options = unserialize(get_option('sfsi_plus_section4_options',false));
|
107 |
+
$sfsi_plus_section8_options= unserialize(get_option('sfsi_plus_section8_options',false));
|
108 |
+
$url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'javascript:void(0);';
|
109 |
+
|
110 |
+
if($sfsi_plus_section4_options['sfsi_plus_email_countsFrom']=="manual")
|
111 |
+
{
|
112 |
+
$counts=$socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
|
113 |
+
}
|
114 |
+
else
|
115 |
+
{
|
116 |
+
$counts= $socialObj->SFSI_getFeedSubscriber(get_option('sfsi_plus_feed_id',false));
|
117 |
+
}
|
118 |
+
|
119 |
+
if($sfsi_plus_section8_options['sfsi_plus_icons_DisplayCounts']=="yes")
|
120 |
+
{
|
121 |
+
$icon = '<a href="'.$url.'" target="_blank"><img src="'.SFSI_PLUS_PLUGURL.'images/follow_subscribe.png" /></a><span class="bot_no">'.$counts.'</span>';
|
122 |
+
}
|
123 |
+
else
|
124 |
+
{
|
125 |
+
$icon = '<a href="'.$url.'" target="_blank"><img src="'.SFSI_PLUS_PLUGURL.'images/follow_subscribe.png" /></a>';
|
126 |
+
}
|
127 |
+
return $icon;
|
128 |
+
}
|
129 |
+
/*subscribe like*/
|
130 |
+
/*twitter like*/
|
131 |
+
function sfsi_plus_twitterlike($permalink, $show_count)
|
132 |
+
{
|
133 |
+
global $socialObj;
|
134 |
+
$socialObj = new sfsi_plus_SocialHelper();
|
135 |
+
$twitter_text = '';
|
136 |
+
if(!empty($permalink))
|
137 |
+
{
|
138 |
+
$postid = url_to_postid( $permalink );
|
139 |
+
}
|
140 |
+
if(!empty($postid))
|
141 |
+
{
|
142 |
+
$twitter_text = get_the_title($postid);
|
143 |
+
}
|
144 |
+
return $socialObj->sfsi_twitterSharewithcount($permalink,$twitter_text, $show_count);
|
145 |
+
}
|
146 |
+
/*twitter like*/
|
147 |
/* create google+ button */
|
148 |
function sfsi_plus_googlePlus($permalink,$show_count) {
|
149 |
$google_html = '<div class="g-plusone" data-href="' . $permalink . '" ';
|
172 |
return $fb_like_html;
|
173 |
}
|
174 |
/* create add this button */
|
175 |
+
function sfsi_plus_Addthis($show_count, $permalink, $post_title)
|
176 |
{
|
177 |
+
/*$atiocn=' <script type="text/javascript">
|
|
|
178 |
var addthis_config = {
|
179 |
+
pubid: "YOUR-PROFILE-ID"*/
|
180 |
+
$atiocn=' <script type="text/javascript">
|
181 |
+
var addthis_config = {
|
182 |
+
url: "'.$permalink.'",
|
183 |
+
title: "'.$post_title.'"
|
184 |
}
|
185 |
</script>';
|
186 |
|
187 |
if($show_count==1)
|
188 |
{
|
189 |
+
/*$atiocn.=' <div class="addthis_toolbox">
|
190 |
<a class="addthis_counter addthis_pill_style share_showhide"></a>
|
191 |
+
</div>';*/
|
192 |
+
$atiocn.=' <div class="addthis_toolbox" addthis:url="'.$permalink.'" addthis:title="'.$post_title.'">
|
193 |
+
<a class="addthis_counter addthis_pill_style share_showhide"></a>
|
194 |
</div>';
|
195 |
+
return $atiocn;
|
196 |
|
197 |
}
|
198 |
else
|
199 |
{
|
200 |
+
/*$atiocn.='<div class="addthis_toolbox addthis_default_style addthis_20x20_style"><a class="addthis_button_compact " href="#"> <img src="'.SFSI_PLUS_PLUGURL.'images/sharebtn.png" border="0" alt="Share" /></a></div>';*/
|
201 |
+
$atiocn.='<div class="addthis_toolbox addthis_default_style addthis_20x20_style" addthis:url="'.$permalink.'" addthis:title="'.$post_title.'"><a class="addthis_button_compact " href="#"> <img src="'.SFSI_PLUS_PLUGURL.'images/sharebtn.png" border="0" alt="Share" /></a></div>';
|
202 |
+
return $atiocn;
|
203 |
}
|
204 |
}
|
205 |
|
229 |
function sfsi_plus_footer_script() {
|
230 |
$sfsi_section1= unserialize(get_option('sfsi_plus_section1_options',false));
|
231 |
$sfsi_section6= unserialize(get_option('sfsi_plus_section6_options',false));
|
232 |
+
$sfsi_section8= unserialize(get_option('sfsi_plus_section8_options',false));
|
233 |
+
if($sfsi_section1['sfsi_plus_facebook_display']=="yes" || $sfsi_section8['sfsi_plus_rectfb'] == "yes")
|
234 |
{
|
235 |
?>
|
236 |
<!--facebook like and share js -->
|
242 |
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1425108201100352&version=v2.0";
|
243 |
fjs.parentNode.insertBefore(js, fjs);
|
244 |
}(document, 'script', 'facebook-jssdk'));</script>
|
245 |
+
<?php } if($sfsi_section1['sfsi_plus_google_display']=="yes" || $sfsi_section1['sfsi_plus_youtube_display']=="yes" || $sfsi_section8['sfsi_plus_rectgp'] == "yes") { ?>
|
246 |
<!--google share and like and e js -->
|
247 |
<script type="text/javascript">
|
248 |
window.___gcfg = {
|
269 |
<!-- linkedIn share and follow js -->
|
270 |
<script src="//platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
|
271 |
|
272 |
+
<?php } if($sfsi_section1['sfsi_plus_share_display']=="yes" || $sfsi_section6['sfsi_plus_show_Onposts']=="yes" || $sfsi_section8['sfsi_plus_rectshr'] == "yes") { ?>
|
273 |
<!-- Addthis js -->
|
274 |
<script type="text/javascript" src="https://s7.addthis.com/js/300/addthis_widget.js"></script>
|
275 |
<script type="text/javascript">
|
280 |
<!--pinit js -->
|
281 |
<script type="text/javascript" src="//assets.pinterest.com/js/pinit.js"></script>
|
282 |
|
283 |
+
<?php } if($sfsi_section1['sfsi_plus_twitter_display']=="yes" || $sfsi_section8['sfsi_plus_recttwtr'] == "yes") {?>
|
284 |
<!-- twitter JS End -->
|
285 |
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
|
286 |
<?php }
|
libs/sfsi_install_uninstall.php
CHANGED
@@ -19,7 +19,7 @@ function sfsi_plus_activate_plugin()
|
|
19 |
$sffeeds=SFSI_PLUS_getFeedUrl();
|
20 |
/* Links and icons options */
|
21 |
$options2=array('sfsi_plus_rss_url'=>get_bloginfo('rss2_url'),
|
22 |
-
'sfsi_plus_rss_icons'=>'
|
23 |
'sfsi_plus_email_url'=>$sffeeds->redirect_url,
|
24 |
'sfsi_plus_facebookPage_option'=>'no',
|
25 |
'sfsi_plus_facebookPage_url'=>'',
|
@@ -38,6 +38,9 @@ function sfsi_plus_activate_plugin()
|
|
38 |
'sfsi_plus_youtube_pageUrl'=>'',
|
39 |
'sfsi_plus_youtube_page'=>'no',
|
40 |
'sfsi_plus_youtube_follow'=>'no',
|
|
|
|
|
|
|
41 |
'sfsi_plus_pinterest_page'=>'no',
|
42 |
'sfsi_plus_pinterest_pageUrl'=>'',
|
43 |
'sfsi_plus_pinterest_pingBlog'=>'',
|
@@ -87,10 +90,8 @@ function sfsi_plus_activate_plugin()
|
|
87 |
'sfsi_plus_ln_secret_key'=>'',
|
88 |
'sfsi_plus_ln_oAuth_user_token'=>'',
|
89 |
'sfsi_plus_ln_company'=>'',
|
90 |
-
'
|
91 |
-
|
92 |
-
'sfsi_plus_ytube_chnlid'=>'',
|
93 |
-
'sfsi_plus_youtube_countsDisplay'=>'no',
|
94 |
'sfsi_plus_youtube_countsFrom'=>'manual',
|
95 |
'sfsi_plus_youtube_manualCounts'=>'20',
|
96 |
'sfsi_plus_pinterest_countsDisplay'=>'no',
|
@@ -200,7 +201,12 @@ function sfsi_plus_activate_plugin()
|
|
200 |
'sfsi_plus_display_on_postspage'=>'no',
|
201 |
'sfsi_plus_display_on_homepage'=>'no',
|
202 |
'sfsi_plus_display_before_blogposts'=>'no',
|
203 |
-
'sfsi_plus_display_after_blogposts'=>'no'
|
|
|
|
|
|
|
|
|
|
|
204 |
add_option('sfsi_plus_section8_options', serialize($options8));
|
205 |
|
206 |
update_option('sfsi_plus_feed_id',$sffeeds->feed_id);
|
19 |
$sffeeds=SFSI_PLUS_getFeedUrl();
|
20 |
/* Links and icons options */
|
21 |
$options2=array('sfsi_plus_rss_url'=>get_bloginfo('rss2_url'),
|
22 |
+
'sfsi_plus_rss_icons'=>'subscribe',
|
23 |
'sfsi_plus_email_url'=>$sffeeds->redirect_url,
|
24 |
'sfsi_plus_facebookPage_option'=>'no',
|
25 |
'sfsi_plus_facebookPage_url'=>'',
|
38 |
'sfsi_plus_youtube_pageUrl'=>'',
|
39 |
'sfsi_plus_youtube_page'=>'no',
|
40 |
'sfsi_plus_youtube_follow'=>'no',
|
41 |
+
'sfsi_plus_youtubeusernameorid'=>'name',
|
42 |
+
'sfsi_plus_ytube_chnlid'=>'',
|
43 |
+
'sfsi_plus_ytube_user'=>'',
|
44 |
'sfsi_plus_pinterest_page'=>'no',
|
45 |
'sfsi_plus_pinterest_pageUrl'=>'',
|
46 |
'sfsi_plus_pinterest_pingBlog'=>'',
|
90 |
'sfsi_plus_ln_secret_key'=>'',
|
91 |
'sfsi_plus_ln_oAuth_user_token'=>'',
|
92 |
'sfsi_plus_ln_company'=>'',
|
93 |
+
'sfsi_plus_youtube_user'=>'',
|
94 |
+
'sfsi_plus_youtube_countsDisplay'=>'no',
|
|
|
|
|
95 |
'sfsi_plus_youtube_countsFrom'=>'manual',
|
96 |
'sfsi_plus_youtube_manualCounts'=>'20',
|
97 |
'sfsi_plus_pinterest_countsDisplay'=>'no',
|
201 |
'sfsi_plus_display_on_postspage'=>'no',
|
202 |
'sfsi_plus_display_on_homepage'=>'no',
|
203 |
'sfsi_plus_display_before_blogposts'=>'no',
|
204 |
+
'sfsi_plus_display_after_blogposts'=>'no',
|
205 |
+
'sfsi_plus_rectsub'=>'yes',
|
206 |
+
'sfsi_plus_rectfb'=>'yes',
|
207 |
+
'sfsi_plus_rectgp'=>'yes',
|
208 |
+
'sfsi_plus_rectshr'=>'yes',
|
209 |
+
'sfsi_plus_recttwtr'=>'yes');
|
210 |
add_option('sfsi_plus_section8_options', serialize($options8));
|
211 |
|
212 |
update_option('sfsi_plus_feed_id',$sffeeds->feed_id);
|
libs/sfsi_widget.php
CHANGED
@@ -23,13 +23,14 @@ class Sfsi_Plus_Widget extends WP_Widget
|
|
23 |
$show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
|
24 |
global $is_floter;
|
25 |
echo $before_widget;
|
|
|
|
|
26 |
?>
|
27 |
<div class="sfsi_plus_widget" data-position="widget">
|
28 |
<div id='sfsi_plus_wDiv'></div>
|
29 |
-
<?php
|
30 |
-
|
31 |
-
|
32 |
-
echo sfsi_plus_check_visiblity(0);
|
33 |
?>
|
34 |
<div style="clear: both;"></div>
|
35 |
</div>
|
@@ -380,7 +381,7 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0)
|
|
380 |
|
381 |
case "email" :
|
382 |
$socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
|
383 |
-
|
384 |
$sfsi_plus_section2_options['sfsi_plus_email_url'];
|
385 |
$url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'javascript:void(0);';
|
386 |
$toolClass = "email_tool_bdr";
|
@@ -419,12 +420,36 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0)
|
|
419 |
{
|
420 |
$active_theme = 'default';
|
421 |
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
422 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
423 |
}
|
424 |
}
|
425 |
else
|
426 |
{
|
427 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
}
|
429 |
break;
|
430 |
|
@@ -793,7 +818,7 @@ function sfsi_plus_prepairIcons($icon_name,$is_front=0)
|
|
793 |
}
|
794 |
else if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="subscriber")
|
795 |
{
|
796 |
-
|
797 |
$counts=$socialObj->format_num($followers);
|
798 |
if(empty($counts))
|
799 |
{
|
@@ -1410,12 +1435,36 @@ function sfsi_plus_postsprepairIcons($icon_name,$is_front=0)
|
|
1410 |
{
|
1411 |
$active_theme = 'default';
|
1412 |
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
1413 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1414 |
}
|
1415 |
}
|
1416 |
else
|
1417 |
{
|
1418 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1419 |
}
|
1420 |
break;
|
1421 |
|
23 |
$show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
|
24 |
global $is_floter;
|
25 |
echo $before_widget;
|
26 |
+
/* Display the widget title */
|
27 |
+
if ( $title ) echo $before_title . $title . $after_title;
|
28 |
?>
|
29 |
<div class="sfsi_plus_widget" data-position="widget">
|
30 |
<div id='sfsi_plus_wDiv'></div>
|
31 |
+
<?php
|
32 |
+
/* Link the main icons function */
|
33 |
+
echo sfsi_plus_check_visiblity(0);
|
|
|
34 |
?>
|
35 |
<div style="clear: both;"></div>
|
36 |
</div>
|
381 |
|
382 |
case "email" :
|
383 |
$socialObj = new sfsi_plus_SocialHelper(); /* global object to access 3rd party icon's actions */
|
384 |
+
$hoverdiv = '';
|
385 |
$sfsi_plus_section2_options['sfsi_plus_email_url'];
|
386 |
$url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'javascript:void(0);';
|
387 |
$toolClass = "email_tool_bdr";
|
420 |
{
|
421 |
$active_theme = 'default';
|
422 |
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
423 |
+
//$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
|
424 |
+
if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
|
425 |
+
{
|
426 |
+
$icon = $icons_baseUrl.$active_theme."_sf.png";
|
427 |
+
}
|
428 |
+
elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
|
429 |
+
{
|
430 |
+
$icon = $icons_baseUrl.$active_theme."_email.png";
|
431 |
+
}
|
432 |
+
else
|
433 |
+
{
|
434 |
+
$icon = $icons_baseUrl.$active_theme."_subscribe.png";
|
435 |
+
}
|
436 |
}
|
437 |
}
|
438 |
else
|
439 |
{
|
440 |
+
//$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
|
441 |
+
if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
|
442 |
+
{
|
443 |
+
$icon = $icons_baseUrl.$active_theme."_sf.png";
|
444 |
+
}
|
445 |
+
elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
|
446 |
+
{
|
447 |
+
$icon = $icons_baseUrl.$active_theme."_email.png";
|
448 |
+
}
|
449 |
+
else
|
450 |
+
{
|
451 |
+
$icon = $icons_baseUrl.$active_theme."_subscribe.png";
|
452 |
+
}
|
453 |
}
|
454 |
break;
|
455 |
|
818 |
}
|
819 |
else if($sfsi_plus_section4_options['sfsi_plus_youtube_countsFrom']=="subscriber")
|
820 |
{
|
821 |
+
$followers=$socialObj->sfsi_get_youtube($youtube_user);
|
822 |
$counts=$socialObj->format_num($followers);
|
823 |
if(empty($counts))
|
824 |
{
|
1435 |
{
|
1436 |
$active_theme = 'default';
|
1437 |
$icons_baseUrl = SFSI_PLUS_PLUGURL."images/icons_theme/default/";
|
1438 |
+
//$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
|
1439 |
+
if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
|
1440 |
+
{
|
1441 |
+
$icon = $icons_baseUrl.$active_theme."_sf.png";
|
1442 |
+
}
|
1443 |
+
elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
|
1444 |
+
{
|
1445 |
+
$icon = $icons_baseUrl.$active_theme."_email.png";
|
1446 |
+
}
|
1447 |
+
else
|
1448 |
+
{
|
1449 |
+
$icon = $icons_baseUrl.$active_theme."_subscribe.png";
|
1450 |
+
}
|
1451 |
}
|
1452 |
}
|
1453 |
else
|
1454 |
{
|
1455 |
+
//$icon=($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi") ? $icons_baseUrl.$active_theme."_sf.png" : $icons_baseUrl.$active_theme."_email.png";
|
1456 |
+
if($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="sfsi")
|
1457 |
+
{
|
1458 |
+
$icon = $icons_baseUrl.$active_theme."_sf.png";
|
1459 |
+
}
|
1460 |
+
elseif($sfsi_plus_section2_options['sfsi_plus_rss_icons']=="email")
|
1461 |
+
{
|
1462 |
+
$icon = $icons_baseUrl.$active_theme."_email.png";
|
1463 |
+
}
|
1464 |
+
else
|
1465 |
+
{
|
1466 |
+
$icon = $icons_baseUrl.$active_theme."_subscribe.png";
|
1467 |
+
}
|
1468 |
}
|
1469 |
break;
|
1470 |
|
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,15 @@ Please check out the FAQ on http://ultimatelysocial.com
|
|
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
|
@@ -104,5 +113,5 @@ Please check out the FAQ on http://ultimatelysocial.com
|
|
104 |
|
105 |
== Upgrade Notice ==
|
106 |
|
107 |
-
= 1.
|
108 |
-
|
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.4
|
8 |
License: GPLv2
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
73 |
|
74 |
== Changelog ==
|
75 |
|
76 |
+
= 1.4 =
|
77 |
+
* New follow-icons added
|
78 |
+
* More "rectangle" icons added before/after posts
|
79 |
+
* Widget was rendered incorrectly on some templates, fixed now
|
80 |
+
* Icons didn't always line up (on some themes), fixed now
|
81 |
+
* Youtube API got changed, which made the counts not displayed correctly, this is now adjusted in the plugin
|
82 |
+
* Slight layout adjustments in plugin's admin area
|
83 |
+
|
84 |
+
|
85 |
= 1.3 =
|
86 |
* Links with "@" in the url (e.g. as in Flickr-links) now get recognized as well
|
87 |
* Alignment issues of icons in tooltip fixed
|
113 |
|
114 |
== Upgrade Notice ==
|
115 |
|
116 |
+
= 1.4 =
|
117 |
+
Main change: better "follow"-icons added to increase conversions
|
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 |
|
@@ -51,12 +51,14 @@ function DISPLAY_ULTIMATE_PLUS($args = null, $content = null)
|
|
51 |
$show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
|
52 |
global $is_floter;
|
53 |
$return.= $before_widget;
|
54 |
-
$return .= '<div class="sfsi_plus_widget"><div id="sfsi_plus_wDiv"></div>';
|
55 |
/* Display the widget title */
|
56 |
if ( $title ) $return .= $before_title . $title . $after_title;
|
|
|
|
|
57 |
/* Link the main icons function */
|
58 |
$return .= sfsi_plus_check_visiblity(0);
|
59 |
-
|
|
|
60 |
$return .= $after_widget;
|
61 |
return $return;
|
62 |
}
|
@@ -206,7 +208,7 @@ function sfsi_plus_beforaftereposts( $content )
|
|
206 |
}
|
207 |
if($option8['sfsi_plus_display_before_posts'] == "yes" && $option8['sfsi_plus_show_item_onposts'] == "yes")
|
208 |
{
|
209 |
-
$icons_before .= '<div class="
|
210 |
if($sfsi_plus_display_button_type == 'standard_buttons')
|
211 |
{
|
212 |
$icons_before .= sfsi_plus_social_buttons_below($content = null);
|
@@ -219,11 +221,11 @@ function sfsi_plus_beforaftereposts( $content )
|
|
219 |
$icons_before .= "</div>";
|
220 |
}
|
221 |
$icons_before .= '</div>';
|
222 |
-
|
223 |
}
|
224 |
if($option8['sfsi_plus_display_after_posts'] == "yes" && $option8['sfsi_plus_show_item_onposts'] == "yes")
|
225 |
{
|
226 |
-
|
227 |
$icons_after .= '<div class="sfsiaftrpstwpr" style="'.$style_parent.'">';
|
228 |
if($sfsi_plus_display_button_type == 'standard_buttons')
|
229 |
{
|
@@ -270,6 +272,31 @@ function sfsi_plus_beforeafterblogposts( $content )
|
|
270 |
{
|
271 |
$show_count=0;
|
272 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
273 |
$txt=(isset($sfsi_section8['sfsi_plus_textBefor_icons']))? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:" ;
|
274 |
$float = $sfsi_section8['sfsi_plus_icons_alignment'];
|
275 |
if($float == "center")
|
@@ -287,14 +314,40 @@ function sfsi_plus_beforeafterblogposts( $content )
|
|
287 |
{
|
288 |
//icon selection
|
289 |
$icons_before .= "<div class='sfsibeforpstwpr' style='".$style_parent."'>";
|
290 |
-
$icons_before .= "<div class='sfsi_Sicons' style='".$style."'>";
|
291 |
|
292 |
if($sfsi_plus_display_button_type == 'standard_buttons')
|
293 |
{
|
294 |
-
$
|
295 |
-
|
296 |
-
|
297 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
}
|
299 |
else
|
300 |
{
|
@@ -306,7 +359,7 @@ function sfsi_plus_beforeafterblogposts( $content )
|
|
306 |
//icon selection
|
307 |
if( $id && $post && $post->post_type == 'post' )
|
308 |
{
|
309 |
-
$content = $icons_before
|
310 |
}
|
311 |
else
|
312 |
{
|
@@ -317,15 +370,40 @@ function sfsi_plus_beforeafterblogposts( $content )
|
|
317 |
{
|
318 |
//icon selection
|
319 |
$icons_after .= "<div class='sfsiaftrpstwpr' style='".$style_parent."'>";
|
320 |
-
$icons_after .= "<div class='sfsi_Sicons' style='".$style."'>";
|
321 |
|
322 |
if($sfsi_plus_display_button_type == 'standard_buttons')
|
323 |
{
|
324 |
-
$
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
329 |
}
|
330 |
else
|
331 |
{
|
@@ -335,7 +413,7 @@ function sfsi_plus_beforeafterblogposts( $content )
|
|
335 |
$icons_after .= "</div>";
|
336 |
$icons_after .= "</div>";
|
337 |
//icon selection
|
338 |
-
$content = $content
|
339 |
}
|
340 |
}
|
341 |
return $content;
|
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.4
|
9 |
License: GPLv2
|
10 |
*/
|
11 |
|
51 |
$show_info = isset( $instance['show_info'] ) ? $instance['show_info'] : false;
|
52 |
global $is_floter;
|
53 |
$return.= $before_widget;
|
|
|
54 |
/* Display the widget title */
|
55 |
if ( $title ) $return .= $before_title . $title . $after_title;
|
56 |
+
$return .= '<div class="sfsi_plus_widget">';
|
57 |
+
$return .= '<div id="sfsi_plus_wDiv"></div>';
|
58 |
/* Link the main icons function */
|
59 |
$return .= sfsi_plus_check_visiblity(0);
|
60 |
+
$return .= '<div style="clear: both;"></div>';
|
61 |
+
$return .= '</div>';
|
62 |
$return .= $after_widget;
|
63 |
return $return;
|
64 |
}
|
208 |
}
|
209 |
if($option8['sfsi_plus_display_before_posts'] == "yes" && $option8['sfsi_plus_show_item_onposts'] == "yes")
|
210 |
{
|
211 |
+
$icons_before .= '<div class="sfsibeforpstwpr" style="'.$style_parent.'">';
|
212 |
if($sfsi_plus_display_button_type == 'standard_buttons')
|
213 |
{
|
214 |
$icons_before .= sfsi_plus_social_buttons_below($content = null);
|
221 |
$icons_before .= "</div>";
|
222 |
}
|
223 |
$icons_before .= '</div>';
|
224 |
+
/*$icons_before .= '</br>';*/
|
225 |
}
|
226 |
if($option8['sfsi_plus_display_after_posts'] == "yes" && $option8['sfsi_plus_show_item_onposts'] == "yes")
|
227 |
{
|
228 |
+
/*$icons_after .= '</br>';*/
|
229 |
$icons_after .= '<div class="sfsiaftrpstwpr" style="'.$style_parent.'">';
|
230 |
if($sfsi_plus_display_button_type == 'standard_buttons')
|
231 |
{
|
272 |
{
|
273 |
$show_count=0;
|
274 |
}
|
275 |
+
|
276 |
+
//checking for standard icons
|
277 |
+
if(!isset($sfsi_section8['sfsi_plus_rectsub']))
|
278 |
+
{
|
279 |
+
$sfsi_section8['sfsi_plus_rectsub'] = 'no';
|
280 |
+
}
|
281 |
+
if(!isset($sfsi_section8['sfsi_plus_rectfb']))
|
282 |
+
{
|
283 |
+
$sfsi_section8['sfsi_plus_rectfb'] = 'yes';
|
284 |
+
}
|
285 |
+
if(!isset($sfsi_section8['sfsi_plus_rectgp']))
|
286 |
+
{
|
287 |
+
$sfsi_section8['sfsi_plus_rectgp'] = 'yes';
|
288 |
+
}
|
289 |
+
if(!isset($sfsi_section8['sfsi_plus_rectshr']))
|
290 |
+
{
|
291 |
+
$sfsi_section8['sfsi_plus_rectshr'] = 'yes';
|
292 |
+
}
|
293 |
+
if(!isset($sfsi_section8['sfsi_plus_recttwtr']))
|
294 |
+
{
|
295 |
+
$sfsi_section8['sfsi_plus_recttwtr'] = 'no';
|
296 |
+
}
|
297 |
+
//checking for standard icons
|
298 |
+
|
299 |
+
|
300 |
$txt=(isset($sfsi_section8['sfsi_plus_textBefor_icons']))? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:" ;
|
301 |
$float = $sfsi_section8['sfsi_plus_icons_alignment'];
|
302 |
if($float == "center")
|
314 |
{
|
315 |
//icon selection
|
316 |
$icons_before .= "<div class='sfsibeforpstwpr' style='".$style_parent."'>";
|
317 |
+
$icons_before .= "<div class='sfsi_Sicons ".$float."' style='".$style."'>";
|
318 |
|
319 |
if($sfsi_plus_display_button_type == 'standard_buttons')
|
320 |
{
|
321 |
+
if($sfsi_section8['sfsi_plus_rectsub'] == 'yes' || $sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectgp'] == 'yes' || $sfsi_section8['sfsi_plus_rectshr'] == 'yes' || $sfsi_section8['sfsi_plus_recttwtr'] == 'yes')
|
322 |
+
{
|
323 |
+
$icons_before .= "<div style='float:left;margin:0px 8px 0px 0px; line-height:24px'><span>".$txt."</span></div>";
|
324 |
+
}
|
325 |
+
if($sfsi_section8['sfsi_plus_rectsub'] == 'yes')
|
326 |
+
{
|
327 |
+
if($show_count){$sfsiLikeWithsub = "93px";}else{$sfsiLikeWithsub = "64px";}
|
328 |
+
if(!isset($sfsiLikeWithsub)){$sfsiLikeWithsub = $sfsiLikeWith;}
|
329 |
+
$icons_before.="<div class='sf_subscrbe' style='float:left;width:".$sfsiLikeWithsub."'>".sfsi_plus_Subscribelike($permalink,$show_count)."</div>";
|
330 |
+
}
|
331 |
+
if($sfsi_section8['sfsi_plus_rectfb'] == 'yes')
|
332 |
+
{
|
333 |
+
if($show_count){}else{$sfsiLikeWithfb = "48px";}
|
334 |
+
if(!isset($sfsiLikeWithfb)){$sfsiLikeWithfb = $sfsiLikeWith;}
|
335 |
+
$icons_before .= "<div class='sf_fb' style='float:left;width:".$sfsiLikeWithfb."'>".sfsi_plus_FBlike($permalink,$show_count)."</div>";
|
336 |
+
}
|
337 |
+
if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
|
338 |
+
{
|
339 |
+
$icons_before .= "<div class='sf_google' style='float:left;max-width:62px;min-width:35px;'>".sfsi_plus_googlePlus($permalink,$show_count)."</div>";
|
340 |
+
}
|
341 |
+
if($sfsi_section8['sfsi_plus_recttwtr'] == 'yes')
|
342 |
+
{
|
343 |
+
if($show_count){$sfsiLikeWithtwtr = "77px";}else{$sfsiLikeWithtwtr = "56px";}
|
344 |
+
if(!isset($sfsiLikeWithtwtr)){$sfsiLikeWithtwtr = $sfsiLikeWith;}
|
345 |
+
$icons_before.="<div class='sf_twiter' style='float:left;width:".$sfsiLikeWithtwtr."'>".sfsi_plus_twitterlike($permalink,$show_count)."</div>";
|
346 |
+
}
|
347 |
+
if($sfsi_section8['sfsi_plus_rectshr'] == 'yes')
|
348 |
+
{
|
349 |
+
$icons_before .= "<div class='sf_addthis' style='float:left;'>".sfsi_plus_Addthis_blogpost($show_count, $permalink, $post_title)."</div>";
|
350 |
+
}
|
351 |
}
|
352 |
else
|
353 |
{
|
359 |
//icon selection
|
360 |
if( $id && $post && $post->post_type == 'post' )
|
361 |
{
|
362 |
+
$content = $icons_before.$content;
|
363 |
}
|
364 |
else
|
365 |
{
|
370 |
{
|
371 |
//icon selection
|
372 |
$icons_after .= "<div class='sfsiaftrpstwpr' style='".$style_parent."'>";
|
373 |
+
$icons_after .= "<div class='sfsi_Sicons ".$float."' style='".$style."'>";
|
374 |
|
375 |
if($sfsi_plus_display_button_type == 'standard_buttons')
|
376 |
{
|
377 |
+
if($sfsi_section8['sfsi_plus_rectsub'] == 'yes' || $sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_rectgp'] == 'yes' || $sfsi_section8['sfsi_plus_rectshr'] == 'yes' || $sfsi_section8['sfsi_plus_recttwtr'] == 'yes')
|
378 |
+
{
|
379 |
+
$icons_after .= "<div style='float:left;margin:0px 8px 0px 0px; line-height:24px'><span>".$txt."</span></div>";
|
380 |
+
}
|
381 |
+
if($sfsi_section8['sfsi_plus_rectsub'] == 'yes')
|
382 |
+
{
|
383 |
+
if($show_count){$sfsiLikeWithsub = "93px";}else{$sfsiLikeWithsub = "64px";}
|
384 |
+
if(!isset($sfsiLikeWithsub)){$sfsiLikeWithsub = $sfsiLikeWith;}
|
385 |
+
$icons_after.="<div class='sf_subscrbe' style='float:left;width:".$sfsiLikeWithsub."'>".sfsi_plus_Subscribelike($permalink,$show_count)."</div>";
|
386 |
+
}
|
387 |
+
if($sfsi_section8['sfsi_plus_rectfb'] == 'yes')
|
388 |
+
{
|
389 |
+
if($show_count){}else{$sfsiLikeWithfb = "48px";}
|
390 |
+
if(!isset($sfsiLikeWithfb)){$sfsiLikeWithfb = $sfsiLikeWith;}
|
391 |
+
$icons_after .= "<div class='sf_fb' style='float:left;width:".$sfsiLikeWithfb."'>".sfsi_plus_FBlike($permalink,$show_count)."</div>";
|
392 |
+
}
|
393 |
+
if($sfsi_section8['sfsi_plus_rectgp'] == 'yes')
|
394 |
+
{
|
395 |
+
$icons_after .= "<div class='sf_google' style='float:left;max-width:62px;min-width:35px;'>".sfsi_plus_googlePlus($permalink,$show_count)."</div>";
|
396 |
+
}
|
397 |
+
if($sfsi_section8['sfsi_plus_recttwtr'] == 'yes')
|
398 |
+
{
|
399 |
+
if($show_count){$sfsiLikeWithtwtr = "77px";}else{$sfsiLikeWithtwtr = "56px";}
|
400 |
+
if(!isset($sfsiLikeWithtwtr)){$sfsiLikeWithtwtr = $sfsiLikeWith;}
|
401 |
+
$icons_after.="<div class='sf_twiter' style='float:left;width:".$sfsiLikeWithtwtr."'>".sfsi_plus_twitterlike($permalink,$show_count)."</div>";
|
402 |
+
}
|
403 |
+
if($sfsi_section8['sfsi_plus_rectshr'] == 'yes')
|
404 |
+
{
|
405 |
+
$icons_after .= "<div class='sf_addthis' style='float:left;'>".sfsi_plus_Addthis_blogpost($show_count, $permalink, $post_title)."</div>";
|
406 |
+
}
|
407 |
}
|
408 |
else
|
409 |
{
|
413 |
$icons_after .= "</div>";
|
414 |
$icons_after .= "</div>";
|
415 |
//icon selection
|
416 |
+
$content = $content.$icons_after;
|
417 |
}
|
418 |
}
|
419 |
return $content;
|
views/sfsi_option_view2.php
CHANGED
@@ -23,10 +23,23 @@
|
|
23 |
<h2 class="sfsicls_email">Email</h2>
|
24 |
<div class="inr_cont">
|
25 |
<p>When people click on this icon, they will see <a href="http://www.specificfeeds.com/widget/emailsubscribe/<?php echo base64_encode($feedId); ?>/<?php echo base64_encode(8); ?>" target="_new">your subscription screen</a> where they can select which messages they want to receive from your RSS feed (by email). The service is 100% FREE, fully automatic and also makes sense if you already offer an email newsletter <a href="http://specificfeeds.com/rss" target="_new">(learn more)</a>. </p>
|
26 |
-
<p>
|
27 |
<ul class="tab_2_email_sec">
|
28 |
-
<li
|
29 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
</ul>
|
31 |
</div>
|
32 |
</div>
|
@@ -82,13 +95,13 @@
|
|
82 |
<p class="radio_section fb_url"><input name="sfsi_plus_youtube_follow" <?php echo ($option2['sfsi_plus_youtube_follow']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /><label>Subscribe to me on Youtube <span>(allows people to subscribe to you directly, without leaving your blog)</span></label></p>
|
83 |
<!--Adding Code for Channel Id and Channel Name-->
|
84 |
<?php
|
85 |
-
if(!isset($
|
86 |
{
|
87 |
$sfsi_plus_youtubeusernameorid = '';
|
88 |
}
|
89 |
else
|
90 |
{
|
91 |
-
$sfsi_plus_youtubeusernameorid = $
|
92 |
}
|
93 |
?>
|
94 |
<div class="cstmutbewpr">
|
@@ -100,7 +113,7 @@
|
|
100 |
<div class="cstmutbchnlnmewpr" <?php if($sfsi_plus_youtubeusernameorid != 'id'){echo 'style="display: block;"';}?>>
|
101 |
<p class="extra_pp">
|
102 |
<label>UserName:</label>
|
103 |
-
<input name="sfsi_plus_ytube_user" type="url" value="<?php echo (isset($option4['
|
104 |
</p>
|
105 |
<div class="utbe_instruction">
|
106 |
To find your Username go to "My channel" in Youtube menu bar on the left & Select the "About" tab and take your user name from URL there (e.g. https://www.youtube.com/user/<b>Myusername</b>/about).
|
@@ -109,7 +122,7 @@
|
|
109 |
<div class="cstmutbchnlidwpr" <?php if($sfsi_plus_youtubeusernameorid == 'id'){echo 'style="display: block;"';}?>>
|
110 |
<p class="extra_pp">
|
111 |
<label>ChannelId:</label>
|
112 |
-
<input name="sfsi_plus_ytube_chnlid" type="url" value="<?php echo (isset($
|
113 |
</p>
|
114 |
<div class="utbe_instruction">
|
115 |
To find your Channel name go to "My Channel" in Youtube menu bar on the left and take your channel name from there.
|
23 |
<h2 class="sfsicls_email">Email</h2>
|
24 |
<div class="inr_cont">
|
25 |
<p>When people click on this icon, they will see <a href="http://www.specificfeeds.com/widget/emailsubscribe/<?php echo base64_encode($feedId); ?>/<?php echo base64_encode(8); ?>" target="_new">your subscription screen</a> where they can select which messages they want to receive from your RSS feed (by email). The service is 100% FREE, fully automatic and also makes sense if you already offer an email newsletter <a href="http://specificfeeds.com/rss" target="_new">(learn more)</a>. </p>
|
26 |
+
<p>Please pick which icon type you want to use:</p>
|
27 |
<ul class="tab_2_email_sec">
|
28 |
+
<li>
|
29 |
+
<div class="sfsiplusicnsdvwrp">
|
30 |
+
<input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='email') ? 'checked="true"' : '' ;?> type="radio" value="email" class="styled" /><span class="email_icn"></span>
|
31 |
+
</div>
|
32 |
+
<label>Email-icon</label></li>
|
33 |
+
<li>
|
34 |
+
<div class="sfsiplusicnsdvwrp">
|
35 |
+
<input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='subscribe') ? 'checked="true"' : '' ;?> type="radio" value="subscribe" class="styled" /><span class="subscribe_icn"></span>
|
36 |
+
</div>
|
37 |
+
<label>Follow icon<span class="sfplsdesc"> (increases sign-ups)</span></label></li>
|
38 |
+
<li>
|
39 |
+
<div class="sfsiplusicnsdvwrp">
|
40 |
+
<input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='sfsi') ? 'checked="true"' : '' ;?> type="radio" value="sfsi" class="styled" /><span class="sf_arow"></span>
|
41 |
+
</div>
|
42 |
+
<label>SpecificFeeds icon<span class="sfplsdesc"> (provider of the service)</span></label></li>
|
43 |
</ul>
|
44 |
</div>
|
45 |
</div>
|
95 |
<p class="radio_section fb_url"><input name="sfsi_plus_youtube_follow" <?php echo ($option2['sfsi_plus_youtube_follow']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /><label>Subscribe to me on Youtube <span>(allows people to subscribe to you directly, without leaving your blog)</span></label></p>
|
96 |
<!--Adding Code for Channel Id and Channel Name-->
|
97 |
<?php
|
98 |
+
if(!isset($option2['sfsi_plus_youtubeusernameorid']))
|
99 |
{
|
100 |
$sfsi_plus_youtubeusernameorid = '';
|
101 |
}
|
102 |
else
|
103 |
{
|
104 |
+
$sfsi_plus_youtubeusernameorid = $option2['sfsi_plus_youtubeusernameorid'];
|
105 |
}
|
106 |
?>
|
107 |
<div class="cstmutbewpr">
|
113 |
<div class="cstmutbchnlnmewpr" <?php if($sfsi_plus_youtubeusernameorid != 'id'){echo 'style="display: block;"';}?>>
|
114 |
<p class="extra_pp">
|
115 |
<label>UserName:</label>
|
116 |
+
<input name="sfsi_plus_ytube_user" type="url" value="<?php echo (isset($option4['sfsi_plus_ytube_user']) && $option2['sfsi_plus_ytube_user']!='') ? $option2['sfsi_plus_ytube_user'] : '' ;?>" placeholder="Youtube username" class="add" />
|
117 |
</p>
|
118 |
<div class="utbe_instruction">
|
119 |
To find your Username go to "My channel" in Youtube menu bar on the left & Select the "About" tab and take your user name from URL there (e.g. https://www.youtube.com/user/<b>Myusername</b>/about).
|
122 |
<div class="cstmutbchnlidwpr" <?php if($sfsi_plus_youtubeusernameorid == 'id'){echo 'style="display: block;"';}?>>
|
123 |
<p class="extra_pp">
|
124 |
<label>ChannelId:</label>
|
125 |
+
<input name="sfsi_plus_ytube_chnlid" type="url" value="<?php echo (isset($option2['sfsi_plus_ytube_chnlid']) && $option2['sfsi_plus_ytube_chnlid']!='') ? $option2['sfsi_plus_ytube_chnlid'] : '' ;?>" placeholder="youtube_channel_id" class="add" />
|
126 |
</p>
|
127 |
<div class="utbe_instruction">
|
128 |
To find your Channel name go to "My Channel" in Youtube menu bar on the left and take your channel name from there.
|
views/sfsi_option_view4.php
CHANGED
@@ -12,7 +12,15 @@
|
|
12 |
if($option2['sfsi_plus_rss_icons']=="sfsi")
|
13 |
{
|
14 |
$email_image="sf_arow_icn.png";
|
15 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
$hide="display:none;";
|
17 |
?>
|
18 |
<!-- Section 4 "Do you want to display "counts" next to your icons?" main div Start -->
|
@@ -87,7 +95,14 @@
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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>
|
12 |
if($option2['sfsi_plus_rss_icons']=="sfsi")
|
13 |
{
|
14 |
$email_image="sf_arow_icn.png";
|
15 |
+
}
|
16 |
+
elseif($option2['sfsi_plus_rss_icons']=="email")
|
17 |
+
{
|
18 |
+
$email_image="email.png";
|
19 |
+
}
|
20 |
+
else
|
21 |
+
{
|
22 |
+
$email_image = "subscribe.png";
|
23 |
+
}
|
24 |
$hide="display:none;";
|
25 |
?>
|
26 |
<!-- Section 4 "Do you want to display "counts" next to your icons?" main div Start -->
|
95 |
<div class="listing">
|
96 |
<ul>
|
97 |
<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>
|
98 |
+
<li>
|
99 |
+
<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>
|
100 |
+
<div class="sfsiplus_fbpgiddesc">
|
101 |
+
<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>
|
102 |
+
<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;' : '' ;?>" />
|
103 |
+
</div>
|
104 |
+
<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>
|
105 |
+
</li>
|
106 |
<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>
|
107 |
</ul>
|
108 |
</div>
|
views/sfsi_option_view8.php
CHANGED
@@ -1,6 +1,26 @@
|
|
1 |
<?php
|
2 |
/* unserialize all saved option for Eight options */
|
3 |
$option8= unserialize(get_option('sfsi_plus_section8_options',false));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
?>
|
5 |
<div class="tab8">
|
6 |
<ul class="sfsiplus_icn_listing8">
|
@@ -114,66 +134,80 @@
|
|
114 |
</p>
|
115 |
|
116 |
<ul class="sfsiplus_tab_3_icns sfsiplus_shwthmbfraftr" <?php echo ($option8['sfsi_plus_show_item_onposts'] != "yes")? 'style="display: none";' : '' ;?>>
|
117 |
-
<li onclick="sfsiplus_togglbtmsection('
|
118 |
-
<input name="sfsi_plus_display_button_type" <?php echo ( $option8['sfsi_plus_display_button_type']=='normal_button') ? 'checked="true"' : '' ;?> type="radio" value="normal_button" class="styled" />
|
119 |
-
<label class="labelhdng4">Display the icons I selected above</label>
|
120 |
-
</li>
|
121 |
-
<li onclick="sfsiplus_togglbtmsection('sfsiplus_toggleonlystndrshrng', 'sfsiplus_toggledsplyitemslctn', this);" class="clckbltglcls">
|
122 |
<input name="sfsi_plus_display_button_type" <?php echo ( $option8['sfsi_plus_display_button_type']=='standard_buttons') ? 'checked="true"' : '' ;?> type="radio" value="standard_buttons" class="styled" />
|
123 |
-
<label class="labelhdng4">Display
|
124 |
</li>
|
125 |
-
<li
|
126 |
-
|
127 |
-
<
|
128 |
-
<h4>Size & spacing of your icons</h4>
|
129 |
-
<div class="icons_size"><span>Size:</span><input name="sfsi_plus_post_icons_size" value="<?php echo ($option8['sfsi_plus_post_icons_size']!='') ? $option8['sfsi_plus_post_icons_size'] : '' ;?>" type="text" /><ins>pixels wide & tall</ins> <span class="last">Spacing between icons:</span><input name="sfsi_plus_post_icons_spacing" type="text" value="<?php echo ($option8['sfsi_plus_post_icons_spacing']!='') ? $option8['sfsi_plus_post_icons_spacing'] : '' ;?>" /><ins>Pixels</ins></div>
|
130 |
-
</div>
|
131 |
</li>
|
132 |
-
|
133 |
-
<li class="sfsiplus_toggleonlystndrshrng">
|
134 |
<?php if ($option8['sfsi_plus_display_button_type']=='standard_buttons'): $display = "display:block"; else: $display = "display:none"; endif;?>
|
135 |
<div class="radiodisplaysection" style="<?php echo $display; ?>">
|
136 |
|
137 |
-
<p class="cstmdisplaysharingtxt">
|
138 |
-
|
|
|
139 |
<ul>
|
140 |
<li>
|
141 |
-
|
142 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
143 |
</a>
|
144 |
</li>
|
145 |
<li>
|
146 |
-
|
147 |
-
|
|
|
148 |
</a>
|
149 |
</li>
|
150 |
<li>
|
151 |
-
|
152 |
-
|
|
|
153 |
</a>
|
154 |
</li>
|
155 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
156 |
</div>
|
157 |
|
158 |
-
|
159 |
<ul class="usually" style="color:#5a6570">
|
160 |
<li>1. Facebook is No.1 in liking, so it’s a must have</li>
|
161 |
<li>2. Google+ is also important due to SEO reasons, so important to have as well</li>
|
162 |
<li>3. Share-button covers all other platforms for sharing</li>
|
163 |
-
</ul
|
164 |
<div class="options">
|
165 |
<label>Do you want to display the counts?</label><div class="field"><select name="sfsi_plus_icons_DisplayCounts" id="sfsi_plus_icons_DisplayCounts" class="styled"><option value="yes" <?php echo ($option8['sfsi_plus_icons_DisplayCounts']=='yes') ? 'selected="true"' : '' ;?>>YES</option><option value="no" <?php echo ($option8['sfsi_plus_icons_DisplayCounts']=='no') ? 'selected="true"' : '' ;?>>NO</option></select></div>
|
166 |
</div>
|
167 |
</div>
|
168 |
</li>
|
169 |
-
|
170 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
171 |
|
172 |
<li class="row sfsiplus_PostsSettings_section">
|
173 |
<!--<h4 class="labelhdng4">Options:</h4>-->
|
174 |
|
175 |
<!--Display them options-->
|
176 |
-
<div class="options">
|
177 |
<label class="first chcklbl">Display them: </label>
|
178 |
<label class="seconds chcklbl labelhdng4">On Post Pages </label>
|
179 |
<div class="chckwpr">
|
@@ -197,7 +231,7 @@
|
|
197 |
</div>
|
198 |
|
199 |
|
200 |
-
<div class="options">
|
201 |
<label class="seconds chcklbl labelhdng4">On Homepage</label>
|
202 |
<div class="chckwpr">
|
203 |
<div class="snglchckcntr">
|
1 |
<?php
|
2 |
/* unserialize all saved option for Eight options */
|
3 |
$option8= unserialize(get_option('sfsi_plus_section8_options',false));
|
4 |
+
if(!isset($option8['sfsi_plus_rectsub']))
|
5 |
+
{
|
6 |
+
$option8['sfsi_plus_rectsub'] = 'no';
|
7 |
+
}
|
8 |
+
if(!isset($option8['sfsi_plus_rectfb']))
|
9 |
+
{
|
10 |
+
$option8['sfsi_plus_rectfb'] = 'yes';
|
11 |
+
}
|
12 |
+
if(!isset($option8['sfsi_plus_rectgp']))
|
13 |
+
{
|
14 |
+
$option8['sfsi_plus_rectgp'] = 'yes';
|
15 |
+
}
|
16 |
+
if(!isset($option8['sfsi_plus_rectshr']))
|
17 |
+
{
|
18 |
+
$option8['sfsi_plus_rectshr'] = 'yes';
|
19 |
+
}
|
20 |
+
if(!isset($option8['sfsi_plus_recttwtr']))
|
21 |
+
{
|
22 |
+
$option8['sfsi_plus_recttwtr'] = 'no';
|
23 |
+
}
|
24 |
?>
|
25 |
<div class="tab8">
|
26 |
<ul class="sfsiplus_icn_listing8">
|
134 |
</p>
|
135 |
|
136 |
<ul class="sfsiplus_tab_3_icns sfsiplus_shwthmbfraftr" <?php echo ($option8['sfsi_plus_show_item_onposts'] != "yes")? 'style="display: none";' : '' ;?>>
|
137 |
+
<li onclick="sfsiplus_togglbtmsection('sfsiplus_toggleonlystndrshrng', 'sfsiplus_toggledsplyitemslctn', this);" class="clckbltglcls">
|
|
|
|
|
|
|
|
|
138 |
<input name="sfsi_plus_display_button_type" <?php echo ( $option8['sfsi_plus_display_button_type']=='standard_buttons') ? 'checked="true"' : '' ;?> type="radio" value="standard_buttons" class="styled" />
|
139 |
+
<label class="labelhdng4">Display rectangle icons</label>
|
140 |
</li>
|
141 |
+
<li onclick="sfsiplus_togglbtmsection('sfsiplus_toggledsplyitemslctn', 'sfsiplus_toggleonlystndrshrng', this);" class="clckbltglcls">
|
142 |
+
<input name="sfsi_plus_display_button_type" <?php echo ( $option8['sfsi_plus_display_button_type']=='normal_button') ? 'checked="true"' : '' ;?> type="radio" value="normal_button" class="styled" />
|
143 |
+
<label class="labelhdng4">Display the icons I selected above</label>
|
|
|
|
|
|
|
144 |
</li>
|
145 |
+
<li class="sfsiplus_toggleonlystndrshrng">
|
|
|
146 |
<?php if ($option8['sfsi_plus_display_button_type']=='standard_buttons'): $display = "display:block"; else: $display = "display:none"; endif;?>
|
147 |
<div class="radiodisplaysection" style="<?php echo $display; ?>">
|
148 |
|
149 |
+
<p class="cstmdisplaysharingtxt cstmdisextrpdng">Rectangle icons spell out the <code>«</code><strong>call to action</strong><code>»</code> which increases chances that visitors do it.</p>
|
150 |
+
<p class="cstmdisplaysharingtxt">Select the icons you want to show:</p>
|
151 |
+
<div class="social_icon_like1 cstmdsplyulwpr">
|
152 |
<ul>
|
153 |
<li>
|
154 |
+
<div class="radio_section tb_4_ck"><input name="sfsi_plus_rectsub" <?php echo ($option8['sfsi_plus_rectsub']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_plus_rectsub" type="checkbox" value="yes" class="styled" /></div>
|
155 |
+
<a href="#" title="Subscribe Follow" class="cstmdsplsub">
|
156 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/follow_subscribe.png" alt="Subscribe Follow" /><span style="display: none;">18k</span>
|
157 |
+
</a>
|
158 |
+
</li>
|
159 |
+
<li>
|
160 |
+
<div class="radio_section tb_4_ck"><input name="sfsi_plus_rectfb" <?php echo ($option8['sfsi_plus_rectfb']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_plus_rectfb" type="checkbox" value="yes" class="styled" /></div>
|
161 |
+
<a href="#" title="Facebook Like" class="cstmdspllke">
|
162 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/like.jpg" alt="Facebook Like" /><span style="display: none;">18k</span>
|
163 |
</a>
|
164 |
</li>
|
165 |
<li>
|
166 |
+
<div class="radio_section tb_4_ck"><input name="sfsi_plus_rectgp" <?php echo ($option8['sfsi_plus_rectgp']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_plus_rectgp" type="checkbox" value="yes" class="styled" /></div>
|
167 |
+
<a href="#" title="Google Plus" class="cstmdsplggpls">
|
168 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/google_plus1.jpg" alt="Google Plus" /><span style="display: none;">18k</span>
|
169 |
</a>
|
170 |
</li>
|
171 |
<li>
|
172 |
+
<div class="radio_section tb_4_ck"><input name="sfsi_plus_recttwtr" <?php echo ($option8['sfsi_plus_recttwtr']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_plus_recttwtr" type="checkbox" value="yes" class="styled" /></div>
|
173 |
+
<a href="#" title="twitter" class="cstmdspltwtr">
|
174 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/twiiter.png" alt="Twitter like" /><span style="display: none;">18k</span>
|
175 |
</a>
|
176 |
</li>
|
177 |
+
<li>
|
178 |
+
<div class="radio_section tb_4_ck"><input name="sfsi_plus_rectshr" <?php echo ($option8['sfsi_plus_rectshr']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_plus_rectshr" type="checkbox" value="yes" class="styled" /></div>
|
179 |
+
<a href="#" title="Share" class="cstmdsplshr">
|
180 |
+
<img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/share1.jpg" alt="Share" /><span style="display: none;">18k</span>
|
181 |
+
</a>
|
182 |
+
</li>
|
183 |
+
</ul>
|
184 |
</div>
|
185 |
|
186 |
+
<!--<p class="clear">Those are usually all you need: </p>
|
187 |
<ul class="usually" style="color:#5a6570">
|
188 |
<li>1. Facebook is No.1 in liking, so it’s a must have</li>
|
189 |
<li>2. Google+ is also important due to SEO reasons, so important to have as well</li>
|
190 |
<li>3. Share-button covers all other platforms for sharing</li>
|
191 |
+
</ul>-->
|
192 |
<div class="options">
|
193 |
<label>Do you want to display the counts?</label><div class="field"><select name="sfsi_plus_icons_DisplayCounts" id="sfsi_plus_icons_DisplayCounts" class="styled"><option value="yes" <?php echo ($option8['sfsi_plus_icons_DisplayCounts']=='yes') ? 'selected="true"' : '' ;?>>YES</option><option value="no" <?php echo ($option8['sfsi_plus_icons_DisplayCounts']=='no') ? 'selected="true"' : '' ;?>>NO</option></select></div>
|
194 |
</div>
|
195 |
</div>
|
196 |
</li>
|
197 |
+
|
198 |
+
<li class="sfsiplus_toggledsplyitemslctn">
|
199 |
+
<?php if ($option8['sfsi_plus_display_button_type']=='normal_button'): $display = "display:block"; else: $display = "display:none"; endif;?>
|
200 |
+
<div class="row radiodisplaysection" style="<?php echo $display; ?>">
|
201 |
+
<h4>Size & spacing of your icons</h4>
|
202 |
+
<div class="icons_size"><span>Size:</span><input name="sfsi_plus_post_icons_size" value="<?php echo ($option8['sfsi_plus_post_icons_size']!='') ? $option8['sfsi_plus_post_icons_size'] : '' ;?>" type="text" /><ins>pixels wide & tall</ins> <span class="last">Spacing between icons:</span><input name="sfsi_plus_post_icons_spacing" type="text" value="<?php echo ($option8['sfsi_plus_post_icons_spacing']!='') ? $option8['sfsi_plus_post_icons_spacing'] : '' ;?>" /><ins>Pixels</ins></div>
|
203 |
+
</div>
|
204 |
+
</li>
|
205 |
|
206 |
<li class="row sfsiplus_PostsSettings_section">
|
207 |
<!--<h4 class="labelhdng4">Options:</h4>-->
|
208 |
|
209 |
<!--Display them options-->
|
210 |
+
<div class="options sfsipluspstvwpr">
|
211 |
<label class="first chcklbl">Display them: </label>
|
212 |
<label class="seconds chcklbl labelhdng4">On Post Pages </label>
|
213 |
<div class="chckwpr">
|
231 |
</div>
|
232 |
|
233 |
|
234 |
+
<div class="options sfsipluspstvwpr">
|
235 |
<label class="seconds chcklbl labelhdng4">On Homepage</label>
|
236 |
<div class="chckwpr">
|
237 |
<div class="snglchckcntr">
|