Social Media Share Buttons & Social Sharing Icons - Version 2.2.2

Version Description

  • Solved: More icons updated
  • Solved: Icon backgrounds updated
  • Solved: Custom icon upload issue
Download this release

Release Info

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

Code changes from version 2.2.0 to 2.2.2

Files changed (148) hide show
  1. css/sfsi-admin-style.css +386 -28
  2. css/sfsi-style.css +39 -2
  3. images/amazon.png +0 -0
  4. images/angieslist.png +0 -0
  5. images/blogger.png +0 -0
  6. images/buffer.png +0 -0
  7. images/flickr.png +0 -0
  8. images/houzz.png +0 -0
  9. images/icons_theme/black/black_houzz.png +0 -0
  10. images/icons_theme/black/black_ok.png +0 -0
  11. images/icons_theme/black/black_telegram.png +0 -0
  12. images/icons_theme/black/black_vk.png +0 -0
  13. images/icons_theme/black/black_wechat.png +0 -0
  14. images/icons_theme/black/black_weibo.png +0 -0
  15. images/icons_theme/black/index.php +3 -0
  16. images/icons_theme/chrome_blue/chrome_blue_houzz.png +0 -0
  17. images/icons_theme/chrome_blue/chrome_blue_ok.png +0 -0
  18. images/icons_theme/chrome_blue/chrome_blue_telegram.png +0 -0
  19. images/icons_theme/chrome_blue/chrome_blue_vk.png +0 -0
  20. images/icons_theme/chrome_blue/chrome_blue_wechat.png +0 -0
  21. images/icons_theme/chrome_blue/chrome_blue_weibo.png +0 -0
  22. images/icons_theme/chrome_blue/index.php +3 -0
  23. images/icons_theme/chrome_grey/chrome_grey_houzz.png +0 -0
  24. images/icons_theme/chrome_grey/chrome_grey_ok.png +0 -0
  25. images/icons_theme/chrome_grey/chrome_grey_telegram.png +0 -0
  26. images/icons_theme/chrome_grey/chrome_grey_vk.png +0 -0
  27. images/icons_theme/chrome_grey/chrome_grey_wechat.png +0 -0
  28. images/icons_theme/chrome_grey/chrome_grey_weibo.png +0 -0
  29. images/icons_theme/chrome_grey/index.php +3 -0
  30. images/icons_theme/crystal/crystal_houzz.png +0 -0
  31. images/icons_theme/crystal/crystal_ok.png +0 -0
  32. images/icons_theme/crystal/crystal_telegram.png +0 -0
  33. images/icons_theme/crystal/crystal_vk.png +0 -0
  34. images/icons_theme/crystal/crystal_wechat.png +0 -0
  35. images/icons_theme/crystal/crystal_weibo.png +0 -0
  36. images/icons_theme/cubes/cubes_houzz.png +0 -0
  37. images/icons_theme/cubes/cubes_ok.png +0 -0
  38. images/icons_theme/cubes/cubes_telegram.png +0 -0
  39. images/icons_theme/cubes/cubes_vk.png +0 -0
  40. images/icons_theme/cubes/cubes_wechat.png +0 -0
  41. images/icons_theme/cubes/cubes_weibo.png +0 -0
  42. images/icons_theme/cubes/old-cubes_google.png +0 -0
  43. images/icons_theme/cute/cute_google-old.png +0 -0
  44. images/icons_theme/cute/cute_houzz.png +0 -0
  45. images/icons_theme/cute/cute_ok.png +0 -0
  46. images/icons_theme/cute/cute_telegram.png +0 -0
  47. images/icons_theme/cute/cute_vk.png +0 -0
  48. images/icons_theme/cute/cute_wechat.png +0 -0
  49. images/icons_theme/cute/cute_weibo.png +0 -0
  50. images/icons_theme/cute/old-cute_google.png +0 -0
  51. images/icons_theme/default/default_ok.png +0 -0
  52. images/{telegram.png → icons_theme/default/default_telegram.png} +0 -0
  53. images/{vk.png → icons_theme/default/default_vk.png} +0 -0
  54. images/icons_theme/default/default_wechat.png +0 -0
  55. images/icons_theme/default/default_weibo.png +0 -0
  56. images/icons_theme/default/old-default_google.png +0 -0
  57. images/icons_theme/flat/flat_houzz.png +0 -0
  58. images/icons_theme/flat/flat_ok.png +0 -0
  59. images/icons_theme/flat/flat_telegram.png +0 -0
  60. images/icons_theme/flat/flat_vk.png +0 -0
  61. images/icons_theme/flat/flat_wechat.png +0 -0
  62. images/icons_theme/flat/flat_weibo.png +0 -0
  63. images/icons_theme/glossy/glossy_houzz.png +0 -0
  64. images/icons_theme/glossy/glossy_ok.png +0 -0
  65. images/icons_theme/glossy/glossy_telegram.png +0 -0
  66. images/icons_theme/glossy/glossy_vk.png +0 -0
  67. images/icons_theme/glossy/glossy_wechat.png +0 -0
  68. images/icons_theme/glossy/glossy_weibo.png +0 -0
  69. images/icons_theme/orange/orange_houzz.png +0 -0
  70. images/icons_theme/orange/orange_ok.png +0 -0
  71. images/icons_theme/orange/orange_telegram.png +0 -0
  72. images/icons_theme/orange/orange_vk.png +0 -0
  73. images/icons_theme/orange/orange_wechat.png +0 -0
  74. images/icons_theme/orange/orange_weibo.png +0 -0
  75. images/icons_theme/shaded_dark/shaded_dark_houzz.png +0 -0
  76. images/icons_theme/shaded_dark/shaded_dark_ok.png +0 -0
  77. images/icons_theme/shaded_dark/shaded_dark_telegram.png +0 -0
  78. images/icons_theme/shaded_dark/shaded_dark_vk.png +0 -0
  79. images/icons_theme/shaded_dark/shaded_dark_wechat.png +0 -0
  80. images/icons_theme/shaded_dark/shaded_dark_weibo.png +0 -0
  81. images/icons_theme/shaded_light/shaded_light_houzz.png +0 -0
  82. images/icons_theme/shaded_light/shaded_light_ok.png +0 -0
  83. images/icons_theme/shaded_light/shaded_light_telegram.png +0 -0
  84. images/icons_theme/shaded_light/shaded_light_vk.png +0 -0
  85. images/icons_theme/shaded_light/shaded_light_wechat.png +0 -0
  86. images/icons_theme/shaded_light/shaded_light_weibo.png +0 -0
  87. images/icons_theme/silver/silver_houzz.png +0 -0
  88. images/icons_theme/silver/silver_ok.png +0 -0
  89. images/icons_theme/silver/silver_telegram.png +0 -0
  90. images/icons_theme/silver/silver_vk.png +0 -0
  91. images/icons_theme/silver/silver_wechat.png +0 -0
  92. images/icons_theme/silver/silver_weibo.png +0 -0
  93. images/icons_theme/splash/splash_houzz.png +0 -0
  94. images/icons_theme/splash/splash_ok.png +0 -0
  95. images/icons_theme/splash/splash_telegram.png +0 -0
  96. images/icons_theme/splash/splash_vk.png +0 -0
  97. images/icons_theme/splash/splash_wechat.png +0 -0
  98. images/icons_theme/splash/splash_weibo.png +0 -0
  99. images/icons_theme/thin/thin_houzz.png +0 -0
  100. images/icons_theme/thin/thin_ok.png +0 -0
  101. images/icons_theme/thin/thin_telegram.png +0 -0
  102. images/icons_theme/thin/thin_vk.png +0 -0
  103. images/icons_theme/thin/thin_wechat.png +0 -0
  104. images/icons_theme/thin/thin_weibo.png +0 -0
  105. images/icons_theme/transparent/transparent_houzz.png +0 -0
  106. images/icons_theme/transparent/transparent_ok.png +0 -0
  107. images/icons_theme/transparent/transparent_telegram.png +0 -0
  108. images/icons_theme/transparent/transparent_vk.png +0 -0
  109. images/icons_theme/transparent/transparent_wechat.png +0 -0
  110. images/icons_theme/transparent/transparent_weibo.png +0 -0
  111. images/messenger.png +0 -0
  112. images/print.png +0 -0
  113. images/reddit.png +0 -0
  114. images/skype.png +0 -0
  115. images/snapchat.png +0 -0
  116. images/soundcloud.png +0 -0
  117. images/steam.png +0 -0
  118. images/tab_3_icns.png +0 -0
  119. images/tumblr.png +0 -0
  120. images/twitch.png +0 -0
  121. images/vimeo.png +0 -0
  122. images/whatsapp.png +0 -0
  123. images/xing.png +0 -0
  124. images/yelp.png +0 -0
  125. images/yummly.png +0 -0
  126. js/custom-admin.js +183 -12
  127. js/custom-form.js +1 -1
  128. js/custom.js +34 -4
  129. js/qrcode.min.js +1 -0
  130. libs/controllers/sfsi_buttons_controller.php +119 -5
  131. libs/controllers/sfsi_frontpopUp.php +17 -1
  132. libs/controllers/sfsi_iconsUpload_contoller.php +40 -0
  133. libs/controllers/sfsiocns_OnPosts.php +28 -25
  134. libs/sfsi_Init_JqueryCss.php +5 -0
  135. libs/sfsi_install_uninstall.php +864 -642
  136. libs/sfsi_widget.php +388 -11
  137. readme.txt +17 -8
  138. ultimate_social_media_icons.php +22 -22
  139. views/sfsi_option_view1.php +82 -24
  140. views/sfsi_option_view2.php +121 -7
  141. views/sfsi_option_view3.php +62 -18
  142. views/sfsi_option_view4.php +168 -9
  143. views/sfsi_option_view5.php +101 -8
  144. views/sfsi_option_view6.php +1 -1
  145. views/sfsi_option_view7.php +31 -1
  146. views/sfsi_option_view8.php +4 -2
  147. views/sfsi_options_view.php +1 -2
  148. views/sfsi_pop_content.php +102 -1
css/sfsi-admin-style.css CHANGED
@@ -118,23 +118,24 @@ ul#adminmenu li.toplevel_page_sfsi-options div.wp-menu-image {
118
  }
119
  #adminmenu li.toplevel_page_sfsi-options a.toplevel_page_sfsi-options {
120
  padding: 0 0 0 38px;
121
- font-family: helveticabold;
122
  }
123
  ul#adminmenu li.toplevel_page_sfsi-options a.toplevel_page_sfsi-options {
124
  color: #e12522;
125
  transition: 0s;
126
  background: url(images/left_log_icn.png) 6px 15px no-repeat #000;
127
  background: url(images/left_log_icn.png) 6px -43px no-repeat #444444;
128
- color: #fafafa;
 
129
  }
130
  ul#adminmenu li.toplevel_page_sfsi-options a.toplevel_page_sfsi-options:hover {
131
  background: url(images/left_log_icn.png) 6px -43px no-repeat #444444;
132
- color: #fafafa;
133
  }
134
  ul#adminmenu li.toplevel_page_sfsi-options a.current, ul#adminmenu li.toplevel_page_sfsi-options a.current:hover {
135
  background: url(images/left_log_icn.png) 6px 15px no-repeat #000000;
136
  /*background: url(images/left_log_icn.png) 6px -43px no-repeat #444444;*/
137
- color: #e12522;
138
  }
139
  /*Tab1*/
140
  .tab1 ul.icn_listing {
@@ -152,7 +153,7 @@ ul.icn_listing li .tb_4_ck {
152
  float: left;
153
  margin: 10px 0 0;
154
  }
155
- .tab1 ul.icn_listing li .custom, .tab1 ul.icn_listing li .sfsicls_email, .tab1 ul.icn_listing li .sfsicls_facebook, .tab1 ul.icn_listing li .sfsicls_ggle_pls, .tab1 ul.icn_listing li .sfsicls_instagram, .tab1 ul.icn_listing li .sfsicls_linkdin, .tab1 ul.icn_listing li .sfsicls_pinterest, .tab1 ul.icn_listing li .sfsicls_rs_s, .tab1 ul.icn_listing li .sfsicls_share, .tab1 ul.icn_listing li .sfsicls_twt, .tab1 ul.icn_listing li .sfsicls_utube {
156
  background: url(../images/tab_1_icn_list.png) no-repeat;
157
  float: left;
158
  padding: 0 0 0 59px;
@@ -162,6 +163,27 @@ ul.icn_listing li .tb_4_ck {
162
  font-family: helveticaregular;
163
  font-size: 22px;
164
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  .tab1 ul.icn_listing li .sfsicls_rs_s {
166
  background-position: 0 0;
167
  color: #f7941d;
@@ -274,7 +296,7 @@ ul.icn_listing li .right_info a {
274
  {
275
  margin-right: 2%
276
  }
277
- .tab2 .row h2.sfsicls_email, .tab2 .row h2.sfsicls_facebook, .tab2 .row h2.sfsicls_ggle_pls, .tab2 .row h2.sfsicls_instagram, .tab2 .row h2.sfsicls_linkdin, .tab2 .row h2.sfsicls_pinterest, .tab2 .row h2.sfsicls_rs_s, .tab2 .row h2.sfsicls_share, .tab2 .row h2.sfsicls_twt, .tab2 .row h2.sfsicls_utube {
278
  background: url(../images/tab_1_icn_list.png) no-repeat;
279
  padding: 0 0 0 70px;
280
  margin: 15px 0 7px 21px;
@@ -287,6 +309,26 @@ ul.icn_listing li .right_info a {
287
  background-position: 0 0;
288
  color: #f7941d;
289
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
290
  .tab2 .row h2.sfsicls_email {
291
  background-position: 0 -71px;
292
  color: #d1c800;
@@ -357,8 +399,31 @@ ul.tab_2_email_sec li .radio {
357
  float: left;
358
  width: 160px;
359
  }
360
- /*Tab3*/
361
- .icns_tab_3 .row_10_1, .icns_tab_3 .row_10_10, .icns_tab_3 .row_10_11, .icns_tab_3 .row_10_2, .icns_tab_3 .row_10_3, .icns_tab_3 .row_10_4, .icns_tab_3 .row_10_5, .icns_tab_3 .row_10_6, .icns_tab_3 .row_10_7, .icns_tab_3 .row_10_8, .icns_tab_3 .row_10_9, .icns_tab_3 .row_11_1, .icns_tab_3 .row_11_10, .icns_tab_3 .row_11_11, .icns_tab_3 .row_11_2, .icns_tab_3 .row_11_3, .icns_tab_3 .row_11_4, .icns_tab_3 .row_11_5, .icns_tab_3 .row_11_6, .icns_tab_3 .row_11_7, .icns_tab_3 .row_11_8, .icns_tab_3 .row_11_9, .icns_tab_3 .row_12_1, .icns_tab_3 .row_12_10, .icns_tab_3 .row_12_11, .icns_tab_3 .row_12_2, .icns_tab_3 .row_12_3, .icns_tab_3 .row_12_4, .icns_tab_3 .row_12_5, .icns_tab_3 .row_12_6, .icns_tab_3 .row_12_7, .icns_tab_3 .row_12_8, .icns_tab_3 .row_12_9, .icns_tab_3 .row_13_1, .icns_tab_3 .row_13_10, .icns_tab_3 .row_13_11, .icns_tab_3 .row_13_2, .icns_tab_3 .row_13_3, .icns_tab_3 .row_13_4, .icns_tab_3 .row_13_5, .icns_tab_3 .row_13_6, .icns_tab_3 .row_13_7, .icns_tab_3 .row_13_8, .icns_tab_3 .row_13_9, .icns_tab_3 .row_14_1, .icns_tab_3 .row_14_10, .icns_tab_3 .row_14_11, .icns_tab_3 .row_14_2, .icns_tab_3 .row_14_3, .icns_tab_3 .row_14_4, .icns_tab_3 .row_14_5, .icns_tab_3 .row_14_6, .icns_tab_3 .row_14_7, .icns_tab_3 .row_14_8, .icns_tab_3 .row_14_9, .icns_tab_3 .row_15_1, .icns_tab_3 .row_15_10, .icns_tab_3 .row_15_11, .icns_tab_3 .row_15_2, .icns_tab_3 .row_15_3, .icns_tab_3 .row_15_4, .icns_tab_3 .row_15_5, .icns_tab_3 .row_15_6, .icns_tab_3 .row_15_7, .icns_tab_3 .row_15_8, .icns_tab_3 .row_15_9, .icns_tab_3 .row_16_1, .icns_tab_3 .row_16_10, .icns_tab_3 .row_16_11, .icns_tab_3 .row_16_2, .icns_tab_3 .row_16_3, .icns_tab_3 .row_16_4, .icns_tab_3 .row_16_5, .icns_tab_3 .row_16_6, .icns_tab_3 .row_16_7, .icns_tab_3 .row_16_8, .icns_tab_3 .row_16_9, .icns_tab_3 .row_1_1, .icns_tab_3 .row_1_10, .icns_tab_3 .row_1_11, .icns_tab_3 .row_1_2, .icns_tab_3 .row_1_3, .icns_tab_3 .row_1_4, .icns_tab_3 .row_1_5, .icns_tab_3 .row_1_6, .icns_tab_3 .row_1_7, .icns_tab_3 .row_1_8, .icns_tab_3 .row_1_9, .icns_tab_3 .row_2_1, .icns_tab_3 .row_2_10, .icns_tab_3 .row_2_11, .icns_tab_3 .row_2_2, .icns_tab_3 .row_2_3, .icns_tab_3 .row_2_4, .icns_tab_3 .row_2_5, .icns_tab_3 .row_2_6, .icns_tab_3 .row_2_7, .icns_tab_3 .row_2_8, .icns_tab_3 .row_2_9, .icns_tab_3 .row_3_1, .icns_tab_3 .row_3_10, .icns_tab_3 .row_3_11, .icns_tab_3 .row_3_2, .icns_tab_3 .row_3_3, .icns_tab_3 .row_3_4, .icns_tab_3 .row_3_5, .icns_tab_3 .row_3_6, .icns_tab_3 .row_3_7, .icns_tab_3 .row_3_8, .icns_tab_3 .row_3_9, .icns_tab_3 .row_4_1, .icns_tab_3 .row_4_10, .icns_tab_3 .row_4_11, .icns_tab_3 .row_4_2, .icns_tab_3 .row_4_3, .icns_tab_3 .row_4_4, .icns_tab_3 .row_4_5, .icns_tab_3 .row_4_6, .icns_tab_3 .row_4_7, .icns_tab_3 .row_4_8, .icns_tab_3 .row_4_9, .icns_tab_3 .row_5_1, .icns_tab_3 .row_5_10, .icns_tab_3 .row_5_11, .icns_tab_3 .row_5_2, .icns_tab_3 .row_5_3, .icns_tab_3 .row_5_4, .icns_tab_3 .row_5_5, .icns_tab_3 .row_5_6, .icns_tab_3 .row_5_7, .icns_tab_3 .row_5_8, .icns_tab_3 .row_5_9, .icns_tab_3 .row_6_1, .icns_tab_3 .row_6_10, .icns_tab_3 .row_6_11, .icns_tab_3 .row_6_2, .icns_tab_3 .row_6_3, .icns_tab_3 .row_6_4, .icns_tab_3 .row_6_5, .icns_tab_3 .row_6_6, .icns_tab_3 .row_6_7, .icns_tab_3 .row_6_8, .icns_tab_3 .row_6_9, .icns_tab_3 .row_7_1, .icns_tab_3 .row_7_10, .icns_tab_3 .row_7_11, .icns_tab_3 .row_7_2, .icns_tab_3 .row_7_3, .icns_tab_3 .row_7_4, .icns_tab_3 .row_7_5, .icns_tab_3 .row_7_6, .icns_tab_3 .row_7_7, .icns_tab_3 .row_7_8, .icns_tab_3 .row_7_9, .icns_tab_3 .row_8_1, .icns_tab_3 .row_8_10, .icns_tab_3 .row_8_11, .icns_tab_3 .row_8_2, .icns_tab_3 .row_8_3, .icns_tab_3 .row_8_4, .icns_tab_3 .row_8_5, .icns_tab_3 .row_8_6, .icns_tab_3 .row_8_7, .icns_tab_3 .row_8_8, .icns_tab_3 .row_8_9, .icns_tab_3 .row_9_1, .icns_tab_3 .row_9_10, .icns_tab_3 .row_9_11, .icns_tab_3 .row_9_2, .icns_tab_3 .row_9_3, .icns_tab_3 .row_9_4, .icns_tab_3 .row_9_5, .icns_tab_3 .row_9_6, .icns_tab_3 .row_9_7, .icns_tab_3 .row_9_8, .icns_tab_3 .row_9_9, .icns_tab_3 .row_17_1, .icns_tab_3 .row_17_2, .icns_tab_3 .row_17_3, .icns_tab_3 .row_17_4, .icns_tab_3 .row_17_5, .icns_tab_3 .row_17_6, .icns_tab_3 .row_17_7, .icns_tab_3 .row_17_8, .icns_tab_3 .row_17_9, .icns_tab_3 .row_17_10 {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
362
  background: url(../images/tab_3_icns.png) no-repeat;
363
  width: 53px;
364
  height: 52px;
@@ -396,8 +461,27 @@ ul.tab_2_email_sec li .radio {
396
  background-position: -526px 0;
397
  }
398
  .icns_tab_3 .row_1_11 {
399
- background-position: -586px 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
400
  }
 
 
401
  .icns_tab_3 .row_2_1 {
402
  background-position: 0 -74px;
403
  }
@@ -429,7 +513,23 @@ ul.tab_2_email_sec li .radio {
429
  background-position: -526px -74px;
430
  }
431
  .icns_tab_3 .row_2_11 {
432
- background-position: -586px -74px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
433
  }
434
  .icns_tab_3 .row_3_1 {
435
  background-position: 0 -146px;
@@ -462,7 +562,23 @@ ul.tab_2_email_sec li .radio {
462
  background-position: -526px -146px;
463
  }
464
  .icns_tab_3 .row_3_11 {
465
- background-position: -588px -146px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
466
  }
467
  .icns_tab_3 .row_4_1 {
468
  background-position: 0 -222px;
@@ -495,7 +611,23 @@ ul.tab_2_email_sec li .radio {
495
  background-position: -526px -222px;
496
  }
497
  .icns_tab_3 .row_4_11 {
498
- background-position: -586px -222px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
499
  }
500
  .icns_tab_3 .row_5_1 {
501
  background-position: 0 -296px;
@@ -528,7 +660,23 @@ ul.tab_2_email_sec li .radio {
528
  background-position: -526px -296px;
529
  }
530
  .icns_tab_3 .row_5_11 {
531
- background-position: -586px -296px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
532
  }
533
  .icns_tab_3 .row_6_1 {
534
  background-position: 0 -370px;
@@ -561,7 +709,23 @@ ul.tab_2_email_sec li .radio {
561
  background-position: -526px -370px;
562
  }
563
  .icns_tab_3 .row_6_11 {
564
- background-position: -586px -370px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
565
  }
566
  .icns_tab_3 .row_7_1 {
567
  background-position: 0 -444px;
@@ -594,7 +758,23 @@ ul.tab_2_email_sec li .radio {
594
  background-position: -526px -444px;
595
  }
596
  .icns_tab_3 .row_7_11 {
597
- background-position: -586px -444px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
598
  }
599
  .icns_tab_3 .row_8_1 {
600
  background-position: 0 -518px;
@@ -627,7 +807,23 @@ ul.tab_2_email_sec li .radio {
627
  background-position: -526px -518px;
628
  }
629
  .icns_tab_3 .row_8_11 {
630
- background-position: -586px -518px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
631
  }
632
  .icns_tab_3 .row_9_1 {
633
  background-position: 0 -592px;
@@ -660,7 +856,23 @@ ul.tab_2_email_sec li .radio {
660
  background-position: -526px -592px;
661
  }
662
  .icns_tab_3 .row_9_11 {
663
- background-position: -586px -592px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
664
  }
665
  .icns_tab_3 .row_10_1 {
666
  background-position: 0 -666px;
@@ -693,7 +905,23 @@ ul.tab_2_email_sec li .radio {
693
  background-position: -526px -666px;
694
  }
695
  .icns_tab_3 .row_10_11 {
696
- background-position: -586px -666px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
697
  }
698
  .icns_tab_3 .row_11_1 {
699
  background-position: 0 -740px;
@@ -726,7 +954,23 @@ ul.tab_2_email_sec li .radio {
726
  background-position: -526px -740px;
727
  }
728
  .icns_tab_3 .row_11_11 {
729
- background-position: -586px -740px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
730
  }
731
  .icns_tab_3 .row_12_1 {
732
  background-position: 0 -814px;
@@ -759,7 +1003,23 @@ ul.tab_2_email_sec li .radio {
759
  background-position: -526px -814px;
760
  }
761
  .icns_tab_3 .row_12_11 {
762
- background-position: -586px -814px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
763
  }
764
  .icns_tab_3 .row_13_1 {
765
  background-position: 0 -888px;
@@ -792,7 +1052,24 @@ ul.tab_2_email_sec li .radio {
792
  background-position: -526px -888px;
793
  }
794
  .icns_tab_3 .row_13_11 {
795
- background-position: -586px -888px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
796
  }
797
  .icns_tab_3 .row_14_1 {
798
  background-position: 0 -962px;
@@ -825,7 +1102,24 @@ ul.tab_2_email_sec li .radio {
825
  background-position: -526px -962px;
826
  }
827
  .icns_tab_3 .row_14_11 {
828
- background-position: -586px -962px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
829
  }
830
  .icns_tab_3 .row_15_1 {
831
  background-position: 0 -1036px;
@@ -858,7 +1152,23 @@ ul.tab_2_email_sec li .radio {
858
  background-position: -526px -1036px;
859
  }
860
  .icns_tab_3 .row_15_11 {
861
- background-position: -586px -1036px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
862
  }
863
  .icns_tab_3 .row_16_1 {
864
  background-position: 0 -1109px;
@@ -891,8 +1201,25 @@ ul.tab_2_email_sec li .radio {
891
  background-position: -526px -1109px;
892
  }
893
  .icns_tab_3 .row_16_11 {
894
- background-position: -586px -1109px;
 
 
 
895
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
896
  /*tab 6 css*/
897
  .tab6 .social_icon_like1 {
898
  width: 100%;
@@ -1409,7 +1736,7 @@ ul.tab_2_email_sec li .radio {
1409
  }
1410
  .tab8 label.sfsi_heding {
1411
  display: inline-block;
1412
- font-weight: bold;
1413
  padding-top: 10px;
1414
  width: 303px;
1415
  }
@@ -2007,9 +2334,9 @@ h2.optional { float: left;clear: both;margin-top: 25px !important; }
2007
  .tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns ul.sfsi_floaticon_margin_sec li{min-width:50%;padding-left:0;padding-bottom:15px;float:left;width:50%}
2008
  .tab9 .sfsi_tab_3_icns.flthmonpg .radio{margin-top:55px}
2009
  .tab9 .sfsi_position_divider{float:left;margin-top:0;margin-left:15px;width:100%}
2010
- #accordion .tab9 ul.sfsiplus_shwthmbfraftr .labelhdng4,#accordion .tab9 ul.sfsiplus_shwthmbfraftr .row h4.labelhdng4{color:#555;font-size:20px;margin-left:20px;font-family:helveticaregular}
2011
  .tab9 .sfsiLocationli .sfsi_right_info .sfsi_tab_3_icns{float:left;clear:both}
2012
- .tab9 ul.sfsi_tab_3_icns li .sfsiplus_icns_tab_3,ul.sfsi_tab_3_icns li .radio{float:left}
2013
  .tab9 ul.sfsi_tab_3_icns.flthmonpg{margin-top:20px}
2014
  .tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec li{float:left}
2015
  .tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec label{font-size:17px;padding-right:7px;width:63px!important;display:inline-block;margin-top:10px}
@@ -2635,4 +2962,35 @@ div#sfsi_langnotice,div#sfsi_addThis_removal_notice,div#sfsi_error_reporting_not
2635
  text-decoration: underline!important;
2636
  font-weight: 900;
2637
  color: #666;
2638
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
118
  }
119
  #adminmenu li.toplevel_page_sfsi-options a.toplevel_page_sfsi-options {
120
  padding: 0 0 0 38px;
121
+ /* font-family: helveticabold; */
122
  }
123
  ul#adminmenu li.toplevel_page_sfsi-options a.toplevel_page_sfsi-options {
124
  color: #e12522;
125
  transition: 0s;
126
  background: url(images/left_log_icn.png) 6px 15px no-repeat #000;
127
  background: url(images/left_log_icn.png) 6px -43px no-repeat #444444;
128
+ color: #e12522;
129
+
130
  }
131
  ul#adminmenu li.toplevel_page_sfsi-options a.toplevel_page_sfsi-options:hover {
132
  background: url(images/left_log_icn.png) 6px -43px no-repeat #444444;
133
+ color: #e12522;
134
  }
135
  ul#adminmenu li.toplevel_page_sfsi-options a.current, ul#adminmenu li.toplevel_page_sfsi-options a.current:hover {
136
  background: url(images/left_log_icn.png) 6px 15px no-repeat #000000;
137
  /*background: url(images/left_log_icn.png) 6px -43px no-repeat #444444;*/
138
+ color: #eee;
139
  }
140
  /*Tab1*/
141
  .tab1 ul.icn_listing {
153
  float: left;
154
  margin: 10px 0 0;
155
  }
156
+ .tab1 ul.icn_listing li .custom, .tab1 ul.icn_listing li .sfsicls_email, .tab1 ul.icn_listing li .sfsicls_facebook, .tab1 ul.icn_listing li .sfsicls_ggle_pls, .tab1 ul.icn_listing li .sfsicls_instagram, .tab1 ul.icn_listing li .sfsicls_telegram, .tab1 ul.icn_listing li .sfsicls_vk, .tab1 ul.icn_listing li .sfsicls_ok, .tab1 ul.icn_listing li .sfsicls_wechat, .tab1 ul.icn_listing li .sfsicls_weibo, .sfsicls_linkdin, .tab1 ul.icn_listing li .sfsicls_pinterest, .tab1 ul.icn_listing li .sfsicls_rs_s, .tab1 ul.icn_listing li .sfsicls_share, .tab1 ul.icn_listing li .sfsicls_twt, .tab1 ul.icn_listing li .sfsicls_utube {
157
  background: url(../images/tab_1_icn_list.png) no-repeat;
158
  float: left;
159
  padding: 0 0 0 59px;
163
  font-family: helveticaregular;
164
  font-size: 22px;
165
  }
166
+ .tab1 ul.icn_listing li .sfsicls_telegram {
167
+ background: url(../images/icons_theme/default/default_telegram.png) no-repeat;
168
+ background-size: contain;
169
+ }
170
+ .tab1 ul.icn_listing li .sfsicls_vk {
171
+ background: url(../images/icons_theme/default/default_vk.png) no-repeat;
172
+ background-size: contain;
173
+ }
174
+ .tab1 ul.icn_listing li .sfsicls_ok {
175
+ background: url(../images/icons_theme/default/default_ok.png) no-repeat;
176
+ background-size: contain;
177
+ }
178
+ .tab1 ul.icn_listing li .sfsicls_wechat {
179
+ background: url(../images/icons_theme/default/default_wechat.png) no-repeat;
180
+ background-size: contain;
181
+ }
182
+ .tab1 ul.icn_listing li .sfsicls_weibo {
183
+ background: url(../images/icons_theme/default/default_weibo.png) no-repeat;
184
+ background-size: contain;
185
+ }
186
+
187
  .tab1 ul.icn_listing li .sfsicls_rs_s {
188
  background-position: 0 0;
189
  color: #f7941d;
296
  {
297
  margin-right: 2%
298
  }
299
+ .tab2 .row h2.sfsicls_email, .tab2 .row h2.sfsicls_facebook,.tab2 .row h2.sfsicls_telegram,.tab2 .row h2.sfsicls_vk,.tab2 .row h2.sfsicls_ok,.tab2 .row h2.sfsicls_wechat,.tab2 .row h2.sfsicls_weibo, .tab2 .row h2.sfsicls_ggle_pls, .tab2 .row h2.sfsicls_instagram, .tab2 .row h2.sfsicls_linkdin, .tab2 .row h2.sfsicls_pinterest, .tab2 .row h2.sfsicls_rs_s, .tab2 .row h2.sfsicls_share, .tab2 .row h2.sfsicls_twt, .tab2 .row h2.sfsicls_utube {
300
  background: url(../images/tab_1_icn_list.png) no-repeat;
301
  padding: 0 0 0 70px;
302
  margin: 15px 0 7px 21px;
309
  background-position: 0 0;
310
  color: #f7941d;
311
  }
312
+ .tab2 .row h2.sfsicls_telegram {
313
+ background: url(../images/icons_theme/default/default_telegram.png) no-repeat;
314
+ background-size: contain;
315
+ }
316
+ .tab2 .row h2.sfsicls_vk {
317
+ background: url(../images/icons_theme/default/default_vk.png) no-repeat;
318
+ background-size: contain;
319
+ }
320
+ .tab2 .row h2.sfsicls_ok {
321
+ background: url(../images/icons_theme/default/default_ok.png) no-repeat;
322
+ background-size: contain;
323
+ }
324
+ .tab2 .row h2.sfsicls_wechat {
325
+ background: url(../images/icons_theme/default/default_wechat.png) no-repeat;
326
+ background-size: contain;
327
+ }
328
+ .tab2 .row h2.sfsicls_weibo {
329
+ background: url(../images/icons_theme/default/default_weibo.png) no-repeat;
330
+ background-size: contain;
331
+ }
332
  .tab2 .row h2.sfsicls_email {
333
  background-position: 0 -71px;
334
  color: #d1c800;
399
  float: left;
400
  width: 160px;
401
  }
402
+ /*Tab 3*/
403
+ .icns_tab_3 .row_10_1, .icns_tab_3 .row_10_10, .icns_tab_3 .row_10_11, .icns_tab_3 .row_10_2, .icns_tab_3 .row_10_3, .icns_tab_3 .row_10_4, .icns_tab_3 .row_10_5, .icns_tab_3 .row_10_6, .icns_tab_3 .row_10_7, .icns_tab_3 .row_10_8, .icns_tab_3 .row_10_9, .icns_tab_3 .row_11_1, .icns_tab_3 .row_11_10, .icns_tab_3 .row_11_11, .icns_tab_3 .row_11_2, .icns_tab_3 .row_11_3, .icns_tab_3 .row_11_4, .icns_tab_3 .row_11_5, .icns_tab_3 .row_11_6, .icns_tab_3 .row_11_7, .icns_tab_3 .row_11_8, .icns_tab_3 .row_11_9, .icns_tab_3 .row_12_1, .icns_tab_3 .row_12_10, .icns_tab_3 .row_12_11, .icns_tab_3 .row_12_2, .icns_tab_3 .row_12_3, .icns_tab_3 .row_12_4, .icns_tab_3 .row_12_5, .icns_tab_3 .row_12_6, .icns_tab_3 .row_12_7, .icns_tab_3 .row_12_8, .icns_tab_3 .row_12_9, .icns_tab_3 .row_13_1, .icns_tab_3 .row_13_10, .icns_tab_3 .row_13_11, .icns_tab_3 .row_13_2, .icns_tab_3 .row_13_3, .icns_tab_3 .row_13_4, .icns_tab_3 .row_13_5, .icns_tab_3 .row_13_6, .icns_tab_3 .row_13_7, .icns_tab_3 .row_13_8, .icns_tab_3 .row_13_9, .icns_tab_3 .row_14_1, .icns_tab_3 .row_14_10, .icns_tab_3 .row_14_11, .icns_tab_3 .row_14_2, .icns_tab_3 .row_14_3, .icns_tab_3 .row_14_4, .icns_tab_3 .row_14_5, .icns_tab_3 .row_14_6, .icns_tab_3 .row_14_7, .icns_tab_3 .row_14_8, .icns_tab_3 .row_14_9, .icns_tab_3 .row_15_1, .icns_tab_3 .row_15_10, .icns_tab_3 .row_15_11, .icns_tab_3 .row_15_2, .icns_tab_3 .row_15_3, .icns_tab_3 .row_15_4, .icns_tab_3 .row_15_5, .icns_tab_3 .row_15_6, .icns_tab_3 .row_15_7, .icns_tab_3 .row_15_8, .icns_tab_3 .row_15_9, .icns_tab_3 .row_16_1, .icns_tab_3 .row_16_10, .icns_tab_3 .row_16_11, .icns_tab_3 .row_16_2, .icns_tab_3 .row_16_3, .icns_tab_3 .row_16_4, .icns_tab_3 .row_16_5, .icns_tab_3 .row_16_6, .icns_tab_3 .row_16_7, .icns_tab_3 .row_16_8, .icns_tab_3 .row_16_9, .icns_tab_3 .row_1_1, .icns_tab_3 .row_1_10, .icns_tab_3 .row_1_11, .icns_tab_3 .row_1_14, .icns_tab_3 .row_1_2, .icns_tab_3 .row_1_3, .icns_tab_3 .row_1_4, .icns_tab_3 .row_1_5, .icns_tab_3 .row_1_6, .icns_tab_3 .row_1_7, .icns_tab_3 .row_1_8, .icns_tab_3 .row_1_9, .icns_tab_3 .row_2_1, .icns_tab_3 .row_2_10, .icns_tab_3 .row_2_11,.icns_tab_3 .row_2_14, .icns_tab_3 .row_2_2, .icns_tab_3 .row_2_3, .icns_tab_3 .row_2_4, .icns_tab_3 .row_2_5, .icns_tab_3 .row_2_6, .icns_tab_3 .row_2_7, .icns_tab_3 .row_2_8, .icns_tab_3 .row_2_9, .icns_tab_3 .row_3_1, .icns_tab_3 .row_3_10, .icns_tab_3 .row_3_11,.icns_tab_3 .row_3_14, .icns_tab_3 .row_3_2, .icns_tab_3 .row_3_3, .icns_tab_3 .row_3_4, .icns_tab_3 .row_3_5, .icns_tab_3 .row_3_6, .icns_tab_3 .row_3_7, .icns_tab_3 .row_3_8, .icns_tab_3 .row_3_9, .icns_tab_3 .row_4_1, .icns_tab_3 .row_4_10, .icns_tab_3 .row_4_11, .icns_tab_3 .row_4_14, .icns_tab_3 .row_4_2, .icns_tab_3 .row_4_3, .icns_tab_3 .row_4_4, .icns_tab_3 .row_4_5, .icns_tab_3 .row_4_6, .icns_tab_3 .row_4_7, .icns_tab_3 .row_4_8, .icns_tab_3 .row_4_9, .icns_tab_3 .row_5_1, .icns_tab_3 .row_5_10, .icns_tab_3 .row_5_11, .icns_tab_3 .row_5_14, .icns_tab_3 .row_5_2, .icns_tab_3 .row_5_3, .icns_tab_3 .row_5_4, .icns_tab_3 .row_5_5, .icns_tab_3 .row_5_6, .icns_tab_3 .row_5_7, .icns_tab_3 .row_5_8, .icns_tab_3 .row_5_9, .icns_tab_3 .row_6_1, .icns_tab_3 .row_6_10, .icns_tab_3 .row_6_11, .icns_tab_3 .row_6_14, .icns_tab_3 .row_6_2, .icns_tab_3 .row_6_3, .icns_tab_3 .row_6_4, .icns_tab_3 .row_6_5, .icns_tab_3 .row_6_6, .icns_tab_3 .row_6_7, .icns_tab_3 .row_6_8, .icns_tab_3 .row_6_9, .icns_tab_3 .row_7_1, .icns_tab_3 .row_7_10, .icns_tab_3 .row_7_11, .icns_tab_3 .row_7_2, .icns_tab_3 .row_7_3, .icns_tab_3 .row_7_4, .icns_tab_3 .row_7_5, .icns_tab_3 .row_7_6, .icns_tab_3 .row_7_7, .icns_tab_3 .row_7_8, .icns_tab_3 .row_7_9, .icns_tab_3 .row_8_1, .icns_tab_3 .row_8_10, .icns_tab_3 .row_8_11, .icns_tab_3 .row_8_2, .icns_tab_3 .row_8_3, .icns_tab_3 .row_8_4, .icns_tab_3 .row_8_5, .icns_tab_3 .row_8_6, .icns_tab_3 .row_8_7, .icns_tab_3 .row_8_8, .icns_tab_3 .row_8_9, .icns_tab_3 .row_9_1, .icns_tab_3 .row_9_10, .icns_tab_3 .row_9_11, .icns_tab_3 .row_9_2, .icns_tab_3 .row_9_3, .icns_tab_3 .row_9_4, .icns_tab_3 .row_9_5, .icns_tab_3 .row_9_6, .icns_tab_3 .row_9_7, .icns_tab_3 .row_9_8, .icns_tab_3 .row_9_9, .icns_tab_3 .row_17_1, .icns_tab_3 .row_17_2, .icns_tab_3 .row_17_3, .icns_tab_3 .row_17_4, .icns_tab_3 .row_17_5, .icns_tab_3 .row_17_6, .icns_tab_3 .row_17_7, .icns_tab_3 .row_17_8, .icns_tab_3 .row_17_9, .icns_tab_3 .row_17_10,.icns_tab_3 .row_17_14,.icns_tab_3 .row_17_15,.icns_tab_3 .row_17_16,.icns_tab_3 .row_17_17,.icns_tab_3 .row_17_18,
404
+ .icns_tab_3 .row_17_11, .icns_tab_3 .row_7_14,.icns_tab_3 .row_8_14,.icns_tab_3 .row_9_14,.icns_tab_3 .row_10_14,.icns_tab_3 .row_11_14,
405
+ .icns_tab_3 .row_12_14,.icns_tab_3 .row_13_14,.icns_tab_3 .row_14_14,.icns_tab_3 .row_15_22,.icns_tab_3 .row_16_22,.icns_tab_3 .row_17_22,.icns_tab_3 .row_17_15,.icns_tab_3 .row_17_16,.icns_tab_3 .row_17_17,
406
+ .icns_tab_3 .row_1_15,.icns_tab_3 .row_2_15,.icns_tab_3 .row_3_15,.icns_tab_3 .row_4_15,
407
+ .icns_tab_3 .row_5_15,.icns_tab_3 .row_6_15,.icns_tab_3 .row_7_15,.icns_tab_3 .row_8_15,
408
+ .icns_tab_3 .row_9_15,.icns_tab_3 .row_10_15,.icns_tab_3 .row_11_15,.icns_tab_3 .row_12_15,
409
+ .icns_tab_3 .row_13_15,.icns_tab_3 .row_14_15,.icns_tab_3 .row_15_15,.icns_tab_3 .row_16_15,
410
+
411
+ .icns_tab_3 .row_1_16,.icns_tab_3 .row_2_16,.icns_tab_3 .row_3_16,.icns_tab_3 .row_4_16,
412
+ .icns_tab_3 .row_5_16,.icns_tab_3 .row_6_16,.icns_tab_3 .row_7_16,.icns_tab_3 .row_8_16,
413
+ .icns_tab_3 .row_9_16,.icns_tab_3 .row_10_16,.icns_tab_3 .row_11_16,.icns_tab_3 .row_12_16,
414
+ .icns_tab_3 .row_13_16,.icns_tab_3 .row_14_16,.icns_tab_3 .row_15_16,.icns_tab_3 .row_16_16,
415
+
416
+ .icns_tab_3 .row_1_17,.icns_tab_3 .row_2_17,.icns_tab_3 .row_3_17,.icns_tab_3 .row_4_17,
417
+ .icns_tab_3 .row_5_17,.icns_tab_3 .row_6_17,.icns_tab_3 .row_7_17,.icns_tab_3 .row_8_17,
418
+ .icns_tab_3 .row_9_17,.icns_tab_3 .row_10_17,.icns_tab_3 .row_11_17,.icns_tab_3 .row_12_17,
419
+ .icns_tab_3 .row_13_17,.icns_tab_3 .row_14_17,.icns_tab_3 .row_15_17,.icns_tab_3 .row_16_17,
420
+
421
+ .icns_tab_3 .row_1_18,.icns_tab_3 .row_2_18,.icns_tab_3 .row_3_18,.icns_tab_3 .row_4_18,
422
+ .icns_tab_3 .row_5_18,.icns_tab_3 .row_6_18,.icns_tab_3 .row_7_18,.icns_tab_3 .row_8_18,
423
+ .icns_tab_3 .row_9_18,.icns_tab_3 .row_10_18,.icns_tab_3 .row_11_18,.icns_tab_3 .row_12_18,
424
+ .icns_tab_3 .row_13_18,.icns_tab_3 .row_14_18,.icns_tab_3 .row_15_18,.icns_tab_3 .row_16_18,.icns_tab_3 .row_17_18 ,.icns_tab_3 .row_15_14,.icns_tab_3 .row_16_14
425
+
426
+ {
427
  background: url(../images/tab_3_icns.png) no-repeat;
428
  width: 53px;
429
  height: 52px;
461
  background-position: -526px 0;
462
  }
463
  .icns_tab_3 .row_1_11 {
464
+ background-position: -711px 0;
465
+ }
466
+
467
+ .icns_tab_3 .row_1_14 {
468
+ background-position: -773px 0;
469
+ }
470
+ .icns_tab_3 .row_1_15 {
471
+ background-position: -838px 0;
472
+ }
473
+ .icns_tab_3 .row_1_16 {
474
+ background-position: -909px 0;
475
+ }
476
+ .icns_tab_3 .row_1_17 {
477
+ background-position: -977px 0;
478
+ }
479
+ .icns_tab_3 .row_1_18 {
480
+ background: url(../images/icons_theme/default/default_wechat.png) no-repeat;
481
+ background-size:contain;
482
  }
483
+
484
+
485
  .icns_tab_3 .row_2_1 {
486
  background-position: 0 -74px;
487
  }
513
  background-position: -526px -74px;
514
  }
515
  .icns_tab_3 .row_2_11 {
516
+ background-position: -711px -74px;
517
+ }
518
+ .icns_tab_3 .row_2_14 {
519
+ background-position: -773px -74px;
520
+ }
521
+ .icns_tab_3 .row_2_15 {
522
+ background-position: -838px -74px;
523
+ }
524
+ .icns_tab_3 .row_2_16 {
525
+ background-position: -909px -74px;
526
+ }
527
+ .icns_tab_3 .row_2_17 {
528
+ background-position: -977px -74px;
529
+ }
530
+ .icns_tab_3 .row_2_18 {
531
+ background: url(../images/icons_theme/flat/flat_wechat.png) no-repeat;
532
+ background-size:contain;
533
  }
534
  .icns_tab_3 .row_3_1 {
535
  background-position: 0 -146px;
562
  background-position: -526px -146px;
563
  }
564
  .icns_tab_3 .row_3_11 {
565
+ background-position: -711px -147px;
566
+ }
567
+ .icns_tab_3 .row_3_14 {
568
+ background-position: -773px -147px;
569
+ }
570
+ .icns_tab_3 .row_3_15 {
571
+ background-position: -838px -147px;
572
+ }
573
+ .icns_tab_3 .row_3_16 {
574
+ background-position: -909px -147px;
575
+ }
576
+ .icns_tab_3 .row_3_17 {
577
+ background-position: -977px -147px;
578
+ }
579
+ .icns_tab_3 .row_3_18 {
580
+ background: url(../images/icons_theme/thin/thin_wechat.png) no-repeat;
581
+ background-size:contain;
582
  }
583
  .icns_tab_3 .row_4_1 {
584
  background-position: 0 -222px;
611
  background-position: -526px -222px;
612
  }
613
  .icns_tab_3 .row_4_11 {
614
+ background-position: -711px -222px;
615
+ }
616
+ .icns_tab_3 .row_4_14 {
617
+ background-position: -773px -222px;
618
+ }
619
+ .icns_tab_3 .row_4_15 {
620
+ background-position: -838px -222px;
621
+ }
622
+ .icns_tab_3 .row_4_16 {
623
+ background-position: -909px -222px;
624
+ }
625
+ .icns_tab_3 .row_4_17 {
626
+ background-position: -977px -222px;
627
+ }
628
+ .icns_tab_3 .row_4_18 {
629
+ background: url(../images/icons_theme/cute/cute_wechat.png) no-repeat;
630
+ background-size:contain;
631
  }
632
  .icns_tab_3 .row_5_1 {
633
  background-position: 0 -296px;
660
  background-position: -526px -296px;
661
  }
662
  .icns_tab_3 .row_5_11 {
663
+ background-position: -711px -296px;
664
+ }
665
+ .icns_tab_3 .row_5_14 {
666
+ background-position: -773px -296px;
667
+ }
668
+ .icns_tab_3 .row_5_15 {
669
+ background-position: -838px -296px;
670
+ }
671
+ .icns_tab_3 .row_5_16 {
672
+ background-position: -909px -296px;
673
+ }
674
+ .icns_tab_3 .row_5_17 {
675
+ background-position: -977px -296px;
676
+ }
677
+ .icns_tab_3 .row_5_18 {
678
+ background: url(../images/icons_theme/cubes/cubes_wechat.png);
679
+ background-size:contain;
680
  }
681
  .icns_tab_3 .row_6_1 {
682
  background-position: 0 -370px;
709
  background-position: -526px -370px;
710
  }
711
  .icns_tab_3 .row_6_11 {
712
+ background-position: -711px -370px;
713
+ }
714
+ .icns_tab_3 .row_6_14 {
715
+ background-position: -773px -370px;
716
+ }
717
+ .icns_tab_3 .row_6_15 {
718
+ background-position: -838px -370px;
719
+ }
720
+ .icns_tab_3 .row_6_16 {
721
+ background-position: -909px -370px;
722
+ }
723
+ .icns_tab_3 .row_6_17 {
724
+ background-position: -977px -370px;
725
+ }
726
+ .icns_tab_3 .row_6_18 {
727
+ background: url(../images/icons_theme/chrome_blue/chrome_blue_wechat.png);
728
+ background-size:contain;
729
  }
730
  .icns_tab_3 .row_7_1 {
731
  background-position: 0 -444px;
758
  background-position: -526px -444px;
759
  }
760
  .icns_tab_3 .row_7_11 {
761
+ background-position: -711px -444px;
762
+ }
763
+ .icns_tab_3 .row_7_14 {
764
+ background-position: -773px -444px;
765
+ }
766
+ .icns_tab_3 .row_7_15 {
767
+ background-position: -838px -444px;
768
+ }
769
+ .icns_tab_3 .row_7_16 {
770
+ background-position: -909px -444px;
771
+ }
772
+ .icns_tab_3 .row_7_17 {
773
+ background-position: -977px -444px;
774
+ }
775
+ .icns_tab_3 .row_7_18 {
776
+ background: url(../images/icons_theme/chrome_grey/chrome_grey_wechat.png);
777
+ background-size:contain;
778
  }
779
  .icns_tab_3 .row_8_1 {
780
  background-position: 0 -518px;
807
  background-position: -526px -518px;
808
  }
809
  .icns_tab_3 .row_8_11 {
810
+ background-position: -711px -518px;
811
+ }
812
+ .icns_tab_3 .row_8_14 {
813
+ background-position: -773px -518px;
814
+ }
815
+ .icns_tab_3 .row_8_15 {
816
+ background-position: -838px -518px;
817
+ }
818
+ .icns_tab_3 .row_8_16 {
819
+ background-position: -909px -518px;
820
+ }
821
+ .icns_tab_3 .row_8_17 {
822
+ background-position: -977px -518px;
823
+ }
824
+ .icns_tab_3 .row_8_18 {
825
+ background: url(../images/icons_theme/splash/splash_wechat.png);
826
+ background-size:contain;
827
  }
828
  .icns_tab_3 .row_9_1 {
829
  background-position: 0 -592px;
856
  background-position: -526px -592px;
857
  }
858
  .icns_tab_3 .row_9_11 {
859
+ background-position: -711px -592px;
860
+ }
861
+ .icns_tab_3 .row_9_14 {
862
+ background-position: -773px -592px;
863
+ }
864
+ .icns_tab_3 .row_9_15 {
865
+ background-position: -838px -592px;
866
+ }
867
+ .icns_tab_3 .row_9_16 {
868
+ background-position: -909px -592px;
869
+ }
870
+ .icns_tab_3 .row_9_17 {
871
+ background-position: -977px -592px;
872
+ }
873
+ .icns_tab_3 .row_9_18 {
874
+ background: url(../images/icons_theme/orange/orange_wechat.png);
875
+ background-size:contain;
876
  }
877
  .icns_tab_3 .row_10_1 {
878
  background-position: 0 -666px;
905
  background-position: -526px -666px;
906
  }
907
  .icns_tab_3 .row_10_11 {
908
+ background-position: -711px -666px;
909
+ }
910
+ .icns_tab_3 .row_10_14 {
911
+ background-position: -773px -666px;
912
+ }
913
+ .icns_tab_3 .row_10_15 {
914
+ background-position: -838px -666px;
915
+ }
916
+ .icns_tab_3 .row_10_16 {
917
+ background-position: -909px -666px;
918
+ }
919
+ .icns_tab_3 .row_10_17 {
920
+ background-position: -977px -666px;
921
+ }
922
+ .icns_tab_3 .row_10_18 {
923
+ background: url(../images/icons_theme/crystal/crystal_wechat.png);
924
+ background-size:contain;
925
  }
926
  .icns_tab_3 .row_11_1 {
927
  background-position: 0 -740px;
954
  background-position: -526px -740px;
955
  }
956
  .icns_tab_3 .row_11_11 {
957
+ background-position: -711px -740px;
958
+ }
959
+ .icns_tab_3 .row_11_14 {
960
+ background-position: -773px -740px;
961
+ }
962
+ .icns_tab_3 .row_11_15 {
963
+ background-position: -838px -740px;
964
+ }
965
+ .icns_tab_3 .row_11_16 {
966
+ background-position: -909px -740px;
967
+ }
968
+ .icns_tab_3 .row_11_17 {
969
+ background-position: -977px -740px;
970
+ }
971
+ .icns_tab_3 .row_11_18 {
972
+ background: url(../images/icons_theme/glossy/glossy_wechat.png);
973
+ background-size:contain;
974
  }
975
  .icns_tab_3 .row_12_1 {
976
  background-position: 0 -814px;
1003
  background-position: -526px -814px;
1004
  }
1005
  .icns_tab_3 .row_12_11 {
1006
+ background-position: -711px -814px;
1007
+ }
1008
+ .icns_tab_3 .row_12_14 {
1009
+ background-position: -773px -814px;
1010
+ }
1011
+ .icns_tab_3 .row_12_15 {
1012
+ background-position: -838px -814px;
1013
+ }
1014
+ .icns_tab_3 .row_12_16 {
1015
+ background-position: -909px -814px;
1016
+ }
1017
+ .icns_tab_3 .row_12_17 {
1018
+ background-position: -977px -814px;
1019
+ }
1020
+ .icns_tab_3 .row_12_18 {
1021
+ background: url(../images/icons_theme/black/black_wechat.png);
1022
+ background-size:contain;
1023
  }
1024
  .icns_tab_3 .row_13_1 {
1025
  background-position: 0 -888px;
1052
  background-position: -526px -888px;
1053
  }
1054
  .icns_tab_3 .row_13_11 {
1055
+ background-position: -711px -888px;
1056
+ }
1057
+ .icns_tab_3 .row_13_14 {
1058
+ background-position: -773px -888px;
1059
+ }
1060
+ .icns_tab_3 .row_13_15 {
1061
+ background-position: -838px -888px;
1062
+ }
1063
+ .icns_tab_3 .row_13_16 {
1064
+ background-position: -909px -888px;
1065
+ }
1066
+ .icns_tab_3 .row_13_17 {
1067
+ background-position: -977px -888px;
1068
+ }
1069
+ .icns_tab_3 .row_13_18 {
1070
+ background: url(../images/icons_theme/silver/silver_wechat.png);
1071
+
1072
+ background-size:contain;
1073
  }
1074
  .icns_tab_3 .row_14_1 {
1075
  background-position: 0 -962px;
1102
  background-position: -526px -962px;
1103
  }
1104
  .icns_tab_3 .row_14_11 {
1105
+ background-position: -711px -962px;
1106
+ }
1107
+ .icns_tab_3 .row_14_14 {
1108
+ background-position: -773px -962px;
1109
+ }
1110
+ .icns_tab_3 .row_14_15 {
1111
+ background-position: -838px -962px;
1112
+ }
1113
+ .icns_tab_3 .row_14_16 {
1114
+ background-position: -909px -962px;
1115
+ }
1116
+ .icns_tab_3 .row_14_17 {
1117
+ background-position: -977px -962px;
1118
+ }
1119
+ .icns_tab_3 .row_14_18 {
1120
+ background: url(../images/icons_theme/shaded_dark/shaded_dark_wechat.png);
1121
+
1122
+ background-size:contain;
1123
  }
1124
  .icns_tab_3 .row_15_1 {
1125
  background-position: 0 -1036px;
1152
  background-position: -526px -1036px;
1153
  }
1154
  .icns_tab_3 .row_15_11 {
1155
+ background-position: -711px -1036px;
1156
+ }
1157
+ .icns_tab_3 .row_15_14 {
1158
+ background-position: -773px -1036px;
1159
+ }
1160
+ .icns_tab_3 .row_15_15 {
1161
+ background-position: -838px -1036px;
1162
+ }
1163
+ .icns_tab_3 .row_15_16 {
1164
+ background-position: -909px -1036px;
1165
+ }
1166
+ .icns_tab_3 .row_15_17 {
1167
+ background-position: -977px -1036px;
1168
+ }
1169
+ .icns_tab_3 .row_15_18 {
1170
+ background: url(../images/icons_theme/shaded_light/shaded_light_wechat.png);
1171
+ background-size:contain;
1172
  }
1173
  .icns_tab_3 .row_16_1 {
1174
  background-position: 0 -1109px;
1201
  background-position: -526px -1109px;
1202
  }
1203
  .icns_tab_3 .row_16_11 {
1204
+ background-position: -711px -1109px;
1205
+ }
1206
+ .icns_tab_3 .row_16_14 {
1207
+ background-position: -773px -1109px;
1208
  }
1209
+ .icns_tab_3 .row_16_15 {
1210
+ background-position: -838px -1109px;
1211
+ }
1212
+ .icns_tab_3 .row_16_16 {
1213
+ background-position: -909px -1109px;
1214
+ }
1215
+ .icns_tab_3 .row_16_17 {
1216
+ background-position: -977px -1109px;
1217
+ }
1218
+ .icns_tab_3 .row_16_18 {
1219
+ background: url(../images/icons_theme/transparent/transparent_wechat.png);
1220
+ background-size:contain;
1221
+ }
1222
+
1223
  /*tab 6 css*/
1224
  .tab6 .social_icon_like1 {
1225
  width: 100%;
1736
  }
1737
  .tab8 label.sfsi_heding {
1738
  display: inline-block;
1739
+ /* font-weight: bold; */
1740
  padding-top: 10px;
1741
  width: 303px;
1742
  }
2334
  .tab9 ul.sfsi_icn_listing8 li .sfsi_tab_3_icns ul.sfsi_floaticon_margin_sec li{min-width:50%;padding-left:0;padding-bottom:15px;float:left;width:50%}
2335
  .tab9 .sfsi_tab_3_icns.flthmonpg .radio{margin-top:55px}
2336
  .tab9 .sfsi_position_divider{float:left;margin-top:0;margin-left:15px;width:100%}
2337
+ #accordion .tab9 ul.shwthmbfraftr .labelhdng4,#accordion .tab9 ul.shwthmbfraftr .row h4.labelhdng4{color:#555;font-size:20px;margin-left:20px;font-family:helveticaregular}
2338
  .tab9 .sfsiLocationli .sfsi_right_info .sfsi_tab_3_icns{float:left;clear:both}
2339
+ .tab9 ul.sfsi_tab_3_icns li .icns_tab_3,ul.sfsi_tab_3_icns li .radio{float:left}
2340
  .tab9 ul.sfsi_tab_3_icns.flthmonpg{margin-top:20px}
2341
  .tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec li{float:left}
2342
  .tab9 .sfsi_right_info ul.sfsi_floaticon_margin_sec label{font-size:17px;padding-right:7px;width:63px!important;display:inline-block;margin-top:10px}
2962
  text-decoration: underline!important;
2963
  font-weight: 900;
2964
  color: #666;
2965
+ }
2966
+
2967
+
2968
+
2969
+
2970
+ .wp-admin select {
2971
+ padding: 9px;
2972
+ }
2973
+
2974
+ .sfsi_mainContainer .no_check .checkbox {
2975
+ display: none;
2976
+ }
2977
+
2978
+ .sfsi_new_prmium_follw p .sfsi-share-op{
2979
+ color: #0c0b0b !important;
2980
+ text-decoration: none !important;
2981
+ border-bottom: none;
2982
+ }
2983
+ .sfsi_instagramInstruction ol>li{
2984
+ list-style-type:decimal!important;
2985
+ }
2986
+ .sfsi_instagramInstruction>p{
2987
+ list-style-type:decimal!important;
2988
+ }
2989
+ .sfsi_font_inherit{
2990
+ font-family: inherit !important;
2991
+ border: 0 !important;
2992
+ }
2993
+
2994
+ .pop-up{
2995
+ font-weight:bold;
2996
+ }
css/sfsi-style.css CHANGED
@@ -485,9 +485,11 @@ ul.flwstep>li {
485
  color: #fff;
486
  font-weight: 700;
487
  margin-top: 10px;
488
- padding: 5px 45px;
489
  width: auto;
490
  cursor: pointer;
 
 
491
  }
492
  .pop_up_box .button {
493
  background: #12a252;
@@ -2036,7 +2038,9 @@ ul.cstmskin_iconlist {
2036
  padding: 11px 0 40px 8px;
2037
  width: 100%;
2038
  max-width: 1000px;
2039
- margin: 0
 
 
2040
  }
2041
  .placethemanulywpr { max-width: 98% !important}
2042
  .cstmskin_iconlist > li {
@@ -2281,4 +2285,37 @@ a.sficn{ cursor: pointer; }
2281
  }
2282
  #sfsi_floater .fb_tool_bdr .sfsi_inside .icon2{
2283
  margin: -2px 0 -5px 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2284
  }
485
  color: #fff;
486
  font-weight: 700;
487
  margin-top: 10px;
488
+ padding: 7px 22px;
489
  width: auto;
490
  cursor: pointer;
491
+ font-size: 19px;
492
+
493
  }
494
  .pop_up_box .button {
495
  background: #12a252;
2038
  padding: 11px 0 40px 8px;
2039
  width: 100%;
2040
  max-width: 1000px;
2041
+ margin: 0;
2042
+ height: 307px;
2043
+ overflow-y: scroll;
2044
  }
2045
  .placethemanulywpr { max-width: 98% !important}
2046
  .cstmskin_iconlist > li {
2285
  }
2286
  #sfsi_floater .fb_tool_bdr .sfsi_inside .icon2{
2287
  margin: -2px 0 -5px 0;
2288
+ }
2289
+ .sfsi_wechat_follow_overlay{
2290
+ position: fixed;
2291
+ top: 0;
2292
+ width: 100%;
2293
+ z-index: 99999;
2294
+ background: rgba(0,0,0,0.7);
2295
+ }
2296
+ .sfsi_wechat_follow_overlay .close_btn{
2297
+ position: absolute;
2298
+ right: 60px;
2299
+ top: 60px;
2300
+ font-size: 40px;
2301
+ line-height: 40px;
2302
+ text-decoration: none;
2303
+ border: 1px solid #fff;
2304
+ padding: 0 10px;
2305
+ border-radius: 60px;
2306
+ color: #333;
2307
+ background-color: #ffff;
2308
+ text-decoration: none;
2309
+ }
2310
+ @media (max-width:786px) {
2311
+ .sfsi_upload_butt_container{
2312
+ display:inline-block;
2313
+ }
2314
+ .upload_butt{
2315
+ height:38px;
2316
+ }
2317
+ .sfsi_wechat_follow_overlay .sfsi_inner_display>div div.sfsi_upload_butt_container:first-child{
2318
+ margin-left:0;
2319
+ margin-right:20px;
2320
+ }
2321
  }
images/amazon.png CHANGED
Binary file
images/angieslist.png CHANGED
Binary file
images/blogger.png CHANGED
Binary file
images/buffer.png CHANGED
Binary file
images/flickr.png CHANGED
Binary file
images/houzz.png CHANGED
Binary file
images/icons_theme/black/black_houzz.png ADDED
Binary file
images/icons_theme/black/black_ok.png ADDED
Binary file
images/icons_theme/black/black_telegram.png ADDED
Binary file
images/icons_theme/black/black_vk.png ADDED
Binary file
images/icons_theme/black/black_wechat.png ADDED
Binary file
images/icons_theme/black/black_weibo.png ADDED
Binary file
images/icons_theme/black/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+ echo _('Access Denied');
3
+ ?>
images/icons_theme/chrome_blue/chrome_blue_houzz.png ADDED
Binary file
images/icons_theme/chrome_blue/chrome_blue_ok.png ADDED
Binary file
images/icons_theme/chrome_blue/chrome_blue_telegram.png ADDED
Binary file
images/icons_theme/chrome_blue/chrome_blue_vk.png ADDED
Binary file
images/icons_theme/chrome_blue/chrome_blue_wechat.png ADDED
Binary file
images/icons_theme/chrome_blue/chrome_blue_weibo.png ADDED
Binary file
images/icons_theme/chrome_blue/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+ echo _('Access Denied');
3
+ ?>
images/icons_theme/chrome_grey/chrome_grey_houzz.png ADDED
Binary file
images/icons_theme/chrome_grey/chrome_grey_ok.png ADDED
Binary file
images/icons_theme/chrome_grey/chrome_grey_telegram.png ADDED
Binary file
images/icons_theme/chrome_grey/chrome_grey_vk.png ADDED
Binary file
images/icons_theme/chrome_grey/chrome_grey_wechat.png ADDED
Binary file
images/icons_theme/chrome_grey/chrome_grey_weibo.png ADDED
Binary file
images/icons_theme/chrome_grey/index.php ADDED
@@ -0,0 +1,3 @@
 
 
 
1
+ <?php
2
+ echo _('Access Denied');
3
+ ?>
images/icons_theme/crystal/crystal_houzz.png ADDED
Binary file
images/icons_theme/crystal/crystal_ok.png ADDED
Binary file
images/icons_theme/crystal/crystal_telegram.png ADDED
Binary file
images/icons_theme/crystal/crystal_vk.png ADDED
Binary file
images/icons_theme/crystal/crystal_wechat.png ADDED
Binary file
images/icons_theme/crystal/crystal_weibo.png ADDED
Binary file
images/icons_theme/cubes/cubes_houzz.png ADDED
Binary file
images/icons_theme/cubes/cubes_ok.png ADDED
Binary file
images/icons_theme/cubes/cubes_telegram.png ADDED
Binary file
images/icons_theme/cubes/cubes_vk.png ADDED
Binary file
images/icons_theme/cubes/cubes_wechat.png ADDED
Binary file
images/icons_theme/cubes/cubes_weibo.png ADDED
Binary file
images/icons_theme/cubes/old-cubes_google.png DELETED
Binary file
images/icons_theme/cute/cute_google-old.png DELETED
Binary file
images/icons_theme/cute/cute_houzz.png ADDED
Binary file
images/icons_theme/cute/cute_ok.png ADDED
Binary file
images/icons_theme/cute/cute_telegram.png ADDED
Binary file
images/icons_theme/cute/cute_vk.png ADDED
Binary file
images/icons_theme/cute/cute_wechat.png ADDED
Binary file
images/icons_theme/cute/cute_weibo.png ADDED
Binary file
images/icons_theme/cute/old-cute_google.png DELETED
Binary file
images/icons_theme/default/default_ok.png ADDED
Binary file
images/{telegram.png → icons_theme/default/default_telegram.png} RENAMED
File without changes
images/{vk.png → icons_theme/default/default_vk.png} RENAMED
File without changes
images/icons_theme/default/default_wechat.png ADDED
Binary file
images/icons_theme/default/default_weibo.png ADDED
Binary file
images/icons_theme/default/old-default_google.png DELETED
Binary file
images/icons_theme/flat/flat_houzz.png ADDED
Binary file
images/icons_theme/flat/flat_ok.png ADDED
Binary file
images/icons_theme/flat/flat_telegram.png ADDED
Binary file
images/icons_theme/flat/flat_vk.png ADDED
Binary file
images/icons_theme/flat/flat_wechat.png ADDED
Binary file
images/icons_theme/flat/flat_weibo.png ADDED
Binary file
images/icons_theme/glossy/glossy_houzz.png ADDED
Binary file
images/icons_theme/glossy/glossy_ok.png ADDED
Binary file
images/icons_theme/glossy/glossy_telegram.png ADDED
Binary file
images/icons_theme/glossy/glossy_vk.png ADDED
Binary file
images/icons_theme/glossy/glossy_wechat.png ADDED
Binary file
images/icons_theme/glossy/glossy_weibo.png ADDED
Binary file
images/icons_theme/orange/orange_houzz.png ADDED
Binary file
images/icons_theme/orange/orange_ok.png ADDED
Binary file
images/icons_theme/orange/orange_telegram.png ADDED
Binary file
images/icons_theme/orange/orange_vk.png ADDED
Binary file
images/icons_theme/orange/orange_wechat.png ADDED
Binary file
images/icons_theme/orange/orange_weibo.png ADDED
Binary file
images/icons_theme/shaded_dark/shaded_dark_houzz.png ADDED
Binary file
images/icons_theme/shaded_dark/shaded_dark_ok.png ADDED
Binary file
images/icons_theme/shaded_dark/shaded_dark_telegram.png ADDED
Binary file
images/icons_theme/shaded_dark/shaded_dark_vk.png ADDED
Binary file
images/icons_theme/shaded_dark/shaded_dark_wechat.png ADDED
Binary file
images/icons_theme/shaded_dark/shaded_dark_weibo.png ADDED
Binary file
images/icons_theme/shaded_light/shaded_light_houzz.png ADDED
Binary file
images/icons_theme/shaded_light/shaded_light_ok.png ADDED
Binary file
images/icons_theme/shaded_light/shaded_light_telegram.png ADDED
Binary file
images/icons_theme/shaded_light/shaded_light_vk.png ADDED
Binary file
images/icons_theme/shaded_light/shaded_light_wechat.png ADDED
Binary file
images/icons_theme/shaded_light/shaded_light_weibo.png ADDED
Binary file
images/icons_theme/silver/silver_houzz.png ADDED
Binary file
images/icons_theme/silver/silver_ok.png ADDED
Binary file
images/icons_theme/silver/silver_telegram.png ADDED
Binary file
images/icons_theme/silver/silver_vk.png ADDED
Binary file
images/icons_theme/silver/silver_wechat.png ADDED
Binary file
images/icons_theme/silver/silver_weibo.png ADDED
Binary file
images/icons_theme/splash/splash_houzz.png ADDED
Binary file
images/icons_theme/splash/splash_ok.png ADDED
Binary file
images/icons_theme/splash/splash_telegram.png ADDED
Binary file
images/icons_theme/splash/splash_vk.png ADDED
Binary file
images/icons_theme/splash/splash_wechat.png ADDED
Binary file
images/icons_theme/splash/splash_weibo.png ADDED
Binary file
images/icons_theme/thin/thin_houzz.png ADDED
Binary file
images/icons_theme/thin/thin_ok.png ADDED
Binary file
images/icons_theme/thin/thin_telegram.png ADDED
Binary file
images/icons_theme/thin/thin_vk.png ADDED
Binary file
images/icons_theme/thin/thin_wechat.png ADDED
Binary file
images/icons_theme/thin/thin_weibo.png ADDED
Binary file
images/icons_theme/transparent/transparent_houzz.png ADDED
Binary file
images/icons_theme/transparent/transparent_ok.png ADDED
Binary file
images/icons_theme/transparent/transparent_telegram.png ADDED
Binary file
images/icons_theme/transparent/transparent_vk.png ADDED
Binary file
images/icons_theme/transparent/transparent_wechat.png ADDED
Binary file
images/icons_theme/transparent/transparent_weibo.png ADDED
Binary file
images/messenger.png ADDED
Binary file
images/print.png CHANGED
Binary file
images/reddit.png CHANGED
Binary file
images/skype.png CHANGED
Binary file
images/snapchat.png CHANGED
Binary file
images/soundcloud.png CHANGED
Binary file
images/steam.png CHANGED
Binary file
images/tab_3_icns.png CHANGED
Binary file
images/tumblr.png CHANGED
Binary file
images/twitch.png CHANGED
Binary file
images/vimeo.png CHANGED
Binary file
images/whatsapp.png CHANGED
Binary file
images/xing.png CHANGED
Binary file
images/yelp.png CHANGED
Binary file
images/yummly.png CHANGED
Binary file
js/custom-admin.js CHANGED
@@ -128,6 +128,11 @@ function sfsi_depened_sections() {
128
  SFSI("input[name='sfsi_google_display']").prop("checked") ? sfsi_section_Display("google_section", "show") :sfsi_section_Display("google_section", "hide"),
129
  SFSI("input[name='sfsi_youtube_display']").prop("checked") ? sfsi_section_Display("youtube_section", "show") :sfsi_section_Display("youtube_section", "hide"),
130
  SFSI("input[name='sfsi_pinterest_display']").prop("checked") ? sfsi_section_Display("pinterest_section", "show") :sfsi_section_Display("pinterest_section", "hide"),
 
 
 
 
 
131
  SFSI("input[name='sfsi_instagram_display']").prop("checked") ? sfsi_section_Display("instagram_section", "show") :sfsi_section_Display("instagram_section", "hide"),
132
  SFSI("input[name='sfsi_linkedin_display']").prop("checked") ? sfsi_section_Display("linkedin_section", "show") :sfsi_section_Display("linkedin_section", "hide"),
133
  SFSI("input[element-type='cusotm-icon']").prop("checked") ? sfsi_section_Display("custom_section", "show") :sfsi_section_Display("custom_section", "hide");
@@ -146,7 +151,6 @@ function sfsi_customskin_upload(s, ref,nonce)
146
  custom_imgurl:i,
147
  nonce:nonce
148
  };
149
-
150
  SFSI.ajax({
151
  url:sfsi_icon_ajax_object.ajax_url,
152
  type:"post",
@@ -174,13 +178,15 @@ function deleteskin_icon(s)
174
  iconname:i,
175
  nonce:nonce
176
  };
177
-
178
  SFSI.ajax({
179
  url:sfsi_icon_ajax_object.ajax_url,
180
  type:"post",
181
  data:e,
182
  dataType: "json",
183
  success:function(msg) {
 
 
184
  if (msg.res === "success")
185
  {
186
  SFSI(s).prev("a").text("Upload");
@@ -245,7 +251,7 @@ function sfsi_newcustomicon_upload(s,nonce,nonce2) {
245
  function sfsi_update_step1() {
246
  var nonce = SFSI("#sfsi_save1").attr("data-nonce");
247
  global_error = 0, beForeLoad(), sfsi_depened_sections();
248
- var s = !1, i = SFSI("input[name='sfsi_rss_display']:checked").val(), e = SFSI("input[name='sfsi_email_display']:checked").val(), t = SFSI("input[name='sfsi_facebook_display']:checked").val(), n = SFSI("input[name='sfsi_twitter_display']:checked").val(), o = SFSI("input[name='sfsi_google_display']:checked").val(), r = SFSI("input[name='sfsi_youtube_display']:checked").val(), c = SFSI("input[name='sfsi_pinterest_display']:checked").val(), p = SFSI("input[name='sfsi_linkedin_display']:checked").val(), _ = SFSI("input[name='sfsi_instagram_display']:checked").val(), l = SFSI("input[name='sfsi_custom1_display']:checked").val(), S = SFSI("input[name='sfsi_custom2_display']:checked").val(), u = SFSI("input[name='sfsi_custom3_display']:checked").val(), f = SFSI("input[name='sfsi_custom4_display']:checked").val(), d = SFSI("input[name='sfsi_custom5_display']:checked").val(), I = {
249
  action:"updateSrcn1",
250
  sfsi_rss_display:i,
251
  sfsi_email_display:e,
@@ -255,6 +261,11 @@ function sfsi_update_step1() {
255
  sfsi_youtube_display:r,
256
  sfsi_pinterest_display:c,
257
  sfsi_linkedin_display:p,
 
 
 
 
 
258
  sfsi_instagram_display:_,
259
  sfsi_custom1_display:l,
260
  sfsi_custom2_display:S,
@@ -287,11 +298,46 @@ function sfsi_update_step1() {
287
  }
288
 
289
  function sfsi_update_step2() {
 
290
  var nonce = SFSI("#sfsi_save2").attr("data-nonce");
291
  var s = sfsi_validationStep2();
292
  if (!s) return global_error = 1, !1;
293
  beForeLoad();
294
- var i = 1 == SFSI("input[name='sfsi_rss_url']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_url']").val(), e = 1 == SFSI("input[name='sfsi_rss_icons']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_icons']:checked").val(), t = 1 == SFSI("input[name='sfsi_facebookPage_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebookPage_option']:checked").val(), n = 1 == SFSI("input[name='sfsi_facebookLike_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebookLike_option']:checked").val(), o = 1 == SFSI("input[name='sfsi_facebookShare_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebookShare_option']:checked").val(), a = SFSI("input[name='sfsi_facebookPage_url']").val(), r = 1 == SFSI("input[name='sfsi_twitter_followme']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_followme']:checked").val(), c = 1 == SFSI("input[name='sfsi_twitter_followUserName']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_followUserName']").val(), p = 1 == SFSI("input[name='sfsi_twitter_aboutPage']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_aboutPage']:checked").val(), _ = 1 == SFSI("input[name='sfsi_twitter_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_page']:checked").val(), l = SFSI("input[name='sfsi_twitter_pageURL']").val(), S = SFSI("textarea[name='sfsi_twitter_aboutPageText']").val(), u = 1 == SFSI("input[name='sfsi_google_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_page']:checked").val(), f = 1 == SFSI("input[name='sfsi_googleLike_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_googleLike_option']:checked").val(), d = SFSI("input[name='sfsi_google_pageURL']").val(), I = 1 == SFSI("input[name='sfsi_googleShare_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_googleShare_option']:checked").val(), m = 1 == SFSI("input[name='sfsi_youtube_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_page']:checked").val(), F = 1 == SFSI("input[name='sfsi_youtube_pageUrl']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_pageUrl']").val(), h = 1 == SFSI("input[name='sfsi_youtube_follow']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_follow']:checked").val(), cls = SFSI("input[name='sfsi_youtubeusernameorid']:checked").val(), v = SFSI("input[name='sfsi_ytube_user']").val(), vchid = SFSI("input[name='sfsi_ytube_chnlid']").val(), g = 1 == SFSI("input[name='sfsi_pinterest_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_page']:checked").val(), k = 1 == SFSI("input[name='sfsi_pinterest_pageUrl']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_pageUrl']").val(), y = 1 == SFSI("input[name='sfsi_pinterest_pingBlog']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_pingBlog']:checked").val(), b = 1 == SFSI("input[name='sfsi_instagram_pageUrl']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_pageUrl']").val(), w = 1 == SFSI("input[name='sfsi_linkedin_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedin_page']:checked").val(), x = 1 == SFSI("input[name='sfsi_linkedin_pageURL']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedin_pageURL']").val(), C = 1 == SFSI("input[name='sfsi_linkedin_follow']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedin_follow']:checked").val(), D = SFSI("input[name='sfsi_linkedin_followCompany']").val(), U = 1 == SFSI("input[name='sfsi_linkedin_SharePage']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedin_SharePage']:checked").val(), O = SFSI("input[name='sfsi_linkedin_recommendBusines']:checked").val(), T = SFSI("input[name='sfsi_linkedin_recommendProductId']").val(), j = SFSI("input[name='sfsi_linkedin_recommendCompany']").val(), P = {};
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  SFSI("input[name='sfsi_CustomIcon_links[]']").each(function() {
296
  P[SFSI(this).attr("file-id")] = this.value;
297
  });
@@ -332,6 +378,16 @@ function sfsi_update_step2() {
332
  sfsi_linkedin_recommendCompany:j,
333
  sfsi_linkedin_recommendProductId:T,
334
  sfsi_custom_links:P,
 
 
 
 
 
 
 
 
 
 
335
  nonce:nonce
336
  };
337
  SFSI.ajax({
@@ -414,16 +470,24 @@ function sfsi_show_counts() {
414
 
415
  function sfsi_showPreviewCounts() {
416
  var s = 0;
417
- 1 == SFSI("input[name='sfsi_rss_countsDisplay']").prop("checked") ? (SFSI("#sfsi_rss_countsDisplay").css("opacity", 1),
418
- s = 1) :SFSI("#sfsi_rss_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_email_countsDisplay']").prop("checked") ? (SFSI("#sfsi_email_countsDisplay").css("opacity", 1),
419
  s = 1) :SFSI("#sfsi_email_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_facebook_countsDisplay']").prop("checked") ? (SFSI("#sfsi_facebook_countsDisplay").css("opacity", 1),
420
  s = 1) :SFSI("#sfsi_facebook_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_twitter_countsDisplay']").prop("checked") ? (SFSI("#sfsi_twitter_countsDisplay").css("opacity", 1),
421
  s = 1) :SFSI("#sfsi_twitter_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_google_countsDisplay']").prop("checked") ? (SFSI("#sfsi_google_countsDisplay").css("opacity", 1),
422
- s = 1) :SFSI("#sfsi_google_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("checked") ? (SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 1),
423
- s = 1) :SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("checked") ? (SFSI("#sfsi_youtube_countsDisplay").css("opacity", 1),
 
424
  s = 1) :SFSI("#sfsi_youtube_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("checked") ? (SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 1),
425
- s = 1) :SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 0),1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_instagram_countsDisplay").css("opacity", 1),
426
- s = 1) :SFSI("#sfsi_instagram_countsDisplay").css("opacity", 0), 0 == s || "no" == SFSI("input[name='sfsi_display_counts']:checked").val() ? SFSI(".sfsi_Cdisplay").hide() :SFSI(".sfsi_Cdisplay").show();
 
 
 
 
 
 
 
427
  }
428
 
429
  function sfsi_show_OnpostsDisplay() {
@@ -435,7 +499,25 @@ function sfsi_update_step4() {
435
  var s = !1, i = sfsi_validationStep4();
436
  if (!i) return global_error = 1, !1;
437
  beForeLoad();
438
- var e = SFSI("input[name='sfsi_display_counts']:checked").val(), t = 1 == SFSI("input[name='sfsi_email_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_countsDisplay']:checked").val(), n = 1 == SFSI("input[name='sfsi_email_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_countsFrom']:checked").val(), o = SFSI("input[name='sfsi_email_manualCounts']").val(), a = SFSI("input[name='sfsi_google_api_key']").val(), r = 1 == SFSI("input[name='sfsi_rss_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_countsDisplay']:checked").val(), c = SFSI("input[name='sfsi_rss_manualCounts']").val(), p = 1 == SFSI("input[name='sfsi_facebook_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_countsDisplay']:checked").val(), _ = 1 == SFSI("input[name='sfsi_facebook_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_countsFrom']:checked").val(), mp = SFSI("input[name='sfsi_facebook_mypageCounts']").val(), l = SFSI("input[name='sfsi_facebook_manualCounts']").val(), S = 1 == SFSI("input[name='sfsi_twitter_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_countsDisplay']:checked").val(), u = 1 == SFSI("input[name='sfsi_twitter_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_countsFrom']:checked").val(), f = SFSI("input[name='sfsi_twitter_manualCounts']").val(), d = SFSI("input[name='tw_consumer_key']").val(), I = SFSI("input[name='tw_consumer_secret']").val(), m = SFSI("input[name='tw_oauth_access_token']").val(), F = SFSI("input[name='tw_oauth_access_token_secret']").val(), h = 1 == SFSI("input[name='sfsi_google_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_countsDisplay']:checked").val(), v = 1 == SFSI("input[name='sfsi_google_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_countsFrom']:checked").val(), g = SFSI("input[name='sfsi_google_manualCounts']").val(), k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(), b = SFSI("input[name='ln_company']").val(), w = SFSI("input[name='ln_api_key']").val(), x = SFSI("input[name='ln_secret_key']").val(), C = SFSI("input[name='ln_oAuth_user_token']").val(), D = 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsDisplay']:checked").val(), k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(), U = 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_countsDisplay']:checked").val(), O = 1 == SFSI("input[name='sfsi_youtube_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_countsFrom']:checked").val(), T = SFSI("input[name='sfsi_youtube_manualCounts']").val(), j = SFSI("input[name='sfsi_youtube_user']").val(), P = 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_countsDisplay']:checked").val(), M = 1 == SFSI("input[name='sfsi_pinterest_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val(), L = SFSI("input[name='sfsi_pinterest_manualCounts']").val(), B = SFSI("input[name='sfsi_pinterest_user']").val(), E = SFSI("input[name='sfsi_pinterest_board']").val(), z = 1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_countsDisplay']:checked").val(), A = 1 == SFSI("input[name='sfsi_instagram_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_countsFrom']:checked").val(), N = SFSI("input[name='sfsi_instagram_manualCounts']").val(), H = SFSI("input[name='sfsi_instagram_User']").val(),ha = SFSI("input[name='sfsi_instagram_clientid']").val(),ia = SFSI("input[name='sfsi_instagram_appurl']").val(),ja = SFSI("input[name='sfsi_instagram_token']").val(), $ = {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
439
  action:"updateSrcn4",
440
  sfsi_display_counts:e,
441
  sfsi_email_countsDisplay:t,
@@ -482,8 +564,19 @@ function sfsi_update_step4() {
482
  sfsi_instagram_clientid:ha,
483
  sfsi_instagram_appurl:ia,
484
  sfsi_instagram_token:ja,
 
 
 
 
 
 
 
 
 
 
485
  nonce:nonce
486
  };
 
487
  return SFSI.ajax({
488
  url:sfsi_icon_ajax_object.ajax_url,
489
  type:"post",
@@ -534,6 +627,12 @@ function sfsi_update_step5() {
534
  d = SFSI("#sfsi_pinterestIcon_order").attr("data-index"),
535
  I = SFSI("#sfsi_instagramIcon_order").attr("data-index"),
536
  F = SFSI("#sfsi_linkedinIcon_order").attr("data-index"),
 
 
 
 
 
 
537
  h = new Array();
538
 
539
  SFSI(".custom_iconOrder").each(function()
@@ -544,7 +643,16 @@ function sfsi_update_step5() {
544
  });
545
  });
546
 
547
- var v = 1 == SFSI("input[name='sfsi_rss_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_MouseOverText']").val(), g = 1 == SFSI("input[name='sfsi_email_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_MouseOverText']").val(), k = 1 == SFSI("input[name='sfsi_twitter_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_MouseOverText']").val(), y = 1 == SFSI("input[name='sfsi_facebook_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_MouseOverText']").val(), b = 1 == SFSI("input[name='sfsi_google_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_MouseOverText']").val(), w = 1 == SFSI("input[name='sfsi_linkedIn_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_MouseOverText']").val(), x = 1 == SFSI("input[name='sfsi_youtube_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_MouseOverText']").val(), C = 1 == SFSI("input[name='sfsi_pinterest_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_MouseOverText']").val(), D = 1 == SFSI("input[name='sfsi_instagram_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_MouseOverText']").val(), O = {};
 
 
 
 
 
 
 
 
 
548
  SFSI("input[name='sfsi_custom_MouseOverTexts[]']").each(function() {
549
  O[SFSI(this).attr("file-id")] = this.value;
550
  });
@@ -569,6 +677,11 @@ function sfsi_update_step5() {
569
  sfsi_linkedIn_MouseOverText:w,
570
  sfsi_pinterest_MouseOverText:C,
571
  sfsi_instagram_MouseOverText:D,
 
 
 
 
 
572
  sfsi_custom_MouseOverTexts:O,
573
  sfsi_rssIcon_order:p,
574
  sfsi_emailIcon_order:_,
@@ -579,10 +692,17 @@ function sfsi_update_step5() {
579
  sfsi_pinterestIcon_order:d,
580
  sfsi_instagramIcon_order:I,
581
  sfsi_linkedinIcon_order:F,
 
 
 
 
 
 
582
  sfsi_custom_orders:h,
583
  sfsi_custom_social_hide:sfsi_custom_social_hide,
584
  nonce:nonce
585
  };
 
586
  SFSI.ajax({
587
  url:sfsi_icon_ajax_object.ajax_url,
588
  type:"post",
@@ -962,6 +1082,56 @@ function sfsi_validationStep2()
962
  return false;
963
  }
964
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
965
  /* LinkedIn validation */
966
  if(sfsi_validator(SFSI('input[name="sfsi_linkedin_page"]'),'activte') && sfsi_validator(SFSI('input[name="sfsi_linkedin_page"]'),'checked'))
967
  {
@@ -1873,6 +2043,7 @@ SFSI(document).ready(function(s) {
1873
  SFSI(this).css("opacity", "1");
1874
  }),
1875
  SFSI("#sfsi_save1").on("click", function() {
 
1876
  sfsi_update_step1() && sfsicollapse(this);
1877
  }),
1878
  SFSI("#sfsi_save2").on("click", function() {
128
  SFSI("input[name='sfsi_google_display']").prop("checked") ? sfsi_section_Display("google_section", "show") :sfsi_section_Display("google_section", "hide"),
129
  SFSI("input[name='sfsi_youtube_display']").prop("checked") ? sfsi_section_Display("youtube_section", "show") :sfsi_section_Display("youtube_section", "hide"),
130
  SFSI("input[name='sfsi_pinterest_display']").prop("checked") ? sfsi_section_Display("pinterest_section", "show") :sfsi_section_Display("pinterest_section", "hide"),
131
+ SFSI("input[name='sfsi_telegram_display']").prop("checked") ? sfsi_section_Display("telegram_section", "show") :sfsi_section_Display("telegram_section", "hide"),
132
+ SFSI("input[name='sfsi_vk_display']").prop("checked") ? sfsi_section_Display("vk_section", "show") :sfsi_section_Display("vk_section", "hide"),
133
+ SFSI("input[name='sfsi_ok_display']").prop("checked") ? sfsi_section_Display("ok_section", "show") :sfsi_section_Display("ok_section", "hide"),
134
+ SFSI("input[name='sfsi_wechat_display']").prop("checked") ? sfsi_section_Display("wechat_section", "show") :sfsi_section_Display("wechat_section", "hide"),
135
+ SFSI("input[name='sfsi_weibo_display']").prop("checked") ? sfsi_section_Display("weibo_section", "show") :sfsi_section_Display("weibo_section", "hide"),
136
  SFSI("input[name='sfsi_instagram_display']").prop("checked") ? sfsi_section_Display("instagram_section", "show") :sfsi_section_Display("instagram_section", "hide"),
137
  SFSI("input[name='sfsi_linkedin_display']").prop("checked") ? sfsi_section_Display("linkedin_section", "show") :sfsi_section_Display("linkedin_section", "hide"),
138
  SFSI("input[element-type='cusotm-icon']").prop("checked") ? sfsi_section_Display("custom_section", "show") :sfsi_section_Display("custom_section", "hide");
151
  custom_imgurl:i,
152
  nonce:nonce
153
  };
 
154
  SFSI.ajax({
155
  url:sfsi_icon_ajax_object.ajax_url,
156
  type:"post",
178
  iconname:i,
179
  nonce:nonce
180
  };
181
+ console.log('delete sin icon',i,iconname,nonce);
182
  SFSI.ajax({
183
  url:sfsi_icon_ajax_object.ajax_url,
184
  type:"post",
185
  data:e,
186
  dataType: "json",
187
  success:function(msg) {
188
+ console.log(s,e,msg);
189
+
190
  if (msg.res === "success")
191
  {
192
  SFSI(s).prev("a").text("Upload");
251
  function sfsi_update_step1() {
252
  var nonce = SFSI("#sfsi_save1").attr("data-nonce");
253
  global_error = 0, beForeLoad(), sfsi_depened_sections();
254
+ var s = !1, i = SFSI("input[name='sfsi_rss_display']:checked").val(), e = SFSI("input[name='sfsi_email_display']:checked").val(), t = SFSI("input[name='sfsi_facebook_display']:checked").val(), n = SFSI("input[name='sfsi_twitter_display']:checked").val(), o = SFSI("input[name='sfsi_google_display']:checked").val(), r = SFSI("input[name='sfsi_youtube_display']:checked").val(), c = SFSI("input[name='sfsi_pinterest_display']:checked").val(), p = SFSI("input[name='sfsi_linkedin_display']:checked").val(), tg = SFSI("input[name='sfsi_telegram_display']:checked").val(), vk = SFSI("input[name='sfsi_vk_display']:checked").val(), ok = SFSI("input[name='sfsi_ok_display']:checked").val(), wc = SFSI("input[name='sfsi_wechat_display']:checked").val(), wb = SFSI("input[name='sfsi_weibo_display']:checked").val(), _ = SFSI("input[name='sfsi_instagram_display']:checked").val(), l = SFSI("input[name='sfsi_custom1_display']:checked").val(), S = SFSI("input[name='sfsi_custom2_display']:checked").val(), u = SFSI("input[name='sfsi_custom3_display']:checked").val(), f = SFSI("input[name='sfsi_custom4_display']:checked").val(), d = SFSI("input[name='sfsi_custom5_display']:checked").val(), I = {
255
  action:"updateSrcn1",
256
  sfsi_rss_display:i,
257
  sfsi_email_display:e,
261
  sfsi_youtube_display:r,
262
  sfsi_pinterest_display:c,
263
  sfsi_linkedin_display:p,
264
+ sfsi_telegram_display:tg,
265
+ sfsi_vk_display:vk,
266
+ sfsi_ok_display:ok,
267
+ sfsi_wechat_display:wc,
268
+ sfsi_weibo_display:wb,
269
  sfsi_instagram_display:_,
270
  sfsi_custom1_display:l,
271
  sfsi_custom2_display:S,
298
  }
299
 
300
  function sfsi_update_step2() {
301
+
302
  var nonce = SFSI("#sfsi_save2").attr("data-nonce");
303
  var s = sfsi_validationStep2();
304
  if (!s) return global_error = 1, !1;
305
  beForeLoad();
306
+ var i = 1 == SFSI("input[name='sfsi_rss_url']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_url']").val(),
307
+ e = 1 == SFSI("input[name='sfsi_rss_icons']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_icons']:checked").val(),
308
+
309
+ t = 1 == SFSI("input[name='sfsi_facebookPage_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebookPage_option']:checked").val(),
310
+ n = 1 == SFSI("input[name='sfsi_facebookLike_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebookLike_option']:checked").val(),
311
+ o = 1 == SFSI("input[name='sfsi_facebookShare_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebookShare_option']:checked").val(),
312
+ a = SFSI("input[name='sfsi_facebookPage_url']").val(),
313
+ r = 1 == SFSI("input[name='sfsi_twitter_followme']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_followme']:checked").val(),
314
+ c = 1 == SFSI("input[name='sfsi_twitter_followUserName']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_followUserName']").val(),
315
+ p = 1 == SFSI("input[name='sfsi_twitter_aboutPage']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_aboutPage']:checked").val(),
316
+ _ = 1 == SFSI("input[name='sfsi_twitter_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_page']:checked").val(),
317
+ l = SFSI("input[name='sfsi_twitter_pageURL']").val(),
318
+ S = SFSI("textarea[name='sfsi_twitter_aboutPageText']").val(),
319
+ u = 1 == SFSI("input[name='sfsi_google_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_page']:checked").val(),
320
+ f = 1 == SFSI("input[name='sfsi_googleLike_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_googleLike_option']:checked").val(),
321
+ d = SFSI("input[name='sfsi_google_pageURL']").val(),
322
+ I = 1 == SFSI("input[name='sfsi_googleShare_option']").prop("disabled") ? "" :SFSI("input[name='sfsi_googleShare_option']:checked").val(),
323
+ m = 1 == SFSI("input[name='sfsi_youtube_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_page']:checked").val(),
324
+ F = 1 == SFSI("input[name='sfsi_youtube_pageUrl']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_pageUrl']").val(),
325
+ h = 1 == SFSI("input[name='sfsi_youtube_follow']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_follow']:checked").val(),
326
+ cls = SFSI("input[name='sfsi_youtubeusernameorid']:checked").val(),
327
+ v = SFSI("input[name='sfsi_ytube_user']").val(),
328
+ vchid = SFSI("input[name='sfsi_ytube_chnlid']").val(),
329
+ g = 1 == SFSI("input[name='sfsi_pinterest_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_page']:checked").val(), k = 1 == SFSI("input[name='sfsi_pinterest_pageUrl']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_pageUrl']").val(), y = 1 == SFSI("input[name='sfsi_pinterest_pingBlog']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_pingBlog']:checked").val(), b = 1 == SFSI("input[name='sfsi_instagram_pageUrl']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_pageUrl']").val(), w = 1 == SFSI("input[name='sfsi_linkedin_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedin_page']:checked").val(), x = 1 == SFSI("input[name='sfsi_linkedin_pageURL']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedin_pageURL']").val(), C = 1 == SFSI("input[name='sfsi_linkedin_follow']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedin_follow']:checked").val(), D = SFSI("input[name='sfsi_linkedin_followCompany']").val(), U = 1 == SFSI("input[name='sfsi_linkedin_SharePage']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedin_SharePage']:checked").val(), O = SFSI("input[name='sfsi_linkedin_recommendBusines']:checked").val(), T = SFSI("input[name='sfsi_linkedin_recommendProductId']").val(), j = SFSI("input[name='sfsi_linkedin_recommendCompany']").val(),
330
+ tp = 1 == SFSI("input[name='sfsi_telegram_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_telegram_page']:checked").val(),
331
+ tpu = SFSI("input[name='sfsi_telegram_pageURL']").val(),
332
+ tm = SFSI("input[name='sfsi_telegram_message']").val(),
333
+ tmn = SFSI("input[name='sfsi_telegram_username']").val(),
334
+ wp = 1 == SFSI("input[name='sfsi_weibo_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_weibo_page']:checked").val(),
335
+ wpu = SFSI("input[name='sfsi_weibo_pageURL']").val(),
336
+ vp = 1 == SFSI("input[name='sfsi_vk_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_vk_page']:checked").val(),
337
+ vpu = SFSI("input[name='sfsi_vk_pageURL']").val(),
338
+ op = 1 == SFSI("input[name='sfsi_ok_page']").prop("disabled") ? "" :SFSI("input[name='sfsi_ok_page']:checked").val(),
339
+ opu = SFSI("input[name='sfsi_ok_pageURL']").val(),
340
+ P = {};
341
  SFSI("input[name='sfsi_CustomIcon_links[]']").each(function() {
342
  P[SFSI(this).attr("file-id")] = this.value;
343
  });
378
  sfsi_linkedin_recommendCompany:j,
379
  sfsi_linkedin_recommendProductId:T,
380
  sfsi_custom_links:P,
381
+ sfsi_telegram_page:tp,
382
+ sfsi_telegram_pageURL:tpu,
383
+ sfsi_telegram_message:tm,
384
+ sfsi_telegram_username:tmn,
385
+ sfsi_weibo_page:wp,
386
+ sfsi_weibo_pageURL:wpu,
387
+ sfsi_vk_page:vp,
388
+ sfsi_vk_pageURL:vpu,
389
+ sfsi_ok_page:op,
390
+ sfsi_ok_pageURL:opu,
391
  nonce:nonce
392
  };
393
  SFSI.ajax({
470
 
471
  function sfsi_showPreviewCounts() {
472
  var s = 0;
473
+ 1 == SFSI("input[name='sfsi_rss_countsDisplay']").prop("checked") ? (SFSI("#sfsi_rss_countsDisplay").css("opacity", 1), s = 1) :SFSI("#sfsi_rss_countsDisplay").css("opacity", 0),
474
+ 1 == SFSI("input[name='sfsi_email_countsDisplay']").prop("checked") ? (SFSI("#sfsi_email_countsDisplay").css("opacity", 1),
475
  s = 1) :SFSI("#sfsi_email_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_facebook_countsDisplay']").prop("checked") ? (SFSI("#sfsi_facebook_countsDisplay").css("opacity", 1),
476
  s = 1) :SFSI("#sfsi_facebook_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_twitter_countsDisplay']").prop("checked") ? (SFSI("#sfsi_twitter_countsDisplay").css("opacity", 1),
477
  s = 1) :SFSI("#sfsi_twitter_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_google_countsDisplay']").prop("checked") ? (SFSI("#sfsi_google_countsDisplay").css("opacity", 1),
478
+ s = 1) :SFSI("#sfsi_google_countsDisplay").css("opacity", 0),
479
+ 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("checked") ? (SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 1), s = 1) :SFSI("#sfsi_linkedIn_countsDisplay").css("opacity", 0),
480
+ 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("checked") ? (SFSI("#sfsi_youtube_countsDisplay").css("opacity", 1),
481
  s = 1) :SFSI("#sfsi_youtube_countsDisplay").css("opacity", 0), 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("checked") ? (SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 1),
482
+ s = 1) :SFSI("#sfsi_pinterest_countsDisplay").css("opacity", 0),1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_instagram_countsDisplay").css("opacity", 1),
483
+ s = 1) :SFSI("#sfsi_instagram_countsDisplay").css("opacity", 0),
484
+ 1 == SFSI("input[name='sfsi_telegram_countsDisplay']").prop("checked") ? (SFSI("#sfsi_telegram_countsDisplay").css("opacity", 0),s = 1) :SFSI("#sfsi_telegram_countsDisplay").css("opacity", 0),
485
+ 1 == SFSI("input[name='sfsi_vk_countsDisplay']").prop("checked") ? (SFSI("#sfsi_vk_countsDisplay").css("opacity", 0), s = 1) :SFSI("#sfsi_vk_countsDisplay").css("opacity", 0),
486
+ 1 == SFSI("input[name='sfsi_ok_countsDisplay']").prop("checked") ? (SFSI("#sfsi_ok_countsDisplay").css("opacity", 0), s = 1) :SFSI("#sfsi_ok_countsDisplay").css("opacity", 0),
487
+ 1 == SFSI("input[name='sfsi_weibo_countsDisplay']").prop("checked") ? (SFSI("#sfsi_weibo_countsDisplay").css("opacity", 0), s = 1) :SFSI("#sfsi_weibo_countsDisplay").css("opacity", 0),
488
+ 1 == SFSI("input[name='sfsi_wechat_countsDisplay']").prop("checked") ? (SFSI("#sfsi_wechat_countsDisplay").css("opacity", 0), s = 1) :SFSI("#sfsi_wechat_countsDisplay").css("opacity", 0),
489
+
490
+ 0 == s || "no" == SFSI("input[name='sfsi_display_counts']:checked").val() ? SFSI(".sfsi_Cdisplay").hide() :SFSI(".sfsi_Cdisplay").show();
491
  }
492
 
493
  function sfsi_show_OnpostsDisplay() {
499
  var s = !1, i = sfsi_validationStep4();
500
  if (!i) return global_error = 1, !1;
501
  beForeLoad();
502
+ var e = SFSI("input[name='sfsi_display_counts']:checked").val(), t = 1 == SFSI("input[name='sfsi_email_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_countsDisplay']:checked").val(), n = 1 == SFSI("input[name='sfsi_email_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_countsFrom']:checked").val(), o = SFSI("input[name='sfsi_email_manualCounts']").val(), a = SFSI("input[name='sfsi_google_api_key']").val(), r = 1 == SFSI("input[name='sfsi_rss_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_countsDisplay']:checked").val(), c = SFSI("input[name='sfsi_rss_manualCounts']").val(), p = 1 == SFSI("input[name='sfsi_facebook_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_countsDisplay']:checked").val(), _ = 1 == SFSI("input[name='sfsi_facebook_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_countsFrom']:checked").val(), mp = SFSI("input[name='sfsi_facebook_mypageCounts']").val(), l = SFSI("input[name='sfsi_facebook_manualCounts']").val(), S = 1 == SFSI("input[name='sfsi_twitter_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_countsDisplay']:checked").val(), u = 1 == SFSI("input[name='sfsi_twitter_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_countsFrom']:checked").val(), f = SFSI("input[name='sfsi_twitter_manualCounts']").val(), d = SFSI("input[name='tw_consumer_key']").val(), I = SFSI("input[name='tw_consumer_secret']").val(), m = SFSI("input[name='tw_oauth_access_token']").val(), F = SFSI("input[name='tw_oauth_access_token_secret']").val(), h = 1 == SFSI("input[name='sfsi_google_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_countsDisplay']:checked").val(), v = 1 == SFSI("input[name='sfsi_google_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_countsFrom']:checked").val(), g = SFSI("input[name='sfsi_google_manualCounts']").val(), k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(), b = SFSI("input[name='ln_company']").val(), w = SFSI("input[name='ln_api_key']").val(), x = SFSI("input[name='ln_secret_key']").val(), C = SFSI("input[name='ln_oAuth_user_token']").val(), D = 1 == SFSI("input[name='sfsi_linkedIn_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsDisplay']:checked").val(), k = 1 == SFSI("input[name='sfsi_linkedIn_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_countsFrom']:checked").val(), y = SFSI("input[name='sfsi_linkedIn_manualCounts']").val(), U = 1 == SFSI("input[name='sfsi_youtube_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_countsDisplay']:checked").val(), O = 1 == SFSI("input[name='sfsi_youtube_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_countsFrom']:checked").val(), T = SFSI("input[name='sfsi_youtube_manualCounts']").val(), j = SFSI("input[name='sfsi_youtube_user']").val(), P = 1 == SFSI("input[name='sfsi_pinterest_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_countsDisplay']:checked").val(), M = 1 == SFSI("input[name='sfsi_pinterest_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_countsFrom']:checked").val(), L = SFSI("input[name='sfsi_pinterest_manualCounts']").val(), B = SFSI("input[name='sfsi_pinterest_user']").val(), E = SFSI("input[name='sfsi_pinterest_board']").val(), z = 1 == SFSI("input[name='sfsi_instagram_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_countsDisplay']:checked").val(), A = 1 == SFSI("input[name='sfsi_instagram_countsFrom']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_countsFrom']:checked").val(), N = SFSI("input[name='sfsi_instagram_manualCounts']").val(), H = SFSI("input[name='sfsi_instagram_User']").val(),ha = SFSI("input[name='sfsi_instagram_clientid']").val(),ia = SFSI("input[name='sfsi_instagram_appurl']").val(),ja = SFSI("input[name='sfsi_instagram_token']").val(),
503
+
504
+ tc = 1 == SFSI("input[name='sfsi_telegram_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_telegram_countsDisplay']:checked").val(),
505
+ tm = SFSI("input[name='sfsi_telegram_manualCounts']").val(),
506
+
507
+ vc = 1 == SFSI("input[name='sfsi_vk_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_vk_countsDisplay']:checked").val(),
508
+ vm = SFSI("input[name='sfsi_vk_manualCounts']").val(),
509
+
510
+
511
+ oc = 1 == SFSI("input[name='sfsi_ok_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_ok_countsDisplay']:checked").val(),
512
+ om = SFSI("input[name='sfsi_ok_manualCounts']").val(),
513
+
514
+
515
+ wc = 1 == SFSI("input[name='sfsi_weibo_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_weibo_countsDisplay']:checked").val(),
516
+ wm = SFSI("input[name='sfsi_weibo_manualCounts']").val(),
517
+
518
+ wcc = 1 == SFSI("input[name='sfsi_wechat_countsDisplay']").prop("disabled") ? "" :SFSI("input[name='sfsi_wechat_countsDisplay']:checked").val(),
519
+ wcm = SFSI("input[name='sfsi_wechat_manualCounts']").val(),
520
+ $ = {
521
  action:"updateSrcn4",
522
  sfsi_display_counts:e,
523
  sfsi_email_countsDisplay:t,
564
  sfsi_instagram_clientid:ha,
565
  sfsi_instagram_appurl:ia,
566
  sfsi_instagram_token:ja,
567
+ sfsi_telegram_countsDisplay:tc,
568
+ sfsi_telegram_manualCounts:tm,
569
+ sfsi_vk_countsDisplay:vc,
570
+ sfsi_vk_manualCounts:vm,
571
+ sfsi_ok_countsDisplay:oc,
572
+ sfsi_ok_manualCounts:om,
573
+ sfsi_weibo_countsDisplay:wc,
574
+ sfsi_weibo_manualCounts:wm,
575
+ sfsi_wechat_countsDisplay:wcc,
576
+ sfsi_wechat_manualCounts:wcm,
577
  nonce:nonce
578
  };
579
+ console.log($);
580
  return SFSI.ajax({
581
  url:sfsi_icon_ajax_object.ajax_url,
582
  type:"post",
627
  d = SFSI("#sfsi_pinterestIcon_order").attr("data-index"),
628
  I = SFSI("#sfsi_instagramIcon_order").attr("data-index"),
629
  F = SFSI("#sfsi_linkedinIcon_order").attr("data-index"),
630
+ tgi = SFSI("#sfsi_telegramIcon_order").attr("data-index"),
631
+ vki = SFSI("#sfsi_vkIcon_order").attr("data-index"),
632
+ oki = SFSI("#sfsi_okIcon_order").attr("data-index"),
633
+ wbi = SFSI("#sfsi_weiboIcon_order").attr("data-index"),
634
+ wci = SFSI("#sfsi_wechatIcon_order").attr("data-index"),
635
+
636
  h = new Array();
637
 
638
  SFSI(".custom_iconOrder").each(function()
643
  });
644
  });
645
 
646
+ var v = 1 == SFSI("input[name='sfsi_rss_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_rss_MouseOverText']").val(), g = 1 == SFSI("input[name='sfsi_email_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_email_MouseOverText']").val(), k = 1 == SFSI("input[name='sfsi_twitter_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_twitter_MouseOverText']").val(), y = 1 == SFSI("input[name='sfsi_facebook_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_facebook_MouseOverText']").val(), b = 1 == SFSI("input[name='sfsi_google_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_google_MouseOverText']").val(), w = 1 == SFSI("input[name='sfsi_linkedIn_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_linkedIn_MouseOverText']").val(), x = 1 == SFSI("input[name='sfsi_youtube_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_youtube_MouseOverText']").val(),
647
+ C = 1 == SFSI("input[name='sfsi_pinterest_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_pinterest_MouseOverText']").val(),
648
+ D = 1 == SFSI("input[name='sfsi_instagram_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_instagram_MouseOverText']").val(),
649
+ tg = 1 == SFSI("input[name='sfsi_telegram_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_telegram_MouseOverText']").val(),
650
+ vk = 1 == SFSI("input[name='sfsi_vk_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_vk_MouseOverText']").val(),
651
+ ok = 1 == SFSI("input[name='sfsi_ok_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_ok_MouseOverText']").val(),
652
+ wb = 1 == SFSI("input[name='sfsi_weibo_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_weibo_MouseOverText']").val(),
653
+ wc = 1 == SFSI("input[name='sfsi_wechat_MouseOverText']").prop("disabled") ? "" :SFSI("input[name='sfsi_wechat_MouseOverText']").val(),
654
+
655
+ O = {};
656
  SFSI("input[name='sfsi_custom_MouseOverTexts[]']").each(function() {
657
  O[SFSI(this).attr("file-id")] = this.value;
658
  });
677
  sfsi_linkedIn_MouseOverText:w,
678
  sfsi_pinterest_MouseOverText:C,
679
  sfsi_instagram_MouseOverText:D,
680
+ sfsi_telegram_MouseOverText:tg,
681
+ sfsi_vk_MouseOverText:vk,
682
+ sfsi_ok_MouseOverText:ok,
683
+ sfsi_weibo_MouseOverText:wb,
684
+ sfsi_wechat_MouseOverText:wc,
685
  sfsi_custom_MouseOverTexts:O,
686
  sfsi_rssIcon_order:p,
687
  sfsi_emailIcon_order:_,
692
  sfsi_pinterestIcon_order:d,
693
  sfsi_instagramIcon_order:I,
694
  sfsi_linkedinIcon_order:F,
695
+ sfsi_telegramIcon_order:tgi,
696
+ sfsi_vkIcon_order:vki,
697
+ sfsi_okIcon_order:oki,
698
+ sfsi_weiboIcon_order:wbi,
699
+ sfsi_wechatIcon_order:wci,
700
+
701
  sfsi_custom_orders:h,
702
  sfsi_custom_social_hide:sfsi_custom_social_hide,
703
  nonce:nonce
704
  };
705
+ console.log(T);
706
  SFSI.ajax({
707
  url:sfsi_icon_ajax_object.ajax_url,
708
  type:"post",
1082
  return false;
1083
  }
1084
  }
1085
+ /* telegram validation */
1086
+ if(sfsi_validator(SFSI('input[name="sfsi_telegram_display"]'),'checked'))
1087
+ {
1088
+ if(!sfsi_validator(SFSI('input[name="sfsi_telegram_username"]'),'blank') )
1089
+ {
1090
+ showErrorSuc("error","Error : Invalid telegram username ",2);
1091
+ SFSI('input[name="sfsi_telegram_username"]').addClass('inputError');
1092
+ return false;
1093
+ }
1094
+ }
1095
+ /* telegram validation */
1096
+ if(sfsi_validator(SFSI('input[name="sfsi_telegram_display"]'),'checked'))
1097
+ {
1098
+ if(!sfsi_validator(SFSI('input[name="sfsi_telegram_message"]'),'blank') )
1099
+ {
1100
+ showErrorSuc("error","Error : Invalid Message ",2);
1101
+ SFSI('input[name="sfsi_telegram_message"]').addClass('inputError');
1102
+ return false;
1103
+ }
1104
+ }
1105
+ /* vk validation */
1106
+ if(sfsi_validator(SFSI('input[name="sfsi_vk_display"]'),'checked'))
1107
+ {
1108
+ if(!sfsi_validator(SFSI('input[name="sfsi_vk_pageURL"]'),'blank') )
1109
+ {
1110
+ showErrorSuc("error","Error : Invalid vk url ",2);
1111
+ SFSI('input[name="sfsi_vk_pageURL"]').addClass('inputError');
1112
+ return false;
1113
+ }
1114
+ }
1115
+ /* ok validation */
1116
+ if(sfsi_validator(SFSI('input[name="sfsi_ok_display"]'),'checked'))
1117
+ {
1118
+ if(!sfsi_validator(SFSI('input[name="sfsi_ok_pageURL"]'),'blank') )
1119
+ {
1120
+ showErrorSuc("error","Error : Invalid ok url ",2);
1121
+ SFSI('input[name="sfsi_ok_pageURL"]').addClass('inputError');
1122
+ return false;
1123
+ }
1124
+ }
1125
+ /* weibo validation */
1126
+ if(sfsi_validator(SFSI('input[name="sfsi_weibo_display"]'),'checked'))
1127
+ {
1128
+ if(!sfsi_validator(SFSI('input[name="sfsi_weibo_pageURL"]'),'blank') )
1129
+ {
1130
+ showErrorSuc("error","Error : Invalid weibo url ",2);
1131
+ SFSI('input[name="sfsi_weibo_pageURL"]').addClass('inputError');
1132
+ return false;
1133
+ }
1134
+ }
1135
  /* LinkedIn validation */
1136
  if(sfsi_validator(SFSI('input[name="sfsi_linkedin_page"]'),'activte') && sfsi_validator(SFSI('input[name="sfsi_linkedin_page"]'),'checked'))
1137
  {
2043
  SFSI(this).css("opacity", "1");
2044
  }),
2045
  SFSI("#sfsi_save1").on("click", function() {
2046
+ console.log('harish save1',sfsi_update_step1());
2047
  sfsi_update_step1() && sfsicollapse(this);
2048
  }),
2049
  SFSI("#sfsi_save2").on("click", function() {
js/custom-form.js CHANGED
@@ -146,7 +146,7 @@ var prev_onload = window.onload;
146
  window.sfsi_styled_input=Custom;
147
 
148
  if('function' === typeof prev_onload){
149
- prev_onload(),Custom.init();
150
  }
151
  else{
152
  Custom.init();
146
  window.sfsi_styled_input=Custom;
147
 
148
  if('function' === typeof prev_onload){
149
+ prev_onload(),Custom.init();
150
  }
151
  else{
152
  Custom.init();
js/custom.js CHANGED
@@ -216,11 +216,12 @@ SFSI(document).ready(function(s) {
216
  var s = SFSI(this).parent().find("input:radio:first");
217
  "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
218
  }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s) {
219
- if(SFSI(s.target).parent().attr('href')==""){
220
  s.preventDefault();
221
  }
222
-
223
- s.stopPropagation();
 
224
  var i = SFSI("#sfsi_floater_sec").val();
225
  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(),
226
  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"),
@@ -315,4 +316,33 @@ function sfsihidemepopup()
315
  {
316
  SFSI(".sfsi_FrntInner_chg").fadeOut();
317
  }
318
- var initTop = new Array();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  var s = SFSI(this).parent().find("input:radio:first");
217
  "sfsi_popup_border_shadow" == s.attr("name") && sfsi_make_popBox();
218
  }), /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ? SFSI("img.sfsi_wicon").on("click", function(s) {
219
+ if(SFSI(s.target).parent().attr('href')=="" ){
220
  s.preventDefault();
221
  }
222
+ if(!SFSI(this).hasClass('sfsi_click_wicon')){
223
+ s.stopPropagation&&s.stopPropagation();
224
+ }
225
  var i = SFSI("#sfsi_floater_sec").val();
226
  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(),
227
  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"),
316
  {
317
  SFSI(".sfsi_FrntInner_chg").fadeOut();
318
  }
319
+ var initTop = new Array();
320
+ function close_overlay(selector){
321
+ if(typeof selector === "undefined"){
322
+ selector = '.sfsi_overlay';
323
+ }
324
+ jQuery(selector).removeClass('show').addClass('hide').hide();
325
+ }
326
+ function sfsi_wechat_share(url){
327
+ if(jQuery('.sfsi_wechat_follow_overlay').length==0){
328
+ 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>");
329
+ new QRCode(jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display')[0], window.location.href)
330
+ jQuery('.sfsi_wechat_follow_overlay .sfsi_wechat_qr_display img').attr('nopin','nopin')
331
+ }else{
332
+ jQuery('.sfsi_wechat_follow_overlay').removeClass('hide').addClass('show').show();
333
+ }
334
+ }
335
+ function sfsi_mobile_wechat_share(url){
336
+ if(jQuery('.sfsi_wechat_follow_overlay').length==0){
337
+ 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='"+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>");
338
+ }else{
339
+ jQuery('.sfsi_wechat_scan').removeClass('hide').addClass('show');
340
+ }
341
+ }
342
+ function sfsi_copy_text_parent_input(event){
343
+ var target = jQuery(event.target);
344
+ console.log(target);
345
+ input_target= target.parent().parent().parent().find('input');
346
+ input_target.select();
347
+ document.execCommand('copy');
348
+ }
js/qrcode.min.js ADDED
@@ -0,0 +1 @@
 
1
+ var QRCode;!function(){function a(a){this.mode=c.MODE_8BIT_BYTE,this.data=a,this.parsedData=[];for(var b=[],d=0,e=this.data.length;e>d;d++){var f=this.data.charCodeAt(d);f>65536?(b[0]=240|(1835008&f)>>>18,b[1]=128|(258048&f)>>>12,b[2]=128|(4032&f)>>>6,b[3]=128|63&f):f>2048?(b[0]=224|(61440&f)>>>12,b[1]=128|(4032&f)>>>6,b[2]=128|63&f):f>128?(b[0]=192|(1984&f)>>>6,b[1]=128|63&f):b[0]=f,this.parsedData=this.parsedData.concat(b)}this.parsedData.length!=this.data.length&&(this.parsedData.unshift(191),this.parsedData.unshift(187),this.parsedData.unshift(239))}function b(a,b){this.typeNumber=a,this.errorCorrectLevel=b,this.modules=null,this.moduleCount=0,this.dataCache=null,this.dataList=[]}function i(a,b){if(void 0==a.length)throw new Error(a.length+"/"+b);for(var c=0;c<a.length&&0==a[c];)c++;this.num=new Array(a.length-c+b);for(var d=0;d<a.length-c;d++)this.num[d]=a[d+c]}function j(a,b){this.totalCount=a,this.dataCount=b}function k(){this.buffer=[],this.length=0}function m(){return"undefined"!=typeof CanvasRenderingContext2D}function n(){var a=!1,b=navigator.userAgent;return/android/i.test(b)&&(a=!0,aMat=b.toString().match(/android ([0-9]\.[0-9])/i),aMat&&aMat[1]&&(a=parseFloat(aMat[1]))),a}function r(a,b){for(var c=1,e=s(a),f=0,g=l.length;g>=f;f++){var h=0;switch(b){case d.L:h=l[f][0];break;case d.M:h=l[f][1];break;case d.Q:h=l[f][2];break;case d.H:h=l[f][3]}if(h>=e)break;c++}if(c>l.length)throw new Error("Too long data");return c}function s(a){var b=encodeURI(a).toString().replace(/\%[0-9a-fA-F]{2}/g,"a");return b.length+(b.length!=a?3:0)}a.prototype={getLength:function(){return this.parsedData.length},write:function(a){for(var b=0,c=this.parsedData.length;c>b;b++)a.put(this.parsedData[b],8)}},b.prototype={addData:function(b){var c=new a(b);this.dataList.push(c),this.dataCache=null},isDark:function(a,b){if(0>a||this.moduleCount<=a||0>b||this.moduleCount<=b)throw new Error(a+","+b);return this.modules[a][b]},getModuleCount:function(){return this.moduleCount},make:function(){this.makeImpl(!1,this.getBestMaskPattern())},makeImpl:function(a,c){this.moduleCount=4*this.typeNumber+17,this.modules=new Array(this.moduleCount);for(var d=0;d<this.moduleCount;d++){this.modules[d]=new Array(this.moduleCount);for(var e=0;e<this.moduleCount;e++)this.modules[d][e]=null}this.setupPositionProbePattern(0,0),this.setupPositionProbePattern(this.moduleCount-7,0),this.setupPositionProbePattern(0,this.moduleCount-7),this.setupPositionAdjustPattern(),this.setupTimingPattern(),this.setupTypeInfo(a,c),this.typeNumber>=7&&this.setupTypeNumber(a),null==this.dataCache&&(this.dataCache=b.createData(this.typeNumber,this.errorCorrectLevel,this.dataList)),this.mapData(this.dataCache,c)},setupPositionProbePattern:function(a,b){for(var c=-1;7>=c;c++)if(!(-1>=a+c||this.moduleCount<=a+c))for(var d=-1;7>=d;d++)-1>=b+d||this.moduleCount<=b+d||(this.modules[a+c][b+d]=c>=0&&6>=c&&(0==d||6==d)||d>=0&&6>=d&&(0==c||6==c)||c>=2&&4>=c&&d>=2&&4>=d?!0:!1)},getBestMaskPattern:function(){for(var a=0,b=0,c=0;8>c;c++){this.makeImpl(!0,c);var d=f.getLostPoint(this);(0==c||a>d)&&(a=d,b=c)}return b},createMovieClip:function(a,b,c){var d=a.createEmptyMovieClip(b,c),e=1;this.make();for(var f=0;f<this.modules.length;f++)for(var g=f*e,h=0;h<this.modules[f].length;h++){var i=h*e,j=this.modules[f][h];j&&(d.beginFill(0,100),d.moveTo(i,g),d.lineTo(i+e,g),d.lineTo(i+e,g+e),d.lineTo(i,g+e),d.endFill())}return d},setupTimingPattern:function(){for(var a=8;a<this.moduleCount-8;a++)null==this.modules[a][6]&&(this.modules[a][6]=0==a%2);for(var b=8;b<this.moduleCount-8;b++)null==this.modules[6][b]&&(this.modules[6][b]=0==b%2)},setupPositionAdjustPattern:function(){for(var a=f.getPatternPosition(this.typeNumber),b=0;b<a.length;b++)for(var c=0;c<a.length;c++){var d=a[b],e=a[c];if(null==this.modules[d][e])for(var g=-2;2>=g;g++)for(var h=-2;2>=h;h++)this.modules[d+g][e+h]=-2==g||2==g||-2==h||2==h||0==g&&0==h?!0:!1}},setupTypeNumber:function(a){for(var b=f.getBCHTypeNumber(this.typeNumber),c=0;18>c;c++){var d=!a&&1==(1&b>>c);this.modules[Math.floor(c/3)][c%3+this.moduleCount-8-3]=d}for(var c=0;18>c;c++){var d=!a&&1==(1&b>>c);this.modules[c%3+this.moduleCount-8-3][Math.floor(c/3)]=d}},setupTypeInfo:function(a,b){for(var c=this.errorCorrectLevel<<3|b,d=f.getBCHTypeInfo(c),e=0;15>e;e++){var g=!a&&1==(1&d>>e);6>e?this.modules[e][8]=g:8>e?this.modules[e+1][8]=g:this.modules[this.moduleCount-15+e][8]=g}for(var e=0;15>e;e++){var g=!a&&1==(1&d>>e);8>e?this.modules[8][this.moduleCount-e-1]=g:9>e?this.modules[8][15-e-1+1]=g:this.modules[8][15-e-1]=g}this.modules[this.moduleCount-8][8]=!a},mapData:function(a,b){for(var c=-1,d=this.moduleCount-1,e=7,g=0,h=this.moduleCount-1;h>0;h-=2)for(6==h&&h--;;){for(var i=0;2>i;i++)if(null==this.modules[d][h-i]){var j=!1;g<a.length&&(j=1==(1&a[g]>>>e));var k=f.getMask(b,d,h-i);k&&(j=!j),this.modules[d][h-i]=j,e--,-1==e&&(g++,e=7)}if(d+=c,0>d||this.moduleCount<=d){d-=c,c=-c;break}}}},b.PAD0=236,b.PAD1=17,b.createData=function(a,c,d){for(var e=j.getRSBlocks(a,c),g=new k,h=0;h<d.length;h++){var i=d[h];g.put(i.mode,4),g.put(i.getLength(),f.getLengthInBits(i.mode,a)),i.write(g)}for(var l=0,h=0;h<e.length;h++)l+=e[h].dataCount;if(g.getLengthInBits()>8*l)throw new Error("code length overflow. ("+g.getLengthInBits()+">"+8*l+")");for(g.getLengthInBits()+4<=8*l&&g.put(0,4);0!=g.getLengthInBits()%8;)g.putBit(!1);for(;;){if(g.getLengthInBits()>=8*l)break;if(g.put(b.PAD0,8),g.getLengthInBits()>=8*l)break;g.put(b.PAD1,8)}return b.createBytes(g,e)},b.createBytes=function(a,b){for(var c=0,d=0,e=0,g=new Array(b.length),h=new Array(b.length),j=0;j<b.length;j++){var k=b[j].dataCount,l=b[j].totalCount-k;d=Math.max(d,k),e=Math.max(e,l),g[j]=new Array(k);for(var m=0;m<g[j].length;m++)g[j][m]=255&a.buffer[m+c];c+=k;var n=f.getErrorCorrectPolynomial(l),o=new i(g[j],n.getLength()-1),p=o.mod(n);h[j]=new Array(n.getLength()-1);for(var m=0;m<h[j].length;m++){var q=m+p.getLength()-h[j].length;h[j][m]=q>=0?p.get(q):0}}for(var r=0,m=0;m<b.length;m++)r+=b[m].totalCount;for(var s=new Array(r),t=0,m=0;d>m;m++)for(var j=0;j<b.length;j++)m<g[j].length&&(s[t++]=g[j][m]);for(var m=0;e>m;m++)for(var j=0;j<b.length;j++)m<h[j].length&&(s[t++]=h[j][m]);return s};for(var c={MODE_NUMBER:1,MODE_ALPHA_NUM:2,MODE_8BIT_BYTE:4,MODE_KANJI:8},d={L:1,M:0,Q:3,H:2},e={PATTERN000:0,PATTERN001:1,PATTERN010:2,PATTERN011:3,PATTERN100:4,PATTERN101:5,PATTERN110:6,PATTERN111:7},f={PATTERN_POSITION_TABLE:[[],[6,18],[6,22],[6,26],[6,30],[6,34],[6,22,38],[6,24,42],[6,26,46],[6,28,50],[6,30,54],[6,32,58],[6,34,62],[6,26,46,66],[6,26,48,70],[6,26,50,74],[6,30,54,78],[6,30,56,82],[6,30,58,86],[6,34,62,90],[6,28,50,72,94],[6,26,50,74,98],[6,30,54,78,102],[6,28,54,80,106],[6,32,58,84,110],[6,30,58,86,114],[6,34,62,90,118],[6,26,50,74,98,122],[6,30,54,78,102,126],[6,26,52,78,104,130],[6,30,56,82,108,134],[6,34,60,86,112,138],[6,30,58,86,114,142],[6,34,62,90,118,146],[6,30,54,78,102,126,150],[6,24,50,76,102,128,154],[6,28,54,80,106,132,158],[6,32,58,84,110,136,162],[6,26,54,82,110,138,166],[6,30,58,86,114,142,170]],G15:1335,G18:7973,G15_MASK:21522,getBCHTypeInfo:function(a){for(var b=a<<10;f.getBCHDigit(b)-f.getBCHDigit(f.G15)>=0;)b^=f.G15<<f.getBCHDigit(b)-f.getBCHDigit(f.G15);return(a<<10|b)^f.G15_MASK},getBCHTypeNumber:function(a){for(var b=a<<12;f.getBCHDigit(b)-f.getBCHDigit(f.G18)>=0;)b^=f.G18<<f.getBCHDigit(b)-f.getBCHDigit(f.G18);return a<<12|b},getBCHDigit:function(a){for(var b=0;0!=a;)b++,a>>>=1;return b},getPatternPosition:function(a){return f.PATTERN_POSITION_TABLE[a-1]},getMask:function(a,b,c){switch(a){case e.PATTERN000:return 0==(b+c)%2;case e.PATTERN001:return 0==b%2;case e.PATTERN010:return 0==c%3;case e.PATTERN011:return 0==(b+c)%3;case e.PATTERN100:return 0==(Math.floor(b/2)+Math.floor(c/3))%2;case e.PATTERN101:return 0==b*c%2+b*c%3;case e.PATTERN110:return 0==(b*c%2+b*c%3)%2;case e.PATTERN111:return 0==(b*c%3+(b+c)%2)%2;default:throw new Error("bad maskPattern:"+a)}},getErrorCorrectPolynomial:function(a){for(var b=new i([1],0),c=0;a>c;c++)b=b.multiply(new i([1,g.gexp(c)],0));return b},getLengthInBits:function(a,b){if(b>=1&&10>b)switch(a){case c.MODE_NUMBER:return 10;case c.MODE_ALPHA_NUM:return 9;case c.MODE_8BIT_BYTE:return 8;case c.MODE_KANJI:return 8;default:throw new Error("mode:"+a)}else if(27>b)switch(a){case c.MODE_NUMBER:return 12;case c.MODE_ALPHA_NUM:return 11;case c.MODE_8BIT_BYTE:return 16;case c.MODE_KANJI:return 10;default:throw new Error("mode:"+a)}else{if(!(41>b))throw new Error("type:"+b);switch(a){case c.MODE_NUMBER:return 14;case c.MODE_ALPHA_NUM:return 13;case c.MODE_8BIT_BYTE:return 16;case c.MODE_KANJI:return 12;default:throw new Error("mode:"+a)}}},getLostPoint:function(a){for(var b=a.getModuleCount(),c=0,d=0;b>d;d++)for(var e=0;b>e;e++){for(var f=0,g=a.isDark(d,e),h=-1;1>=h;h++)if(!(0>d+h||d+h>=b))for(var i=-1;1>=i;i++)0>e+i||e+i>=b||(0!=h||0!=i)&&g==a.isDark(d+h,e+i)&&f++;f>5&&(c+=3+f-5)}for(var d=0;b-1>d;d++)for(var e=0;b-1>e;e++){var j=0;a.isDark(d,e)&&j++,a.isDark(d+1,e)&&j++,a.isDark(d,e+1)&&j++,a.isDark(d+1,e+1)&&j++,(0==j||4==j)&&(c+=3)}for(var d=0;b>d;d++)for(var e=0;b-6>e;e++)a.isDark(d,e)&&!a.isDark(d,e+1)&&a.isDark(d,e+2)&&a.isDark(d,e+3)&&a.isDark(d,e+4)&&!a.isDark(d,e+5)&&a.isDark(d,e+6)&&(c+=40);for(var e=0;b>e;e++)for(var d=0;b-6>d;d++)a.isDark(d,e)&&!a.isDark(d+1,e)&&a.isDark(d+2,e)&&a.isDark(d+3,e)&&a.isDark(d+4,e)&&!a.isDark(d+5,e)&&a.isDark(d+6,e)&&(c+=40);for(var k=0,e=0;b>e;e++)for(var d=0;b>d;d++)a.isDark(d,e)&&k++;var l=Math.abs(100*k/b/b-50)/5;return c+=10*l}},g={glog:function(a){if(1>a)throw new Error("glog("+a+")");return g.LOG_TABLE[a]},gexp:function(a){for(;0>a;)a+=255;for(;a>=256;)a-=255;return g.EXP_TABLE[a]},EXP_TABLE:new Array(256),LOG_TABLE:new Array(256)},h=0;8>h;h++)g.EXP_TABLE[h]=1<<h;for(var h=8;256>h;h++)g.EXP_TABLE[h]=g.EXP_TABLE[h-4]^g.EXP_TABLE[h-5]^g.EXP_TABLE[h-6]^g.EXP_TABLE[h-8];for(var h=0;255>h;h++)g.LOG_TABLE[g.EXP_TABLE[h]]=h;i.prototype={get:function(a){return this.num[a]},getLength:function(){return this.num.length},multiply:function(a){for(var b=new Array(this.getLength()+a.getLength()-1),c=0;c<this.getLength();c++)for(var d=0;d<a.getLength();d++)b[c+d]^=g.gexp(g.glog(this.get(c))+g.glog(a.get(d)));return new i(b,0)},mod:function(a){if(this.getLength()-a.getLength()<0)return this;for(var b=g.glog(this.get(0))-g.glog(a.get(0)),c=new Array(this.getLength()),d=0;d<this.getLength();d++)c[d]=this.get(d);for(var d=0;d<a.getLength();d++)c[d]^=g.gexp(g.glog(a.get(d))+b);return new i(c,0).mod(a)}},j.RS_BLOCK_TABLE=[[1,26,19],[1,26,16],[1,26,13],[1,26,9],[1,44,34],[1,44,28],[1,44,22],[1,44,16],[1,70,55],[1,70,44],[2,35,17],[2,35,13],[1,100,80],[2,50,32],[2,50,24],[4,25,9],[1,134,108],[2,67,43],[2,33,15,2,34,16],[2,33,11,2,34,12],[2,86,68],[4,43,27],[4,43,19],[4,43,15],[2,98,78],[4,49,31],[2,32,14,4,33,15],[4,39,13,1,40,14],[2,121,97],[2,60,38,2,61,39],[4,40,18,2,41,19],[4,40,14,2,41,15],[2,146,116],[3,58,36,2,59,37],[4,36,16,4,37,17],[4,36,12,4,37,13],[2,86,68,2,87,69],[4,69,43,1,70,44],[6,43,19,2,44,20],[6,43,15,2,44,16],[4,101,81],[1,80,50,4,81,51],[4,50,22,4,51,23],[3,36,12,8,37,13],[2,116,92,2,117,93],[6,58,36,2,59,37],[4,46,20,6,47,21],[7,42,14,4,43,15],[4,133,107],[8,59,37,1,60,38],[8,44,20,4,45,21],[12,33,11,4,34,12],[3,145,115,1,146,116],[4,64,40,5,65,41],[11,36,16,5,37,17],[11,36,12,5,37,13],[5,109,87,1,110,88],[5,65,41,5,66,42],[5,54,24,7,55,25],[11,36,12],[5,122,98,1,123,99],[7,73,45,3,74,46],[15,43,19,2,44,20],[3,45,15,13,46,16],[1,135,107,5,136,108],[10,74,46,1,75,47],[1,50,22,15,51,23],[2,42,14,17,43,15],[5,150,120,1,151,121],[9,69,43,4,70,44],[17,50,22,1,51,23],[2,42,14,19,43,15],[3,141,113,4,142,114],[3,70,44,11,71,45],[17,47,21,4,48,22],[9,39,13,16,40,14],[3,135,107,5,136,108],[3,67,41,13,68,42],[15,54,24,5,55,25],[15,43,15,10,44,16],[4,144,116,4,145,117],[17,68,42],[17,50,22,6,51,23],[19,46,16,6,47,17],[2,139,111,7,140,112],[17,74,46],[7,54,24,16,55,25],[34,37,13],[4,151,121,5,152,122],[4,75,47,14,76,48],[11,54,24,14,55,25],[16,45,15,14,46,16],[6,147,117,4,148,118],[6,73,45,14,74,46],[11,54,24,16,55,25],[30,46,16,2,47,17],[8,132,106,4,133,107],[8,75,47,13,76,48],[7,54,24,22,55,25],[22,45,15,13,46,16],[10,142,114,2,143,115],[19,74,46,4,75,47],[28,50,22,6,51,23],[33,46,16,4,47,17],[8,152,122,4,153,123],[22,73,45,3,74,46],[8,53,23,26,54,24],[12,45,15,28,46,16],[3,147,117,10,148,118],[3,73,45,23,74,46],[4,54,24,31,55,25],[11,45,15,31,46,16],[7,146,116,7,147,117],[21,73,45,7,74,46],[1,53,23,37,54,24],[19,45,15,26,46,16],[5,145,115,10,146,116],[19,75,47,10,76,48],[15,54,24,25,55,25],[23,45,15,25,46,16],[13,145,115,3,146,116],[2,74,46,29,75,47],[42,54,24,1,55,25],[23,45,15,28,46,16],[17,145,115],[10,74,46,23,75,47],[10,54,24,35,55,25],[19,45,15,35,46,16],[17,145,115,1,146,116],[14,74,46,21,75,47],[29,54,24,19,55,25],[11,45,15,46,46,16],[13,145,115,6,146,116],[14,74,46,23,75,47],[44,54,24,7,55,25],[59,46,16,1,47,17],[12,151,121,7,152,122],[12,75,47,26,76,48],[39,54,24,14,55,25],[22,45,15,41,46,16],[6,151,121,14,152,122],[6,75,47,34,76,48],[46,54,24,10,55,25],[2,45,15,64,46,16],[17,152,122,4,153,123],[29,74,46,14,75,47],[49,54,24,10,55,25],[24,45,15,46,46,16],[4,152,122,18,153,123],[13,74,46,32,75,47],[48,54,24,14,55,25],[42,45,15,32,46,16],[20,147,117,4,148,118],[40,75,47,7,76,48],[43,54,24,22,55,25],[10,45,15,67,46,16],[19,148,118,6,149,119],[18,75,47,31,76,48],[34,54,24,34,55,25],[20,45,15,61,46,16]],j.getRSBlocks=function(a,b){var c=j.getRsBlockTable(a,b);if(void 0==c)throw new Error("bad rs block @ typeNumber:"+a+"/errorCorrectLevel:"+b);for(var d=c.length/3,e=[],f=0;d>f;f++)for(var g=c[3*f+0],h=c[3*f+1],i=c[3*f+2],k=0;g>k;k++)e.push(new j(h,i));return e},j.getRsBlockTable=function(a,b){switch(b){case d.L:return j.RS_BLOCK_TABLE[4*(a-1)+0];case d.M:return j.RS_BLOCK_TABLE[4*(a-1)+1];case d.Q:return j.RS_BLOCK_TABLE[4*(a-1)+2];case d.H:return j.RS_BLOCK_TABLE[4*(a-1)+3];default:return void 0}},k.prototype={get:function(a){var b=Math.floor(a/8);return 1==(1&this.buffer[b]>>>7-a%8)},put:function(a,b){for(var c=0;b>c;c++)this.putBit(1==(1&a>>>b-c-1))},getLengthInBits:function(){return this.length},putBit:function(a){var b=Math.floor(this.length/8);this.buffer.length<=b&&this.buffer.push(0),a&&(this.buffer[b]|=128>>>this.length%8),this.length++}};var l=[[17,14,11,7],[32,26,20,14],[53,42,32,24],[78,62,46,34],[106,84,60,44],[134,106,74,58],[154,122,86,64],[192,152,108,84],[230,180,130,98],[271,213,151,119],[321,251,177,137],[367,287,203,155],[425,331,241,177],[458,362,258,194],[520,412,292,220],[586,450,322,250],[644,504,364,280],[718,560,394,310],[792,624,442,338],[858,666,482,382],[929,711,509,403],[1003,779,565,439],[1091,857,611,461],[1171,911,661,511],[1273,997,715,535],[1367,1059,751,593],[1465,1125,805,625],[1528,1190,868,658],[1628,1264,908,698],[1732,1370,982,742],[1840,1452,1030,790],[1952,1538,1112,842],[2068,1628,1168,898],[2188,1722,1228,958],[2303,1809,1283,983],[2431,1911,1351,1051],[2563,1989,1423,1093],[2699,2099,1499,1139],[2809,2213,1579,1219],[2953,2331,1663,1273]],o=function(){var a=function(a,b){this._el=a,this._htOption=b};return a.prototype.draw=function(a){function g(a,b){var c=document.createElementNS("http://www.w3.org/2000/svg",a);for(var d in b)b.hasOwnProperty(d)&&c.setAttribute(d,b[d]);return c}var b=this._htOption,c=this._el,d=a.getModuleCount();Math.floor(b.width/d),Math.floor(b.height/d),this.clear();var h=g("svg",{viewBox:"0 0 "+String(d)+" "+String(d),width:"100%",height:"100%",fill:b.colorLight});h.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink"),c.appendChild(h),h.appendChild(g("rect",{fill:b.colorDark,width:"1",height:"1",id:"template"}));for(var i=0;d>i;i++)for(var j=0;d>j;j++)if(a.isDark(i,j)){var k=g("use",{x:String(i),y:String(j)});k.setAttributeNS("http://www.w3.org/1999/xlink","href","#template"),h.appendChild(k)}},a.prototype.clear=function(){for(;this._el.hasChildNodes();)this._el.removeChild(this._el.lastChild)},a}(),p="svg"===document.documentElement.tagName.toLowerCase(),q=p?o:m()?function(){function a(){this._elImage.src=this._elCanvas.toDataURL("image/png"),this._elImage.style.display="block",this._elCanvas.style.display="none"}function d(a,b){var c=this;if(c._fFail=b,c._fSuccess=a,null===c._bSupportDataURI){var d=document.createElement("img"),e=function(){c._bSupportDataURI=!1,c._fFail&&_fFail.call(c)},f=function(){c._bSupportDataURI=!0,c._fSuccess&&c._fSuccess.call(c)};return d.onabort=e,d.onerror=e,d.onload=f,d.src="data:image/gif;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAFCAYAAACNbyblAAAAHElEQVQI12P4//8/w38GIAXDIBKE0DHxgljNBAAO9TXL0Y4OHwAAAABJRU5ErkJggg==",void 0}c._bSupportDataURI===!0&&c._fSuccess?c._fSuccess.call(c):c._bSupportDataURI===!1&&c._fFail&&c._fFail.call(c)}if(this._android&&this._android<=2.1){var b=1/window.devicePixelRatio,c=CanvasRenderingContext2D.prototype.drawImage;CanvasRenderingContext2D.prototype.drawImage=function(a,d,e,f,g,h,i,j){if("nodeName"in a&&/img/i.test(a.nodeName))for(var l=arguments.length-1;l>=1;l--)arguments[l]=arguments[l]*b;else"undefined"==typeof j&&(arguments[1]*=b,arguments[2]*=b,arguments[3]*=b,arguments[4]*=b);c.apply(this,arguments)}}var e=function(a,b){this._bIsPainted=!1,this._android=n(),this._htOption=b,this._elCanvas=document.createElement("canvas"),this._elCanvas.width=b.width,this._elCanvas.height=b.height,a.appendChild(this._elCanvas),this._el=a,this._oContext=this._elCanvas.getContext("2d"),this._bIsPainted=!1,this._elImage=document.createElement("img"),this._elImage.style.display="none",this._el.appendChild(this._elImage),this._bSupportDataURI=null};return e.prototype.draw=function(a){var b=this._elImage,c=this._oContext,d=this._htOption,e=a.getModuleCount(),f=d.width/e,g=d.height/e,h=Math.round(f),i=Math.round(g);b.style.display="none",this.clear();for(var j=0;e>j;j++)for(var k=0;e>k;k++){var l=a.isDark(j,k),m=k*f,n=j*g;c.strokeStyle=l?d.colorDark:d.colorLight,c.lineWidth=1,c.fillStyle=l?d.colorDark:d.colorLight,c.fillRect(m,n,f,g),c.strokeRect(Math.floor(m)+.5,Math.floor(n)+.5,h,i),c.strokeRect(Math.ceil(m)-.5,Math.ceil(n)-.5,h,i)}this._bIsPainted=!0},e.prototype.makeImage=function(){this._bIsPainted&&d.call(this,a)},e.prototype.isPainted=function(){return this._bIsPainted},e.prototype.clear=function(){this._oContext.clearRect(0,0,this._elCanvas.width,this._elCanvas.height),this._bIsPainted=!1},e.prototype.round=function(a){return a?Math.floor(1e3*a)/1e3:a},e}():function(){var a=function(a,b){this._el=a,this._htOption=b};return a.prototype.draw=function(a){for(var b=this._htOption,c=this._el,d=a.getModuleCount(),e=Math.floor(b.width/d),f=Math.floor(b.height/d),g=['<table style="border:0;border-collapse:collapse;">'],h=0;d>h;h++){g.push("<tr>");for(var i=0;d>i;i++)g.push('<td style="border:0;border-collapse:collapse;padding:0;margin:0;width:'+e+"px;height:"+f+"px;background-color:"+(a.isDark(h,i)?b.colorDark:b.colorLight)+';"></td>');g.push("</tr>")}g.push("</table>"),c.innerHTML=g.join("");var j=c.childNodes[0],k=(b.width-j.offsetWidth)/2,l=(b.height-j.offsetHeight)/2;k>0&&l>0&&(j.style.margin=l+"px "+k+"px")},a.prototype.clear=function(){this._el.innerHTML=""},a}();QRCode=function(a,b){if(this._htOption={width:256,height:256,typeNumber:4,colorDark:"#000000",colorLight:"#ffffff",correctLevel:d.H},"string"==typeof b&&(b={text:b}),b)for(var c in b)this._htOption[c]=b[c];"string"==typeof a&&(a=document.getElementById(a)),this._android=n(),this._el=a,this._oQRCode=null,this._oDrawing=new q(this._el,this._htOption),this._htOption.text&&this.makeCode(this._htOption.text)},QRCode.prototype.makeCode=function(a){this._oQRCode=new b(r(a,this._htOption.correctLevel),this._htOption.correctLevel),this._oQRCode.addData(a),this._oQRCode.make(),this._el.title=a,this._oDrawing.draw(this._oQRCode),this.makeImage()},QRCode.prototype.makeImage=function(){"function"==typeof this._oDrawing.makeImage&&(!this._android||this._android>=3)&&this._oDrawing.makeImage()},QRCode.prototype.clear=function(){this._oDrawing.clear()},QRCode.CorrectLevel=d}();
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -9,9 +9,8 @@ function sfsi_options_updater1()
9
  }
10
  if(!current_user_can('manage_options')){ echo json_encode(array('res'=>'not allowed'));die(); }
11
 
12
-
13
-
14
  $option1= unserialize(get_option('sfsi_section1_options',false));
 
15
  $sfsi_rss_display = isset($_POST["sfsi_rss_display"]) ? sanitize_text_field( $_POST["sfsi_rss_display"] ): 'no';
16
  $sfsi_email_display = isset($_POST["sfsi_email_display"]) ? sanitize_text_field( $_POST["sfsi_email_display"] ): 'no';
17
  $sfsi_facebook_display = isset($_POST["sfsi_facebook_display"]) ? sanitize_text_field( $_POST["sfsi_facebook_display"] ): 'no';
@@ -19,6 +18,12 @@ function sfsi_options_updater1()
19
  $sfsi_google_display = isset($_POST["sfsi_google_display"]) ? sanitize_text_field( $_POST["sfsi_google_display"] ): 'no';
20
  $sfsi_youtube_display = isset($_POST["sfsi_youtube_display"]) ? sanitize_text_field( $_POST["sfsi_youtube_display"] ): 'no';
21
  $sfsi_pinterest_display = isset($_POST["sfsi_pinterest_display"]) ? sanitize_text_field( $_POST["sfsi_pinterest_display"] ): 'no';
 
 
 
 
 
 
22
  $sfsi_instagram_display = isset($_POST["sfsi_instagram_display"]) ? sanitize_text_field( $_POST["sfsi_instagram_display"] ): 'no';
23
  $sfsi_linkedin_display = isset($_POST["sfsi_linkedin_display"]) ? sanitize_text_field( $_POST["sfsi_linkedin_display"] ): 'no';
24
  $sfsi_custom_icons = isset($option1['sfsi_custom_files']) ? $option1['sfsi_custom_files'] : '';
@@ -30,6 +35,12 @@ function sfsi_options_updater1()
30
  'sfsi_google_display' => sanitize_text_field($sfsi_google_display),
31
  'sfsi_youtube_display' => sanitize_text_field($sfsi_youtube_display),
32
  'sfsi_pinterest_display'=> sanitize_text_field($sfsi_pinterest_display),
 
 
 
 
 
 
33
  'sfsi_linkedin_display' => sanitize_text_field($sfsi_linkedin_display),
34
  'sfsi_instagram_display'=> sanitize_text_field($sfsi_instagram_display),
35
  'sfsi_custom_files' => sanitize_text_field($sfsi_custom_icons)
@@ -42,6 +53,7 @@ function sfsi_options_updater1()
42
  add_action('wp_ajax_updateSrcn2','sfsi_options_updater2');
43
  function sfsi_options_updater2()
44
  {
 
45
  if ( !wp_verify_nonce( $_POST['nonce'], "update_step2")) {
46
  echo json_encode(array("wrong_nonce")); exit;
47
  }
@@ -92,6 +104,23 @@ function sfsi_options_updater2()
92
  $sfsi_ytube_user = ($_POST["sfsi_ytube_user"]) ? $_POST["sfsi_ytube_user"] : '';
93
  $sfsi_ytube_chnlid = isset($_POST["sfsi_ytube_chnlid"]) ? sanitize_text_field( $_POST["sfsi_ytube_chnlid"] ): '';
94
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  /*
96
  * Escape custom icons url
97
  */
@@ -161,7 +190,30 @@ function sfsi_options_updater2()
161
  'sfsi_linkedin_recommendBusines'=> sanitize_text_field($sfsi_linkedin_recommendBusines),
162
  'sfsi_linkedin_recommendCompany'=> sanitize_text_field($sfsi_linkedin_recommendCompany),
163
  'sfsi_linkedin_recommendProductId'=> intval($sfsi_linkedin_recommendProductId),
164
- 'sfsi_CustomIcon_links' => $sfsi_CustomIcon_links
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
165
  );
166
 
167
  $option4 = unserialize(get_option('sfsi_section4_options',false));
@@ -292,6 +344,20 @@ function sfsi_options_updater4()
292
 
293
  $sfsi_facebookPage_url = isset($_POST["sfsi_facebookPage_url"]) ? sanitize_text_field( trim($_POST["sfsi_facebookPage_url"])) : '';
294
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
295
  $up_option4=array(
296
  'sfsi_display_counts' => sanitize_text_field($sfsi_display_counts),
297
 
@@ -348,6 +414,21 @@ function sfsi_options_updater4()
348
  'sfsi_instagram_clientid' => sanitize_text_field($sfsi_instagram_clientid),
349
  'sfsi_instagram_appurl' => sanitize_text_field($sfsi_instagram_appurl),
350
  'sfsi_instagram_token' => sanitize_text_field($sfsi_instagram_token),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
351
  );
352
  update_option('sfsi_section4_options', serialize($up_option4));
353
 
@@ -383,13 +464,19 @@ function sfsi_options_updater5()
383
  $sfsi_linkedIn_MouseOverText = isset($_POST["sfsi_linkedIn_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_linkedIn_MouseOverText"] ): '';
384
  $sfsi_pinterest_MouseOverText = isset($_POST["sfsi_pinterest_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_pinterest_MouseOverText"] ): '';
385
  $sfsi_instagram_MouseOverText = isset($_POST["sfsi_instagram_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_instagram_MouseOverText"] ): '';
 
 
 
 
 
 
386
  $sfsi_youtube_MouseOverText = isset($_POST["sfsi_youtube_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_youtube_MouseOverText"] ): '';
387
  if(isset($_POST["sfsi_custom_orders"])){
388
  $sfsi_custom_orders = array();
389
  foreach($_POST["sfsi_custom_orders"] as $index=>$custom_order){
390
  $sfsi_custom_orders[$index] = array();
391
  $sfsi_custom_orders[$index]["order"] = intval($_POST["sfsi_custom_orders"][$index]["order"] );
392
- $sfsi_custom_orders[$index]["ele"] = intval($_POST["sfsi_custom_orders"][$index]["order"] );
393
  }
394
  }
395
 
@@ -403,6 +490,12 @@ function sfsi_options_updater5()
403
  $sfsi_youtubeIcon_order = isset($_POST["sfsi_youtubeIcon_order"]) ? sanitize_text_field( $_POST["sfsi_youtubeIcon_order"] ): '7';
404
  $sfsi_pinterestIcon_order = isset($_POST["sfsi_pinterestIcon_order"]) ? sanitize_text_field( $_POST["sfsi_pinterestIcon_order"] ): '8';
405
  $sfsi_instagramIcon_order = isset($_POST["sfsi_instagramIcon_order"]) ? sanitize_text_field( $_POST["sfsi_instagramIcon_order"] ): '10';
 
 
 
 
 
 
406
  $sfsi_linkedinIcon_order = isset($_POST["sfsi_linkedinIcon_order"]) ? sanitize_text_field( $_POST["sfsi_linkedinIcon_order"] ): '9';
407
  if(isset($_POST["sfsi_custom_MouseOverTexts"])){
408
  $sfsi_custom_MouseOverTexts = array();
@@ -434,6 +527,11 @@ function sfsi_options_updater5()
434
  'sfsi_pinterest_MouseOverText' => sanitize_text_field($sfsi_pinterest_MouseOverText),
435
  'sfsi_youtube_MouseOverText' => sanitize_text_field($sfsi_youtube_MouseOverText),
436
  'sfsi_instagram_MouseOverText' => sanitize_text_field($sfsi_instagram_MouseOverText),
 
 
 
 
 
437
  'sfsi_CustomIcons_order' => $sfsi_custom_orders,
438
  'sfsi_rssIcon_order' => intval($sfsi_rssIcon_order),
439
  'sfsi_emailIcon_order' => intval($sfsi_emailIcon_order),
@@ -444,6 +542,12 @@ function sfsi_options_updater5()
444
  'sfsi_pinterestIcon_order' => intval($sfsi_pinterestIcon_order),
445
  'sfsi_instagramIcon_order' => intval($sfsi_instagramIcon_order),
446
  'sfsi_linkedinIcon_order' => intval($sfsi_linkedinIcon_order),
 
 
 
 
 
 
447
  'sfsi_custom_MouseOverTexts' => $sfsi_custom_MouseOverTexts,
448
  'sfsi_custom_social_hide' => $sfsi_custom_social_hide
449
  );
@@ -699,6 +803,11 @@ function sfsi_getCounts()
699
  'linkedIn_count'=> '',
700
  'youtube_count' => '',
701
  'pin_count' => '',
 
 
 
 
 
702
  'share_count' => ''
703
  );
704
 
@@ -902,7 +1011,12 @@ function sfsi_getCounts()
902
  else
903
  {
904
  $scounts['instagram_count']=$sfsi_section4_options['sfsi_instagram_manualCounts'];
905
- }
 
 
 
 
 
906
  }
907
  return $scounts; exit;
908
  }
9
  }
10
  if(!current_user_can('manage_options')){ echo json_encode(array('res'=>'not allowed'));die(); }
11
 
 
 
12
  $option1= unserialize(get_option('sfsi_section1_options',false));
13
+
14
  $sfsi_rss_display = isset($_POST["sfsi_rss_display"]) ? sanitize_text_field( $_POST["sfsi_rss_display"] ): 'no';
15
  $sfsi_email_display = isset($_POST["sfsi_email_display"]) ? sanitize_text_field( $_POST["sfsi_email_display"] ): 'no';
16
  $sfsi_facebook_display = isset($_POST["sfsi_facebook_display"]) ? sanitize_text_field( $_POST["sfsi_facebook_display"] ): 'no';
18
  $sfsi_google_display = isset($_POST["sfsi_google_display"]) ? sanitize_text_field( $_POST["sfsi_google_display"] ): 'no';
19
  $sfsi_youtube_display = isset($_POST["sfsi_youtube_display"]) ? sanitize_text_field( $_POST["sfsi_youtube_display"] ): 'no';
20
  $sfsi_pinterest_display = isset($_POST["sfsi_pinterest_display"]) ? sanitize_text_field( $_POST["sfsi_pinterest_display"] ): 'no';
21
+ $sfsi_telegram_display = isset($_POST["sfsi_telegram_display"]) ? sanitize_text_field( $_POST["sfsi_telegram_display"] ): 'no';
22
+ $sfsi_vk_display = isset($_POST["sfsi_vk_display"]) ? sanitize_text_field( $_POST["sfsi_vk_display"] ): 'no';
23
+ $sfsi_ok_display = isset($_POST["sfsi_ok_display"]) ? sanitize_text_field( $_POST["sfsi_ok_display"] ): 'no';
24
+ $sfsi_wechat_display = isset($_POST["sfsi_wechat_display"]) ? sanitize_text_field( $_POST["sfsi_wechat_display"] ): 'no';
25
+ $sfsi_weibo_display = isset($_POST["sfsi_weibo_display"]) ? sanitize_text_field( $_POST["sfsi_weibo_display"] ): 'no';
26
+
27
  $sfsi_instagram_display = isset($_POST["sfsi_instagram_display"]) ? sanitize_text_field( $_POST["sfsi_instagram_display"] ): 'no';
28
  $sfsi_linkedin_display = isset($_POST["sfsi_linkedin_display"]) ? sanitize_text_field( $_POST["sfsi_linkedin_display"] ): 'no';
29
  $sfsi_custom_icons = isset($option1['sfsi_custom_files']) ? $option1['sfsi_custom_files'] : '';
35
  'sfsi_google_display' => sanitize_text_field($sfsi_google_display),
36
  'sfsi_youtube_display' => sanitize_text_field($sfsi_youtube_display),
37
  'sfsi_pinterest_display'=> sanitize_text_field($sfsi_pinterest_display),
38
+ 'sfsi_telegram_display' => sanitize_text_field($sfsi_telegram_display),
39
+ 'sfsi_vk_display' => sanitize_text_field($sfsi_vk_display),
40
+ 'sfsi_ok_display' => sanitize_text_field($sfsi_ok_display),
41
+ 'sfsi_wechat_display' => sanitize_text_field($sfsi_wechat_display),
42
+ 'sfsi_weibo_display' => sanitize_text_field($sfsi_weibo_display),
43
+
44
  'sfsi_linkedin_display' => sanitize_text_field($sfsi_linkedin_display),
45
  'sfsi_instagram_display'=> sanitize_text_field($sfsi_instagram_display),
46
  'sfsi_custom_files' => sanitize_text_field($sfsi_custom_icons)
53
  add_action('wp_ajax_updateSrcn2','sfsi_options_updater2');
54
  function sfsi_options_updater2()
55
  {
56
+
57
  if ( !wp_verify_nonce( $_POST['nonce'], "update_step2")) {
58
  echo json_encode(array("wrong_nonce")); exit;
59
  }
104
  $sfsi_ytube_user = ($_POST["sfsi_ytube_user"]) ? $_POST["sfsi_ytube_user"] : '';
105
  $sfsi_ytube_chnlid = isset($_POST["sfsi_ytube_chnlid"]) ? sanitize_text_field( $_POST["sfsi_ytube_chnlid"] ): '';
106
 
107
+
108
+ $sfsi_telegram_page = isset($_POST["sfsi_telegram_page"]) ? sanitize_text_field( $_POST["sfsi_telegram_page"] ): 'no';
109
+ $sfsi_telegram_pageURL = isset($_POST["sfsi_telegram_pageURL"]) ? esc_url( trim($_POST["sfsi_telegram_pageURL"]) ): '';
110
+
111
+ $sfsi_telegram_message = isset($_POST["sfsi_telegram_message"]) ? sanitize_text_field( $_POST["sfsi_telegram_message"]) : '';
112
+ $sfsi_telegram_username = isset($_POST["sfsi_telegram_username"]) ? sanitize_text_field( $_POST["sfsi_telegram_username"] ): '';
113
+
114
+ $sfsi_weibo_page = isset($_POST["sfsi_weibo_page"]) ? sanitize_text_field( $_POST["sfsi_weibo_page"] ): 'no';
115
+ $sfsi_weibo_pageURL = isset($_POST["sfsi_weibo_pageURL"]) ? esc_url( trim($_POST["sfsi_weibo_pageURL"] )): '';
116
+
117
+ $sfsi_vk_page = isset($_POST["sfsi_vk_page"]) ? sanitize_text_field( $_POST["sfsi_vk_page"] ): 'no';
118
+ $sfsi_vk_pageURL = isset($_POST["sfsi_vk_pageURL"]) ? esc_url( trim($_POST["sfsi_vk_pageURL"] )): '';
119
+
120
+ $sfsi_ok_page = isset($_POST["sfsi_ok_page"]) ? sanitize_text_field( $_POST["sfsi_ok_page"] ): 'no';
121
+ $sfsi_ok_pageURL = isset($_POST["sfsi_ok_pageURL"]) ? esc_url( trim($_POST["sfsi_ok_pageURL"] )): '';
122
+
123
+
124
  /*
125
  * Escape custom icons url
126
  */
190
  'sfsi_linkedin_recommendBusines'=> sanitize_text_field($sfsi_linkedin_recommendBusines),
191
  'sfsi_linkedin_recommendCompany'=> sanitize_text_field($sfsi_linkedin_recommendCompany),
192
  'sfsi_linkedin_recommendProductId'=> intval($sfsi_linkedin_recommendProductId),
193
+ 'sfsi_CustomIcon_links' => $sfsi_CustomIcon_links,
194
+
195
+ /* telegram options */
196
+ 'sfsi_telegram_page' => sanitize_text_field($sfsi_telegram_page),
197
+ 'sfsi_telegram_pageURL' => esc_url($sfsi_telegram_pageURL),
198
+
199
+ 'sfsi_telegram_message' => sanitize_text_field($sfsi_telegram_message),
200
+ 'sfsi_telegram_username' => sanitize_text_field($sfsi_telegram_username),
201
+
202
+
203
+ /* weibo options */
204
+ 'sfsi_weibo_page' => sanitize_text_field($sfsi_weibo_page),
205
+ 'sfsi_weibo_pageURL' => esc_url($sfsi_weibo_pageURL),
206
+
207
+
208
+ /* vk options */
209
+ 'sfsi_vk_page' => sanitize_text_field($sfsi_vk_page),
210
+ 'sfsi_vk_pageURL' => esc_url($sfsi_vk_pageURL),
211
+
212
+
213
+ /* ok options */
214
+ 'sfsi_ok_page' => sanitize_text_field($sfsi_ok_page),
215
+ 'sfsi_ok_pageURL' => esc_url($sfsi_ok_pageURL),
216
+
217
  );
218
 
219
  $option4 = unserialize(get_option('sfsi_section4_options',false));
344
 
345
  $sfsi_facebookPage_url = isset($_POST["sfsi_facebookPage_url"]) ? sanitize_text_field( trim($_POST["sfsi_facebookPage_url"])) : '';
346
 
347
+ $sfsi_telegram_countsDisplay = isset($_POST["sfsi_telegram_countsDisplay"]) ? sanitize_text_field( $_POST["sfsi_telegram_countsDisplay"] ): 'no';
348
+ $sfsi_telegram_manualCounts = isset($_POST["sfsi_telegram_manualCounts"]) ? intval( trim($_POST["sfsi_telegram_manualCounts"])) : '';
349
+
350
+ $sfsi_vk_countsDisplay = isset($_POST["sfsi_vk_countsDisplay"]) ? sanitize_text_field( $_POST["sfsi_vk_countsDisplay"] ): 'no';
351
+ $sfsi_vk_manualCounts = isset($_POST["sfsi_vk_manualCounts"]) ? intval( trim($_POST["sfsi_vk_manualCounts"])) : '';
352
+
353
+ $sfsi_ok_countsDisplay = isset($_POST["sfsi_ok_countsDisplay"]) ? sanitize_text_field( $_POST["sfsi_ok_countsDisplay"] ): 'no';
354
+ $sfsi_ok_manualCounts = isset($_POST["sfsi_ok_manualCounts"]) ? intval( trim($_POST["sfsi_ok_manualCounts"])) : '';
355
+
356
+ $sfsi_weibo_countsDisplay = isset($_POST["sfsi_weibo_countsDisplay"]) ? sanitize_text_field( $_POST["sfsi_weibo_countsDisplay"] ): 'no';
357
+ $sfsi_weibo_manualCounts = isset($_POST["sfsi_weibo_manualCounts"]) ? intval( trim($_POST["sfsi_weibo_manualCounts"])) : '';
358
+
359
+ $sfsi_wechat_countsDisplay = isset($_POST["sfsi_wechat_countsDisplay"]) ? sanitize_text_field( $_POST["sfsi_wechat_countsDisplay"] ): 'no';
360
+ $sfsi_wechat_manualCounts = isset($_POST["sfsi_wechat_manualCounts"]) ? intval( trim($_POST["sfsi_wechat_manualCounts"])) : '';
361
  $up_option4=array(
362
  'sfsi_display_counts' => sanitize_text_field($sfsi_display_counts),
363
 
414
  'sfsi_instagram_clientid' => sanitize_text_field($sfsi_instagram_clientid),
415
  'sfsi_instagram_appurl' => sanitize_text_field($sfsi_instagram_appurl),
416
  'sfsi_instagram_token' => sanitize_text_field($sfsi_instagram_token),
417
+
418
+ 'sfsi_telegram_countsDisplay' => sanitize_text_field($sfsi_telegram_countsDisplay),
419
+ 'sfsi_telegram_manualCounts' => intval($sfsi_telegram_manualCounts),
420
+
421
+ 'sfsi_vk_countsDisplay' => sanitize_text_field($sfsi_vk_countsDisplay),
422
+ 'sfsi_vk_manualCounts' => intval($sfsi_vk_manualCounts),
423
+
424
+ 'sfsi_ok_countsDisplay' => sanitize_text_field($sfsi_ok_countsDisplay),
425
+ 'sfsi_ok_manualCounts' => intval($sfsi_ok_manualCounts),
426
+
427
+ 'sfsi_weibo_countsDisplay' => sanitize_text_field($sfsi_weibo_countsDisplay),
428
+ 'sfsi_weibo_manualCounts' => intval($sfsi_weibo_manualCounts),
429
+
430
+ 'sfsi_wechat_countsDisplay' => sanitize_text_field($sfsi_wechat_countsDisplay),
431
+ 'sfsi_wechat_manualCounts' => intval($sfsi_wechat_manualCounts),
432
  );
433
  update_option('sfsi_section4_options', serialize($up_option4));
434
 
464
  $sfsi_linkedIn_MouseOverText = isset($_POST["sfsi_linkedIn_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_linkedIn_MouseOverText"] ): '';
465
  $sfsi_pinterest_MouseOverText = isset($_POST["sfsi_pinterest_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_pinterest_MouseOverText"] ): '';
466
  $sfsi_instagram_MouseOverText = isset($_POST["sfsi_instagram_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_instagram_MouseOverText"] ): '';
467
+ $sfsi_telegram_MouseOverText = isset($_POST["sfsi_telegram_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_telegram_MouseOverText"] ): '';
468
+ $sfsi_vk_MouseOverText = isset($_POST["sfsi_vk_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_vk_MouseOverText"] ): '';
469
+ $sfsi_ok_MouseOverText = isset($_POST["sfsi_ok_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_ok_MouseOverText"] ): '';
470
+ $sfsi_weibo_MouseOverText = isset($_POST["sfsi_weibo_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_weibo_MouseOverText"] ): '';
471
+ $sfsi_wechat_MouseOverText = isset($_POST["sfsi_wechat_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_wechat_MouseOverText"] ): '';
472
+
473
  $sfsi_youtube_MouseOverText = isset($_POST["sfsi_youtube_MouseOverText"]) ? sanitize_text_field( $_POST["sfsi_youtube_MouseOverText"] ): '';
474
  if(isset($_POST["sfsi_custom_orders"])){
475
  $sfsi_custom_orders = array();
476
  foreach($_POST["sfsi_custom_orders"] as $index=>$custom_order){
477
  $sfsi_custom_orders[$index] = array();
478
  $sfsi_custom_orders[$index]["order"] = intval($_POST["sfsi_custom_orders"][$index]["order"] );
479
+ $sfsi_custom_orders[$index]["ele"] = intval($_POST["sfsi_custom_orders"][$index]["ele"] );
480
  }
481
  }
482
 
490
  $sfsi_youtubeIcon_order = isset($_POST["sfsi_youtubeIcon_order"]) ? sanitize_text_field( $_POST["sfsi_youtubeIcon_order"] ): '7';
491
  $sfsi_pinterestIcon_order = isset($_POST["sfsi_pinterestIcon_order"]) ? sanitize_text_field( $_POST["sfsi_pinterestIcon_order"] ): '8';
492
  $sfsi_instagramIcon_order = isset($_POST["sfsi_instagramIcon_order"]) ? sanitize_text_field( $_POST["sfsi_instagramIcon_order"] ): '10';
493
+ $sfsi_telegramIcon_order = isset($_POST["sfsi_telegramIcon_order"]) ? sanitize_text_field( $_POST["sfsi_telegramIcon_order"] ): '11';
494
+ $sfsi_vkIcon_order = isset($_POST["sfsi_vkIcon_order"]) ? sanitize_text_field( $_POST["sfsi_vkIcon_order"] ): '12';
495
+ $sfsi_okIcon_order = isset($_POST["sfsi_okIcon_order"]) ? sanitize_text_field( $_POST["sfsi_okIcon_order"] ): '13';
496
+ $sfsi_weiboIcon_order = isset($_POST["sfsi_weiboIcon_order"]) ? sanitize_text_field( $_POST["sfsi_weiboIcon_order"] ): '14';
497
+ $sfsi_wechatIcon_order = isset($_POST["sfsi_wechatIcon_order"]) ? sanitize_text_field( $_POST["sfsi_wechatIcon_order"] ): '15';
498
+
499
  $sfsi_linkedinIcon_order = isset($_POST["sfsi_linkedinIcon_order"]) ? sanitize_text_field( $_POST["sfsi_linkedinIcon_order"] ): '9';
500
  if(isset($_POST["sfsi_custom_MouseOverTexts"])){
501
  $sfsi_custom_MouseOverTexts = array();
527
  'sfsi_pinterest_MouseOverText' => sanitize_text_field($sfsi_pinterest_MouseOverText),
528
  'sfsi_youtube_MouseOverText' => sanitize_text_field($sfsi_youtube_MouseOverText),
529
  'sfsi_instagram_MouseOverText' => sanitize_text_field($sfsi_instagram_MouseOverText),
530
+ 'sfsi_telegram_MouseOverText' => sanitize_text_field($sfsi_telegram_MouseOverText),
531
+ 'sfsi_vk_MouseOverText' => sanitize_text_field($sfsi_vk_MouseOverText),
532
+ 'sfsi_ok_MouseOverText' => sanitize_text_field($sfsi_ok_MouseOverText),
533
+ 'sfsi_weibo_MouseOverText' => sanitize_text_field($sfsi_weibo_MouseOverText),
534
+ 'sfsi_wechat_MouseOverText' => sanitize_text_field($sfsi_wechat_MouseOverText),
535
  'sfsi_CustomIcons_order' => $sfsi_custom_orders,
536
  'sfsi_rssIcon_order' => intval($sfsi_rssIcon_order),
537
  'sfsi_emailIcon_order' => intval($sfsi_emailIcon_order),
542
  'sfsi_pinterestIcon_order' => intval($sfsi_pinterestIcon_order),
543
  'sfsi_instagramIcon_order' => intval($sfsi_instagramIcon_order),
544
  'sfsi_linkedinIcon_order' => intval($sfsi_linkedinIcon_order),
545
+ 'sfsi_telegramIcon_order' => intval($sfsi_telegramIcon_order),
546
+ 'sfsi_vkIcon_order' => intval($sfsi_vkIcon_order),
547
+ 'sfsi_okIcon_order' => intval($sfsi_okIcon_order),
548
+ 'sfsi_weiboIcon_order' => intval($sfsi_weiboIcon_order),
549
+ 'sfsi_wechatIcon_order' => intval($sfsi_wechatIcon_order),
550
+
551
  'sfsi_custom_MouseOverTexts' => $sfsi_custom_MouseOverTexts,
552
  'sfsi_custom_social_hide' => $sfsi_custom_social_hide
553
  );
803
  'linkedIn_count'=> '',
804
  'youtube_count' => '',
805
  'pin_count' => '',
806
+ 'telegram_count'=> '',
807
+ 'vk_count' => '',
808
+ 'ok_count' => '',
809
+ 'weibo_count' => '',
810
+ 'wechat_count' => '',
811
  'share_count' => ''
812
  );
813
 
1011
  else
1012
  {
1013
  $scounts['instagram_count']=$sfsi_section4_options['sfsi_instagram_manualCounts'];
1014
+ }
1015
+ $scounts['telegram_count']=isset($sfsi_section4_options['sfsi_telegram_manualCounts'])?$sfsi_section4_options['sfsi_telegram_manualCounts']:'0';
1016
+ $scounts['vk_count']=isset($sfsi_section4_options['sfsi_vk_manualCounts'])?$sfsi_section4_options['sfsi_vk_manualCounts']:'0';
1017
+ $scounts['ok_count']=isset($sfsi_section4_options['sfsi_ok_manualCounts'])?$sfsi_section4_options['sfsi_ok_manualCounts']:'0';
1018
+ $scounts['weibo_count']=isset($sfsi_section4_options['sfsi_weibo_manualCounts'])?$sfsi_section4_options['sfsi_weibo_manualCounts']:'0';
1019
+ $scounts['wechat_count']=isset($sfsi_section4_options['sfsi_wechat_manualCounts'])?$sfsi_section4_options['sfsi_wechat_manualCounts']:'0';
1020
  }
1021
  return $scounts; exit;
1022
  }
libs/controllers/sfsi_frontpopUp.php CHANGED
@@ -178,7 +178,13 @@ function sfsi_FrontPopupDiv()
178
  $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
179
  $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
180
  $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
181
- $sfsi_section5['sfsi_instagramIcon_order']=>'instagram',
 
 
 
 
 
 
182
  ) ;
183
  $icons=array();
184
  $elements=array();
@@ -245,6 +251,16 @@ function sfsi_FrontPopupDiv()
245
  break;
246
  case 'instagram' : if($sfsi_section1_options['sfsi_instagram_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('instagram',1)."</li>";
247
  break;
 
 
 
 
 
 
 
 
 
 
248
  case 'custom' : $icons.= "<li>". sfsi_prepairIcons($icon_arry['ele'],1)."</li>";
249
  break;
250
  endswitch;
178
  $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
179
  $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
180
  $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
181
+ $sfsi_section5['sfsi_instagramIcon_order']=>'instagram',
182
+ $sfsi_section5['sfsi_telegramIcon_order']=>'telegram',
183
+ $sfsi_section5['sfsi_vkIcon_order']=>'vk',
184
+ $sfsi_section5['sfsi_okIcon_order']=>'ok',
185
+ $sfsi_section5['sfsi_weiboIcon_order']=>'weibo',
186
+ $sfsi_section5['sfsi_wechatIcon_order']=>'wechat',
187
+
188
  ) ;
189
  $icons=array();
190
  $elements=array();
251
  break;
252
  case 'instagram' : if($sfsi_section1_options['sfsi_instagram_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('instagram',1)."</li>";
253
  break;
254
+ case 'telegram' : if($sfsi_section1_options['sfsi_telegram_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('telegram',1)."</li>";
255
+ break;
256
+ case 'vk' : if($sfsi_section1_options['sfsi_vk_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('vk',1)."</li>";
257
+ break;
258
+ case 'ok' : if($sfsi_section1_options['sfsi_ok_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('ok',1)."</li>";
259
+ break;
260
+ case 'weibo' : if($sfsi_section1_options['sfsi_weibo_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('weibo',1)."</li>";
261
+ break;
262
+ case 'wechat' : if($sfsi_section1_options['sfsi_wechat_display']=='yes') $icons.= "<li>".sfsi_prepairIcons('wechat',1)."</li>";
263
+ break;
264
  case 'custom' : $icons.= "<li>". sfsi_prepairIcons($icon_arry['ele'],1)."</li>";
265
  break;
266
  endswitch;
libs/controllers/sfsi_iconsUpload_contoller.php CHANGED
@@ -232,6 +232,46 @@ function sfsi_Iamdone()
232
  {
233
  $return .= '<span class="row_17_10 instagram_section" style="background-position:-526px 0;"></span>';
234
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
235
  die($return);
236
  }
237
 
232
  {
233
  $return .= '<span class="row_17_10 instagram_section" style="background-position:-526px 0;"></span>';
234
  }
235
+ if(get_option("telegram_skin"))
236
+ {
237
+ $icon = get_option("telegram_skin");
238
+ $return .= '<span class="row_17_10 telegram_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
239
+ }else
240
+ {
241
+ $return .= '<span class="row_17_10 telegram_section" style="background-position:-773px 0;"></span>';
242
+ }
243
+ if(get_option("vk_skin"))
244
+ {
245
+ $icon = get_option("vk_skin");
246
+ $return .= '<span class="row_17_10 vk_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
247
+ }else
248
+ {
249
+ $return .= '<span class="row_17_10 vk_section" style="background-position:-838px 0;"></span>';
250
+ }
251
+ if(get_option("ok_skin"))
252
+ {
253
+ $icon = get_option("ok_skin");
254
+ $return .= '<span class="row_17_10 ok_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
255
+ }else
256
+ {
257
+ $return .= '<span class="row_17_10 ok_section" style="background-position:-909px 0;"></span>';
258
+ }
259
+ if(get_option("weibo_skin"))
260
+ {
261
+ $icon = get_option("weibo_skin");
262
+ $return .= '<span class="row_17_10 weibo_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
263
+ }else
264
+ {
265
+ $return .= '<span class="row_17_10 weibo_section" style="background-position:-977px 0;"></span>';
266
+ }
267
+ if(get_option("wechat_skin"))
268
+ {
269
+ $icon = get_option("wechat_skin");
270
+ $return .= '<span class="row_17_10 wechat_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
271
+ }else
272
+ {
273
+ $return .= '<span class="row_1_18 wechat_section"></span>';
274
+ }
275
  die($return);
276
  }
277
 
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -200,17 +200,7 @@ function sfsi_FBlike($permalink,$show_count)
200
  $send = 'false';
201
  $width = 180;
202
  $fb_like_html = '';
203
- /*$fb_like_html = '<fb:like href="'.$permalink.'" width="'.$width.'" send="'.$send.'" showfaces="false" ';
204
- if($show_count==1) {
205
- $fb_like_html .= 'layout="button_count"';
206
- } else {
207
- $fb_like_html .= 'layout="button"';
208
- }
209
- $fb_like_html .= ' action="like"></fb:like>';*/
210
- /*
211
- $fb_like_html .= '<div class="fb-like" data-href="'.$permalink.'" width="'.$width.'" send="'.$send.'" ';
212
- $fb_like_html .= ($show_count==1) ? ' data-layout="button_count"' : ' data-layout="button"';
213
- $fb_like_html .= ' data-action="like" data-show-faces="false" data-share="true"></div>';*/
214
  $option6 = unserialize(get_option('sfsi_section6_options',false));
215
  if($option6['sfsi_rectfbshare'] == 'yes' && $option6['sfsi_rectfb'] == 'yes')
216
  {
@@ -284,15 +274,6 @@ function sfsi_footer_script()
284
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
285
  fjs.parentNode.insertBefore(js, fjs);
286
  }(document, 'script', 'facebook-jssdk'));</script>
287
- <!--<div id="fb-root"></div>
288
- <script>
289
- (function(d, s, id) {
290
- var js, fjs = d.getElementsByTagName(s)[0];
291
- if (d.getElementById(id)) return;
292
- js = d.createElement(s); js.id = id;
293
- js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&appId=1425108201100352&version=v2.0";
294
- fjs.parentNode.insertBefore(js, fjs);
295
- }(document, 'script', 'facebook-jssdk'));</script>-->
296
  <?php
297
  }
298
  if(
@@ -301,7 +282,6 @@ function sfsi_footer_script()
301
  ($sfsi_section6['sfsi_rectgp'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes")
302
  )
303
  { ?>
304
- <!--google share and like and e js -->
305
  <script type="text/javascript">
306
  window.___gcfg = {
307
  lang: 'en-US'
@@ -313,7 +293,6 @@ function sfsi_footer_script()
313
  })();
314
  </script>
315
 
316
- <!-- google share -->
317
  <script type="text/javascript">
318
  (function() {
319
  var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
@@ -325,7 +304,6 @@ function sfsi_footer_script()
325
  }
326
  if($sfsi_section1['sfsi_linkedin_display']=="yes")
327
  { ?>
328
- <!-- linkedIn share and follow js -->
329
  <script src="//platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
330
  <?php
331
  }
@@ -342,14 +320,39 @@ function sfsi_footer_script()
342
  <?php
343
  }
344
 
 
 
 
 
 
 
 
 
 
 
345
  /* activate footer credit link */
346
  if(get_option('sfsi_footer_sec')=="yes")
347
  {
348
  if(!is_admin())
349
- {
350
- $footer_link='<div class="sfsi_footerLnk" style="margin: 0 auto;z-index:1000; absolute; text-align: center;"><a href="https://www.ultimatelysocial.com/?utm_source=usmi_settings_page&utm_campaign=credit_link_to_homepage&utm_medium=banner" target="_new">Social media & sharing icons</a> powered by UltimatelySocial';
 
 
 
 
 
 
 
 
 
351
  $footer_link.="</div>";
352
  echo $footer_link;
 
 
 
 
 
 
353
  }
354
  }
355
 
200
  $send = 'false';
201
  $width = 180;
202
  $fb_like_html = '';
203
+
 
 
 
 
 
 
 
 
 
 
204
  $option6 = unserialize(get_option('sfsi_section6_options',false));
205
  if($option6['sfsi_rectfbshare'] == 'yes' && $option6['sfsi_rectfb'] == 'yes')
206
  {
274
  js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.5";
275
  fjs.parentNode.insertBefore(js, fjs);
276
  }(document, 'script', 'facebook-jssdk'));</script>
 
 
 
 
 
 
 
 
 
277
  <?php
278
  }
279
  if(
282
  ($sfsi_section6['sfsi_rectgp'] == "yes" && $sfsi_section6['sfsi_show_Onposts'] == "yes")
283
  )
284
  { ?>
 
285
  <script type="text/javascript">
286
  window.___gcfg = {
287
  lang: 'en-US'
293
  })();
294
  </script>
295
 
 
296
  <script type="text/javascript">
297
  (function() {
298
  var po = document.createElement('script'); po.type = 'text/javascript'; po.async = true;
304
  }
305
  if($sfsi_section1['sfsi_linkedin_display']=="yes")
306
  { ?>
 
307
  <script src="//platform.linkedin.com/in.js" type="text/javascript">lang: en_US</script>
308
  <?php
309
  }
320
  <?php
321
  }
322
 
323
+ //Murt Code get domain
324
+ function getDomain($url){
325
+ $pieces = parse_url($url);
326
+ $domain = isset($pieces['host']) ? $pieces['host'] : '';
327
+ if(preg_match('/(?P<domain>[a-z0-9][a-z0-9\-]{1,63}\.[a-z\.]{2,6})$/i', $domain, $regs)){
328
+ return $regs['domain'];
329
+ }
330
+ return FALSE;
331
+ }
332
+
333
  /* activate footer credit link */
334
  if(get_option('sfsi_footer_sec')=="yes")
335
  {
336
  if(!is_admin())
337
+ {
338
+ //$footer_link='<div class="sfsiplus_footerLnk" style="margin: 0 auto;z-index:1000; absolute; text-align: center;">Social media & sharing icons powered by <a href="https://wordpress.org/plugins/ultimate-social-media-icons/" target="_new">UltimatelySocial</a> ';
339
+
340
+ $domain = getDomain(get_site_url());
341
+ $firstCharacter = substr($domain, 0, 1);
342
+ if(in_array($firstCharacter ,array('a','b','c','d','e','f','g','h','i','j','k','l','m'))){
343
+ $footer_link='<div class="sfsiplus_footerLnk" style="margin: 0 auto;z-index:1000; absolute; text-align: center;">Social media & sharing icons powered by <a href="https://www.ultimatelysocial.com/?utm_source=usmplus_settings_page&utm_campaign=credit_link_to_homepage&utm_medium=banner" target="_new">UltimatelySocial </a>';
344
+ $footer_link.="</div>";
345
+ echo $footer_link;
346
+ }else if(in_array($firstCharacter ,array('n','o','p','q','r','s'))){
347
+ $footer_link='<div class="sfsiplus_footerLnk" style="margin: 0 auto;z-index:1000; absolute; text-align: center;"><a href="https://www.ultimatelysocial.com/usm-premium/" target="_new">Wordpress Social Share Plugin </a> powered by Ultimatelysocial';
348
  $footer_link.="</div>";
349
  echo $footer_link;
350
+ }else{
351
+ $footer_link='<div class="sfsiplus_footerLnk" style="margin: 0 auto;z-index:1000; absolute; text-align: center;"><a href="https://www.ultimatelysocial.com/?utm_source=usmplus_settings_page&utm_campaign=credit_link_to_homepage&utm_medium=banner" target="_new">Social Share Buttons and Icons</a> powered by Ultimatelysocial';
352
+ $footer_link.="</div>";
353
+ echo $footer_link;
354
+ }
355
+
356
  }
357
  }
358
 
libs/sfsi_Init_JqueryCss.php CHANGED
@@ -73,7 +73,12 @@ function theme_front_enqueue_script()
73
 
74
  wp_register_script('SFSIjqueryrandom-shuffle', SFSI_PLUGURL . 'js/shuffle/random-shuffle-min.js', array('jquery'),'',true);
75
  wp_enqueue_script("SFSIjqueryrandom-shuffle");
 
76
 
 
 
 
 
77
  wp_register_script('SFSICustomJs', SFSI_PLUGURL . 'js/custom.js', array('jquery'),'',true);
78
  wp_enqueue_script("SFSICustomJs");
79
  /* end cusotm js */
73
 
74
  wp_register_script('SFSIjqueryrandom-shuffle', SFSI_PLUGURL . 'js/shuffle/random-shuffle-min.js', array('jquery'),'',true);
75
  wp_enqueue_script("SFSIjqueryrandom-shuffle");
76
+ $option1= unserialize(get_option('sfsi_section1_options',false));
77
 
78
+ if(isset($option1["sfsi_wechat_display"]) && $option1["sfsi_wechat_display"]=="yes" ){
79
+ wp_register_script('SFSIPLUSqrcode.js', SFSI_PLUGURL . 'js/qrcode.min.js', '', '', true);
80
+ wp_enqueue_script("SFSIPLUSqrcode.js");
81
+ }
82
  wp_register_script('SFSICustomJs', SFSI_PLUGURL . 'js/custom.js', array('jquery'),'',true);
83
  wp_enqueue_script("SFSICustomJs");
84
  /* end cusotm js */
libs/sfsi_install_uninstall.php CHANGED
@@ -1,62 +1,52 @@
1
  <?php
2
  function sfsi_update_plugin()
3
  {
4
- if($feed_id = get_option('sfsi_feed_id'))
5
- {
6
- if(is_numeric($feed_id))
7
- {
8
  $sfsiId = SFSI_updateFeedUrl();
9
  update_option('sfsi_feed_id', sanitize_text_field($sfsiId->feed_id));
10
  update_option('sfsi_redirect_url', esc_url($sfsiId->redirect_url));
11
  }
12
  }
13
-
14
  //Install version
15
- update_option("sfsi_pluginVersion", "2.20");
16
 
17
- if(!get_option('sfsi_serverphpVersionnotification'))
18
- {
19
  add_option("sfsi_serverphpVersionnotification", "yes");
20
  }
21
- if(!get_option('sfsi_footer_sec'))
22
- {
23
- add_option('sfsi_footer_sec','no');
24
  }
25
  /* show notification premium plugin */
26
- if(!get_option('show_premium_notification'))
27
- {
28
  add_option("show_premium_notification", "yes");
29
  }
30
 
31
- if(!get_option('show_premium_cumulative_count_notification'))
32
- {
33
  add_option("show_premium_cumulative_count_notification", "yes");
34
- }
35
 
36
  /*show notification*/
37
- if(!get_option('show_notification'))
38
- {
39
  add_option("show_notification", "yes");
40
  }
41
  /*show notification*/
42
- if(!get_option('show_new_notification'))
43
- {
44
  add_option("show_new_notification", "no");
45
  }
46
-
47
  /* show mobile notification */
48
- if(!get_option('show_mobile_notification'))
49
- {
50
  add_option("show_mobile_notification", "yes");
51
  }
52
-
53
- if(!get_option('sfsi_languageNotice'))
54
- {
55
  add_option("sfsi_languageNotice", "yes");
56
  }
57
-
58
  /*Extra important options*/
59
- if(!get_option('sfsi_instagram_sf_count')){
60
 
61
  $sfsi_instagram_sf_count = array(
62
  "date" => strtotime(date("Y-m-d")),
@@ -64,125 +54,261 @@ function sfsi_update_plugin()
64
  "sfsi_instagram_count" => ""
65
  );
66
  add_option('sfsi_instagram_sf_count', serialize($sfsi_instagram_sf_count));
67
- }else{
68
- $sfsi_instagram_sf_count = unserialize(get_option('sfsi_instagram_sf_count',false));
69
- $sfsi_instagram_sf_count["date_sf"] = $sfsi_instagram_sf_count["date"];
70
- $sfsi_instagram_sf_count["date_instagram"] = $sfsi_instagram_sf_count["date"];
71
- update_option('sfsi_instagram_sf_count',$sfsi_instagram_sf_count);
72
  }
73
 
74
- $option4 = unserialize(get_option('sfsi_section4_options',false));
75
 
76
- if(isset($option4) && !empty($option4))
77
- {
78
- if(!isset($option4['sfsi_instagram_clientid'])){
79
  $option4['sfsi_instagram_clientid'] = '';
80
  $option4['sfsi_instagram_appurl'] = '';
81
- $option4['sfsi_instagram_token'] = '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  }
83
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
84
  /*Youtube Channelid settings*/
85
- if(!isset($option4['sfsi_youtube_channelId'])){
86
- $option4['sfsi_youtube_channelId'] = '';
87
  }
88
  }
89
 
90
- $option3 = unserialize(get_option('sfsi_section3_options',false));
91
-
92
- if(isset($option3) && !empty($option3))
93
- {
94
- if(!isset($option3['sfsi_mouseOver_effect_type'])){
95
  $option3['sfsi_mouseOver_effect_type'] = 'same_icons';
96
  }
97
 
98
- if(!isset($option3['mouseover_other_icons_transition_effect'])){
99
  $option3['mouseover_other_icons_transition_effect'] = 'flip';
100
  }
101
  }
102
 
103
- $option2 = unserialize(get_option('sfsi_section2_options',false));
104
-
105
- if(isset($option2) && !empty($option2))
106
- {
107
- if(!isset($option2['sfsi_youtubeusernameorid'])){
108
-
109
  $option2['sfsi_youtubeusernameorid'] = '';
110
 
111
- if(isset($option4['sfsi_youtubeusernameorid']) && !empty($option4['sfsi_youtubeusernameorid'])){
112
  $option2['sfsi_youtubeusernameorid'] = $option4['sfsi_youtubeusernameorid'];
113
  }
114
  }
115
-
116
- if(!isset($option2['sfsi_ytube_chnlid'])){
117
-
118
  $option2['sfsi_ytube_chnlid'] = '';
119
-
120
- if(isset($option4['sfsi_ytube_chnlid']) && !empty($option4['sfsi_ytube_chnlid'])){
121
  $option2['sfsi_ytube_chnlid'] = $option4['sfsi_ytube_chnlid'];
122
- }
123
- }
 
 
 
 
 
 
 
 
 
 
 
 
124
  }
125
 
126
  update_option('sfsi_section4_options', serialize($option4));
127
  update_option('sfsi_section2_options', serialize($option2));
128
-
129
 
130
- $option7 = unserialize(get_option('sfsi_section7_options',false));
 
131
  $option7 = isset($option7) && !empty($option7) ? $option7 : array();
132
 
133
- if(!isset($option7['sfsi_show_popup'])) { $option7['sfsi_show_popup'] = 'no'; }
134
- if(!isset($option7['sfsi_popup_text'])) { $option7['sfsi_popup_text'] = 'Enjoy this blog? Please spread the word :)'; }
135
- if(!isset($option7['sfsi_popup_background_color'])) { $option7['sfsi_popup_background_color'] = '#eff7f7'; }
136
- if(!isset($option7['sfsi_popup_border_color'])) { $option7['sfsi_popup_border_color'] = '#f3faf2'; }
137
- if(!isset($option7['sfsi_popup_border_thickness'])) { $option7['sfsi_popup_border_thickness'] = '1'; }
138
- if(!isset($option7['sfsi_popup_border_shadow'])) { $option7['sfsi_popup_border_shadow'] = 'yes'; }
139
- if(!isset($option7['sfsi_popup_font'])) { $option7['sfsi_popup_font'] = 'Helvetica,Arial,sans-serif';}
140
- if(!isset($option7['sfsi_popup_fontSize'])) { $option7['sfsi_popup_fontSize'] = '30';}
141
- if(!isset($option7['sfsi_popup_fontStyle'])) { $option7['sfsi_popup_fontStyle'] = 'normal';}
142
- if(!isset($option7['sfsi_popup_fontColor'])) { $option7['sfsi_popup_fontColor'] = '#000000';}
143
- if(!isset($option7['sfsi_Show_popupOn'])) { $option7['sfsi_Show_popupOn'] = 'none';}
144
- if(!isset($option7['sfsi_Show_popupOn_PageIDs'])) { $option7['sfsi_Show_popupOn_PageIDs'] = '';}
145
- if(!isset($option7['sfsi_Shown_popupOnceTime'])) { $option7['sfsi_Shown_popupOnceTime'] = '';}
146
- if(!isset($option7['sfsi_Shown_popuplimitPerUserTime'])) { $option7['sfsi_Shown_popuplimitPerUserTime'] = '';}
147
-
148
- update_option('sfsi_section7_options', serialize($option7));
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
 
150
  /* subscription form */
151
- $option8 = unserialize(get_option('sfsi_section8_options',false));
152
  $option8 = isset($option8) && !empty($option8) ? $option8 : array();
153
 
154
- if(!isset($option8['sfsi_form_adjustment'])) { $option8['sfsi_form_adjustment'] = 'yes';}
155
- if(!isset($option8['sfsi_form_height'])) { $option8['sfsi_form_height'] = '180';}
156
- if(!isset($option8['sfsi_form_width'])) { $option8['sfsi_form_width'] = '230';}
157
- if(!isset($option8['sfsi_form_border'])) { $option8['sfsi_form_border'] = 'yes';}
158
- if(!isset($option8['sfsi_form_border_thickness'])) { $option8['sfsi_form_border_thickness'] = '1';}
159
- if(!isset($option8['sfsi_form_border_color'])) { $option8['sfsi_form_border_color'] = '#b5b5b5';}
160
- if(!isset($option8['sfsi_form_background'])) { $option8['sfsi_form_background'] = '#ffffff';} //
161
- if(!isset($option8['sfsi_form_heading_text'])) { $option8['sfsi_form_heading_text'] = 'Get new posts by email';}
162
- if(!isset($option8['sfsi_form_heading_font'])) { $option8['sfsi_form_heading_font'] = 'Helvetica,Arial,sans-serif';}
163
- if(!isset($option8['sfsi_form_heading_fontstyle'])) { $option8['sfsi_form_heading_fontstyle'] = 'bold';}
164
- if(!isset($option8['sfsi_form_heading_fontcolor'])) { $option8['sfsi_form_heading_fontcolor'] = '#000000';}
165
- if(!isset($option8['sfsi_form_heading_fontsize'])) { $option8['sfsi_form_heading_fontsize'] = '16';}
166
- if(!isset($option8['sfsi_form_heading_fontalign'])) { $option8['sfsi_form_heading_fontalign'] = 'center';}
167
- if(!isset($option8['sfsi_form_field_text'])) { $option8['sfsi_form_field_text'] = 'Enter your email';}
168
- if(!isset($option8['sfsi_form_field_font'])) { $option8['sfsi_form_field_font'] = 'Helvetica,Arial,sans-serif';}
169
- if(!isset($option8['sfsi_form_field_fontstyle'])) { $option8['sfsi_form_field_fontstyle'] = 'normal';}
170
- if(!isset($option8['sfsi_form_field_fontcolor'])) { $option8['sfsi_form_field_fontcolor'] = '#000000';}
171
- if(!isset($option8['sfsi_form_field_fontsize'])) { $option8['sfsi_form_field_fontsize'] = '14';}
172
- if(!isset($option8['sfsi_form_field_fontalign'])) { $option8['sfsi_form_field_fontalign'] = 'center';}
173
- if(!isset($option8['sfsi_form_button_text'])) { $option8['sfsi_form_button_text'] = 'Subscribe';}
174
- if(!isset($option8['sfsi_form_button_font'])) { $option8['sfsi_form_button_font'] = 'Helvetica,Arial,sans-serif';}
175
- if(!isset($option8['sfsi_form_button_fontstyle'])) { $option8['sfsi_form_button_fontstyle'] = 'bold';}
176
- if(!isset($option8['sfsi_form_button_fontcolor'])) { $option8['sfsi_form_button_fontcolor'] = '#000000';}
177
- if(!isset($option8['sfsi_form_button_fontsize'])) { $option8['sfsi_form_button_fontsize'] = '16';}
178
- if(!isset($option8['sfsi_form_button_fontalign'])) { $option8['sfsi_form_button_fontalign'] = 'center';}
179
- if(!isset($option8['sfsi_form_button_background'])) { $option8['sfsi_form_button_background'] = '#dedede';}
180
-
181
- update_option('sfsi_section8_options', serialize($option8));
182
-
183
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
184
  /*Float Icon setting*/
185
- $option5 = unserialize(get_option('sfsi_section5_options',false));
186
 
187
  $sfsi_show_via_widget = 'no';
188
 
@@ -198,75 +324,86 @@ function sfsi_update_plugin()
198
  $sfsi_show_via_afterposts = 'no';
199
 
200
 
201
- if(isset($option5) && !empty($option5))
202
- {
203
- if(isset($option5['sfsi_icons_float'])){
204
  $sfsi_icons_float = $option5['sfsi_icons_float'];
205
  unset($option5['sfsi_icons_float']);
206
  }
207
 
208
- if(isset($option5['sfsi_icons_floatPosition'])){
209
  $sfsi_icons_floatPosition = $option5['sfsi_icons_floatPosition'];
210
- unset($option5['sfsi_icons_floatPosition']);
211
  }
212
 
213
- if(isset($option5['sfsi_icons_floatMargin_top'])){
214
  $sfsi_icons_floatMargin_top = $option5['sfsi_icons_floatMargin_top'];
215
- unset($option5['sfsi_icons_floatMargin_top']);
216
  }
217
 
218
- if(isset($option5['sfsi_icons_floatMargin_bottom'])){
219
  $sfsi_icons_floatMargin_bottom = $option5['sfsi_icons_floatMargin_bottom'];
220
  unset($option5['sfsi_icons_floatMargin_bottom']);
221
  }
222
 
223
- if(isset($option5['sfsi_icons_floatMargin_left'])){
224
  $sfsi_icons_floatMargin_left = $option5['sfsi_icons_floatMargin_left'];
225
- unset($option5['sfsi_icons_floatMargin_left']);
226
  }
227
 
228
- if(isset($option5['sfsi_icons_floatMargin_right'])){
229
  $sfsi_icons_floatMargin_right = $option5['sfsi_icons_floatMargin_right'];
230
- unset($option5['sfsi_icons_floatMargin_right']);
231
  }
232
 
233
- if(isset($option5['sfsi_disable_floaticons'])){
234
  $sfsi_disable_floaticons = $option5['sfsi_disable_floaticons'];
235
- unset($option5['sfsi_disable_floaticons']);
236
  }
237
 
238
- if(isset($option5['sfsi_custom_social_hide'])){
239
  $option5['sfsi_custom_social_hide'] = 'no';
240
  }
241
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
 
243
- if(!isset($option5['sfsi_pplus_icons_suppress_errors'])){
244
-
245
- $sup_errors = "no";
246
- $sup_errors_banner_dismissed = true;
247
 
248
- if(defined('WP_DEBUG') && false != WP_DEBUG){
249
- $sup_errors = 'yes';
250
- $sup_errors_banner_dismissed = false;
251
- }
252
 
253
  $option5['sfsi_pplus_icons_suppress_errors'] = $sup_errors;
254
- update_option('sfsi_pplus_error_reporting_notice_dismissed',$sup_errors_banner_dismissed);
255
- }
256
  }
257
 
258
- update_option('sfsi_section5_options', serialize($option5));
259
 
260
- $option6= unserialize(get_option('sfsi_section6_options',false));
261
 
262
- if(isset($option6) && !empty($option6))
263
- {
264
- if(!isset($option6['sfsi_rectpinit']))
265
- {
266
  $option6['sfsi_rectpinit'] = 'no';
267
  }
268
- if(!isset($option6['sfsi_rectfbshare']))
269
- {
270
  $option6['sfsi_rectfbshare'] = 'no';
271
  }
272
 
@@ -275,341 +412,410 @@ function sfsi_update_plugin()
275
 
276
 
277
  // Setting default values for Question 3
278
- $option9 = unserialize(get_option('sfsi_section9_options',false));
279
  $option9 = isset($option9) && !empty($option9) ? $option9 : array();
280
 
281
- if(!isset($option9['sfsi_show_via_widget'])){
282
-
283
- if(class_exists('Sfsi_Widget')){
284
- $widegtObj = new Sfsi_Widget();
285
- $sfsi_show_via_widget = is_active_widget(false,false,$widegtObj->id_base,true) ? "yes" : "no";
286
- }
287
  $option9['sfsi_show_via_widget'] = $sfsi_show_via_widget;
288
  }
289
 
290
- if(!isset($option9['sfsi_show_via_shortcode'])) { $option9['sfsi_show_via_shortcode'] = $sfsi_show_via_shortcode;}
291
- if(!isset($option9['sfsi_show_via_afterposts'])) { $option9['sfsi_show_via_afterposts'] = $sfsi_show_via_afterposts;}
292
- if(!isset($option9['sfsi_icons_float'])) { $option9['sfsi_icons_float'] = $sfsi_icons_float;}
293
- if(!isset($option9['sfsi_icons_floatPosition'])) { $option9['sfsi_icons_floatPosition'] = $sfsi_icons_floatPosition;}
294
- if(!isset($option9['sfsi_icons_floatMargin_top'])) { $option9['sfsi_icons_floatMargin_top'] = $sfsi_icons_floatMargin_top;}
295
- if(!isset($option9['sfsi_icons_floatMargin_bottom'])){ $option9['sfsi_icons_floatMargin_bottom'] = $sfsi_icons_floatMargin_bottom;}
296
- if(!isset($option9['sfsi_icons_floatMargin_left'])) { $option9['sfsi_icons_floatMargin_left'] = $sfsi_icons_floatMargin_left;}
297
- if(!isset($option9['sfsi_icons_floatMargin_right'])) { $option9['sfsi_icons_floatMargin_right'] = $sfsi_icons_floatMargin_right;}
298
- if(!isset($option9['sfsi_disable_floaticons'])) { $option9['sfsi_disable_floaticons'] = $sfsi_disable_floaticons;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
299
 
300
  update_option('sfsi_section9_options', serialize($option9));
301
 
302
  // Add this removed in version 2.0.2, removing values from section 1 & section 6 & setting notice display value
303
- sfsi_was_displaying_addthis();
304
  }
305
 
306
  function sfsi_activate_plugin()
307
  {
 
 
 
308
  add_option('sfsi_plugin_do_activation_redirect', true);
309
-
310
  /* check for CURL enable at server */
311
  curl_enable_notice();
312
-
313
- if(!get_option('show_new_notification'))
314
- {
315
  add_option("show_new_notification", "yes");
316
  }
317
 
318
- if(!get_option('show_premium_cumulative_count_notification'))
319
- {
320
  add_option("show_premium_cumulative_count_notification", "yes");
321
  }
322
 
323
- $option1 = unserialize(get_option('sfsi_section1_options',false));
324
-
325
- if(!isset($option1) || empty($option1)){
326
-
327
- $options1=array('sfsi_rss_display'=>'yes',
328
- 'sfsi_email_display'=>'yes',
329
- 'sfsi_facebook_display'=>'yes',
330
- 'sfsi_twitter_display'=>'yes',
331
- 'sfsi_google_display'=>'no',
332
- 'sfsi_pinterest_display'=>'no',
333
- 'sfsi_instagram_display'=>'no',
334
- 'sfsi_linkedin_display'=>'no',
335
- 'sfsi_youtube_display'=>'no',
336
- 'sfsi_custom_display'=>'',
337
- 'sfsi_custom_files'=>''
 
 
 
 
 
 
338
  );
339
  add_option('sfsi_section1_options', serialize($options1));
340
  }
341
-
342
- if(get_option('sfsi_feed_id') && get_option('sfsi_redirect_url'))
343
- {
344
  $sffeeds["feed_id"] = sanitize_text_field(get_option('sfsi_feed_id'));
345
  $sffeeds["redirect_url"] = esc_url(get_option('sfsi_redirect_url'));
346
  $sffeeds = (object)$sffeeds;
347
- }
348
- else
349
- {
350
  $sffeeds = SFSI_getFeedUrl();
351
  }
352
-
353
- $addThisDismissed = get_option('sfsi_addThis_icon_removal_notice_dismissed',false);
354
-
355
- if(!isset($addThisDismissed)){
356
- update_option('sfsi_addThis_icon_removal_notice_dismissed',true);
357
- }
358
-
359
- $option2 = unserialize(get_option('sfsi_section2_options',false));
360
-
361
- if(!isset($option2) || empty($option2)){
362
-
363
- /* Links and icons options */
364
- $options2=array('sfsi_rss_url'=>sfsi_get_bloginfo('rss2_url'),
365
- 'sfsi_rss_icons' =>'email',
366
- 'sfsi_email_url' =>$sffeeds->redirect_url,
367
- 'sfsi_facebookPage_option' =>'no',
368
- 'sfsi_facebookPage_url' =>'',
369
- 'sfsi_facebookLike_option' =>'yes',
370
- 'sfsi_facebookShare_option' =>'yes',
371
- 'sfsi_twitter_followme' =>'no',
372
- 'sfsi_twitter_followUserName'=>'',
373
- 'sfsi_twitter_aboutPage' =>'yes',
374
- 'sfsi_twitter_page' =>'no',
375
- 'sfsi_twitter_pageURL' =>'',
376
- 'sfsi_twitter_aboutPageText' =>'Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name',
377
- 'sfsi_google_page' =>'no',
378
- 'sfsi_google_pageURL' =>'',
379
- 'sfsi_googleLike_option' =>'yes',
380
- 'sfsi_googleShare_option' =>'yes',
381
- 'sfsi_youtube_pageUrl' =>'',
382
- 'sfsi_youtube_page' =>'no',
 
383
  'sfsi_youtubeusernameorid' => '',
384
  'sfsi_ytube_chnlid' => '',
385
- 'sfsi_youtube_follow' =>'no',
386
- 'sfsi_pinterest_page' =>'no',
387
- 'sfsi_pinterest_pageUrl' =>'',
388
- 'sfsi_pinterest_pingBlog' =>'',
389
- 'sfsi_instagram_page' =>'no',
390
- 'sfsi_instagram_pageUrl' =>'',
391
- 'sfsi_linkedin_page' =>'no',
392
- 'sfsi_linkedin_pageURL' =>'',
393
- 'sfsi_linkedin_follow' =>'no',
394
- 'sfsi_linkedin_followCompany'=>'',
395
- 'sfsi_linkedin_SharePage' =>'yes',
396
- 'sfsi_linkedin_recommendBusines' =>'no',
397
- 'sfsi_linkedin_recommendCompany' =>'',
398
- 'sfsi_linkedin_recommendProductId'=>'',
399
- 'sfsi_CustomIcon_links' =>''
400
- );
 
 
 
 
 
 
 
 
 
 
 
401
  add_option('sfsi_section2_options', serialize($options2));
402
  }
403
-
404
- $option3 = unserialize(get_option('sfsi_section3_options',false));
405
 
406
- if(!isset($option3) || empty($option3)){
 
 
407
 
408
  /* Design and animation option */
409
  $options3 = array(
410
 
411
- 'sfsi_mouseOver' =>'no',
412
- 'sfsi_mouseOver_effect' =>'fade_in',
413
  'sfsi_mouseOver_effect_type' => 'same_icons',
414
  'mouseover_other_icons_transition_effect' => 'flip',
415
- 'sfsi_shuffle_icons' =>'no',
416
- 'sfsi_shuffle_Firstload' =>'no',
417
- 'sfsi_shuffle_interval' =>'no',
418
- 'sfsi_shuffle_intervalTime' =>'',
419
- 'sfsi_actvite_theme' =>'default'
420
  );
421
  add_option('sfsi_section3_options', serialize($options3));
422
  }
423
-
424
- $option4 = unserialize(get_option('sfsi_section4_options',false));
425
-
426
- if(!isset($option4) || empty($option4)){
427
-
428
- /* display counts options */
429
- $options4=array('sfsi_display_counts'=>'no',
430
- 'sfsi_email_countsDisplay'=>'no',
431
- 'sfsi_email_countsFrom'=>'source',
432
- 'sfsi_email_manualCounts'=>'20',
433
- 'sfsi_rss_countsDisplay'=>'no',
434
- 'sfsi_rss_manualCounts'=>'20',
435
- 'sfsi_facebook_PageLink'=>'',
436
- 'sfsi_facebook_countsDisplay'=>'no',
437
- 'sfsi_facebook_countsFrom'=>'manual',
438
- 'sfsi_facebook_manualCounts'=>'20',
439
- 'sfsi_twitter_countsDisplay'=>'no',
440
- 'sfsi_twitter_countsFrom'=>'manual',
441
- 'sfsi_twitter_manualCounts'=>'20',
442
- 'sfsi_google_api_key'=>'',
443
- 'sfsi_google_countsDisplay'=>'no',
444
- 'sfsi_google_countsFrom'=>'manual',
445
- 'sfsi_google_manualCounts'=>'20',
446
- 'sfsi_linkedIn_countsDisplay'=>'no',
447
- 'sfsi_linkedIn_countsFrom'=>'manual',
448
- 'sfsi_linkedIn_manualCounts'=>'20',
449
- 'ln_api_key'=>'',
450
- 'ln_secret_key'=>'',
451
- 'ln_oAuth_user_token'=>'',
452
- 'ln_company'=>'',
453
- 'sfsi_youtubeusernameorid'=>'name',
454
- 'sfsi_youtube_user'=>'',
455
- 'sfsi_youtube_channelId' =>'',
456
- 'sfsi_ytube_chnlid'=>'',
457
- 'sfsi_youtube_countsDisplay'=>'no',
458
- 'sfsi_youtube_countsFrom'=>'manual',
459
- 'sfsi_youtube_manualCounts'=>'20',
460
- 'sfsi_pinterest_countsDisplay'=>'no',
461
- 'sfsi_pinterest_countsFrom'=>'manual',
462
- 'sfsi_pinterest_manualCounts'=>'20',
463
- 'sfsi_pinterest_user'=>'',
464
- 'sfsi_pinterest_board'=>'',
465
-
466
- 'sfsi_instagram_countsFrom'=>'manual',
467
- 'sfsi_instagram_countsDisplay'=>'no',
468
- 'sfsi_instagram_manualCounts'=>'20',
469
-
470
- 'sfsi_instagram_User'=>'',
471
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472
  );
473
  add_option('sfsi_section4_options', serialize($options4));
474
  }
475
-
476
- $option5 = unserialize(get_option('sfsi_section5_options',false));
477
-
478
- if(!isset($option5) || empty($option5)){
479
-
480
- $options5=array(
481
- 'sfsi_icons_size' =>'40',
482
- 'sfsi_icons_spacing' =>'5',
483
- 'sfsi_icons_Alignment' =>'left',
484
- 'sfsi_icons_perRow' =>'5',
485
- 'sfsi_icons_ClickPageOpen' =>'yes',
486
- 'sfsi_icons_suppress_errors'=>'no',
487
- 'sfsi_icons_float' =>'no',
488
- 'sfsi_disable_floaticons' =>'no',
489
- 'sfsi_icons_floatPosition' =>'center-right',
490
- 'sfsi_icons_floatMargin_top'=>'',
491
- 'sfsi_icons_floatMargin_bottom'=>'',
492
- 'sfsi_icons_floatMargin_left'=>'',
493
- 'sfsi_icons_floatMargin_right'=>'',
494
- 'sfsi_icons_stick' =>'no',
495
- 'sfsi_rssIcon_order' =>'1',
496
- 'sfsi_emailIcon_order' =>'2',
497
- 'sfsi_facebookIcon_order' =>'3',
498
- 'sfsi_twitterIcon_order' =>'4',
499
- 'sfsi_youtubeIcon_order' =>'5',
500
- 'sfsi_pinterestIcon_order' =>'7',
501
- 'sfsi_linkedinIcon_order' =>'8',
502
- 'sfsi_instagramIcon_order' =>'9',
503
- 'sfsi_googleIcon_order' =>'10',
504
- 'sfsi_CustomIcons_order' =>'',
505
- 'sfsi_rss_MouseOverText' =>'RSS',
506
- 'sfsi_email_MouseOverText' =>'Follow by Email',
507
- 'sfsi_twitter_MouseOverText'=>'Twitter',
508
- 'sfsi_facebook_MouseOverText' =>'Facebook',
509
- 'sfsi_google_MouseOverText' =>'Google+',
510
- 'sfsi_linkedIn_MouseOverText' =>'LinkedIn',
511
- 'sfsi_pinterest_MouseOverText'=>'Pinterest',
512
- 'sfsi_instagram_MouseOverText'=>'Instagram',
513
- 'sfsi_youtube_MouseOverText' =>'YouTube',
514
- 'sfsi_custom_MouseOverTexts' =>'',
515
- 'sfsi_custom_social_hide' =>'no'
516
- );
517
- update_option('sfsi_section5_options', serialize($options5));
518
- }
519
-
520
- $option6 = unserialize(get_option('sfsi_section6_options',false));
521
-
522
- if(!isset($option6) || empty($option6)){
523
-
524
- /* post options */
525
- $options6=array('sfsi_show_Onposts'=>'no',
526
- 'sfsi_show_Onbottom'=>'no',
527
- 'sfsi_icons_postPositon'=>'source',
528
- 'sfsi_icons_alignment'=>'center-right',
529
- 'sfsi_rss_countsDisplay'=>'no',
530
- 'sfsi_textBefor_icons'=>'Please follow and like us:',
531
- 'sfsi_icons_DisplayCounts'=>'no',
532
- 'sfsi_rectsub'=>'yes',
533
- 'sfsi_rectfb'=>'yes',
534
- 'sfsi_rectgp'=>'yes',
535
- 'sfsi_rectshr'=>'no',
536
- 'sfsi_recttwtr'=>'yes',
537
- 'sfsi_rectpinit'=>'yes',
538
- 'sfsi_rectfbshare'=>'yes'
 
 
 
 
 
 
 
 
 
 
 
 
539
  );
540
  add_option('sfsi_section6_options', serialize($options6));
541
- }
542
-
543
- $option7 = unserialize(get_option('sfsi_section7_options',false));
544
-
545
- if(!isset($option7) || empty($option7)){
546
 
547
  /* icons pop options */
548
- $options7=array('sfsi_show_popup'=>'no',
549
- 'sfsi_popup_text'=>'Enjoy this blog? Please spread the word :)',
550
- 'sfsi_popup_background_color'=>'#eff7f7',
551
- 'sfsi_popup_border_color'=>'#f3faf2',
552
- 'sfsi_popup_border_thickness'=>'1',
553
- 'sfsi_popup_border_shadow'=>'yes',
554
- 'sfsi_popup_font'=>'Helvetica,Arial,sans-serif',
555
- 'sfsi_popup_fontSize'=>'30',
556
- 'sfsi_popup_fontStyle'=>'normal',
557
- 'sfsi_popup_fontColor'=>'#000000',
558
- 'sfsi_Show_popupOn'=>'none',
559
- 'sfsi_Show_popupOn_PageIDs'=>'',
560
- 'sfsi_Shown_pop'=>'ETscroll',
561
- 'sfsi_Shown_popupOnceTime'=>'',
562
- 'sfsi_Shown_popuplimitPerUserTime'=>'',
 
563
  );
564
  add_option('sfsi_section7_options', serialize($options7));
565
  }
566
-
567
- $option8 = unserialize(get_option('sfsi_section8_options',false));
568
-
569
- if(!isset($option8) || empty($option8)){
570
 
571
  /* Question 8 */
572
- $options8=array(
573
  'sfsi_form_adjustment' => 'yes',
574
  'sfsi_form_height' => '180',
575
  'sfsi_form_width' => '230',
576
  'sfsi_form_border' => 'no',
577
- 'sfsi_form_border_thickness'=> '1',
578
  'sfsi_form_border_color' => '#b5b5b5',
579
  'sfsi_form_background' => '#ffffff',
580
-
581
  'sfsi_form_heading_text' => 'Get new posts by email',
582
  'sfsi_form_heading_font' => 'Helvetica,Arial,sans-serif',
583
- 'sfsi_form_heading_fontstyle'=> 'bold',
584
- 'sfsi_form_heading_fontcolor'=> '#000000',
585
- 'sfsi_form_heading_fontsize'=> '16',
586
- 'sfsi_form_heading_fontalign'=> 'center',
587
-
588
  'sfsi_form_field_text' => 'Subscribe',
589
  'sfsi_form_field_font' => 'Helvetica,Arial,sans-serif',
590
  'sfsi_form_field_fontstyle' => 'normal',
591
  'sfsi_form_field_fontcolor' => '#000000',
592
  'sfsi_form_field_fontsize' => '14',
593
  'sfsi_form_field_fontalign' => 'center',
594
-
595
  'sfsi_form_button_text' => 'Subscribe',
596
  'sfsi_form_button_font' => 'Helvetica,Arial,sans-serif',
597
- 'sfsi_form_button_fontstyle'=> 'bold',
598
- 'sfsi_form_button_fontcolor'=> '#000000',
599
  'sfsi_form_button_fontsize' => '16',
600
- 'sfsi_form_button_fontalign'=> 'center',
601
- 'sfsi_form_button_background'=> '#dedede',
602
  );
603
  add_option('sfsi_section8_options', serialize($options8));
604
  }
605
 
606
- $option9 = unserialize(get_option('sfsi_section9_options',false));
607
-
608
- if(!isset($option9) || empty($option9)){
609
 
610
  /* Question 3->Where shall they be displayed? */
611
- $options9 =array(
612
-
613
  'sfsi_show_via_widget' => 'no',
614
 
615
  'sfsi_icons_float' => 'no',
@@ -617,7 +823,7 @@ function sfsi_activate_plugin()
617
  'sfsi_icons_floatMargin_top' => '',
618
  'sfsi_icons_floatMargin_bottom' => '',
619
  'sfsi_icons_floatMargin_left' => '',
620
- 'sfsi_icons_floatMargin_right' => '',
621
  'sfsi_disable_floaticons' => 'no',
622
 
623
  'sfsi_show_via_shortcode' => 'no',
@@ -628,23 +834,23 @@ function sfsi_activate_plugin()
628
  }
629
 
630
  /*Some additional option added*/
631
- update_option('sfsi_feed_id',sanitize_text_field($sffeeds->feed_id));
632
- update_option('sfsi_redirect_url',esc_url($sffeeds->redirect_url));
633
- add_option('sfsi_installDate',date('Y-m-d h:i:s'));
634
- add_option('sfsi_RatingDiv','no');
635
- add_option('sfsi_footer_sec','no');
636
  update_option('sfsi_activate', 1);
637
-
638
  /*Changes in option 2*/
639
- $get_option2 = unserialize(get_option('sfsi_section2_options',false));
640
 
641
  $get_option2['sfsi_email_url'] = $sffeeds->redirect_url;
642
  update_option('sfsi_section2_options', serialize($get_option2));
643
-
644
  /*Activation Setup for (specificfeed)*/
645
  sfsi_setUpfeeds($sffeeds->feed_id);
646
- sfsi_updateFeedPing('N',$sffeeds->feed_id);
647
-
648
  /*Extra important options*/
649
  $sfsi_instagram_sf_count = array(
650
  "date_sf" => strtotime(date("Y-m-d")),
@@ -654,10 +860,10 @@ function sfsi_activate_plugin()
654
  );
655
  add_option('sfsi_instagram_sf_count', serialize($sfsi_instagram_sf_count));
656
 
657
- $error_banner = get_option('sfsi_error_reporting_notice_dismissed',false);
658
 
659
- if(!$error_banner){
660
- update_option('sfsi_error_reporting_notice_dismissed',true);
661
  }
662
  }
663
  /* end function */
@@ -667,14 +873,14 @@ function sfsi_activate_plugin()
667
  /* deactivate plugin */
668
  function sfsi_deactivate_plugin()
669
  {
670
- global $wpdb;
671
- sfsi_updateFeedPing('Y',sanitize_text_field(get_option('sfsi_feed_id')));
672
  }
673
  /* end function */
674
 
675
- function sfsi_updateFeedPing($status,$feed_id)
676
  {
677
- $curl = curl_init();
678
  curl_setopt_array($curl, array(
679
  CURLOPT_RETURNTRANSFER => 1,
680
  CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/pingfeed',
@@ -685,14 +891,14 @@ function sfsi_updateFeedPing($status,$feed_id)
685
  'status' => $status
686
  )
687
  ));
688
- // Send the request & save response to $resp
689
  $resp = curl_exec($curl);
690
- $resp=json_decode($resp);
691
  curl_close($curl);
692
  }
693
  /* unistall plugin function */
694
  function sfsi_Unistall_plugin()
695
- {
696
  global $wpdb;
697
  /* Delete option for which icons to display */
698
  delete_option('sfsi_section1_options');
@@ -703,7 +909,7 @@ function sfsi_Unistall_plugin()
703
  delete_option('sfsi_section6_options');
704
  delete_option('sfsi_section7_options');
705
  delete_option('sfsi_section8_options');
706
- delete_option('sfsi_section9_options');
707
  delete_option('sfsi_feed_id');
708
  delete_option('sfsi_redirect_url');
709
  delete_option('sfsi_footer_sec');
@@ -712,17 +918,17 @@ function sfsi_Unistall_plugin()
712
  delete_option('sfsi_verificatiom_code');
713
  delete_option("sfsi_curlErrorNotices");
714
  delete_option("sfsi_curlErrorMessage");
715
- delete_option("sfsi_RatingDiv");
716
- delete_option("sfsi_languageNotice");
717
- delete_option("sfsi_instagram_sf_count");
718
- delete_option("sfsi_installDate");
719
-
720
- delete_option("adding_tags");
721
- delete_option("show_notification_plugin");
722
- delete_option("show_premium_notification");
723
- delete_option("show_mobile_notification");
724
- delete_option("show_notification");
725
- delete_option("show_new_notification");
726
  delete_option('sfsi_serverphpVersionnotification');
727
  delete_option("show_premium_cumulative_count_notification");
728
 
@@ -736,28 +942,42 @@ function sfsi_Unistall_plugin()
736
  /* check CUrl */
737
  function curl_enable_notice()
738
  {
739
- if(!function_exists('curl_init')) {
740
- echo '<div class="error"><p> Error: It seems that CURL is disabled on your server. Please contact your server administrator to install / enable CURL.</p></div>'; die;
 
741
  }
742
  }
743
-
744
  /* add admin menus */
745
  function sfsi_admin_menu()
746
  {
747
- add_menu_page('Ultimate Social Media Icons', 'Ultimate Social Media Icons', 'administrator','sfsi-options','sfsi_options_page',plugins_url( 'images/logo.png' , dirname(__FILE__) ));
748
- //add_submenu_page('sfsi-options', 'Subscription Options', 'Settings','administrator', 'sfsi-options', 'sfsi_options_page');
749
- //add_submenu_page('sfsi-options', 'Specific About Us', 'About','administrator', 'sfsi-about', 'sfsi_about_page');
 
 
 
 
 
 
 
750
  }
751
- function sfsi_options_page(){ include SFSI_DOCROOT . '/views/sfsi_options_view.php'; } /* end function */
752
- function sfsi_about_page(){ include SFSI_DOCROOT . '/views/sfsi_aboutus.php'; } /* end function */
753
- if ( is_admin() ){
 
 
 
 
 
 
754
  add_action('admin_menu', 'sfsi_admin_menu');
755
  }
756
- /* fetch rss url from specificfeeds */
757
  function SFSI_getFeedUrl()
758
  {
759
- $curl = curl_init();
760
-
761
  curl_setopt_array($curl, array(
762
  CURLOPT_RETURNTRANSFER => 1,
763
  CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/plugin_setup',
@@ -772,22 +992,22 @@ function SFSI_getFeedUrl()
772
  ));
773
  // Send the request & save response to $resp
774
  $resp = curl_exec($curl);
775
- if(curl_errno($curl))
776
- {
777
  update_option("sfsi_curlErrorNotices", "yes");
778
  update_option("sfsi_curlErrorMessage", curl_errno($curl));
779
  }
780
  $resp = json_decode($resp);
781
  curl_close($curl);
782
-
783
  $feed_url = stripslashes_deep($resp->redirect_url);
784
- return $resp;exit;
 
785
  }
786
- /* fetch rss url from specificfeeds on */
787
  function SFSI_updateFeedUrl()
788
  {
789
- $curl = curl_init();
790
-
791
  curl_setopt_array($curl, array(
792
  CURLOPT_RETURNTRANSFER => 1,
793
  CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/updateFeedPlugin',
@@ -804,95 +1024,94 @@ function SFSI_updateFeedUrl()
804
  $resp = curl_exec($curl);
805
  $resp = json_decode($resp);
806
  curl_close($curl);
807
-
808
  $feed_url = stripslashes_deep($resp->redirect_url);
809
- return $resp;exit;
 
810
  }
811
  /* add sf tags */
812
  function sfsi_setUpfeeds($feed_id)
813
  {
814
- $curl = curl_init();
815
  curl_setopt_array($curl, array(
816
  CURLOPT_RETURNTRANSFER => 1,
817
- CURLOPT_URL => 'http://www.specificfeeds.com/rssegtcrons/download_rssmorefeed_data_single/'.$feed_id."/Y",
818
  CURLOPT_USERAGENT => 'sf rss request',
819
- CURLOPT_POST => 0
820
  ));
821
  $resp = curl_exec($curl);
822
- curl_close($curl);
823
  }
824
  /* admin notice if wp_head is missing in active theme */
825
- function sfsi_check_wp_head() {
826
-
 
827
  $template_directory = get_template_directory();
828
  $header = $template_directory . '/header.php';
829
-
830
  if (is_file($header)) {
831
-
832
  $search_header = "wp_head";
833
  $file_lines = @file($header);
834
- $foind_header=0;
835
- foreach ($file_lines as $line)
836
- {
837
  $searchCount = substr_count($line, $search_header);
838
- if ($searchCount > 0)
839
- {
840
  return true;
841
  }
842
  }
843
-
844
- $path=pathinfo($_SERVER['REQUEST_URI']);
845
- if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-options")
846
- {
847
  $currentTheme = wp_get_theme();
848
-
849
- if(isset($currentTheme) && !empty($currentTheme) && $currentTheme->get( 'Name' ) != "Customizr"){
850
  echo "<div class=\"error\" >" . "<p> Error : Please fix your theme to make plugins work correctly: Go to the <a href=\"theme-editor.php\">Theme Editor</a> and insert <code>&lt;?php wp_head(); ?&gt;</code> just before the <code>&lt;/head&gt;</code> line of your theme's <code>header.php</code> file." . "</p></div>";
851
  }
852
- }
853
  }
854
  }
855
  /* admin notice if wp_footer is missing in active theme */
856
- function sfsi_check_wp_footer() {
 
857
  $template_directory = get_template_directory();
858
  $footer = $template_directory . '/footer.php';
859
-
860
  if (is_file($footer)) {
861
  $search_string = "wp_footer";
862
  $file_lines = @file($footer);
863
-
864
  foreach ($file_lines as $line) {
865
  $searchCount = substr_count($line, $search_string);
866
  if ($searchCount > 0) {
867
  return true;
868
  }
869
  }
870
- $path=pathinfo($_SERVER['REQUEST_URI']);
871
-
872
- if($path['basename']=="themes.php" || $path['basename']=="theme-editor.php" || $path['basename']=="admin.php?page=sfsi-options")
873
- {
874
- echo "<div class=\"error\" >" . "<p>Error : Please fix your theme to make plugins work correctly: Go to the <a href=\"theme-editor.php\">Theme Editor</a> and insert <code>&lt;?php wp_footer(); ?&gt;</code> as the first line of your theme's <code>footer.php</code> file. " . "</p></div>";
875
- }
876
  }
877
  }
878
  /* admin notice for first time installation */
879
- function sfsi_activation_msg(){
 
880
 
881
  global $wp_version;
882
-
883
- if(get_option('sfsi_activate',false)==1)
884
- {
885
- echo "<div class=\"updated\" >" . "<p>Thank you for installing the <b>Ultimate Social Media Icons</b> Plugin. Please go to the <a href=\"admin.php?page=sfsi-options\">plugin's settings page </a> to configure it. </p></div>"; update_option('sfsi_activate',0);
886
- }
887
-
888
- $path=pathinfo($_SERVER['REQUEST_URI']);
889
-
890
- update_option('sfsi_activate',0);
891
-
892
- if($wp_version<3.5 && $path['basename']=="admin.php?page=sfsi-options")
893
- {
894
- echo "<div class=\"update-nag\" >" . "<p ><b>You're using an old Wordpress version, which may cause several of your plugins to not work correctly. Please upgrade</b></p></div>";
895
- }
896
  }
897
  /* admin notice for first time installation */
898
  function sfsi_rating_msg()
@@ -902,100 +1121,106 @@ function sfsi_rating_msg()
902
  $display_date = date('Y-m-d h:i:s');
903
  $datetime1 = new DateTime($install_date);
904
  $datetime2 = new DateTime($display_date);
905
- $diff_inrval = round(($datetime2->format('U') - $datetime1->format('U')) / (60*60*24));
906
-
907
- if($diff_inrval >= 30 && "no" == get_option('sfsi_RatingDiv'))
908
- {
909
- ?>
910
- <style type="text/css">
911
- .plg-rating-dismiss:before {
912
- background: none;
913
- color: #72777c;
914
- content: "\f153";
915
- display: block;
916
- font: normal 16px/20px dashicons;
917
- speak: none;
918
- height: 20px;
919
- text-align: center;
920
- width: 20px;
921
- -webkit-font-smoothing: antialiased;
922
- -moz-osx-font-smoothing: grayscale;
923
- }
924
- .plg-rating-dismiss{
925
- position: absolute;
926
- top: 0;
927
- right: 15px;
928
- border: none;
929
- margin: 0;
930
- padding: 9px;
931
- background: none;
932
- color: #72777c;
933
- cursor: pointer;
934
- }
935
- </style>
936
- <div class="sfwp_fivestar notice notice-success">
937
- <p>You've been using the Ultimate Social Media Plugin for more than 30 days. Great! If you're happy, could you please do us a BIG favor and let us know ONE thing we can improve in it?</p>
938
- <ul>
939
- <li><a href="https://wordpress.org/support/plugin/ultimate-social-media-icons#new-topic-0" target="_new" title="Yes, that's fair, let me give feedback!">Yes, let me give feedback!</a></li>
940
- <li><a target="_new" href="https://wordpress.org/support/plugin/ultimate-social-media-icons/reviews/?filter=5">No clue, let me give a 5-star rating instead</a></li>
941
- <li><a href="javascript:void(0);" class="sfsiHideRating" title="I already did">I already did (don't show this again)</a></li>
942
- </ul>
943
- <button type="button" class="plg-rating-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
944
- </div>
945
- <script>
946
-
947
- jQuery( document ).ready(function( $ ) {
948
-
949
- var sel1 = jQuery('.sfsiHideRating');
950
- var sel2 = jQuery('.plg-rating-dismiss');
951
-
952
- function sfsi_hide_rating(element){
953
-
954
- element.on("click",function(event){
955
-
956
- event.stopImmediatePropagation();
957
-
958
- var data = {'action':'sfsi_hideRating' , 'nonce':'<?php echo wp_create_nonce('sfsi_hideRating'); ?>'};
959
-
960
- jQuery.ajax({
961
- url: "<?php echo admin_url( 'admin-ajax.php' ); ?>",
962
- type: "post",
963
- data: data,
964
- dataType: "json",
965
- async: !0,
966
- success: function(e)
967
- {
968
- if (e=="success") {
969
- jQuery('.sfwp_fivestar').slideUp('slow');
970
- }
971
- }
972
- });
973
- });
974
-
975
- }
976
-
977
- sfsi_hide_rating(sel1);
978
- sfsi_hide_rating(sel2);
979
 
980
- });
981
- </script>
982
-
983
- <?php
984
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
985
  }
986
 
987
- add_action('wp_ajax_sfsi_hideRating','sfsi_HideRatingDiv', 0);
988
  function sfsi_HideRatingDiv()
989
  {
990
- if ( !wp_verify_nonce( $_POST['nonce'], "sfsi_hideRating")) {
991
- echo json_encode(array('res'=>"error")); exit;
 
 
 
 
 
992
  }
993
- if(!current_user_can('manage_options')){ echo json_encode(array('res'=>'not allowed'));die(); }
994
 
995
 
996
-
997
- update_option('sfsi_RatingDiv','yes');
998
- echo json_encode(array("success")); exit;
 
999
  }
1000
  /* add all admin message */
1001
  add_action('admin_notices', 'sfsi_activation_msg');
@@ -1003,86 +1228,83 @@ add_action('admin_notices', 'sfsi_rating_msg');
1003
  add_action('admin_notices', 'sfsi_check_wp_head');
1004
  add_action('admin_notices', 'sfsi_check_wp_footer');
1005
 
1006
- function sfsi_pingVendor( $post_id )
1007
  {
1008
- global $wp,$wpdb;
1009
  // If this is just a revision, don't send the email.
1010
- if ( wp_is_post_revision( $post_id ) )
1011
  return;
1012
- $post_data=get_post($post_id,ARRAY_A);
1013
- if($post_data['post_status']=='publish' && $post_data['post_type']=='post') :
1014
- $categories = wp_get_post_categories($post_data['ID']);
1015
- $cats='';
1016
- $total=count($categories);
1017
- $count=1;
1018
- foreach($categories as $c)
1019
- {
1020
- $cat_data = get_category( $c );
1021
- if($count==$total)
1022
- {
1023
- $cats.=$cat_data->name;
1024
- }
1025
- else
1026
- {
1027
- $cats.=$cat_data->name.',';
1028
  }
1029
- $count++;
1030
- }
1031
- $postto_array = array(
1032
- 'feed_id' => sanitize_text_field(get_option('sfsi_feed_id')),
1033
- 'title' => $post_data['post_title'],
1034
- 'description'=> $post_data['post_content'],
1035
- 'link' => $post_data['guid'],
1036
- 'author' => get_the_author_meta('user_login', $post_data['post_author']),
1037
- 'category' => $cats,
1038
- 'pubDate' => $post_data['post_modified'],
1039
- 'rssurl' => sfsi_get_bloginfo('rss2_url')
1040
- );
1041
- $curl = curl_init();
1042
-
1043
- curl_setopt_array($curl, array(
1044
- CURLOPT_RETURNTRANSFER => 1,
1045
- CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/addpostdata ',
1046
- CURLOPT_USERAGENT => 'sf rss request',
1047
- CURLOPT_POST => 1,
1048
- CURLOPT_POSTFIELDS => $postto_array
1049
- ));
1050
- // Send the request & save response to $resp
1051
- $resp = curl_exec($curl);
1052
- $resp=json_decode($resp);
1053
- curl_close($curl);
1054
-
1055
- return true;
1056
  endif;
1057
  }
1058
- add_action( 'save_post', 'sfsi_pingVendor' );
1059
 
1060
- function sfsi_was_displaying_addthis(){
 
1061
 
1062
  $isDismissed = true;
1063
 
1064
- $sfsi_section1 = unserialize(get_option('sfsi_section1_options',false));
1065
- $sfsi_section6 = unserialize(get_option('sfsi_section6_options',false));
1066
 
1067
- $sfsi_addThiswasDisplayed_section1 = isset($sfsi_section1['sfsi_share_display']) && 'yes'== sanitize_text_field($sfsi_section1['sfsi_share_display']);
1068
 
1069
- $sfsi_addThiswasDisplayed_section6 = isset($sfsi_section6['sfsi_rectshr']) && 'yes'== sanitize_text_field($sfsi_section6['sfsi_rectshr']);
1070
 
1071
  $isDisplayed = $sfsi_addThiswasDisplayed_section1 || $sfsi_addThiswasDisplayed_section6;
1072
 
1073
  // If icon was displayed
1074
  $isDismissed = false != $isDisplayed ? false : true;
1075
 
1076
- update_option('sfsi_addThis_icon_removal_notice_dismissed',$isDismissed);
1077
 
1078
- if($sfsi_addThiswasDisplayed_section1){
1079
  unset($sfsi_section1['sfsi_share_display']);
1080
- update_option('sfsi_section1_options', serialize($sfsi_section1) );
1081
  }
1082
 
1083
- if($sfsi_addThiswasDisplayed_section6){
1084
  unset($sfsi_section6['sfsi_rectshr']);
1085
- update_option('sfsi_section6_options', serialize($sfsi_section6) );
1086
  }
1087
- }
1088
- ?>
1
  <?php
2
  function sfsi_update_plugin()
3
  {
4
+ if ($feed_id = get_option('sfsi_feed_id')) {
5
+ if (is_numeric($feed_id)) {
 
 
6
  $sfsiId = SFSI_updateFeedUrl();
7
  update_option('sfsi_feed_id', sanitize_text_field($sfsiId->feed_id));
8
  update_option('sfsi_redirect_url', esc_url($sfsiId->redirect_url));
9
  }
10
  }
11
+
12
  //Install version
13
+ update_option("sfsi_pluginVersion", "2.22");
14
 
15
+ if (!get_option('sfsi_serverphpVersionnotification')) {
 
16
  add_option("sfsi_serverphpVersionnotification", "yes");
17
  }
18
+ if (!get_option('sfsi_footer_sec')) {
19
+ add_option('sfsi_footer_sec', 'no');
 
20
  }
21
  /* show notification premium plugin */
22
+ if (!get_option('show_premium_notification')) {
 
23
  add_option("show_premium_notification", "yes");
24
  }
25
 
26
+ if (!get_option('show_premium_cumulative_count_notification')) {
 
27
  add_option("show_premium_cumulative_count_notification", "yes");
28
+ }
29
 
30
  /*show notification*/
31
+ if (!get_option('show_notification')) {
 
32
  add_option("show_notification", "yes");
33
  }
34
  /*show notification*/
35
+ if (!get_option('show_new_notification')) {
 
36
  add_option("show_new_notification", "no");
37
  }
38
+
39
  /* show mobile notification */
40
+ if (!get_option('show_mobile_notification')) {
 
41
  add_option("show_mobile_notification", "yes");
42
  }
43
+
44
+ if (!get_option('sfsi_languageNotice')) {
 
45
  add_option("sfsi_languageNotice", "yes");
46
  }
47
+
48
  /*Extra important options*/
49
+ if (!get_option('sfsi_instagram_sf_count')) {
50
 
51
  $sfsi_instagram_sf_count = array(
52
  "date" => strtotime(date("Y-m-d")),
54
  "sfsi_instagram_count" => ""
55
  );
56
  add_option('sfsi_instagram_sf_count', serialize($sfsi_instagram_sf_count));
57
+ } else {
58
+ $sfsi_instagram_sf_count = unserialize(get_option('sfsi_instagram_sf_count', false));
59
+ $sfsi_instagram_sf_count["date_sf"] = isset($sfsi_instagram_sf_count["date"])?$sfsi_instagram_sf_count["date"]:'';
60
+ $sfsi_instagram_sf_count["date_instagram"] = isset($sfsi_instagram_sf_count["date"])?$sfsi_instagram_sf_count["date"]:'';
61
+ update_option('sfsi_instagram_sf_count', $sfsi_instagram_sf_count);
62
  }
63
 
64
+ $option4 = unserialize(get_option('sfsi_section4_options', false));
65
 
66
+ if (isset($option4) && !empty($option4)) {
67
+ if (!isset($option4['sfsi_instagram_clientid'])) {
 
68
  $option4['sfsi_instagram_clientid'] = '';
69
  $option4['sfsi_instagram_appurl'] = '';
70
+ $option4['sfsi_instagram_token'] = '';
71
+ }
72
+ if (!isset($option4['sfsi_telegram_countsDisplay'])) {
73
+ $option4['sfsi_telegram_countsDisplay'] = "no";
74
+ }
75
+ if (!isset($option4['sfsi_telegram_countsFrom'])) {
76
+ $option4['sfsi_telegram_countsFrom'] = "manual";
77
+ }
78
+ if (!isset($option4['sfsi_telegram_manualCounts'])) {
79
+ $option4['sfsi_telegram_manualCounts'] = "20";
80
+ }
81
+
82
+ if (!isset($option4['sfsi_vk_countsDisplay'])) {
83
+ $option4['sfsi_vk_countsDisplay'] = "no";
84
+ }
85
+ if (!isset($option4['sfsi_vk_countsFrom'])) {
86
+ $option4['sfsi_vk_countsFrom'] = "manual";
87
+ }
88
+ if (!isset($option4['sfsi_vk_manualCounts'])) {
89
+ $option4['sfsi_vk_manualCounts'] = "20";
90
  }
91
 
92
+ if (!isset($option4['sfsi_ok_countsDisplay'])) {
93
+ $option4['sfsi_ok_countsDisplay'] = "no";
94
+ }
95
+ if (!isset($option4['sfsi_ok_countsFrom'])) {
96
+ $option4['sfsi_ok_countsFrom'] = "manual";
97
+ }
98
+ if (!isset($option4['sfsi_ok_manualCounts'])) {
99
+ $option4['sfsi_ok_manualCounts'] = "20";
100
+ }
101
+
102
+ if (!isset($option4['sfsi_weibo_countsDisplay'])) {
103
+ $option4['sfsi_weibo_countsDisplay'] = "no";
104
+ }
105
+ if (!isset($option4['sfsi_weibo_countsFrom'])) {
106
+ $option4['sfsi_weibo_countsFrom'] = "manual";
107
+ }
108
+ if (!isset($option4['sfsi_weibo_manualCounts'])) {
109
+ $option4['sfsi_weibo_manualCounts'] = "20";
110
+ }
111
+ if (!isset($option4['sfsi_wechat_countsDisplay'])) {
112
+ $option4['sfsi_wechat_countsDisplay'] = "no";
113
+ }
114
+ if (!isset($option4['sfsi_wechat_countsFrom'])) {
115
+ $option4['sfsi_wechat_countsFrom'] = "manual";
116
+ }
117
+ if (!isset($option4['sfsi_wechat_manualCounts'])) {
118
+ $option4['sfsi_wechat_manualCounts'] = "20";
119
+ }
120
  /*Youtube Channelid settings*/
121
+ if (!isset($option4['sfsi_youtube_channelId'])) {
122
+ $option4['sfsi_youtube_channelId'] = '';
123
  }
124
  }
125
 
126
+ $option3 = unserialize(get_option('sfsi_section3_options', false));
127
+
128
+ if (isset($option3) && !empty($option3)) {
129
+ if (!isset($option3['sfsi_mouseOver_effect_type'])) {
 
130
  $option3['sfsi_mouseOver_effect_type'] = 'same_icons';
131
  }
132
 
133
+ if (!isset($option3['mouseover_other_icons_transition_effect'])) {
134
  $option3['mouseover_other_icons_transition_effect'] = 'flip';
135
  }
136
  }
137
 
138
+ $option2 = unserialize(get_option('sfsi_section2_options', false));
139
+
140
+ if (isset($option2) && !empty($option2)) {
141
+ if (!isset($option2['sfsi_youtubeusernameorid'])) {
142
+
 
143
  $option2['sfsi_youtubeusernameorid'] = '';
144
 
145
+ if (isset($option4['sfsi_youtubeusernameorid']) && !empty($option4['sfsi_youtubeusernameorid'])) {
146
  $option2['sfsi_youtubeusernameorid'] = $option4['sfsi_youtubeusernameorid'];
147
  }
148
  }
149
+
150
+ if (!isset($option2['sfsi_ytube_chnlid'])) {
151
+
152
  $option2['sfsi_ytube_chnlid'] = '';
153
+
154
+ if (isset($option4['sfsi_ytube_chnlid']) && !empty($option4['sfsi_ytube_chnlid'])) {
155
  $option2['sfsi_ytube_chnlid'] = $option4['sfsi_ytube_chnlid'];
156
+ }
157
+ }
158
+ if(!isset($option2['sfsi_wechatShare_option'])){
159
+ $option2['sfsi_wechatShare_option']="yes";
160
+ }
161
+ if(!isset($option2['sfsi_telegram_message'])){
162
+ $option2['sfsi_telegram_message']="";
163
+ }
164
+ if(!isset($option2['sfsi_telegram_messageName'])){
165
+ $option2['sfsi_telegram_messageName']="";
166
+ }
167
+ if(!isset($option2['sfsi_telegram_username'])){
168
+ $option2['sfsi_telegram_username']="";
169
+ }
170
  }
171
 
172
  update_option('sfsi_section4_options', serialize($option4));
173
  update_option('sfsi_section2_options', serialize($option2));
 
174
 
175
+
176
+ $option7 = unserialize(get_option('sfsi_section7_options', false));
177
  $option7 = isset($option7) && !empty($option7) ? $option7 : array();
178
 
179
+ if (!isset($option7['sfsi_show_popup'])) {
180
+ $option7['sfsi_show_popup'] = 'no';
181
+ }
182
+ if (!isset($option7['sfsi_popup_text'])) {
183
+ $option7['sfsi_popup_text'] = 'Enjoy this blog? Please spread the word :)';
184
+ }
185
+ if (!isset($option7['sfsi_popup_background_color'])) {
186
+ $option7['sfsi_popup_background_color'] = '#eff7f7';
187
+ }
188
+ if (!isset($option7['sfsi_popup_border_color'])) {
189
+ $option7['sfsi_popup_border_color'] = '#f3faf2';
190
+ }
191
+ if (!isset($option7['sfsi_popup_border_thickness'])) {
192
+ $option7['sfsi_popup_border_thickness'] = '1';
193
+ }
194
+ if (!isset($option7['sfsi_popup_border_shadow'])) {
195
+ $option7['sfsi_popup_border_shadow'] = 'yes';
196
+ }
197
+ if (!isset($option7['sfsi_popup_font'])) {
198
+ $option7['sfsi_popup_font'] = 'Helvetica,Arial,sans-serif';
199
+ }
200
+ if (!isset($option7['sfsi_popup_fontSize'])) {
201
+ $option7['sfsi_popup_fontSize'] = '30';
202
+ }
203
+ if (!isset($option7['sfsi_popup_fontStyle'])) {
204
+ $option7['sfsi_popup_fontStyle'] = 'normal';
205
+ }
206
+ if (!isset($option7['sfsi_popup_fontColor'])) {
207
+ $option7['sfsi_popup_fontColor'] = '#000000';
208
+ }
209
+ if (!isset($option7['sfsi_Show_popupOn'])) {
210
+ $option7['sfsi_Show_popupOn'] = 'none';
211
+ }
212
+ if (!isset($option7['sfsi_Show_popupOn_PageIDs'])) {
213
+ $option7['sfsi_Show_popupOn_PageIDs'] = '';
214
+ }
215
+ if (!isset($option7['sfsi_Shown_popupOnceTime'])) {
216
+ $option7['sfsi_Shown_popupOnceTime'] = '';
217
+ }
218
+ if (!isset($option7['sfsi_Shown_popuplimitPerUserTime'])) {
219
+ $option7['sfsi_Shown_popuplimitPerUserTime'] = '';
220
+ }
221
+
222
+ update_option('sfsi_section7_options', serialize($option7));
223
 
224
  /* subscription form */
225
+ $option8 = unserialize(get_option('sfsi_section8_options', false));
226
  $option8 = isset($option8) && !empty($option8) ? $option8 : array();
227
 
228
+ if (!isset($option8['sfsi_form_adjustment'])) {
229
+ $option8['sfsi_form_adjustment'] = 'yes';
230
+ }
231
+ if (!isset($option8['sfsi_form_height'])) {
232
+ $option8['sfsi_form_height'] = '180';
233
+ }
234
+ if (!isset($option8['sfsi_form_width'])) {
235
+ $option8['sfsi_form_width'] = '230';
236
+ }
237
+ if (!isset($option8['sfsi_form_border'])) {
238
+ $option8['sfsi_form_border'] = 'yes';
239
+ }
240
+ if (!isset($option8['sfsi_form_border_thickness'])) {
241
+ $option8['sfsi_form_border_thickness'] = '1';
242
+ }
243
+ if (!isset($option8['sfsi_form_border_color'])) {
244
+ $option8['sfsi_form_border_color'] = '#b5b5b5';
245
+ }
246
+ if (!isset($option8['sfsi_form_background'])) {
247
+ $option8['sfsi_form_background'] = '#ffffff';
248
+ } //
249
+ if (!isset($option8['sfsi_form_heading_text'])) {
250
+ $option8['sfsi_form_heading_text'] = 'Get new posts by email';
251
+ }
252
+ if (!isset($option8['sfsi_form_heading_font'])) {
253
+ $option8['sfsi_form_heading_font'] = 'Helvetica,Arial,sans-serif';
254
+ }
255
+ if (!isset($option8['sfsi_form_heading_fontstyle'])) {
256
+ $option8['sfsi_form_heading_fontstyle'] = 'bold';
257
+ }
258
+ if (!isset($option8['sfsi_form_heading_fontcolor'])) {
259
+ $option8['sfsi_form_heading_fontcolor'] = '#000000';
260
+ }
261
+ if (!isset($option8['sfsi_form_heading_fontsize'])) {
262
+ $option8['sfsi_form_heading_fontsize'] = '16';
263
+ }
264
+ if (!isset($option8['sfsi_form_heading_fontalign'])) {
265
+ $option8['sfsi_form_heading_fontalign'] = 'center';
266
+ }
267
+ if (!isset($option8['sfsi_form_field_text'])) {
268
+ $option8['sfsi_form_field_text'] = 'Enter your email';
269
+ }
270
+ if (!isset($option8['sfsi_form_field_font'])) {
271
+ $option8['sfsi_form_field_font'] = 'Helvetica,Arial,sans-serif';
272
+ }
273
+ if (!isset($option8['sfsi_form_field_fontstyle'])) {
274
+ $option8['sfsi_form_field_fontstyle'] = 'normal';
275
+ }
276
+ if (!isset($option8['sfsi_form_field_fontcolor'])) {
277
+ $option8['sfsi_form_field_fontcolor'] = '#000000';
278
+ }
279
+ if (!isset($option8['sfsi_form_field_fontsize'])) {
280
+ $option8['sfsi_form_field_fontsize'] = '14';
281
+ }
282
+ if (!isset($option8['sfsi_form_field_fontalign'])) {
283
+ $option8['sfsi_form_field_fontalign'] = 'center';
284
+ }
285
+ if (!isset($option8['sfsi_form_button_text'])) {
286
+ $option8['sfsi_form_button_text'] = 'Subscribe';
287
+ }
288
+ if (!isset($option8['sfsi_form_button_font'])) {
289
+ $option8['sfsi_form_button_font'] = 'Helvetica,Arial,sans-serif';
290
+ }
291
+ if (!isset($option8['sfsi_form_button_fontstyle'])) {
292
+ $option8['sfsi_form_button_fontstyle'] = 'bold';
293
+ }
294
+ if (!isset($option8['sfsi_form_button_fontcolor'])) {
295
+ $option8['sfsi_form_button_fontcolor'] = '#000000';
296
+ }
297
+ if (!isset($option8['sfsi_form_button_fontsize'])) {
298
+ $option8['sfsi_form_button_fontsize'] = '16';
299
+ }
300
+ if (!isset($option8['sfsi_form_button_fontalign'])) {
301
+ $option8['sfsi_form_button_fontalign'] = 'center';
302
+ }
303
+ if (!isset($option8['sfsi_form_button_background'])) {
304
+ $option8['sfsi_form_button_background'] = '#dedede';
305
+ }
306
+
307
+ update_option('sfsi_section8_options', serialize($option8));
308
+
309
+
310
  /*Float Icon setting*/
311
+ $option5 = unserialize(get_option('sfsi_section5_options', false));
312
 
313
  $sfsi_show_via_widget = 'no';
314
 
324
  $sfsi_show_via_afterposts = 'no';
325
 
326
 
327
+ if (isset($option5) && !empty($option5)) {
328
+ if (isset($option5['sfsi_icons_float'])) {
 
329
  $sfsi_icons_float = $option5['sfsi_icons_float'];
330
  unset($option5['sfsi_icons_float']);
331
  }
332
 
333
+ if (isset($option5['sfsi_icons_floatPosition'])) {
334
  $sfsi_icons_floatPosition = $option5['sfsi_icons_floatPosition'];
335
+ unset($option5['sfsi_icons_floatPosition']);
336
  }
337
 
338
+ if (isset($option5['sfsi_icons_floatMargin_top'])) {
339
  $sfsi_icons_floatMargin_top = $option5['sfsi_icons_floatMargin_top'];
340
+ unset($option5['sfsi_icons_floatMargin_top']);
341
  }
342
 
343
+ if (isset($option5['sfsi_icons_floatMargin_bottom'])) {
344
  $sfsi_icons_floatMargin_bottom = $option5['sfsi_icons_floatMargin_bottom'];
345
  unset($option5['sfsi_icons_floatMargin_bottom']);
346
  }
347
 
348
+ if (isset($option5['sfsi_icons_floatMargin_left'])) {
349
  $sfsi_icons_floatMargin_left = $option5['sfsi_icons_floatMargin_left'];
350
+ unset($option5['sfsi_icons_floatMargin_left']);
351
  }
352
 
353
+ if (isset($option5['sfsi_icons_floatMargin_right'])) {
354
  $sfsi_icons_floatMargin_right = $option5['sfsi_icons_floatMargin_right'];
355
+ unset($option5['sfsi_icons_floatMargin_right']);
356
  }
357
 
358
+ if (isset($option5['sfsi_disable_floaticons'])) {
359
  $sfsi_disable_floaticons = $option5['sfsi_disable_floaticons'];
360
+ unset($option5['sfsi_disable_floaticons']);
361
  }
362
 
363
+ if (!isset($option5['sfsi_custom_social_hide'])) {
364
  $option5['sfsi_custom_social_hide'] = 'no';
365
  }
366
 
367
+ if (!isset($option5['sfsi_telegramIcon_order'])) {
368
+ $option5['sfsi_telegramIcon_order'] = '11';
369
+ }
370
+ if (!isset($option5['sfsi_vkIcon_order'])) {
371
+ $option5['sfsi_vkIcon_order'] = '12';
372
+ }
373
+ if (!isset($option5['sfsi_okIcon_order'])) {
374
+ $option5['sfsi_okIcon_order'] = '13';
375
+ }
376
+ if (!isset($option5['sfsi_weiboIcon_order'])) {
377
+ $option5['sfsi_weiboIcon_order'] = '14';
378
+ }
379
+ if (!isset($option5['sfsi_wechatIcon_order'])) {
380
+ $option5['sfsi_wechatIcon_order'] = '15';
381
+ }
382
+
383
+ if (!isset($option5['sfsi_pplus_icons_suppress_errors'])) {
384
 
385
+ $sup_errors = "no";
386
+ $sup_errors_banner_dismissed = true;
 
 
387
 
388
+ if (defined('WP_DEBUG') && false != WP_DEBUG) {
389
+ $sup_errors = 'yes';
390
+ $sup_errors_banner_dismissed = false;
391
+ }
392
 
393
  $option5['sfsi_pplus_icons_suppress_errors'] = $sup_errors;
394
+ update_option('sfsi_pplus_error_reporting_notice_dismissed', $sup_errors_banner_dismissed);
395
+ }
396
  }
397
 
398
+ update_option('sfsi_section5_options', serialize($option5));
399
 
400
+ $option6 = unserialize(get_option('sfsi_section6_options', false));
401
 
402
+ if (isset($option6) && !empty($option6)) {
403
+ if (!isset($option6['sfsi_rectpinit'])) {
 
 
404
  $option6['sfsi_rectpinit'] = 'no';
405
  }
406
+ if (!isset($option6['sfsi_rectfbshare'])) {
 
407
  $option6['sfsi_rectfbshare'] = 'no';
408
  }
409
 
412
 
413
 
414
  // Setting default values for Question 3
415
+ $option9 = unserialize(get_option('sfsi_section9_options', false));
416
  $option9 = isset($option9) && !empty($option9) ? $option9 : array();
417
 
418
+ if (!isset($option9['sfsi_show_via_widget'])) {
419
+
420
+ if (class_exists('Sfsi_Widget')) {
421
+ $widegtObj = new Sfsi_Widget();
422
+ $sfsi_show_via_widget = is_active_widget(false, false, $widegtObj->id_base, true) ? "yes" : "no";
423
+ }
424
  $option9['sfsi_show_via_widget'] = $sfsi_show_via_widget;
425
  }
426
 
427
+ if (!isset($option9['sfsi_show_via_shortcode'])) {
428
+ $option9['sfsi_show_via_shortcode'] = $sfsi_show_via_shortcode;
429
+ }
430
+ if (!isset($option9['sfsi_show_via_afterposts'])) {
431
+ $option9['sfsi_show_via_afterposts'] = $sfsi_show_via_afterposts;
432
+ }
433
+ if (!isset($option9['sfsi_icons_float'])) {
434
+ $option9['sfsi_icons_float'] = $sfsi_icons_float;
435
+ }
436
+ if (!isset($option9['sfsi_icons_floatPosition'])) {
437
+ $option9['sfsi_icons_floatPosition'] = $sfsi_icons_floatPosition;
438
+ }
439
+ if (!isset($option9['sfsi_icons_floatMargin_top'])) {
440
+ $option9['sfsi_icons_floatMargin_top'] = $sfsi_icons_floatMargin_top;
441
+ }
442
+ if (!isset($option9['sfsi_icons_floatMargin_bottom'])) {
443
+ $option9['sfsi_icons_floatMargin_bottom'] = $sfsi_icons_floatMargin_bottom;
444
+ }
445
+ if (!isset($option9['sfsi_icons_floatMargin_left'])) {
446
+ $option9['sfsi_icons_floatMargin_left'] = $sfsi_icons_floatMargin_left;
447
+ }
448
+ if (!isset($option9['sfsi_icons_floatMargin_right'])) {
449
+ $option9['sfsi_icons_floatMargin_right'] = $sfsi_icons_floatMargin_right;
450
+ }
451
+ if (!isset($option9['sfsi_disable_floaticons'])) {
452
+ $option9['sfsi_disable_floaticons'] = $sfsi_disable_floaticons;
453
+ }
454
 
455
  update_option('sfsi_section9_options', serialize($option9));
456
 
457
  // Add this removed in version 2.0.2, removing values from section 1 & section 6 & setting notice display value
458
+ sfsi_was_displaying_addthis();
459
  }
460
 
461
  function sfsi_activate_plugin()
462
  {
463
+
464
+
465
+
466
  add_option('sfsi_plugin_do_activation_redirect', true);
467
+
468
  /* check for CURL enable at server */
469
  curl_enable_notice();
470
+
471
+ if (!get_option('show_new_notification')) {
 
472
  add_option("show_new_notification", "yes");
473
  }
474
 
475
+ if (!get_option('show_premium_cumulative_count_notification')) {
 
476
  add_option("show_premium_cumulative_count_notification", "yes");
477
  }
478
 
479
+ $option1 = unserialize(get_option('sfsi_section1_options', false));
480
+
481
+ if (!isset($option1) || empty($option1)) {
482
+
483
+ $options1 = array(
484
+ 'sfsi_rss_display' => 'yes',
485
+ 'sfsi_email_display' => 'yes',
486
+ 'sfsi_facebook_display' => 'yes',
487
+ 'sfsi_twitter_display' => 'yes',
488
+ 'sfsi_google_display' => 'no',
489
+ 'sfsi_pinterest_display' => 'no',
490
+ 'sfsi_telegram_display' => 'no',
491
+ 'sfsi_vk_display' => 'no',
492
+ 'sfsi_ok_display' => 'no',
493
+ 'sfsi_wechat_display' => 'no',
494
+ 'sfsi_weibo_display' => 'no',
495
+ 'sfsi_instagram_display' => 'no',
496
+ 'sfsi_linkedin_display' => 'no',
497
+ 'sfsi_youtube_display' => 'no',
498
+ 'sfsi_custom_display' => '',
499
+ 'sfsi_custom_files' => ''
500
  );
501
  add_option('sfsi_section1_options', serialize($options1));
502
  }
503
+
504
+ if (get_option('sfsi_feed_id') && get_option('sfsi_redirect_url')) {
 
505
  $sffeeds["feed_id"] = sanitize_text_field(get_option('sfsi_feed_id'));
506
  $sffeeds["redirect_url"] = esc_url(get_option('sfsi_redirect_url'));
507
  $sffeeds = (object)$sffeeds;
508
+ } else {
 
 
509
  $sffeeds = SFSI_getFeedUrl();
510
  }
511
+
512
+ $addThisDismissed = get_option('sfsi_addThis_icon_removal_notice_dismissed', false);
513
+
514
+ if (!isset($addThisDismissed)) {
515
+ update_option('sfsi_addThis_icon_removal_notice_dismissed', true);
516
+ }
517
+
518
+ $option2 = unserialize(get_option('sfsi_section2_options', false));
519
+
520
+ if (!isset($option2) || empty($option2)) {
521
+
522
+ /* Links and icons options */
523
+ $options2 = array(
524
+ 'sfsi_rss_url' => sfsi_get_bloginfo('rss2_url'),
525
+ 'sfsi_rss_icons' => 'email',
526
+ 'sfsi_email_url' => $sffeeds->redirect_url,
527
+ 'sfsi_facebookPage_option' => 'no',
528
+ 'sfsi_facebookPage_url' => '',
529
+ 'sfsi_facebookLike_option' => 'yes',
530
+ 'sfsi_facebookShare_option' => 'yes',
531
+ 'sfsi_twitter_followme' => 'no',
532
+ 'sfsi_twitter_followUserName' => '',
533
+ 'sfsi_twitter_aboutPage' => 'yes',
534
+ 'sfsi_twitter_page' => 'no',
535
+ 'sfsi_twitter_pageURL' => '',
536
+ 'sfsi_twitter_aboutPageText' => 'Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name',
537
+ 'sfsi_google_page' => 'no',
538
+ 'sfsi_google_pageURL' => '',
539
+ 'sfsi_googleLike_option' => 'yes',
540
+ 'sfsi_googleShare_option' => 'yes',
541
+ 'sfsi_youtube_pageUrl' => '',
542
+ 'sfsi_youtube_page' => 'no',
543
  'sfsi_youtubeusernameorid' => '',
544
  'sfsi_ytube_chnlid' => '',
545
+ 'sfsi_youtube_follow' => 'no',
546
+ 'sfsi_pinterest_page' => 'no',
547
+ 'sfsi_pinterest_pageUrl' => '',
548
+ 'sfsi_pinterest_pingBlog' => '',
549
+ 'sfsi_instagram_page' => 'no',
550
+ 'sfsi_instagram_pageUrl' => '',
551
+ 'sfsi_linkedin_page' => 'no',
552
+ 'sfsi_linkedin_pageURL' => '',
553
+ 'sfsi_linkedin_follow' => 'no',
554
+ 'sfsi_linkedin_followCompany' => '',
555
+ 'sfsi_linkedin_SharePage' => 'yes',
556
+ 'sfsi_linkedin_recommendBusines' => 'no',
557
+ 'sfsi_linkedin_recommendCompany' => '',
558
+ 'sfsi_linkedin_recommendProductId' => '',
559
+ 'sfsi_CustomIcon_links' => '',
560
+ 'sfsi_telegram_page' => 'no',
561
+ 'sfsi_telegram_pageURL' => '',
562
+ 'sfsi_telegram_message' => '',
563
+ 'sfsi_telegram_username' => '',
564
+ 'sfsi_telegram_messageName' => '',
565
+ 'sfsi_weibo_page' => 'no',
566
+ 'sfsi_weibo_pageURL' => '',
567
+ 'sfsi_vk_page' => 'no',
568
+ 'sfsi_vk_pageURL' => '',
569
+ 'sfsi_ok_page' => 'no',
570
+ 'sfsi_ok_pageURL' => '',
571
+ );
572
  add_option('sfsi_section2_options', serialize($options2));
573
  }
 
 
574
 
575
+ $option3 = unserialize(get_option('sfsi_section3_options', false));
576
+
577
+ if (!isset($option3) || empty($option3)) {
578
 
579
  /* Design and animation option */
580
  $options3 = array(
581
 
582
+ 'sfsi_mouseOver' => 'no',
583
+ 'sfsi_mouseOver_effect' => 'fade_in',
584
  'sfsi_mouseOver_effect_type' => 'same_icons',
585
  'mouseover_other_icons_transition_effect' => 'flip',
586
+ 'sfsi_shuffle_icons' => 'no',
587
+ 'sfsi_shuffle_Firstload' => 'no',
588
+ 'sfsi_shuffle_interval' => 'no',
589
+ 'sfsi_shuffle_intervalTime' => '',
590
+ 'sfsi_actvite_theme' => 'default'
591
  );
592
  add_option('sfsi_section3_options', serialize($options3));
593
  }
594
+
595
+ $option4 = unserialize(get_option('sfsi_section4_options', false));
596
+
597
+ if (!isset($option4) || empty($option4)) {
598
+
599
+ /* display counts options */
600
+ $options4 = array(
601
+ 'sfsi_display_counts' => 'no',
602
+ 'sfsi_email_countsDisplay' => 'no',
603
+ 'sfsi_email_countsFrom' => 'source',
604
+ 'sfsi_email_manualCounts' => '20',
605
+ 'sfsi_rss_countsDisplay' => 'no',
606
+ 'sfsi_rss_manualCounts' => '20',
607
+ 'sfsi_facebook_PageLink' => '',
608
+ 'sfsi_facebook_countsDisplay' => 'no',
609
+ 'sfsi_facebook_countsFrom' => 'manual',
610
+ 'sfsi_facebook_manualCounts' => '20',
611
+ 'sfsi_twitter_countsDisplay' => 'no',
612
+ 'sfsi_twitter_countsFrom' => 'manual',
613
+ 'sfsi_twitter_manualCounts' => '20',
614
+ 'sfsi_google_api_key' => '',
615
+ 'sfsi_google_countsDisplay' => 'no',
616
+ 'sfsi_google_countsFrom' => 'manual',
617
+ 'sfsi_google_manualCounts' => '20',
618
+ 'sfsi_linkedIn_countsDisplay' => 'no',
619
+ 'sfsi_linkedIn_countsFrom' => 'manual',
620
+ 'sfsi_linkedIn_manualCounts' => '20',
621
+
622
+ 'sfsi_telegram_countsDisplay' => 'no',
623
+ 'sfsi_telegram_countsFrom' => 'manual',
624
+ 'sfsi_telegram_manualCounts' => '20',
625
+
626
+ 'sfsi_vk_countsDisplay' => 'no',
627
+ 'sfsi_vk_countsFrom' => 'manual',
628
+ 'sfsi_vk_manualCounts' => '20',
629
+
630
+ 'sfsi_ok_countsDisplay' => 'no',
631
+ 'sfsi_ok_countsFrom' => 'manual',
632
+ 'sfsi_ok_manualCounts' => '20',
633
+
634
+ 'sfsi_weibo_countsDisplay' => 'no',
635
+ 'sfsi_weibo_countsFrom' => 'manual',
636
+ 'sfsi_weibo_manualCounts' => '20',
637
+
638
+ 'sfsi_wechat_countsDisplay' => 'no',
639
+ 'sfsi_wechat_countsFrom' => 'manual',
640
+ 'sfsi_wechat_manualCounts' => '20',
641
+
642
+ 'ln_api_key' => '',
643
+ 'ln_secret_key' => '',
644
+ 'ln_oAuth_user_token' => '',
645
+ 'ln_company' => '',
646
+ 'sfsi_youtubeusernameorid' => 'name',
647
+ 'sfsi_youtube_user' => '',
648
+ 'sfsi_youtube_channelId' => '',
649
+ 'sfsi_ytube_chnlid' => '',
650
+ 'sfsi_youtube_countsDisplay' => 'no',
651
+ 'sfsi_youtube_countsFrom' => 'manual',
652
+ 'sfsi_youtube_manualCounts' => '20',
653
+ 'sfsi_pinterest_countsDisplay' => 'no',
654
+ 'sfsi_pinterest_countsFrom' => 'manual',
655
+ 'sfsi_pinterest_manualCounts' => '20',
656
+ 'sfsi_pinterest_user' => '',
657
+ 'sfsi_pinterest_board' => '',
658
+
659
+ 'sfsi_instagram_countsFrom' => 'manual',
660
+ 'sfsi_instagram_countsDisplay' => 'no',
661
+ 'sfsi_instagram_manualCounts' => '20',
662
+
663
+ 'sfsi_instagram_User' => '',
664
+
665
  );
666
  add_option('sfsi_section4_options', serialize($options4));
667
  }
668
+
669
+ $option5 = unserialize(get_option('sfsi_section5_options', false));
670
+
671
+ if (!isset($option5) || empty($option5)) {
672
+
673
+ $options5 = array(
674
+ 'sfsi_icons_size' => '40',
675
+ 'sfsi_icons_spacing' => '5',
676
+ 'sfsi_icons_Alignment' => 'left',
677
+ 'sfsi_icons_perRow' => '5',
678
+ 'sfsi_icons_ClickPageOpen' => 'yes',
679
+ 'sfsi_icons_suppress_errors' => 'no',
680
+ 'sfsi_icons_float' => 'no',
681
+ 'sfsi_disable_floaticons' => 'no',
682
+ 'sfsi_icons_floatPosition' => 'center-right',
683
+ 'sfsi_icons_floatMargin_top' => '',
684
+ 'sfsi_icons_floatMargin_bottom' => '',
685
+ 'sfsi_icons_floatMargin_left' => '',
686
+ 'sfsi_icons_floatMargin_right' => '',
687
+ 'sfsi_icons_stick' => 'no',
688
+ 'sfsi_rssIcon_order' => '1',
689
+ 'sfsi_emailIcon_order' => '2',
690
+ 'sfsi_facebookIcon_order' => '3',
691
+ 'sfsi_twitterIcon_order' => '4',
692
+ 'sfsi_youtubeIcon_order' => '5',
693
+ 'sfsi_pinterestIcon_order' => '7',
694
+ 'sfsi_linkedinIcon_order' => '8',
695
+ 'sfsi_instagramIcon_order' => '9',
696
+ 'sfsi_googleIcon_order' => '10',
697
+ 'sfsi_telegramIcon_order' => '11',
698
+ 'sfsi_vkIcon_order' => '12',
699
+ 'sfsi_okIcon_order' => '13',
700
+ 'sfsi_weiboIcon_order' => '14',
701
+ 'sfsi_wechatIcon_order' => '15',
702
+ 'sfsi_CustomIcons_order' => '',
703
+ 'sfsi_rss_MouseOverText' => 'RSS',
704
+ 'sfsi_email_MouseOverText' => 'Follow by Email',
705
+ 'sfsi_twitter_MouseOverText' => 'Twitter',
706
+ 'sfsi_facebook_MouseOverText' => 'Facebook',
707
+ 'sfsi_google_MouseOverText' => 'Google+',
708
+ 'sfsi_linkedIn_MouseOverText' => 'LinkedIn',
709
+ 'sfsi_pinterest_MouseOverText' => 'Pinterest',
710
+ 'sfsi_instagram_MouseOverText' => 'Instagram',
711
+ 'sfsi_youtube_MouseOverText' => 'YouTube',
712
+ 'sfsi_telegram_MouseOverText' => 'Telegram',
713
+ 'sfsi_vk_MouseOverText' => 'VK',
714
+ 'sfsi_ok_MouseOverText' => 'OK',
715
+ 'sfsi_weibo_MouseOverText' => 'Weibo',
716
+ 'sfsi_wechat_MouseOverText' => 'WeChat',
717
+ 'sfsi_custom_MouseOverTexts' => '',
718
+ 'sfsi_custom_social_hide' => 'no'
719
+ );
720
+
721
+ update_option('sfsi_section5_options', serialize($options5));
722
+ }
723
+
724
+ $option6 = unserialize(get_option('sfsi_section6_options', false));
725
+
726
+ if (!isset($option6) || empty($option6)) {
727
+
728
+ /* post options */
729
+ $options6 = array(
730
+ 'sfsi_show_Onposts' => 'no',
731
+ 'sfsi_show_Onbottom' => 'no',
732
+ 'sfsi_icons_postPositon' => 'source',
733
+ 'sfsi_icons_alignment' => 'center-right',
734
+ 'sfsi_rss_countsDisplay' => 'no',
735
+ 'sfsi_textBefor_icons' => 'Please follow and like us:',
736
+ 'sfsi_icons_DisplayCounts' => 'no',
737
+ 'sfsi_rectsub' => 'yes',
738
+ 'sfsi_rectfb' => 'yes',
739
+ 'sfsi_rectgp' => 'yes',
740
+ 'sfsi_rectshr' => 'no',
741
+ 'sfsi_recttwtr' => 'yes',
742
+ 'sfsi_rectpinit' => 'yes',
743
+ 'sfsi_rectfbshare' => 'yes'
744
  );
745
  add_option('sfsi_section6_options', serialize($options6));
746
+ }
747
+
748
+ $option7 = unserialize(get_option('sfsi_section7_options', false));
749
+
750
+ if (!isset($option7) || empty($option7)) {
751
 
752
  /* icons pop options */
753
+ $options7 = array(
754
+ 'sfsi_show_popup' => 'no',
755
+ 'sfsi_popup_text' => 'Enjoy this blog? Please spread the word :)',
756
+ 'sfsi_popup_background_color' => '#eff7f7',
757
+ 'sfsi_popup_border_color' => '#f3faf2',
758
+ 'sfsi_popup_border_thickness' => '1',
759
+ 'sfsi_popup_border_shadow' => 'yes',
760
+ 'sfsi_popup_font' => 'Helvetica,Arial,sans-serif',
761
+ 'sfsi_popup_fontSize' => '30',
762
+ 'sfsi_popup_fontStyle' => 'normal',
763
+ 'sfsi_popup_fontColor' => '#000000',
764
+ 'sfsi_Show_popupOn' => 'none',
765
+ 'sfsi_Show_popupOn_PageIDs' => '',
766
+ 'sfsi_Shown_pop' => 'ETscroll',
767
+ 'sfsi_Shown_popupOnceTime' => '',
768
+ 'sfsi_Shown_popuplimitPerUserTime' => '',
769
  );
770
  add_option('sfsi_section7_options', serialize($options7));
771
  }
772
+
773
+ $option8 = unserialize(get_option('sfsi_section8_options', false));
774
+
775
+ if (!isset($option8) || empty($option8)) {
776
 
777
  /* Question 8 */
778
+ $options8 = array(
779
  'sfsi_form_adjustment' => 'yes',
780
  'sfsi_form_height' => '180',
781
  'sfsi_form_width' => '230',
782
  'sfsi_form_border' => 'no',
783
+ 'sfsi_form_border_thickness' => '1',
784
  'sfsi_form_border_color' => '#b5b5b5',
785
  'sfsi_form_background' => '#ffffff',
786
+
787
  'sfsi_form_heading_text' => 'Get new posts by email',
788
  'sfsi_form_heading_font' => 'Helvetica,Arial,sans-serif',
789
+ 'sfsi_form_heading_fontstyle' => 'bold',
790
+ 'sfsi_form_heading_fontcolor' => '#000000',
791
+ 'sfsi_form_heading_fontsize' => '16',
792
+ 'sfsi_form_heading_fontalign' => 'center',
793
+
794
  'sfsi_form_field_text' => 'Subscribe',
795
  'sfsi_form_field_font' => 'Helvetica,Arial,sans-serif',
796
  'sfsi_form_field_fontstyle' => 'normal',
797
  'sfsi_form_field_fontcolor' => '#000000',
798
  'sfsi_form_field_fontsize' => '14',
799
  'sfsi_form_field_fontalign' => 'center',
800
+
801
  'sfsi_form_button_text' => 'Subscribe',
802
  'sfsi_form_button_font' => 'Helvetica,Arial,sans-serif',
803
+ 'sfsi_form_button_fontstyle' => 'bold',
804
+ 'sfsi_form_button_fontcolor' => '#000000',
805
  'sfsi_form_button_fontsize' => '16',
806
+ 'sfsi_form_button_fontalign' => 'center',
807
+ 'sfsi_form_button_background' => '#dedede',
808
  );
809
  add_option('sfsi_section8_options', serialize($options8));
810
  }
811
 
812
+ $option9 = unserialize(get_option('sfsi_section9_options', false));
813
+
814
+ if (!isset($option9) || empty($option9)) {
815
 
816
  /* Question 3->Where shall they be displayed? */
817
+ $options9 = array(
818
+
819
  'sfsi_show_via_widget' => 'no',
820
 
821
  'sfsi_icons_float' => 'no',
823
  'sfsi_icons_floatMargin_top' => '',
824
  'sfsi_icons_floatMargin_bottom' => '',
825
  'sfsi_icons_floatMargin_left' => '',
826
+ 'sfsi_icons_floatMargin_right' => '',
827
  'sfsi_disable_floaticons' => 'no',
828
 
829
  'sfsi_show_via_shortcode' => 'no',
834
  }
835
 
836
  /*Some additional option added*/
837
+ update_option('sfsi_feed_id', sanitize_text_field($sffeeds->feed_id));
838
+ update_option('sfsi_redirect_url', esc_url($sffeeds->redirect_url));
839
+ add_option('sfsi_installDate', date('Y-m-d h:i:s'));
840
+ add_option('sfsi_RatingDiv', 'no');
841
+ add_option('sfsi_footer_sec', 'no');
842
  update_option('sfsi_activate', 1);
843
+
844
  /*Changes in option 2*/
845
+ $get_option2 = unserialize(get_option('sfsi_section2_options', false));
846
 
847
  $get_option2['sfsi_email_url'] = $sffeeds->redirect_url;
848
  update_option('sfsi_section2_options', serialize($get_option2));
849
+
850
  /*Activation Setup for (specificfeed)*/
851
  sfsi_setUpfeeds($sffeeds->feed_id);
852
+ sfsi_updateFeedPing('N', $sffeeds->feed_id);
853
+
854
  /*Extra important options*/
855
  $sfsi_instagram_sf_count = array(
856
  "date_sf" => strtotime(date("Y-m-d")),
860
  );
861
  add_option('sfsi_instagram_sf_count', serialize($sfsi_instagram_sf_count));
862
 
863
+ $error_banner = get_option('sfsi_error_reporting_notice_dismissed', false);
864
 
865
+ if (!$error_banner) {
866
+ update_option('sfsi_error_reporting_notice_dismissed', true);
867
  }
868
  }
869
  /* end function */
873
  /* deactivate plugin */
874
  function sfsi_deactivate_plugin()
875
  {
876
+ global $wpdb;
877
+ sfsi_updateFeedPing('Y', sanitize_text_field(get_option('sfsi_feed_id')));
878
  }
879
  /* end function */
880
 
881
+ function sfsi_updateFeedPing($status, $feed_id)
882
  {
883
+ $curl = curl_init();
884
  curl_setopt_array($curl, array(
885
  CURLOPT_RETURNTRANSFER => 1,
886
  CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/pingfeed',
891
  'status' => $status
892
  )
893
  ));
894
+ // Send the request & save response to $resp
895
  $resp = curl_exec($curl);
896
+ $resp = json_decode($resp);
897
  curl_close($curl);
898
  }
899
  /* unistall plugin function */
900
  function sfsi_Unistall_plugin()
901
+ {
902
  global $wpdb;
903
  /* Delete option for which icons to display */
904
  delete_option('sfsi_section1_options');
909
  delete_option('sfsi_section6_options');
910
  delete_option('sfsi_section7_options');
911
  delete_option('sfsi_section8_options');
912
+ delete_option('sfsi_section9_options');
913
  delete_option('sfsi_feed_id');
914
  delete_option('sfsi_redirect_url');
915
  delete_option('sfsi_footer_sec');
918
  delete_option('sfsi_verificatiom_code');
919
  delete_option("sfsi_curlErrorNotices");
920
  delete_option("sfsi_curlErrorMessage");
921
+ delete_option("sfsi_RatingDiv");
922
+ delete_option("sfsi_languageNotice");
923
+ delete_option("sfsi_instagram_sf_count");
924
+ delete_option("sfsi_installDate");
925
+
926
+ delete_option("adding_tags");
927
+ delete_option("show_notification_plugin");
928
+ delete_option("show_premium_notification");
929
+ delete_option("show_mobile_notification");
930
+ delete_option("show_notification");
931
+ delete_option("show_new_notification");
932
  delete_option('sfsi_serverphpVersionnotification');
933
  delete_option("show_premium_cumulative_count_notification");
934
 
942
  /* check CUrl */
943
  function curl_enable_notice()
944
  {
945
+ if (!function_exists('curl_init')) {
946
+ echo '<div class="error"><p> Error: It seems that CURL is disabled on your server. Please contact your server administrator to install / enable CURL.</p></div>';
947
+ die;
948
  }
949
  }
950
+
951
  /* add admin menus */
952
  function sfsi_admin_menu()
953
  {
954
+ $sfsi_pm = '<div style="font-family:font-family Example text
955
+ Arial, Helvetica, sans-serif;"> Ultimate Social Media Icons </div>';
956
+ add_menu_page(
957
+ 'Ultimate Social Media Icons',
958
+ $sfsi_pm,
959
+ 'administrator',
960
+ 'sfsi-options',
961
+ 'sfsi_options_page',
962
+ plugins_url('images/logo.png', dirname(__FILE__))
963
+ );
964
  }
965
+ function sfsi_options_page()
966
+ {
967
+ include SFSI_DOCROOT . '/views/sfsi_options_view.php';
968
+ } /* end function */
969
+ function sfsi_about_page()
970
+ {
971
+ include SFSI_DOCROOT . '/views/sfsi_aboutus.php';
972
+ } /* end function */
973
+ if (is_admin()) {
974
  add_action('admin_menu', 'sfsi_admin_menu');
975
  }
976
+ /* fetch rss url from specificfeeds */
977
  function SFSI_getFeedUrl()
978
  {
979
+ $curl = curl_init();
980
+
981
  curl_setopt_array($curl, array(
982
  CURLOPT_RETURNTRANSFER => 1,
983
  CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/plugin_setup',
992
  ));
993
  // Send the request & save response to $resp
994
  $resp = curl_exec($curl);
995
+ if (curl_errno($curl)) {
 
996
  update_option("sfsi_curlErrorNotices", "yes");
997
  update_option("sfsi_curlErrorMessage", curl_errno($curl));
998
  }
999
  $resp = json_decode($resp);
1000
  curl_close($curl);
1001
+
1002
  $feed_url = stripslashes_deep($resp->redirect_url);
1003
+ return $resp;
1004
+ exit;
1005
  }
1006
+ /* fetch rss url from specificfeeds on */
1007
  function SFSI_updateFeedUrl()
1008
  {
1009
+ $curl = curl_init();
1010
+
1011
  curl_setopt_array($curl, array(
1012
  CURLOPT_RETURNTRANSFER => 1,
1013
  CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/updateFeedPlugin',
1024
  $resp = curl_exec($curl);
1025
  $resp = json_decode($resp);
1026
  curl_close($curl);
1027
+
1028
  $feed_url = stripslashes_deep($resp->redirect_url);
1029
+ return $resp;
1030
+ exit;
1031
  }
1032
  /* add sf tags */
1033
  function sfsi_setUpfeeds($feed_id)
1034
  {
1035
+ $curl = curl_init();
1036
  curl_setopt_array($curl, array(
1037
  CURLOPT_RETURNTRANSFER => 1,
1038
+ CURLOPT_URL => 'http://www.specificfeeds.com/rssegtcrons/download_rssmorefeed_data_single/' . $feed_id . "/Y",
1039
  CURLOPT_USERAGENT => 'sf rss request',
1040
+ CURLOPT_POST => 0
1041
  ));
1042
  $resp = curl_exec($curl);
1043
+ curl_close($curl);
1044
  }
1045
  /* admin notice if wp_head is missing in active theme */
1046
+ function sfsi_check_wp_head()
1047
+ {
1048
+
1049
  $template_directory = get_template_directory();
1050
  $header = $template_directory . '/header.php';
1051
+
1052
  if (is_file($header)) {
1053
+
1054
  $search_header = "wp_head";
1055
  $file_lines = @file($header);
1056
+ $foind_header = 0;
1057
+ foreach ($file_lines as $line) {
 
1058
  $searchCount = substr_count($line, $search_header);
1059
+ if ($searchCount > 0) {
 
1060
  return true;
1061
  }
1062
  }
1063
+
1064
+ $path = pathinfo($_SERVER['REQUEST_URI']);
1065
+ if ($path['basename'] == "themes.php" || $path['basename'] == "theme-editor.php" || $path['basename'] == "admin.php?page=sfsi-options") {
 
1066
  $currentTheme = wp_get_theme();
1067
+
1068
+ if (isset($currentTheme) && !empty($currentTheme) && $currentTheme->get('Name') != "Customizr") {
1069
  echo "<div class=\"error\" >" . "<p> Error : Please fix your theme to make plugins work correctly: Go to the <a href=\"theme-editor.php\">Theme Editor</a> and insert <code>&lt;?php wp_head(); ?&gt;</code> just before the <code>&lt;/head&gt;</code> line of your theme's <code>header.php</code> file." . "</p></div>";
1070
  }
1071
+ }
1072
  }
1073
  }
1074
  /* admin notice if wp_footer is missing in active theme */
1075
+ function sfsi_check_wp_footer()
1076
+ {
1077
  $template_directory = get_template_directory();
1078
  $footer = $template_directory . '/footer.php';
1079
+
1080
  if (is_file($footer)) {
1081
  $search_string = "wp_footer";
1082
  $file_lines = @file($footer);
1083
+
1084
  foreach ($file_lines as $line) {
1085
  $searchCount = substr_count($line, $search_string);
1086
  if ($searchCount > 0) {
1087
  return true;
1088
  }
1089
  }
1090
+ $path = pathinfo($_SERVER['REQUEST_URI']);
1091
+
1092
+ if ($path['basename'] == "themes.php" || $path['basename'] == "theme-editor.php" || $path['basename'] == "admin.php?page=sfsi-options") {
1093
+ echo "<div class=\"error\" >" . "<p>Error : Please fix your theme to make plugins work correctly: Go to the <a href=\"theme-editor.php\">Theme Editor</a> and insert <code>&lt;?php wp_footer(); ?&gt;</code> as the first line of your theme's <code>footer.php</code> file. " . "</p></div>";
1094
+ }
 
1095
  }
1096
  }
1097
  /* admin notice for first time installation */
1098
+ function sfsi_activation_msg()
1099
+ {
1100
 
1101
  global $wp_version;
1102
+
1103
+ if (get_option('sfsi_activate', false) == 1) {
1104
+ echo "<div class=\"updated\" >" . "<p>Thank you for installing the <b>Ultimate Social Media Icons</b> Plugin. Please go to the <a href=\"admin.php?page=sfsi-options\">plugin's settings page </a> to configure it. </p></div>";
1105
+ update_option('sfsi_activate', 0);
1106
+ }
1107
+
1108
+ $path = pathinfo($_SERVER['REQUEST_URI']);
1109
+
1110
+ update_option('sfsi_activate', 0);
1111
+
1112
+ if ($wp_version < 3.5 && $path['basename'] == "admin.php?page=sfsi-options") {
1113
+ echo "<div class=\"update-nag\" >" . "<p ><b>You're using an old Wordpress version, which may cause several of your plugins to not work correctly. Please upgrade</b></p></div>";
1114
+ }
 
1115
  }
1116
  /* admin notice for first time installation */
1117
  function sfsi_rating_msg()
1121
  $display_date = date('Y-m-d h:i:s');
1122
  $datetime1 = new DateTime($install_date);
1123
  $datetime2 = new DateTime($display_date);
1124
+ $diff_inrval = round(($datetime2->format('U') - $datetime1->format('U')) / (60 * 60 * 24));
1125
+
1126
+ if ($diff_inrval >= 30 && "no" == get_option('sfsi_RatingDiv')) {
1127
+ ?>
1128
+ <style type="text/css">
1129
+ .plg-rating-dismiss:before {
1130
+ background: none;
1131
+ color: #72777c;
1132
+ content: "\f153";
1133
+ display: block;
1134
+ font: normal 16px/20px dashicons;
1135
+ speak: none;
1136
+ height: 20px;
1137
+ text-align: center;
1138
+ width: 20px;
1139
+ -webkit-font-smoothing: antialiased;
1140
+ -moz-osx-font-smoothing: grayscale;
1141
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1142
 
1143
+ .plg-rating-dismiss {
1144
+ position: absolute;
1145
+ top: 0;
1146
+ right: 15px;
1147
+ border: none;
1148
+ margin: 0;
1149
+ padding: 9px;
1150
+ background: none;
1151
+ color: #72777c;
1152
+ cursor: pointer;
1153
+ }
1154
+ </style>
1155
+ <div class="sfwp_fivestar notice notice-success">
1156
+ <p>You've been using the Ultimate Social Media Plugin for more than 30 days. Great! If you're happy, could you please do us a BIG favor and let us know ONE thing we can improve in it?</p>
1157
+ <ul>
1158
+ <li><a href="https://wordpress.org/support/plugin/ultimate-social-media-icons#new-topic-0" target="_new" title="Yes, that's fair, let me give feedback!">Yes, let me give feedback!</a></li>
1159
+ <li><a target="_new" href="https://wordpress.org/support/plugin/ultimate-social-media-icons/reviews/?filter=5">No clue, let me give a 5-star rating instead</a></li>
1160
+ <li><a href="javascript:void(0);" class="sfsiHideRating" title="I already did">I already did (don't show this again)</a></li>
1161
+ </ul>
1162
+ <button type="button" class="plg-rating-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></button>
1163
+ </div>
1164
+ <script>
1165
+ jQuery(document).ready(function($) {
1166
+
1167
+ var sel1 = jQuery('.sfsiHideRating');
1168
+ var sel2 = jQuery('.plg-rating-dismiss');
1169
+
1170
+ function sfsi_hide_rating(element) {
1171
+
1172
+ element.on("click", function(event) {
1173
+
1174
+ event.stopImmediatePropagation();
1175
+
1176
+ var data = {
1177
+ 'action': 'sfsi_hideRating',
1178
+ 'nonce': '<?php echo wp_create_nonce('sfsi_hideRating'); ?>'
1179
+ };
1180
+
1181
+ jQuery.ajax({
1182
+ url: "<?php echo admin_url('admin-ajax.php'); ?>",
1183
+ type: "post",
1184
+ data: data,
1185
+ dataType: "json",
1186
+ async: !0,
1187
+ success: function(e) {
1188
+ if (e == "success") {
1189
+ jQuery('.sfwp_fivestar').slideUp('slow');
1190
+ }
1191
+ }
1192
+ });
1193
+ });
1194
+
1195
+ }
1196
+
1197
+ sfsi_hide_rating(sel1);
1198
+ sfsi_hide_rating(sel2);
1199
+
1200
+ });
1201
+ </script>
1202
+
1203
+ <?php
1204
+ }
1205
  }
1206
 
1207
+ add_action('wp_ajax_sfsi_hideRating', 'sfsi_HideRatingDiv', 0);
1208
  function sfsi_HideRatingDiv()
1209
  {
1210
+ if (!wp_verify_nonce($_POST['nonce'], "sfsi_hideRating")) {
1211
+ echo json_encode(array('res' => "error"));
1212
+ exit;
1213
+ }
1214
+ if (!current_user_can('manage_options')) {
1215
+ echo json_encode(array('res' => 'not allowed'));
1216
+ die();
1217
  }
 
1218
 
1219
 
1220
+
1221
+ update_option('sfsi_RatingDiv', 'yes');
1222
+ echo json_encode(array("success"));
1223
+ exit;
1224
  }
1225
  /* add all admin message */
1226
  add_action('admin_notices', 'sfsi_activation_msg');
1228
  add_action('admin_notices', 'sfsi_check_wp_head');
1229
  add_action('admin_notices', 'sfsi_check_wp_footer');
1230
 
1231
+ function sfsi_pingVendor($post_id)
1232
  {
1233
+ global $wp, $wpdb;
1234
  // If this is just a revision, don't send the email.
1235
+ if (wp_is_post_revision($post_id))
1236
  return;
1237
+ $post_data = get_post($post_id, ARRAY_A);
1238
+ if ($post_data['post_status'] == 'publish' && $post_data['post_type'] == 'post') :
1239
+ $categories = wp_get_post_categories($post_data['ID']);
1240
+ $cats = '';
1241
+ $total = count($categories);
1242
+ $count = 1;
1243
+ foreach ($categories as $c) {
1244
+ $cat_data = get_category($c);
1245
+ if ($count == $total) {
1246
+ $cats .= $cat_data->name;
1247
+ } else {
1248
+ $cats .= $cat_data->name . ',';
1249
+ }
1250
+ $count++;
 
 
1251
  }
1252
+ $postto_array = array(
1253
+ 'feed_id' => sanitize_text_field(get_option('sfsi_feed_id')),
1254
+ 'title' => $post_data['post_title'],
1255
+ 'description' => $post_data['post_content'],
1256
+ 'link' => $post_data['guid'],
1257
+ 'author' => get_the_author_meta('user_login', $post_data['post_author']),
1258
+ 'category' => $cats,
1259
+ 'pubDate' => $post_data['post_modified'],
1260
+ 'rssurl' => sfsi_get_bloginfo('rss2_url')
1261
+ );
1262
+ $curl = curl_init();
1263
+
1264
+ curl_setopt_array($curl, array(
1265
+ CURLOPT_RETURNTRANSFER => 1,
1266
+ CURLOPT_URL => 'http://www.specificfeeds.com/wordpress/addpostdata ',
1267
+ CURLOPT_USERAGENT => 'sf rss request',
1268
+ CURLOPT_POST => 1,
1269
+ CURLOPT_POSTFIELDS => $postto_array
1270
+ ));
1271
+ // Send the request & save response to $resp
1272
+ $resp = curl_exec($curl);
1273
+ $resp = json_decode($resp);
1274
+ curl_close($curl);
1275
+
1276
+ return true;
 
 
1277
  endif;
1278
  }
1279
+ add_action('save_post', 'sfsi_pingVendor');
1280
 
1281
+ function sfsi_was_displaying_addthis()
1282
+ {
1283
 
1284
  $isDismissed = true;
1285
 
1286
+ $sfsi_section1 = unserialize(get_option('sfsi_section1_options', false));
1287
+ $sfsi_section6 = unserialize(get_option('sfsi_section6_options', false));
1288
 
1289
+ $sfsi_addThiswasDisplayed_section1 = isset($sfsi_section1['sfsi_share_display']) && 'yes' == sanitize_text_field($sfsi_section1['sfsi_share_display']);
1290
 
1291
+ $sfsi_addThiswasDisplayed_section6 = isset($sfsi_section6['sfsi_rectshr']) && 'yes' == sanitize_text_field($sfsi_section6['sfsi_rectshr']);
1292
 
1293
  $isDisplayed = $sfsi_addThiswasDisplayed_section1 || $sfsi_addThiswasDisplayed_section6;
1294
 
1295
  // If icon was displayed
1296
  $isDismissed = false != $isDisplayed ? false : true;
1297
 
1298
+ update_option('sfsi_addThis_icon_removal_notice_dismissed', $isDismissed);
1299
 
1300
+ if ($sfsi_addThiswasDisplayed_section1) {
1301
  unset($sfsi_section1['sfsi_share_display']);
1302
+ update_option('sfsi_section1_options', serialize($sfsi_section1));
1303
  }
1304
 
1305
+ if ($sfsi_addThiswasDisplayed_section6) {
1306
  unset($sfsi_section6['sfsi_rectshr']);
1307
+ update_option('sfsi_section6_options', serialize($sfsi_section6));
1308
  }
1309
+ }
1310
+ ?>
libs/sfsi_widget.php CHANGED
@@ -236,6 +236,21 @@ function sfsi_check_visiblity($isFloter=0)
236
  /* magnage the icons in saved order in admin */
237
  $custom_icons_order = unserialize($sfsi_section5['sfsi_CustomIcons_order']);
238
  $icons = unserialize($sfsi_section1_options['sfsi_custom_files']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
239
  $icons_order = array(
240
  '0' => '',
241
  $sfsi_section5['sfsi_rssIcon_order']=>'rss',
@@ -246,7 +261,15 @@ function sfsi_check_visiblity($isFloter=0)
246
  $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
247
  $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
248
  $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
249
- $sfsi_section5['sfsi_instagramIcon_order']=>'instagram',) ;
 
 
 
 
 
 
 
 
250
  if(is_array($custom_icons_order) )
251
  {
252
  foreach($custom_icons_order as $data)
@@ -293,6 +316,16 @@ function sfsi_check_visiblity($isFloter=0)
293
  case 'linkedin' : if($sfsi_section1_options['sfsi_linkedin_display']=='yes') $icons.= sfsi_prepairIcons('linkedin');
294
  break;
295
  case 'instagram' : if($sfsi_section1_options['sfsi_instagram_display']=='yes') $icons.= sfsi_prepairIcons('instagram');
 
 
 
 
 
 
 
 
 
 
296
  break;
297
  case 'custom' : $icons.= sfsi_prepairIcons($icon_arry['ele']);
298
  break;
@@ -368,11 +401,12 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
368
  $sfsi_section5_options = unserialize(get_option('sfsi_section5_options',false));
369
  $sfsi_section6_options = unserialize(get_option('sfsi_section6_options',false));
370
  $sfsi_section7_options = unserialize(get_option('sfsi_section7_options',false));
371
-
372
  /* get active theme */
373
  $border_radius='';
374
  $active_theme = $sfsi_section3_options['sfsi_actvite_theme'];
375
-
 
 
376
  /* shuffle effect */
377
  if($sfsi_section3_options['sfsi_shuffle_icons']=='yes')
378
  {
@@ -956,11 +990,12 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
956
 
957
  $page = isset($sfsi_section2_options['sfsi_pinterest_page']) && !empty($sfsi_section2_options['sfsi_pinterest_page']) ? $sfsi_section2_options['sfsi_pinterest_page'] : false;
958
 
959
- $cDisplay = isset($sfsi_section2_options['sfsi_pinterest_countsDisplay']) && !empty($sfsi_section2_options['sfsi_pinterest_countsDisplay']) ? $sfsi_section2_options['sfsi_pinterest_countsDisplay'] : false;
960
 
961
- $displayC = isset($sfsi_section2_options['sfsi_display_counts']) && !empty($sfsi_section2_options['sfsi_display_counts']) ? $sfsi_section2_options['sfsi_display_counts'] : false;
962
 
963
- $cFrom = isset($sfsi_section2_options['sfsi_pinterest_countsFrom']) && !empty($sfsi_section2_options['sfsi_pinterest_countsFrom']) ? $sfsi_section2_options['sfsi_pinterest_countsFrom'] : false;
 
964
 
965
  if($pingblog=="yes" )
966
  {
@@ -1076,7 +1111,341 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
1076
  $icon=$icons_baseUrl.$active_theme."_instagram.png";
1077
  }
1078
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1079
 
 
1080
  case "linkedin" :
1081
  $width = 66;
1082
  $toolClass = "linkedin_tool_bdr";
@@ -1292,20 +1661,26 @@ function sfsi_prepairIcons($icon_name,$is_front=0)
1292
  $new_window = sfsi_checkNewWindow();
1293
  $url = $url;
1294
  }
1295
-
1296
- $margin_bot="5px;";
 
 
 
 
 
 
1297
  if($sfsi_section4_options['sfsi_display_counts']=="yes")
1298
  {
1299
  $margin_bot = "30px;";
1300
  }
1301
  if(isset($icon) && !empty($icon) && filter_var($icon, FILTER_VALIDATE_URL))
1302
  {
1303
- $icons.= "<div style='width:".$icon_width."px; height:".$icon_width."px;margin-left:".$icons_space."px;margin-bottom:".$margin_bot."' class='".$itemselector." ".$cmcls."'>";
1304
 
1305
  $icons.= "<div class='".$innrselector."'>";
1306
 
1307
- $icons.= "<a class='".$class." sficn' effect='".$mouse_hover_effect."' $new_window href='".$url."' id='sfsiid_".$icon_name."' alt='".$alt_text."' style='opacity:".$icon_opacity."' >";
1308
- $icons.= "<img alt='".$alt_text."' title='".$alt_text."' src='".$icon."' width='".$icons_size."' height='".$icons_size."' style='".$border_radius.$padding_top."' class='sfcm sfsi_wicon' effect='".$mouse_hover_effect."' />";
1309
  $icons.= '</a>';
1310
  if(isset($counts) && $counts!='')
1311
  {
@@ -1338,4 +1713,6 @@ function sfsi_checkNewWindow()
1338
  return '';
1339
  }
1340
  }
 
 
1341
  ?>
236
  /* magnage the icons in saved order in admin */
237
  $custom_icons_order = unserialize($sfsi_section5['sfsi_CustomIcons_order']);
238
  $icons = unserialize($sfsi_section1_options['sfsi_custom_files']);
239
+ if(!isset($sfsi_section5['sfsi_telegramIcon_order'])){
240
+ $sfsi_section5['sfsi_telegramIcon_order'] = '11';
241
+ }
242
+ if(!isset($sfsi_section5['sfsi_vkIcon_order'])){
243
+ $sfsi_section5['sfsi_vkIcon_order'] = '12';
244
+ }
245
+ if(!isset($sfsi_section5['sfsi_okIcon_order'])){
246
+ $sfsi_section5['sfsi_okIcon_order'] = '13';
247
+ }
248
+ if(!isset($sfsi_section5['sfsi_weiboIcon_order'])){
249
+ $sfsi_section5['sfsi_weiboIcon_order'] = '14';
250
+ }
251
+ if(!isset($sfsi_section5['sfsi_wechatIcon_order'])){
252
+ $sfsi_section5['sfsi_wechatIcon_order'] = '15';
253
+ }
254
  $icons_order = array(
255
  '0' => '',
256
  $sfsi_section5['sfsi_rssIcon_order']=>'rss',
261
  $sfsi_section5['sfsi_youtubeIcon_order']=>'youtube',
262
  $sfsi_section5['sfsi_pinterestIcon_order']=>'pinterest',
263
  $sfsi_section5['sfsi_linkedinIcon_order']=>'linkedin',
264
+ $sfsi_section5['sfsi_instagramIcon_order']=>'instagram',
265
+ $sfsi_section5['sfsi_telegramIcon_order']=>'telegram',
266
+ $sfsi_section5['sfsi_vkIcon_order']=>'vk',
267
+ $sfsi_section5['sfsi_okIcon_order']=>'ok',
268
+ $sfsi_section5['sfsi_weiboIcon_order']=>'weibo',
269
+ $sfsi_section5['sfsi_wechatIcon_order']=>'wechat',
270
+
271
+
272
+ ) ;
273
  if(is_array($custom_icons_order) )
274
  {
275
  foreach($custom_icons_order as $data)
316
  case 'linkedin' : if($sfsi_section1_options['sfsi_linkedin_display']=='yes') $icons.= sfsi_prepairIcons('linkedin');
317
  break;
318
  case 'instagram' : if($sfsi_section1_options['sfsi_instagram_display']=='yes') $icons.= sfsi_prepairIcons('instagram');
319
+ break;
320
+ case 'telegram' : if($sfsi_section1_options['sfsi_telegram_display']=='yes') $icons.= sfsi_prepairIcons('telegram');
321
+ break;
322
+ case 'vk' : if($sfsi_section1_options['sfsi_vk_display']=='yes') $icons.= sfsi_prepairIcons('vk');
323
+ break;
324
+ case 'ok' : if($sfsi_section1_options['sfsi_ok_display']=='yes') $icons.= sfsi_prepairIcons('ok');
325
+ break;
326
+ case 'weibo' : if($sfsi_section1_options['sfsi_weibo_display']=='yes') $icons.= sfsi_prepairIcons('weibo');
327
+ break;
328
+ case 'wechat' : if($sfsi_section1_options['sfsi_wechat_display']=='yes') $icons.= sfsi_prepairIcons('wechat');
329
  break;
330
  case 'custom' : $icons.= sfsi_prepairIcons($icon_arry['ele']);
331
  break;
401
  $sfsi_section5_options = unserialize(get_option('sfsi_section5_options',false));
402
  $sfsi_section6_options = unserialize(get_option('sfsi_section6_options',false));
403
  $sfsi_section7_options = unserialize(get_option('sfsi_section7_options',false));
 
404
  /* get active theme */
405
  $border_radius='';
406
  $active_theme = $sfsi_section3_options['sfsi_actvite_theme'];
407
+ if(!isset($sfsi_section2_options['sfsi_wechatShare_option'])){
408
+ $sfsi_section2_options['sfsi_wechatShare_option']="yes";
409
+ }
410
  /* shuffle effect */
411
  if($sfsi_section3_options['sfsi_shuffle_icons']=='yes')
412
  {
990
 
991
  $page = isset($sfsi_section2_options['sfsi_pinterest_page']) && !empty($sfsi_section2_options['sfsi_pinterest_page']) ? $sfsi_section2_options['sfsi_pinterest_page'] : false;
992
 
993
+ $cDisplay = isset($sfsi_section4_options['sfsi_pinterest_countsDisplay']) && !empty($sfsi_section4_options['sfsi_pinterest_countsDisplay']) ? $sfsi_section4_options['sfsi_pinterest_countsDisplay'] : false;
994
 
995
+ $displayC = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts'] : false;
996
 
997
+ $cFrom = isset($sfsi_section4_options['sfsi_pinterest_countsFrom']) && !empty($sfsi_section4_options['sfsi_pinterest_countsFrom']) ? $sfsi_section4_options['sfsi_pinterest_countsFrom'] : false;
998
+ // var_dump($sfsi_section4_options['sfsi_pinterest_countsFrom'],$cFrom);die();
999
 
1000
  if($pingblog=="yes" )
1001
  {
1111
  $icon=$icons_baseUrl.$active_theme."_instagram.png";
1112
  }
1113
  break;
1114
+
1115
+ case "telegram" :
1116
+ $toolClass = "telegram_tool_bdr";
1117
+ $arrow_class = "bot_pintst_arow";
1118
+ $hoverdiv = '';
1119
+
1120
+ // $url = (isset($sfsi_section4_options['sfsi_telegram_pageURL'])) ? $sfsi_section4_options['sfsi_telegram_pageURL'] : '';
1121
+
1122
+ // $telegram_user_name = isset($sfsi_section4_options['sfsi_telegram_User']) && !empty($sfsi_section4_options['sfsi_telegram_User']) ? $sfsi_section4_options['sfsi_telegram_User'] : false;
1123
+
1124
+ //Giving alternative text to image
1125
+ if(isset($sfsi_section5_options['sfsi_telegram_MouseOverText']) && !empty($sfsi_section5_options['sfsi_telegram_MouseOverText']))
1126
+ {
1127
+ $alt_text = $sfsi_section5_options['sfsi_telegram_MouseOverText'];
1128
+
1129
+ }
1130
+ else
1131
+ {
1132
+ $alt_text = "telegram";
1133
+ }
1134
+ $messageus_icon = $visit_iconsUrl.$icon_name."_message.svg";
1135
+ $hoverdiv="";
1136
+ $cDisplay = isset($sfsi_section4_options['sfsi_telegram_countsDisplay']) && !empty($sfsi_section4_options['sfsi_telegram_countsDisplay']) ? $sfsi_section4_options['sfsi_telegram_countsDisplay']: false;
1137
+
1138
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1139
+ /* fecth no of counts if active in admin section */
1140
+ if($cDisplay=="yes" && $Displayc=="yes")
1141
+ {
1142
+
1143
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_telegram_manualCounts']);
1144
+ }
1145
+
1146
+ //Custom Skin Support {Monad}
1147
+ if($active_theme == 'custom_support')
1148
+ {
1149
+ if(get_option("telegram_skin"))
1150
+ {
1151
+ $icon = get_option("telegram_skin");
1152
+ }
1153
+ else
1154
+ {
1155
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1156
+ $icon=$icons_baseUrl."default_telegram.png";
1157
+ }
1158
+ }
1159
+ else
1160
+ {
1161
+ $icon=$icons_baseUrl.$active_theme."_telegram.png";
1162
+ }
1163
+ if(
1164
+ isset($sfsi_section2_options['sfsi_telegram_message']) && !empty($sfsi_section2_options['sfsi_telegram_message'])
1165
+ &&
1166
+ isset($sfsi_section2_options['sfsi_telegram_username']) && !empty($sfsi_section2_options['sfsi_telegram_username'])
1167
+
1168
+ ){
1169
+ $tg_username = $sfsi_section2_options['sfsi_telegram_username'];
1170
+ $tg_msg = stripslashes($sfsi_section2_options['sfsi_telegram_message']);
1171
+ $tg_msg = str_replace('"', '', str_replace("'", '', $tg_msg));
1172
+ $tg_msg = html_entity_decode(strip_tags($tg_msg), ENT_QUOTES,'UTF-8');
1173
+ $tg_msg = str_replace("%26%238230%3B", "...", $tg_msg);
1174
+ $tg_msg = rawurlencode($tg_msg);
1175
+
1176
+ $tele_url = "https://t.me/".$tg_username;
1177
+ $url = $tele_url."?&text=".urlencode($tg_msg);
1178
+ file_get_contents($url);
1179
+ }else{
1180
+ $url="#";
1181
+ $sfsi_onclick="event.preventDefault();";
1182
+ }
1183
+ if($active_theme=="glossy"){
1184
+ $sfsi_new_icons = "yes";
1185
+ }
1186
+ break;
1187
+ case "vk" :
1188
+ $toolClass = "vk_tool_bdr";
1189
+ $arrow_class = "bot_pintst_arow";
1190
+
1191
+ $url = (isset($sfsi_section2_options['sfsi_vk_pageURL'])) ? $sfsi_section2_options['sfsi_vk_pageURL'] : '';
1192
+
1193
+ // $vk_user_name = isset($sfsi_section4_options['sfsi_vk_User']) && !empty($sfsi_section4_options['sfsi_vk_User']) ? $sfsi_section4_options['sfsi_vk_User'] : false;
1194
+
1195
+ //Giving alternative text to image
1196
+ if(isset($sfsi_section5_options['sfsi_vk_MouseOverText']) && !empty($sfsi_section5_options['sfsi_vk_MouseOverText']))
1197
+ {
1198
+ $alt_text = $sfsi_section5_options['sfsi_vk_MouseOverText'];
1199
+ }
1200
+ else
1201
+ {
1202
+ $alt_text = "vk";
1203
+ }
1204
+
1205
+ $hoverdiv="";
1206
+
1207
+ $cDisplay = isset($sfsi_section4_options['sfsi_vk_countsDisplay']) && !empty($sfsi_section4_options['sfsi_vk_countsDisplay']) ? $sfsi_section4_options['sfsi_vk_countsDisplay']: false;
1208
+
1209
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1210
+
1211
+ /* fecth no of counts if active in admin section */
1212
+ if($cDisplay=="yes" && $Displayc=="yes")
1213
+ {
1214
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_vk_manualCounts']);
1215
+ }
1216
+
1217
+ //Custom Skin Support {Monad}
1218
+ if($active_theme == 'custom_support')
1219
+ {
1220
+ if(get_option("vk_skin"))
1221
+ {
1222
+ $icon = get_option("vk_skin");
1223
+ }
1224
+ else
1225
+ {
1226
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1227
+ $icon=$icons_baseUrl."default_vk.png";
1228
+ }
1229
+ }
1230
+ else
1231
+ {
1232
+ $icon=$icons_baseUrl.$active_theme."_vk.png";
1233
+ }
1234
+ if($active_theme=="glossy"){
1235
+ $sfsi_new_icons = "yes";
1236
+ }
1237
+
1238
+ break;
1239
+ case "ok" :
1240
+ $toolClass = "ok_tool_bdr";
1241
+ $arrow_class = "bot_pintst_arow";
1242
+
1243
+ $url = (isset($sfsi_section2_options['sfsi_ok_pageURL'])) ? $sfsi_section2_options['sfsi_ok_pageURL'] : '';
1244
+
1245
+ // $ok_user_name = isset($sfsi_section4_options['sfsi_ok_User']) && !empty($sfsi_section4_options['sfsi_ok_User']) ? $sfsi_section4_options['sfsi_ok_User'] : false;
1246
+
1247
+ //Giving alternative text to image
1248
+ if(isset($sfsi_section5_options['sfsi_ok_MouseOverText']) && !empty($sfsi_section5_options['sfsi_ok_MouseOverText']))
1249
+ {
1250
+ $alt_text = $sfsi_section5_options['sfsi_ok_MouseOverText'];
1251
+ }
1252
+ else
1253
+ {
1254
+ $alt_text = "ok";
1255
+ }
1256
+
1257
+ $hoverdiv="";
1258
+
1259
+ $cDisplay = isset($sfsi_section4_options['sfsi_ok_countsDisplay']) && !empty($sfsi_section4_options['sfsi_ok_countsDisplay']) ? $sfsi_section4_options['sfsi_ok_countsDisplay']: false;
1260
+
1261
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1262
+
1263
+
1264
+ /* fecth no of counts if active in admin section */
1265
+ if($cDisplay=="yes" && $Displayc=="yes")
1266
+ {
1267
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_ok_manualCounts']);
1268
+ }
1269
+
1270
+ //Custom Skin Support {Monad}
1271
+ if($active_theme == 'custom_support')
1272
+ {
1273
+ if(get_option("ok_skin"))
1274
+ {
1275
+ $icon = get_option("ok_skin");
1276
+ }
1277
+ else
1278
+ {
1279
+
1280
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1281
+ $icon=$icons_baseUrl."default_ok.png";
1282
+ }
1283
+ }
1284
+ else
1285
+ {
1286
+ $icon=$icons_baseUrl.$active_theme."_ok.png";
1287
+ }
1288
+ if($active_theme=="glossy"){
1289
+ $sfsi_new_icons = "yes";
1290
+ }
1291
+
1292
+ break;
1293
+ case "weibo" :
1294
+ $toolClass = "weibo_tool_bdr";
1295
+ $arrow_class = "bot_pintst_arow";
1296
+
1297
+ $url = (isset($sfsi_section2_options['sfsi_weibo_pageURL'])) ? $sfsi_section2_options['sfsi_weibo_pageURL'] : '';
1298
+
1299
+ // $weibo_user_name = isset($sfsi_section4_options['sfsi_weibo_User']) && !empty($sfsi_section4_options['sfsi_weibo_User']) ? $sfsi_section4_options['sfsi_weibo_User'] : false;
1300
+
1301
+ //Giving alternative text to image
1302
+ if(isset($sfsi_section5_options['sfsi_weibo_MouseOverText']) && !empty($sfsi_section5_options['sfsi_weibo_MouseOverText']))
1303
+ {
1304
+ $alt_text = $sfsi_section5_options['sfsi_weibo_MouseOverText'];
1305
+ }
1306
+ else
1307
+ {
1308
+ $alt_text = "weibo";
1309
+ }
1310
+
1311
+ $hoverdiv="";
1312
+
1313
+ $cDisplay = isset($sfsi_section4_options['sfsi_weibo_countsDisplay']) && !empty($sfsi_section4_options['sfsi_weibo_countsDisplay']) ? $sfsi_section4_options['sfsi_weibo_countsDisplay']: false;
1314
+
1315
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1316
+
1317
+ /* fecth no of counts if active in admin section */
1318
+ if($cDisplay=="yes" && $Displayc=="yes")
1319
+ {
1320
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_weibo_manualCounts']);
1321
+ }
1322
+
1323
+ //Custom Skin Support {Monad}
1324
+ if($active_theme == 'custom_support')
1325
+ {
1326
+ if(get_option("weibo_skin"))
1327
+ {
1328
+ $icon = get_option("weibo_skin");
1329
+ }
1330
+ else
1331
+ {
1332
+
1333
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1334
+ $icon=$icons_baseUrl."default_weibo.png";
1335
+ }
1336
+ }
1337
+ else
1338
+ {
1339
+ $icon=$icons_baseUrl.$active_theme."_weibo.png";
1340
+ }
1341
+ if($active_theme=="glossy"){
1342
+ $sfsi_new_icons = "yes";
1343
+ }
1344
+
1345
+ break;
1346
+ case "wechat" :
1347
+ $toolClass = "wechat_tool_bdr";
1348
+ $arrow_class = "bot_pintst_arow";
1349
+
1350
+ // $url = (isset($sfsi_section2_options['sfsi_wechat_pageURL'])) ? $sfsi_section2_options['sfsi_wechat_pageURL'] : '';
1351
+
1352
+ // $wechat_user_name = isset($sfsi_section4_options['sfsi_wechat_User']) && !empty($sfsi_section4_options['sfsi_wechat_User']) ? $sfsi_section4_options['sfsi_wechat_User'] : false;
1353
+
1354
+ //Giving alternative text to image
1355
+ if(isset($sfsi_section5_options['sfsi_wechat_MouseOverText']) && !empty($sfsi_section5_options['sfsi_wechat_MouseOverText']))
1356
+ {
1357
+ $alt_text = $sfsi_section5_options['sfsi_wechat_MouseOverText'];
1358
+ }
1359
+ else
1360
+ {
1361
+ $alt_text = "wechat";
1362
+ }
1363
+
1364
+ $hoverdiv="";
1365
+
1366
+ $cDisplay = isset($sfsi_section4_options['sfsi_wechat_countsDisplay']) && !empty($sfsi_section4_options['sfsi_wechat_countsDisplay']) ? $sfsi_section4_options['sfsi_wechat_countsDisplay']: false;
1367
+
1368
+ $Displayc = isset($sfsi_section4_options['sfsi_display_counts']) && !empty($sfsi_section4_options['sfsi_display_counts']) ? $sfsi_section4_options['sfsi_display_counts']: false;
1369
+
1370
+ /* fecth no of counts if active in admin section */
1371
+ if($cDisplay=="yes" && $Displayc=="yes")
1372
+ {
1373
+ $counts = $socialObj->format_num($sfsi_section4_options['sfsi_wechat_manualCounts']);
1374
+ }
1375
+ $url = "weixin://dl/chat";
1376
+ if(
1377
+ (isset($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $sfsi_section2_options['sfsi_wechatFollow_option']) &&
1378
+
1379
+ (isset($sfsi_section2_options['sfsi_wechatShare_option']) && "yes" == $sfsi_section2_options['sfsi_wechatShare_option'])
1380
+ ){
1381
+ $hoverSHow = 1;
1382
+ $hoverdiv = "";
1383
+
1384
+ if(isset($sfsi_section2_options['sfsi_wechatFollow_option']) && !empty($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $option2['sfsi_wechatFollow_option']
1385
+
1386
+ && isset($sfsi_section2_options['sfsi_wechat_scan_image']) && !empty($sfsi_section2_options['sfsi_wechat_scan_image'])){
1387
+
1388
+ $image_url = $sfsi_section2_options['sfsi_wechat_scan_image'];
1389
+
1390
+ $hoverdiv.="<div class='icon1' style='text-align:center'><a href='' onclick='event.preventDefault();sfsi_wechat_follow(\"".$sfsi_section2_options['sfsi_wechat_scan_image']."\")' ><img nopin=nopin alt='".$alt_text."' title='".$alt_text."' src='".$visit_icon."' style='height:25px' /></a></div>";
1391
+ }
1392
+
1393
+ if(isset($sfsi_section2_options['sfsi_wechatShare_option']) && !empty($sfsi_section2_options['sfsi_wechatShare_option'])
1394
+ && "yes" == $sfsi_section2_options['sfsi_wechatShare_option']){
1395
+
1396
+ $hoverdiv.="<div class='icon2' style='text-align:center' ><a href='".$url."' ".sfsi_checkNewWindow($url)." onclick='event.preventDefault();sfsi_wechat_share(\"".$sfsi_section2_options['sfsi_wechat_scan_image']."\")' ><img nopin=nopin alt='".$alt_text."' title='".$alt_text."' src='".$share_icon."' style='height:25px' /></a></div>";
1397
+ }
1398
+ }else{
1399
+
1400
+
1401
+ if(isset($sfsi_section2_options['sfsi_wechatFollow_option']) && !empty($sfsi_section2_options['sfsi_wechatFollow_option']) && "yes" == $sfsi_section2_options['sfsi_wechatFollow_option']
1402
+
1403
+ && isset($sfsi_section2_options['sfsi_wechat_scan_image']) && !empty($sfsi_section2_options['sfsi_wechat_scan_image'])){
1404
+
1405
+ $sfsi_onclick="event.preventDefault();sfsi_wechat_follow(\'".$sfsi_section2_options['sfsi_wechat_scan_image']."\')" ;
1406
+ }
1407
+
1408
+ if(isset($sfsi_section2_options['sfsi_wechatShare_option']) && 'yes'==($sfsi_section2_options['sfsi_wechatShare_option'])
1409
+ && "yes" == $sfsi_section2_options['sfsi_wechatShare_option']){
1410
+ if(!wp_is_mobile()){
1411
+ $sfsi_onclick="event.preventDefault();sfsi_wechat_share('".trim($current_url)."')" ;
1412
+ }else{
1413
+ $sfsi_onclick='';
1414
+ if(wp_is_mobile()){
1415
+ $sfsi_onclick = "console.log(event);event.stopPropagation&&event.stopPropagation();";
1416
+ }
1417
+ $sfsi_onclick.="event.preventDefault();sfsi_mobile_wechat_share('".trim($current_url)."')" ;
1418
+
1419
+
1420
+ }
1421
+ }
1422
+ $hoverSHow = 0;
1423
+ }
1424
+ //Custom Skin Support {Monad}
1425
+ if($active_theme == 'custom_support')
1426
+ {
1427
+ if(get_option("wechat_skin"))
1428
+ {
1429
+ $icon = get_option("wechat_skin");
1430
+ }
1431
+ else
1432
+ {
1433
+
1434
+ $icons_baseUrl = SFSI_PLUGURL."images/icons_theme/default/";
1435
+ $icon=$icons_baseUrl."default_wechat.png";
1436
+ }
1437
+ }
1438
+ else
1439
+ {
1440
+ $icon=$icons_baseUrl.$active_theme."_wechat.png";
1441
+ }
1442
+ if($active_theme=="glossy"){
1443
+ $sfsi_new_icons = "yes";
1444
+ }
1445
+
1446
+ break;
1447
 
1448
+
1449
  case "linkedin" :
1450
  $width = 66;
1451
  $toolClass = "linkedin_tool_bdr";
1661
  $new_window = sfsi_checkNewWindow();
1662
  $url = $url;
1663
  }
1664
+ if(!isset($sfsi_new_icons)){
1665
+ $sfsi_new_icons =false;
1666
+ }
1667
+ if($sfsi_new_icons){
1668
+ $margin_bot="4px;";
1669
+ }else{
1670
+ $margin_bot="5px;";
1671
+ }
1672
  if($sfsi_section4_options['sfsi_display_counts']=="yes")
1673
  {
1674
  $margin_bot = "30px;";
1675
  }
1676
  if(isset($icon) && !empty($icon) && filter_var($icon, FILTER_VALIDATE_URL))
1677
  {
1678
+ $icons.= "<div style='width:".$icon_width."px; height:".$icon_width."px;margin-left:".$icons_space."px;margin-bottom:".$margin_bot." ".($sfsi_new_icons?'padding:0px':'')."' class='".$itemselector." ".$cmcls."' >";
1679
 
1680
  $icons.= "<div class='".$innrselector."'>";
1681
 
1682
+ $icons.= "<a class='".$class." sficn' effect='".$mouse_hover_effect."' $new_window href='".$url."' ".(('vk'!==$icon_name)?"id='sfsiid_".$icon_name."'":'')." alt='".$alt_text."' style='opacity:".$icon_opacity."' ".(isset($sfsi_onclick)?'onclick="'.$sfsi_onclick.'"':'')." >";
1683
+ $icons.= "<img alt='".$alt_text."' title='".$alt_text."' src='".$icon."' width='".$icons_size."' height='".$icons_size."' style='".$border_radius.$padding_top."' class='sfcm sfsi_wicon ".(in_array($icon_name,array('telegram','wechat'))?('sfsi_'.$icon_name.'_wicon sfsi_click_wicon'):(''))."' effect='".$mouse_hover_effect."' />";
1684
  $icons.= '</a>';
1685
  if(isset($counts) && $counts!='')
1686
  {
1713
  return '';
1714
  }
1715
  }
1716
+
1717
+
1718
  ?>
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: socialdude
3
  Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 3.5
5
  Tested up to: 5.1
6
- Stable tag: 2.2.0
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -67,7 +67,6 @@ We released a Premium Plugin with many more exciting features:
67
 
68
  Have a look at the [Premium Plugin features](https://www.ultimatelysocial.com/usm-premium/)
69
 
70
- Note: this plugin uses the third party provider SpecificFeeds.com for the subscription feature, enabling you to allow your visitors to subscribe to your site and get new posts automatically by email. Upon installation of the plugin a feed will be set up on SpecificFeeds, transmitting your IP address. This is required for this feature to work.
71
 
72
  == Installation ==
73
  Extract the zip file and drop the contents into the wp-content/plugins/ directory of your WordPress installation. Then activate the plugin from the plugins page.
@@ -275,20 +274,30 @@ You cannot use the same plugin twice, however you can install both the USM as we
275
 
276
 
277
  == Changelog ==
 
 
 
 
 
 
 
 
 
 
278
  = 2.2.0 =
279
- * Solved: Critical security patch.
280
 
281
  = 2.1.9 =
282
- * Solved: Security patch.
283
 
284
  = 2.1.8 =
285
- * Solved: Security update.
286
 
287
  = 2.1.7 =
288
- * Solved: Save button not working.
289
 
290
  = 2.1.6 =
291
- * Solved: Compatablity issue with older versions.
292
 
293
  = 2.1.5 =
294
  * Solved: google plus is deprecated
@@ -775,5 +784,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
775
 
776
  == Upgrade Notice ==
777
 
778
- = 2.2.0 =
779
  Please upgrade
3
  Tags: social media, share, buttons, social widget, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 3.5
5
  Tested up to: 5.1
6
+ Stable tag: 2.2.2
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
67
 
68
  Have a look at the [Premium Plugin features](https://www.ultimatelysocial.com/usm-premium/)
69
 
 
70
 
71
  == Installation ==
72
  Extract the zip file and drop the contents into the wp-content/plugins/ directory of your WordPress installation. Then activate the plugin from the plugins page.
274
 
275
 
276
  == Changelog ==
277
+ = 2.2.2 =
278
+ * Solved: More icons updated
279
+ * Solved: Icon backgrounds updated
280
+ * Solved: Custom icon upload issue
281
+
282
+ = 2.2.1 =
283
+ * Solved: Woocomerce conflict resolved
284
+ * Solved: Alerts in case of conflict
285
+ * New Feature: More icons for free plugin
286
+
287
  = 2.2.0 =
288
+ * Solved: Critical Security Patch.
289
 
290
  = 2.1.9 =
291
+ * Solved: Security Patch.
292
 
293
  = 2.1.8 =
294
+ * Solved: security update.
295
 
296
  = 2.1.7 =
297
+ * Solved: save button not working.
298
 
299
  = 2.1.6 =
300
+ * Solved: compatablity issue with older versions.
301
 
302
  = 2.1.5 =
303
  * Solved: google plus is deprecated
784
 
785
  == Upgrade Notice ==
786
 
787
+ = 2.2.2 =
788
  Please upgrade
ultimate_social_media_icons.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://ultimatelysocial.com
5
  Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
6
  Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
- Version: 2.2.0
9
  License: GPLv2 or later
10
  */
11
 
@@ -65,7 +65,7 @@ register_activation_hook(__FILE__, 'sfsi_activate_plugin' );
65
  register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
66
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
67
 
68
- if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.20)
69
  {
70
  add_action("init", "sfsi_update_plugin");
71
  }
@@ -159,7 +159,7 @@ function sfsi_checkmetas()
159
  }
160
  if ( is_admin() )
161
  {
162
- sfsi_checkmetas();
163
  }
164
 
165
  add_action('wp_head', 'ultimatefbmetatags');
@@ -526,9 +526,8 @@ function sfsi_admin_notice()
526
 
527
  div.sfsi_show_premium_notification{
528
  float: none;
529
- display:inline-block;
530
- width: 98.2%;
531
- margin-left: 37px;
532
  margin-top: 15px;
533
  padding: 8px;
534
  background-color: #38B54A;
@@ -552,12 +551,12 @@ function sfsi_admin_notice()
552
  cursor: pointer;
553
  }
554
  </style>
555
- <div class="updated sfsi_show_premium_notification" style="<?php //echo $style; ?>">
556
- <div class="alignleft" style="margin: 9px 0;">
557
  BIG NEWS : There is now a <b><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank">Premium Ultimate Social Media Plugin</a></b> available with many more cool features : <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank">Check it out</a>
558
  </div>
559
- <div class="alignright">
560
- <form method="post" class="sfsi_premiumNoticeDismiss">
561
  <input type="hidden" name="sfsi-dismiss-premiumNotice" value="true">
562
  <input type="submit" name="dismiss" value="Dismiss" />
563
  </form>
@@ -603,11 +602,11 @@ function sfsi_admin_notice()
603
  }
604
  </style>
605
  <div class="updated sfsi_show_premium_cumulative_count_notification">
606
- <div class="alignleft" style="margin: 9px 0;">
607
  <b>Recently switched to https?</b> If you don’t want to lose the Facebook share & like counts <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=https_share_counts&utm_medium=banner" target="_blank">have a look at our Premium Plugin</a>, we found a fix for that: <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=https_share_counts&utm_medium=banner" target="_blank">Check it out</a>
608
  </div>
609
- <div class="alignright">
610
- <form method="post" class="sfsi_premiumCumulativeCountNoticeDismiss">
611
  <input type="hidden" name="sfsi-dismiss-premiumCumulativeCountNoticeDismiss" value="true">
612
  <input type="submit" name="dismiss" value="Dismiss" />
613
  </form>
@@ -692,8 +691,8 @@ function sfsi_admin_notice()
692
 
693
  </style>
694
 
695
- <div class="updated sfsi_show_phperror_notification" style="<?php echo $style; ?>background-color: #D22B2F; color: #fff; font-size: 18px; border-left-color: #D22B2F;">
696
- <div class="alignleft" style="margin: 9px 0;">
697
 
698
  <p class="sfsi_show_notifictaionpragraph">
699
  We noticed you are running your site on a PHP version older than 5.4. Please upgrade to a more recent version. This is not only important for running the Ultimate Social Media Plugin, but also for security reasons in general.
@@ -702,8 +701,8 @@ function sfsi_admin_notice()
702
  </p>
703
 
704
  </div>
705
- <div class="alignright">
706
- <form method="post" class="sfsi_phperrorNoticeDismiss">
707
  <input type="hidden" name="sfsi-dismiss-phperrorNotice" value="true">
708
  <input type="submit" name="dismiss" value="Dismiss" />
709
  </form>
@@ -884,12 +883,12 @@ function sfsi_get_language_detection_notice(){
884
  form.sfsi_languageNoticeDismiss{display: inline-block;margin: 5px 0 0;vertical-align: middle;}
885
  .sfsi_languageNoticeDismiss input[type='submit']{background-color: transparent;border: medium none;margin: 0 5px 0 0px;padding: 0;cursor: pointer;font-size: 22px;}
886
  </style>
887
- <div class="notice notice-info" style="<?php echo $style; ?>">
888
- <div class="alignleft" style="margin: 9px 0;">
889
  <?php echo $text; ?>
890
  </div>
891
- <div class="alignright">
892
- <form method="post" class="sfsi_languageNoticeDismiss">
893
  <input type="hidden" name="sfsi-dismiss-languageNotice" value="true">
894
  <input type="submit" name="dismiss" value="&times;" />
895
  </form>
@@ -1421,4 +1420,5 @@ function sfsi_dismiss_error_reporting_notice(){
1421
  }
1422
  add_action( 'wp_ajax_sfsi_dismiss_error_reporting_notice', 'sfsi_dismiss_error_reporting_notice' );
1423
 
1424
- // ********************************* Notice for error reporting CLOSE *******************************//
 
5
  Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
6
  Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
+ Version: 2.2.2
9
  License: GPLv2 or later
10
  */
11
 
65
  register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
66
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
67
 
68
+ if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 2.22)
69
  {
70
  add_action("init", "sfsi_update_plugin");
71
  }
159
  }
160
  if ( is_admin() )
161
  {
162
+ add_action('after_setup_theme', 'sfsi_checkmetas');
163
  }
164
 
165
  add_action('wp_head', 'ultimatefbmetatags');
526
 
527
  div.sfsi_show_premium_notification{
528
  float: none;
529
+ display:block;
530
+ margin-left: 15px;
 
531
  margin-top: 15px;
532
  padding: 8px;
533
  background-color: #38B54A;
551
  cursor: pointer;
552
  }
553
  </style>
554
+ <div class="updated sfsi_show_premium_notification" style="<?php echo isset($style)?$style:''; ?>">
555
+ <div style="margin: 9px 0; ">
556
  BIG NEWS : There is now a <b><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank">Premium Ultimate Social Media Plugin</a></b> available with many more cool features : <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=notification_banner&utm_medium=banner" target="_blank">Check it out</a>
557
  </div>
558
+ <div style="text-align:right;margin-top:-40px;">
559
+ <form method="post" class="sfsi_premiumNoticeDismiss" style="padding-bottom:8px;">
560
  <input type="hidden" name="sfsi-dismiss-premiumNotice" value="true">
561
  <input type="submit" name="dismiss" value="Dismiss" />
562
  </form>
602
  }
603
  </style>
604
  <div class="updated sfsi_show_premium_cumulative_count_notification">
605
+ <div style="margin: 9px 0;">
606
  <b>Recently switched to https?</b> If you don’t want to lose the Facebook share & like counts <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=https_share_counts&utm_medium=banner" target="_blank">have a look at our Premium Plugin</a>, we found a fix for that: <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=https_share_counts&utm_medium=banner" target="_blank">Check it out</a>
607
  </div>
608
+ <div style="text-align: right;margin-top:-30px" >
609
+ <form method="post" class="sfsi_premiumCumulativeCountNoticeDismiss" style="padding:10px">
610
  <input type="hidden" name="sfsi-dismiss-premiumCumulativeCountNoticeDismiss" value="true">
611
  <input type="submit" name="dismiss" value="Dismiss" />
612
  </form>
691
 
692
  </style>
693
 
694
+ <div class="updated sfsi_show_phperror_notification" style="<?php echo (isset($style)?$style:''); ?>background-color: #D22B2F; color: #fff; font-size: 18px; border-left-color: #D22B2F;">
695
+ <div style="margin: 9px 0;">
696
 
697
  <p class="sfsi_show_notifictaionpragraph">
698
  We noticed you are running your site on a PHP version older than 5.4. Please upgrade to a more recent version. This is not only important for running the Ultimate Social Media Plugin, but also for security reasons in general.
701
  </p>
702
 
703
  </div>
704
+ <div style="text-align:right;margin-top:-30px" >
705
+ <form method="post" class="sfsi_phperrorNoticeDismiss" style="padding-bottom:10px">
706
  <input type="hidden" name="sfsi-dismiss-phperrorNotice" value="true">
707
  <input type="submit" name="dismiss" value="Dismiss" />
708
  </form>
883
  form.sfsi_languageNoticeDismiss{display: inline-block;margin: 5px 0 0;vertical-align: middle;}
884
  .sfsi_languageNoticeDismiss input[type='submit']{background-color: transparent;border: medium none;margin: 0 5px 0 0px;padding: 0;cursor: pointer;font-size: 22px;}
885
  </style>
886
+ <div class="notice notice-info" style="<?php echo isset($style)?$style:''; ?>">
887
+ <div style="margin: 9px 0;">
888
  <?php echo $text; ?>
889
  </div>
890
+ <div style="text-align: right;margin-top:-30px">
891
+ <form method="post" class="sfsi_languageNoticeDismiss" style="padding-bottom:10px">
892
  <input type="hidden" name="sfsi-dismiss-languageNotice" value="true">
893
  <input type="submit" name="dismiss" value="&times;" />
894
  </form>
1420
  }
1421
  add_action( 'wp_ajax_sfsi_dismiss_error_reporting_notice', 'sfsi_dismiss_error_reporting_notice' );
1422
 
1423
+ // ********************************* Notice for error reporting CLOSE *******************************//
1424
+
views/sfsi_option_view1.php CHANGED
@@ -23,6 +23,21 @@
23
  : 'no';
24
  $option1['sfsi_pinterest_display'] = (isset($option1['sfsi_pinterest_display']))
25
  ? sanitize_text_field($option1['sfsi_pinterest_display'])
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
26
  : 'no';
27
  $option1['sfsi_linkedin_display'] = (isset($option1['sfsi_linkedin_display']))
28
  ? sanitize_text_field($option1['sfsi_linkedin_display'])
@@ -143,6 +158,56 @@
143
  </div>
144
  </li>
145
  <!-- END INSTAGRAM ICON -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
 
147
 
148
  <!-- GOOGLE ICON -->
@@ -247,6 +312,13 @@
247
  </span>
248
  <span class="sfsicls_prem_text">Print</span>
249
  </div>
 
 
 
 
 
 
 
250
  </div>
251
  <div class="sfsi_premium_row">
252
  <div class = "sfsi_prem_cmn_rowlisting" >
@@ -283,10 +355,6 @@
283
  </span>
284
  <span class="sfsicls_prem_text">Blogger</span>
285
  </div>
286
-
287
-
288
- </div>
289
- <div class="sfsi_premium_row">
290
  <div class = "sfsi_prem_cmn_rowlisting" >
291
  <span>
292
  <img src="<?php echo SFSI_PLUGURL.'images/reddit.png';?>" id="CImg" />
@@ -294,6 +362,10 @@
294
  <span class="sfsicls_prem_text">Reddit</span>
295
  </div>
296
 
 
 
 
 
297
  <div class = "sfsi_prem_cmn_rowlisting" >
298
  <span>
299
  <img src="<?php echo SFSI_PLUGURL.'images/vimeo.png';?>" id="CImg" />
@@ -321,21 +393,15 @@
321
  </span>
322
  <span class="sfsicls_prem_text">Xing</span>
323
  </div>
324
- </div>
325
- <div class="sfsi_premium_row">
326
  <div class = "sfsi_prem_cmn_rowlisting" >
327
  <span>
328
- <img src="<?php echo SFSI_PLUGURL.'images/vk.png';?>" id="CImg" />
329
- </span>
330
- <span class="sfsicls_prem_text">VK</span>
331
- </div>
332
-
333
- <div class = "sfsi_prem_cmn_rowlisting" >
334
- <span>
335
- <img src="<?php echo SFSI_PLUGURL.'images/telegram.png';?>" id="CImg" />
336
  </span>
337
- <span class="sfsicls_prem_text">Telegram</span>
338
  </div>
 
 
 
339
 
340
  <div class = "sfsi_prem_cmn_rowlisting" >
341
  <span>
@@ -358,19 +424,11 @@
358
  <span class="sfsicls_prem_text">Steam</span>
359
  </div>
360
  </div>
361
- <div class="sfsi_premium_row">
362
- <div class = "sfsi_prem_cmn_rowlisting" >
363
- <span>
364
- <img src="<?php echo SFSI_PLUGURL.'images/twitch.png';?>" id="CImg" />
365
- </span>
366
- <span class="sfsicls_prem_text">Twitch</span>
367
- </div>
368
- </div>
369
 
370
  <!--<div class="sfsi_need_another_one_link">
371
  <p>Need another one?<a href="mailto:biz@ultimatelysocial.com"> Tell us</a></p>
372
  </div>-->
373
- <div class="sfsi_need_another_tell_us">
374
  <a href="https://www.ultimatelysocial.com/all-platforms/" target="_blank">...and many more! See them here</a>
375
  <!--<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_platforms&utm_medium=banner" target="_blank">See all features Premium Plugin</a>-->
376
  </div>
23
  : 'no';
24
  $option1['sfsi_pinterest_display'] = (isset($option1['sfsi_pinterest_display']))
25
  ? sanitize_text_field($option1['sfsi_pinterest_display'])
26
+ : 'no';
27
+ $option1['sfsi_telegram_display'] = (isset($option1['sfsi_telegram_display']))
28
+ ? sanitize_text_field($option1['sfsi_telegram_display'])
29
+ : 'no';
30
+ $option1['sfsi_vk_display'] = (isset($option1['sfsi_vk_display']))
31
+ ? sanitize_text_field($option1['sfsi_vk_display'])
32
+ : 'no';
33
+ $option1['sfsi_ok_display'] = (isset($option1['sfsi_ok_display']))
34
+ ? sanitize_text_field($option1['sfsi_ok_display'])
35
+ : 'no';
36
+ $option1['sfsi_wechat_display'] = (isset($option1['sfsi_wechat_display']))
37
+ ? sanitize_text_field($option1['sfsi_wechat_display'])
38
+ : 'no';
39
+ $option1['sfsi_weibo_display'] = (isset($option1['sfsi_weibo_display']))
40
+ ? sanitize_text_field($option1['sfsi_weibo_display'])
41
  : 'no';
42
  $option1['sfsi_linkedin_display'] = (isset($option1['sfsi_linkedin_display']))
43
  ? sanitize_text_field($option1['sfsi_linkedin_display'])
158
  </div>
159
  </li>
160
  <!-- END INSTAGRAM ICON -->
161
+
162
+ <!-- TELEGRAM ICON -->
163
+ <li>
164
+ <div class="radio_section tb_4_ck"><input name="sfsi_telegram_display" <?php echo ($option1['sfsi_telegram_display']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_telegram_display" type="checkbox" value="yes" class="styled" /></div>
165
+ <span class="sfsicls_telegram">Telegram</span>
166
+ <div class="right_info">
167
+ <p><span>It depends:</span> Show this icon if you have a Telegram account.</p>
168
+ </div>
169
+ </li>
170
+ <!-- END TELEGRAM ICON -->
171
+
172
+ <!-- VK ICON -->
173
+ <li>
174
+ <div class="radio_section tb_4_ck"><input name="sfsi_vk_display" <?php echo ($option1['sfsi_vk_display']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_vk_display" type="checkbox" value="yes" class="styled" /></div>
175
+ <span class="sfsicls_vk">VK</span>
176
+ <div class="right_info">
177
+ <p><span>It depends:</span> Show this icon if you have a vk account.</p>
178
+ </div>
179
+ </li>
180
+ <!-- END VK ICON -->
181
+
182
+ <!-- OK ICON -->
183
+ <li>
184
+ <div class="radio_section tb_4_ck"><input name="sfsi_ok_display" <?php echo ($option1['sfsi_ok_display']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_ok_display" type="checkbox" value="yes" class="styled" /></div>
185
+ <span class="sfsicls_ok">Ok</span>
186
+ <div class="right_info">
187
+ <p><span>It depends:</span> Show this icon if you have a Ok account.</p>
188
+ </div>
189
+ </li>
190
+ <!-- END OK ICON -->
191
+
192
+ <!-- WECHAT ICON -->
193
+ <li>
194
+ <div class="radio_section tb_4_ck"><input name="sfsi_wechat_display" <?php echo ($option1['sfsi_wechat_display']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_wechat_display" type="checkbox" value="yes" class="styled" /></div>
195
+ <span class="sfsicls_wechat">WeChat</span>
196
+ <div class="right_info">
197
+ <p><span>It depends:</span> Show this icon if you have a WeChat account.</p>
198
+ </div>
199
+ </li>
200
+ <!-- END WECHAT ICON -->
201
+
202
+ <!-- WEIBO ICON -->
203
+ <li>
204
+ <div class="radio_section tb_4_ck"><input name="sfsi_weibo_display" <?php echo ($option1['sfsi_weibo_display']=='yes') ? 'checked="true"' : '' ;?> id="sfsi_weibo_display" type="checkbox" value="yes" class="styled" /></div>
205
+ <span class="sfsicls_weibo">Weibo</span>
206
+ <div class="right_info">
207
+ <p><span>It depends:</span> Show this icon if you have a Weibo account.</p>
208
+ </div>
209
+ </li>
210
+ <!-- END INSTAGRAM ICON -->
211
 
212
 
213
  <!-- GOOGLE ICON -->
312
  </span>
313
  <span class="sfsicls_prem_text">Print</span>
314
  </div>
315
+
316
+ <div class = "sfsi_prem_cmn_rowlisting" >
317
+ <span>
318
+ <img src="<?php echo SFSI_PLUGURL.'images/messenger.png';?>" id="CImg" />
319
+ </span>
320
+ <span class="sfsicls_prem_text">Messenger</span>
321
+ </div>
322
  </div>
323
  <div class="sfsi_premium_row">
324
  <div class = "sfsi_prem_cmn_rowlisting" >
355
  </span>
356
  <span class="sfsicls_prem_text">Blogger</span>
357
  </div>
 
 
 
 
358
  <div class = "sfsi_prem_cmn_rowlisting" >
359
  <span>
360
  <img src="<?php echo SFSI_PLUGURL.'images/reddit.png';?>" id="CImg" />
362
  <span class="sfsicls_prem_text">Reddit</span>
363
  </div>
364
 
365
+ </div>
366
+ <div class="sfsi_premium_row">
367
+
368
+
369
  <div class = "sfsi_prem_cmn_rowlisting" >
370
  <span>
371
  <img src="<?php echo SFSI_PLUGURL.'images/vimeo.png';?>" id="CImg" />
393
  </span>
394
  <span class="sfsicls_prem_text">Xing</span>
395
  </div>
 
 
396
  <div class = "sfsi_prem_cmn_rowlisting" >
397
  <span>
398
+ <img src="<?php echo SFSI_PLUGURL.'images/twitch.png';?>" id="CImg" />
 
 
 
 
 
 
 
399
  </span>
400
+ <span class="sfsicls_prem_text">Twitch</span>
401
  </div>
402
+ </div>
403
+
404
+ <div class="sfsi_premium_row" style="clear:none">
405
 
406
  <div class = "sfsi_prem_cmn_rowlisting" >
407
  <span>
424
  <span class="sfsicls_prem_text">Steam</span>
425
  </div>
426
  </div>
 
 
 
 
 
 
 
 
427
 
428
  <!--<div class="sfsi_need_another_one_link">
429
  <p>Need another one?<a href="mailto:biz@ultimatelysocial.com"> Tell us</a></p>
430
  </div>-->
431
+ <div class="sfsi_need_another_tell_us" style="padding-top:20px">
432
  <a href="https://www.ultimatelysocial.com/all-platforms/" target="_blank">...and many more! See them here</a>
433
  <!--<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_platforms&utm_medium=banner" target="_blank">See all features Premium Plugin</a>-->
434
  </div>
views/sfsi_option_view2.php CHANGED
@@ -109,7 +109,37 @@ $option2['sfsi_linkedin_recommendCompany'] = (isset($option2['sfsi_linkedin_rec
109
  $option2['sfsi_linkedin_recommendProductId'] = (isset($option2['sfsi_linkedin_recommendProductId']))
110
  ? intval($option2['sfsi_linkedin_recommendProductId'])
111
  : '';
112
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  if("name"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])){
114
 
115
  if(isset($option2['sfsi_ytube_user']) && !empty($option2['sfsi_ytube_user'])){
@@ -221,7 +251,7 @@ if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeus
221
 
222
 
223
  <div class ="sfsi_new_prmium_follw">
224
- <p><b>New:</b> In our Premium Plugin you can now give your email icon other functions too, e.g. <b>contact you </b>(email), <b>share by email,</b> and <b>link to a certain page </b>(e.g. your contact form or newsletter sign-up site). <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_functions_email_icon&utm_medium=banner" target="_blank">See all features</a></p>
225
  </div>
226
  </div>
227
  </div>
@@ -240,7 +270,7 @@ if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeus
240
 
241
  <p class="radio_section fb_url extra_sp"><input name="sfsi_facebookShare_option" <?php echo ($option2['sfsi_facebookShare_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /><label>Share my blog with friends (on Facebook)</label></p>
242
  <div class="sfsi_new_prmium_follw">
243
- <p ><b>New:</b> In our Premium Plugin you can also allow users to follow you on Facebook <b>directly from your site</b> (without leaving your page, increasing followers). <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=direct_follow_facebook&utm_medium=banner" target="_blank">See all features</a></p>
244
  </div>
245
  </div>
246
  </div>
@@ -257,9 +287,9 @@ if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeus
257
 
258
  <div class="radio_section fb_url twt_fld"><input name="sfsi_twitter_followme" <?php echo ($option2['sfsi_twitter_followme']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /><label>Follow me on Twitter:</label><input name="sfsi_twitter_followUserName" type="text" value="<?php echo ($option2['sfsi_twitter_followUserName']!='') ? $option2['sfsi_twitter_followUserName'] : '' ;?>" placeholder="my_twitter_name" class="add" /></div>
259
 
260
- <div class="radio_section fb_url twt_fld_2"><input name="sfsi_twitter_aboutPage" <?php echo ($option2['sfsi_twitter_aboutPage']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /><label>Tweet about my page:</label><textarea name="sfsi_twitter_aboutPageText" id="sfsi_twitter_aboutPageText" type="text" class="add_txt" placeholder="Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name" /><?php echo ($option2['sfsi_twitter_aboutPageText']!='') ? stripslashes($option2['sfsi_twitter_aboutPageText']) : 'Hey check out this cool site I found' ;?></textarea></div>
261
  <div class= "sfsi_new_prmium_follw">
262
- <p><b>New: </b>Tweeting becomes really fun in the Premium Plugin – you can insert tags to automatically pull the title of the story & link to the story, attach pictures & snippets to the Tweets (‘Twitter cards’) and user Url-shorteners, all leading to more Tweets and traffic for your site!. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=better_tweets&utm_medium=banner" target="_blank">See all features</a></p>
263
  </div>
264
  </div>
265
  </div>
@@ -280,7 +310,7 @@ if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeus
280
  <p class="radio_section fb_url"><input name="sfsi_googleShare_option" <?php echo ($option2['sfsi_googleShare_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /><label>Share my blog with friends (on Google+)</label></p>
281
 
282
  <div class ="sfsi_new_prmium_follw" >
283
- <p><b>New: </b>In our Premium Plugin you can also allow users to follow you on Google+ <b>directly from your site </b>(without leaving your page, increasing followers). <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=direct_follow_google&utm_medium=banner" target="_blank">See all features</a></p>
284
  </div>
285
  </div>
286
  </div>
@@ -370,6 +400,90 @@ if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeus
370
  </div>
371
  </div>
372
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
373
  <!-- END LINKEDIN ICON -->
374
 
375
  <!-- Custom icon section start here -->
@@ -401,7 +515,7 @@ if("id"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeus
401
  <?php $count++; endif; endfor; ?>
402
 
403
  <div class ="notice_custom_icons_premium sfsi_new_prmium_follw" style="<?php echo $bannerDisplay; ?>">
404
- <p><b>New: </b>In the Premium Plugin you can also give custom icons the feature that when people click on it, they can call you, or send you an SMS. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=call_or_sms_feature_custom_icons&utm_medium=banner" target="_blank">See all features</a></p>
405
  </div>
406
  </div>
407
  <!-- END Custom icon section here -->
109
  $option2['sfsi_linkedin_recommendProductId'] = (isset($option2['sfsi_linkedin_recommendProductId']))
110
  ? intval($option2['sfsi_linkedin_recommendProductId'])
111
  : '';
112
+ $option2['sfsi_telegram_message'] = (isset($option2['sfsi_telegram_message']))
113
+ ? sanitize_text_field($option2['sfsi_telegram_message'])
114
+ : '';
115
+ $option2['sfsi_telegram_username'] = (isset($option2['sfsi_telegram_username']))
116
+ ? sanitize_text_field($option2['sfsi_telegram_username'])
117
+ : '';
118
+ $option2['sfsi_telegram_page'] = (isset($option2['sfsi_telegram_page']))
119
+ ? sanitize_text_field($option2['sfsi_telegram_page'])
120
+ : '';
121
+ $option2['sfsi_telegram_pageURL'] = (isset($option2['sfsi_telegram_pageURL']))
122
+ ? esc_url($option2['sfsi_telegram_pageURL'])
123
+ : '';
124
+ $option2['sfsi_vk_page'] = (isset($option2['sfsi_vk_page']))
125
+ ? sanitize_text_field($option2['sfsi_vk_page'])
126
+ : '';
127
+ $option2['sfsi_vk_pageURL'] = (isset($option2['sfsi_vk_pageURL']))
128
+ ? esc_url($option2['sfsi_vk_pageURL'])
129
+ : '';
130
+ $option2['sfsi_weibo_page'] = (isset($option2['sfsi_weibo_page']))
131
+ ? sanitize_text_field($option2['sfsi_weibo_page'])
132
+ : '';
133
+ $option2['sfsi_weibo_pageURL'] = (isset($option2['sfsi_weibo_pageURL']))
134
+ ? esc_url($option2['sfsi_weibo_pageURL'])
135
+ : '';
136
+ $option2['sfsi_ok_page'] = (isset($option2['sfsi_ok_page']))
137
+ ? sanitize_text_field($option2['sfsi_ok_page'])
138
+ : '';
139
+ $option2['sfsi_ok_pageURL'] = (isset($option2['sfsi_ok_pageURL']))
140
+ ? esc_url($option2['sfsi_ok_pageURL'])
141
+ : '';
142
+
143
  if("name"== $option2['sfsi_youtubeusernameorid'] && isset($option2['sfsi_youtubeusernameorid']) && !empty($option2['sfsi_youtubeusernameorid'])){
144
 
145
  if(isset($option2['sfsi_ytube_user']) && !empty($option2['sfsi_ytube_user'])){
251
 
252
 
253
  <div class ="sfsi_new_prmium_follw">
254
+ <p><b>New:</b> In our Premium Plugin you can now give your email icon other functions too, e.g. <b>contact you </b>(email), <b>share by email,</b> and <b>link to a certain page </b>(e.g. your contact form or newsletter sign-up site). <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_functions_email_icon&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a>
255
  </div>
256
  </div>
257
  </div>
270
 
271
  <p class="radio_section fb_url extra_sp"><input name="sfsi_facebookShare_option" <?php echo ($option2['sfsi_facebookShare_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /><label>Share my blog with friends (on Facebook)</label></p>
272
  <div class="sfsi_new_prmium_follw">
273
+ <p ><b>New:</b> In our Premium Plugin you can also allow users to follow you on Facebook <b>directly from your site</b> (without leaving your page, increasing followers). <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=direct_follow_facebook&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
274
  </div>
275
  </div>
276
  </div>
287
 
288
  <div class="radio_section fb_url twt_fld"><input name="sfsi_twitter_followme" <?php echo ($option2['sfsi_twitter_followme']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /><label>Follow me on Twitter:</label><input name="sfsi_twitter_followUserName" type="text" value="<?php echo ($option2['sfsi_twitter_followUserName']!='') ? $option2['sfsi_twitter_followUserName'] : '' ;?>" placeholder="my_twitter_name" class="add" /></div>
289
 
290
+ <div class="radio_section fb_url twt_fld_2"><input name="sfsi_twitter_aboutPage" <?php echo ($option2['sfsi_twitter_aboutPage']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /><label>Tweet about my page:</label><textarea name="sfsi_twitter_aboutPageText" id="sfsi_twitter_aboutPageText" type="text" class="add_txt" placeholder="Hey, check out this cool site I found: www.yourname.com #Topic via@my_twitter_name" ></textarea><?php echo ($option2['sfsi_twitter_aboutPageText']!='') ? stripslashes($option2['sfsi_twitter_aboutPageText']) : 'Hey check out this cool site I found' ;?></div>
291
  <div class= "sfsi_new_prmium_follw">
292
+ <p><b>New: </b>Tweeting becomes really fun in the Premium Plugin – you can insert tags to automatically pull the title of the story & link to the story, attach pictures & snippets to the Tweets (‘Twitter cards’) and user Url-shorteners, all leading to more Tweets and traffic for your site!. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=better_tweets&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
293
  </div>
294
  </div>
295
  </div>
310
  <p class="radio_section fb_url"><input name="sfsi_googleShare_option" <?php echo ($option2['sfsi_googleShare_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" /><label>Share my blog with friends (on Google+)</label></p>
311
 
312
  <div class ="sfsi_new_prmium_follw" >
313
+ <p><b>New: </b>In our Premium Plugin you can also allow users to follow you on Google+ <b>directly from your site </b>(without leaving your page, increasing followers). <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
314
  </div>
315
  </div>
316
  </div>
400
  </div>
401
  </div>
402
  </div>
403
+
404
+ <!-- TELEGRAM ICON -->
405
+ <div class="row telegram_section">
406
+ <h2 class="sfsicls_telegram">Telegram</h2>
407
+ <div class="inr_cont telegram_tab_2">
408
+ <p>Clicking on this icon will allow users to contact you on Telegram.</p>
409
+ <!-- <input name="sfsi_telegram_message" checked="true" type="checkbox" value="yes" class="" style="display:none"/> -->
410
+
411
+ <p class="radio_section fb_url no_check ">
412
+ <label>Pre-filled message</label>
413
+ <input name="sfsi_telegram_message" type="text" value="<?php echo ($option2['sfsi_telegram_message']!='') ? $option2['sfsi_telegram_message'] : '' ;?>" placeholder="my_telegram_name" class="add" />
414
+ </p>
415
+
416
+ <p class="radio_section fb_url no_check">
417
+ <label>My Telegram username</label>
418
+ <input name="sfsi_telegram_username" type="url" placeholder="username" value="<?php echo ($option2['sfsi_telegram_username']!='') ? $option2['sfsi_telegram_username'] : '' ;?>" class="add" />
419
+ </p>
420
+
421
+ <div class= "sfsi_new_prmium_follw">
422
+ <p><b>New: </b>In our Premium Plugin you can now give your Telegram icon sharing functionality too, e.g. <b> share your website/blog with friends. </b><a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=telegram_sharing&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
423
+ </div>
424
+ </div>
425
+ </div>
426
+
427
+ <!-- END TELEGRAM ICON -->
428
+
429
+ <!-- WECHAT ICON -->
430
+ <div class="row wechat_section">
431
+ <h2 class="sfsicls_wechat">WeChat</h2>
432
+ <div class="inr_cont wechat_tab_2">
433
+ <p>When clicked on, your website/blog will be shared on WeChat.</p>
434
+ <input name="sfsi_wechatShare_option" checked="true" type="checkbox" value="yes" class="" style="display:none" />
435
+ <div class= "sfsi_new_prmium_follw">
436
+ <p><b>New: </b>In our Premium Plugin you can also allow users to <b >follow you </b> on WeChat <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=wechat_sharing&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
437
+ </div>
438
+ </div>
439
+ </div>
440
+ <!-- END WECHAT ICON -->
441
+ <!-- WEIBO ICON -->
442
+ <div class="row weibo_section">
443
+ <h2 class="sfsicls_weibo">Weibo</h2>
444
+ <div class="inr_cont weibo_tab_2">
445
+ <p>When clicked on, users will get directed to your Weibo page.</p>
446
+
447
+ <p class="radio_section fb_url no_check"><input name="sfsi_weibo_page" checked="true" type="checkbox" value="yes" class="" style="display:none" /><label>Visit me on weibo:</label><input name="sfsi_weibo_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_weibo_pageURL']!='') ? $option2['sfsi_weibo_pageURL'] : '' ;?>" class="add" /></p>
448
+
449
+ <div class= "sfsi_new_prmium_follw">
450
+ <p><b>New: </b> In our Premium Plugin you can now give Weibo icon other functions too, e.g. <b>your website/blog, share your website/blog</b> on Weibo. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=weibo_like_and_share&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
451
+ </div>
452
+ </div>
453
+ </div>
454
+ <!-- END WEIBO ICON -->
455
+
456
+ <!-- VK ICON -->
457
+ <div class="row vk_section">
458
+ <h2 class="sfsicls_vk">VK</h2>
459
+ <div class="inr_cont vk_tab_2">
460
+ <p>When clicked on, users will get directed to your VK page.</p>
461
+
462
+ <p class="radio_section fb_url no_check"><input name="sfsi_vk_page" checked="true" type="checkbox" value="yes" class="" style="display:none" /><label>Visit me on vk:</label><input name="sfsi_vk_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_vk_pageURL']!='') ? $option2['sfsi_vk_pageURL'] : '' ;?>" class="add" /></p>
463
+
464
+ <div class= "sfsi_new_prmium_follw">
465
+ <p><b>New: </b>In our Premium Plugin you can now give your VK icon sharing functionality too, e.g. <b >share your website/blog </b> with friends. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=vk_share&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
466
+ </div>
467
+ </div>
468
+ </div>
469
+ <!-- END VK ICON -->
470
+
471
+
472
+
473
+ <!-- OK ICON -->
474
+ <div class="row ok_section">
475
+ <h2 class="sfsicls_ok">OK</h2>
476
+ <div class="inr_cont ok_tab_2">
477
+ <p>When clicked on, users will get directed to your OK page.</p>
478
+
479
+ <p class="radio_section fb_url no_check"><input name="sfsi_ok_page" checked="true" type="checkbox" value="yes" class="" style="display:none" /><label>Visit me on ok:</label><input name="sfsi_ok_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_ok_pageURL']!='') ? $option2['sfsi_ok_pageURL'] : '' ;?>" class="add" /></p>
480
+
481
+ <div class= "sfsi_new_prmium_follw">
482
+ <p><b>New: </b>In our Premium Plugin you can now give OK icon other functions too, e.g. <b> like your website/blog </b>, subscribe/follow you on OK. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=ok_like_and_subscribe&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
483
+ </div>
484
+ </div>
485
+ </div>
486
+ <!-- END OK ICON -->
487
  <!-- END LINKEDIN ICON -->
488
 
489
  <!-- Custom icon section start here -->
515
  <?php $count++; endif; endfor; ?>
516
 
517
  <div class ="notice_custom_icons_premium sfsi_new_prmium_follw" style="<?php echo $bannerDisplay; ?>">
518
+ <p><b>New: </b>In the Premium Plugin you can also give custom icons the feature that when people click on it, they can call you, or send you an SMS. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=call_or_sms_feature_custom_icons&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
519
  </div>
520
  </div>
521
  <!-- END Custom icon section here -->
views/sfsi_option_view3.php CHANGED
@@ -2,7 +2,6 @@
2
  /* unserialize all saved option for second section options */
3
  $option3 = unserialize(get_option('sfsi_section3_options',false));
4
  $option1 = unserialize(get_option('sfsi_section1_options',false));
5
-
6
  /*
7
  * Sanitize, escape and validate values
8
  */
@@ -30,7 +29,7 @@ $mouseover_other_icons_transition_effect = (isset($option3['mouseover_other_icon
30
  <li>A smart automatic animation can <span>make your visitors aware of your icons</span> in an unintrusive manner</li>
31
  </ul>
32
 
33
- <p style="padding:0px;">
34
  The icons have been compressed by <a href="https://goo.gl/IV5Q3z" target="_blank">Shortpixel.com</a> for faster loading of your site. Thank you Shortpixel!
35
  </p>
36
 
@@ -39,40 +38,40 @@ $mouseover_other_icons_transition_effect = (isset($option3['mouseover_other_icon
39
 
40
  <!--icon themes section start -->
41
  <ul class="tab_3_icns">
42
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='default') ? 'checked="true"' : '' ;?> type="radio" value="default" class="styled" /><label>Default</label><div class="icns_tab_3"><span class="row_1_1 rss_section"></span><span class="row_1_2 email_section"></span><span class="row_1_3 facebook_section"></span><span class="row_1_4 google_section"></span><span class="row_1_5 twitter_section"></span><span class="row_1_7 youtube_section"></span><span class="row_1_8 pinterest_section"></span><span class="row_1_9 linkedin_section"></span> <span class="row_1_10 instagram_section"></span><!--<span class="row_1_11 sf_section"></span>--></div></li>
43
 
44
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='flat') ? 'checked="true"' : '' ;?> type="radio" value="flat" class="styled" /><label>Flat</label><div class="icns_tab_3"><span class="row_2_1 rss_section"></span><span class="row_2_2 email_section"></span><span class="row_2_3 facebook_section"></span><span class="row_2_4 google_section"></span><span class="row_2_5 twitter_section"></span><span class="row_2_7 youtube_section"></span><span class="row_2_8 pinterest_section"></span><span class="row_2_9 linkedin_section"></span><span class="row_2_10 instagram_section"></span><!--<span class="row_2_11 sf_section"></span>--></div></li>
45
 
46
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='thin') ? 'checked="true"' : '' ;?> type="radio" value="thin" class="styled" /><label>Thin</label><div class="icns_tab_3"><span class="row_3_1 rss_section"></span><span class="row_3_2 email_section"></span><span class="row_3_3 facebook_section"></span><span class="row_3_4 google_section"></span><span class="row_3_5 twitter_section"></span><span class="row_3_7 youtube_section"></span><span class="row_3_8 pinterest_section"></span><span class="row_3_9 linkedin_section"></span><span class="row_3_10 instagram_section"></span><!--<span class="row_3_11 sf_section"></span>--></div></li>
47
 
48
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='cute') ? 'checked="true"' : '' ;?> type="radio" value="cute" class="styled" /><label>Cute</label><div class="icns_tab_3"><span class="row_4_1 rss_section"></span><span class="row_4_2 email_section"></span><span class="row_4_3 facebook_section"></span><span class="row_4_4 google_section"></span><span class="row_4_5 twitter_section"></span><span class="row_4_7 youtube_section"></span><span class="row_4_8 pinterest_section"></span><span class="row_4_9 linkedin_section"></span><span class="row_4_10 instagram_section"></span><!--<span class="row_4_11 sf_section"></span>--></div></li>
49
 
50
  <!--start next four-->
51
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='cubes') ? 'checked="true"' : '' ;?> type="radio" value="cubes" class="styled" /><label>Cubes</label><div class="icns_tab_3"><span class="row_5_1 rss_section"></span><span class="row_5_2 email_section"></span><span class="row_5_3 facebook_section"></span><span class="row_5_4 google_section"></span><span class="row_5_5 twitter_section"></span><span class="row_5_7 youtube_section"></span><span class="row_5_8 pinterest_section"></span><span class="row_5_9 linkedin_section"></span><span class="row_5_10 instagram_section"></span><!--<span class="row_5_11 sf_section"></span>--></div></li>
52
 
53
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='chrome_blue') ? 'checked="true"' : '' ;?> type="radio" value="chrome_blue" class="styled" /><label>Chrome Blue</label><div class="icns_tab_3"><span class="row_6_1 rss_section"></span><span class="row_6_2 email_section"></span><span class="row_6_3 facebook_section"></span><span class="row_6_4 google_section"></span><span class="row_6_5 twitter_section"></span><span class="row_6_7 youtube_section"></span><span class="row_6_8 pinterest_section"></span><span class="row_6_9 linkedin_section"></span><span class="row_6_10 instagram_section"></span><!--<span class="row_6_11 sf_section"></span>--></div></li>
54
 
55
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='chrome_grey') ? 'checked="true"' : '' ;?> type="radio" value="chrome_grey" class="styled" /><label>Chrome Grey</label><div class="icns_tab_3"><span class="row_7_1 rss_section"></span><span class="row_7_2 email_section"></span><span class="row_7_3 facebook_section"></span><span class="row_7_4 google_section"></span><span class="row_7_5 twitter_section"></span><span class="row_7_7 youtube_section"></span><span class="row_7_8 pinterest_section"></span><span class="row_7_9 linkedin_section"></span><span class="row_7_10 instagram_section"></span><!--<span class="row_7_11 sf_section"></span>--></div></li>
56
 
57
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='splash') ? 'checked="true"' : '' ;?> type="radio" value="splash" class="styled" /><label>Splash</label><div class="icns_tab_3"><span class="row_8_1 rss_section"></span><span class="row_8_2 email_section"></span><span class="row_8_3 facebook_section"></span><span class="row_8_4 google_section"></span><span class="row_8_5 twitter_section"></span><span class="row_8_7 youtube_section"></span><span class="row_8_8 pinterest_section"></span><span class="row_8_9 linkedin_section"></span><span class="row_8_10 instagram_section"></span><!--<span class="row_8_11 sf_section"></span>--></div></li>
58
 
59
  <!--start second four-->
60
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='orange') ? 'checked="true"' : '' ;?> type="radio" value="orange" class="styled" /><label>Orange</label><div class="icns_tab_3"><span class="row_9_1 rss_section"></span><span class="row_9_2 email_section"></span><span class="row_9_3 facebook_section"></span><span class="row_9_4 google_section"></span><span class="row_9_5 twitter_section"></span><span class="row_9_7 youtube_section"></span><span class="row_9_8 pinterest_section"></span><span class="row_9_9 linkedin_section"></span><span class="row_9_10 instagram_section"></span><!--<span class="row_9_11 sf_section"></span>--></div></li>
61
 
62
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='crystal') ? 'checked="true"' : '' ;?> type="radio" value="crystal" class="styled" /><label>Crystal</label><div class="icns_tab_3"><span class="row_10_1 rss_section"></span><span class="row_10_2 email_section"></span><span class="row_10_3 facebook_section"></span><span class="row_10_4 google_section"></span><span class="row_10_5 twitter_section"></span><span class="row_10_7 youtube_section"></span><span class="row_10_8 pinterest_section"></span><span class="row_10_9 linkedin_section"></span><span class="row_10_10 instagram_section"></span><!--<span class="row_10_11 sf_section"></span>--></div></li>
63
 
64
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='glossy') ? 'checked="true"' : '' ;?> type="radio" value="glossy" class="styled" /><label>Glossy</label><div class="icns_tab_3"><span class="row_11_1 rss_section"></span><span class="row_11_2 email_section"></span><span class="row_11_3 facebook_section"></span><span class="row_11_4 google_section"></span><span class="row_11_5 twitter_section"></span><span class="row_11_7 youtube_section"></span><span class="row_11_8 pinterest_section"></span><span class="row_11_9 linkedin_section"></span><span class="row_11_10 instagram_section"></span><!--<span class="row_11_11 sf_section"></span>--></div></li>
65
 
66
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='black') ? 'checked="true"' : '' ;?> type="radio" value="black" class="styled" /><label>Black</label><div class="icns_tab_3"><span class="row_12_1 rss_section"></span><span class="row_12_2 email_section"></span><span class="row_12_3 facebook_section"></span><span class="row_12_4 google_section"></span><span class="row_12_5 twitter_section"></span><span class="row_12_7 youtube_section"></span><span class="row_12_8 pinterest_section"></span><span class="row_12_9 linkedin_section"></span><span class="row_12_10 instagram_section"></span><!--<span class="row_12_11 sf_section"></span>--></div></li>
67
 
68
  <!--start last four-->
69
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='silver') ? 'checked="true"' : '' ;?> type="radio" value="silver" class="styled" /><label>Silver</label><div class="icns_tab_3"><span class="row_13_1 rss_section"></span><span class="row_13_2 email_section"></span><span class="row_13_3 facebook_section"></span><span class="row_13_4 google_section"></span><span class="row_13_5 twitter_section"></span><span class="row_13_7 youtube_section"></span><span class="row_13_8 pinterest_section"></span><span class="row_13_9 linkedin_section"></span><span class="row_13_10 instagram_section"></span><!--<span class="row_13_11 sf_section"></span>--></div></li>
70
 
71
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='shaded_dark') ? 'checked="true"' : '' ;?> type="radio" value="shaded_dark" class="styled" /><label>Shaded Dark</label><div class="icns_tab_3"><span class="row_14_1 rss_section"></span><span class="row_14_2 email_section"></span><span class="row_14_3 facebook_section"></span><span class="row_14_4 google_section"></span><span class="row_14_5 twitter_section"></span><span class="row_14_7 youtube_section"></span><span class="row_14_8 pinterest_section"></span><span class="row_14_9 linkedin_section"></span><span class="row_14_10 instagram_section"></span><!--<span class="row_14_11 sf_section"></span>--></div></li>
72
 
73
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='shaded_light') ? 'checked="true"' : '' ;?> type="radio" value="shaded_light" class="styled" /><label>Shaded Light</label><div class="icns_tab_3"><span class="row_15_1 rss_section"></span><span class="row_15_2 email_section"></span><span class="row_15_3 facebook_section"></span><span class="row_15_4 google_section"></span><span class="row_15_5 twitter_section"></span><span class="row_15_7 youtube_section"></span><span class="row_15_8 pinterest_section"></span><span class="row_15_9 linkedin_section"></span><span class="row_15_10 instagram_section"></span><!--<span class="row_15_11 sf_section"></span>--></div></li>
74
 
75
- <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='transparent') ? 'checked="true"' : '' ;?> type="radio" value="transparent" class="styled" /><label style="line-height:20px !important;margin-top:15px; ">Transparent <br/><span style="font-size: 9px;" >(for dark backgrounds)</span></label> <div class="icns_tab_3 trans_bg" style="padding-left: 6px;"><span class="row_16_1 rss_section"></span><span class="row_16_2 email_section"></span><span class="row_16_3 facebook_section"></span><span class="row_16_4 google_section"></span><span class="row_16_5 twitter_section"></span><span class="row_16_7 youtube_section"></span><span class="row_16_8 pinterest_section"></span><span class="row_16_9 linkedin_section"></span><span class="row_16_10 instagram_section"></span><!--<span class="row_16_11 sf_section"></span>--></div></li>
76
 
77
  <!--Custom Icon Support {Monad}-->
78
 
@@ -170,6 +169,51 @@ $mouseover_other_icons_transition_effect = (isset($option3['mouseover_other_icon
170
  {
171
  echo '<span class="row_17_10 instagram_section" style="background-position:-526px 0;"></span>';
172
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
173
  ?>
174
  </div>
175
  </li>
2
  /* unserialize all saved option for second section options */
3
  $option3 = unserialize(get_option('sfsi_section3_options',false));
4
  $option1 = unserialize(get_option('sfsi_section1_options',false));
 
5
  /*
6
  * Sanitize, escape and validate values
7
  */
29
  <li>A smart automatic animation can <span>make your visitors aware of your icons</span> in an unintrusive manner</li>
30
  </ul>
31
 
32
+ <p style="padding:0px;">
33
  The icons have been compressed by <a href="https://goo.gl/IV5Q3z" target="_blank">Shortpixel.com</a> for faster loading of your site. Thank you Shortpixel!
34
  </p>
35
 
38
 
39
  <!--icon themes section start -->
40
  <ul class="tab_3_icns">
41
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='default') ? 'checked="true"' : '' ;?> type="radio" value="default" class="styled" /><label>Default</label><div class="icns_tab_3"><span class="row_1_1 rss_section"></span><span class="row_1_2 email_section"></span><span class="row_1_3 facebook_section"></span><span class="row_1_4 google_section"></span><span class="row_1_5 twitter_section"></span><span class="row_1_7 youtube_section"></span><span class="row_1_8 pinterest_section"></span><span class="row_1_9 linkedin_section"></span> <span class="row_1_10 instagram_section"></span><span class="row_1_14 telegram_section"></span><span class="row_1_15 vk_section"></span><span class="row_1_16 ok_section"></span><span class="row_1_17 weibo_section"></span><span class="row_1_18 wechat_section"></span><!--<span class="row_1_11 sf_section"></span>--></div></li>
42
 
43
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='flat') ? 'checked="true"' : '' ;?> type="radio" value="flat" class="styled" /><label>Flat</label><div class="icns_tab_3"><span class="row_2_1 rss_section"></span><span class="row_2_2 email_section"></span><span class="row_2_3 facebook_section"></span><span class="row_2_4 google_section"></span><span class="row_2_5 twitter_section"></span><span class="row_2_7 youtube_section"></span><span class="row_2_8 pinterest_section"></span><span class="row_2_9 linkedin_section"></span><span class="row_2_10 instagram_section"></span><span class="row_2_14 telegram_section"></span><span class="row_2_15 vk_section"></span><span class="row_2_16 ok_section"></span><span class="row_2_17 weibo_section"></span><span class="row_2_18 wechat_section"></span><!--<span class="row_2_11 sf_section"></span>--></div></li>
44
 
45
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='thin') ? 'checked="true"' : '' ;?> type="radio" value="thin" class="styled" /><label>Thin</label><div class="icns_tab_3"><span class="row_3_1 rss_section"></span><span class="row_3_2 email_section"></span><span class="row_3_3 facebook_section"></span><span class="row_3_4 google_section"></span><span class="row_3_5 twitter_section"></span><span class="row_3_7 youtube_section"></span><span class="row_3_8 pinterest_section"></span><span class="row_3_9 linkedin_section"></span><span class="row_3_10 instagram_section"></span><span class="row_3_14 telegram_section"></span><span class="row_3_15 vk_section"></span><span class="row_3_16 ok_section"></span><span class="row_3_17 weibo_section"></span><span class="row_3_18 wechat_section"></span><!--<span class="row_3_11 sf_section"></span>--></div></li>
46
 
47
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='cute') ? 'checked="true"' : '' ;?> type="radio" value="cute" class="styled" /><label>Cute</label><div class="icns_tab_3"><span class="row_4_1 rss_section"></span><span class="row_4_2 email_section"></span><span class="row_4_3 facebook_section"></span><span class="row_4_4 google_section"></span><span class="row_4_5 twitter_section"></span><span class="row_4_7 youtube_section"></span><span class="row_4_8 pinterest_section"></span><span class="row_4_9 linkedin_section"></span><span class="row_4_10 instagram_section"></span><span class="row_4_14 telegram_section"></span><span class="row_4_15 vk_section"></span><span class="row_4_16 ok_section"></span><span class="row_4_17 weibo_section"></span><span class="row_4_18 wechat_section"></span><!--<span class="row_4_11 sf_section"></span>--></div></li>
48
 
49
  <!--start next four-->
50
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='cubes') ? 'checked="true"' : '' ;?> type="radio" value="cubes" class="styled" /><label>Cubes</label><div class="icns_tab_3"><span class="row_5_1 rss_section"></span><span class="row_5_2 email_section"></span><span class="row_5_3 facebook_section"></span><span class="row_5_4 google_section"></span><span class="row_5_5 twitter_section"></span><span class="row_5_7 youtube_section"></span><span class="row_5_8 pinterest_section"></span><span class="row_5_9 linkedin_section"></span><span class="row_5_10 instagram_section"></span><span class="row_5_14 telegram_section"></span><span class="row_5_15 vk_section"></span><span class="row_5_16 ok_section"></span><span class="row_5_17 weibo_section"></span><span class="row_5_18 wechat_section"></span><!--<span class="row_5_11 sf_section"></span>--></div></li>
51
 
52
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='chrome_blue') ? 'checked="true"' : '' ;?> type="radio" value="chrome_blue" class="styled" /><label>Chrome Blue</label><div class="icns_tab_3"><span class="row_6_1 rss_section"></span><span class="row_6_2 email_section"></span><span class="row_6_3 facebook_section"></span><span class="row_6_4 google_section"></span><span class="row_6_5 twitter_section"></span><span class="row_6_7 youtube_section"></span><span class="row_6_8 pinterest_section"></span><span class="row_6_9 linkedin_section"></span><span class="row_6_10 instagram_section"></span><span class="row_6_14 telegram_section"></span><span class="row_6_15 vk_section"></span><span class="row_6_16 ok_section"></span><span class="row_6_17 weibo_section"></span><span class="row_6_18 wechat_section"></span><!--<span class="row_6_11 sf_section"></span>--></div></li>
53
 
54
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='chrome_grey') ? 'checked="true"' : '' ;?> type="radio" value="chrome_grey" class="styled" /><label>Chrome Grey</label><div class="icns_tab_3"><span class="row_7_1 rss_section"></span><span class="row_7_2 email_section"></span><span class="row_7_3 facebook_section"></span><span class="row_7_4 google_section"></span><span class="row_7_5 twitter_section"></span><span class="row_7_7 youtube_section"></span><span class="row_7_8 pinterest_section"></span><span class="row_7_9 linkedin_section"></span><span class="row_7_10 instagram_section"></span><span class="row_7_14 telegram_section"></span><span class="row_7_15 vk_section"></span><span class="row_7_16 ok_section"></span><span class="row_7_17 weibo_section"></span><span class="row_7_18 wechat_section"></span><!--<span class="row_7_11 sf_section"></span>--></div></li>
55
 
56
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='splash') ? 'checked="true"' : '' ;?> type="radio" value="splash" class="styled" /><label>Splash</label><div class="icns_tab_3"><span class="row_8_1 rss_section"></span><span class="row_8_2 email_section"></span><span class="row_8_3 facebook_section"></span><span class="row_8_4 google_section"></span><span class="row_8_5 twitter_section"></span><span class="row_8_7 youtube_section"></span><span class="row_8_8 pinterest_section"></span><span class="row_8_9 linkedin_section"></span><span class="row_8_10 instagram_section"></span><span class="row_8_14 telegram_section"></span><span class="row_8_15 vk_section"></span><span class="row_8_16 ok_section"></span><span class="row_8_17 weibo_section"></span><span class="row_8_18 wechat_section"></span><!--<span class="row_8_11 sf_section"></span>--></div></li>
57
 
58
  <!--start second four-->
59
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='orange') ? 'checked="true"' : '' ;?> type="radio" value="orange" class="styled" /><label>Orange</label><div class="icns_tab_3"><span class="row_9_1 rss_section"></span><span class="row_9_2 email_section"></span><span class="row_9_3 facebook_section"></span><span class="row_9_4 google_section"></span><span class="row_9_5 twitter_section"></span><span class="row_9_7 youtube_section"></span><span class="row_9_8 pinterest_section"></span><span class="row_9_9 linkedin_section"></span><span class="row_9_10 instagram_section"></span><span class="row_9_14 telegram_section"></span><span class="row_9_15 vk_section"></span><span class="row_9_16 ok_section"></span><span class="row_9_17 weibo_section"></span><span class="row_9_18 wechat_section"></span><!--<span class="row_9_11 sf_section"></span>--></div></li>
60
 
61
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='crystal') ? 'checked="true"' : '' ;?> type="radio" value="crystal" class="styled" /><label>Crystal</label><div class="icns_tab_3"><span class="row_10_1 rss_section"></span><span class="row_10_2 email_section"></span><span class="row_10_3 facebook_section"></span><span class="row_10_4 google_section"></span><span class="row_10_5 twitter_section"></span><span class="row_10_7 youtube_section"></span><span class="row_10_8 pinterest_section"></span><span class="row_10_9 linkedin_section"></span><span class="row_10_10 instagram_section"></span><span class="row_10_14 telegram_section"></span><span class="row_10_15 vk_section"></span><span class="row_10_16 ok_section"></span><span class="row_10_17 weibo_section"></span><span class="row_10_18 wechat_section"></span><!--<span class="row_10_11 sf_section"></span>--></div></li>
62
 
63
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='glossy') ? 'checked="true"' : '' ;?> type="radio" value="glossy" class="styled" /><label>Glossy</label><div class="icns_tab_3"><span class="row_11_1 rss_section"></span><span class="row_11_2 email_section"></span><span class="row_11_3 facebook_section"></span><span class="row_11_4 google_section"></span><span class="row_11_5 twitter_section"></span><span class="row_11_7 youtube_section"></span><span class="row_11_8 pinterest_section"></span><span class="row_11_9 linkedin_section"></span><span class="row_11_10 instagram_section"></span><span class="row_11_14 telegram_section"></span><span class="row_11_15 vk_section"></span><span class="row_11_16 ok_section"></span><span class="row_11_17 weibo_section"></span><span class="row_11_18 wechat_section"></span><!--<span class="row_11_11 sf_section"></span>--></div></li>
64
 
65
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='black') ? 'checked="true"' : '' ;?> type="radio" value="black" class="styled" /><label>Black</label><div class="icns_tab_3"><span class="row_12_1 rss_section"></span><span class="row_12_2 email_section"></span><span class="row_12_3 facebook_section"></span><span class="row_12_4 google_section"></span><span class="row_12_5 twitter_section"></span><span class="row_12_7 youtube_section"></span><span class="row_12_8 pinterest_section"></span><span class="row_12_9 linkedin_section"></span><span class="row_12_10 instagram_section"></span><span class="row_12_14 telegram_section"></span><span class="row_12_15 vk_section"></span><span class="row_12_16 ok_section"></span><span class="row_12_17 weibo_section"></span><span class="row_12_18 wechat_section"></span><!--<span class="row_12_11 sf_section"></span>--></div></li>
66
 
67
  <!--start last four-->
68
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='silver') ? 'checked="true"' : '' ;?> type="radio" value="silver" class="styled" /><label>Silver</label><div class="icns_tab_3"><span class="row_13_1 rss_section"></span><span class="row_13_2 email_section"></span><span class="row_13_3 facebook_section"></span><span class="row_13_4 google_section"></span><span class="row_13_5 twitter_section"></span><span class="row_13_7 youtube_section"></span><span class="row_13_8 pinterest_section"></span><span class="row_13_9 linkedin_section"></span><span class="row_13_10 instagram_section"></span><span class="row_13_14 telegram_section"></span><span class="row_13_15 vk_section"></span><span class="row_13_16 ok_section"></span><span class="row_13_17 weibo_section"></span><span class="row_13_18 wechat_section"></span><!--<span class="row_13_11 sf_section"></span>--></div></li>
69
 
70
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='shaded_dark') ? 'checked="true"' : '' ;?> type="radio" value="shaded_dark" class="styled" /><label>Shaded Dark</label><div class="icns_tab_3"><span class="row_14_1 rss_section"></span><span class="row_14_2 email_section"></span><span class="row_14_3 facebook_section"></span><span class="row_14_4 google_section"></span><span class="row_14_5 twitter_section"></span><span class="row_14_7 youtube_section"></span><span class="row_14_8 pinterest_section"></span><span class="row_14_9 linkedin_section"></span><span class="row_14_10 instagram_section"></span><span class="row_14_14 telegram_section"></span><span class="row_14_15 vk_section"></span><span class="row_14_16 ok_section"></span><span class="row_14_17 weibo_section"></span><span class="row_14_18 wechat_section"></span><!--<span class="row_14_11 sf_section"></span>--></div></li>
71
 
72
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='shaded_light') ? 'checked="true"' : '' ;?> type="radio" value="shaded_light" class="styled" /><label>Shaded Light</label><div class="icns_tab_3"><span class="row_15_1 rss_section"></span><span class="row_15_2 email_section"></span><span class="row_15_3 facebook_section"></span><span class="row_15_4 google_section"></span><span class="row_15_5 twitter_section"></span><span class="row_15_7 youtube_section"></span><span class="row_15_8 pinterest_section"></span><span class="row_15_9 linkedin_section"></span><span class="row_15_10 instagram_section"></span><span class="row_15_14 telegram_section"></span><span class="row_15_15 vk_section"></span><span class="row_15_16 ok_section"></span><span class="row_15_17 weibo_section"></span><span class="row_15_18 wechat_section"></span><!--<span class="row_15_11 sf_section"></span>--></div></li>
73
 
74
+ <li><input name="sfsi_actvite_theme" <?php echo ( $option3['sfsi_actvite_theme']=='transparent') ? 'checked="true"' : '' ;?> type="radio" value="transparent" class="styled" /><label style="line-height:20px !important;margin-top:15px; ">Transparent <br/><span style="font-size: 9px;" >(for dark backgrounds)</span></label> <div class="icns_tab_3 trans_bg" style="padding-left: 6px;"><span class="row_16_1 rss_section"></span><span class="row_16_2 email_section"></span><span class="row_16_3 facebook_section"></span><span class="row_16_4 google_section"></span><span class="row_16_5 twitter_section"></span><span class="row_16_7 youtube_section"></span><span class="row_16_8 pinterest_section"></span><span class="row_16_9 linkedin_section"></span><span class="row_16_10 instagram_section"></span><span class="row_16_14 telegram_section"></span><span class="row_16_15 vk_section"></span><span class="row_16_16 ok_section"></span><span class="row_16_17 weibo_section"></span><span class="row_16_18 wechat_section"></span><!--<span class="row_16_11 sf_section"></span>--></div></li>
75
 
76
  <!--Custom Icon Support {Monad}-->
77
 
169
  {
170
  echo '<span class="row_17_10 instagram_section" style="background-position:-526px 0;"></span>';
171
  }
172
+ if(get_option("telegram_skin"))
173
+ {
174
+ $icon = get_option("telegram_skin");
175
+ echo '<span class="row_17_10 telegram_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
176
+ }
177
+ else
178
+ {
179
+ echo '<span class="row_17_10 telegram_section" style="background-position:-773px 0;"></span>';
180
+ }
181
+ if(get_option("vk_skin"))
182
+ {
183
+ $icon = get_option("vk_skin");
184
+ echo '<span class="row_17_10 vk_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
185
+ }
186
+ else
187
+ {
188
+ echo '<span class="row_17_10 vk_section" style="background-position:-838px 0;"></span>';
189
+ }
190
+ if(get_option("ok_skin"))
191
+ {
192
+ $icon = get_option("ok_skin");
193
+ echo '<span class="row_17_10 ok_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
194
+ }
195
+ else
196
+ {
197
+ echo '<span class="row_17_10 ok_section" style="background-position:-909px 0;"></span>';
198
+ }
199
+ if(get_option("weibo_skin"))
200
+ {
201
+ $icon = get_option("weibo_skin");
202
+ echo '<span class="row_17_10 weibo_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
203
+ }
204
+ else
205
+ {
206
+ echo '<span class="row_17_10 weibo_section" style="background-position:-977px 0;"></span>';
207
+ }
208
+ if(get_option("wechat_skin"))
209
+ {
210
+ $icon = get_option("wechat_skin");
211
+ echo '<span class="row_17_10 wechat_section sfsi-bgimage" style="background: url('.$icon.') no-repeat;"></span>';
212
+ }
213
+ else
214
+ {
215
+ echo '<span class="row_1_18 wechat_section"></span>';
216
+ }
217
  ?>
218
  </div>
219
  </li>
views/sfsi_option_view4.php CHANGED
@@ -108,7 +108,23 @@ $option4['sfsi_pinterest_manualCounts'] = (isset($option4['sfsi_pinterest_manua
108
  : '';
109
  $option4['sfsi_linkedIn_manualCounts'] = (isset($option4['sfsi_linkedIn_manualCounts']))
110
  ? intval($option4['sfsi_linkedIn_manualCounts'])
111
- : '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
  if(isset($option4['sfsi_youtube_user']) && !empty($option4['sfsi_youtube_user'])){
114
  $option4['sfsi_youtube_user'] = sfsi_sanitize_field($option4['sfsi_youtube_user']);
@@ -206,13 +222,43 @@ $hide="display:none;";
206
  <img src="<?php echo SFSI_PLUGURL ?>images/linked_in.png" alt="Linked In" />
207
  </a>
208
  <span>12k</span>
209
- </li>
210
  <li class="instagram_section">
211
  <a href="#" title="Instagram">
212
  <img src="<?php echo SFSI_PLUGURL ?>images/instagram.png" alt="instagram" />
213
  </a>
214
  <span>12k</span>
215
  </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
216
  </ul>
217
  <!-- END sample icons -->
218
 
@@ -233,7 +279,7 @@ $hide="display:none;";
233
  <!-- show/hide counts for all icons section START -->
234
  <div class="count_sections" style="display:none">
235
  <h4>Please specify which counts should be shown:</h4>
236
-
237
  <!-- RSS ICON COUNT SECTION-->
238
  <div class="specify_counts rss_section">
239
  <div class="radio_section">
@@ -314,7 +360,7 @@ $hide="display:none;";
314
  </li>
315
  </ul>
316
  <div class="sfsi_facebook_pagedeasc" style="<?php echo (isset($option4['sfsi_facebook_countsFrom']) && $option4['sfsi_facebook_countsFrom'] =='manual') ? 'display:none;' : '' ;?>">
317
- <p class="sfsi_shared_premium"><b>Note:</b> This plugin uses <u>one</u> API shared by all users of this plugin. There is a limit (set by Facebook) how often this API can get the counts per day, so it may happen that it returns “0 counts” later in the day.<br><br>Therefore we implemented a solution as part of our Premium Plugin where you can <b>easily</b> set up your own API in a few steps, which will fix this problem.<br><br><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=facebook_counts&utm_medium=banner" target="_blank">See all features of the premium plugin </a>
318
  </p>
319
  </div>
320
 
@@ -515,7 +561,7 @@ $hide="display:none;";
515
 
516
 
517
  <div class="sfsi_new_prmium_follw" style="margin-top: 38px;">
518
- <p><b>New: </b>In the Premium Plugin you can also automatically show the number of PINs from your Pinterest account, or of a specific board, or the number of your Pinterest followers. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_pinterest_counts&utm_medium=banner" target="_blank">See all features</a></p>
519
  </div>
520
 
521
  </div>
@@ -560,8 +606,8 @@ $hide="display:none;";
560
  </div>
561
  </div>
562
  <div class="sfsi_instagramInstruction">
563
- <p>To see how this process works please watch the video <a href="http://screencast.com/t/DX0xcSue8" target="_blank">http://screencast.com/t/DX0xcSue8</a> or follow these steps:</p>
564
- <ul>
565
  <li>Go to <a href="https://www.instagram.com/developer" target="_blank">https://www.instagram.com/developer</a></li>
566
  <li>Login and then click on “Register Your Application” to get to the “Manage Clients” section. On there click on the “Register a new client” button</li>
567
  <li>Fill out the form and make sure that the “Redirect url” is valid and uncheck the “Disable Implicit oAuth” under the security tab.</li>
@@ -570,7 +616,7 @@ $hide="display:none;";
570
  <li>Authorize your app to access your account info by clicking the “Authorize” button'.</li>
571
  <li>Now you will be redirected to the redirect url (which you entered during app creation) and find your access token at the end of this url(For example: http://your-website.com/#access_token=< your access token >)</li>
572
  <li>Copy the access token, paste it into the plugin and click on “Save”.</li>
573
- </ul>
574
  </div>
575
  </li>
576
  <li>
@@ -582,7 +628,120 @@ $hide="display:none;";
582
  </div>
583
  <!-- END INSTAGRAM ICON COUNT SECTION-->
584
 
585
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
586
  </div>
587
  <!-- END show/hide counts for all icons section -->
588
 
108
  : '';
109
  $option4['sfsi_linkedIn_manualCounts'] = (isset($option4['sfsi_linkedIn_manualCounts']))
110
  ? intval($option4['sfsi_linkedIn_manualCounts'])
111
+ : '';
112
+
113
+ $option4['sfsi_telegram_countsDisplay'] = (isset($option4['sfsi_telegram_countsDisplay'])) ? sanitize_text_field($option4['sfsi_telegram_countsDisplay']) : '';
114
+ $option4['sfsi_telegram_manualCounts'] = (isset($option4['sfsi_telegram_manualCounts'])) ? intval($option4['sfsi_telegram_manualCounts']) : '';
115
+
116
+ $option4['sfsi_vk_countsDisplay'] = (isset($option4['sfsi_vk_countsDisplay'])) ? sanitize_text_field($option4['sfsi_vk_countsDisplay']) : '';
117
+ $option4['sfsi_vk_manualCounts'] = (isset($option4['sfsi_vk_manualCounts'])) ? intval($option4['sfsi_vk_manualCounts']) : '';
118
+
119
+ $option4['sfsi_ok_countsDisplay'] = (isset($option4['sfsi_ok_countsDisplay'])) ? sanitize_text_field($option4['sfsi_ok_countsDisplay']) : '';
120
+ $option4['sfsi_ok_manualCounts'] = (isset($option4['sfsi_ok_manualCounts'])) ? intval($option4['sfsi_ok_manualCounts']) : '';
121
+
122
+ $option4['sfsi_weibo_countsDisplay'] = (isset($option4['sfsi_weibo_countsDisplay'])) ? sanitize_text_field($option4['sfsi_weibo_countsDisplay']) : '';
123
+ $option4['sfsi_weibo_manualCounts'] = (isset($option4['sfsi_weibo_manualCounts'])) ? intval($option4['sfsi_weibo_manualCounts']) : '';
124
+
125
+ $option4['sfsi_wechat_countsDisplay'] = (isset($option4['sfsi_wechat_countsDisplay'])) ? sanitize_text_field($option4['sfsi_wechat_countsDisplay']) : '';
126
+ $option4['sfsi_wechat_manualCounts'] = (isset($option4['sfsi_wechat_manualCounts'])) ? intval($option4['sfsi_wechat_manualCounts']) : '';
127
+
128
 
129
  if(isset($option4['sfsi_youtube_user']) && !empty($option4['sfsi_youtube_user'])){
130
  $option4['sfsi_youtube_user'] = sfsi_sanitize_field($option4['sfsi_youtube_user']);
222
  <img src="<?php echo SFSI_PLUGURL ?>images/linked_in.png" alt="Linked In" />
223
  </a>
224
  <span>12k</span>
225
+ </li>
226
  <li class="instagram_section">
227
  <a href="#" title="Instagram">
228
  <img src="<?php echo SFSI_PLUGURL ?>images/instagram.png" alt="instagram" />
229
  </a>
230
  <span>12k</span>
231
  </li>
232
+ <li class="telegram_section">
233
+ <a href="#" title="telegram">
234
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_telegram.png" height="50px" alt="telegram" />
235
+ </a>
236
+ <span>12k</span>
237
+ </li>
238
+ <li class="vk_section">
239
+ <a href="#" title="vk">
240
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_vk.png" height="50px" alt="vk" />
241
+ </a>
242
+ <span>12k</span>
243
+ </li>
244
+ <li class="ok_section">
245
+ <a href="#" title="ok">
246
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_ok.png" height="50px" alt="ok" />
247
+ </a>
248
+ <span>12k</span>
249
+ </li>
250
+ <li class="weibo_section">
251
+ <a href="#" title="weibo">
252
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_weibo.png" height="50px" alt="weibo" />
253
+ </a>
254
+ <span>12k</span>
255
+ </li>
256
+ <li class="wechat_section">
257
+ <a href="#" title="wechat">
258
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_wechat.png" height="50px" alt="wechat" />
259
+ </a>
260
+ <span>12k</span>
261
+ </li>
262
  </ul>
263
  <!-- END sample icons -->
264
 
279
  <!-- show/hide counts for all icons section START -->
280
  <div class="count_sections" style="display:none">
281
  <h4>Please specify which counts should be shown:</h4>
282
+
283
  <!-- RSS ICON COUNT SECTION-->
284
  <div class="specify_counts rss_section">
285
  <div class="radio_section">
360
  </li>
361
  </ul>
362
  <div class="sfsi_facebook_pagedeasc" style="<?php echo (isset($option4['sfsi_facebook_countsFrom']) && $option4['sfsi_facebook_countsFrom'] =='manual') ? 'display:none;' : '' ;?>">
363
+ <p class="sfsi_shared_premium"><b>Note:</b> This plugin uses <u>one</u> API shared by all users of this plugin. There is a limit (set by Facebook) how often this API can get the counts per day, so it may happen that it returns “0 counts” later in the day.<br><br>Therefore we implemented a solution as part of our Premium Plugin where you can <b>easily</b> set up your own API in a few steps, which will fix this problem.<br><br><a style="cursor:pointer;border-bottom: 1px solid #12a252;color: #12a252 !important" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" style="border-bottom: 1px solid #12a252;color: #12a252 !important" class="sfisi_font_bold" target="_blank">Go prermium now<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=facebook_counts&utm_medium=banner" class="sfsi_font_inherit" style="color: #12a252 !important" target="_blank"> or learn more</a>
364
  </p>
365
  </div>
366
 
561
 
562
 
563
  <div class="sfsi_new_prmium_follw" style="margin-top: 38px;">
564
+ <p><b>New: </b>In the Premium Plugin you can also automatically show the number of PINs from your Pinterest account, or of a specific board, or the number of your Pinterest followers. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_pinterest_counts&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
565
  </div>
566
 
567
  </div>
606
  </div>
607
  </div>
608
  <div class="sfsi_instagramInstruction">
609
+ <p>To complete the process please follow these steps:</p>
610
+ <ol>
611
  <li>Go to <a href="https://www.instagram.com/developer" target="_blank">https://www.instagram.com/developer</a></li>
612
  <li>Login and then click on “Register Your Application” to get to the “Manage Clients” section. On there click on the “Register a new client” button</li>
613
  <li>Fill out the form and make sure that the “Redirect url” is valid and uncheck the “Disable Implicit oAuth” under the security tab.</li>
616
  <li>Authorize your app to access your account info by clicking the “Authorize” button'.</li>
617
  <li>Now you will be redirected to the redirect url (which you entered during app creation) and find your access token at the end of this url(For example: http://your-website.com/#access_token=< your access token >)</li>
618
  <li>Copy the access token, paste it into the plugin and click on “Save”.</li>
619
+ </ol>
620
  </div>
621
  </li>
622
  <li>
628
  </div>
629
  <!-- END INSTAGRAM ICON COUNT SECTION-->
630
 
631
+ <!-- telegram ICON COUNT SECTION-->
632
+ <div class="specify_counts telegram_section">
633
+ <div class="radio_section">
634
+ <input name="sfsi_telegram_countsDisplay" <?php echo ($option4['sfsi_telegram_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
635
+ </div>
636
+ <div class="social_icon_like">
637
+ <ul class="like_icon">
638
+ <li>
639
+ <a title="telegram">
640
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_telegram.png" height="50px" alt="telegram" />
641
+ <span><?php echo $counts['telegram_count']; ?></span>
642
+ </a>
643
+ </li>
644
+ </ul>
645
+ </div>
646
+ <div class="listing">
647
+ <ul>
648
+ <li>We cannot track this. So enter the figure here: <input name="sfsi_telegram_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_telegram_manualCounts']!='') ? $option4['sfsi_telegram_manualCounts'] : '' ;?>" /></li>
649
+ </ul>
650
+ </div>
651
+ </div>
652
+ <!-- END telegram ICON COUNT SECTION-->
653
+
654
+ <!-- vk ICON COUNT SECTION-->
655
+ <div class="specify_counts vk_section">
656
+ <div class="radio_section">
657
+ <input name="sfsi_vk_countsDisplay" <?php echo ($option4['sfsi_vk_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
658
+ </div>
659
+ <div class="social_icon_like">
660
+ <ul class="like_icon">
661
+ <li>
662
+ <a title="vk">
663
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_vk.png" height="50px" alt="vk" />
664
+ <span><?php echo $counts['vk_count']; ?></span>
665
+ </a>
666
+ </li>
667
+ </ul>
668
+ </div>
669
+ <div class="listing">
670
+ <ul>
671
+ <li>We cannot track this. So enter the figure here: <input name="sfsi_vk_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_vk_manualCounts']!='') ? $option4['sfsi_vk_manualCounts'] : '' ;?>" /></li>
672
+ </ul>
673
+ </div>
674
+ </div>
675
+ <!-- END vk ICON COUNT SECTION-->
676
+
677
+ <!-- ok ICON COUNT SECTION-->
678
+ <div class="specify_counts ok_section">
679
+ <div class="radio_section">
680
+ <input name="sfsi_ok_countsDisplay" <?php echo ($option4['sfsi_ok_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
681
+ </div>
682
+ <div class="social_icon_like">
683
+ <ul class="like_icon">
684
+ <li>
685
+ <a title="ok">
686
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_ok.png" height="50px" alt="ok" />
687
+ <span><?php echo $counts['ok_count']; ?></span>
688
+ </a>
689
+ </li>
690
+ </ul>
691
+ </div>
692
+ <div class="listing">
693
+ <ul>
694
+ <li>We cannot track this. So enter the figure here: <input name="sfsi_ok_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_ok_manualCounts']!='') ? $option4['sfsi_ok_manualCounts'] : '' ;?>" /></li>
695
+ </ul>
696
+ </div>
697
+ </div>
698
+ <!-- END ok ICON COUNT SECTION-->
699
+
700
+ <!-- weibo ICON COUNT SECTION-->
701
+ <div class="specify_counts weibo_section">
702
+ <div class="radio_section">
703
+ <input name="sfsi_weibo_countsDisplay" <?php echo ($option4['sfsi_weibo_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
704
+ </div>
705
+ <div class="social_icon_like">
706
+ <ul class="like_icon">
707
+ <li>
708
+ <a title="weibo">
709
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_weibo.png" height="50px" alt="weibo" />
710
+ <span><?php echo $counts['weibo_count']; ?></span>
711
+ </a>
712
+ </li>
713
+ </ul>
714
+ </div>
715
+ <div class="listing">
716
+ <ul>
717
+ <li>We cannot track this. So enter the figure here: <input name="sfsi_weibo_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_weibo_manualCounts']!='') ? $option4['sfsi_weibo_manualCounts'] : '' ;?>" /></li>
718
+ </ul>
719
+ </div>
720
+ </div>
721
+ <!-- END weibo ICON COUNT SECTION-->
722
+
723
+ <!-- wechat ICON COUNT SECTION-->
724
+ <div class="specify_counts wechat_section">
725
+ <div class="radio_section">
726
+ <input name="sfsi_wechat_countsDisplay" <?php echo ($option4['sfsi_wechat_countsDisplay']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
727
+ </div>
728
+ <div class="social_icon_like">
729
+ <ul class="like_icon">
730
+ <li>
731
+ <a title="wechat">
732
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_wechat.png" height="50px" alt="wechat" />
733
+ <span><?php echo $counts['wechat_count']; ?></span>
734
+ </a>
735
+ </li>
736
+ </ul>
737
+ </div>
738
+ <div class="listing">
739
+ <ul>
740
+ <li>We cannot track this. So enter the figure here: <input name="sfsi_wechat_manualCounts" type="text" class="input" value="<?php echo ($option4['sfsi_wechat_manualCounts']!='') ? $option4['sfsi_wechat_manualCounts'] : '' ;?>" /></li>
741
+ </ul>
742
+ </div>
743
+ </div>
744
+ <!-- END wechat ICON COUNT SECTION-->
745
  </div>
746
  <!-- END show/hide counts for all icons section -->
747
 
views/sfsi_option_view5.php CHANGED
@@ -3,7 +3,23 @@
3
  $icons = ($option1['sfsi_custom_files']) ? unserialize($option1['sfsi_custom_files']) : array() ;
4
  $option3 = unserialize(get_option('sfsi_section3_options',false));
5
  $option5 = unserialize(get_option('sfsi_section5_options',false));
 
6
  $custom_icons_order = unserialize($option5['sfsi_CustomIcons_order']);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  $icons_order = array(
8
  $option5['sfsi_rssIcon_order'] => 'rss',
9
  $option5['sfsi_emailIcon_order'] => 'email',
@@ -13,7 +29,13 @@
13
  $option5['sfsi_youtubeIcon_order'] => 'youtube',
14
  $option5['sfsi_pinterestIcon_order']=> 'pinterest',
15
  $option5['sfsi_linkedinIcon_order'] => 'linkedin',
16
- $option5['sfsi_instagramIcon_order']=> 'instagram'
 
 
 
 
 
 
17
  ) ;
18
 
19
  /*
@@ -64,6 +86,21 @@
64
  $option5['sfsi_instagram_MouseOverText'] = (isset($option5['sfsi_instagram_MouseOverText']))
65
  ? sanitize_text_field($option5['sfsi_instagram_MouseOverText'])
66
  : '';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
67
  $sfsi_icons_suppress_errors = (isset($option5['sfsi_icons_suppress_errors']))
68
  ? sanitize_text_field($option5['sfsi_icons_suppress_errors'])
69
  : 'no';
@@ -85,7 +122,7 @@
85
  <?php
86
  $ctn = 0;
87
  foreach($icons_order as $index=>$icn) :
88
-
89
  switch ($icn) :
90
  case 'rss' :?>
91
  <li class="rss_section" data-index="<?php echo $index; ?>" id="sfsi_rssIcon_order">
@@ -139,7 +176,39 @@
139
  <li class="instagram_section " data-index="<?php echo $index; ?>" id="sfsi_instagramIcon_order">
140
  <a href="#" title="Instagram" ><img src="<?php echo SFSI_PLUGURL; ?>images/instagram.png" alt="Instagram" /></a>
141
  </li>
142
- <?php break; ?>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
 
144
  <?php default :?>
145
  <?php if(isset($icons[$icn['ele']]) && !empty($icons[$icn['ele']]) && filter_var($icons[$icn['ele']], FILTER_VALIDATE_URL) ): ?>
@@ -160,7 +229,7 @@
160
  <div class="icons_size"><span>Size:</span><input name="sfsi_icons_size" value="<?php echo ($option5['sfsi_icons_size']!='') ? $option5['sfsi_icons_size'] : '' ;?>" type="text" /><ins>pixels wide &amp; tall</ins> <span class="last">Spacing between icons:</span><input name="sfsi_icons_spacing" type="text" value="<?php echo ($option5['sfsi_icons_spacing']!='') ? $option5['sfsi_icons_spacing'] : '' ;?>" /><ins>Pixels</ins></div>
161
 
162
  <div class="icons_prem_disc">
163
- <p class="sfsi_prem_plu_desc"><b>New: </b>The Premium Plugin also allows you to define the vertical distance between the icons (and set this differently for mobile vs. desktop): <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_spacings&utm_medium=banner" target="_blank">Check it out</a></p>
164
  </div>
165
 
166
  </div>
@@ -187,7 +256,7 @@
187
  </div>
188
 
189
  <div class= "sfsi_new_prmium_follw" style="margin-top: 38px;">
190
- <p><b>New: </b>The Premium Plugin gives several more alignment options: <br>- &nbsp;&nbsp; Show icons vertically<br>- &nbsp;&nbsp; Align icons within a widget (left, right, centered)<br>- &nbsp;&nbsp; Align icons within the «container» where you place them via shortcode (left, right, centered) <br><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_alignment_options&utm_medium=banner" target="_blank">See all features</a></p>
191
  </div>
192
 
193
  </div>
@@ -288,7 +357,7 @@
288
  </div>
289
 
290
  <div class="sfsi_new_prmium_follw sfsi_social_sharing" style="margin-bottom: 15px;">
291
- <p>Note: This feature is currently only available in the Premium Plugin. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=define_pic_and_text&utm_medium=banner" target="_blank">See all features</a>
292
  </p>
293
  </div>
294
  </div>
@@ -343,8 +412,32 @@ here what text will be displayed if a user moves his mouse over the icon:
343
  </div>
344
  <div class="clear">
345
  <div class="mouseover_field instagram_section">
346
- <label>Instagram:</label>
347
- <input name="sfsi_instagram_MouseOverText" value="<?php echo ($option5['sfsi_instagram_MouseOverText']!='') ? $option5['sfsi_instagram_MouseOverText'] : '' ;?>" type="text" />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
348
  </div>
349
  </div>
350
  <div class="clear"> </div>
3
  $icons = ($option1['sfsi_custom_files']) ? unserialize($option1['sfsi_custom_files']) : array() ;
4
  $option3 = unserialize(get_option('sfsi_section3_options',false));
5
  $option5 = unserialize(get_option('sfsi_section5_options',false));
6
+
7
  $custom_icons_order = unserialize($option5['sfsi_CustomIcons_order']);
8
+ if(!isset($option5['sfsi_telegramIcon_order'])){
9
+ $option5['sfsi_telegramIcon_order'] = '11';
10
+ }
11
+ if(!isset($option5['sfsi_vkIcon_order'])){
12
+ $option5['sfsi_vkIcon_order'] = '12';
13
+ }
14
+ if(!isset($option5['sfsi_okIcon_order'])){
15
+ $option5['sfsi_okIcon_order'] = '13';
16
+ }
17
+ if(!isset($option5['sfsi_weiboIcon_order'])){
18
+ $option5['sfsi_weiboIcon_order'] = '14';
19
+ }
20
+ if(!isset($option5['sfsi_wechatIcon_order'])){
21
+ $option5['sfsi_wechatIcon_order'] = '15';
22
+ }
23
  $icons_order = array(
24
  $option5['sfsi_rssIcon_order'] => 'rss',
25
  $option5['sfsi_emailIcon_order'] => 'email',
29
  $option5['sfsi_youtubeIcon_order'] => 'youtube',
30
  $option5['sfsi_pinterestIcon_order']=> 'pinterest',
31
  $option5['sfsi_linkedinIcon_order'] => 'linkedin',
32
+ $option5['sfsi_instagramIcon_order']=> 'instagram',
33
+ $option5['sfsi_telegramIcon_order']=> 'telegram',
34
+ $option5['sfsi_vkIcon_order']=> 'vk',
35
+ $option5['sfsi_okIcon_order']=> 'ok',
36
+ $option5['sfsi_weiboIcon_order']=> 'weibo',
37
+ $option5['sfsi_wechatIcon_order']=> 'wechat',
38
+
39
  ) ;
40
 
41
  /*
86
  $option5['sfsi_instagram_MouseOverText'] = (isset($option5['sfsi_instagram_MouseOverText']))
87
  ? sanitize_text_field($option5['sfsi_instagram_MouseOverText'])
88
  : '';
89
+ $option5['sfsi_telegram_MouseOverText'] = (isset($option5['sfsi_telegram_MouseOverText']))
90
+ ? sanitize_text_field($option5['sfsi_telegram_MouseOverText'])
91
+ : '';
92
+ $option5['sfsi_vk_MouseOverText'] = (isset($option5['sfsi_vk_MouseOverText']))
93
+ ? sanitize_text_field($option5['sfsi_vk_MouseOverText'])
94
+ : '';
95
+ $option5['sfsi_ok_MouseOverText'] = (isset($option5['sfsi_ok_MouseOverText']))
96
+ ? sanitize_text_field($option5['sfsi_ok_MouseOverText'])
97
+ : '';
98
+ $option5['sfsi_weibo_MouseOverText'] = (isset($option5['sfsi_weibo_MouseOverText']))
99
+ ? sanitize_text_field($option5['sfsi_weibo_MouseOverText'])
100
+ : '';
101
+ $option5['sfsi_wechat_MouseOverText'] = (isset($option5['sfsi_wechat_MouseOverText']))
102
+ ? sanitize_text_field($option5['sfsi_wechat_MouseOverText'])
103
+ : '';
104
  $sfsi_icons_suppress_errors = (isset($option5['sfsi_icons_suppress_errors']))
105
  ? sanitize_text_field($option5['sfsi_icons_suppress_errors'])
106
  : 'no';
122
  <?php
123
  $ctn = 0;
124
  foreach($icons_order as $index=>$icn) :
125
+
126
  switch ($icn) :
127
  case 'rss' :?>
128
  <li class="rss_section" data-index="<?php echo $index; ?>" id="sfsi_rssIcon_order">
176
  <li class="instagram_section " data-index="<?php echo $index; ?>" id="sfsi_instagramIcon_order">
177
  <a href="#" title="Instagram" ><img src="<?php echo SFSI_PLUGURL; ?>images/instagram.png" alt="Instagram" /></a>
178
  </li>
179
+ <?php break; ?>
180
+
181
+ <?php case 'telegram' :?>
182
+ <li class="telegram_section " data-index="<?php echo $index; ?>" id="sfsi_telegramIcon_order">
183
+ <a href="#" title="telegram" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_telegram.png" height="54px;" alt="telegram" /></a>
184
+ </li>
185
+ <?php break; ?>
186
+
187
+ <?php case 'vk' :?>
188
+ <li class="vk_section " data-index="<?php echo $index; ?>" id="sfsi_vkIcon_order">
189
+ <a href="#" title="vk" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_vk.png" height="54px;" alt="vk" /></a>
190
+ </li>
191
+ <?php break; ?>
192
+
193
+ <?php case 'ok' :?>
194
+ <li class="ok_section " data-index="<?php echo $index; ?>" id="sfsi_okIcon_order">
195
+ <a href="#" title="ok" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_ok.png" height="54px;" alt="ok" /></a>
196
+ </li>
197
+ <?php break; ?>
198
+
199
+ <?php case 'weibo' :?>
200
+ <li class="weibo_section " data-index="<?php echo $index; ?>" id="sfsi_weiboIcon_order">
201
+ <a href="#" title="weibo" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_weibo.png" height="54px;" alt="weibo" /></a>
202
+ </li>
203
+ <?php break; ?>
204
+
205
+ <?php case 'wechat' :?>
206
+ <li class="wechat_section " data-index="<?php echo $index; ?>" id="sfsi_wechatIcon_order">
207
+ <a href="#" title="wechat" ><img src="<?php echo SFSI_PLUGURL; ?>images/icons_theme/default/default_wechat.png" height="54px;" alt="wechat" /></a>
208
+ </li>
209
+ <?php break; ?>
210
+
211
+
212
 
213
  <?php default :?>
214
  <?php if(isset($icons[$icn['ele']]) && !empty($icons[$icn['ele']]) && filter_var($icons[$icn['ele']], FILTER_VALIDATE_URL) ): ?>
229
  <div class="icons_size"><span>Size:</span><input name="sfsi_icons_size" value="<?php echo ($option5['sfsi_icons_size']!='') ? $option5['sfsi_icons_size'] : '' ;?>" type="text" /><ins>pixels wide &amp; tall</ins> <span class="last">Spacing between icons:</span><input name="sfsi_icons_spacing" type="text" value="<?php echo ($option5['sfsi_icons_spacing']!='') ? $option5['sfsi_icons_spacing'] : '' ;?>" /><ins>Pixels</ins></div>
230
 
231
  <div class="icons_prem_disc">
232
+ <p class="sfsi_prem_plu_desc"><b>New: </b>The Premium Plugin also allows you to define the vertical distance between the icons (and set this differently for mobile vs. desktop): <a class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" style="cursor:pointer;border-bottom: 1px solid #12a252;color: #12a252 !important;font-weight:bold" class="sfisi_font_bold" target="_blank">Go prermium now.<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_spacings&utm_medium=banner" class="sfsi_font_inherit" style="color: #12a252 !important" target="_blank"> or learn more.</a>
233
  </div>
234
 
235
  </div>
256
  </div>
257
 
258
  <div class= "sfsi_new_prmium_follw" style="margin-top: 38px;">
259
+ <p><b>New: </b>The Premium Plugin gives several more alignment options: <br>- &nbsp;&nbsp; Show icons vertically<br>- &nbsp;&nbsp; Align icons within a widget (left, right, centered)<br>- &nbsp;&nbsp; Align icons within the «container» where you place them via shortcode (left, right, centered) <br><a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_alignment_options&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
260
  </div>
261
 
262
  </div>
357
  </div>
358
 
359
  <div class="sfsi_new_prmium_follw sfsi_social_sharing" style="margin-bottom: 15px;">
360
+ <p>Note: This feature is currently only available in the Premium Plugin. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=define_pic_and_text&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a>
361
  </p>
362
  </div>
363
  </div>
412
  </div>
413
  <div class="clear">
414
  <div class="mouseover_field instagram_section">
415
+ <label>Instagram:</label>
416
+ <input name="sfsi_instagram_MouseOverText" value="<?php echo ($option5['sfsi_instagram_MouseOverText']!='') ? $option5['sfsi_instagram_MouseOverText'] : '' ;?>" type="text" />
417
+ </div>
418
+ <div class="mouseover_field telegram_section">
419
+ <label>Telegram:</label>
420
+ <input name="sfsi_telegram_MouseOverText" value="<?php echo ($option5['sfsi_telegram_MouseOverText']!='') ? $option5['sfsi_telegram_MouseOverText'] : '' ;?>" type="text" />
421
+ </div>
422
+ </div>
423
+ <div class="clear">
424
+ <div class="mouseover_field vk_section">
425
+ <label>VK:</label>
426
+ <input name="sfsi_vk_MouseOverText" value="<?php echo ($option5['sfsi_vk_MouseOverText']!='') ? $option5['sfsi_vk_MouseOverText'] : '' ;?>" type="text" />
427
+ </div>
428
+ <div class="mouseover_field ok_section">
429
+ <label>Ok:</label>
430
+ <input name="sfsi_ok_MouseOverText" value="<?php echo ($option5['sfsi_ok_MouseOverText']!='') ? $option5['sfsi_ok_MouseOverText'] : '' ;?>" type="text" />
431
+ </div>
432
+ </div>
433
+ <div class="clear">
434
+ <div class="mouseover_field weibo_section">
435
+ <label>Weibo:</label>
436
+ <input name="sfsi_weibo_MouseOverText" value="<?php echo ($option5['sfsi_weibo_MouseOverText']!='') ? $option5['sfsi_weibo_MouseOverText'] : '' ;?>" type="text" />
437
+ </div>
438
+ <div class="mouseover_field wechat_section">
439
+ <label>WeChat:</label>
440
+ <input name="sfsi_wechat_MouseOverText" value="<?php echo ($option5['sfsi_wechat_MouseOverText']!='') ? $option5['sfsi_wechat_MouseOverText'] : '' ;?>" type="text" />
441
  </div>
442
  </div>
443
  <div class="clear"> </div>
views/sfsi_option_view6.php CHANGED
@@ -142,7 +142,7 @@ if(!isset($option6['sfsi_rectfbshare']))
142
  </div><!-- END icons position section -->
143
 
144
  <div class= "sfsi_new_prmium_follw">
145
- <p><b>New:</b> In our Premium Plugin you have many more placement options, e.g. place the icons you selected under question 1, place them also on your homepage (instead of only post’s pages), place them before posts (instead of only after posts) etc. <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_placement_options&utm_medium=banner" target="_blank">See all features</a></p>
146
  </div>
147
 
148
  <?php sfsi_ask_for_help(6); ?>
142
  </div><!-- END icons position section -->
143
 
144
  <div class= "sfsi_new_prmium_follw">
145
+ <p><b>New:</b> In our Premium Plugin you have many more placement options, e.g. place the icons you selected under question 1, place them also on your homepage (instead of only post’s pages), place them before posts (instead of only after posts) etc. <a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_placement_options&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
146
  </div>
147
 
148
  <?php sfsi_ask_for_help(6); ?>
views/sfsi_option_view7.php CHANGED
@@ -80,6 +80,36 @@ $option7['sfsi_Shown_popupOnceTime'] = (isset($option7['sfsi_Shown_popupOnceTim
80
  <img src="<?php echo SFSI_PLUGURL ?>images/instagram.png" alt="Instagram" />
81
  <span class="sfsi_Cdisplay" id="sfsi_instagram_countsDisplay">12k</span>
82
  </div>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
83
  </li>
84
  <?php
85
  if(isset($icons) && !empty($icons))
@@ -232,7 +262,7 @@ $option7['sfsi_Shown_popupOnceTime'] = (isset($option7['sfsi_Shown_popupOnceTim
232
  </div> -->
233
 
234
  <div class="bannerPopupQue6 sfsi_new_prmium_follw" style="margin-top: 38px;">
235
- <p><b>New: </b>The Premium Plugin allows you to do much more with the pop-up, e.g. you can: <br>- &nbsp;&nbsp; Show it when users try to leave your page<br>- &nbsp;&nbsp; Limit how often the pop-up is shown to the same user (e.g. only once per day)<br>- &nbsp;&nbsp; Select to show the subscription form in the pop-up (which you designed in question 8) <br><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_popup_options&utm_medium=banner" target="_blank">See all features</a></p>
236
  </div>
237
 
238
  </div>
80
  <img src="<?php echo SFSI_PLUGURL ?>images/instagram.png" alt="Instagram" />
81
  <span class="sfsi_Cdisplay" id="sfsi_instagram_countsDisplay">12k</span>
82
  </div>
83
+ </li>
84
+ <li class="telegram_section">
85
+ <div>
86
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_telegram.png" height="50px" alt="telegram" />
87
+ <span class="sfsi_Cdisplay" id="sfsi_telegram_countsDisplay">12k</span>
88
+ </div>
89
+ </li>
90
+ <li class="vk_section">
91
+ <div>
92
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_vk.png" height="50px" alt="vk" />
93
+ <span class="sfsi_Cdisplay" id="sfsi_vk_countsDisplay">12k</span>
94
+ </div>
95
+ </li>
96
+ <li class="ok_section">
97
+ <div>
98
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_ok.png" height="50px" alt="ok" />
99
+ <span class="sfsi_Cdisplay" id="sfsi_ok_countsDisplay">12k</span>
100
+ </div>
101
+ </li>
102
+ <li class="weibo_section">
103
+ <div>
104
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_weibo.png" height="50px" alt="weibo" />
105
+ <span class="sfsi_Cdisplay" id="sfsi_weibo_countsDisplay">12k</span>
106
+ </div>
107
+ </li>
108
+ <li class="wechat_section">
109
+ <div>
110
+ <img src="<?php echo SFSI_PLUGURL ?>images/icons_theme/default/default_wechat.png" height="50px" alt="wechat" />
111
+ <span class="sfsi_Cdisplay" id="sfsi_wechat_countsDisplay">12k</span>
112
+ </div>
113
  </li>
114
  <?php
115
  if(isset($icons) && !empty($icons))
262
  </div> -->
263
 
264
  <div class="bannerPopupQue6 sfsi_new_prmium_follw" style="margin-top: 38px;">
265
+ <p><b>New: </b>The Premium Plugin allows you to do much more with the pop-up, e.g. you can: <br>- &nbsp;&nbsp; Show it when users try to leave your page<br>- &nbsp;&nbsp; Limit how often the pop-up is shown to the same user (e.g. only once per day)<br>- &nbsp;&nbsp; Select to show the subscription form in the pop-up (which you designed in question 8) <br><a style="cursor:pointer" class="pop-up" data-id="sfsi_quickpay-overlay" onclick="sfsi_open_quick_checkout(event)" class="sfisi_font_bold" target="_blank">Go prermium now</a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmi_settings_page&utm_campaign=more_popup_options&utm_medium=banner" class="sfsi_font_inherit" target="_blank"> or learn more.</a></p>
266
  </div>
267
 
268
  </div>
views/sfsi_option_view8.php CHANGED
@@ -388,10 +388,12 @@ $option8['sfsi_form_button_background'] = (isset($option8['sfsi_form_button_back
388
  <!--Row Section-->
389
  <div class="row_tab">
390
  <div class="sfsi_field">
391
- <label class="sfsi_same_width"><b>Button color:</b></label>
392
- <input type="text" name="sfsi_form_button_background" data-default-color="#b5b5b5" id="sfsi_form_button_background" value="<?php echo ($option8['sfsi_form_button_background']!='')
 
393
  ? $option8['sfsi_form_button_background'] : '' ;
394
  ?>">
 
395
  <!--div class="color_box">
396
  <div class="corner"></div>
397
  <div class="color_box1" id="sfsiFormButtonBackground" style="background: <?php //echo ($option8['sfsi_form_button_background']!='') ? $option8['sfsi_form_button_background'] : '' ;
388
  <!--Row Section-->
389
  <div class="row_tab">
390
  <div class="sfsi_field">
391
+ <label class="sfsi_same_width">Button color:</label>
392
+ <div class="sfsi_field">
393
+ <input type="text" name="sfsi_form_button_background" data-default-color="#b5b5b5" id="sfsi_form_button_background" value="<?php echo ($option8['sfsi_form_button_background']!='')
394
  ? $option8['sfsi_form_button_background'] : '' ;
395
  ?>">
396
+ </div>
397
  <!--div class="color_box">
398
  <div class="corner"></div>
399
  <div class="color_box1" id="sfsiFormButtonBackground" style="background: <?php //echo ($option8['sfsi_form_button_background']!='') ? $option8['sfsi_form_button_background'] : '' ;
views/sfsi_options_view.php CHANGED
@@ -37,7 +37,7 @@
37
  margin-bottom: 45px;
38
  padding: 12px 13px;
39
  width: 98%;
40
- background-image: url(<?php echo SFSI_PLUGURL ?>images/notification-close.png);
41
  background-position: right 20px center;
42
  background-repeat: no-repeat;
43
  cursor: pointer;
@@ -252,5 +252,4 @@
252
  });
253
 
254
  </script>
255
- ?>
256
  <?php include(SFSI_DOCROOT.'/views/sfsi_chat_on_admin_pannel.php'); ?>
37
  margin-bottom: 45px;
38
  padding: 12px 13px;
39
  width: 98%;
40
+ background-image: url(<?php echo SFSI_PLUGURL; ?>images/notification-close.png);
41
  background-position: right 20px center;
42
  background-repeat: no-repeat;
43
  cursor: pointer;
252
  });
253
 
254
  </script>
 
255
  <?php include(SFSI_DOCROOT.'/views/sfsi_chat_on_admin_pannel.php'); ?>
views/sfsi_pop_content.php CHANGED
@@ -501,7 +501,108 @@ I want to see how it works</a></div>
501
  }
502
  ?>
503
  </div>
504
- </li>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
505
 
506
  </ul>
507
  <div class="cstmskins_sbmt">
501
  }
502
  ?>
503
  </div>
504
+ </li>
505
+ <li>
506
+ <div class="cstm_icnname">Telegram</div>
507
+ <div class="cstmskins_btn">
508
+ <?php
509
+ if(get_option("telegram_skin"))
510
+ {
511
+ $telegram_skin = get_option("telegram_skin");
512
+ echo "<img src='".$telegram_skin."' width='30px' height='30px' class='imgskin'>";
513
+ echo '<a href="javascript:" onclick="upload_image(this);" title="telegram_skin" class="cstmskin_btn">Update</a>';
514
+ echo '<a href="javascript:" onclick="deleteskin_icon(this);" title="telegram_skin" data-nonce="'.$nonce.'" class="cstmskin_btn">Delete</a>';
515
+ }
516
+ else
517
+ {
518
+ echo "<img src='' width='30px' height='30px' class='imgskin skswrpr'>";
519
+ echo '<a href="javascript:" onclick="upload_image(this);" title="telegram_skin" class="cstmskin_btn">Upload</a>';
520
+ echo '<a href="javascript:" onclick="deleteskin_icon(this);" title="telegram_skin" data-nonce="'.$nonce.'" class="cstmskin_btn dlt_btn">Delete</a>';
521
+ }
522
+ ?>
523
+ </div>
524
+ </li>
525
+ <li>
526
+ <div class="cstm_icnname">VK</div>
527
+ <div class="cstmskins_btn">
528
+ <?php
529
+ if(get_option("vk_skin"))
530
+ {
531
+ $vk_skin = get_option("vk_skin");
532
+ echo "<img src='".$vk_skin."' width='30px' height='30px' class='imgskin'>";
533
+ echo '<a href="javascript:" onclick="upload_image(this);" title="vk_skin" class="cstmskin_btn">Update</a>';
534
+ echo '<a href="javascript:" onclick="deleteskin_icon(this);" title="vk_skin" data-nonce="'.$nonce.'" class="cstmskin_btn">Delete</a>';
535
+ }
536
+ else
537
+ {
538
+ echo "<img src='' width='30px' height='30px' class='imgskin skswrpr'>";
539
+ echo '<a href="javascript:" onclick="upload_image(this);" title="vk_skin" class="cstmskin_btn">Upload</a>';
540
+ echo '<a href="javascript:" onclick="deleteskin_icon(this);" title="vk_skin" data-nonce="'.$nonce.'" class="cstmskin_btn dlt_btn">Delete</a>';
541
+ }
542
+ ?>
543
+ </div>
544
+ </li>
545
+ <li>
546
+ <div class="cstm_icnname">Ok</div>
547
+ <div class="cstmskins_btn">
548
+ <?php
549
+ if(get_option("ok_skin"))
550
+ {
551
+ $ok_skin = get_option("ok_skin");
552
+ echo "<img src='".$ok_skin."' width='30px' height='30px' class='imgskin'>";
553
+ echo '<a href="javascript:" onclick="upload_image(this);" title="ok_skin" class="cstmskin_btn">Update</a>';
554
+ echo '<a href="javascript:" onclick="deleteskin_icon(this);" title="ok_skin" data-nonce="'.$nonce.'" class="cstmskin_btn">Delete</a>';
555
+ }
556
+ else
557
+ {
558
+ echo "<img src='' width='30px' height='30px' class='imgskin skswrpr'>";
559
+ echo '<a href="javascript:" onclick="upload_image(this);" title="ok_skin" class="cstmskin_btn">Upload</a>';
560
+ echo '<a href="javascript:" onclick="deleteskin_icon(this);" title="ok_skin" data-nonce="'.$nonce.'" class="cstmskin_btn dlt_btn">Delete</a>';
561
+ }
562
+ ?>
563
+ </div>
564
+ </li>
565
+ <li>
566
+ <div class="cstm_icnname">Weibo</div>
567
+ <div class="cstmskins_btn">
568
+ <?php
569
+ if(get_option("weibo_skin"))
570
+ {
571
+ $weibo_skin = get_option("weibo_skin");
572
+ echo "<img src='".$weibo_skin."' width='30px' height='30px' class='imgskin'>";
573
+ echo '<a href="javascript:" onclick="upload_image(this);" title="weibo_skin" class="cstmskin_btn">Update</a>';
574
+ echo '<a href="javascript:" onclick="deleteskin_icon(this);" title="weibo_skin" data-nonce="'.$nonce.'" class="cstmskin_btn">Delete</a>';
575
+ }
576
+ else
577
+ {
578
+ echo "<img src='' width='30px' height='30px' class='imgskin skswrpr'>";
579
+ echo '<a href="javascript:" onclick="upload_image(this);" title="weibo_skin" class="cstmskin_btn">Upload</a>';
580
+ echo '<a href="javascript:" onclick="deleteskin_icon(this);" title="weibo_skin" data-nonce="'.$nonce.'" class="cstmskin_btn dlt_btn">Delete</a>';
581
+ }
582
+ ?>
583
+ </div>
584
+ </li>
585
+ <li>
586
+ <div class="cstm_icnname">WeChat</div>
587
+ <div class="cstmskins_btn">
588
+ <?php
589
+ if(get_option("wechat_skin"))
590
+ {
591
+ $wechat_skin = get_option("wechat_skin");
592
+ echo "<img src='".$wechat_skin."' width='30px' height='30px' class='imgskin'>";
593
+ echo '<a href="javascript:" onclick="upload_image(this);" title="wechat_skin" class="cstmskin_btn">Update</a>';
594
+ echo '<a href="javascript:" onclick="deleteskin_icon(this);" title="wechat_skin" data-nonce="'.$nonce.'" class="cstmskin_btn">Delete</a>';
595
+ }
596
+ else
597
+ {
598
+ echo "<img src='' width='30px' height='30px' class='imgskin skswrpr'>";
599
+ echo '<a href="javascript:" onclick="upload_image(this);" title="wechat_skin" class="cstmskin_btn">Upload</a>';
600
+ echo '<a href="javascript:" onclick="deleteskin_icon(this);" title="wechat_skin" data-nonce="'.$nonce.'" class="cstmskin_btn dlt_btn">Delete</a>';
601
+ }
602
+ ?>
603
+ </div>
604
+ </li>
605
+
606
 
607
  </ul>
608
  <div class="cstmskins_sbmt">