Social Media Share Buttons & Social Sharing Icons - Version 2.6.3

Version Description

  • Fixed responsive icons issue with table of contents
  • Fixed Shuffle option not saving
  • Fixed Facebook original icons share to new tab
  • Updated Youtube icons
  • Fixed Mobile icons not working when shuffle is selected
  • Whatsapp mouse hover text corrected
Download this release

Release Info

Developer socialdude
Plugin Icon 128x128 Social Media Share Buttons & Social Sharing Icons
Version 2.6.3
Comparing to
See all releases

Code changes from version 2.6.2 to 2.6.3

css/sfsi-admin-style.css CHANGED
@@ -4708,7 +4708,7 @@ input[type="number"] {
4708
  .sfsi-top-banner-higligted-text{
4709
  border: 1px solid green;
4710
  border-radius: 10px;
4711
- padding: 14px!important;
4712
  padding-bottom: 5px !important;
4713
  background: white;
4714
  margin: 0!important;
@@ -4940,7 +4940,7 @@ text-decoration:none!important;
4940
  background: #444;
4941
  border-radius: 8px;
4942
  color: #fff;
4943
- content: attr(title);
4944
  margin: -230px auto 0;
4945
  font-size: 12px;
4946
  padding: 13px;
@@ -4999,3 +4999,6 @@ text-decoration:none!important;
4999
  }
5000
  }
5001
 
 
 
 
4708
  .sfsi-top-banner-higligted-text{
4709
  border: 1px solid green;
4710
  border-radius: 10px;
4711
+ padding: 15px!important;
4712
  padding-bottom: 5px !important;
4713
  background: white;
4714
  margin: 0!important;
4940
  background: #444;
4941
  border-radius: 8px;
4942
  color: #fff;
4943
+ content: attr(custom-title);
4944
  margin: -230px auto 0;
4945
  font-size: 12px;
4946
  padding: 13px;
4999
  }
5000
  }
5001
 
5002
+ div#analyst-install-modal * {
5003
+ box-sizing: unset;
5004
+ }
css/sfsi-style.css CHANGED
@@ -1185,8 +1185,12 @@ ul.tab_3_icns li .radio {
1185
  width: 73px;
1186
  margin: 2px 0 0;
1187
  }
1188
- .sfsi_Sicons .fb_iframe_widget[data-layout="button_count"]{
1189
- min-width:125px;
 
 
 
 
1190
  }
1191
 
1192
  .sfsi_pop_up .button a:hover {
@@ -2839,9 +2843,9 @@ ul.cstmskin_iconlist {
2839
  margin-left: 0px;
2840
  margin-top: 0px;
2841
  padding: 1px 0;
2842
- /*position: absolute;*/
2843
  text-align: center;
2844
- top: -8px;
2845
  white-space: pre;
2846
  width: 33px;
2847
  height: 24px;
@@ -2884,7 +2888,7 @@ a.sficn {
2884
  .disabled_checkbox .sfsi_right_info:before {
2885
  position: absolute;
2886
  content: "";
2887
- width: 100%;
2888
  height: 60px;
2889
  display: inline-block;
2890
  z-index: 99;
@@ -2895,12 +2899,7 @@ a.sficn {
2895
 
2896
  .disabled_checkbox .sfsi_right_info.sfsi_Woocommerce_disable:before {
2897
  margin-left: -49px !important;
2898
- width: 100%;
2899
- }
2900
-
2901
- .disabled_checkbox .sfsi_right_info.sfsi_Woocommerce_disable:before {
2902
- margin-left: -49px !important;
2903
- width: 100%;
2904
  }
2905
 
2906
  #sfsi_floater .fb_tool_bdr .sfsi_inside .icon2 {
@@ -3534,16 +3533,16 @@ ul.sfsi_icn_listing8 li .tb_4_ck{
3534
  background: rgba(0, 0, 0, 0) url(images/count_left_arow.png) no-repeat scroll 0 0 / 27px auto;
3535
  font-size: 12px !important;
3536
  left: 67px;
3537
- line-height: 22px !important;
3538
  margin-left: 0;
3539
  padding: 1px 3px;
3540
  text-align: center;
3541
  white-space: pre;
3542
  width: 35px;
3543
- height: 31px;
3544
  z-index: 9;
3545
  display: inline-block;
3546
- vertical-align: text-top;
3547
  }
3548
 
3549
  .sfsi_icons_container>a {
1185
  width: 73px;
1186
  margin: 2px 0 0;
1187
  }
1188
+
1189
+ .sfsi_Sicons .sfsi_socialwpr .fb-like.fb_iframe_widget[data-layout="button_count"] {
1190
+ min-width: 125px;
1191
+ width: 73px !important;
1192
+ margin-left: 17px;
1193
+ margin-right: 24px;
1194
  }
1195
 
1196
  .sfsi_pop_up .button a:hover {
2843
  margin-left: 0px;
2844
  margin-top: 0px;
2845
  padding: 1px 0;
2846
+ position: absolute;
2847
  text-align: center;
2848
+ top: 33px;
2849
  white-space: pre;
2850
  width: 33px;
2851
  height: 24px;
2888
  .disabled_checkbox .sfsi_right_info:before {
2889
  position: absolute;
2890
  content: "";
2891
+ width: 500px;
2892
  height: 60px;
2893
  display: inline-block;
2894
  z-index: 99;
2899
 
2900
  .disabled_checkbox .sfsi_right_info.sfsi_Woocommerce_disable:before {
2901
  margin-left: -49px !important;
2902
+ width: 400px;
 
 
 
 
 
2903
  }
2904
 
2905
  #sfsi_floater .fb_tool_bdr .sfsi_inside .icon2 {
3533
  background: rgba(0, 0, 0, 0) url(images/count_left_arow.png) no-repeat scroll 0 0 / 27px auto;
3534
  font-size: 12px !important;
3535
  left: 67px;
3536
+ line-height: 19px !important;
3537
  margin-left: 0;
3538
  padding: 1px 3px;
3539
  text-align: center;
3540
  white-space: pre;
3541
  width: 35px;
3542
+ height: 29px;
3543
  z-index: 9;
3544
  display: inline-block;
3545
+ vertical-align: bottom;
3546
  }
3547
 
3548
  .sfsi_icons_container>a {
images/icons_theme/black/black_youtube.png CHANGED
Binary file
images/icons_theme/chrome_blue/chrome_blue_youtube.png CHANGED
Binary file
images/icons_theme/chrome_grey/chrome_grey_youtube.png CHANGED
Binary file
images/icons_theme/crystal/crystal_youtube.png CHANGED
Binary file
images/icons_theme/cubes/cubes_youtube.png CHANGED
Binary file
images/icons_theme/cute/cute_youtube.png CHANGED
Binary file
images/icons_theme/default/default_youtube.png CHANGED
Binary file
images/icons_theme/flat/flat_youtube.png CHANGED
Binary file
images/icons_theme/glossy/glossy_youtube.png CHANGED
Binary file
images/icons_theme/orange/orange_youtube.png CHANGED
Binary file
images/icons_theme/shaded_light/shaded_light_youtube.png CHANGED
Binary file
images/icons_theme/silver/silver_youtube.png CHANGED
Binary file
images/icons_theme/splash/splash_youtube.png CHANGED
Binary file
images/icons_theme/thin/thin_youtube.png CHANGED
Binary file
js/custom-admin.js CHANGED
@@ -1598,7 +1598,7 @@ function sfsi_validator(element, valType) {
1598
  else return true;
1599
  break;
1600
  case "checked":
1601
- if (!element.attr('checked') === true) return false;
1602
  else return true;
1603
  break;
1604
  case "activte":
1598
  else return true;
1599
  break;
1600
  case "checked":
1601
+ if (!element.prop('checked') === true) return false;
1602
  else return true;
1603
  break;
1604
  case "activte":
js/custom.js CHANGED
@@ -1,13 +1,14 @@
1
- jQuery(document).ready(function(e) {
2
- jQuery("#sfsi_floater").attr("data-top",jQuery(document).height());
3
  });
4
 
5
  function showErrorSuc(s, i, e) {
6
- if ("error" == s) var t = "errorMsg"; else var t = "sucMsg";
7
- return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
8
- SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function() {
9
- SFSI("." + t).slideUp("slow");
10
- }, 5e3), !1;
 
11
  }
12
 
13
  function beForeLoad() {
@@ -16,137 +17,134 @@ function beForeLoad() {
16
 
17
  function sfsi_make_popBox() {
18
  var s = 0;
19
- SFSI(".sfsi_sample_icons >li").each(function() {
20
- "none" != SFSI(this).css("display") && (s = 1);
21
- }), 0 == s ? SFSI(".sfsi_Popinner").hide() :SFSI(".sfsi_Popinner").show(), "" != SFSI('input[name="sfsi_popup_text"]').val() ? (SFSI(".sfsi_Popinner >h2").html(SFSI('input[name="sfsi_popup_text"]').val()),
22
- SFSI(".sfsi_Popinner >h2").show()) :SFSI(".sfsi_Popinner >h2").hide(), SFSI(".sfsi_Popinner").css({
23
- "border-color":SFSI('input[name="sfsi_popup_border_color"]').val(),
24
- "border-width":SFSI('input[name="sfsi_popup_border_thickness"]').val(),
25
- "border-style":"solid"
26
- }), SFSI(".sfsi_Popinner").css("background-color", SFSI('input[name="sfsi_popup_background_color"]').val()),
27
- SFSI(".sfsi_Popinner h2").css("font-family", SFSI("#sfsi_popup_font").val()), SFSI(".sfsi_Popinner h2").css("font-style", SFSI("#sfsi_popup_fontStyle").val()),
28
- SFSI(".sfsi_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())),
29
- SFSI(".sfsi_Popinner >h2").css("color", SFSI('input[name="sfsi_popup_fontColor"]').val() + " !important"),
30
- "yes" == SFSI('input[name="sfsi_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") :SFSI(".sfsi_Popinner").css("box-shadow", "none");
31
  }
32
 
33
  function sfsi_stick_widget(s) {
34
- 0 == initTop.length && (SFSI(".sfsi_widget").each(function(s) {
35
  initTop[s] = SFSI(this).position().top;
36
  }));
37
- var i = SFSI(window).scrollTop(), e = [], t = [];
38
- SFSI(".sfsi_widget").each(function(s) {
 
 
39
  e[s] = SFSI(this).position().top, t[s] = SFSI(this);
40
  });
41
  var n = !1;
42
  for (var o in e) {
43
  var a = parseInt(o) + 1;
44
  e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
45
- position:"fixed",
46
- top:s
47
  }), SFSI(t[a]).css({
48
- position:"",
49
- top:initTop[a]
50
- }), n = !0) :SFSI(t[o]).css({
51
- position:"",
52
- top:initTop[o]
53
  });
54
  }
55
  if (!n) {
56
- var r = e.length - 1, c = -1;
 
57
  e.length > 1 && (c = e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({
58
- position:"fixed",
59
- top:s
60
  }), c >= 0 && SFSI(t[c]).css({
61
- position:"",
62
- top:initTop[c]
63
- })) :(SFSI(t[r]).css({
64
- position:"",
65
- top:initTop[r]
66
  }), c >= 0 && e[c] < i);
67
  }
68
  }
69
 
70
  function sfsi_float_widget(s) {
71
-
72
  function i() {
73
- r = "Microsoft Internet Explorer" === navigator.appName ? a - document.documentElement.scrollTop :a - window.pageYOffset,
74
- Math.abs(r) > 0 ?
75
- (window.removeEventListener("scroll", i),
76
- a -= r * o,
77
- SFSI("#sfsi_floater").css({
78
- top:Math.round((a + t).toString()) + "px",
79
- transition: "all 0.6s ease 0s"
80
- }),
81
- setTimeout(i, n)) :
82
- window.addEventListener("scroll", i, !1);
83
- }
84
-
85
  function e() {
86
- var documentheight = SFSI("#sfsi_floater").attr("data-top");
87
- var fltrhght = parseInt(SFSI("#sfsi_floater").height());
88
- var fltrtp = parseInt(SFSI("#sfsi_floater").css("top"));
89
-
90
- if(parseInt(fltrhght)+parseInt(fltrtp) <=documentheight)
91
- {
92
- window.addEventListener("scroll", i, !1);
93
- }
94
- else
95
- {
96
- window.removeEventListener("scroll", i);
97
- SFSI("#sfsi_floater").css("top",documentheight+"px");
98
- }
99
- }
100
- if ("center" == s)
101
- {
102
- var t = ( SFSI(window).height() - SFSI("#sfsi_floater").height() ) / 2;
103
- }
104
- else if ("bottom" == s)
105
- {
106
- var t = window.innerHeight - (SFSI("#sfsi_floater").height() + parseInt(SFSI('#sfsi_floater').css('margin-bottom')));
107
- }
108
- else
109
- {
110
- var t = parseInt(s);
111
- }
112
-
113
- var n = 50, o = .1, a = 0, r = 0;
114
- SFSI("#sfsi_floater");
115
-
116
- var prev_onscroll = window.onscroll;
117
-
118
- window.onscroll = function() {
119
-
120
- if('function' === typeof prev_onload){
121
- prev_onload(),e();
122
- }
123
- else{
124
  e();
125
- }
126
  }
127
  }
128
 
129
  function sfsi_shuffle() {
130
  var $ = window.jQuery;
131
-
132
  return SFSI('.sfsi_wDiv').each(function (index, container) {
133
- var s = [];
134
- s = SFSI(container).find(".sfsi_wicons ");
135
- s = Shuffle(s);
136
- SFSI(container).html("");
137
- for (var i = 0; i < s.length; i++) {
138
- SFSI(s[i]).css('transform', 'none');
139
- SFSI(s[i]).css('position', 'relative');
140
- SFSI(container).append(s[i]);
141
- }
142
  })
143
-
144
- }
145
-
146
- function Shuffle(s) {
147
  for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], s[i] = e);
148
  return s
149
- }
150
 
151
  function sfsi_setCookie(s, i, e) {
152
  var t = new Date();
@@ -165,194 +163,205 @@ function sfsfi_getCookie(s) {
165
 
166
  function sfsi_hideFooter() {}
167
 
168
- window.onerror = function() {}, SFSI = jQuery, SFSI(window).on('load',function() {
169
  SFSI("#sfpageLoad").fadeOut(2e3);
170
  });
171
 
172
  var global_error = 0;
173
 
174
- SFSI(document).ready(function(s) {
175
-
176
- //changes done {Monad}
177
- //putting it before to make sure it registers before the mobile click function
178
- SFSI(document).on('click','.inerCnt a[href=""]',function(event){
179
  //check if not mobile
180
- if(!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {
181
  //execute
182
  // console.log('abc');
183
  event.preventDefault();
184
  }
185
  });
186
 
187
- SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),
188
- SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'),
189
- SFSI(document).click(function(s) {
190
- var i = SFSI(".sfsi_FrntInner"), e = SFSI(".sfsi_wDiv"), t = SFSI("#at15s");
191
- i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
192
- }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function() {
193
- SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
194
- }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function() {
195
- SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
196
- }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function() {
197
- SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
198
- }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function() {
199
- SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
200
- }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function() {
201
- SFSI(this).css("opacity", "0.9");
202
- }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function() {
203
- SFSI(this).css("opacity", "1");
204
- /*{Monad}*/
205
- }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function() {
206
- SFSI(this).css("opacity", "0.9");
207
- }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function() {
208
- SFSI(this).css("opacity", "1");
209
- }), SFSI(".pop-up").on("click", function() {
210
- ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
211
- SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
212
- SFSI("." + SFSI(this).attr("data-id")).show("slow");
213
- }), /*SFSI("#close_popup").live("click", function() {*/SFSI(document).on("click", '#close_popup', function () {
214
- SFSI(".read-overlay").hide("slow");
215
- });
216
- var e = 0;
217
- sfsi_make_popBox(), SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
218
- SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
219
- SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
220
- /*SFSI(".radio").live("click", function() {*/
221
- SFSI(document).on("click", '.radio', function () {
222
- var s = SFSI(this).parent().find("input:radio:first");
223
- "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
224
- }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s) {
225
- if(SFSI(s.target).parent().attr('href')=="" ){
226
- s.preventDefault();
227
- }
228
- if(!SFSI(this).hasClass('sfsi_click_wicon')){
229
- s.stopPropagation&&s.stopPropagation();
230
- }
231
- var i = SFSI("#sfsi_floater_sec").val();
232
- SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
233
- SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
234
- SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
235
- SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
236
- "z-index":"999"
237
- }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
238
- opacity:1,
239
- "z-index":10
240
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
241
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
242
- opacity:1,
243
- "z-index":10
244
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
245
- SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
246
- opacity:1,
247
- "z-index":10
248
- })), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
249
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
250
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
251
- opacity:1,
252
- "z-index":10
253
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) :(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
254
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
255
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
256
- opacity:1,
257
- "z-index":1e3
258
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
259
- }) :SFSI(document).on("mouseenter", "img.sfsi_wicon", function () {
260
- console.log('img mouseenter');
261
- var s = SFSI("#sfsi_floater_sec").val();
262
- SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
263
- SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
264
- SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
265
- SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
266
- "z-index":"999"
267
- }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
268
- opacity:1,
269
- "z-index":10
270
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
271
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
272
- opacity:1,
273
- "z-index":10
274
- }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
275
- SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
276
- opacity:1,
277
- "z-index":10
278
- })), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
279
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
280
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
281
- opacity:1,
282
- "z-index":10
283
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) :(SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
284
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
285
- SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
286
- opacity:1,
287
- "z-index":10
288
- }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
289
- }),SFSI(document).on("mouseleave", "div.sfsi_wicons", function (){
290
- console.log('img mouseleave');
291
- SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"),
292
- SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"),
293
- SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-ffect") && "combo" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect")/* && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"), */
294
- SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("display", "none");
295
- }), SFSI("body").on("click", function(){
296
- SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide();
297
- }), SFSI(".adminTooltip >a").on("hover", function() {
298
- SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
299
- SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
300
- }), SFSI(".adminTooltip").on("mouseleave", function() {
301
- "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function() {
302
- SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide();
303
- }) :(SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
304
- SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
305
- }), SFSI(".expand-area").on("click", function() {
306
- "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
307
- SFSI(this).text("Collapse")) :(SFSI(this).siblings("p").children("label").fadeOut("slow"),
308
- SFSI(this).text("Read more"));
309
- }), SFSI(".sfsi_wDiv").length > 0 && setTimeout(function() {
310
- var s = parseInt(SFSI(".sfsi_wDiv").height()) + 15 + "px";
311
- SFSI(".sfsi_holders").each(function() {
312
- SFSI(this).css("height", s);
313
- SFSI(".sfsi_widget");
314
  });
315
- }, 200);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
316
  });
317
 
318
  //hiding popup on close button
319
- function sfsihidemepopup()
320
- {
321
- SFSI(".sfsi_FrntInner_chg").fadeOut();
322
  }
323
  var initTop = new Array();
324
- function close_overlay(selector){
325
- if(typeof selector === "undefined"){
326
- selector = '.sfsi_overlay';
 
327
  }
328
  jQuery(selector).removeClass('show').addClass('hide').hide();
329
  }
330
- function sfsi_wechat_share(url){
331
- if(jQuery('.sfsi_wechat_follow_overlay').length==0){
332
- jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'><div class='sfsi_inner_display'><a class='close_btn' href='' onclick='event.preventDefault();close_overlay(\".sfsi_wechat_follow_overlay\")' >×</a><div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;text-align:center'><div class='sfsi_wechat_qr_display' style='display:inline-block'></div></div><div style='width:80%;margin:10px auto 0 auto;text-align:center;font-weight:900;font-size:25px;'>\"Scan QR Code\" in WeChat and press ··· to share!</div></div></div>");
333
- new QRCode(jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display')[0], encodeURI(decodeURI(window.location.href)))
334
- jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display img').attr('nopin','nopin')
335
- }else{
336
- jQuery('.sfsi_wechat_follow_overlay').removeClass('hide').addClass('show').show();
337
- }
 
338
  }
339
- function sfsi_mobile_wechat_share(url){
340
- if(jQuery('.sfsi_wechat_follow_overlay').length==0){
341
- jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'><div class='sfsi_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')\" >×</a><div style='width:95%; min-height:80%;background-color:#fff;margin:0 auto;margin:30% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;'><input type='text' value='"+encodeURI(decodeURI(window.location.href))+"' style='width:100%;padding:7px 0;text-align:center' /></div><div style='width:80%;margin:10px auto 0 auto'><div class='sfsi_upload_butt_container' ><button onclick='sfsi_copy_text_parent_input(event)' class='upload_butt' >Copy</button></div><div class='sfsi_upload_butt_container' ><a href='weixin://' class='upload_butt'>Open WeChat</a></div></div></div></div>");
342
- }else{
 
343
  jQuery('.sfsi_wechat_scan').removeClass('hide').addClass('show');
344
  }
345
  }
346
- function sfsi_copy_text_parent_input(event){
 
347
  var target = jQuery(event.target);
348
  // console.log(target);
349
- input_target= target.parent().parent().parent().find('input');
350
  input_target.select();
351
  document.execCommand('copy');
352
  }
353
 
354
  function sfsi_responsive_toggle() {
355
- jQuery(document).scroll(function($) {
356
  var y = jQuery(this).scrollTop();
357
  if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
358
  if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) {
@@ -385,24 +394,25 @@ function sfsi_responsive_toggle() {
385
  }
386
  });
387
  }
 
388
  function sfsi_time_pop_up(time_popUp) {
389
- jQuery(document).ready(function($) {
390
- setTimeout(function() {
391
  jQuery('.sfsi_outr_div').css({
392
  'z-index': '1000000',
393
  opacity: 1
394
  });
395
  jQuery('.sfsi_outr_div').fadeIn(200);
396
  jQuery('.sfsi_FrntInner_chg').fadeIn(200);
397
- }, time_popUp);
398
  });
399
  }
400
 
401
  function sfsi_social_pop_up(time_popUp) {
402
- jQuery(document).ready(function($) {
403
  //jQuery('.sfsi_outr_div').fadeIn();
404
  sfsi_setCookie('sfsi_socialPopUp', time(), 32);
405
- setTimeout(function() {
406
  jQuery('.sfsi_outr_div').css({
407
  'z-index': '1000000',
408
  opacity: 1
@@ -411,102 +421,106 @@ function sfsi_social_pop_up(time_popUp) {
411
  }, time_popUp);
412
  });
413
  }
 
414
  function sfsi_plugin_version(pluginVersion) {
415
- jQuery(document).ready(function(e) {
416
- jQuery("body").addClass("sfsi_"+pluginVersion)
417
  });
418
  }
419
 
420
- function sfsi_widget_set(){
421
- jQuery(".sfsi_widget").each(function( index ) {
422
- if(jQuery(this).attr("data-position") == "widget")
423
- {
424
  var wdgt_hght = jQuery(this).children(".norm_row.sfsi_wDiv").height();
425
  var title_hght = jQuery(this).parent(".widget.sfsi").children(".widget-title").height();
426
- var totl_hght = parseInt( title_hght ) + parseInt( wdgt_hght );
427
- jQuery(this).parent(".widget.sfsi").css("min-height", totl_hght+"px");
428
  // console.log('widget');
429
  }
430
  });
431
  }
432
 
433
- SFSI(window).on('load',function () {
434
- SFSI('.sfsi_pinterest_sm_click').on('click touchstart', function() {
435
  sfsi_pinterest_modal_images(e);
436
  });
437
  });
438
 
439
- function sfsi_pinterest_modal_images(event,url,title) {
440
  console.log(event);
441
  event && event.preventDefault();
442
- var imgSrc = [];
443
- var page_title;
444
-
445
- page_title = SFSI('meta[property="og:title"]').attr('content');
446
- if(undefined == page_title){
447
- page_title = SFSI('head title').text();
448
- }
449
- if(undefined == title){
450
- title = page_title;
451
- }
452
- if(undefined == url){
453
- url = window.location.href;
454
- // url = encodeURIComponent(window.location.href);
455
- }
456
- SFSI('body img').each(function (index) {
457
- var src = SFSI(this).attr('src') || "";
458
- var height = SFSI(this).height();
459
- var width = SFSI(this).width();
460
- var image_title = SFSI(this).attr('title') || "";
461
- var alt = SFSI(this).attr('alt') || "";
462
- var no_pin = SFSI(this).attr('data-pin-nopin') || "";
463
- var no_pin_old = SFSI(this).attr('nopin') || "";
464
-
465
- if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") {
466
- imgSrc.push({
467
- src: src,
468
- title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt)
469
- });
470
  }
471
- });
472
-
473
- sfsi_pinterest_modal();
474
- console.log(imgSrc);
475
- if(imgSrc.length==0){
476
- var meta_img = SFSI('meta[property="og:image"]').attr('content');
477
- if(undefined == meta_img){
478
- meta_img ="";
479
  }
480
- SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + url + '&media=&description=' + encodeURIComponent(page_title).replace('+', '%20').replace("#", "%23") + '"><div style="width:140px;height:90px;display:inline-block;" ></div><span class="sfsi_pinterest_overlay"><img data-pin-nopin="true" height="30" width="30" src="' + window.sfsi_icon_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>')
481
- }else{
482
-
483
- // console.log(imgSrc);
484
- SFSI.each(imgSrc, function (index, val) {
485
- // console.log('discrip',val);
486
- SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + url + '&media=' + val.src + '&description=' + encodeURIComponent(val.title ? val.title : page_title).replace('+', '%20').replace("#", "%23") + '"><img style="display:inline" data-pin-nopin="true" src="' + val.src + '"><span class="sfsi_pinterest_overlay" style="width:140px;left:unset;"><img data-pin-nopin="true" height="30" width="30" style="display:inline" src="' + window.sfsi_icon_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>');
487
- });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
488
  }
489
  event.preventDefault();
490
 
491
  }
492
 
493
  function sfsi_pinterest_modal(imgs) {
494
- // if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) {
495
- jQuery('body').append(
496
- "<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>" +
497
- "<div class='sfsi_inner_display'>" +
498
- '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')" >×</a>' +
499
- "<div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;border-radius: 20px;'>" +
500
- "<h4 style='margin-left:10px;'>Pin It on Pinterest</h4>" +
501
- "<div class='sfsi_flex_container'>" +
502
-
503
- "</div>" +
504
- "</div>" +
505
- "</div>" +
506
- "</div>"
507
- );
508
  }
509
 
510
  // should execute at last so that every function is acceable in body.
511
- var sfsi_functions_loaded = new CustomEvent('sfsi_functions_loaded',{detail:{"abc":"def"}});
 
 
 
 
512
  window.dispatchEvent(sfsi_functions_loaded);
1
+ jQuery(document).ready(function (e) {
2
+ jQuery("#sfsi_floater").attr("data-top", jQuery(document).height());
3
  });
4
 
5
  function showErrorSuc(s, i, e) {
6
+ if ("error" == s) var t = "errorMsg";
7
+ else var t = "sucMsg";
8
+ return SFSI(".tab" + e + ">." + t).html(i), SFSI(".tab" + e + ">." + t).show(),
9
+ SFSI(".tab" + e + ">." + t).effect("highlight", {}, 5e3), setTimeout(function () {
10
+ SFSI("." + t).slideUp("slow");
11
+ }, 5e3), !1;
12
  }
13
 
14
  function beForeLoad() {
17
 
18
  function sfsi_make_popBox() {
19
  var s = 0;
20
+ SFSI(".sfsi_sample_icons >li").each(function () {
21
+ "none" != SFSI(this).css("display") && (s = 1);
22
+ }), 0 == s ? SFSI(".sfsi_Popinner").hide() : SFSI(".sfsi_Popinner").show(), "" != SFSI('input[name="sfsi_popup_text"]').val() ? (SFSI(".sfsi_Popinner >h2").html(SFSI('input[name="sfsi_popup_text"]').val()),
23
+ SFSI(".sfsi_Popinner >h2").show()) : SFSI(".sfsi_Popinner >h2").hide(), SFSI(".sfsi_Popinner").css({
24
+ "border-color": SFSI('input[name="sfsi_popup_border_color"]').val(),
25
+ "border-width": SFSI('input[name="sfsi_popup_border_thickness"]').val(),
26
+ "border-style": "solid"
27
+ }), SFSI(".sfsi_Popinner").css("background-color", SFSI('input[name="sfsi_popup_background_color"]').val()),
28
+ SFSI(".sfsi_Popinner h2").css("font-family", SFSI("#sfsi_popup_font").val()), SFSI(".sfsi_Popinner h2").css("font-style", SFSI("#sfsi_popup_fontStyle").val()),
29
+ SFSI(".sfsi_Popinner >h2").css("font-size", parseInt(SFSI('input[name="sfsi_popup_fontSize"]').val())),
30
+ SFSI(".sfsi_Popinner >h2").css("color", SFSI('input[name="sfsi_popup_fontColor"]').val() + " !important"),
31
+ "yes" == SFSI('input[name="sfsi_popup_border_shadow"]:checked').val() ? SFSI(".sfsi_Popinner").css("box-shadow", "12px 30px 18px #CCCCCC") : SFSI(".sfsi_Popinner").css("box-shadow", "none");
32
  }
33
 
34
  function sfsi_stick_widget(s) {
35
+ 0 == initTop.length && (SFSI(".sfsi_widget").each(function (s) {
36
  initTop[s] = SFSI(this).position().top;
37
  }));
38
+ var i = SFSI(window).scrollTop(),
39
+ e = [],
40
+ t = [];
41
+ SFSI(".sfsi_widget").each(function (s) {
42
  e[s] = SFSI(this).position().top, t[s] = SFSI(this);
43
  });
44
  var n = !1;
45
  for (var o in e) {
46
  var a = parseInt(o) + 1;
47
  e[o] < i && e[a] > i && a < e.length ? (SFSI(t[o]).css({
48
+ position: "fixed",
49
+ top: s
50
  }), SFSI(t[a]).css({
51
+ position: "",
52
+ top: initTop[a]
53
+ }), n = !0) : SFSI(t[o]).css({
54
+ position: "",
55
+ top: initTop[o]
56
  });
57
  }
58
  if (!n) {
59
+ var r = e.length - 1,
60
+ c = -1;
61
  e.length > 1 && (c = e.length - 2), initTop[r] < i ? (SFSI(t[r]).css({
62
+ position: "fixed",
63
+ top: s
64
  }), c >= 0 && SFSI(t[c]).css({
65
+ position: "",
66
+ top: initTop[c]
67
+ })) : (SFSI(t[r]).css({
68
+ position: "",
69
+ top: initTop[r]
70
  }), c >= 0 && e[c] < i);
71
  }
72
  }
73
 
74
  function sfsi_float_widget(s) {
75
+
76
  function i() {
77
+ r = "Microsoft Internet Explorer" === navigator.appName ? a - document.documentElement.scrollTop : a - window.pageYOffset,
78
+ Math.abs(r) > 0 ?
79
+ (window.removeEventListener("scroll", i),
80
+ a -= r * o,
81
+ SFSI("#sfsi_floater").css({
82
+ top: Math.round((a + t).toString()) + "px",
83
+ transition: "all 0.6s ease 0s"
84
+ }),
85
+ setTimeout(i, n)) :
86
+ window.addEventListener("scroll", i, !1);
87
+ }
88
+
89
  function e() {
90
+ var documentheight = SFSI("#sfsi_floater").attr("data-top");
91
+ var fltrhght = parseInt(SFSI("#sfsi_floater").height());
92
+ var fltrtp = parseInt(SFSI("#sfsi_floater").css("top"));
93
+
94
+ if (parseInt(fltrhght) + parseInt(fltrtp) <= documentheight) {
95
+ window.addEventListener("scroll", i, !1);
96
+ } else {
97
+ window.removeEventListener("scroll", i);
98
+ SFSI("#sfsi_floater").css("top", documentheight + "px");
99
+ }
100
+ }
101
+ if ("center" == s) {
102
+ var t = (SFSI(window).height() - SFSI("#sfsi_floater").height()) / 2;
103
+ } else if ("bottom" == s) {
104
+ var t = window.innerHeight - (SFSI("#sfsi_floater").height() + parseInt(SFSI('#sfsi_floater').css('margin-bottom')));
105
+ } else {
106
+ var t = parseInt(s);
107
+ }
108
+
109
+ var n = 50,
110
+ o = .1,
111
+ a = 0,
112
+ r = 0;
113
+ SFSI("#sfsi_floater");
114
+
115
+ var prev_onscroll = window.onscroll;
116
+
117
+ window.onscroll = function () {
118
+
119
+ if ('function' === typeof prev_onload) {
120
+ prev_onload(), e();
121
+ } else {
 
 
 
 
 
 
122
  e();
123
+ }
124
  }
125
  }
126
 
127
  function sfsi_shuffle() {
128
  var $ = window.jQuery;
129
+
130
  return SFSI('.sfsi_wDiv').each(function (index, container) {
131
+ var s = [];
132
+ s = SFSI(container).find(".sfsi_wicons ");
133
+ s = Shuffle(s);
134
+ SFSI(container).html("");
135
+ for (var i = 0; i < s.length; i++) {
136
+ SFSI(s[i]).css('transform', 'none');
137
+ SFSI(s[i]).css('position', 'relative');
138
+ SFSI(container).append(s[i]);
139
+ }
140
  })
141
+
142
+ }
143
+
144
+ function Shuffle(s) {
145
  for (var i, e, t = s.length; t; i = parseInt(Math.random() * t), e = s[--t], s[t] = s[i], s[i] = e);
146
  return s
147
+ }
148
 
149
  function sfsi_setCookie(s, i, e) {
150
  var t = new Date();
163
 
164
  function sfsi_hideFooter() {}
165
 
166
+ window.onerror = function () {}, SFSI = jQuery, SFSI(window).on('load', function () {
167
  SFSI("#sfpageLoad").fadeOut(2e3);
168
  });
169
 
170
  var global_error = 0;
171
 
172
+ SFSI(document).ready(function (s) {
173
+ //changes done {Monad}
174
+ //putting it before to make sure it registers before the mobile click function
175
+ SFSI(document).on('click', '.inerCnt a[href=""]', function (event) {
 
176
  //check if not mobile
177
+ if (!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent))) {
178
  //execute
179
  // console.log('abc');
180
  event.preventDefault();
181
  }
182
  });
183
 
184
+ SFSI("head").append('<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />'),
185
+ SFSI("head").append('<meta http-equiv="Pragma" content="no-cache" />'), SFSI("head").append('<meta http-equiv="Expires" content="0" />'),
186
+ SFSI(document).click(function (s) {
187
+
188
+ var i = SFSI(".sfsi_FrntInner"),
189
+ e = SFSI(".sfsi_wDiv"),
190
+ t = SFSI("#at15s");
191
+ i.is(s.target) || 0 !== i.has(s.target).length || e.is(s.target) || 0 !== e.has(s.target).length || t.is(s.target) || 0 !== t.has(s.target).length || i.fadeOut();
192
+ }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseover(function () {
193
+ SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn_hover.svg");
194
+ }), SFSI("div#sfsiid_linkedin").find(".icon4").find("a").find("img").mouseleave(function () {
195
+ SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/linkedIn.svg");
196
+ }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseover(function () {
197
+ SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube_hover.svg");
198
+ }), SFSI("div#sfsiid_youtube").find(".icon1").find("a").find("img").mouseleave(function () {
199
+ SFSI(this).attr("src", sfsi_icon_ajax_object.plugin_url + "images/visit_icons/youtube.svg");
200
+ }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseover(function () {
201
+ SFSI(this).css("opacity", "0.9");
202
+ }), SFSI("div#sfsiid_facebook").find(".icon1").find("a").find("img").mouseleave(function () {
203
+ SFSI(this).css("opacity", "1");
204
+ /*{Monad}*/
205
+ }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseover(function () {
206
+ SFSI(this).css("opacity", "0.9");
207
+ }), SFSI("div#sfsiid_twitter").find(".cstmicon1").find("a").find("img").mouseleave(function () {
208
+ SFSI(this).css("opacity", "1");
209
+ }), SFSI(".pop-up").on("click", function () {
210
+ ("fbex-s2" == SFSI(this).attr("data-id") || "linkex-s2" == SFSI(this).attr("data-id")) && (SFSI("." + SFSI(this).attr("data-id")).hide(),
211
+ SFSI("." + SFSI(this).attr("data-id")).css("opacity", "1"), SFSI("." + SFSI(this).attr("data-id")).css("z-index", "1000")),
212
+ SFSI("." + SFSI(this).attr("data-id")).show("slow");
213
+ }), /*SFSI("#close_popup").live("click", function() {*/ SFSI(document).on("click", '#close_popup', function () {
214
+ SFSI(".read-overlay").hide("slow");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  });
216
+ var e = 0;
217
+ sfsi_make_popBox(), SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("keyup", sfsi_make_popBox),
218
+ SFSI('input[name="sfsi_popup_text"] ,input[name="sfsi_popup_background_color"],input[name="sfsi_popup_border_color"],input[name="sfsi_popup_border_thickness"],input[name="sfsi_popup_fontSize"],input[name="sfsi_popup_fontColor"]').on("focus", sfsi_make_popBox),
219
+ SFSI("#sfsi_popup_font ,#sfsi_popup_fontStyle").on("change", sfsi_make_popBox),
220
+ /*SFSI(".radio").live("click", function() {*/
221
+
222
+ SFSI(document).on("click", '.radio', function () {
223
+ var s = SFSI(this).parent().find("input:radio:first");
224
+ "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
225
+ }),
226
+ console.log(SFSI("img.sfsi_wicon"));
227
+
228
+ /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI(document).on("click", 'img.sfsi_wicon',function (s) {
229
+ console.log('document mouse click', s, s.target);
230
+
231
+ if (SFSI(s.target).parent().attr('href') == "") {
232
+ s.preventDefault();
233
+ }
234
+ if (!SFSI(this).hasClass('sfsi_click_wicon')) {
235
+ s.stopPropagation && s.stopPropagation();
236
+ }
237
+ var i = SFSI("#sfsi_floater_sec").val();
238
+ SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
239
+ SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
240
+ SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
241
+ SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
242
+ "z-index": "999"
243
+ }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
244
+ opacity: 1,
245
+ "z-index": 10
246
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
247
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
248
+ opacity: 1,
249
+ "z-index": 10
250
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
251
+ SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
252
+ opacity: 1,
253
+ "z-index": 10
254
+ })), ("top-left" == i || "top-right" == i) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
255
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
256
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
257
+ opacity: 1,
258
+ "z-index": 10
259
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
260
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
261
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
262
+ opacity: 1,
263
+ "z-index": 1e3
264
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
265
+ }) : SFSI(document).on("mouseenter", "img.sfsi_wicon", function () {
266
+ console.log('img mouseenter');
267
+ var s = SFSI("#sfsi_floater_sec").val();
268
+ SFSI("div.sfsi_wicons").css("z-index", "0"), SFSI(this).parent().parent().parent().siblings("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide(),
269
+ SFSI(this).parent().parent().parent().parent().siblings("li").length > 0 && (SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_tool_tip_2").css("z-index", "0"),
270
+ SFSI(this).parent().parent().parent().parent().siblings("li").find("div.sfsi_wicons").find(".inerCnt").find("div.sfsi_tool_tip_2").hide()),
271
+ SFSI(this).parent().parent().parent().css("z-index", "1000000"), SFSI(this).parent().parent().css({
272
+ "z-index": "999"
273
+ }), SFSI(this).attr("data-effect") && "fade_in" == SFSI(this).attr("data-effect") && (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
274
+ opacity: 1,
275
+ "z-index": 10
276
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "scale" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
277
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
278
+ opacity: 1,
279
+ "z-index": 10
280
+ }), SFSI(this).parent().css("opacity", "1")), SFSI(this).attr("data-effect") && "combo" == SFSI(this).attr("data-effect") && (SFSI(this).parent().addClass("scale"),
281
+ SFSI(this).parent().css("opacity", "1"), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
282
+ opacity: 1,
283
+ "z-index": 10
284
+ })), ("top-left" == s || "top-right" == s) && SFSI(this).parent().parent().parent().parent("#sfsi_floater").length > 0 && "sfsi_floater" == SFSI(this).parent().parent().parent().parent().attr("id") ? (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").addClass("sfsi_plc_btm"),
285
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").addClass("top_big_arow"),
286
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
287
+ opacity: 1,
288
+ "z-index": 10
289
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show()) : (SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").find("span.bot_arow").removeClass("top_big_arow"),
290
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").removeClass("sfsi_plc_btm"),
291
+ SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").css({
292
+ opacity: 1,
293
+ "z-index": 10
294
+ }), SFSI(this).parentsUntil("div").siblings("div.sfsi_tool_tip_2").show());
295
+ }),
296
+ SFSI(document).on("mouseleave", "div.sfsi_wicons", function () {
297
+ SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "fade_in" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"),
298
+ SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && "scale" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") && SFSI(this).children("div.inerCnt").find("a.sficn").removeClass("scale"),
299
+ SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-ffect") && "combo" == SFSI(this).children("div.inerCnt").children("a.sficn").attr("data-effect") /* && SFSI(this).children("div.inerCnt").find("a.sficn").css("opacity", "0.6"), */
300
+ SFSI(this).parent("div").find("div.sfsi_tool_tip_2").css("display", "none");
301
+ }), SFSI("body").on("click", function () {
302
+ SFSI(".inerCnt").find("div.sfsi_tool_tip_2").hide();
303
+ }), SFSI(".adminTooltip >a").on("hover", function () {
304
+ SFSI(this).offset().top, SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "1"),
305
+ SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").show();
306
+ }), SFSI(".adminTooltip").on("mouseleave", function () {
307
+ "none" != SFSI(".gpls_tool_bdr").css("display") && 0 != SFSI(".gpls_tool_bdr").css("opacity") ? SFSI(".pop_up_box ").on("click", function () {
308
+ SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"), SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide();
309
+ }) : (SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").css("opacity", "0"),
310
+ SFSI(this).parent("div").find("div.sfsi_tool_tip_2_inr").hide());
311
+ }), SFSI(".expand-area").on("click", function () {
312
+ "Read more" == SFSI(this).text() ? (SFSI(this).siblings("p").children("label").fadeIn("slow"),
313
+ SFSI(this).text("Collapse")) : (SFSI(this).siblings("p").children("label").fadeOut("slow"),
314
+ SFSI(this).text("Read more"));
315
+ }), SFSI(".sfsi_wDiv").length > 0 && setTimeout(function () {
316
+ var s = parseInt(SFSI(".sfsi_wDiv").height()) + 15 + "px";
317
+ SFSI(".sfsi_holders").each(function () {
318
+ SFSI(this).css("height", s);
319
+ SFSI(".sfsi_widget");
320
+ });
321
+ }, 200);
322
  });
323
 
324
  //hiding popup on close button
325
+ function sfsihidemepopup() {
326
+ SFSI(".sfsi_FrntInner_chg").fadeOut();
 
327
  }
328
  var initTop = new Array();
329
+
330
+ function close_overlay(selector) {
331
+ if (typeof selector === "undefined") {
332
+ selector = '.sfsi_overlay';
333
  }
334
  jQuery(selector).removeClass('show').addClass('hide').hide();
335
  }
336
+
337
+ function sfsi_wechat_share(url) {
338
+ if (jQuery('.sfsi_wechat_follow_overlay').length == 0) {
339
+ jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'><div class='sfsi_inner_display'><a class='close_btn' href='' onclick='event.preventDefault();close_overlay(\".sfsi_wechat_follow_overlay\")' >×</a><div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;text-align:center'><div class='sfsi_wechat_qr_display' style='display:inline-block'></div></div><div style='width:80%;margin:10px auto 0 auto;text-align:center;font-weight:900;font-size:25px;'>\"Scan QR Code\" in WeChat and press ··· to share!</div></div></div>");
340
+ new QRCode(jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display')[0], encodeURI(decodeURI(window.location.href)))
341
+ jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display img').attr('nopin', 'nopin')
342
+ } else {
343
+ jQuery('.sfsi_wechat_follow_overlay').removeClass('hide').addClass('show').show();
344
+ }
345
  }
346
+
347
+ function sfsi_mobile_wechat_share(url) {
348
+ if (jQuery('.sfsi_wechat_follow_overlay').length == 0) {
349
+ jQuery('body').append("<div class='sfsi_wechat_follow_overlay sfsi_overlay show'><div class='sfsi_inner_display'><a class='close_btn' href='' onclick=\"event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')\" >×</a><div style='width:95%; min-height:80%;background-color:#fff;margin:0 auto;margin:30% auto;padding: 20px 0;'><div style='width:90%;margin: 0 auto;'><input type='text' value='" + encodeURI(decodeURI(window.location.href)) + "' style='width:100%;padding:7px 0;text-align:center' /></div><div style='width:80%;margin:10px auto 0 auto'><div class='sfsi_upload_butt_container' ><button onclick='sfsi_copy_text_parent_input(event)' class='upload_butt' >Copy</button></div><div class='sfsi_upload_butt_container' ><a href='weixin://' class='upload_butt'>Open WeChat</a></div></div></div></div>");
350
+ } else {
351
  jQuery('.sfsi_wechat_scan').removeClass('hide').addClass('show');
352
  }
353
  }
354
+
355
+ function sfsi_copy_text_parent_input(event) {
356
  var target = jQuery(event.target);
357
  // console.log(target);
358
+ input_target = target.parent().parent().parent().find('input');
359
  input_target.select();
360
  document.execCommand('copy');
361
  }
362
 
363
  function sfsi_responsive_toggle() {
364
+ jQuery(document).scroll(function ($) {
365
  var y = jQuery(this).scrollTop();
366
  if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)) {
367
  if (jQuery(window).scrollTop() + jQuery(window).height() >= jQuery(document).height() - 100) {
394
  }
395
  });
396
  }
397
+
398
  function sfsi_time_pop_up(time_popUp) {
399
+ jQuery(document).ready(function ($) {
400
+ setTimeout(function () {
401
  jQuery('.sfsi_outr_div').css({
402
  'z-index': '1000000',
403
  opacity: 1
404
  });
405
  jQuery('.sfsi_outr_div').fadeIn(200);
406
  jQuery('.sfsi_FrntInner_chg').fadeIn(200);
407
+ }, time_popUp);
408
  });
409
  }
410
 
411
  function sfsi_social_pop_up(time_popUp) {
412
+ jQuery(document).ready(function ($) {
413
  //jQuery('.sfsi_outr_div').fadeIn();
414
  sfsi_setCookie('sfsi_socialPopUp', time(), 32);
415
+ setTimeout(function () {
416
  jQuery('.sfsi_outr_div').css({
417
  'z-index': '1000000',
418
  opacity: 1
421
  }, time_popUp);
422
  });
423
  }
424
+
425
  function sfsi_plugin_version(pluginVersion) {
426
+ jQuery(document).ready(function (e) {
427
+ jQuery("body").addClass("sfsi_" + pluginVersion)
428
  });
429
  }
430
 
431
+ function sfsi_widget_set() {
432
+ jQuery(".sfsi_widget").each(function (index) {
433
+ if (jQuery(this).attr("data-position") == "widget") {
 
434
  var wdgt_hght = jQuery(this).children(".norm_row.sfsi_wDiv").height();
435
  var title_hght = jQuery(this).parent(".widget.sfsi").children(".widget-title").height();
436
+ var totl_hght = parseInt(title_hght) + parseInt(wdgt_hght);
437
+ jQuery(this).parent(".widget.sfsi").css("min-height", totl_hght + "px");
438
  // console.log('widget');
439
  }
440
  });
441
  }
442
 
443
+ SFSI(window).on('load', function () {
444
+ SFSI('.sfsi_pinterest_sm_click').on('click touchstart', function () {
445
  sfsi_pinterest_modal_images(e);
446
  });
447
  });
448
 
449
+ function sfsi_pinterest_modal_images(event, url, title) {
450
  console.log(event);
451
  event && event.preventDefault();
452
+ var imgSrc = [];
453
+ var page_title;
454
+
455
+ page_title = SFSI('meta[property="og:title"]').attr('content');
456
+ if (undefined == page_title) {
457
+ page_title = SFSI('head title').text();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
458
  }
459
+ if (undefined == title) {
460
+ title = page_title;
 
 
 
 
 
 
461
  }
462
+ if (undefined == url) {
463
+ url = window.location.href;
464
+ // url = encodeURIComponent(window.location.href);
465
+ }
466
+ SFSI('body img').each(function (index) {
467
+ var src = SFSI(this).attr('src') || "";
468
+ var height = SFSI(this).height();
469
+ var width = SFSI(this).width();
470
+ var image_title = SFSI(this).attr('title') || "";
471
+ var alt = SFSI(this).attr('alt') || "";
472
+ var no_pin = SFSI(this).attr('data-pin-nopin') || "";
473
+ var no_pin_old = SFSI(this).attr('nopin') || "";
474
+
475
+ if (src !== "" && !src.startsWith("javascript") && height > 100 && width > 100 && no_pin_old !== "nopin" && no_pin !== "true") {
476
+ imgSrc.push({
477
+ src: src,
478
+ title: title && "" !== title ? title : (image_title && "" !== image_title ? image_title : alt)
479
+ });
480
+ }
481
+ });
482
+
483
+ sfsi_pinterest_modal();
484
+ console.log(imgSrc);
485
+ if (imgSrc.length == 0) {
486
+ var meta_img = SFSI('meta[property="og:image"]').attr('content');
487
+ if (undefined == meta_img) {
488
+ meta_img = "";
489
+ }
490
+ SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + url + '&media=&description=' + encodeURIComponent(page_title).replace('+', '%20').replace("#", "%23") + '"><div style="width:140px;height:90px;display:inline-block;" ></div><span class="sfsi_pinterest_overlay"><img data-pin-nopin="true" height="30" width="30" src="' + window.sfsi_icon_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>')
491
+ } else {
492
+
493
+ // console.log(imgSrc);
494
+ SFSI.each(imgSrc, function (index, val) {
495
+ // console.log('discrip',val);
496
+ SFSI('.sfsi_flex_container').append('<div><a href="http://www.pinterest.com/pin/create/button/?url=' + url + '&media=' + val.src + '&description=' + encodeURIComponent(val.title ? val.title : page_title).replace('+', '%20').replace("#", "%23") + '"><img style="display:inline" data-pin-nopin="true" src="' + val.src + '"><span class="sfsi_pinterest_overlay" style="width:140px;left:unset;"><img data-pin-nopin="true" height="30" width="30" style="display:inline" src="' + window.sfsi_icon_ajax_object.plugin_url + '/images/pinterest.png" /></span></a></div>');
497
+ });
498
  }
499
  event.preventDefault();
500
 
501
  }
502
 
503
  function sfsi_pinterest_modal(imgs) {
504
+ // if (jQuery('.sfsi_premium_wechat_follow_overlay').length == 0) {
505
+ jQuery('body').append(
506
+ "<div class='sfsi_wechat_follow_overlay sfsi_overlay show'>" +
507
+ "<div class='sfsi_inner_display'>" +
508
+ '<a class="close_btn" href="" onclick="event.preventDefault();close_overlay(\'.sfsi_wechat_follow_overlay\')" >×</a>' +
509
+ "<div style='width:95%;max-width:500px; min-height:80%;background-color:#fff;margin:0 auto;margin:10% auto;padding: 20px 0;border-radius: 20px;'>" +
510
+ "<h4 style='margin-left:10px;'>Pin It on Pinterest</h4>" +
511
+ "<div class='sfsi_flex_container'>" +
512
+
513
+ "</div>" +
514
+ "</div>" +
515
+ "</div>" +
516
+ "</div>"
517
+ );
518
  }
519
 
520
  // should execute at last so that every function is acceable in body.
521
+ var sfsi_functions_loaded = new CustomEvent('sfsi_functions_loaded', {
522
+ detail: {
523
+ "abc": "def"
524
+ }
525
+ });
526
  window.dispatchEvent(sfsi_functions_loaded);
js/shuffle/jquery.shuffle.min.js CHANGED
@@ -1,723 +1 @@
1
- (function (e) {
2
- if (typeof define === "function" && define.amd) {
3
- define(["jquery", "modernizr"], e);
4
- } else {
5
- e(window.jQuery, window.Modernizr);
6
- }
7
- })(function (e, t, n) {
8
- "use strict";
9
- function r(e) {
10
- if (!e) {
11
- return "";
12
- }
13
- return e
14
- .replace(/([A-Z])/g, function (e, t) {
15
- return "-" + t.toLowerCase();
16
- })
17
- .replace(/^ms-/, "-ms-");
18
- }
19
- function g(t, n, r) {
20
- var i, s, o;
21
- var u = null;
22
- var a = 0;
23
- r = r || {};
24
- var f = function () {
25
- a = r.leading === false ? 0 : e.now();
26
- u = null;
27
- o = t.apply(i, s);
28
- i = s = null;
29
- };
30
- return function () {
31
- var l = e.now();
32
- if (!a && r.leading === false) {
33
- a = l;
34
- }
35
- var c = n - (l - a);
36
- i = this;
37
- s = arguments;
38
- if (c <= 0 || c > n) {
39
- clearTimeout(u);
40
- u = null;
41
- a = l;
42
- o = t.apply(i, s);
43
- i = s = null;
44
- } else if (!u && r.trailing !== false) {
45
- u = setTimeout(f, c);
46
- }
47
- return o;
48
- };
49
- }
50
- if (typeof t !== "object") {
51
- throw new Error("Shuffle.js requires Modernizr.\n" + "http://vestride.github.io/Shuffle/#dependencies");
52
- }
53
- var i = t.prefixed("transition");
54
- var s = t.prefixed("transitionDelay");
55
- var o = t.prefixed("transitionDuration");
56
- var u = { WebkitTransition: "webkitTransitionEnd", transition: "transitionend" }[i];
57
- var a = t.prefixed("transform");
58
- var f = r(a);
59
- var l = t.csstransforms && t.csstransitions;
60
- var c = t.csstransforms3d;
61
- var h = "shuffle";
62
- var p = "all";
63
- var d = "groups";
64
- var v = 1;
65
- var m = 0.001;
66
- var y = 0;
67
- var b = function (t, n) {
68
- n = n || {};
69
- e.extend(this, b.options, n, b.settings);
70
- this.$el = e(t);
71
- this.$window = e(window);
72
- this.unique = "shuffle_" + y++;
73
- this._fire(b.EventType.LOADING);
74
- this._init();
75
- setTimeout(
76
- e.proxy(function () {
77
- this.initialized = true;
78
- this._fire(b.EventType.DONE);
79
- }, this),
80
- 16
81
- );
82
- };
83
- b.EventType = { LOADING: "loading", DONE: "done", SHRINK: "shrink", SHRUNK: "shrunk", FILTER: "filter", FILTERED: "filtered", SORTED: "sorted", LAYOUT: "layout", REMOVED: "removed" };
84
- b.prototype = {
85
- _init: function () {
86
- var t = this,
87
- n,
88
- r,
89
- s = e.proxy(t._onResize, t),
90
- o = t.throttle ? t.throttle(s, t.throttleTime) : s,
91
- u = t.initialSort ? t.initialSort : null;
92
- t._layoutList = [];
93
- t._shrinkList = [];
94
- t._setVars();
95
- t._resetCols();
96
- t._addClasses();
97
- t._initItems();
98
- t.$window.on("resize." + h + "." + t.unique, o);
99
- n = t.$el.css(["paddingLeft", "paddingRight", "position"]);
100
- r = t._getOuterWidth(t.$el[0]);
101
- if (n.position === "static") {
102
- t.$el[0].style.position = "relative";
103
- }
104
- t.offset = { left: parseInt(n.paddingLeft, 10) || 0, top: parseInt(n.paddingTop, 10) || 0 };
105
- t._setColumns(parseInt(r, 10));
106
- t.shuffle(t.group, u);
107
- if (t.supported) {
108
- setTimeout(function () {
109
- t._setTransitions();
110
- t.$el[0].style[i] = "height " + t.speed + "ms " + t.easing;
111
- }, 0);
112
- }
113
- },
114
- _addClasses: function () {
115
- this.$el.addClass(h);
116
- this.$items.addClass("shuffle-item filtered");
117
- },
118
- _setVars: function () {
119
- var t = this,
120
- n = t.columnWidth;
121
- t.$items = t._getItems();
122
- if (n === 0 && t.sizer !== null) {
123
- n = t.sizer;
124
- }
125
- if (typeof n === "string") {
126
- t.$sizer = t.$el.find(n);
127
- } else if (n && n.nodeType && n.nodeType === 1) {
128
- t.$sizer = e(n);
129
- } else if (n && n.jquery) {
130
- t.$sizer = n;
131
- }
132
- if (t.$sizer && t.$sizer.length) {
133
- t.useSizer = true;
134
- t.sizer = t.$sizer[0];
135
- }
136
- },
137
- _filter: function (t, r) {
138
- var i = this,
139
- s = r !== n,
140
- o = s ? r : i.$items,
141
- u = e();
142
- t = t || i.lastFilter;
143
- i._fire(b.EventType.FILTER);
144
- if (e.isFunction(t)) {
145
- o.each(function () {
146
- var n = e(this);
147
- if (t.call(n[0], n, i)) {
148
- u = u.add(n);
149
- }
150
- });
151
- } else {
152
- i.group = t;
153
- if (t === p) {
154
- u = o;
155
- } else {
156
- o.each(function () {
157
- var n = e(this),
158
- r = n.data(d),
159
- s = i.delimeter && !e.isArray(r) ? r.split(i.delimeter) : r;
160
- if (e.inArray(t, s) > -1) {
161
- u = u.add(n);
162
- }
163
- });
164
- }
165
- }
166
- i._toggleFilterClasses(o, u);
167
- o = null;
168
- r = null;
169
- return u;
170
- },
171
- _toggleFilterClasses: function (t, n) {
172
- var r = "concealed",
173
- i = "filtered";
174
- t.filter(n).each(function () {
175
- var t = e(this);
176
- if (t.hasClass(r)) {
177
- t.removeClass(r);
178
- }
179
- if (!t.hasClass(i)) {
180
- t.addClass(i);
181
- }
182
- });
183
- t.not(n).each(function () {
184
- var t = e(this);
185
- if (!t.hasClass(r)) {
186
- t.addClass(r);
187
- }
188
- if (t.hasClass(i)) {
189
- t.removeClass(i);
190
- }
191
- });
192
- },
193
- _initItems: function (e) {
194
- e = e || this.$items;
195
- e.css(this.itemCss).data("position", { x: 0, y: 0 });
196
- },
197
- _updateItemCount: function () {
198
- this.visibleItems = this.$items.filter(".filtered").length;
199
- },
200
- _setTransition: function (e) {
201
- e.style[i] = f + " " + this.speed + "ms " + this.easing;
202
- },
203
- _setTransitions: function (e) {
204
- var t = this;
205
- e = e || t.$items;
206
- e.each(function () {
207
- t._setTransition(this);
208
- });
209
- },
210
- _setSequentialDelay: function (t) {
211
- var n = this;
212
- if (!n.supported) {
213
- return;
214
- }
215
- e.each(t, function (t, r) {
216
- r.style[s] = "0ms," + (t + 1) * n.sequentialFadeDelay + "ms";
217
- e(r).on(u + "." + n.unique, function (t) {
218
- var r = t.currentTarget;
219
- if (r === t.target) {
220
- r.style[s] = "0ms";
221
- e(r).off(u + "." + n.unique);
222
- }
223
- });
224
- });
225
- },
226
- _getItems: function () {
227
- return this.$el.children(this.itemSelector);
228
- },
229
- _getPreciseDimension: function (t, n) {
230
- var r;
231
- if (window.getComputedStyle) {
232
- r = window.getComputedStyle(t, null)[n];
233
- } else {
234
- r = e(t).css(n);
235
- }
236
- return parseFloat(r);
237
- },
238
- _getOuterWidth: function (t, n) {
239
- var r = t.offsetWidth;
240
- if (n) {
241
- var i = e(t).css(["marginLeft", "marginRight"]);
242
- var s = parseFloat(i.marginLeft) || 0;
243
- var o = parseFloat(i.marginRight) || 0;
244
- r += s + o;
245
- }
246
- return r;
247
- },
248
- _getOuterHeight: function (t, n) {
249
- var r = t.offsetHeight;
250
- if (n) {
251
- var i = e(t).css(["marginTop", "marginBottom"]);
252
- var s = parseFloat(i.marginTop) || 0;
253
- var o = parseFloat(i.marginBottom) || 0;
254
- r += s + o;
255
- }
256
- return r;
257
- },
258
- _getColumnSize: function (t, n) {
259
- var r;
260
- if (e.isFunction(this.columnWidth)) {
261
- r = this.columnWidth(n);
262
- } else if (this.useSizer) {
263
- r = this._getPreciseDimension(this.sizer, "width");
264
- } else if (this.columnWidth) {
265
- r = this.columnWidth;
266
- } else if (this.$items.length > 0) {
267
- r = this._getOuterWidth(this.$items[0], true);
268
- } else {
269
- r = n;
270
- }
271
- if (r === 0) {
272
- r = n;
273
- }
274
- return r + t;
275
- },
276
- _getGutterSize: function (t) {
277
- var n;
278
- if (e.isFunction(this.gutterWidth)) {
279
- n = this.gutterWidth(t);
280
- } else if (this.useSizer) {
281
- n = this._getPreciseDimension(this.sizer, "marginLeft");
282
- } else {
283
- n = this.gutterWidth;
284
- }
285
- return n;
286
- },
287
- _setColumns: function (e) {
288
- var t = e || this._getOuterWidth(this.$el[0]);
289
- var n = this._getGutterSize(t);
290
- var r = this._getColumnSize(n, t);
291
- var i = (t + n) / r;
292
- if (Math.abs(Math.round(i) - i) < 0.03) {
293
- i = Math.round(i);
294
- }
295
- this.cols = Math.max(Math.floor(i), 1);
296
- this.containerWidth = t;
297
- this.colWidth = r;
298
- },
299
- _setContainerSize: function () {
300
- this.$el.css("height", Math.max.apply(Math, this.colYs));
301
- },
302
- _fire: function (e, t) {
303
- this.$el.trigger(e + "." + h, t && t.length ? t : [this]);
304
- },
305
- _layout: function (t, n, r) {
306
- var i = this;
307
- n = n || i._filterEnd;
308
- e.each(t, function (t, s) {
309
- var o = e(s);
310
- var u = o.data();
311
- var a = u.position;
312
- var f = i._getItemPosition(o);
313
- o.data("position", f);
314
- if (f.x === a.x && f.y === a.y && u.scale === v) {
315
- return;
316
- }
317
- var l = { $item: o, x: f.x, y: f.y, scale: v };
318
- if (r) {
319
- l.skipTransition = true;
320
- l.opacity = 0;
321
- } else {
322
- l.opacity = 1;
323
- l.callback = n;
324
- }
325
- i.styleQueue.push(l);
326
- i._layoutList.push(o[0]);
327
- });
328
- i._processStyleQueue();
329
- i._setContainerSize();
330
- },
331
- _resetCols: function () {
332
- var e = this.cols;
333
- this.colYs = [];
334
- while (e--) {
335
- this.colYs.push(0);
336
- }
337
- },
338
- _reLayout: function () {
339
- this._resetCols();
340
- if (this.lastSort) {
341
- this.sort(this.lastSort, true);
342
- } else {
343
- this._layout(this.$items.filter(".filtered").get(), this._filterEnd);
344
- }
345
- },
346
- _getItemPosition: function (e) {
347
- var t = this;
348
- var n = t._getOuterWidth(e[0], true);
349
- var r = n / t.colWidth;
350
- if (Math.abs(Math.round(r) - r) < 0.03) {
351
- r = Math.round(r);
352
- }
353
- var i = Math.min(Math.ceil(r), t.cols);
354
- if (i === 1) {
355
- return t._placeItem(e, t.colYs);
356
- } else {
357
- var s = t.cols + 1 - i,
358
- o = [],
359
- u,
360
- a;
361
- for (a = 0; a < s; a++) {
362
- u = t.colYs.slice(a, a + i);
363
- o[a] = Math.max.apply(Math, u);
364
- }
365
- return t._placeItem(e, o);
366
- }
367
- },
368
- _placeItem: function (e, t) {
369
- var n = this,
370
- r = Math.min.apply(Math, t),
371
- i = 0;
372
- for (var s = 0, o = t.length; s < o; s++) {
373
- if (t[s] >= r - n.buffer && t[s] <= r + n.buffer) {
374
- i = s;
375
- break;
376
- }
377
- }
378
- var u = { x: Math.round(n.colWidth * i + n.offset.left), y: Math.round(r + n.offset.top) };
379
- var a = r + n._getOuterHeight(e[0], true),
380
- f = n.cols + 1 - o;
381
- for (s = 0; s < f; s++) {
382
- n.colYs[i + s] = a;
383
- }
384
- return u;
385
- },
386
- _shrink: function (t, n) {
387
- var r = this,
388
- i = t || r.$items.filter(".concealed");
389
- n = n || r._shrinkEnd;
390
- if (!i.length) {
391
- return;
392
- }
393
- r._fire(b.EventType.SHRINK);
394
- i.each(function () {
395
- var t = e(this);
396
- var i = t.data();
397
- var s = i.scale === m;
398
- if (s) {
399
- return;
400
- }
401
- var o = { $item: t, x: i.position.x, y: i.position.y, scale: m, opacity: 0, callback: n };
402
- r.styleQueue.push(o);
403
- r._shrinkList.push(t[0]);
404
- });
405
- },
406
- _onResize: function () {
407
- if (!this.enabled || this.destroyed) {
408
- return;
409
- }
410
- var e = this._getOuterWidth(this.$el[0]);
411
- if (e === this.containerWidth) {
412
- return;
413
- }
414
- this.resized();
415
- },
416
- _getItemTransformString: function (e, t, n) {
417
- if (c) {
418
- return "translate3d(" + e + "px, " + t + "px, 0) scale3d(" + n + ", " + n + ", 1)";
419
- } else {
420
- return "translate(" + e + "px, " + t + "px) scale(" + n + ", " + n + ")";
421
- }
422
- },
423
- _getStylesForTransition: function (e) {
424
- var t = { opacity: e.opacity };
425
- if (this.supported) {
426
- if (e.x !== n) {
427
- t[a] = this._getItemTransformString(e.x, e.y, e.scale);
428
- }
429
- } else {
430
- t.left = e.x;
431
- t.top = e.y;
432
- }
433
- if (e.opacity === 1) {
434
- t.visibility = "visible";
435
- }
436
- return t;
437
- },
438
- _transition: function (e) {
439
- e.$item.data("scale", e.scale);
440
- var t = this._getStylesForTransition(e);
441
- this._startItemAnimation(e.$item, t, e.callback);
442
- },
443
- _startItemAnimation: function (t, n, r) {
444
- var i = n.opacity === 1;
445
- var s = e.proxy(this._handleItemAnimationEnd, this, r || e.noop, t[0], i);
446
- if (this.supported) {
447
- t.css(n);
448
- if (this.initialized) {
449
- t.on(u + ".shuffleitem", s);
450
- } else {
451
- s();
452
- }
453
- } else {
454
- if ("visibility" in n) {
455
- t.css("visibility", n.visibility);
456
- delete n.visibility;
457
- }
458
- t.stop(true).animate(n, this.speed, "swing", s);
459
- }
460
- },
461
- _handleItemAnimationEnd: function (t, n, r, i) {
462
- if (i) {
463
- if (i.target === n) {
464
- e(n).off(".shuffleitem");
465
- } else {
466
- return;
467
- }
468
- }
469
- if (this._layoutList.length > 0 && e.inArray(n, this._layoutList) > -1) {
470
- this._fire(b.EventType.LAYOUT);
471
- t.call(this);
472
- this._layoutList.length = 0;
473
- } else if (this._shrinkList.length > 0 && e.inArray(n, this._shrinkList) > -1) {
474
- t.call(this);
475
- this._shrinkList.length = 0;
476
- }
477
- if (!r) {
478
- n.style.visibility = "hidden";
479
- }
480
- },
481
- _processStyleQueue: function () {
482
- var t = this;
483
- e.each(this.styleQueue, function (e, n) {
484
- if (n.skipTransition) {
485
- t._skipTransition(n.$item[0], function () {
486
- n.$item.css(t._getStylesForTransition(n));
487
- });
488
- } else {
489
- t._transition(n);
490
- }
491
- });
492
- t.styleQueue.length = 0;
493
- },
494
- _shrinkEnd: function () {
495
- this._fire(b.EventType.SHRUNK);
496
- },
497
- _filterEnd: function () {
498
- this._fire(b.EventType.FILTERED);
499
- },
500
- _sortEnd: function () {
501
- this._fire(b.EventType.SORTED);
502
- },
503
- _skipTransition: function (t, n, r) {
504
- var i = t.style[o];
505
- t.style[o] = "0ms";
506
- if (e.isFunction(n)) {
507
- n();
508
- } else {
509
- t.style[n] = r;
510
- }
511
- var s = t.offsetWidth;
512
- s = null;
513
- t.style[o] = i;
514
- },
515
- _addItems: function (e, t, r) {
516
- var i = this;
517
- if (!i.supported) {
518
- t = false;
519
- }
520
- e.addClass("shuffle-item");
521
- i._initItems(e);
522
- i._setTransitions(e);
523
- i.$items = i._getItems();
524
- e.css("opacity", 0);
525
- var s = i._filter(n, e);
526
- var o = s.get();
527
- i._updateItemCount();
528
- if (t) {
529
- i._layout(o, null, true);
530
- if (r) {
531
- i._setSequentialDelay(s);
532
- }
533
- i._revealAppended(s);
534
- } else {
535
- i._layout(o);
536
- }
537
- },
538
- _revealAppended: function (t) {
539
- var n = this;
540
- setTimeout(function () {
541
- t.each(function (t, r) {
542
- n._transition({ $item: e(r), opacity: 1, scale: v });
543
- });
544
- }, n.revealAppendedDelay);
545
- },
546
- shuffle: function (e, t) {
547
- var n = this;
548
- if (!n.enabled) {
549
- return;
550
- }
551
- if (!e) {
552
- e = p;
553
- }
554
- n._filter(e);
555
- n.lastFilter = e;
556
- n._updateItemCount();
557
- n._shrink();
558
- if (t) {
559
- n.lastSort = t;
560
- }
561
- n._reLayout();
562
- },
563
- sort: function (e, t) {
564
- var n = this,
565
- r = n.$items.filter(".filtered").sorted(e);
566
- if (!t) {
567
- n._resetCols();
568
- }
569
- n._layout(r, function () {
570
- if (t) {
571
- n._filterEnd();
572
- }
573
- n._sortEnd();
574
- });
575
- n.lastSort = e;
576
- },
577
- resized: function (e) {
578
- if (this.enabled) {
579
- if (!e) {
580
- this._setColumns();
581
- }
582
- this._reLayout();
583
- }
584
- },
585
- layout: function () {
586
- this.update(true);
587
- },
588
- update: function (e) {
589
- this.resized(e);
590
- },
591
- appended: function (e, t, n) {
592
- t = t === false ? false : true;
593
- n = n === false ? false : true;
594
- this._addItems(e, t, n);
595
- },
596
- disable: function () {
597
- this.enabled = false;
598
- },
599
- enable: function (e) {
600
- this.enabled = true;
601
- if (e !== false) {
602
- this.update();
603
- }
604
- },
605
- remove: function (e) {
606
- if (!e.length || !e.jquery) {
607
- return;
608
- }
609
- var t = this;
610
- t._shrink(e, function () {
611
- var t = this;
612
- e.remove();
613
- setTimeout(function () {
614
- t.$items = t._getItems();
615
- t.layout();
616
- t._updateItemCount();
617
- t._fire(b.EventType.REMOVED, [e, t]);
618
- e = null;
619
- }, 0);
620
- });
621
- t._processStyleQueue();
622
- return t;
623
- },
624
- destroy: function () {
625
- var e = this;
626
- e.$window.off("." + e.unique);
627
- e.$el.removeClass(h).removeAttr("style").removeData(h);
628
- e.$items.removeAttr("style").removeClass("concealed filtered shuffle-item");
629
- e.$window = null;
630
- e.$items = null;
631
- e.$el = null;
632
- e.$sizer = null;
633
- e.sizer = null;
634
- e.destroyed = true;
635
- },
636
- };
637
- b.options = {
638
- group: p,
639
- speed: 250,
640
- easing: "ease-out",
641
- itemSelector: "",
642
- sizer: null,
643
- gutterWidth: 0,
644
- columnWidth: 0,
645
- delimeter: null,
646
- buffer: 0,
647
- initialSort: null,
648
- throttle: g,
649
- throttleTime: 300,
650
- sequentialFadeDelay: 150,
651
- supported: l,
652
- };
653
- b.settings = { $sizer: null, useSizer: false, itemCss: { position: "absolute", top: 0, left: 0 }, offset: { top: 0, left: 0 }, revealAppendedDelay: 300, enabled: true, destroyed: false, initialized: false, styleQueue: [] };
654
- e.fn.shuffle = function (t) {
655
- var n = Array.prototype.slice.call(arguments, 1);
656
- return this.each(function () {
657
- var r = e(this),
658
- i = r.data(h);
659
- if (!i) {
660
- i = new b(r, t);
661
- r.data(h, i);
662
- }
663
- if (typeof t === "string" && i[t]) {
664
- i[t].apply(i, n);
665
- }
666
- });
667
- };
668
- e.fn.sorted = function (t) {
669
- var r = e.extend({}, e.fn.sorted.defaults, t),
670
- i = this.get(),
671
- s = false;
672
- if (!i.length) {
673
- return [];
674
- }
675
- if (r.randomize) {
676
- return e.fn.sorted.randomize(i);
677
- }
678
- if (r.by !== e.noop && r.by !== null && r.by !== n) {
679
- i.sort(function (t, i) {
680
- if (s) {
681
- return 0;
682
- }
683
- var o = r.by(e(t)),
684
- u = r.by(e(i));
685
- if (o === n && u === n) {
686
- s = true;
687
- return 0;
688
- }
689
- if (o === "sortFirst" || u === "sortLast") {
690
- return -1;
691
- }
692
- if (o === "sortLast" || u === "sortFirst") {
693
- return 1;
694
- }
695
- return o < u ? -1 : o > u ? 1 : 0;
696
- });
697
- }
698
- if (s) {
699
- return this.get();
700
- }
701
- if (r.reverse) {
702
- i.reverse();
703
- }
704
- return i;
705
- };
706
- e.fn.sorted.defaults = { reverse: false, by: null, randomize: false };
707
- e.fn.sorted.randomize = function (e) {
708
- var t = e.length,
709
- n,
710
- r;
711
- if (!t) {
712
- return e;
713
- }
714
- while (--t) {
715
- r = Math.floor(Math.random() * (t + 1));
716
- n = e[r];
717
- e[r] = e[t];
718
- e[t] = n;
719
- }
720
- return e;
721
- };
722
- return b;
723
- });
1
+ !function(t){"function"==typeof define&&define.amd?define(["jquery","modernizr"],t):t(window.jQuery,window.Modernizr)}(function(t,i,e){"use strict";if("object"!=typeof i)throw new Error("Shuffle.js requires Modernizr.\nhttp://vestride.github.io/Shuffle/#dependencies");var s,n=i.prefixed("transition"),r=i.prefixed("transitionDelay"),o=i.prefixed("transitionDuration"),a={WebkitTransition:"webkitTransitionEnd",transition:"transitionend"}[n],l=i.prefixed("transform"),h=(s=l)?s.replace(/([A-Z])/g,function(t,i){return"-"+i.toLowerCase()}).replace(/^ms-/,"-ms-"):"",u=i.csstransforms&&i.csstransitions,f=i.csstransforms3d;var d=0,c=function(i,e){e=e||{},t.extend(this,c.options,e,c.settings),this.$el=t(i),this.$window=t(window),this.unique="shuffle_"+d++,this._fire(c.EventType.LOADING),this._init(),setTimeout(t.proxy(function(){this.initialized=!0,this._fire(c.EventType.DONE)},this),16)};return c.EventType={LOADING:"loading",DONE:"done",SHRINK:"shrink",SHRUNK:"shrunk",FILTER:"filter",FILTERED:"filtered",SORTED:"sorted",LAYOUT:"layout",REMOVED:"removed"},c.prototype={_init:function(){var i,e,s=this,r=t.proxy(s._onResize,s),o=s.throttle?s.throttle(r,s.throttleTime):r,a=s.initialSort?s.initialSort:null;s._layoutList=[],s._shrinkList=[],s._setVars(),s._resetCols(),s._addClasses(),s._initItems(),s.$window.on("resize.shuffle."+s.unique,o),i=s.$el.css(["paddingLeft","paddingRight","position"]),e=s._getOuterWidth(s.$el[0]),"static"===i.position&&(s.$el[0].style.position="relative"),s.offset={left:parseInt(i.paddingLeft,10)||0,top:parseInt(i.paddingTop,10)||0},s._setColumns(parseInt(e,10)),s.shuffle(s.group,a),s.supported&&setTimeout(function(){s._setTransitions(),s.$el[0].style[n]="height "+s.speed+"ms "+s.easing},0)},_addClasses:function(){this.$el.addClass("shuffle"),this.$items.addClass("shuffle-item filtered")},_setVars:function(){var i=this.columnWidth;this.$items=this._getItems(),0===i&&null!==this.sizer&&(i=this.sizer),"string"==typeof i?this.$sizer=this.$el.find(i):i&&i.nodeType&&1===i.nodeType?this.$sizer=t(i):i&&i.jquery&&(this.$sizer=i),this.$sizer&&this.$sizer.length&&(this.useSizer=!0,this.sizer=this.$sizer[0])},_filter:function(i,s){var n=this,r=s!==e?s:n.$items,o=t();return i=i||n.lastFilter,n._fire(c.EventType.FILTER),t.isFunction(i)?r.each(function(){var e=t(this);i.call(e[0],e,n)&&(o=o.add(e))}):(n.group=i,"all"===i?o=r:r.each(function(){var e=t(this),s=e.data("groups"),r=n.delimeter&&!t.isArray(s)?s.split(n.delimeter):s;t.inArray(i,r)>-1&&(o=o.add(e))})),n._toggleFilterClasses(r,o),r=null,s=null,o},_toggleFilterClasses:function(i,e){i.filter(e).each(function(){var i=t(this);i.hasClass("concealed")&&i.removeClass("concealed"),i.hasClass("filtered")||i.addClass("filtered")}),i.not(e).each(function(){var i=t(this);i.hasClass("concealed")||i.addClass("concealed"),i.hasClass("filtered")&&i.removeClass("filtered")})},_initItems:function(t){(t=t||this.$items).css(this.itemCss).data("position",{x:0,y:0})},_updateItemCount:function(){this.visibleItems=this.$items.filter(".filtered").length},_setTransition:function(t){t.style[n]=h+" "+this.speed+"ms "+this.easing},_setTransitions:function(t){var i=this;(t=t||i.$items).each(function(){i._setTransition(this)})},_setSequentialDelay:function(i){var e=this;e.supported&&t.each(i,function(i,s){s.style[r]="0ms,"+(i+1)*e.sequentialFadeDelay+"ms",t(s).on(a+"."+e.unique,function(i){var s=i.currentTarget;s===i.target&&(s.style[r]="0ms",t(s).off(a+"."+e.unique))})})},_getItems:function(){return this.$el.children(this.itemSelector)},_getPreciseDimension:function(i,e){var s;return s=window.getComputedStyle?window.getComputedStyle(i,null)[e]:t(i).css(e),parseFloat(s)},_getOuterWidth:function(i,e){var s=i.offsetWidth;if(e){var n=t(i).css(["marginLeft","marginRight"]);s+=(parseFloat(n.marginLeft)||0)+(parseFloat(n.marginRight)||0)}return s},_getOuterHeight:function(i,e){var s=i.offsetHeight;if(e){var n=t(i).css(["marginTop","marginBottom"]);s+=(parseFloat(n.marginTop)||0)+(parseFloat(n.marginBottom)||0)}return s},_getColumnSize:function(i,e){var s;return 0===(s=t.isFunction(this.columnWidth)?this.columnWidth(e):this.useSizer?this._getPreciseDimension(this.sizer,"width"):this.columnWidth?this.columnWidth:this.$items.length>0?this._getOuterWidth(this.$items[0],!0):e)&&(s=e),s+i},_getGutterSize:function(i){return t.isFunction(this.gutterWidth)?this.gutterWidth(i):this.useSizer?this._getPreciseDimension(this.sizer,"marginLeft"):this.gutterWidth},_setColumns:function(t){var i=t||this._getOuterWidth(this.$el[0]),e=this._getGutterSize(i),s=this._getColumnSize(e,i),n=(i+e)/s;Math.abs(Math.round(n)-n)<.03&&(n=Math.round(n)),this.cols=Math.max(Math.floor(n),1),this.containerWidth=i,this.colWidth=s},_setContainerSize:function(){this.$el.css("height",Math.max.apply(Math,this.colYs))},_fire:function(t,i){this.$el.trigger(t+".shuffle",i&&i.length?i:[this])},_layout:function(i,e,s){var n=this;e=e||n._filterEnd,t.each(i,function(i,r){var o=t(r),a=o.data(),l=a.position,h=n._getItemPosition(o);if(o.data("position",h),h.x!==l.x||h.y!==l.y||1!==a.scale){var u={$item:o,x:h.x,y:h.y,scale:1};s?(u.skipTransition=!0,u.opacity=0):(u.opacity=1,u.callback=e),n.styleQueue.push(u),n._layoutList.push(o[0])}}),n._processStyleQueue(),n._setContainerSize()},_resetCols:function(){var t=this.cols;for(this.colYs=[];t--;)this.colYs.push(0)},_reLayout:function(){this._resetCols(),this.lastSort?this.sort(this.lastSort,!0):this._layout(this.$items.filter(".filtered").get(),this._filterEnd)},_getItemPosition:function(t){var i=this._getOuterWidth(t[0],!0)/this.colWidth;Math.abs(Math.round(i)-i)<.03&&(i=Math.round(i));var e=Math.min(Math.ceil(i),this.cols);if(1===e)return this._placeItem(t,this.colYs);var s,n,r=this.cols+1-e,o=[];for(n=0;n<r;n++)s=this.colYs.slice(n,n+e),o[n]=Math.max.apply(Math,s);return this._placeItem(t,o)},_placeItem:function(t,i){for(var e=Math.min.apply(Math,i),s=0,n=0,r=i.length;n<r;n++)if(i[n]>=e-this.buffer&&i[n]<=e+this.buffer){s=n;break}var o={x:Math.round(this.colWidth*s+this.offset.left),y:Math.round(e+this.offset.top)},a=e+this._getOuterHeight(t[0],!0),l=this.cols+1-r;for(n=0;n<l;n++)this.colYs[s+n]=a;return o},_shrink:function(i,e){var s=this,n=i||s.$items.filter(".concealed");e=e||s._shrinkEnd,n.length&&(s._fire(c.EventType.SHRINK),n.each(function(){var i=t(this),n=i.data();if(!(.001===n.scale)){var r={$item:i,x:n.position.x,y:n.position.y,scale:.001,opacity:0,callback:e};s.styleQueue.push(r),s._shrinkList.push(i[0])}}))},_onResize:function(){this.enabled&&!this.destroyed&&(this._getOuterWidth(this.$el[0])!==this.containerWidth&&this.resized())},_getItemTransformString:function(t,i,e){return f?"translate3d("+t+"px, "+i+"px, 0) scale3d("+e+", "+e+", 1)":"translate("+t+"px, "+i+"px) scale("+e+", "+e+")"},_getStylesForTransition:function(t){var i={opacity:t.opacity};return this.supported?t.x!==e&&(i[l]=this._getItemTransformString(t.x,t.y,t.scale)):(i.left=t.x,i.top=t.y),1===t.opacity&&(i.visibility="visible"),i},_transition:function(t){t.$item.data("scale",t.scale);var i=this._getStylesForTransition(t);this._startItemAnimation(t.$item,i,t.callback)},_startItemAnimation:function(i,e,s){var n=1===e.opacity,r=t.proxy(this._handleItemAnimationEnd,this,s||t.noop,i[0],n);this.supported?(i.css(e),this.initialized?i.on(a+".shuffleitem",r):r()):("visibility"in e&&(i.css("visibility",e.visibility),delete e.visibility),i.stop(!0).animate(e,this.speed,"swing",r))},_handleItemAnimationEnd:function(i,e,s,n){if(n){if(n.target!==e)return;t(e).off(".shuffleitem")}this._layoutList.length>0&&t.inArray(e,this._layoutList)>-1?(this._fire(c.EventType.LAYOUT),i.call(this),this._layoutList.length=0):this._shrinkList.length>0&&t.inArray(e,this._shrinkList)>-1&&(i.call(this),this._shrinkList.length=0),s||(e.style.visibility="hidden")},_processStyleQueue:function(){var i=this;t.each(this.styleQueue,function(t,e){e.skipTransition?i._skipTransition(e.$item[0],function(){e.$item.css(i._getStylesForTransition(e))}):i._transition(e)}),i.styleQueue.length=0},_shrinkEnd:function(){this._fire(c.EventType.SHRUNK)},_filterEnd:function(){this._fire(c.EventType.FILTERED)},_sortEnd:function(){this._fire(c.EventType.SORTED)},_skipTransition:function(i,e,s){var n=i.style[o];i.style[o]="0ms",t.isFunction(e)?e():i.style[e]=s;i.offsetWidth;i.style[o]=n},_addItems:function(t,i,s){this.supported||(i=!1),t.addClass("shuffle-item"),this._initItems(t),this._setTransitions(t),this.$items=this._getItems(),t.css("opacity",0);var n=this._filter(e,t),r=n.get();this._updateItemCount(),i?(this._layout(r,null,!0),s&&this._setSequentialDelay(n),this._revealAppended(n)):this._layout(r)},_revealAppended:function(i){var e=this;setTimeout(function(){i.each(function(i,s){e._transition({$item:t(s),opacity:1,scale:1})})},e.revealAppendedDelay)},shuffle:function(t,i){this.enabled&&(t||(t="all"),this._filter(t),this.lastFilter=t,this._updateItemCount(),this._shrink(),i&&(this.lastSort=i),this._reLayout())},sort:function(t,i){var e=this,s=e.$items.filter(".filtered").sorted(t);i||e._resetCols(),e._layout(s,function(){i&&e._filterEnd(),e._sortEnd()}),e.lastSort=t},resized:function(t){this.enabled&&(t||this._setColumns(),this._reLayout())},layout:function(){this.update(!0)},update:function(t){this.resized(t)},appended:function(t,i,e){i=!1!==i,e=!1!==e,this._addItems(t,i,e)},disable:function(){this.enabled=!1},enable:function(t){this.enabled=!0,!1!==t&&this.update()},remove:function(t){if(t.length&&t.jquery){return this._shrink(t,function(){var i=this;t.remove(),setTimeout(function(){i.$items=i._getItems(),i.layout(),i._updateItemCount(),i._fire(c.EventType.REMOVED,[t,i]),t=null},0)}),this._processStyleQueue(),this}},destroy:function(){this.$window.off("."+this.unique),this.$el.removeClass("shuffle").removeAttr("style").removeData("shuffle"),this.$items.removeAttr("style").removeClass("concealed filtered shuffle-item"),this.$window=null,this.$items=null,this.$el=null,this.$sizer=null,this.sizer=null,this.destroyed=!0}},c.options={group:"all",speed:250,easing:"ease-out",itemSelector:"",sizer:null,gutterWidth:0,columnWidth:0,delimeter:null,buffer:0,initialSort:null,throttle:function(i,e,s){var n,r,o,a=null,l=0;s=s||{};var h=function(){l=!1===s.leading?0:t.now(),a=null,o=i.apply(n,r),n=r=null};return function(){var u=t.now();l||!1!==s.leading||(l=u);var f=e-(u-l);return n=this,r=arguments,f<=0||f>e?(clearTimeout(a),a=null,l=u,o=i.apply(n,r),n=r=null):a||!1===s.trailing||(a=setTimeout(h,f)),o}},throttleTime:300,sequentialFadeDelay:150,supported:u},c.settings={$sizer:null,useSizer:!1,itemCss:{position:"absolute",top:0,left:0},offset:{top:0,left:0},revealAppendedDelay:300,enabled:!0,destroyed:!1,initialized:!1,styleQueue:[]},t.fn.shuffle=function(i){var e=Array.prototype.slice.call(arguments,1);return this.each(function(){var s=t(this),n=s.data("shuffle");n||(n=new c(s,i),s.data("shuffle",n)),"string"==typeof i&&n[i]&&n[i].apply(n,e)})},t.fn.sorted=function(i){var s=t.extend({},t.fn.sorted.defaults,i),n=this.get(),r=!1;return n.length?s.randomize?t.fn.sorted.randomize(n):(s.by!==t.noop&&null!==s.by&&s.by!==e&&n.sort(function(i,n){if(r)return 0;var o=s.by(t(i)),a=s.by(t(n));return o===e&&a===e?(r=!0,0):"sortFirst"===o||"sortLast"===a?-1:"sortLast"===o||"sortFirst"===a?1:o<a?-1:o>a?1:0}),r?this.get():(s.reverse&&n.reverse(),n)):[]},t.fn.sorted.defaults={reverse:!1,by:null,randomize:!1},t.fn.sorted.randomize=function(t){var i,e,s=t.length;if(!s)return t;for(;--s;)i=t[e=Math.floor(Math.random()*(s+1))],t[e]=t[s],t[s]=i;return t},c});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -63,7 +63,7 @@ function sfsi_new_intro_banner_hide()
63
  echo json_encode(array("wrong_nonce"));
64
  exit;
65
  }
66
- $up_hide_option =array(
67
  'sfsi_display_section' => true,
68
  'sfsi_display_section2' => true,
69
  );
@@ -80,7 +80,7 @@ function sfsi_new_intro_banner_show()
80
  echo json_encode(array("wrong_nonce"));
81
  exit;
82
  }
83
- $up_hide_option =array(
84
  'sfsi_display_section' => $_POST["sfsi_display_section"],
85
  'sfsi_display_section2' => true,
86
  );
@@ -583,7 +583,7 @@ function sfsi_options_updater5()
583
  'sfsi_icons_sharing_and_traffic_tips' => sanitize_text_field($sfsi_icons_sharing_and_traffic_tips),
584
  'sfsi_whatsappIcon_order' => intval($sfsi_whatsappIcon_order),
585
 
586
-
587
  );
588
 
589
  if ("yes" == $sfsi_icons_suppress_errors) {
@@ -958,7 +958,7 @@ function sfsi_getCounts($for_resposive = false)
958
  'wechat_count' => '',
959
  'share_count' => '',
960
  'whatsapp_count' => ''
961
-
962
  );
963
 
964
  /* get rss count */
@@ -1208,7 +1208,7 @@ function sfsi_bannerOption()
1208
  // Get all themes data which incudes nobrainer
1209
  $themeDataArr = $objThemeCheck->sfsi_plus_get_themeData();
1210
  $matchFound = false;
1211
-
1212
  foreach ($themeDataArr as $themeDataObj) {
1213
 
1214
  if (isset($themeDataObj->themeName) && strlen($themeDataObj->themeName) > 0) {
@@ -1222,18 +1222,19 @@ function sfsi_bannerOption()
1222
  $matchFound = true;
1223
 
1224
  $themeName = strtolower($themeName);
 
1225
  if (get_option("show_new_notification") == "yes") {
1226
  $objThemeCheck->sfsi_plus_bannereHtml(
1227
  $themeDataObj->headline,
1228
- $themeName,
1229
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1230
  $themeDataObj->bottomtext
1231
  );
1232
  }
1233
 
1234
  $objThemeCheck->sfsi_plus_bannereHtml_main(
1235
- $themeDataObj->headline,
1236
  $themeName,
 
1237
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1238
  $themeDataObj->bottomtext
1239
  );
@@ -1257,17 +1258,18 @@ function sfsi_bannerOption()
1257
  $matchFound = true;
1258
 
1259
  $themeName = strtolower($themeName);
 
1260
  if (get_option("show_new_notification") == "yes") {
1261
  $objThemeCheck->sfsi_plus_bannereHtml(
1262
  $themeDataObj->headline,
1263
- $themeName,
1264
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1265
  $themeDataObj->bottomtext
1266
  );
1267
  }
1268
  $objThemeCheck->sfsi_plus_bannereHtml_main(
1269
- $themeDataObj->headline,
1270
  $themeName,
 
1271
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1272
  $themeDataObj->bottomtext
1273
  );
@@ -1291,17 +1293,18 @@ function sfsi_bannerOption()
1291
  $matchFound = true;
1292
 
1293
  $themeName = strtolower($themeName);
 
1294
  if (get_option("show_new_notification") == "yes") {
1295
  $objThemeCheck->sfsi_plus_bannereHtml(
1296
  $themeDataObj->headline,
1297
- $themeName,
1298
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1299
  $themeDataObj->bottomtext
1300
  );
1301
  }
1302
  $objThemeCheck->sfsi_plus_bannereHtml_main(
1303
- $themeDataObj->headline,
1304
  $themeName,
 
1305
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1306
  $themeDataObj->bottomtext
1307
  );
@@ -1325,17 +1328,18 @@ function sfsi_bannerOption()
1325
  $matchFound = true;
1326
 
1327
  $themeName = strtolower($themeName);
 
1328
  if (get_option("show_new_notification") == "yes") {
1329
  $objThemeCheck->sfsi_plus_bannereHtml(
1330
  $themeDataObj->headline,
1331
- $themeName,
1332
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1333
  $themeDataObj->bottomtext
1334
  );
1335
  }
1336
  $objThemeCheck->sfsi_plus_bannereHtml_main(
1337
- $themeDataObj->headline,
1338
  $themeName,
 
1339
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1340
  $themeDataObj->bottomtext
1341
  );
63
  echo json_encode(array("wrong_nonce"));
64
  exit;
65
  }
66
+ $up_hide_option = array(
67
  'sfsi_display_section' => true,
68
  'sfsi_display_section2' => true,
69
  );
80
  echo json_encode(array("wrong_nonce"));
81
  exit;
82
  }
83
+ $up_hide_option = array(
84
  'sfsi_display_section' => $_POST["sfsi_display_section"],
85
  'sfsi_display_section2' => true,
86
  );
583
  'sfsi_icons_sharing_and_traffic_tips' => sanitize_text_field($sfsi_icons_sharing_and_traffic_tips),
584
  'sfsi_whatsappIcon_order' => intval($sfsi_whatsappIcon_order),
585
 
586
+
587
  );
588
 
589
  if ("yes" == $sfsi_icons_suppress_errors) {
958
  'wechat_count' => '',
959
  'share_count' => '',
960
  'whatsapp_count' => ''
961
+
962
  );
963
 
964
  /* get rss count */
1208
  // Get all themes data which incudes nobrainer
1209
  $themeDataArr = $objThemeCheck->sfsi_plus_get_themeData();
1210
  $matchFound = false;
1211
+ $sfsi_icons_url = " https://www.ultimatelysocial.com/";
1212
  foreach ($themeDataArr as $themeDataObj) {
1213
 
1214
  if (isset($themeDataObj->themeName) && strlen($themeDataObj->themeName) > 0) {
1222
  $matchFound = true;
1223
 
1224
  $themeName = strtolower($themeName);
1225
+ $themeUrl = $sfsi_icons_url . $themeName;
1226
  if (get_option("show_new_notification") == "yes") {
1227
  $objThemeCheck->sfsi_plus_bannereHtml(
1228
  $themeDataObj->headline,
1229
+ $themeUrl,
1230
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1231
  $themeDataObj->bottomtext
1232
  );
1233
  }
1234
 
1235
  $objThemeCheck->sfsi_plus_bannereHtml_main(
 
1236
  $themeName,
1237
+ $themeUrl,
1238
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1239
  $themeDataObj->bottomtext
1240
  );
1258
  $matchFound = true;
1259
 
1260
  $themeName = strtolower($themeName);
1261
+ $themeUrl = $sfsi_icons_url . $themeName;
1262
  if (get_option("show_new_notification") == "yes") {
1263
  $objThemeCheck->sfsi_plus_bannereHtml(
1264
  $themeDataObj->headline,
1265
+ $themeUrl,
1266
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1267
  $themeDataObj->bottomtext
1268
  );
1269
  }
1270
  $objThemeCheck->sfsi_plus_bannereHtml_main(
 
1271
  $themeName,
1272
+ $themeUrl,
1273
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1274
  $themeDataObj->bottomtext
1275
  );
1293
  $matchFound = true;
1294
 
1295
  $themeName = strtolower($themeName);
1296
+ $themeUrl = $sfsi_icons_url . $themeName;
1297
  if (get_option("show_new_notification") == "yes") {
1298
  $objThemeCheck->sfsi_plus_bannereHtml(
1299
  $themeDataObj->headline,
1300
+ $themeUrl,
1301
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1302
  $themeDataObj->bottomtext
1303
  );
1304
  }
1305
  $objThemeCheck->sfsi_plus_bannereHtml_main(
 
1306
  $themeName,
1307
+ $themeUrl,
1308
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1309
  $themeDataObj->bottomtext
1310
  );
1328
  $matchFound = true;
1329
 
1330
  $themeName = strtolower($themeName);
1331
+ $themeUrl = $sfsi_icons_url . $themeName;
1332
  if (get_option("show_new_notification") == "yes") {
1333
  $objThemeCheck->sfsi_plus_bannereHtml(
1334
  $themeDataObj->headline,
1335
+ $themeUrl,
1336
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1337
  $themeDataObj->bottomtext
1338
  );
1339
  }
1340
  $objThemeCheck->sfsi_plus_bannereHtml_main(
 
1341
  $themeName,
1342
+ $themeUrl,
1343
  SFSI_PLUGURL . 'images/website_theme/' . $themeName . '.png',
1344
  $themeDataObj->bottomtext
1345
  );
libs/controllers/sfsi_class_theme_check.php CHANGED
@@ -515,8 +515,9 @@ class sfsi_ThemeCheck
515
  {
516
  echo '<script type="text/javascript">
517
  SFSI(".sfsi_webtheme").show();
 
518
  SFSI(".icns_tab_3.sfsi_premium_ad span ").css("background-image", \'url('.$bannerImage.')\');
519
- SFSI(".sfsi_premium_ad_lable").text(\''.$siteLink.'\');
520
  </script>';
521
  }
522
 
515
  {
516
  echo '<script type="text/javascript">
517
  SFSI(".sfsi_webtheme").show();
518
+ SFSI(".sfsi_webtheme a").attr("href", "'.$siteLink.'");
519
  SFSI(".icns_tab_3.sfsi_premium_ad span ").css("background-image", \'url('.$bannerImage.')\');
520
+ SFSI(".sfsi_premium_ad_lable").text(\''.$title.'\');
521
  </script>';
522
  }
523
 
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -15,128 +15,129 @@ function sfsi_social_buttons_below($content)
15
  $content = $content . sfsi_social_responsive_buttons(null, $sfsi_section6);
16
  }
17
  } else {
18
- //checking for standard icons
19
- if (!isset($sfsi_section6['sfsi_rectsub'])) {
20
- $sfsi_section6['sfsi_rectsub'] = 'no';
21
- }
22
- if (!isset($sfsi_section6['sfsi_rectfb'])) {
23
- $sfsi_section6['sfsi_rectfb'] = 'yes';
24
- }
25
- if (!isset($sfsi_section6['sfsi_rectshr'])) {
26
- $sfsi_section6['sfsi_rectshr'] = 'yes';
27
- }
28
- if (!isset($sfsi_section6['sfsi_recttwtr'])) {
29
- $sfsi_section6['sfsi_recttwtr'] = 'no';
30
- }
31
- if (!isset($sfsi_section6['sfsi_rectpinit'])) {
32
- $sfsi_section6['sfsi_rectpinit'] = 'no';
33
- }
34
- if (!isset($sfsi_section6['sfsi_rectfbshare'])) {
35
- $sfsi_section6['sfsi_rectfbshare'] = 'no';
36
- }
37
- //checking for standard icons
38
- /* check if option activated in admin or not */
39
-
40
- if ($sfsi_section9["sfsi_show_via_afterposts"] == "yes" && $sfsi_section6["sfsi_display_button_type"] == "standard_buttons") {
41
- $permalink = add_query_arg($_GET ? $_GET : array(), get_permalink($post->ID));
42
- $title = get_the_title();
43
- $sfsiLikeWith = "45px;";
44
- /* check for counter display */
45
- if ($sfsi_section4['sfsi_display_counts'] == "yes" && $sfsi_section4['sfsi_original_counts'] == "yes") {
46
- $show_count = 1;
47
- $sfsiLikeWith = "125px;";
48
- } else {
49
- $show_count = 0;
50
  }
51
- $txt = (isset($sfsi_section6['sfsi_textBefor_icons'])) ? $sfsi_section6['sfsi_textBefor_icons'] : "Please follow and like us:";
52
- $float = $sfsi_section6['sfsi_icons_alignment'];
53
- if ( ($sfsi_section6['sfsi_rectsub'] == 'yes' || $sfsi_section6['sfsi_rectfb'] == 'yes' || $sfsi_section6['sfsi_rectshr'] == 'yes' || $sfsi_section6['sfsi_recttwtr'] == 'yes' || $sfsi_section6['sfsi_rectpinit'] == 'yes' || $sfsi_section6['sfsi_rectfbshare'] == 'yes')) {
54
- $icons = "<div class='sfsi_Sicons' style='width: 100%; display: inline-block; vertical-align: middle; text-align:" . $float . "'><div style='margin:0px 8px 0px 0px; line-height: 24px'><span>" . $txt . "</span></div>";
55
- } else {
56
- $icons = "<div style='margin:0'>";
57
  }
58
- //adding wrapper div
59
- $icons .= "<div class='sfsi_socialwpr'>";
60
- if ($sfsi_section6['sfsi_rectsub'] == 'yes' ) {
61
-
62
- $icons .= "<div class='sf_subscrbe sf_icon' style='text-align:left;vertical-align: middle;float:left;width:auto'>" . sfsi_Subscribelike($permalink, $show_count) . "</div>";
63
  }
64
- if ( $sfsi_section6['sfsi_rectfb'] == 'yes') {
65
-
66
- $icons .= "<div class='sf_fb sf_icon' style='text-align:left;vertical-align: middle;'>" . sfsi_FBlike($permalink, $show_count) . "</div>";
67
  }
68
- if ($sfsi_section6['sfsi_rectfbshare'] == 'yes') {
69
- $sfsi_section4 = unserialize(get_option('sfsi_section4_options', false));
70
- $socialObj = new sfsi_SocialHelper();
71
- $count_html = "";
72
- if ($show_count > 0) {
73
- if ($sfsi_section4['sfsi_facebook_countsDisplay'] == "yes" && $sfsi_section4['sfsi_display_counts'] == "yes") {
74
-
75
- if ($sfsi_section4['sfsi_facebook_countsFrom'] == "manual") {
76
- $counts = $sfsi_section4['sfsi_facebook_manualCounts'];
77
- } else if ($sfsi_section4['sfsi_facebook_countsFrom'] == "likes") {
78
- $counts = $socialObj->sfsi_get_fb($permalink);
79
- } else if ($sfsi_section4['sfsi_facebook_countsFrom'] == "followers") {
80
- $counts = $socialObj->sfsi_get_fb($permalink);
81
- } else if ($sfsi_section4['sfsi_facebook_countsFrom'] == "mypage") {
82
- $current_url = $sfsi_section4['sfsi_facebook_mypageCounts'];
83
- $counts = $socialObj->sfsi_get_fb_pagelike($current_url);
84
- }
85
- $count_html = '<span class="bot_no">' . $counts . '</span>';
86
- }
87
- }
88
- $icons .= "<div class='sf_fb_share sf_icon' style='text-align:left;vertical-align: middle;'>" . sfsiFB_Share_Custom($permalink, $show_count) . $count_html . "</div>";
89
  }
90
- if (($sfsi_section6['sfsi_recttwtr'] == "yes")) {
91
- // if ($show_count ) {
92
- // /* get twitter counts */
93
- // if ($sfsi_section4['sfsi_twitter_countsFrom'] == "source") {
94
- // $option2 = unserialize(get_option('sfsi_section2_options', false));
95
-
96
- // $twitter_user = $option2['sfsi_twitter_followUserName'];
97
- // $tw_settings = array(
98
- // 'tw_consumer_key' => $sfsi_section4['tw_consumer_key'],
99
- // 'tw_consumer_secret' => $sfsi_section4['tw_consumer_secret'],
100
- // 'tw_oauth_access_token' => $sfsi_section4['tw_oauth_access_token'],
101
- // 'tw_oauth_access_token_secret' => $sfsi_section4['tw_oauth_access_token_secret']
102
- // );
103
-
104
- // $followers = $socialObj->sfsi_get_tweets($twitter_user, $tw_settings);
105
- // $counts = $socialObj->format_num($followers);
106
- // } else {
107
- // $counts = $socialObj->format_num($sfsi_section4['sfsi_twitter_manualCounts']);
108
-
109
- // }
110
- // if($counts>0){
111
- // $count_html = '<span class="bot_no">'.$counts.'</span>';
112
- // }
113
- // }
114
- $icons .= sfsi_twitterlike($permalink, $show_count, true);
115
- // $icons .= "<div class='sf_twiter' style='text-align:left;float:left;vertical-align: middle;width:auto'>" . . "</div>";
116
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
117
 
118
- if ( $sfsi_section6['sfsi_rectpinit'] == 'yes') {
119
- $count_html = "";
120
- if ($show_count) {
121
- /* get Pinterest counts */
122
- if ($sfsi_section4['sfsi_pinterest_countsFrom'] == "pins") {
123
- $url = home_url();
124
- $pins = $socialObj->sfsi_get_pinterest($url);
125
- $counts = $socialObj->format_num($pins);
126
- } else {
127
- $counts = $sfsi_section4['sfsi_pinterest_manualCounts'];
 
 
 
 
 
 
 
 
 
 
 
128
  }
129
- if ($counts > 0) {
130
- $count_html = '<span class="bot_no">' . $counts . '</span>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
131
  }
 
 
 
 
 
 
 
132
  }
133
- $icons .= "<div class='sf_pinit sf_icon' style='text-align:left;vertical-align: middle;float:left;line-height: 33px;width:auto;margin: 0 -2px;'>" . sfsi_pinterest_Customs($permalink, $show_count) . $count_html . "</div>";
134
- }
135
- $icons .= "</div>";
136
- //closing wrapper div
137
- $icons .= "</div>";
138
- if (!is_feed() && !is_home() && !is_page()) {
139
- $content = $content . $icons;
140
  }
141
  }
142
  }
@@ -241,7 +242,7 @@ function sfsi_pinterest_Customs($permalink = '', $show_count = false)
241
 
242
  /* create fb like button */
243
  function sfsi_FBlike($permalink, $show_count)
244
- {
245
  $send = 'false';
246
  $fb_like_html = '';
247
 
@@ -263,7 +264,7 @@ function sfsiFB_Share_Custom($permalink, $show_count = false)
263
  $shareurl = "https://www.facebook.com/sharer/sharer.php?u=";
264
  $shareurl = $shareurl . urlencode(urldecode($permalink));
265
 
266
- $fb_share_html = "<a href='" . $shareurl . "' style='display:inline-block;' > <img class='sfsi_wicon' data-pin-nopin='true' width='auto' height='auto' alt='fb-share-icon' title='Facebook Share' src='" . SFSI_PLUGURL . "images/visit_icons/fbshare_bck.png" . "' /></a>";
267
  return $fb_share_html;
268
  }
269
 
@@ -467,10 +468,14 @@ function sfsi_footer_script()
467
  }
468
 
469
  ob_start(); ?>
470
- <div class="sfsi_responsive_icons_count sfsi_<?php echo ($icon_width_type == "Fully responsive" ? 'responsive' : 'fixed'); ?>_count_container sfsi_<?php echo strtolower($sfsi_responsive_icons['settings']['icon_size']); ?>_button" style='display:<?php echo $couter_display; ?>;text-align:center; background-color:<?php echo $sfsi_responsive_icons['settings']['counter_bg_color']; ?>;color:<?php echo $sfsi_responsive_icons['settings']['counter_color']; ?>; <?php echo $sfsi_anchor_div_style; ?>;'>
471
- <h3 style="color:<?php echo $sfsi_responsive_icons['settings']['counter_color']; ?>; "><?php echo $count; ?></h3>
472
- <h6 style="color:<?php echo $sfsi_responsive_icons['settings']['counter_color']; ?>;"><?php echo $sfsi_responsive_icons['settings']["share_count_text"]; ?></h6>
473
- </div>
 
 
 
 
474
  <?php
475
  $icons .= ob_get_contents();
476
  ob_end_clean();
@@ -512,7 +517,7 @@ function sfsi_footer_script()
512
  }
513
  $icons .= "\t\t" . "<a " . sfsi_checkNewWindow() . " href='" . ($icon_config['url'] == "" ? $share_url : $icon_config['url']) . "' style='" . ($icon_config['active'] == 'yes' ? ($sfsi_responsive_icons['settings']['icon_width_type'] === "Fixed icon width" ? 'display:inline-flex' : 'display:block') : 'display:none') . ";" . $sfsi_anchor_style . "' class=" . ($sfsi_responsive_icons['settings']['icon_width_type'] === "Fixed icon width" ? 'sfsi_responsive_fixed_width' : 'sfsi_responsive_fluid') . " >" . "\n";
514
  $icons .= "\t\t\t<div class='sfsi_responsive_icon_item_container sfsi_responsive_icon_" . strtolower($icon) . "_container sfsi_" . strtolower($sfsi_responsive_icons['settings']['icon_size']) . "_button " . ($sfsi_responsive_icons['settings']['style'] == "Gradient" ? 'sfsi_responsive_icon_gradient' : '') . (" sfsi_" . (strtolower($sfsi_responsive_icons['settings']['text_align']) == "centered" ? 'centered' : 'left-align') . "_icon") . "' style='" . $sfsi_anchor_div_style . " ' >" . "\n";
515
- $icons .= "\t\t\t\t<img style='max-height: 25px;display:unset;margin:0' class='sfsi_wicon' alt='".$icon."' src='" . SFSI_PLUGURL . "images/responsive-icon/" . $icon . ('Follow' === $icon ? '.png' : '.svg') . "'>" . "\n";
516
  $icons .= "\t\t\t\t<span style='color:#fff' >" . ($icon_config["text"]) . "</span>" . "\n";
517
  $icons .= "\t\t\t</div>" . "\n";
518
  $icons .= "\t\t</a>" . "\n\n";
15
  $content = $content . sfsi_social_responsive_buttons(null, $sfsi_section6);
16
  }
17
  } else {
18
+ if (is_single()) {
19
+ //checking for standard icons
20
+ if (!isset($sfsi_section6['sfsi_rectsub'])) {
21
+ $sfsi_section6['sfsi_rectsub'] = 'no';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
22
  }
23
+ if (!isset($sfsi_section6['sfsi_rectfb'])) {
24
+ $sfsi_section6['sfsi_rectfb'] = 'yes';
 
 
 
 
25
  }
26
+ if (!isset($sfsi_section6['sfsi_rectshr'])) {
27
+ $sfsi_section6['sfsi_rectshr'] = 'yes';
 
 
 
28
  }
29
+ if (!isset($sfsi_section6['sfsi_recttwtr'])) {
30
+ $sfsi_section6['sfsi_recttwtr'] = 'no';
 
31
  }
32
+ if (!isset($sfsi_section6['sfsi_rectpinit'])) {
33
+ $sfsi_section6['sfsi_rectpinit'] = 'no';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  }
35
+ if (!isset($sfsi_section6['sfsi_rectfbshare'])) {
36
+ $sfsi_section6['sfsi_rectfbshare'] = 'no';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  }
38
+ //checking for standard icons
39
+ /* check if option activated in admin or not */
40
+ if ($sfsi_section9["sfsi_show_via_afterposts"] == "yes" && $sfsi_section6["sfsi_display_button_type"] == "standard_buttons") {
41
+ $permalink = add_query_arg($_GET ? $_GET : array(), get_permalink($post->ID));
42
+ $title = get_the_title();
43
+ $sfsiLikeWith = "45px;";
44
+ /* check for counter display */
45
+ if ($sfsi_section4['sfsi_display_counts'] == "yes" && $sfsi_section4['sfsi_original_counts'] == "yes") {
46
+ $show_count = 1;
47
+ $sfsiLikeWith = "125px;";
48
+ } else {
49
+ $show_count = 0;
50
+ }
51
+ $txt = (isset($sfsi_section6['sfsi_textBefor_icons'])) ? $sfsi_section6['sfsi_textBefor_icons'] : "Please follow and like us:";
52
+ $float = $sfsi_section6['sfsi_icons_alignment'];
53
+ if (($sfsi_section6['sfsi_rectsub'] == 'yes' || $sfsi_section6['sfsi_rectfb'] == 'yes' || $sfsi_section6['sfsi_rectshr'] == 'yes' || $sfsi_section6['sfsi_recttwtr'] == 'yes' || $sfsi_section6['sfsi_rectpinit'] == 'yes' || $sfsi_section6['sfsi_rectfbshare'] == 'yes')) {
54
+ $icons = "<div class='sfsi_Sicons' style='width: 100%; display: inline-block; vertical-align: middle; text-align:" . $float . "'><div style='margin:0px 8px 0px 0px; line-height: 24px'><span>" . $txt . "</span></div>";
55
+ } else {
56
+ $icons = "<div style='margin:0'>";
57
+ }
58
+ //adding wrapper div
59
+ $icons .= "<div class='sfsi_socialwpr'>";
60
+ if ($sfsi_section6['sfsi_rectsub'] == 'yes') {
61
+
62
+ $icons .= "<div class='sf_subscrbe sf_icon' style='text-align:left;vertical-align: middle;float:left;width:auto'>" . sfsi_Subscribelike($permalink, $show_count) . "</div>";
63
+ }
64
+ if ($sfsi_section6['sfsi_rectfb'] == 'yes') {
65
 
66
+ $icons .= "<div class='sf_fb sf_icon' style='text-align:left;vertical-align: middle;'>" . sfsi_FBlike($permalink, $show_count) . "</div>";
67
+ }
68
+ if ($sfsi_section6['sfsi_rectfbshare'] == 'yes') {
69
+ $sfsi_section4 = unserialize(get_option('sfsi_section4_options', false));
70
+ $socialObj = new sfsi_SocialHelper();
71
+ $count_html = "";
72
+ if ($show_count > 0) {
73
+ if ($sfsi_section4['sfsi_facebook_countsDisplay'] == "yes" && $sfsi_section4['sfsi_display_counts'] == "yes") {
74
+
75
+ if ($sfsi_section4['sfsi_facebook_countsFrom'] == "manual") {
76
+ $counts = $sfsi_section4['sfsi_facebook_manualCounts'];
77
+ } else if ($sfsi_section4['sfsi_facebook_countsFrom'] == "likes") {
78
+ $counts = $socialObj->sfsi_get_fb($permalink);
79
+ } else if ($sfsi_section4['sfsi_facebook_countsFrom'] == "followers") {
80
+ $counts = $socialObj->sfsi_get_fb($permalink);
81
+ } else if ($sfsi_section4['sfsi_facebook_countsFrom'] == "mypage") {
82
+ $current_url = $sfsi_section4['sfsi_facebook_mypageCounts'];
83
+ $counts = $socialObj->sfsi_get_fb_pagelike($current_url);
84
+ }
85
+ $count_html = '<span class="bot_no">' . $counts . '</span>';
86
+ }
87
  }
88
+ $icons .= "<div class='sf_fb_share sf_icon' style='text-align:left;vertical-align: middle;'>" . sfsiFB_Share_Custom($permalink, $show_count) . $count_html . "</div>";
89
+ }
90
+ if (($sfsi_section6['sfsi_recttwtr'] == "yes")) {
91
+ // if ($show_count ) {
92
+ // /* get twitter counts */
93
+ // if ($sfsi_section4['sfsi_twitter_countsFrom'] == "source") {
94
+ // $option2 = unserialize(get_option('sfsi_section2_options', false));
95
+
96
+ // $twitter_user = $option2['sfsi_twitter_followUserName'];
97
+ // $tw_settings = array(
98
+ // 'tw_consumer_key' => $sfsi_section4['tw_consumer_key'],
99
+ // 'tw_consumer_secret' => $sfsi_section4['tw_consumer_secret'],
100
+ // 'tw_oauth_access_token' => $sfsi_section4['tw_oauth_access_token'],
101
+ // 'tw_oauth_access_token_secret' => $sfsi_section4['tw_oauth_access_token_secret']
102
+ // );
103
+
104
+ // $followers = $socialObj->sfsi_get_tweets($twitter_user, $tw_settings);
105
+ // $counts = $socialObj->format_num($followers);
106
+ // } else {
107
+ // $counts = $socialObj->format_num($sfsi_section4['sfsi_twitter_manualCounts']);
108
+
109
+ // }
110
+ // if($counts>0){
111
+ // $count_html = '<span class="bot_no">'.$counts.'</span>';
112
+ // }
113
+ // }
114
+ $icons .= sfsi_twitterlike($permalink, $show_count, true);
115
+ // $icons .= "<div class='sf_twiter' style='text-align:left;float:left;vertical-align: middle;width:auto'>" . . "</div>";
116
+ }
117
+
118
+ if ($sfsi_section6['sfsi_rectpinit'] == 'yes') {
119
+ $count_html = "";
120
+ if ($show_count) {
121
+ /* get Pinterest counts */
122
+ if ($sfsi_section4['sfsi_pinterest_countsFrom'] == "pins") {
123
+ $url = home_url();
124
+ $pins = $socialObj->sfsi_get_pinterest($url);
125
+ $counts = $socialObj->format_num($pins);
126
+ } else {
127
+ $counts = $sfsi_section4['sfsi_pinterest_manualCounts'];
128
+ }
129
+ if ($counts > 0) {
130
+ $count_html = '<span class="bot_no">' . $counts . '</span>';
131
+ }
132
  }
133
+ $icons .= "<div class='sf_pinit sf_icon' style='text-align:left;vertical-align: middle;float:left;line-height: 33px;width:auto;margin: 0 -2px;'>" . sfsi_pinterest_Customs($permalink, $show_count) . $count_html . "</div>";
134
+ }
135
+ $icons .= "</div>";
136
+ //closing wrapper div
137
+ $icons .= "</div>";
138
+ if (!is_feed() && !is_home() && !is_page()) {
139
+ $content = $content . $icons;
140
  }
 
 
 
 
 
 
 
141
  }
142
  }
143
  }
242
 
243
  /* create fb like button */
244
  function sfsi_FBlike($permalink, $show_count)
245
+ {
246
  $send = 'false';
247
  $fb_like_html = '';
248
 
264
  $shareurl = "https://www.facebook.com/sharer/sharer.php?u=";
265
  $shareurl = $shareurl . urlencode(urldecode($permalink));
266
 
267
+ $fb_share_html = "<a ".sfsi_checkNewWindow()." href='" . $shareurl . "' style='display:inline-block;' > <img class='sfsi_wicon' data-pin-nopin='true' width='auto' height='auto' alt='fb-share-icon' title='Facebook Share' src='" . SFSI_PLUGURL . "images/visit_icons/fbshare_bck.png" . "' /></a>";
268
  return $fb_share_html;
269
  }
270
 
468
  }
469
 
470
  ob_start(); ?>
471
+
472
+ <?php
473
+ if ($couter_display != "none") { ?>
474
+ <div class="sfsi_responsive_icons_count sfsi_<?php echo ($icon_width_type == "Fully responsive" ? 'responsive' : 'fixed'); ?>_count_container sfsi_<?php echo strtolower($sfsi_responsive_icons['settings']['icon_size']); ?>_button" style='display:<?php echo $couter_display; ?>;text-align:center; background-color:<?php echo $sfsi_responsive_icons['settings']['counter_bg_color']; ?>;color:<?php echo $sfsi_responsive_icons['settings']['counter_color']; ?>; <?php echo $sfsi_anchor_div_style; ?>;'>
475
+ <h3 style="color:<?php echo $sfsi_responsive_icons['settings']['counter_color']; ?>; "><?php echo $count; ?></h3>
476
+ <h6 style="color:<?php echo $sfsi_responsive_icons['settings']['counter_color']; ?>;"><?php echo $sfsi_responsive_icons['settings']["share_count_text"]; ?></h6>
477
+ </div>
478
+ <?php } ?>
479
  <?php
480
  $icons .= ob_get_contents();
481
  ob_end_clean();
517
  }
518
  $icons .= "\t\t" . "<a " . sfsi_checkNewWindow() . " href='" . ($icon_config['url'] == "" ? $share_url : $icon_config['url']) . "' style='" . ($icon_config['active'] == 'yes' ? ($sfsi_responsive_icons['settings']['icon_width_type'] === "Fixed icon width" ? 'display:inline-flex' : 'display:block') : 'display:none') . ";" . $sfsi_anchor_style . "' class=" . ($sfsi_responsive_icons['settings']['icon_width_type'] === "Fixed icon width" ? 'sfsi_responsive_fixed_width' : 'sfsi_responsive_fluid') . " >" . "\n";
519
  $icons .= "\t\t\t<div class='sfsi_responsive_icon_item_container sfsi_responsive_icon_" . strtolower($icon) . "_container sfsi_" . strtolower($sfsi_responsive_icons['settings']['icon_size']) . "_button " . ($sfsi_responsive_icons['settings']['style'] == "Gradient" ? 'sfsi_responsive_icon_gradient' : '') . (" sfsi_" . (strtolower($sfsi_responsive_icons['settings']['text_align']) == "centered" ? 'centered' : 'left-align') . "_icon") . "' style='" . $sfsi_anchor_div_style . " ' >" . "\n";
520
+ $icons .= "\t\t\t\t<img style='max-height: 25px;display:unset;margin:0' class='sfsi_wicon' alt='" . $icon . "' src='" . SFSI_PLUGURL . "images/responsive-icon/" . $icon . ('Follow' === $icon ? '.png' : '.svg') . "'>" . "\n";
521
  $icons .= "\t\t\t\t<span style='color:#fff' >" . ($icon_config["text"]) . "</span>" . "\n";
522
  $icons .= "\t\t\t</div>" . "\n";
523
  $icons .= "\t\t</a>" . "\n\n";
libs/sfsi_install_uninstall.php CHANGED
@@ -39,7 +39,7 @@ function sfsi_update_plugin()
39
  update_option("sfsi_custom_icons", "yes");
40
  }
41
  //Install version
42
- update_option("sfsi_pluginVersion", "2.62");
43
 
44
  if (!get_option('sfsi_serverphpVersionnotification')) {
45
  add_option("sfsi_serverphpVersionnotification", "yes");
@@ -620,7 +620,7 @@ function sfsi_update_plugin()
620
  if (!isset($option5['sfsi_wechat_MouseOverText'])) {
621
  $option5['sfsi_wechat_MouseOverText'] = 'WeChat';
622
  }
623
- if (!isset($option5['sfsi_whatsapp_MouseOverText'])) {
624
  $option5['sfsi_whatsapp_MouseOverText'] = 'WhatsApp';
625
  }
626
  if (isset($option5['sfsi_googleIcon_order'])) {
@@ -1045,7 +1045,7 @@ function sfsi_activate_plugin()
1045
  'sfsi_ok_MouseOverText' => 'OK',
1046
  'sfsi_weibo_MouseOverText' => 'Weibo',
1047
  'sfsi_wechat_MouseOverText' => 'WeChat',
1048
- 'sfsi_whatsapp_MouseOverText' => 'WhatsaApp',
1049
  'sfsi_custom_MouseOverTexts' => '',
1050
  'sfsi_custom_social_hide' => 'no'
1051
  );
39
  update_option("sfsi_custom_icons", "yes");
40
  }
41
  //Install version
42
+ update_option("sfsi_pluginVersion", "2.63");
43
 
44
  if (!get_option('sfsi_serverphpVersionnotification')) {
45
  add_option("sfsi_serverphpVersionnotification", "yes");
620
  if (!isset($option5['sfsi_wechat_MouseOverText'])) {
621
  $option5['sfsi_wechat_MouseOverText'] = 'WeChat';
622
  }
623
+ if (!isset($option5['sfsi_whatsapp_MouseOverText']) || $option5['sfsi_whatsapp_MouseOverText'] == 'WhatsaApp') {
624
  $option5['sfsi_whatsapp_MouseOverText'] = 'WhatsApp';
625
  }
626
  if (isset($option5['sfsi_googleIcon_order'])) {
1045
  'sfsi_ok_MouseOverText' => 'OK',
1046
  'sfsi_weibo_MouseOverText' => 'Weibo',
1047
  'sfsi_wechat_MouseOverText' => 'WeChat',
1048
+ 'sfsi_whatsapp_MouseOverText' => 'WhatsApp',
1049
  'sfsi_custom_MouseOverTexts' => '',
1050
  'sfsi_custom_social_hide' => 'no'
1051
  );
libs/sfsi_widget.php CHANGED
@@ -225,14 +225,14 @@ class Sfsi_Widget extends WP_Widget
225
 
226
  $extra = 0;
227
  if ($sfsi_section3['sfsi_shuffle_icons'] == "yes") {
228
- if ($sfsi_section3['sfsi_shuffle_Firstload'] == "yes" && $sfsi_section3['sfsi_shuffle_interval'] == "yes") {
229
  $shuffle_time = (isset($sfsi_section3['sfsi_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_shuffle_intervalTime'] : 3;
230
  $shuffle_time = $shuffle_time * 1000;
231
- $jquery .= "window.addEventListener('sfsi_functions_loaded',function(){ jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},2000); setInterval(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })}," . $shuffle_time . "); });";
232
  } else if ($sfsi_section3['sfsi_shuffle_Firstload'] == "no" && $sfsi_section3['sfsi_shuffle_interval'] == "yes") {
233
  $shuffle_time = (isset($sfsi_section3['sfsi_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_shuffle_intervalTime'] : 3;
234
  $shuffle_time = $shuffle_time * 1000;
235
- $jquery .= "window.addEventListener('sfsi_functions_loaded',function(){ jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setInterval(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })}," . $shuffle_time . "); });";
236
  } else {
237
  $jquery .= "jQuery( document ).ready(function( $ ) { jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){sfsi_shuffle(); jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},2000); });";
238
  }
225
 
226
  $extra = 0;
227
  if ($sfsi_section3['sfsi_shuffle_icons'] == "yes") {
228
+ if ($sfsi_section3['sfsi_shuffle_Firstload'] == "yes" && $sfsi_section3['sfsi_shuffle_interval'] == "yes") {
229
  $shuffle_time = (isset($sfsi_section3['sfsi_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_shuffle_intervalTime'] : 3;
230
  $shuffle_time = $shuffle_time * 1000;
231
+ $jquery .= "jQuery( document ).ready(function( $ ) { jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){sfsi_shuffle(); jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},2000); setInterval(function(){ jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })}," . $shuffle_time . "); });";
232
  } else if ($sfsi_section3['sfsi_shuffle_Firstload'] == "no" && $sfsi_section3['sfsi_shuffle_interval'] == "yes") {
233
  $shuffle_time = (isset($sfsi_section3['sfsi_shuffle_intervalTime'])) ? $sfsi_section3['sfsi_shuffle_intervalTime'] : 3;
234
  $shuffle_time = $shuffle_time * 1000;
235
+ $jquery .= "jQuery( document ).ready(function( $ ) { jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setInterval(function(){sfsi_shuffle(); jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })}," . $shuffle_time . "); });";
236
  } else {
237
  $jquery .= "jQuery( document ).ready(function( $ ) { jQuery('.sfsi_wDiv').each(function(){ new window.Manipulator( jQuery(this)); }); setTimeout(function(){sfsi_shuffle(); jQuery('#sfsi_wDiv').each(function(){ jQuery(this).click(); })},2000); });";
238
  }
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: socialdude, socialtech
3
  Tags: share, pop up, share icons, share buttons, social media, social, social widget, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 3.5
5
  Tested up to: 5.6
6
- Stable tag: 2.6.2
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -274,6 +274,14 @@ You cannot use the same plugin twice, however you can install both the USM as we
274
 
275
 
276
  == Changelog ==
 
 
 
 
 
 
 
 
277
  = 2.6.2 =
278
  * Updated to Wordpress 5.6 compatibility
279
  * Updated to PHP 8 compatibility
@@ -962,5 +970,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
962
 
963
  == Upgrade Notice ==
964
 
965
- = 2.6.2 =
966
  Please upgrade
3
  Tags: share, pop up, share icons, share buttons, social media, social, social widget, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 3.5
5
  Tested up to: 5.6
6
+ Stable tag: 2.6.3
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
274
 
275
 
276
  == Changelog ==
277
+ = 2.6.3 =
278
+ * Fixed responsive icons issue with table of contents
279
+ * Fixed Shuffle option not saving
280
+ * Fixed Facebook original icons share to new tab
281
+ * Updated Youtube icons
282
+ * Fixed Mobile icons not working when shuffle is selected
283
+ * Whatsapp mouse hover text corrected
284
+
285
  = 2.6.2 =
286
  * Updated to Wordpress 5.6 compatibility
287
  * Updated to PHP 8 compatibility
970
 
971
  == Upgrade Notice ==
972
 
973
+ = 2.6.3 =
974
  Please upgrade
ultimate_social_media_icons.php CHANGED
@@ -6,7 +6,7 @@ Description: Easy to use and 100% FREE social media plugin which adds social med
6
 
7
  Author: UltimatelySocial
8
  Author URI: http://ultimatelysocial.com
9
- Version: 2.6.2
10
  License: GPLv2 or later
11
  */
12
  require_once 'analyst/main.php';
@@ -88,7 +88,7 @@ register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
88
 
89
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
90
 
91
- if (!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.62) {
92
  add_action("init", "sfsi_update_plugin");
93
  }
94
  /* redirect setting page hook */
@@ -805,7 +805,7 @@ function sfsi_admin_notice()
805
 
806
 
807
 
808
- </style>
809
  <?php
810
 
811
  include("views/sfsi_plugin_lists.php");
6
 
7
  Author: UltimatelySocial
8
  Author URI: http://ultimatelysocial.com
9
+ Version: 2.6.3
10
  License: GPLv2 or later
11
  */
12
  require_once 'analyst/main.php';
88
 
89
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
90
 
91
+ if (!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.63) {
92
  add_action("init", "sfsi_update_plugin");
93
  }
94
  /* redirect setting page hook */
805
 
806
 
807
 
808
+ <!-- </style> -->
809
  <?php
810
 
811
  include("views/sfsi_plugin_lists.php");
views/sfsi_option_view3.php CHANGED
@@ -72,11 +72,18 @@ $mouseover_other_icons_transition_effect = (isset($option3['mouseover_other_icon
72
 
73
 
74
  <li class="sfsi_webtheme" style='display:none'>
 
75
  <span class="radio" style="opacity: 0.5;"></span>
76
  <label class="sfsi_premium_ad_lable" style="text-transform: capitalize;">Default</label>
77
- <div class="icns_tab_3 sfsi_premium_ad"><span class="premium_col_1 rss_section"></span><span class="premium_col_2 email_section"></span><span class="premium_col_3 facebook_section"></span><span class="premium_col_4 twitter_section"></span><div class="sfis_premium_ad_name">(Premium)</div>
 
 
 
 
 
78
  <!--<span class="row_1_11 sf_section"></span>-->
79
  </div>
 
80
  </li>
81
 
82
  <li><input name="sfsi_actvite_theme" <?php echo ($option3['sfsi_actvite_theme'] == 'flat') ? 'checked="true"' : ''; ?> type="radio" value="flat" class="styled" /><label>Flat</label>
72
 
73
 
74
  <li class="sfsi_webtheme" style='display:none'>
75
+ <a href="#" target="_blank">
76
  <span class="radio" style="opacity: 0.5;"></span>
77
  <label class="sfsi_premium_ad_lable" style="text-transform: capitalize;">Default</label>
78
+ <div class="icns_tab_3 sfsi_premium_ad">
79
+ <span class="premium_col_1 rss_section"></span>
80
+ <span class="premium_col_2 email_section"></span>
81
+ <span class="premium_col_3 facebook_section"></span>
82
+ <span class="premium_col_4 twitter_section"></span>
83
+ <div class="sfis_premium_ad_name">(Premium)</div>
84
  <!--<span class="row_1_11 sf_section"></span>-->
85
  </div>
86
+ </a>
87
  </li>
88
 
89
  <li><input name="sfsi_actvite_theme" <?php echo ($option3['sfsi_actvite_theme'] == 'flat') ? 'checked="true"' : ''; ?> type="radio" value="flat" class="styled" /><label>Flat</label>
views/sfsi_option_view4.php CHANGED
@@ -261,13 +261,14 @@ $hide = "display:none;";
261
 
262
  <!-- show/hide counts for all icons section START -->
263
 
264
- <div class="count_sections" style="display:none">
265
  <?php
266
  $socialObj = new sfsi_SocialHelper();
267
  $current_url = site_url();
 
268
  $fb_data = $socialObj->sfsi_banner_get_fb($current_url);
 
269
  $check_fb_count_more_than_one = $fb_data > 0 || $socialObj->sfsi_get_pinterest($current_url) > 0;
270
- $sfsi_fb_count = get_option('sfsi_fb_count', false);
271
  if ($check_fb_count_more_than_one > $sfsi_fb_count || $sfsi_fb_count == "") {
272
  update_option('sfsi_fb_count', ($check_fb_count_more_than_one));
273
  }
261
 
262
  <!-- show/hide counts for all icons section START -->
263
 
264
+ <div class="count_sections" style="display:none;">
265
  <?php
266
  $socialObj = new sfsi_SocialHelper();
267
  $current_url = site_url();
268
+ $sfsi_fb_count = get_option('sfsi_fb_count', false);
269
  $fb_data = $socialObj->sfsi_banner_get_fb($current_url);
270
+
271
  $check_fb_count_more_than_one = $fb_data > 0 || $socialObj->sfsi_get_pinterest($current_url) > 0;
 
272
  if ($check_fb_count_more_than_one > $sfsi_fb_count || $sfsi_fb_count == "") {
273
  update_option('sfsi_fb_count', ($check_fb_count_more_than_one));
274
  }
views/sfsi_option_view5.php CHANGED
@@ -406,7 +406,7 @@ here what text will be displayed if a user moves his mouse over the icon:
406
  </div>
407
  </div>
408
  <div class="clear">
409
- <div class="mouseover_field wechat_section">
410
  <label>WhatsApp:</label>
411
  <input name="sfsi_whatsapp_MouseOverText" value="<?php echo ($option5['sfsi_whatsapp_MouseOverText']!='') ? $option5['sfsi_whatsapp_MouseOverText'] : '' ;?>" type="text" />
412
  </div>
406
  </div>
407
  </div>
408
  <div class="clear">
409
+ <div class="mouseover_field whatsapp_section">
410
  <label>WhatsApp:</label>
411
  <input name="sfsi_whatsapp_MouseOverText" value="<?php echo ($option5['sfsi_whatsapp_MouseOverText']!='') ? $option5['sfsi_whatsapp_MouseOverText'] : '' ;?>" type="text" />
412
  </div>
views/sfsi_options_view.php CHANGED
@@ -87,18 +87,6 @@
87
  $sfsi_current_date = strtotime(date('Y-m-d h:i:s'));
88
  $sfsi_intro_time_in_minutes = ceil(($sfsi_max_show_time - strtotime(date('Y-m-d h:i:s'))) / 60);
89
  $sfsi_intro_time_in_minutes = $sfsi_intro_time_in_minutes - 1;
90
- // $sfsi_intro_hours = floor($sfsi_intro_time_in_minutes / 60);
91
- // $sfsi_intro_minutes = $sfsi_intro_time_in_minutes - floor($sfsi_intro_time_in_minutes / 60) * 60;
92
- // $sfsi_intro_seconds = ((($sfsi_intro_time_in_minutes) * 60) % 60);
93
- // var_dump($checked ,floor((($checked % ( 60 * 60)) / ( 60))));
94
- // var_dump((floor((($checked % ( 60 * 60 * 24)) / ( 60 * 60))/12)));
95
- $sfsi_intro_year = substr($sfsi_install_date_time, 0, 4);
96
- $sfsi_intro_month = substr($sfsi_install_date_time, 5, 2) - 1;
97
- $sfsi_intro_day = substr($sfsi_install_date_time, 8, 2);
98
- $sfsi_intro_hours = substr($sfsi_install_date_time, 11, 2);
99
- $sfsi_intro_minutes = substr($sfsi_install_date_time, 14, 2);
100
- $sfsi_intro_seconds = substr($sfsi_install_date_time, 17, 2);
101
-
102
  ?>
103
  <!-- Top content area of plugin -->
104
  <div class="main_contant">
@@ -305,7 +293,7 @@
305
  <div>
306
  <a target="_blank" href="http://bit.ly/USM_SUPPORT_FORUM" class="btn btn-success sfsi_intro_btn_question">Open a support thread</a>
307
  </div>
308
- <a href="#" class="sfsi_intro_tooltip" title="Your account on Wordpress.org (where you can give your review) is a different to the one you login to your WordPress dashboard (where you are now). If you don’t have a WordPress.org account yet, please sign up at the top right on the Support Forum page, and then scroll down on that page. It only takes a minute :) Thank you!" style="font-size: 13px;text-decoration: none;color:#414951;font-family: 'montserrat-regular';opacity: 0.7;">Trouble logging in there?</a>
309
  </div>
310
  </div>
311
  </div>
87
  $sfsi_current_date = strtotime(date('Y-m-d h:i:s'));
88
  $sfsi_intro_time_in_minutes = ceil(($sfsi_max_show_time - strtotime(date('Y-m-d h:i:s'))) / 60);
89
  $sfsi_intro_time_in_minutes = $sfsi_intro_time_in_minutes - 1;
 
 
 
 
 
 
 
 
 
 
 
 
90
  ?>
91
  <!-- Top content area of plugin -->
92
  <div class="main_contant">
293
  <div>
294
  <a target="_blank" href="http://bit.ly/USM_SUPPORT_FORUM" class="btn btn-success sfsi_intro_btn_question">Open a support thread</a>
295
  </div>
296
+ <a href="#" class="sfsi_intro_tooltip" custom-title="Your account on Wordpress.org (where you can give your review) is different to the one you login to your WordPress dashboard (where you are now). If you don’t have a WordPress.org account yet, please sign up at the top right on the Support Forum page, and then scroll down on that page. It only takes a minute :) Thank you!" style="font-size: 13px;text-decoration: none;color:#414951;font-family: 'montserrat-regular';opacity: 0.7;">Trouble logging in there?</a>
297
  </div>
298
  </div>
299
  </div>
views/sfsi_question3.php CHANGED
@@ -2,9 +2,9 @@
2
 
3
  $option9 = unserialize(get_option('sfsi_section9_options', false));
4
  $analyst_cache = (get_option("analyst_cache"));
5
- $sfsi_willshow_analyst_popup =false;
6
- if(!is_null($analyst_cache) && isset($analyst_cache["plugin_to_install"])){
7
- $sfsi_willshow_analyst_popup =true;
8
  }
9
  ?>
10
 
@@ -15,14 +15,14 @@ if(!is_null($analyst_cache) && isset($analyst_cache["plugin_to_install"])){
15
  <ul class="sfsi_icn_listing8">
16
 
17
 
18
- <span id="sfsi_analyst_pop" style="display:none" data-status="<?php echo $sfsi_willshow_analyst_popup?"yes":"no"; ?>" ></span>
19
 
20
- <p class="clear" style="padding-top: 5px;!important">Please select one or multiple placement options: </p>
21
 
22
  <!--********************** Define the location on the page **************************************-->
23
 
24
  <?php @include(SFSI_DOCROOT . '/views/subviews/que3/sfsi_que3_place_via_float.php'); ?>
25
-
26
 
27
  <!--********************** Show them via a widget section **************************************-->
28
 
@@ -46,7 +46,7 @@ if(!is_null($analyst_cache) && isset($analyst_cache["plugin_to_install"])){
46
  <?php @include(SFSI_DOCROOT . '/views/subviews/que3/sfsi_que3_place_via_after_posts.php'); ?>
47
 
48
  <!--********************** Show pinterest over image hover post****************************************-->
49
-
50
 
51
  <li class="sfsi_show_via_onhover disabled_checkbox">
52
 
@@ -62,11 +62,11 @@ if(!is_null($analyst_cache) && isset($analyst_cache["plugin_to_install"])){
62
 
63
  <div class="sfsi_right_info">
64
 
65
-
66
-
67
  <p style="display:block">
68
 
69
- <span class="sfsi_toglepstpgspn" style="display:inline-block;float:left;">Show a Pinterest icon over images on mouse-over </span>&nbsp;- <span><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=pinterest_icon_mouse_over&utm_medium=link" target="_blank" style="font-weight:800">Premium feature</a></span>
 
 
70
 
71
  </p>
72
 
@@ -78,35 +78,20 @@ if(!is_null($analyst_cache) && isset($analyst_cache["plugin_to_install"])){
78
 
79
  <?php
80
  $sfsi_woocommerce_path = "woocommerce/woocommerce.php";
81
- if(is_plugin_active($sfsi_woocommerce_path)){
82
- ?>
83
- <li class="sfsi_show_via_onhover disabled_checkbox">
84
-
85
-
86
-
87
- <div class="radio_section tb_4_ck">
88
-
89
- <span class="checkbox" style="background-position:0px 0px!important;width:31px"></span>
90
-
91
- <input name="" type="checkbox" disable value="" class="hide" style="display:none;" /></div>
92
-
93
-
94
-
95
- <div class="sfsi_right_info sfsi_Woocommerce_disable">
96
-
97
-
98
-
99
- <p style="display:block">
100
-
101
- <span class="sfsi_toglepstpgspn" style="display:inline-block;float:left;">On your Woocommerce product pages </span>- <span><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=woocomerce_placement&utm_medium=link" target="_blank" style="font-weight:800">Premium feature</a></span>
102
-
103
- </p>
104
-
105
-
106
-
107
- </div>
108
-
109
- </li>
110
  <?php
111
  }
112
  ?>
@@ -136,7 +121,7 @@ if(!is_null($analyst_cache) && isset($analyst_cache["plugin_to_install"])){
136
 
137
  <?php $nonce = wp_create_nonce("update_step9"); ?>
138
 
139
- <a href="javascript:;" id="sfsi_save9" title="Save" data-nonce="<?php echo $nonce?>" data-nonce2="<?php echo $nonce2?>">Save</a>
140
 
141
  </div>
142
 
2
 
3
  $option9 = unserialize(get_option('sfsi_section9_options', false));
4
  $analyst_cache = (get_option("analyst_cache"));
5
+ $sfsi_willshow_analyst_popup = false;
6
+ if (!is_null($analyst_cache) && isset($analyst_cache["plugin_to_install"])) {
7
+ $sfsi_willshow_analyst_popup = true;
8
  }
9
  ?>
10
 
15
  <ul class="sfsi_icn_listing8">
16
 
17
 
18
+ <span id="sfsi_analyst_pop" style="display:none" data-status="<?php echo $sfsi_willshow_analyst_popup ? "yes" : "no"; ?>"></span>
19
 
20
+ <p class="clear" style="padding-top: 5px;!important">Please select one or multiple placement options: </p>
21
 
22
  <!--********************** Define the location on the page **************************************-->
23
 
24
  <?php @include(SFSI_DOCROOT . '/views/subviews/que3/sfsi_que3_place_via_float.php'); ?>
25
+
26
 
27
  <!--********************** Show them via a widget section **************************************-->
28
 
46
  <?php @include(SFSI_DOCROOT . '/views/subviews/que3/sfsi_que3_place_via_after_posts.php'); ?>
47
 
48
  <!--********************** Show pinterest over image hover post****************************************-->
49
+
50
 
51
  <li class="sfsi_show_via_onhover disabled_checkbox">
52
 
62
 
63
  <div class="sfsi_right_info">
64
 
 
 
65
  <p style="display:block">
66
 
67
+ <span class="sfsi_toglepstpgspn" style="display:inline-block;">Show a Pinterest icon over images on mouse-over </span>
68
+ <span> - <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=pinterest_icon_mouse_over&utm_medium=link" target="_blank" style="font-weight:800;color: #777;">Premium feature</a>
69
+ </span>
70
 
71
  </p>
72
 
78
 
79
  <?php
80
  $sfsi_woocommerce_path = "woocommerce/woocommerce.php";
81
+ if (is_plugin_active($sfsi_woocommerce_path)) {
82
+ ?>
83
+ <li class="sfsi_show_via_onhover disabled_checkbox">
84
+ <div class="radio_section tb_4_ck">
85
+ <span class="checkbox" style="background-position:0px 0px!important;width:31px"></span>
86
+ <input name="" type="checkbox" disable value="" class="hide" style="display:none;" /></div>
87
+
88
+ <div class="sfsi_right_info sfsi_Woocommerce_disable">
89
+ <p style="display:block">
90
+ <span class="sfsi_toglepstpgspn" style="display:inline-block;">On your Woocommerce product pages </span> - <span><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=woocomerce_placement&utm_medium=link" target="_blank" style="font-weight:800;color:#777">Premium feature</a></span>
91
+ </p>
92
+ </div>
93
+
94
+ </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  <?php
96
  }
97
  ?>
121
 
122
  <?php $nonce = wp_create_nonce("update_step9"); ?>
123
 
124
+ <a href="javascript:;" id="sfsi_save9" title="Save" data-nonce="<?php echo $nonce ?>" data-nonce2="<?php echo $nonce2 ?>">Save</a>
125
 
126
  </div>
127