Social Share Icons & Social Share Buttons - Version 3.5.0

Version Description

  • Updated to WordPress 5.8.1 compatibility.
  • Optimize code
  • Remove unused images
  • Add/update Translation functions
  • Some minor fixes
Download this release

Release Info

Developer socialsharepro
Plugin Icon 128x128 Social Share Icons & Social Share Buttons
Version 3.5.0
Comparing to
See all releases

Code changes from version 3.4.9 to 3.5.0

Files changed (95) hide show
  1. .gitignore +1 -0
  2. banner/views/projects/bmi/install.php +2 -2
  3. banner/views/projects/bmi/upgrade.php +3 -3
  4. banner/views/projects/cdp/install.php +1 -1
  5. banner/views/projects/cdp/upgrade.php +2 -2
  6. banner/views/projects/fit/install.php +3 -3
  7. banner/views/projects/mpu/install.php +2 -2
  8. banner/views/projects/mpu/installed.php +2 -2
  9. banner/views/projects/twp/install.php +2 -2
  10. banner/views/projects/usm/install.php +2 -2
  11. banner/views/projects/usm/part-upgrade.php +1 -1
  12. banner/views/projects/usm/upgrade.php +3 -3
  13. dist/blocks.build.js +1 -0
  14. dist/blocks.editor.build.css +1 -0
  15. images/visit_icons/Visit_us_google/icon_Visit_me_ar.png +0 -0
  16. images/visit_icons/Visit_us_google/icon_Visit_me_bg_BG.png +0 -0
  17. images/visit_icons/Visit_us_google/icon_Visit_me_cs_CZ.png +0 -0
  18. images/visit_icons/Visit_us_google/icon_Visit_me_da_DK.png +0 -0
  19. images/visit_icons/Visit_us_google/icon_Visit_me_de_DE.png +0 -0
  20. images/visit_icons/Visit_us_google/icon_Visit_me_el.png +0 -0
  21. images/visit_icons/Visit_us_google/icon_Visit_me_en_US.png +0 -0
  22. images/visit_icons/Visit_us_google/icon_Visit_me_es_ES.png +0 -0
  23. images/visit_icons/Visit_us_google/icon_Visit_me_fa_IR.png +0 -0
  24. images/visit_icons/Visit_us_google/icon_Visit_me_fi.png +0 -0
  25. images/visit_icons/Visit_us_google/icon_Visit_me_fr_FR.png +0 -0
  26. images/visit_icons/Visit_us_google/icon_Visit_me_hu_HU.png +0 -0
  27. images/visit_icons/Visit_us_google/icon_Visit_me_id_ID.png +0 -0
  28. images/visit_icons/Visit_us_google/icon_Visit_me_it_IT.png +0 -0
  29. images/visit_icons/Visit_us_google/icon_Visit_me_ja.png +0 -0
  30. images/visit_icons/Visit_us_google/icon_Visit_me_ko_KR.png +0 -0
  31. images/visit_icons/Visit_us_google/icon_Visit_me_nb_NO.png +0 -0
  32. images/visit_icons/Visit_us_google/icon_Visit_me_nl_NL.png +0 -0
  33. images/visit_icons/Visit_us_google/icon_Visit_me_pl_PL.png +0 -0
  34. images/visit_icons/Visit_us_google/icon_Visit_me_pt_PT.png +0 -0
  35. images/visit_icons/Visit_us_google/icon_Visit_me_ro_RO.png +0 -0
  36. images/visit_icons/Visit_us_google/icon_Visit_me_ru_RU.png +0 -0
  37. images/visit_icons/Visit_us_google/icon_Visit_me_sk_SK.png +0 -0
  38. images/visit_icons/Visit_us_google/icon_Visit_me_sv_SE.png +0 -0
  39. images/visit_icons/Visit_us_google/icon_Visit_me_th.png +0 -0
  40. images/visit_icons/Visit_us_google/icon_Visit_me_tr_TR.png +0 -0
  41. images/visit_icons/Visit_us_google/icon_Visit_me_vi.png +0 -0
  42. images/visit_icons/Visit_us_google/icon_Visit_me_zh_CN.png +0 -0
  43. images/visit_icons/Visit_us_google/icon_Visit_us_ar.png +0 -0
  44. images/visit_icons/Visit_us_google/icon_Visit_us_bg_BG.png +0 -0
  45. images/visit_icons/Visit_us_google/icon_Visit_us_cs_CZ.png +0 -0
  46. images/visit_icons/Visit_us_google/icon_Visit_us_da_DK.png +0 -0
  47. images/visit_icons/Visit_us_google/icon_Visit_us_de_DE.png +0 -0
  48. images/visit_icons/Visit_us_google/icon_Visit_us_el.png +0 -0
  49. images/visit_icons/Visit_us_google/icon_Visit_us_en_US.png +0 -0
  50. images/visit_icons/Visit_us_google/icon_Visit_us_es_ES.png +0 -0
  51. images/visit_icons/Visit_us_google/icon_Visit_us_fa_IR.png +0 -0
  52. images/visit_icons/Visit_us_google/icon_Visit_us_fi.png +0 -0
  53. images/visit_icons/Visit_us_google/icon_Visit_us_fr_FR.png +0 -0
  54. images/visit_icons/Visit_us_google/icon_Visit_us_hu_HU.png +0 -0
  55. images/visit_icons/Visit_us_google/icon_Visit_us_id_ID.png +0 -0
  56. images/visit_icons/Visit_us_google/icon_Visit_us_it_IT.png +0 -0
  57. images/visit_icons/Visit_us_google/icon_Visit_us_ja.png +0 -0
  58. images/visit_icons/Visit_us_google/icon_Visit_us_ko_KR.png +0 -0
  59. images/visit_icons/Visit_us_google/icon_Visit_us_nb_NO.png +0 -0
  60. images/visit_icons/Visit_us_google/icon_Visit_us_nl_NL.png +0 -0
  61. images/visit_icons/Visit_us_google/icon_Visit_us_pl_PL.png +0 -0
  62. images/visit_icons/Visit_us_google/icon_Visit_us_pt_PT.png +0 -0
  63. images/visit_icons/Visit_us_google/icon_Visit_us_ro_RO.png +0 -0
  64. images/visit_icons/Visit_us_google/icon_Visit_us_ru_RU.png +0 -0
  65. images/visit_icons/Visit_us_google/icon_Visit_us_sk_SK.png +0 -0
  66. images/visit_icons/Visit_us_google/icon_Visit_us_sv_SE.png +0 -0
  67. images/visit_icons/Visit_us_google/icon_Visit_us_th.png +0 -0
  68. images/visit_icons/Visit_us_google/icon_Visit_us_tr_TR.png +0 -0
  69. images/visit_icons/Visit_us_google/icon_Visit_us_vi.png +0 -0
  70. images/visit_icons/Visit_us_google/icon_Visit_us_zh_CN.png +0 -0
  71. js/custom-admin.js +7 -2
  72. libs/controllers/sfsi_buttons_controller.php +1 -6
  73. libs/controllers/sfsi_class_theme_check.php +9 -6
  74. libs/controllers/sfsi_floater_icons.php +10 -11
  75. libs/controllers/sfsi_frontpopUp.php +20 -22
  76. libs/controllers/sfsi_iconsUpload_contoller.php +4 -4
  77. libs/controllers/sfsi_socialhelper.php +630 -588
  78. libs/controllers/sfsiocns_OnPosts.php +572 -575
  79. libs/sfsi_Init_JqueryCss.php +1 -3
  80. libs/sfsi_ajax_social_sharing_settings_updater.php +1 -2
  81. libs/sfsi_custom_social_sharing_data.php +196 -164
  82. libs/sfsi_gutenberg_block.php +4 -5
  83. libs/sfsi_install_uninstall.php +17 -19
  84. libs/sfsi_plus_subscribe_widget.php +14 -17
  85. libs/sfsi_widget.php +34 -41
  86. readme.txt +887 -882
  87. ultimate_social_media_icons.php +14 -27
  88. views/sfsi_option_view1.php +120 -130
  89. views/sfsi_option_view2.php +142 -154
  90. views/sfsi_option_view4.php +3 -1
  91. views/sfsi_option_view5.php +3 -3
  92. views/sfsi_option_view7.php +6 -5
  93. views/sfsi_option_view8.php +6 -6
  94. views/sfsi_options_view.php +1 -1
  95. views/subviews/que4/animatethem.php +104 -170
.gitignore ADDED
@@ -0,0 +1 @@
 
1
+ .DS_Store
banner/views/projects/bmi/install.php CHANGED
@@ -10,7 +10,7 @@
10
 
11
  <div class="ci-left-part ci-install-state">
12
  <div class="ci-project-logo">
13
- <a href="https://backupbliss.com" target="_blank">
14
  <div class="ci-project-logo-element">
15
  <img src="<?php $this->_asset('/projects/bmi/imgs/big-colored-logo.png'); ?>">
16
  <span><b>Backup</b> &<br>Clone & Migration</span>
@@ -22,7 +22,7 @@
22
  <ul class="ci-checkmark-list ci-checkmark-list-type-1">
23
  <li>Create backups & migrate your site</li>
24
  <li>Don't lose your work / switch to another host with ease</li>
25
- <li><b>Free</b> <span class="ci-light-font">(optional upgrade to <a href="https://backupbliss.com" target="_blank">premium</a>)</span></li>
26
  </ul>
27
  <div class="ci-install-button">
28
  <button class="ci-inisev-install-plugin" data-slug="bmi">Install plugin now</button>
10
 
11
  <div class="ci-left-part ci-install-state">
12
  <div class="ci-project-logo">
13
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">
14
  <div class="ci-project-logo-element">
15
  <img src="<?php $this->_asset('/projects/bmi/imgs/big-colored-logo.png'); ?>">
16
  <span><b>Backup</b> &<br>Clone & Migration</span>
22
  <ul class="ci-checkmark-list ci-checkmark-list-type-1">
23
  <li>Create backups & migrate your site</li>
24
  <li>Don't lose your work / switch to another host with ease</li>
25
+ <li><b>Free</b> <span class="ci-light-font">(optional upgrade to <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">premium</a>)</span></li>
26
  </ul>
27
  <div class="ci-install-button">
28
  <button class="ci-inisev-install-plugin" data-slug="bmi">Install plugin now</button>
banner/views/projects/bmi/upgrade.php CHANGED
@@ -33,15 +33,15 @@
33
  <div class="ci-pros-list-column">
34
  <ul class="ci-timer-list">
35
  <li>Smart exclusion rules</li>
36
- <li class="ci-no-clock ci-fancy-signature">...and so <a href="https://backupbliss.com" target="_blank" class="ci-green-text">much more!</a></li>
37
  </ul>
38
  </div>
39
  </div>
40
  <div class="ci-submit-button-row">
41
  <div class="ci-submit-button-wrapper">
42
- <a href="https://backupbliss.com" target="_blank" class="ci-button-link ci-round-button ci-no-arrow">Upgrade now</a>
43
  <div class="ci-learn-more-button">
44
- <a href="https://backupbliss.com" target="_blank">Learn more</a>
45
  </div>
46
  </div>
47
  </div>
33
  <div class="ci-pros-list-column">
34
  <ul class="ci-timer-list">
35
  <li>Smart exclusion rules</li>
36
+ <li class="ci-no-clock ci-fancy-signature">...and so <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank" class="ci-green-text">much more!</a></li>
37
  </ul>
38
  </div>
39
  </div>
40
  <div class="ci-submit-button-row">
41
  <div class="ci-submit-button-wrapper">
42
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank" class="ci-button-link ci-round-button ci-no-arrow">Upgrade now</a>
43
  <div class="ci-learn-more-button">
44
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">Learn more</a>
45
  </div>
46
  </div>
47
  </div>
banner/views/projects/cdp/install.php CHANGED
@@ -22,7 +22,7 @@
22
  <ul class="ci-checkmark-list ci-checkmark-list-type-1">
23
  <li>Copy posts & pages with one click</li>
24
  <li>Save a lot of time!</li>
25
- <li><b>Free</b> <span class="ci-light-font">(optional upgrade to <a href="https://sellcodes.com/CylMIdJD" target="_blank">premium</a>)</span></li>
26
  </ul>
27
  <div class="ci-install-button">
28
  <button class="ci-inisev-install-plugin" data-slug="cdp">Install plugin now</button>
22
  <ul class="ci-checkmark-list ci-checkmark-list-type-1">
23
  <li>Copy posts & pages with one click</li>
24
  <li>Save a lot of time!</li>
25
+ <li><b>Free</b> <span class="ci-light-font">(optional upgrade to <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">premium</a>)</span></li>
26
  </ul>
27
  <div class="ci-install-button">
28
  <button class="ci-inisev-install-plugin" data-slug="cdp">Install plugin now</button>
banner/views/projects/cdp/upgrade.php CHANGED
@@ -22,7 +22,7 @@
22
  <ul class="ci-checkmark-list ci-checkmark-list-type-2">
23
  <li>Also copy 3rd party infos</li>
24
  <li>Auto-delete posts</li>
25
- <li class="ci-no-checkmark ci-fancy-signature">...and so <a href="https://sellcodes.com/CylMIdJD" target="_blank" class="ci-green-text">much more!</a></li>
26
  </ul>
27
  </div>
28
  </div>
@@ -30,7 +30,7 @@
30
  <div class="ci-submit-button-wrapper">
31
  <a href="https://wordpress.org/plugins/copy-delete-posts/" target="_blank" class="ci-button-link ci-round-button ci-no-arrow">Upgrade now</a>
32
  <div class="ci-learn-more-button">
33
- <a href="https://sellcodes.com/CylMIdJD" target="_blank">Learn more</a>
34
  </div>
35
  </div>
36
  </div>
22
  <ul class="ci-checkmark-list ci-checkmark-list-type-2">
23
  <li>Also copy 3rd party infos</li>
24
  <li>Auto-delete posts</li>
25
+ <li class="ci-no-checkmark ci-fancy-signature">...and so <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank" class="ci-green-text">much more!</a></li>
26
  </ul>
27
  </div>
28
  </div>
30
  <div class="ci-submit-button-wrapper">
31
  <a href="https://wordpress.org/plugins/copy-delete-posts/" target="_blank" class="ci-button-link ci-round-button ci-no-arrow">Upgrade now</a>
32
  <div class="ci-learn-more-button">
33
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">Learn more</a>
34
  </div>
35
  </div>
36
  </div>
banner/views/projects/fit/install.php CHANGED
@@ -12,7 +12,7 @@
12
  <img src="<?php $this->_asset('/projects/fit/imgs/background-top-left.svg'); ?>" class="ci-background-top-left">
13
  <div class="ci-left-part ci-install-state">
14
  <div class="ci-project-logo">
15
- <a href="https://follow.it" target="_blank">
16
  <img src="<?php $this->_asset('/projects/fit/imgs/big-colored-logo.png'); ?>">
17
  </a>
18
  </div>
@@ -20,10 +20,10 @@
20
  <ul class="ci-checkmark-list ci-checkmark-list-type-1">
21
  <li>Alert your website visitors about new posts automatically</li>
22
  <li>Make them come back & increase your traffic</li>
23
- <li><b>Free</b> <span class="ci-light-font">(<a href="http://follow.it/features-and-pricing" target="_blank">basic plan</a>)</span></li>
24
  </ul>
25
  <div class="ci-install-button">
26
- <a href="https://follow.it/intro" target="_blank" class="ci-button-link ci-round-button">Check it out</a>
27
  </div>
28
  </div>
29
  </div>
12
  <img src="<?php $this->_asset('/projects/fit/imgs/background-top-left.svg'); ?>" class="ci-background-top-left">
13
  <div class="ci-left-part ci-install-state">
14
  <div class="ci-project-logo">
15
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">
16
  <img src="<?php $this->_asset('/projects/fit/imgs/big-colored-logo.png'); ?>">
17
  </a>
18
  </div>
20
  <ul class="ci-checkmark-list ci-checkmark-list-type-1">
21
  <li>Alert your website visitors about new posts automatically</li>
22
  <li>Make them come back & increase your traffic</li>
23
+ <li><b>Free</b> <span class="ci-light-font">(<a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">basic plan</a>)</span></li>
24
  </ul>
25
  <div class="ci-install-button">
26
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank" class="ci-button-link ci-round-button">Check it out</a>
27
  </div>
28
  </div>
29
  </div>
banner/views/projects/mpu/install.php CHANGED
@@ -10,7 +10,7 @@
10
 
11
  <div class="ci-left-part ci-install-state">
12
  <div class="ci-project-logo">
13
- <a href="https://mypoups.com" target="_blank">
14
  <img src="<?php $this->_asset('/projects/mpu/imgs/big-colored-logo.png'); ?>">
15
  </a>
16
  <img src="<?php $this->_asset('/static/imgs/rating.svg'); ?>" class="ci-rating" >
@@ -19,7 +19,7 @@
19
  <ul class="ci-checkmark-list ci-checkmark-list-type-1">
20
  <li>Create cool pop-ups with ease</li>
21
  <li>Increase conversions, show discount codes & cookie notices, stop ad-blockers etc.</li>
22
- <li><b>Free</b> <span class="ci-light-font">on <a href="https://mypopups.com" target="_blank" >basic plan</a></span></li>
23
  </ul>
24
  <div class="ci-install-button">
25
  <button class="ci-inisev-install-plugin" data-slug="mpu">Install plugin now</button>
10
 
11
  <div class="ci-left-part ci-install-state">
12
  <div class="ci-project-logo">
13
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">
14
  <img src="<?php $this->_asset('/projects/mpu/imgs/big-colored-logo.png'); ?>">
15
  </a>
16
  <img src="<?php $this->_asset('/static/imgs/rating.svg'); ?>" class="ci-rating" >
19
  <ul class="ci-checkmark-list ci-checkmark-list-type-1">
20
  <li>Create cool pop-ups with ease</li>
21
  <li>Increase conversions, show discount codes & cookie notices, stop ad-blockers etc.</li>
22
+ <li><b>Free</b> <span class="ci-light-font">on <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank" >basic plan</a></span></li>
23
  </ul>
24
  <div class="ci-install-button">
25
  <button class="ci-inisev-install-plugin" data-slug="mpu">Install plugin now</button>
banner/views/projects/mpu/installed.php CHANGED
@@ -16,8 +16,8 @@
16
  <p><span class="ci-colored-part">Already installed –</span> now <b>earn affiliate commissions!</b></p>
17
  </div>
18
  <p>If you share MyPopUps, you’ll earn 40% (!) of every sale you helped to generate!</p>
19
- <p>Just go to <a href="https://sellcodes.com/QK5UTpg3" target="_blank">Sellcodes</a>, click on “Share & earn cash” (next to the title) and follow the steps :)</p>
20
  <div class="ci-check-it-out-button">
21
- <a href="https://sellcodes.com/QK5UTpg3" target="_blank" class="ci-button-link ci-round-button">Check it out</a>
22
  </div>
23
  </div>
16
  <p><span class="ci-colored-part">Already installed –</span> now <b>earn affiliate commissions!</b></p>
17
  </div>
18
  <p>If you share MyPopUps, you’ll earn 40% (!) of every sale you helped to generate!</p>
19
+ <p>Just go to <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">Sellcodes</a>, click on “Share & earn cash” (next to the title) and follow the steps :)</p>
20
  <div class="ci-check-it-out-button">
21
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank" class="ci-button-link ci-round-button">Check it out</a>
22
  </div>
23
  </div>
banner/views/projects/twp/install.php CHANGED
@@ -10,7 +10,7 @@
10
 
11
  <div class="ci-left-part ci-install-state">
12
  <div class="ci-project-logo">
13
- <a href="https://tastewp.com" target="_blank">
14
  <img src="<?php $this->_asset('/projects/twp/imgs/big-colored-logo.png'); ?>">
15
  </a>
16
  </div>
@@ -21,7 +21,7 @@
21
  <li><b>100% Free!</b></li>
22
  </ul>
23
  <div class="ci-install-button">
24
- <a href="https://tastewp.com" target="_blank" class="ci-button-link ci-round-button">Check it out</a>
25
  </div>
26
  </div>
27
  </div>
10
 
11
  <div class="ci-left-part ci-install-state">
12
  <div class="ci-project-logo">
13
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">
14
  <img src="<?php $this->_asset('/projects/twp/imgs/big-colored-logo.png'); ?>">
15
  </a>
16
  </div>
21
  <li><b>100% Free!</b></li>
22
  </ul>
23
  <div class="ci-install-button">
24
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank" class="ci-button-link ci-round-button">Check it out</a>
25
  </div>
26
  </div>
27
  </div>
banner/views/projects/usm/install.php CHANGED
@@ -10,7 +10,7 @@
10
 
11
  <div class="ci-left-part ci-install-state">
12
  <div class="ci-project-logo">
13
- <a href="https://www.ultimatelysocial.com/usm-premium/" target="_blank">
14
  <img src="<?php $this->_asset('/projects/usm/imgs/big-colored-logo.png'); ?>">
15
  </a>
16
  <img src="<?php $this->_asset('/static/imgs/rating.svg'); ?>">
@@ -19,7 +19,7 @@
19
  <ul class="ci-checkmark-list ci-checkmark-list-type-1">
20
  <li>Show social media & sharing icons</li>
21
  <li>Maximize shares for more traffic</li>
22
- <li><b>Free</b> <span class="ci-light-font">(optional upgrade to <a href="https://www.ultimatelysocial.com/usm-premium/" target="_blank">premium</a>)</span></li>
23
  </ul>
24
  <div class="ci-install-button">
25
  <button class="ci-inisev-install-plugin" data-slug="usm">Install plugin now</button>
10
 
11
  <div class="ci-left-part ci-install-state">
12
  <div class="ci-project-logo">
13
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">
14
  <img src="<?php $this->_asset('/projects/usm/imgs/big-colored-logo.png'); ?>">
15
  </a>
16
  <img src="<?php $this->_asset('/static/imgs/rating.svg'); ?>">
19
  <ul class="ci-checkmark-list ci-checkmark-list-type-1">
20
  <li>Show social media & sharing icons</li>
21
  <li>Maximize shares for more traffic</li>
22
+ <li><b>Free</b> <span class="ci-light-font">(optional upgrade to <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">premium</a>)</span></li>
23
  </ul>
24
  <div class="ci-install-button">
25
  <button class="ci-inisev-install-plugin" data-slug="usm">Install plugin now</button>
banner/views/projects/usm/part-upgrade.php CHANGED
@@ -10,7 +10,7 @@
10
 
11
  <div class="ci-right-part ci-visible-for-upgrade">
12
  <div class="ci-video-link-wrapper">
13
- <a href="https://www.ultimatelysocial.com/usm-premium/" target="_blank">
14
  <div class="ci-video-link">
15
  <img src="<?php $this->_asset('/projects/usm/imgs/video-background.png'); ?>" class="ci-video-background">
16
  <div class="ci-play-icon-wrapper">
10
 
11
  <div class="ci-right-part ci-visible-for-upgrade">
12
  <div class="ci-video-link-wrapper">
13
+ <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">
14
  <div class="ci-video-link">
15
  <img src="<?php $this->_asset('/projects/usm/imgs/video-background.png'); ?>" class="ci-video-background">
16
  <div class="ci-play-icon-wrapper">
banner/views/projects/usm/upgrade.php CHANGED
@@ -9,7 +9,7 @@
9
  ?>
10
 
11
  <div class="ci-left-part ci-upgrade-state">
12
- <h2>Don’t forget to <a href="https://www.ultimatelysocial.com/usm-premium/" target="_blank">upgrade to premium</a> for the social sharing plugin :)</h2>
13
  <div class="ci-pros-list ci-three-columns-pros-list">
14
  <div class="ci-pros-list-column">
15
  <ul class="ci-checkmark-list ci-checkmark-list-type-2">
@@ -29,7 +29,7 @@
29
  <ul class="ci-checkmark-list ci-checkmark-list-type-2">
30
  <li>Themed icons</li>
31
  <li>Better icon placement</li>
32
- <li class="ci-no-checkmark ci-fancy-signature">...and so <a href="https://www.ultimatelysocial.com/usm-premium/" target="_blank" class="ci-green-text">much more!</a></li>
33
  </ul>
34
  </div>
35
  </div>
@@ -40,7 +40,7 @@
40
  <li>More icon designs</li>
41
  <li>Friendly support</li>
42
  <li>Mobile optimization</li>
43
- <li class="ci-no-checkmark ci-fancy-signature">...and so <a href="https://www.ultimatelysocial.com/usm-premium/" target="_blank" class="ci-green-text">much more!</a></li>
44
  </ul>
45
  </div>
46
  <div class="ci-pros-list-column">
9
  ?>
10
 
11
  <div class="ci-left-part ci-upgrade-state">
12
+ <h2>Don’t forget to <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank">upgrade to premium</a> for the social sharing plugin :)</h2>
13
  <div class="ci-pros-list ci-three-columns-pros-list">
14
  <div class="ci-pros-list-column">
15
  <ul class="ci-checkmark-list ci-checkmark-list-type-2">
29
  <ul class="ci-checkmark-list ci-checkmark-list-type-2">
30
  <li>Themed icons</li>
31
  <li>Better icon placement</li>
32
+ <li class="ci-no-checkmark ci-fancy-signature">...and so <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank" class="ci-green-text">much more!</a></li>
33
  </ul>
34
  </div>
35
  </div>
40
  <li>More icon designs</li>
41
  <li>Friendly support</li>
42
  <li>Mobile optimization</li>
43
+ <li class="ci-no-checkmark ci-fancy-signature">...and so <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=usm_bottom_banner_to_checkout&utm_medium=banner" target="_blank" class="ci-green-text">much more!</a></li>
44
  </ul>
45
  </div>
46
  <div class="ci-pros-list-column">
dist/blocks.build.js ADDED
@@ -0,0 +1 @@
 
1
+ !function(e){function t(i){if(s[i])return s[i].exports;var o=s[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,t),o.l=!0,o.exports}var s={};t.m=e,t.c=s,t.d=function(e,s,i){t.o(e,s)||Object.defineProperty(e,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(e){var s=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(s,"a",s),s},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,s){"use strict";Object.defineProperty(t,"__esModule",{value:!0});s(1)},function(e,t,s){"use strict";function i(e,t,s){return t in e?Object.defineProperty(e,t,{value:s,enumerable:!0,configurable:!0,writable:!0}):e[t]=s,e}function o(e){var t=e.jscode;return w("div",{className:"sfsi_plus_block_container"},"\n\t",w("div",{className:"sfsi_plus_block"},""),"\n\t",w("script",{},t),"\n")}function n(e){var t=e.jscode;"rectangle"===e.iconType&&(t=t.replace(/window.location.href/gi,'window.location.href+"&ractangle_icon=1"'));var s="yes",i="Please Share:";return e.showTextBeforeShare||""!==e.showTextBeforeShare?s=e.showTextBeforeShare:onAttrChange("showTextBeforeShare","yes"),e.textBeforeShare||""!==e.textBeforeShare?i=e.textBeforeShare:onAttrChange("textBeforeShare","Please Share:"),w("div",{className:"sfsi_plus_block_wrapper"},"\n\t","yes"==s&&w("span",{className:"sfsi_plus_block_text_before_icon"},i),"\n",w("div",{className:"sfsi_plus_block","data-count":e.maxPerRow,"data-align":e.iconAlignemt,"data-icon-type":e.iconType},""),"\n\t")}function l(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;null==t&&(t=jQuery(".wp-block.is-selected"));var s=t.find(" .sfsi_plus_wicons");if(console.log("timeset15",t,s,s.length),0==s.length)setTimeout(function(){var i=parseInt(s.css("width"))||40,o=parseInt(s.css("margin-left"))||0,n=(i+o)*e,l=t.find(".sfsi_plus_block_wrapper .sfsi_plus_wDiv img").first().height(),r=t.find(".sfsi_plus_block_text_before_icon").height();t.find(".sfsi_plus_block_text_before_icon").css({"margin-top":(r-l)/2-2+"px"});var c=t.find(" .sfsiplus_norm_row");console.log("timeset16",s,i,o,n,e,l,r,c,c.length),c.length<1?setTimeout(function(){c=t.find(".sfsiplus_norm_row"),c.css({width:n+"px"})},1e3):c.css({width:n+"px"}),a(t)});else{var i=parseInt(s.css("width"))||40,o=parseInt(s.css("margin-left"))||0,n=(i+o)*e,l=t.find(".sfsi_plus_block_wrapper .sfsi_plus_wDiv img").first().height(),r=t.find(".sfsi_plus_block_text_before_icon").height();t.find(".sfsi_plus_block_text_before_icon").css({"margin-top":(r-l)/2-2+"px"});var c=t.find(" .sfsiplus_norm_row");console.log("timeset11",i,o,n,e,l,r,c,c.length),c.length<1?setTimeout(function(){c=t.find(".sfsiplus_norm_row"),c.css({width:n+"px"})},1e3):c.css({width:n+"px"}),a(t)}}function a(e,t){console.log("timeset5",e,t);var s=e.find(".sfsi_plus_block").attr("data-align");jQuery(e).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),jQuery(e).css({"text-align":s})}function r(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;null!==e&&void 0!==e||(e="round"),null==s&&(s=$(document));var i="";return i=window.sfsi_plus_links&&window.sfsi_plus_links.rest_url?window.sfsi_plus_links.rest_url:window.sfsi_plus_links&&window.sfsi_plus_links.pretty_perma&&"no"===window.sfsi_plus_links.pretty_perma?"/index.php?rest_route=/":"/wp-json/",window.sfsi_plus_links&&window.sfsi_plus_links.pretty_perma&&"no"===window.sfsi_plus_links.pretty_perma?(i=i.replace(/\/$/,""),i+=encodeURI("/ultimate-social-media-plus/v1/icons/"),i+="&"):i+="ultimate-social-media-plus/v1/icons/?",i+="admin_refereal=true&ractangle_icon="+("round"==e?0:1),console.log("timeset6",s,t),jQuery.ajax({url:i,method:"GET"}).done(function(i){console.log("timeset1",s,t),jQuery(s).find(".sfsi_plus_block").length>0?(jQuery(s).find(".sfsi_plus_block").html(i),a(s,t),jQuery(s).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),console.log("timeset2",s,t),l(t.maxPerRow,s),console.log("timeset8",s,t),console.log("timeset7",s,t),"round"!==e&&(console.log("timeset4"),c())):(setTimeout(function(){console.log("timeset3"),jQuery(".sfsi_plus_block").html(i),l(t.maxPerRow,s),jQuery(s).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"})},5e3),console.log("timeset"))}).fail(function(e){jQuery(s).find(".sfsi_plus_block").html(e.responseText.replace("/\\/g",""))})}function c(){window.gapi&&(window.gapi.plusone.go(),window.gapi.plus.go(),window.gapi.ytsubscribe.go()),window.twttr&&window.twttr.widgets.load(),window.IN&&window.IN.parse&&window.IN.parse(),window.addthis&&(window.addthis.toolbox?window.addthis.toolbox(".addthis_button.sficn"):(window.addthis.init(),window.addthis.toolbox(".addthis_button.sficn"))),window.PinUtils&&window.PinUtils.build(),window.FB&&window.FB.XFBML&&window.FB.XFBML.parse()}var u=s(2),d=(s.n(u),s(3)),p=(s.n(d),wp.i18n.__),_=wp.blocks,f=_.registerBlockType,w=(_.RichText,_.TextControl,_.AlignmentToolbar,_.BlockControls,_.InspectorControls,wp.element.createElement),h=w("svg",{width:20,height:20},w("g",{transform:"translate(0.000000,20.000000) scale(0.0062,-0.0070)",fill:"#000000",stroke:"none"},w("path",{d:"M2055 2721 c-284 -83 -461 -332 -442 -624 l6 -89 -72 6 c-406 39 -818 246 -1090 548 l-66 73 -26 -60 c-101 -227 -55 -484 120 -661 l72 -74 -32 0 c-39 0 -127 26 -179 52 l-39 20 6 -74 c18 -224 178 -428 395 -504 58 -20 61 -22 35 -29 -15 -4 -72 -6 -126 -6 -98 1 -98 1 -92 -21 19 -62 77 -150 141 -214 88 -89 200 -148 317 -166 43 -7 77 -15 77 -18 0 -7 -152 -102 -205 -128 -72 -36 -216 -82 -302 -97 -46 -8 -146 -15 -221 -16 -159 -1 -160 2 10 -85 257 -131 542 -193 838 -181 209 8 392 45 572 115 l68 26 0 393 0 393 -100 0 c-93 0 -100 1 -100 20 0 11 -1 90 -1 175 0 85 1 160 1 165 0 6 40 10 100 10 l100 0 1 138 c1 144 3 170 20 241 34 147 165 265 319 288 49 8 174 9 358 5 l62 -2 0 -175 0 -175 -127 0 c-83 0 -137 -5 -153 -13 -35 -18 -46 -61 -49 -193 l-2 -114 165 0 166 0 0 -37 c0 -21 -7 -96 -15 -168 -8 -71 -15 -138 -15 -147 0 -16 -14 -18 -150 -18 l-150 0 0 -332 c1 -686 3 -637 -22 -642 -13 -3 -90 -8 -172 -12 -82 -3 -143 -10 -136 -14 6 -4 93 -8 191 -9 l179 -2 0 272 0 271 63 72 c119 134 198 250 273 397 113 225 184 512 184 745 l0 101 79 66 c64 54 226 235 217 244 -1 1 -26 -6 -55 -17 -59 -23 -176 -55 -235 -65 l-40 -7 50 39 c86 69 147 149 184 242 l19 49 -88 -43 c-69 -34 -199 -81 -276 -99 -5 -2 -37 19 -70 46 -150 122 -366 170 -540 119z"})));if(f("ultimate-social-media-plus/sfsi-plus-share-block",{title:p("Social Icons"),icon:h,category:"common",keywords:[p("Social Icons"),p("Social share"),p("Gutenberg Share")],attributes:{jscode:{default:"\n\t\tjQuery(document).ready(function($) {\n\t\t\tjQuery.ajax({\n\t\t\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\n\t\t\t\t'method': 'GET'\n\t\t\t}).done( function(response){\n\t\t\t\t$('.sfsi_plus_block_wrapper .sfsi_plus_block').html(response);sfsi_plus_update_iconcount();if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\n\t\t\t});\n\t\t});\n\t",type:"string"},showTextBeforeShare:{type:"string",default:"yes"},textBeforeShare:{type:"string",default:"Please Share:"},iconType:{type:"string",default:"round"},iconAlignemt:{type:"string",default:"left"},maxPerRow:{type:"string",default:"5"}},edit:function(e){function t(t,s){e.setAttributes(i({},t,s))}var s=e.setAttributes,o=e.attributes,n="yes",a="Please Share:";o.showTextBeforeShare||""!==o.showTextBeforeShare?n=o.showTextBeforeShare:t("showTextBeforeShare","yes"),o.textBeforeShare||""!==o.textBeforeShare?a=o.textBeforeShare:t("textBeforeShare","Please Share:");var c=jQuery('div[data-block="'+e.clientId+'"]').find(".sfsi_plus_block_container");if(c.length>0){0===c.find(".sfsi_plus_block>div").length&&r(o.iconType,o,c)}else setTimeout(function(){var t=jQuery('div[data-block="'+e.clientId+'"]').find(".sfsi_plus_block_container");0===t.find(".sfsi_plus_block>div").length&&r(o.iconType,o,t)},3e3);return[w(wp.editor.InspectorControls,{key:"sfsi-plus-block-inspector"},w("div",{className:"sfsi_plus_block_inspector"},w("h3",{className:"sfsi_plus_block_icontype_header"},p("Type")),w("select",{className:"form-control sfsi_plus_block_icontype_selector",value:o.iconType,onChange:function(e){var t=jQuery(".wp-block.is-selected").find(".sfsi_plus_block_container");s({iconType:e.target.value}),r(e.target.value,o,t)}},w("option",{value:"round"},"Round / \xabmain\xbb icons"),w("option",{value:"rectangle"},"Rectangle icons")),("round"===e.attributes.iconType||void 0===e.attributes.iconType)&&w("p",{className:"sfsi_plus_block_icontype_desc"},p(" Those are the icons you selected under question 1 on the plugin\u2018s "),w("a",{target:"_blank",href:window.sfsi_plus_links.admin_url+"admin.php?page=sfsi-plus-options#ui-id-1"},p(" settings page."))),"rectangle"===e.attributes.iconType&&w("p",{className:"sfsi_plus_block_icontype_desc"},p("Those are the icons you selected "),w("a",{target:"_blank",href:window.sfsi_plus_links.admin_url+"admin.php?page=sfsi-plus-options#ui-id-5"},p("here."))),w("h3",{className:"sfsi_plus_block_icontype_header"},p("Alignment")),w("select",{className:"form-control sfsi_plus_block_iconalignment_selector",value:o.iconAlignemt,onChange:function(e){s({iconAlignemt:e.target.value});var t=jQuery(".wp-block.is-selected .sfsi_plus_block_container");"center"===e.target.value&&jQuery(t).find(".sfsi_plus_block_text_before_icon").css({display:"inherit"}),jQuery(t).css({"text-align":e.target.value})}},w("option",{value:"left"},"Left"),w("option",{value:"right"},"Right"),w("option",{value:"center"},"Center")),("round"===e.attributes.iconType||void 0===e.attributes.iconType)&&w("div",{className:"sfsi_plus_block_iconperrow_body"},w("span",{className:"label"},p("Max. icons per row")),w("input",{type:"text",value:o.maxPerRow,onChange:function(e){s({maxPerRow:(parseInt(e.target.value)||0)+""}),l(e.target.value)}})),w("label",{htmlFor:"sfsi-plus-text-before-icons",className:"sfsi_plus_block_textbeforeicons"},w("input",{className:"form-control",checked:"yes"==o.showTextBeforeShare,type:"checkbox",onChange:function(e){s({showTextBeforeShare:e.target.checked?"yes":"no"})}}),"Text before icons?"),"yes"==o.showTextBeforeShare&&w("input",{className:"form-input sfsi_plus_block_textbeforeicons_header",value:o.textBeforeShare,style:{"padding-top":"3px"},onChange:function(e){s({textBeforeShare:e.target.value})}}),"yes"===o.showTextBeforeShare&&w("div",{className:"form-input sfsi_plus_block_textbeforeicons_body"},p("Define the font size & type in our "),w("a",{href:"https://www.ultimatelysocial.com/usm-premium/",target:"_blank"},p("Premium plugin"))),w("h3",{className:"sfsi_plus_block_notes_heading"},p("Notes")),w("hr"),w("ul",{className:"sfsi_plus_block_notes_list"},w("li",{className:"sfsi_plus_block_notes_item"},p("For all other selections (What the icons should do etc.) please go to "),w("a",{href:(window.sfsi_plus_links?window.sfsi_plus_links.admin_url:"/wp-admin/admin.php")+"?page=sfsi-plus-options",target:"_blank"},p("settings page"))),w("li",{className:"sfsi_plus_block_notes_item"},p("To see the icons in \u201afull action\u2018 (with all features) please open the page in live or preview mode.")),w("li",{className:"sfsi_plus_block_notes_item"},p("If questions remain, please ask them in the "),w("a",{href:"https://goo.gl/ktAeDv",target:"_blank"},p("support forum")),p(" \u2013 we\u2018ll try to respond quickly."),w("img",{src:(window.sfsi_plus_links?window.sfsi_plus_links.plugin_dir_url:"/wp-content/plugins/ultimate-social-media-plus")+"/images/Ic_insert_emoticon_48px.svg",style:{width:"18px","vertical-align":"text-bottom"}}))),w("h3",{className:"sfsi_plus_block_ad_heading"},"Want (much) more?"),w("div",{className:"sfsi_plus_block_ad_body"},w("div",{},p("Check out our "),w("a",{href:"https://www.ultimatelysocial.com/usm-premium/?utm_source=plus_gutenberg_page&utm_campaign=side_widget&utm_medium=link",target:"_blank"},p("premium plugin\u2018s features")),p(". Watch a teaser: "))),w("div",{style:{"text-align":"center"}},w("iframe",{src:"https://video.inchev.com/videos/embed/c952d896-34be-45bc-8142-ba14694c1bd0",width:"640",frameborder:0,webkitallowfullscreen:"",mozallowfullscreen:"",allowfullscreen:""}),w("a",{href:"https://www.ultimatelysocial.com/usm-premium/?utm_source=plus_gutenberg_page&utm_campaign=side_widget&utm_medium=link",target:"_blank",style:{display:"inline-block",padding:"4px 10px","text-decoration":"none",background:"#00A15A",color:"#fff","font-size":"11px","font-weight":"900"}},p("Check out the Premium Plugin >>"))),w("br"),w("span",{className:"sfsi_plus_block_ad_footer"},p("..from 29.98 USD (includes support and updates for 6 months, and after that it will not be deactivated, so you can just keep using it!)")))),w("div",{key:"sfsi-plus-block-content",className:"sfsi_plus_block_container sfsi_plus_block_wrapper"},"\t","yes"==n&&w("span",{className:"sfsi_plus_block_text_before_icon","data-align":o.iconAlignemt},a),w("div",{className:"sfsi_plus_block","data-count":o.maxPerRow,"data-align":o.iconAlignemt,"data-icon-type":o.iconType},"loading...."))]},deprecated:[{attributes:{jscode:{default:"\n\t\tjQuery(document).ready(function($) {\n\t\t\tjQuery.ajax({\n\t\t\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\n\t\t\t\t'method': 'GET'\n\t\t\t}).done( function(response){\n\t\t\t\t$('.sfsi_plus_block_container .sfsi_plus_block').html(response);if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\n\t\t\t});\n\t\t});\n\t",type:"string"}},isEligible:function(e){return console.log(e),!0},migrate:function(e){return console.log("migrate",e),[{jscode:"\n\t\tjQuery(document).ready(function($) {\n\t\t\tjQuery.ajax({\n\t\t\t\t'url': '/wp-json/ultimate-social-media-plus/v1/icons/?share_url='+window.location.href,\n\t\t\t\t'method': 'GET'\n\t\t\t}).done( function(response){\n\t\t\t\t$('.sfsi_plus_block_wrapper .sfsi_plus_block').html(response);sfsi_plus_update_iconcount();if(window.gapi){window.gapi.plusone.go();window.gapi.plus.go();window.gapi.ytsubscribe.go();};if(window.twttr){window.twttr.widgets.load();};if(window.IN){window.IN.parse();};if(window.addthis){if(window.addthis.toolbox){window.addthis.toolbox('.addthis_button.sficn');}else{window.addthis.init();window.addthis.toolbox('.addthis_button.sficn');}};if(window.PinUtils){window.PinUtils.build();};if(jQuery('.sfsi_plus_wDiv').length > 0) {setTimeout(function() { var s = parseInt(jQuery('.sfsi_plus_wDiv').height()) + 15 + 'px';jQuery('.sfsi_plus_holders').each(function() {jQuery(this).css('height', s);});jQuery('.sfsi_plus_widget').css('min-height', 'auto');}, 200);};if(window.FB){if(window.FB.XFBML){window.FB.XFBML.parse();}};\n\t\t\t});\n\t\t});\n\t",showTextBeforeShare:"yes",textBeforeShare:"Please Share:",iconType:"round",iconAlignemt:"left",maxPerRow:"5"}]},save:function(e){return console.log(e),o(e.attributes)}}],save:function(e){var t=e.attributes;return setTimeout(function(){l(t.maxPerRow)},300),n(t)}}),void 0===window.sfsi_plus_float_widget);},function(e,t){},function(e,t){}]);
dist/blocks.editor.build.css ADDED
@@ -0,0 +1 @@
 
1
+ .sfsi_plus_block{min-height:55px}.sfsi_plus_block.sfsi_plus_block.sfsi_plus_block img{padding:0;border:none}.sfsi_plus_block.sfsi_plus_block[data-icon-type='rectangle'] img{max-height:20px}.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_linkedin_tool_bdr .sfsi_plus_inside .icon4,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_gpls_tool_bdr .sfsi_plus_inside .icon1,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_fb_tool_bdr .sfsi_plus_inside .icon1{height:auto}.sfsi_plus_block .sfsi_plus_widget{min-height:55px}.sfsi_plus_block .sfsi_plus_widget a img{-webkit-box-shadow:none !important;box-shadow:none !important;outline:0;padding:0 !important;border:none !important;max-width:100%}.sfsi_plus_block .sfsiplus_inerCnt{position:relative;z-index:inherit !important;float:left;width:100%;float:left}.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a,.sfsi_plus_block .sfsi_plus_widget .sfsi_plus_wDiv .sfsi_plus_wicons .sfsiplus_inerCnt a.sficn{padding:0px;margin:0px;width:100%;border:medium none}.sfsi_plus_block .sfsiplus_norm_row{float:left;min-width:25px}.sfsi_plus_block .sfsiplus_norm_row a{border:none;display:inline-block;position:relative}.sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall{font-size:9px;left:-28%;top:4px}.sfsi_plus_block .sfsiplus_norm_row .cbtn_vsmall:before{left:31%;top:-9px;margin-left:-31%}.sfsi_plus_block .sfsiplus_norm_row{position:relative !important}.sfsi_plus_block .sfsi_plus_wicons{margin-bottom:30px;position:relative;padding-top:5px;display:inline-block}.sfsi_plus_block .sfsiplus_norm_row .bot_no{padding:1px 0;font-size:12px !important;text-align:center;line-height:12px !important;background:#fff;border-radius:5px;z-index:9;border:1px solid #333;white-space:pre;-webkit-box-sizing:border-box;box-sizing:border-box;width:40px;display:inline-block}.sfsi_plus_block .sfsiplus_norm_row .bot_no:before{content:url("../css/images/count_top_arow.png");position:absolute;height:9px;margin-left:-7.5px;margin-top:-11px;left:50%;width:15px}.sfsi_plus_block .sfsi_plus_widget.sfsi_plus_widget.sfsi_plus_widget img{border:none;padding:0}.sfsi_plus_block .sfsi_plus_Sicons .sf_fb{margin-top:-4px;margin-right:4px}.sfsi_plus_block .sfsi_plus_Sicons .sf_twiter{margin-right:4px}.sfsi_plus_block .sfsi_plus_Sicons .sf_pinit{margin-top:-3px;margin-right:4px}.sfsi_plus_block .sfsi_plus_block .sf_fb span{height:34px !important;vertical-align:bottom !important}.sfsi_plus_block .sfsi_plus_block .sf_fb span iframe{position:relative !important}.gutenberg__editor .sfsi_new_prmium_follw{height:auto !important;min-height:63px}.gutenberg__editor .sfsi_plus_block_text_before_icon{display:inline-block;vertical-align:top}.gutenberg__editor .sfsi_plus_block{display:inline-block}.gutenberg__editor .sfsi_plus_block[data-icon-type="rectangle"] .fb_iframe_widget>span{vertical-align:top !important}.gutenberg__editor .sfsi_plus_block[data-icon-type="rectangle"] .sf_pinit>span{vertical-align:top !important}.sfsi_plus_block_inspector h3,.sfsi_plus_block_inspector label{padding-top:12px;margin-bottom:5px}.sfsi_plus_block_inspector select,.sfsi_plus_block_inspector input[type="text"],.sfsi_plus_block_inspector input[type="number"],.sfsi_plus_block_inspector input[type="email"],.sfsi_plus_block_inspector textarea{width:100%}.sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body{padding-top:20px;font-weight:600}.sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body .label{display:inline-block;width:69%}.sfsi_plus_block_inspector .sfsi_plus_block_iconperrow_body input{display:inline-block;width:30%}.sfsi_plus_block_inspector .sfsi_plus_block_textbeforeicons{display:inline-block}.sfsi_plus_block_inspector .sfsi_plus_block_textbeforeicons_header{padding-top:10px}.sfsi_plus_block_inspector hr{margin:.3em 0}.sfsi_plus_block_inspector ul{margin-top:0}.sfsi_plus_block_inspector ul.sfsi_plus_block_notes_list{list-style-type:disc;-webkit-padding-start:20px;padding-inline-start:20px}.sfsi_plus_block_inspector .sfsi_plus_block_ad_heading,.sfsi_plus_block_inspector .sfsi_plus_block_ad_body{text-align:center}.sfsi_plus_block_inspector .sfsi_plus_block_icontype_desc{margin-bottom:0}.sfsi_plus_block_inspector input[type=checkbox]{margin-right:5px !important}.sfsi_plus_block_inspector .sfsi_plus_block_notes_list{color:#000}.sfsi_plus_block_wrapper .sfsi_plus_block,.sfsi_plus_block_wrapper .sfsi_plus_block_text_before_icon{display:inline-block}.sfsi_plus_block_wrapper .sfsi_plus_block_text_before_icon{vertical-align:top;margin-top:10px}.sfsi_plus_block_container .sfsi_plus_block[data-icon-type='rectangle'] .sf_subscrbe{margin-right:4px !important}.sfsi_plus_block_container .sfsi_plus_block[data-icon-type='rectangle'] .sf_fb{margin-left:4px;margin-right:4px}.sfsi_plus_block_container .sfsi_plus_block[data-icon-type='rectangle'] .sf_fb iframe{position:relative !important}.sfsi_plus_block_container .sfsi_plus_block[data-icon-type='rectangle'] .sf_fb .fb-like span{height:33px !important}.sfsi_plus_block_container .sfsi_plus_block[data-icon-type='rectangle'] .sf_twiter{height:41px !important;margin-right:4px !important;margin-left:4px !important}.sfsi_plus_block_container .sfsi_plus_block[data-icon-type='rectangle'] .sf_pinit{margin:0 !important;margin-left:4px !important}
images/visit_icons/Visit_us_google/icon_Visit_me_ar.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_bg_BG.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_cs_CZ.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_da_DK.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_de_DE.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_el.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_en_US.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_es_ES.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_fa_IR.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_fi.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_fr_FR.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_hu_HU.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_id_ID.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_it_IT.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_ja.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_ko_KR.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_nb_NO.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_nl_NL.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_pl_PL.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_pt_PT.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_ro_RO.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_ru_RU.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_sk_SK.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_sv_SE.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_th.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_tr_TR.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_vi.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_me_zh_CN.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_ar.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_bg_BG.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_cs_CZ.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_da_DK.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_de_DE.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_el.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_en_US.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_es_ES.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_fa_IR.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_fi.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_fr_FR.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_hu_HU.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_id_ID.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_it_IT.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_ja.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_ko_KR.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_nb_NO.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_nl_NL.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_pl_PL.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_pt_PT.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_ro_RO.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_ru_RU.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_sk_SK.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_sv_SE.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_th.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_tr_TR.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_vi.png DELETED
Binary file
images/visit_icons/Visit_us_google/icon_Visit_us_zh_CN.png DELETED
Binary file
js/custom-admin.js CHANGED
@@ -2643,7 +2643,7 @@ SFSI("body").on("click", ".sfsi_plus_tokenGenerateButton a", function () {
2643
  }
2644
 
2645
  });
2646
- SFSI(document).on("click", '.radio', function () {
2647
 
2648
  var s = SFSI(this).parent().find("input:radio:first");
2649
 
@@ -2662,10 +2662,15 @@ SFSI(document).on("click", '.radio', function () {
2662
  SFSI('.other_icons_effects_options').removeClass('hide').addClass('show');
2663
  }
2664
 
2665
- break;
2666
  }
2667
  });
2668
 
 
 
 
 
 
2669
  function getElementPosition(element) {
2670
  var xPosition = 0;
2671
  var yPosition = 0;
2643
  }
2644
 
2645
  });
2646
+ SFSI(document).on( 'click', '.radio', function () {
2647
 
2648
  var s = SFSI(this).parent().find("input:radio:first");
2649
 
2662
  SFSI('.other_icons_effects_options').removeClass('hide').addClass('show');
2663
  }
2664
 
2665
+ break;
2666
  }
2667
  });
2668
 
2669
+ /* Fix label click issue in "Show them before or after posts" */
2670
+ SFSI(document).on( 'click', '.sfsiplus_top_tabs_li label', function (e) {
2671
+ SFSI( this ).parent().find( 'input[type="radio"]' ).trigger( 'click' );
2672
+ });
2673
+
2674
  function getElementPosition(element) {
2675
  var xPosition = 0;
2676
  var yPosition = 0;
libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -1819,9 +1819,4 @@ function sfsi_plus_banner_global_upgrade()
1819
  update_option('sfsi_plus_banner_global_upgrade', serialize($sfsi_plus_banner_global_upgrade));
1820
  echo json_encode(array("success"));
1821
  exit;
1822
- }
1823
-
1824
-
1825
-
1826
-
1827
- ?>
1819
  update_option('sfsi_plus_banner_global_upgrade', serialize($sfsi_plus_banner_global_upgrade));
1820
  echo json_encode(array("success"));
1821
  exit;
1822
+ }
 
 
 
 
 
libs/controllers/sfsi_class_theme_check.php CHANGED
@@ -514,10 +514,14 @@ class sfsi_plus_ThemeCheck
514
  public function sfsi_plus_bannereHtml_main($title, $siteLink, $bannerImage, $buttonTitle)
515
  {
516
  echo '<script type="text/javascript">
517
- SFSI(".sfsi_webtheme").show();
518
- SFSI(".sfsi_webtheme a").attr("href", "'.$siteLink.'");
519
- SFSI(".icns_tab_3.sfsi_premium_ad span ").css("background-image", \'url('.$bannerImage.')\');
520
- SFSI(".sfsi_premium_ad_lable").text(\''.$title.'\');
 
 
 
 
521
  </script>';
522
  }
523
 
@@ -546,5 +550,4 @@ class sfsi_plus_ThemeCheck
546
  </div>
547
  </div>';
548
  }
549
- }
550
- ?>
514
  public function sfsi_plus_bannereHtml_main($title, $siteLink, $bannerImage, $buttonTitle)
515
  {
516
  echo '<script type="text/javascript">
517
+ ( function ($) {
518
+ $( document ).ready( function () {
519
+ $(".sfsi_webtheme").show();
520
+ $(".sfsi_webtheme a").attr("href", "'.$siteLink.'");
521
+ $(".icns_tab_3.sfsi_premium_ad span ").css("background-image", \'url('.$bannerImage.')\');
522
+ $(".sfsi_premium_ad_lable").text(\''.$title.'\');
523
+ });
524
+ })( jQuery );
525
  </script>';
526
  }
527
 
550
  </div>
551
  </div>';
552
  }
553
+ }
 
libs/controllers/sfsi_floater_icons.php CHANGED
@@ -1,15 +1,14 @@
1
  <?php
2
  /* make icons float icons even widget is not active */
3
- function sfsi_plus_frontFloter ($content)
4
- {
5
- $sfsi_section8= maybe_unserialize(get_option('sfsi_plus_section8_options',false));
6
- $sfsi_section8['sfsi_plus_float_on_page'];
7
- if($sfsi_section8['sfsi_plus_float_on_page']=="yes") :
8
  ob_start();
9
- /* call the all icons function under sfsi_plus_widget.php file */
10
- echo sfsi_plus_check_visiblity(1);
11
- echo $output=ob_get_clean();
12
- $res=$content.$output;
13
- return $res; exit;
14
- endif;
15
  }
1
  <?php
2
  /* make icons float icons even widget is not active */
3
+ function sfsi_plus_frontFloter() {
4
+ $sfsi_section8 = maybe_unserialize( get_option( 'sfsi_plus_section8_options', false ) );
5
+ if( isset( $sfsi_section8['sfsi_plus_float_on_page'] ) && $sfsi_section8['sfsi_plus_float_on_page'] == "yes" ) {
6
+ $output = '';
 
7
  ob_start();
8
+ /* call the all icons function under sfsi_plus_widget.php file */
9
+ echo sfsi_plus_check_visiblity(1);
10
+ $output = ob_get_contents();
11
+ ob_end_clean();
12
+ echo $output;
13
+ }
14
  }
libs/controllers/sfsi_frontpopUp.php CHANGED
@@ -9,37 +9,35 @@ function sfsi_plus_frontPopUp()
9
  }
10
 
11
  /* check where to be pop-shown */
12
- function sfsi_plus_check_PopUp($content = null)
13
- {
14
 
15
  global $post;
16
  global $wpdb;
17
- $sfsi_plus_section7_options = maybe_unserialize(get_option('sfsi_plus_section7_options', false));
18
-
19
- if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "blogpage") {
20
- if (!is_feed() && !is_home() && !is_page()) {
21
- $content = sfsi_plus_frontPopUp() . $content;
22
- }
23
 
24
- } else if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "selectedpage") {
25
- if (!empty($post->ID) && !empty($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs'])) {
26
- if (is_page() && in_array($post->ID, maybe_unserialize($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs']))) {
27
  $content = sfsi_plus_frontPopUp() . $content;
28
  }
 
 
 
 
 
 
 
 
 
29
  }
30
- } else if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "everypage") {
31
- $content = sfsi_plus_frontPopUp() . $content;
32
  }
33
 
34
  /* check for pop times */
35
- if ($sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "once") {
36
  $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popupOnceTime'];
37
  $time_popUp = $time_popUp * 1000;
38
  ob_start(); ?>
39
 
40
- <script>
41
-
42
- </script>
43
  <script>
44
  window.addEventListener('sfsi_plus_functions_loaded', function() {
45
  if (typeof sfsi_plus_time_pop_up == 'function') {
@@ -53,7 +51,7 @@ function sfsi_plus_check_PopUp($content = null)
53
  return $content;
54
  }
55
 
56
- if ($sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "ETscroll") {
57
  $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popupOnceTime'];
58
  $time_popUp = $time_popUp * 1000;
59
  ob_start();
@@ -71,7 +69,7 @@ function sfsi_plus_check_PopUp($content = null)
71
  echo ob_get_clean();
72
  }
73
 
74
- if ($sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "LimitPopUp") {
75
  $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popuplimitPerUserTime'];
76
  $end_time = (int) $_COOKIE['sfsi_socialPopUp'] + ($time_popUp * 60);
77
  $time_popUp = $time_popUp * 1000;
@@ -105,7 +103,7 @@ function sfsi_plus_FrontPopupDiv()
105
  global $wpdb;
106
  /* get all settings for icons saved in admin */
107
  $sfsi_plus_section1_options = maybe_unserialize(get_option('sfsi_plus_section1_options', false));
108
- $custom_i = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
109
  if ($sfsi_plus_section1_options['sfsi_plus_rss_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_email_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_facebook_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_twitter_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_youtube_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_pinterest_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_linkedin_display'] == 'no' && empty($custom_i)) {
110
  $icons = '';
111
  return $icons;
@@ -154,7 +152,7 @@ function sfsi_plus_FrontPopupDiv()
154
  if (!isset($sfsi_section5['sfsi_plus_whatsappIcon_order'])) {
155
  $sfsi_section5['sfsi_plus_whatsappIcon_order'] = 27;
156
  }
157
- $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
158
  $icons_order = array(
159
  $sfsi_section5['sfsi_plus_rssIcon_order'] => 'rss',
160
  $sfsi_section5['sfsi_plus_emailIcon_order'] => 'email',
@@ -176,7 +174,7 @@ function sfsi_plus_FrontPopupDiv()
176
  );
177
  $icons = array();
178
  $elements = array();
179
- $icons = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
180
  if (is_array($icons)) $elements = array_keys($icons);
181
  $cnt = 0;
182
  $total = isset($custom_icons_order) && is_array($custom_icons_order) ? count($custom_icons_order) : 0;
9
  }
10
 
11
  /* check where to be pop-shown */
12
+ function sfsi_plus_check_PopUp($content = null) {
 
13
 
14
  global $post;
15
  global $wpdb;
16
+ $sfsi_plus_section7_options = maybe_unserialize( get_option( 'sfsi_plus_section7_options', false ) );
 
 
 
 
 
17
 
18
+ if ( isset( $sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] ) ) {
19
+ if ( $sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "blogpage") {
20
+ if (!is_feed() && !is_home() && !is_page()) {
21
  $content = sfsi_plus_frontPopUp() . $content;
22
  }
23
+
24
+ } else if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "selectedpage") {
25
+ if (!empty($post->ID) && !empty($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs'])) {
26
+ if (is_page() && in_array($post->ID, maybe_unserialize($sfsi_plus_section7_options['sfsi_plus_Show_popupOn_PageIDs']))) {
27
+ $content = sfsi_plus_frontPopUp() . $content;
28
+ }
29
+ }
30
+ } else if ($sfsi_plus_section7_options['sfsi_plus_Show_popupOn'] == "everypage") {
31
+ $content = sfsi_plus_frontPopUp() . $content;
32
  }
 
 
33
  }
34
 
35
  /* check for pop times */
36
+ if ( isset( $sfsi_plus_section7_options['sfsi_plus_Shown_pop'] ) && $sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "once") {
37
  $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popupOnceTime'];
38
  $time_popUp = $time_popUp * 1000;
39
  ob_start(); ?>
40
 
 
 
 
41
  <script>
42
  window.addEventListener('sfsi_plus_functions_loaded', function() {
43
  if (typeof sfsi_plus_time_pop_up == 'function') {
51
  return $content;
52
  }
53
 
54
+ if ( isset( $sfsi_plus_section7_options['sfsi_plus_Shown_pop'] ) && $sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "ETscroll") {
55
  $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popupOnceTime'];
56
  $time_popUp = $time_popUp * 1000;
57
  ob_start();
69
  echo ob_get_clean();
70
  }
71
 
72
+ if ( isset( $sfsi_plus_section7_options['sfsi_plus_Shown_pop'] ) && $sfsi_plus_section7_options['sfsi_plus_Shown_pop'] == "LimitPopUp") {
73
  $time_popUp = (int) $sfsi_plus_section7_options['sfsi_plus_Shown_popuplimitPerUserTime'];
74
  $end_time = (int) $_COOKIE['sfsi_socialPopUp'] + ($time_popUp * 60);
75
  $time_popUp = $time_popUp * 1000;
103
  global $wpdb;
104
  /* get all settings for icons saved in admin */
105
  $sfsi_plus_section1_options = maybe_unserialize(get_option('sfsi_plus_section1_options', false));
106
+ $custom_i = maybe_unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
107
  if ($sfsi_plus_section1_options['sfsi_plus_rss_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_email_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_facebook_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_twitter_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_youtube_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_pinterest_display'] == 'no' && $sfsi_plus_section1_options['sfsi_plus_linkedin_display'] == 'no' && empty($custom_i)) {
108
  $icons = '';
109
  return $icons;
152
  if (!isset($sfsi_section5['sfsi_plus_whatsappIcon_order'])) {
153
  $sfsi_section5['sfsi_plus_whatsappIcon_order'] = 27;
154
  }
155
+ $custom_icons_order = maybe_unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
156
  $icons_order = array(
157
  $sfsi_section5['sfsi_plus_rssIcon_order'] => 'rss',
158
  $sfsi_section5['sfsi_plus_emailIcon_order'] => 'email',
174
  );
175
  $icons = array();
176
  $elements = array();
177
+ $icons = maybe_unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
178
  if (is_array($icons)) $elements = array_keys($icons);
179
  $cnt = 0;
180
  $total = isset($custom_icons_order) && is_array($custom_icons_order) ? count($custom_icons_order) : 0;
libs/controllers/sfsi_iconsUpload_contoller.php CHANGED
@@ -325,7 +325,7 @@ function sfsi_plus_UploadIcons()
325
  $ImageName = preg_replace("/\\.[^.\\s]{3,4}$/", "", $iconName);
326
 
327
  $sec_options= (get_option('sfsi_plus_section1_options',false)) ? maybe_unserialize(get_option('sfsi_plus_section1_options',false)) : '' ;
328
- $icons = (is_array(unserialize($sec_options['sfsi_custom_files']))) ? unserialize($sec_options['sfsi_custom_files']) : array();
329
  if(empty($icons))
330
  {
331
  end($icons);
@@ -345,7 +345,7 @@ function sfsi_plus_UploadIcons()
345
  //update database information
346
  $AccressImagePath=$AcceessUrl.$NewIconName;
347
  $sec_options= (get_option('sfsi_plus_section1_options',false)) ? maybe_unserialize(get_option('sfsi_plus_section1_options',false)) : '' ;
348
- $icons = (is_array(unserialize($sec_options['sfsi_custom_files']))) ? unserialize($sec_options['sfsi_custom_files']) : array();
349
  $icons[] = $AccressImagePath;
350
 
351
  $sec_options['sfsi_custom_files'] = serialize($icons);
@@ -379,8 +379,8 @@ function sfsi_plus_deleteIcons()
379
 
380
  $sec_options1= (get_option('sfsi_plus_section1_options',false)) ? maybe_unserialize(get_option('sfsi_plus_section1_options',false)) : array() ;
381
  $sec_options2= (get_option('sfsi_plus_section2_options',false)) ? maybe_unserialize(get_option('sfsi_plus_section2_options',false)) : array() ;
382
- $up_icons= (is_array(unserialize($sec_options1['sfsi_custom_files']))) ? unserialize($sec_options1['sfsi_custom_files']) : array();
383
- $icons_links= (is_array(unserialize($sec_options2['sfsi_plus_CustomIcon_links']))) ? unserialize($sec_options2['sfsi_plus_CustomIcon_links']) : array();
384
  $icon_url=$up_icons[$custom_icon_number];
385
  $url_info= pathinfo($icon_url);
386
 
325
  $ImageName = preg_replace("/\\.[^.\\s]{3,4}$/", "", $iconName);
326
 
327
  $sec_options= (get_option('sfsi_plus_section1_options',false)) ? maybe_unserialize(get_option('sfsi_plus_section1_options',false)) : '' ;
328
+ $icons = (is_array(maybe_unserialize($sec_options['sfsi_custom_files']))) ? maybe_unserialize($sec_options['sfsi_custom_files']) : array();
329
  if(empty($icons))
330
  {
331
  end($icons);
345
  //update database information
346
  $AccressImagePath=$AcceessUrl.$NewIconName;
347
  $sec_options= (get_option('sfsi_plus_section1_options',false)) ? maybe_unserialize(get_option('sfsi_plus_section1_options',false)) : '' ;
348
+ $icons = (is_array(maybe_unserialize($sec_options['sfsi_custom_files']))) ? maybe_unserialize($sec_options['sfsi_custom_files']) : array();
349
  $icons[] = $AccressImagePath;
350
 
351
  $sec_options['sfsi_custom_files'] = serialize($icons);
379
 
380
  $sec_options1= (get_option('sfsi_plus_section1_options',false)) ? maybe_unserialize(get_option('sfsi_plus_section1_options',false)) : array() ;
381
  $sec_options2= (get_option('sfsi_plus_section2_options',false)) ? maybe_unserialize(get_option('sfsi_plus_section2_options',false)) : array() ;
382
+ $up_icons= (is_array(maybe_unserialize($sec_options1['sfsi_custom_files']))) ? maybe_unserialize($sec_options1['sfsi_custom_files']) : array();
383
+ $icons_links= (is_array(maybe_unserialize($sec_options2['sfsi_plus_CustomIcon_links']))) ? maybe_unserialize($sec_options2['sfsi_plus_CustomIcon_links']) : array();
384
  $icon_url=$up_icons[$custom_icon_number];
385
  $url_info= pathinfo($icon_url);
386
 
libs/controllers/sfsi_socialhelper.php CHANGED
@@ -1,588 +1,630 @@
1
- <?php
2
- /* social helper class include all function which are used to intract with */
3
- class sfsi_plus_SocialHelper
4
- {
5
- private $url,$timeout=10;
6
-
7
- /* get twitter followers */
8
- function sfsi_get_tweets($username,$tw_settings)
9
- {
10
- require_once(SFSI_PLUS_DOCROOT.'/helpers/twitteroauth/twiiterCount.php');
11
- return sfsi_plus_twitter_followers();
12
- }
13
-
14
- /* get linkedIn counts */
15
- function sfsi_get_linkedin($url)
16
- {
17
- $json_string = $this->file_get_contents_curl(
18
- 'https://www.linkedin.com/countserv/count/share?format=json&url='.$url
19
- );
20
- $json = json_decode($json_string, true);
21
- return isset($json['count'])? intval($json['count']):0;
22
- }
23
-
24
- /* get linkedIn follower */
25
- function sfsi_getlinkedin_follower($sfsi_plus_ln_company,$APIsettings)
26
- {
27
- require_once(SFSI_PLUS_DOCROOT.'/helpers/linkedin-api/linkedin-api.php');
28
-
29
- // $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
30
- // $url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
31
-
32
- $url = sfsi_plus_get_current_url();
33
-
34
- $linkedin = new Plus_LinkedIn(
35
- $APIsettings['sfsi_plus_ln_api_key'],
36
- $APIsettings['sfsi_plus_ln_secret_key'],
37
- $APIsettings['sfsi_plus_ln_oAuth_user_token'],
38
- $url
39
- );
40
- $followers = $linkedin->getCompanyFollowersByName($sfsi_plus_ln_company);
41
- if (strpos($followers, '404') === false)
42
- { return strip_tags($followers); }
43
- else
44
- { return 0; }
45
- }
46
-
47
- /* get facebook likes */
48
- function sfsi_get_fb($url)
49
- {
50
- $count = 0;
51
- $json_string = $this->file_get_contents_curl('https://graph.facebook.com/?id='.$url);
52
- $json = json_decode($json_string);
53
-
54
- if(isset($json) && isset($json->share) && isset($json->share->share_count)){
55
- $count = $json->share->share_count;
56
- }
57
- return $count;
58
- }
59
-
60
- /* get facebook page likes */
61
- function sfsi_get_fb_pagelike($url)
62
- {
63
- $appid = '954871214567352';
64
- $appsecret = 'a780eb3d3687a084d6e5919585cc6a12';
65
- $json_url ='https://graph.facebook.com/'.$url.'?fields=fan_count&access_token='.$appid.'|'.$appsecret;
66
- $json_string = $this->file_get_contents_curl($json_url);
67
- // return $json_string;
68
- // var_dump($json_string);die();
69
- $json = json_decode($json_string, true);
70
- return isset($json['fan_count'])? $json['fan_count']:0;
71
- }
72
-
73
- function sfsi_banner_get_fb($url)
74
- {
75
- $count = 0;
76
- $appid = '290081412196492';
77
- $appsecret = 'a86ca864f716e974cb3d72294c20b275';
78
- $json_string = $this->file_get_contents_curl('https://graph.facebook.com/?id='.$url."&fields=engagement&access_token=".$appid.'|'.$appsecret);
79
- $json = json_decode($json_string);
80
- if(isset($json) && isset($json->engagement)){
81
- $count = $json->engagement->share_count + $json->engagement->reaction_count + $json->engagement->comment_count + $json->engagement->comment_plugin_count;
82
- }
83
- return $count;
84
- }
85
-
86
- /* get youtube subscribers */
87
- function sfsi_get_youtube($user)
88
- {
89
- if($user == 'follow.it')
90
- {
91
- $sfsi_plus_section4_options = maybe_unserialize(get_option('sfsi_plus_section4_options',false));
92
- $user = (
93
- isset($sfsi_plus_section4_options['sfsi_plus_youtube_channelId']) &&
94
- !empty($sfsi_plus_section4_options['sfsi_plus_youtube_channelId'])
95
- ) ? $sfsi_plus_section4_options['sfsi_plus_youtube_channelId'] : 'UCYQyWnJPrY4XY3Avc7BU9aA';
96
-
97
- $xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&id='.$user.'&key=AIzaSyB_XMi9MwNweEYyt7c122CidZxqGZqex6Y');
98
- }
99
- else
100
- {
101
- $xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername='.$user.'&key=AIzaSyB_XMi9MwNweEYyt7c122CidZxqGZqex6Y');
102
- }
103
-
104
- if($xmlData)
105
- {
106
- $xmlData = json_decode($xmlData);
107
- if(
108
- isset($xmlData->items) &&
109
- !empty($xmlData->items)
110
- )
111
- {
112
- $subs = $xmlData->items[0]->statistics->subscriberCount;
113
- $subs = $this->format_num($subs);
114
- }
115
- else
116
- {
117
- $subs=0;
118
- }
119
-
120
- }
121
- else
122
- {
123
- $subs=0;
124
- }
125
- return $subs;
126
- }
127
-
128
-
129
- /* get pinit counts */
130
- function sfsi_get_pinterest($url)
131
- {
132
- $return_data = $this->file_get_contents_curl('https://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url='.$url);
133
- $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
134
- $json = json_decode($json_string, true);
135
- return isset($json['count'])?intval($json['count']):0;
136
- }
137
-
138
- /* get pinit counts for a user */
139
- function get_UsersPins($user_name,$board)
140
- {
141
- $query=$user_name.'/'.$board;
142
- $url_respon=$this->sfsi_get_http_response_code('https://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
143
- if($url_respon!=404)
144
- {
145
- $return_data = $this->file_get_contents_curl('https://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
146
- $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
147
- $json = json_decode($json_string, true);
148
- }
149
- else
150
- {
151
- $json['data']['user']['pin_count']=0;
152
- }
153
- return isset($json['data']['user']['pin_count'])? intval($json['data']['user']['pin_count']):0;
154
- }
155
-
156
- /* send curl request */
157
- private function file_get_contents_curl($url)
158
- {
159
- if ( ! ini_get( 'safe_mode' ) ){
160
- set_time_limit( $this->timeout + 10 );
161
- }
162
- $args = array(
163
- 'blocking' => true,
164
- 'user-agent'=> $_SERVER['HTTP_USER_AGENT'],
165
- 'timeout' => $this->timeout,
166
- 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
167
- 'sslverify' => false
168
- );
169
- $resp = wp_remote_get( $url, $args );
170
- if ( is_wp_error( $resp ) ) {
171
- return null;
172
- } else {
173
- return $resp['body'];
174
- }
175
- }
176
-
177
- private function get_content_curl($url)
178
- {
179
- $args = array(
180
- 'body' => $postto_array,
181
- 'blocking' => true,
182
- 'user-agent' => 'sf rss request',
183
- 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
184
- 'sslverify' => false
185
- );
186
- $resp = wp_remote_get( $url, $args );
187
- if ( is_wp_error( $resp ) ) {
188
- return null;
189
- } else {
190
- return $resp['body'];
191
- }
192
- }
193
-
194
- /* convert no. to 2K,3M format */
195
- function format_num($num, $precision = 0)
196
- {
197
- if ($num >= 1000 && $num < 1000000)
198
- {
199
- $n_format = number_format($num/1000,$precision).'k';
200
- } else if ($num >= 1000000 && $num < 1000000000) {
201
- $n_format = number_format($num/1000000,$precision).'m';
202
- } else if ($num >= 1000000000) {
203
- $n_format=number_format($num/1000000000,$precision).'b';
204
- } else {
205
- $n_format = $num;
206
- }
207
- return $n_format;
208
- }
209
-
210
- /* create on page facebook links option */
211
- public function sfsi_plus_FBlike($permalink)
212
- {
213
- $send = 'false';
214
- $width = 180;
215
- $show_count=0;
216
- $fb_like_html = '<div class="fb-like" data-href="'.$permalink.'" data-width="'.$width.'" data-show-faces="false" ';
217
- if($show_count) {
218
- $fb_like_html .= 'data-layout="button"';
219
- } else {
220
- $fb_like_html .= 'data-layout="button"';
221
- }
222
- $fb_like_html .= ' data-action="like"></div>';
223
- return $fb_like_html;exit;
224
- }
225
-
226
- // /*subscribe like*/
227
- // function sfsi_plus_Subscribelike($permalink, $show_count)
228
- // {
229
-
230
- // }
231
- // /*subscribe like*/
232
-
233
- /*twitter like*/
234
- function sfsi_plus_twitterlike($permalink, $show_count)
235
- {
236
- $twitter_text = '';
237
- return sfsi_twitterShare($permalink,$twitter_text);
238
- }
239
- /*twitter like*/
240
-
241
- /* create on page facebook share option */
242
- public function sfsiFB_Share($permalink)
243
- {
244
- // $fb_share_html = '<div class="fb-share-button" data-href="'.$permalink.'" data-layout="button" >';
245
- // // $fb_share_html .= '<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.$permalink.'"';
246
- // // $fb_share_html .= '</a>';
247
- // $fb_share_html .="</div>";
248
- // return $fb_share_html;
249
-
250
- $fb_share_html = '';
251
- // $fb_share_html .= '<div class="fb-share-button" data-href="'.$permalink.'" data-layout="button"></div>';
252
- // return $fb_share_html;
253
- $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options',false));
254
-
255
- $facebook_icons_lang = $sfsi_plus_section5_options["sfsi_plus_icons_language"];
256
- // $facebook_icons_lang = $sfsi_plus_section5_options['sfsi_plus_facebook_icons_language'];
257
- // return $facebook_icons_lang;die();wp_die();
258
- // $visit_icon = SFSI_PLUS_DOCROOT.'/images/visit_icons/Visit_us_fb/icon_'.$facebook_icons_lang.'.png';
259
-
260
- $shareurl = "https://www.facebook.com/sharer/sharer.php?u=";
261
- $shareurl = $shareurl . urlencode(urldecode($permalink));
262
-
263
- $fb_share_html = "<a target='_blank' href='" . $shareurl . "' style='display:inline-block;'> <img class='sfsi_wicon' data-pin-nopin='true' width='auto' height='auto' alt='fb-share-icon' title='Facebook Share' src='" . SFSI_PLUS_PLUGURL . "images/share_icons/fb_icons/".$facebook_icons_lang.".svg'" . "' /></a>";
264
- return $fb_share_html;
265
- }
266
-
267
-
268
-
269
- /* create on page twitter follow option */
270
- public function sfsi_twitterFollow($tw_username,$icons_language)
271
- {
272
- $twitter_html = "<a ".sfsi_plus_checkNewWindow("https://twitter.com/intent/user?screen_name=".trim($tw_username))." href='https://twitter.com/intent/user?screen_name=".trim($tw_username)."'><img nopin='nopin' width='auto' src='". SFSI_PLUS_PLUGURL . "images/share_icons/Twitter_Follow/".$icons_language."_Follow.svg' class='sfsi_premium_wicon' alt='Follow Me' title='Follow Me' style='opacity: 1;''></a>";
273
- // $twitter_html = '<a href="https://twitter.com/'.trim($tw_username).'" class="twitter-follow-button" data-show-count="false" data-lang="'.$icons_language.'" data-show-screen-name="false">Follow </a>';
274
- // $twitter_html = '<a href="https://twitter.com/'.trim($tw_username).'" class="twitter-follow-button" data-show-count="false" data-lang="'.$icons_language.'" data-show-screen-name="false">Follow </a>';
275
- return $twitter_html;
276
- }
277
-
278
- /* create on page twitter share icon */
279
- public function sfsi_twitterShare($permalink,$tweettext,$icons_language)
280
- {
281
-
282
- $tweet_icon = SFSI_PLUS_PLUGURL . 'images/share_icons/Twitter_Tweet/'.$icons_language.'_Tweet.svg';
283
- // $tweet_icon = SFSI_PLUS_PLUGURL . 'images/visit_icons/'".$icons_language."'.svg';
284
-
285
-
286
- $twitter_html = "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>
287
- <a target='_blank' href='https://twitter.com/intent/tweet?text=" . urlencode($tweettext).' '.$permalink. "'style='display:inline-block' >
288
- <img nopin=nopin width='auto' class='sfsi_plus_wicon' src='" . $tweet_icon . "' alt='Tweet' title='Tweet' >
289
- </a>
290
- </div>";
291
- return $twitter_html;
292
- // if(empty($tweettext)){
293
- // $tweettext = "&nbsp";
294
- // }
295
- // $twitter_html = '<a rel="nofollow" href="https://twitter.com/intent/tweet" data-count="none" class="sr-twitter-button twitter-share-button" data-lang="'.$icons_language.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
296
- // return $twitter_html;
297
- }
298
-
299
- /* create on page twitter share icon with count */
300
- public function sfsi_twitterSharewithcount($permalink,$tweettext, $show_count, $icons_language)
301
- {
302
- if($show_count)
303
- {
304
- $twitter_html = '<a href="https://twitter.com/intent/tweet" class="sr-twitter-button twitter-share-button" lang="'.$icons_language.'" data-counturl="'.$permalink.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
305
- }
306
- else
307
- {
308
- $twitter_html = '<a href="https://twitter.com/intent/tweet" data-count="none" class="sr-twitter-button twitter-share-button" lang="'.$icons_language.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
309
- }
310
- return $twitter_html;
311
- }
312
-
313
- /* create on page youtube subscribe icon */
314
- public function sfsi_YouTubeSub($yuser)
315
- {
316
- $option2= maybe_unserialize(get_option('sfsi_plus_section2_options',false));
317
- $option4= maybe_unserialize(get_option('sfsi_plus_section4_options',false));
318
- if(isset($option2['sfsi_plus_youtubeusernameorid']))
319
- {
320
- $sfsi_plus_youtubeusernameorid = $option2['sfsi_plus_youtubeusernameorid'];
321
- $sfsi_plus_ytube_chnlid = $option2['sfsi_plus_ytube_chnlid'];
322
- }
323
- elseif(isset($option4['sfsi_plus_youtubeusernameorid']))
324
- {
325
- $sfsi_plus_youtubeusernameorid = $option4['sfsi_plus_youtubeusernameorid'];
326
- $sfsi_plus_ytube_chnlid = $option4['sfsi_plus_ytube_chnlid'];
327
- }
328
- else
329
- {
330
- $sfsi_plus_youtubeusernameorid = '';
331
- $sfsi_plus_ytube_chnlid = '';
332
- }
333
- if($sfsi_plus_youtubeusernameorid == 'name')
334
- {
335
- $yuser = $option2['sfsi_plus_ytube_user'];
336
- $youtube_html = '<div class="g-ytsubscribe" data-channel="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
337
- }
338
- else
339
- {
340
- $yuser = $sfsi_plus_ytube_chnlid;
341
- $youtube_html = '<div class="g-ytsubscribe" data-channelid="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
342
- }
343
- return $youtube_html;
344
- }
345
-
346
- /* create on page pinit button icon */
347
- public function sfsi_PinIt($url='')
348
- {
349
- $pinit_html = 'https://www.pinterest.com/pin/create/button/?url=&media=&description';
350
-
351
- $pinit_html = "<a href='#' onclick='sfsi_plus_pinterest_modal_images(event)' style='display:inline-block;' > <img class='sfsi_wicon' data-pin-nopin='true' width='auto' height='auto' alt='Pin Share' title='Pin Share' src='" . SFSI_PLUS_PLUGURL . "images/share_icons/en_US_save.svg" . "' /></a>";
352
- return $pinit_html;
353
- }
354
-
355
- /* get instragram followers */
356
- public function sfsi_get_instagramFollowers($user_name)
357
- {
358
- $sfsi_plus_instagram_sf_count = maybe_unserialize(get_option('sfsi_plus_instagram_sf_count',false));
359
-
360
- /*if date is empty (for decrease request count)*/
361
- if(empty($sfsi_plus_instagram_sf_count["date_instagram"]))
362
- {
363
- $sfsi_plus_instagram_sf_count["date_instagram"] = strtotime(date("Y-m-d"));
364
- $counts = $this->sfsi_plus_get_instagramFollowersCount($user_name);
365
- $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"] = $counts;
366
- update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
367
- }
368
- else
369
- {
370
- $phpVersion = phpVersion();
371
- if($phpVersion >= '5.3')
372
- {
373
- $diff = date_diff(
374
- date_create(
375
- date("Y-m-d", $sfsi_plus_instagram_sf_count["date_instagram"])
376
- ),
377
- date_create(
378
- date("Y-m-d")
379
- ));
380
- }
381
-
382
- if((isset($diff) && $diff->format("%a") > 1))
383
- {
384
- $sfsi_plus_instagram_sf_count["date_instagram"] = strtotime(date("Y-m-d"));
385
- $counts = $this->sfsi_plus_get_instagramFollowersCount($user_name);
386
- if($counts> $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"]){
387
- $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"] = $counts;
388
- }
389
- update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
390
- }
391
- else
392
- {
393
- $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"];
394
- }
395
- }
396
- return $counts;
397
- }
398
-
399
- /* get instragram followers count*/
400
- public function sfsi_plus_get_instagramFollowersCount($user_name)
401
- {
402
- /* get instagram user id */
403
- $option4 = maybe_unserialize(get_option('sfsi_plus_section4_options',false));
404
- $token = $option4['sfsi_plus_instagram_token'];
405
-
406
- $count = 0;
407
-
408
- if(isset($token) && !empty($token)){
409
-
410
- $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/self/?access_token='.$token);
411
- $objData = json_decode($return_data);
412
-
413
- if(isset($objData) && $objData->data && $objData->data->counts && $objData->data->counts->followed_by){
414
- $count = $objData->data->counts->followed_by;
415
- }
416
- }
417
- return $this->format_num($count,0);
418
- }
419
-
420
- /* create linkedIn follow button */
421
- public function sfsi_LinkedInFollow($company_id)
422
- {
423
- return $ifollow='<script type="IN/FollowCompany" data-id="'.$company_id.'" data-counter="none"></script>';
424
- }
425
-
426
- /* create linkedIn recommend button */
427
- public function sfsi_LinkedInRecommend($company_name,$product_id)
428
- {
429
- return $ifollow='<script type="IN/RecommendProduct" data-company="'.$company_name.'" data-product="'.$product_id.'"></script>';
430
- }
431
-
432
- /* create linkedIn share button */
433
- public function sfsi_LinkedInShare($url='')
434
- {
435
- $url=(isset($url))? $url : home_url();
436
- return $ifollow='<script type="IN/Share" data-url="'.$url.'"></script>';
437
- }
438
-
439
- /* get no of subscribers from specificfeeds for current blog */
440
- public function SFSI_getFeedSubscriber($feedid)
441
- {
442
- $sfsi_plus_instagram_sf_count = maybe_unserialize(get_option('sfsi_plus_instagram_sf_count',false));
443
-
444
- /*if date is empty (for decrease request count)*/
445
-
446
-
447
- if(empty($sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]))
448
- {
449
- // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
450
- // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
451
- // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
452
- // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
453
- $counts=0;
454
- }
455
- else
456
- {
457
- // $phpVersion = phpVersion();
458
- // if($phpVersion >= '5.3')
459
- // {
460
- // $diff = date_diff(
461
- // date_create(
462
- // date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"])
463
- // ),
464
- // date_create(
465
- // date("Y-m-d")
466
- // ));
467
- // }
468
- // var_dump($sfsi_plus_instagram_sf_count,isset($diff),$sfsi_plus_instagram_sf_count["date_sf"],date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"]),date('Y-m-d'),$diff , $diff->format("%a"));die();
469
- // if((isset($diff) && $diff->format("%a") >= 1)||$sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]=="")
470
- // {
471
- // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
472
- // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
473
- // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
474
- // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
475
- // }
476
- // else
477
- // {
478
- $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"];
479
- // }
480
-
481
- }
482
-
483
- if(empty($counts) || $counts == "O")
484
- {
485
- $counts = 0;
486
- }
487
-
488
- return $counts;
489
- }
490
- public function SFSI_getFeedSubscriberFetch($feedid)
491
- {
492
- $sfsi_plus_instagram_sf_count = maybe_unserialize(get_option('sfsi_plus_instagram_sf_count',false));
493
-
494
- /*if date is empty (for decrease request count)*/
495
-
496
-
497
- // if(empty($sfsi_plus_instagram_sf_count["date_sf"]))
498
- // {
499
- $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
500
- $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
501
- $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
502
-
503
- update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
504
- // }
505
- // else
506
- // {
507
- // $phpVersion = phpVersion();
508
- // if($phpVersion >= '5.3')
509
- // {
510
- // $diff = date_diff(
511
- // date_create(
512
- // date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"])
513
- // ),
514
- // date_create(
515
- // date("Y-m-d")
516
- // ));
517
- // }
518
- // var_dump($sfsi_plus_instagram_sf_count,isset($diff),$sfsi_plus_instagram_sf_count["date_sf"],date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"]),date('Y-m-d'),$diff , $diff->format("%a"));die();
519
- // if((isset($diff) && $diff->format("%a") >= 1)||$sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]=="")
520
- // {
521
- // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
522
- // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
523
- // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
524
- // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
525
- // }
526
- // else
527
- // {
528
- // $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"];
529
- // }
530
-
531
- // }
532
-
533
- if(empty($counts) || $counts == "O")
534
- {
535
- $counts = 0;
536
- }
537
-
538
- return $counts;
539
- }
540
-
541
- /* get no of subscribers from specificfeeds for current blog count*/
542
- public function sfsi_plus_getFeedSubscriberCount($feedid)
543
- {
544
- $postto_array = array(
545
- 'feed_id' => $feedid,
546
- 'v' => 'newplugincount'
547
- );
548
- $args = array(
549
- 'body' => $postto_array,
550
- 'blocking' => true,
551
- 'user-agent' => 'sf rss request',
552
- 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
553
- 'sslverify' => true
554
- );
555
- $resp = wp_remote_post( 'https://api.follow.it/wordpress/wpCountSubscriber', $args );
556
-
557
- $httpcode = wp_remote_retrieve_response_code($resp);
558
-
559
- if($httpcode == 200){
560
-
561
- if(!empty($resp["body"]))
562
- {
563
- $resp = json_decode($resp["body"]);
564
-
565
- $feeddata = stripslashes_deep($resp->subscriber_count);
566
- }
567
- else{
568
-
569
- $sfsi_premium_instagram_sf_count = maybe_unserialize(get_option('sfsi_plus_sf_count',false));
570
- $feeddata = $sfsi_premium_instagram_sf_count["sfsi_sf_count"];
571
- }
572
- }
573
- else{
574
- $sfsi_premium_instagram_sf_count = maybe_unserialize(get_option('sfsi_plus_sf_count',false));
575
- $feeddata = $sfsi_premium_instagram_sf_count["sfsi_plus_sf_count"];
576
- }
577
-
578
- return $this->format_num($feeddata);exit;
579
- }
580
-
581
- /* check response from a url */
582
- private function sfsi_get_http_response_code($url)
583
- {
584
- $headers = @get_headers($url);
585
- return substr(@$headers[0], 9, 3);
586
- }
587
- }
588
- /* end of class */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /* social helper class include all function which are used to intract with */
3
+ class sfsi_plus_SocialHelper
4
+ {
5
+ private $url,$timeout=10;
6
+
7
+ /* get twitter followers */
8
+ function sfsi_get_tweets($username,$tw_settings)
9
+ {
10
+ require_once(SFSI_PLUS_DOCROOT.'/helpers/twitteroauth/twiiterCount.php');
11
+ return sfsi_plus_twitter_followers();
12
+ }
13
+
14
+ /* get linkedIn counts */
15
+ function sfsi_get_linkedin($url)
16
+ {
17
+ $json_string = $this->file_get_contents_curl(
18
+ 'https://www.linkedin.com/countserv/count/share?format=json&url='.$url
19
+ );
20
+ $json = json_decode($json_string, true);
21
+ return isset($json['count'])? intval($json['count']):0;
22
+ }
23
+
24
+ /* get linkedIn follower */
25
+ function sfsi_getlinkedin_follower($sfsi_plus_ln_company,$APIsettings)
26
+ {
27
+ require_once(SFSI_PLUS_DOCROOT.'/helpers/linkedin-api/linkedin-api.php');
28
+
29
+ // $scheme = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https" : "http";
30
+ // $url = $scheme.'://'.$_SERVER['SERVER_NAME'].$_SERVER['REQUEST_URI'];
31
+
32
+ $url = sfsi_plus_get_current_url();
33
+
34
+ $linkedin = new Plus_LinkedIn(
35
+ $APIsettings['sfsi_plus_ln_api_key'],
36
+ $APIsettings['sfsi_plus_ln_secret_key'],
37
+ $APIsettings['sfsi_plus_ln_oAuth_user_token'],
38
+ $url
39
+ );
40
+ $followers = $linkedin->getCompanyFollowersByName($sfsi_plus_ln_company);
41
+ if (strpos($followers, '404') === false)
42
+ { return strip_tags($followers); }
43
+ else
44
+ { return 0; }
45
+ }
46
+
47
+ /* get facebook likes */
48
+ function sfsi_get_fb($url)
49
+ {
50
+ $count = 0;
51
+ $json_string = $this->file_get_contents_curl('https://graph.facebook.com/?id='.$url, true);
52
+ $json = json_decode($json_string);
53
+
54
+ if(isset($json) && isset($json->share) && isset($json->share->share_count)){
55
+ $count = $json->share->share_count;
56
+ }
57
+ return $count;
58
+ }
59
+
60
+ /* get facebook page likes */
61
+ function sfsi_get_fb_pagelike($url)
62
+ {
63
+ $appid = '954871214567352';
64
+ $appsecret = 'a780eb3d3687a084d6e5919585cc6a12';
65
+ $json_url ='https://graph.facebook.com/'.$url.'?fields=fan_count&access_token='.$appid.'|'.$appsecret;
66
+ $json_string = $this->file_get_contents_curl($json_url, true );
67
+ // return $json_string;
68
+ // var_dump($json_string);die();
69
+ $json = json_decode($json_string, true);
70
+ return isset($json['fan_count'])? $json['fan_count']:0;
71
+ }
72
+
73
+ function sfsi_banner_get_fb($url)
74
+ {
75
+ $count = 0;
76
+ $appid = '290081412196492';
77
+ $appsecret = 'a86ca864f716e974cb3d72294c20b275';
78
+ $json_string = $this->file_get_contents_curl('https://graph.facebook.com/?id='.$url."&fields=engagement&access_token=".$appid.'|'.$appsecret, true );
79
+ $json = json_decode($json_string);
80
+ if(isset($json) && isset($json->engagement)){
81
+ $count = $json->engagement->share_count + $json->engagement->reaction_count + $json->engagement->comment_count + $json->engagement->comment_plugin_count;
82
+ }
83
+ return $count;
84
+ }
85
+
86
+ /* get youtube subscribers */
87
+ function sfsi_get_youtube($user)
88
+ {
89
+ if($user == 'follow.it')
90
+ {
91
+ $sfsi_plus_section4_options = maybe_unserialize(get_option('sfsi_plus_section4_options',false));
92
+ $user = (
93
+ isset($sfsi_plus_section4_options['sfsi_plus_youtube_channelId']) &&
94
+ !empty($sfsi_plus_section4_options['sfsi_plus_youtube_channelId'])
95
+ ) ? $sfsi_plus_section4_options['sfsi_plus_youtube_channelId'] : 'UCYQyWnJPrY4XY3Avc7BU9aA';
96
+
97
+ $xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&id='.$user.'&key=AIzaSyB_XMi9MwNweEYyt7c122CidZxqGZqex6Y');
98
+ }
99
+ else
100
+ {
101
+ $xmlData = $this->file_get_contents_curl('https://www.googleapis.com/youtube/v3/channels?part=statistics&forUsername='.$user.'&key=AIzaSyB_XMi9MwNweEYyt7c122CidZxqGZqex6Y');
102
+ }
103
+
104
+ if($xmlData)
105
+ {
106
+ $xmlData = json_decode($xmlData);
107
+ if(
108
+ isset($xmlData->items) &&
109
+ !empty($xmlData->items)
110
+ )
111
+ {
112
+ $subs = $xmlData->items[0]->statistics->subscriberCount;
113
+ $subs = $this->format_num($subs);
114
+ }
115
+ else
116
+ {
117
+ $subs=0;
118
+ }
119
+
120
+ }
121
+ else
122
+ {
123
+ $subs=0;
124
+ }
125
+ return $subs;
126
+ }
127
+
128
+
129
+ /* get pinit counts */
130
+ function sfsi_get_pinterest($url)
131
+ {
132
+ $return_data = $this->file_get_contents_curl('https://api.pinterest.com/v1/urls/count.json?callback=receiveCount&url='.$url);
133
+ $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
134
+ $json = json_decode($json_string, true);
135
+ return isset($json['count'])?intval($json['count']):0;
136
+ }
137
+
138
+ /* get pinit counts for a user */
139
+ function get_UsersPins($user_name,$board)
140
+ {
141
+ $query=$user_name.'/'.$board;
142
+ $url_respon=$this->sfsi_get_http_response_code('https://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
143
+ if($url_respon!=404)
144
+ {
145
+ $return_data = $this->file_get_contents_curl('https://api.pinterest.com/v3/pidgets/boards/'.$query.'/pins/');
146
+ $json_string = preg_replace('/^receiveCount\((.*)\)$/', "\\1", $return_data);
147
+ $json = json_decode($json_string, true);
148
+ }
149
+ else
150
+ {
151
+ $json['data']['user']['pin_count']=0;
152
+ }
153
+ return isset($json['data']['user']['pin_count'])? intval($json['data']['user']['pin_count']):0;
154
+ }
155
+
156
+ /* send curl request */
157
+
158
+
159
+ private function file_get_contents_curl( $url, $curl = false ) {
160
+
161
+ if ( ! ini_get( 'safe_mode' ) ){
162
+ set_time_limit( $this->timeout + 10 );
163
+ }
164
+
165
+ if( function_exists( 'curl_init' ) && $curl ) {
166
+
167
+ $options = array(
168
+ CURLOPT_RETURNTRANSFER => true,
169
+ CURLOPT_HEADER => false,
170
+ CURLOPT_FOLLOWLOCATION => true,
171
+ CURLOPT_MAXREDIRS => 10,
172
+ CURLOPT_ENCODING => "",
173
+ CURLOPT_USERAGENT => $_SERVER['HTTP_USER_AGENT'],
174
+ CURLOPT_AUTOREFERER => true,
175
+ CURLOPT_CONNECTTIMEOUT => $this->timeout,
176
+ CURLOPT_TIMEOUT => $this->timeout,
177
+ );
178
+
179
+ $ch = curl_init($url);
180
+ curl_setopt_array($ch, $options);
181
+
182
+ $content = curl_exec($ch);
183
+ if(curl_errno($ch)){
184
+ return false;
185
+ } else {
186
+ return $content;
187
+ }
188
+ curl_close($ch);
189
+
190
+ } else {
191
+
192
+ $args = array(
193
+ 'blocking' => true,
194
+ 'user-agent'=> $_SERVER['HTTP_USER_AGENT'],
195
+ 'timeout' => $this->timeout,
196
+ 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
197
+ 'sslverify' => false
198
+ );
199
+ $resp = wp_remote_get( $url, $args );
200
+ if ( is_wp_error( $resp ) ) {
201
+ return null;
202
+ } else {
203
+ return $resp['body'];
204
+ }
205
+ }
206
+ }
207
+
208
+ /* convert no. to 2K,3M format */
209
+ function format_num($num, $precision = 0)
210
+ {
211
+ if ($num >= 1000 && $num < 1000000)
212
+ {
213
+ $n_format = number_format($num/1000,$precision).'k';
214
+ } else if ($num >= 1000000 && $num < 1000000000) {
215
+ $n_format = number_format($num/1000000,$precision).'m';
216
+ } else if ($num >= 1000000000) {
217
+ $n_format=number_format($num/1000000000,$precision).'b';
218
+ } else {
219
+ $n_format = $num;
220
+ }
221
+ return $n_format;
222
+ }
223
+
224
+ /* convert no. to 2K,3M format */
225
+ function format_num_back( $n ) {
226
+ if ( intval( $n ) != $n ) {
227
+ $check = preg_match_all( "/(\d+\.?\d+)\s*(\w)/", $n, $matches );
228
+ if ( $check ) {
229
+ $n = $matches[1][0];
230
+ $suffix = strtolower( $matches[2][0] );
231
+ switch ( $suffix ) {
232
+ case "k":
233
+ $n = $n * 1000;
234
+ break;
235
+ case "m":
236
+ $n = $n * 1000000;
237
+ break;
238
+ case "b":
239
+ $n = $n * 1000000000;
240
+ break;
241
+ case "t":
242
+ $n = $n * 1000000000000;
243
+ break;
244
+ }
245
+ } else {
246
+ $n = intval( $n );
247
+ }
248
+ }
249
+ return $n;
250
+ }
251
+
252
+ /* create on page facebook links option */
253
+ public function sfsi_plus_FBlike( $permalink ) {
254
+
255
+ $fb_like_html = '<div class="fb-like" data-href="'.$permalink.'" data-width="180" data-show-faces="false" data-layout="button" data-action="like"></div>';
256
+ return $fb_like_html;
257
+ exit;
258
+ }
259
+
260
+ // /*subscribe like*/
261
+ // function sfsi_plus_Subscribelike($permalink, $show_count)
262
+ // {
263
+
264
+ // }
265
+ // /*subscribe like*/
266
+
267
+ /*twitter like*/
268
+ function sfsi_plus_twitterlike($permalink, $show_count)
269
+ {
270
+ $twitter_text = '';
271
+ return sfsi_twitterShare($permalink,$twitter_text);
272
+ }
273
+ /*twitter like*/
274
+
275
+ /* create on page facebook share option */
276
+ public function sfsiFB_Share($permalink)
277
+ {
278
+ // $fb_share_html = '<div class="fb-share-button" data-href="'.$permalink.'" data-layout="button" >';
279
+ // // $fb_share_html .= '<a target="_blank" href="https://www.facebook.com/sharer/sharer.php?u='.$permalink.'"';
280
+ // // $fb_share_html .= '</a>';
281
+ // $fb_share_html .="</div>";
282
+ // return $fb_share_html;
283
+
284
+ $fb_share_html = '';
285
+ // $fb_share_html .= '<div class="fb-share-button" data-href="'.$permalink.'" data-layout="button"></div>';
286
+ // return $fb_share_html;
287
+ $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options',false));
288
+
289
+ $facebook_icons_lang = $sfsi_plus_section5_options["sfsi_plus_icons_language"];
290
+ // $facebook_icons_lang = $sfsi_plus_section5_options['sfsi_plus_facebook_icons_language'];
291
+ // return $facebook_icons_lang;die();wp_die();
292
+ // $visit_icon = SFSI_PLUS_DOCROOT.'/images/visit_icons/Visit_us_fb/icon_'.$facebook_icons_lang.'.png';
293
+
294
+ $shareurl = "https://www.facebook.com/sharer/sharer.php?u=";
295
+ $shareurl = $shareurl . urlencode(urldecode($permalink));
296
+
297
+ $fb_share_html = "<a target='_blank' href='" . $shareurl . "' style='display:inline-block;'> <img class='sfsi_wicon' data-pin-nopin='true' width='auto' height='auto' alt='fb-share-icon' title='Facebook Share' src='" . SFSI_PLUS_PLUGURL . "images/share_icons/fb_icons/".$facebook_icons_lang.".svg'" . "' /></a>";
298
+ return $fb_share_html;
299
+ }
300
+
301
+
302
+
303
+ /* create on page twitter follow option */
304
+ public function sfsi_twitterFollow($tw_username,$icons_language)
305
+ {
306
+ $twitter_html = "<a ".sfsi_plus_checkNewWindow("https://twitter.com/intent/user?screen_name=".trim($tw_username))." href='https://twitter.com/intent/user?screen_name=".trim($tw_username)."'><img nopin='nopin' width='auto' src='". SFSI_PLUS_PLUGURL . "images/share_icons/Twitter_Follow/".$icons_language."_Follow.svg' class='sfsi_premium_wicon' alt='Follow Me' title='Follow Me' style='opacity: 1;''></a>";
307
+ // $twitter_html = '<a href="https://twitter.com/'.trim($tw_username).'" class="twitter-follow-button" data-show-count="false" data-lang="'.$icons_language.'" data-show-screen-name="false">Follow </a>';
308
+ // $twitter_html = '<a href="https://twitter.com/'.trim($tw_username).'" class="twitter-follow-button" data-show-count="false" data-lang="'.$icons_language.'" data-show-screen-name="false">Follow </a>';
309
+ return $twitter_html;
310
+ }
311
+
312
+ /* create on page twitter share icon */
313
+ public function sfsi_twitterShare($permalink,$tweettext,$icons_language)
314
+ {
315
+
316
+ $tweet_icon = SFSI_PLUS_PLUGURL . 'images/share_icons/Twitter_Tweet/'.$icons_language.'_Tweet.svg';
317
+ // $tweet_icon = SFSI_PLUS_PLUGURL . 'images/visit_icons/'".$icons_language."'.svg';
318
+
319
+
320
+ $twitter_html = "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>
321
+ <a target='_blank' href='https://twitter.com/intent/tweet?text=" . urlencode($tweettext).' '.$permalink. "'style='display:inline-block' >
322
+ <img nopin=nopin width='auto' class='sfsi_plus_wicon' src='" . $tweet_icon . "' alt='Tweet' title='Tweet' >
323
+ </a>
324
+ </div>";
325
+ return $twitter_html;
326
+ // if(empty($tweettext)){
327
+ // $tweettext = "&nbsp";
328
+ // }
329
+ // $twitter_html = '<a rel="nofollow" href="https://twitter.com/intent/tweet" data-count="none" class="sr-twitter-button twitter-share-button" data-lang="'.$icons_language.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
330
+ // return $twitter_html;
331
+ }
332
+
333
+ /* create on page twitter share icon with count */
334
+ public function sfsi_twitterSharewithcount($permalink,$tweettext, $show_count, $icons_language)
335
+ {
336
+ if($show_count)
337
+ {
338
+ $twitter_html = '<a href="https://twitter.com/intent/tweet" class="sr-twitter-button twitter-share-button" lang="'.$icons_language.'" data-counturl="'.$permalink.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
339
+ }
340
+ else
341
+ {
342
+ $twitter_html = '<a href="https://twitter.com/intent/tweet" data-count="none" class="sr-twitter-button twitter-share-button" lang="'.$icons_language.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
343
+ }
344
+ return $twitter_html;
345
+ }
346
+
347
+ /* create on page youtube subscribe icon */
348
+ public function sfsi_YouTubeSub($yuser)
349
+ {
350
+ $option2= maybe_unserialize(get_option('sfsi_plus_section2_options',false));
351
+ $option4= maybe_unserialize(get_option('sfsi_plus_section4_options',false));
352
+ if(isset($option2['sfsi_plus_youtubeusernameorid']))
353
+ {
354
+ $sfsi_plus_youtubeusernameorid = $option2['sfsi_plus_youtubeusernameorid'];
355
+ $sfsi_plus_ytube_chnlid = $option2['sfsi_plus_ytube_chnlid'];
356
+ }
357
+ elseif(isset($option4['sfsi_plus_youtubeusernameorid']))
358
+ {
359
+ $sfsi_plus_youtubeusernameorid = $option4['sfsi_plus_youtubeusernameorid'];
360
+ $sfsi_plus_ytube_chnlid = $option4['sfsi_plus_ytube_chnlid'];
361
+ }
362
+ else
363
+ {
364
+ $sfsi_plus_youtubeusernameorid = '';
365
+ $sfsi_plus_ytube_chnlid = '';
366
+ }
367
+ if($sfsi_plus_youtubeusernameorid == 'name')
368
+ {
369
+ $yuser = $option2['sfsi_plus_ytube_user'];
370
+ $youtube_html = '<div class="g-ytsubscribe" data-channel="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
371
+ }
372
+ else
373
+ {
374
+ $yuser = $sfsi_plus_ytube_chnlid;
375
+ $youtube_html = '<div class="g-ytsubscribe" data-channelid="'.$yuser.'" data-layout="default" data-count="hidden"></div>';
376
+ }
377
+ return $youtube_html;
378
+ }
379
+
380
+ /* create on page pinit button icon */
381
+ public function sfsi_PinIt($url='')
382
+ {
383
+ $pinit_html = 'https://www.pinterest.com/pin/create/button/?url=&media=&description';
384
+
385
+ $pinit_html = "<a href='#' onclick='sfsi_plus_pinterest_modal_images(event)' style='display:inline-block;' > <img class='sfsi_wicon' data-pin-nopin='true' width='auto' height='auto' alt='Pin Share' title='Pin Share' src='" . SFSI_PLUS_PLUGURL . "images/share_icons/en_US_save.svg" . "' /></a>";
386
+ return $pinit_html;
387
+ }
388
+
389
+ /* get instragram followers */
390
+ public function sfsi_get_instagramFollowers( $user_name ) {
391
+ $sfsi_plus_instagram_sf_count = maybe_unserialize( get_option( 'sfsi_plus_instagram_sf_count', false ) );
392
+ $sfsi_current_date = date( "Y-m-d" );
393
+
394
+ $sfsi_plus_instagram_sf_count["date_instagram"] = strtotime( $sfsi_current_date );
395
+ $counts = $this->sfsi_plus_get_instagramFollowersCount( $user_name );
396
+ $sfsi_plus_instagram_sf_count["sfsi_instagram_count"] = $counts;
397
+ update_option( 'sfsi_plus_instagram_sf_count', serialize( $sfsi_plus_instagram_sf_count ) );
398
+
399
+ /*if date is empty (for decrease request count)*/
400
+ /*if( empty( $sfsi_plus_instagram_sf_count["date_instagram"] ) ) {
401
+ $sfsi_plus_instagram_sf_count["date_instagram"] = strtotime( $sfsi_current_date );
402
+ $counts = $this->sfsi_plus_get_instagramFollowersCount( $user_name );
403
+ $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"] = $counts;
404
+ update_option( 'sfsi_plus_instagram_sf_count', serialize( $sfsi_plus_instagram_sf_count ) );
405
+ } else {
406
+ $phpVersion = phpVersion();
407
+ if( $phpVersion >= '5.3' ) {
408
+ $diff = date_diff(
409
+ date_create(
410
+ date("Y-m-d", $sfsi_plus_instagram_sf_count["date_instagram"])
411
+ ),
412
+ date_create(
413
+ $sfsi_current_date
414
+ )
415
+ );
416
+ }
417
+
418
+ if( ( isset( $diff ) && $diff->format( "%a" ) > 1 ) ) {
419
+ $sfsi_plus_instagram_sf_count["date_instagram"] = strtotime( $sfsi_current_date );
420
+ $counts = $this->sfsi_plus_get_instagramFollowersCount( $user_name );
421
+ if( $counts > $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"] ) {
422
+ $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"] = $counts;
423
+ }
424
+ update_option( 'sfsi_plus_instagram_sf_count', serialize( $sfsi_plus_instagram_sf_count ) );
425
+ } else {
426
+ $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_instagram_count"];
427
+ }
428
+ }*/
429
+ return $counts;
430
+ }
431
+
432
+ /* get instragram followers count*/
433
+ public function sfsi_plus_get_instagramFollowersCount( $user_name ) {
434
+
435
+ $count = 0;
436
+ if ( $user_name ) {
437
+ $return_data = $this->file_get_contents_curl( 'https://www.instagram.com/' . $user_name . '/channel/?__a=1' );
438
+
439
+ $objData = json_decode( $return_data, true );
440
+ if ( isset( $objData ) && isset( $objData['graphql'] ) && isset( $objData['graphql']['user'] ) && isset( $objData['graphql']['user']['edge_followed_by'] ) && isset( $objData['graphql']['user']['edge_followed_by']['count'] ) ) {
441
+ $count = $objData['graphql']['user']['edge_followed_by']['count'];
442
+ $count = $this->format_num_back( $count );
443
+ }
444
+ }
445
+
446
+ /* get instagram user id */
447
+ /*$option4 = maybe_unserialize(get_option('sfsi_plus_section4_options',false));
448
+ $token = $option4['sfsi_plus_instagram_token'];
449
+
450
+ if(isset($token) && !empty($token)){
451
+
452
+ $return_data = $this->get_content_curl('https://api.instagram.com/v1/users/self/?access_token='.$token);
453
+ $objData = json_decode($return_data);
454
+
455
+ if(isset($objData) && $objData->data && $objData->data->counts && $objData->data->counts->followed_by){
456
+ $count = $objData->data->counts->followed_by;
457
+ }
458
+ }*/
459
+ return $this->format_num($count,0);
460
+ }
461
+
462
+ /* create linkedIn follow button */
463
+ public function sfsi_LinkedInFollow($company_id)
464
+ {
465
+ return $ifollow='<script type="IN/FollowCompany" data-id="'.$company_id.'" data-counter="none"></script>';
466
+ }
467
+
468
+ /* create linkedIn recommend button */
469
+ public function sfsi_LinkedInRecommend($company_name,$product_id)
470
+ {
471
+ return $ifollow='<script type="IN/RecommendProduct" data-company="'.$company_name.'" data-product="'.$product_id.'"></script>';
472
+ }
473
+
474
+ /* create linkedIn share button */
475
+ public function sfsi_LinkedInShare($url='')
476
+ {
477
+ $url=(isset($url))? $url : home_url();
478
+ return $ifollow='<script type="IN/Share" data-url="'.$url.'"></script>';
479
+ }
480
+
481
+ /* get no of subscribers from specificfeeds for current blog */
482
+ public function SFSI_getFeedSubscriber($feedid)
483
+ {
484
+ $sfsi_plus_instagram_sf_count = maybe_unserialize(get_option('sfsi_plus_instagram_sf_count',false));
485
+
486
+ /*if date is empty (for decrease request count)*/
487
+
488
+
489
+ if(empty($sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]))
490
+ {
491
+ // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
492
+ // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
493
+ // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
494
+ // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
495
+ $counts=0;
496
+ }
497
+ else
498
+ {
499
+ // $phpVersion = phpVersion();
500
+ // if($phpVersion >= '5.3')
501
+ // {
502
+ // $diff = date_diff(
503
+ // date_create(
504
+ // date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"])
505
+ // ),
506
+ // date_create(
507
+ // date("Y-m-d")
508
+ // ));
509
+ // }
510
+ // var_dump($sfsi_plus_instagram_sf_count,isset($diff),$sfsi_plus_instagram_sf_count["date_sf"],date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"]),date('Y-m-d'),$diff , $diff->format("%a"));die();
511
+ // if((isset($diff) && $diff->format("%a") >= 1)||$sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]=="")
512
+ // {
513
+ // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
514
+ // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
515
+ // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
516
+ // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
517
+ // }
518
+ // else
519
+ // {
520
+ $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"];
521
+ // }
522
+
523
+ }
524
+
525
+ if(empty($counts) || $counts == "O")
526
+ {
527
+ $counts = 0;
528
+ }
529
+
530
+ return $counts;
531
+ }
532
+ public function SFSI_getFeedSubscriberFetch($feedid)
533
+ {
534
+ $sfsi_plus_instagram_sf_count = maybe_unserialize(get_option('sfsi_plus_instagram_sf_count',false));
535
+
536
+ /*if date is empty (for decrease request count)*/
537
+
538
+
539
+ // if(empty($sfsi_plus_instagram_sf_count["date_sf"]))
540
+ // {
541
+ $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
542
+ $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
543
+ $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
544
+
545
+ update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
546
+ // }
547
+ // else
548
+ // {
549
+ // $phpVersion = phpVersion();
550
+ // if($phpVersion >= '5.3')
551
+ // {
552
+ // $diff = date_diff(
553
+ // date_create(
554
+ // date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"])
555
+ // ),
556
+ // date_create(
557
+ // date("Y-m-d")
558
+ // ));
559
+ // }
560
+ // var_dump($sfsi_plus_instagram_sf_count,isset($diff),$sfsi_plus_instagram_sf_count["date_sf"],date("Y-m-d", $sfsi_plus_instagram_sf_count["date_sf"]),date('Y-m-d'),$diff , $diff->format("%a"));die();
561
+ // if((isset($diff) && $diff->format("%a") >= 1)||$sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"]=="")
562
+ // {
563
+ // $sfsi_plus_instagram_sf_count["date_sf"] = strtotime(date("Y-m-d"));
564
+ // $counts = $this->sfsi_plus_getFeedSubscriberCount($feedid);
565
+ // $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"] = $counts;
566
+ // update_option('sfsi_plus_instagram_sf_count', serialize($sfsi_plus_instagram_sf_count));
567
+ // }
568
+ // else
569
+ // {
570
+ // $counts = $sfsi_plus_instagram_sf_count["sfsi_plus_sf_count"];
571
+ // }
572
+
573
+ // }
574
+
575
+ if(empty($counts) || $counts == "O")
576
+ {
577
+ $counts = 0;
578
+ }
579
+
580
+ return $counts;
581
+ }
582
+
583
+ /* get no of subscribers from specificfeeds for current blog count*/
584
+ public function sfsi_plus_getFeedSubscriberCount($feedid)
585
+ {
586
+ $postto_array = array(
587
+ 'feed_id' => $feedid,
588
+ 'v' => 'newplugincount'
589
+ );
590
+ $args = array(
591
+ 'body' => $postto_array,
592
+ 'blocking' => true,
593
+ 'user-agent' => 'sf rss request',
594
+ 'header' => array("Content-Type"=>"application/x-www-form-urlencoded"),
595
+ 'sslverify' => true
596
+ );
597
+ $resp = wp_remote_post( 'https://api.follow.it/wordpress/wpCountSubscriber', $args );
598
+
599
+ $httpcode = wp_remote_retrieve_response_code($resp);
600
+
601
+ if($httpcode == 200){
602
+
603
+ if(!empty($resp["body"]))
604
+ {
605
+ $resp = json_decode($resp["body"]);
606
+
607
+ $feeddata = stripslashes_deep($resp->subscriber_count);
608
+ }
609
+ else{
610
+
611
+ $sfsi_premium_instagram_sf_count = maybe_unserialize(get_option('sfsi_plus_sf_count',false));
612
+ $feeddata = $sfsi_premium_instagram_sf_count["sfsi_sf_count"];
613
+ }
614
+ }
615
+ else{
616
+ $sfsi_premium_instagram_sf_count = maybe_unserialize(get_option('sfsi_plus_sf_count',false));
617
+ $feeddata = $sfsi_premium_instagram_sf_count["sfsi_plus_sf_count"];
618
+ }
619
+
620
+ return $this->format_num($feeddata);exit;
621
+ }
622
+
623
+ /* check response from a url */
624
+ private function sfsi_get_http_response_code($url)
625
+ {
626
+ $headers = @get_headers($url);
627
+ return substr(@$headers[0], 9, 3);
628
+ }
629
+ }
630
+ /* end of class */
libs/controllers/sfsiocns_OnPosts.php CHANGED
@@ -1,575 +1,572 @@
1
- <?php
2
- /* add fb like add this share to end of every post */
3
- function sfsi_plus_social_buttons_below($content)
4
- {
5
- global $post;
6
- $sfsi_section6 = maybe_unserialize(get_option('sfsi_plus_section6_options', false));
7
-
8
- //new options that are added on the third questions
9
- //so in this function we are replacing all the past options
10
- //that were saved under option6 by new settings saved under option8
11
- $sfsi_section8 = maybe_unserialize(get_option('sfsi_plus_section8_options', false));
12
- $sfsi_section4 = maybe_unserialize(get_option('sfsi_plus_section4_options', false));
13
-
14
- $sfsi_plus_show_item_onposts = $sfsi_section8['sfsi_plus_show_item_onposts'];
15
- //new options that are added on the third questions
16
-
17
- //checking for standard icons
18
- if (!isset($sfsi_section8['sfsi_plus_rectsub'])) {
19
- $sfsi_section8['sfsi_plus_rectsub'] = 'no';
20
- }
21
- if (!isset($sfsi_section8['sfsi_plus_rectfb'])) {
22
- $sfsi_section8['sfsi_plus_rectfb'] = 'yes';
23
- }
24
- if (!isset($sfsi_section8['sfsi_plus_recttwtr'])) {
25
- $sfsi_section8['sfsi_plus_recttwtr'] = 'no';
26
- }
27
- if (!isset($sfsi_section8['sfsi_plus_rectpinit'])) {
28
- $sfsi_section8['sfsi_plus_rectpinit'] = 'no';
29
- }
30
- if (!isset($sfsi_section8['sfsi_plus_rectfbshare'])) {
31
- $sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
32
- }
33
- //checking for standard icons
34
-
35
- /* check if option activated in admin or not */
36
- //if($sfsi_section6['sfsi_plus_show_Onposts']=="yes")
37
- //removing following condition for now
38
- /*if($sfsi_section8['sfsi_plus_show_Onposts']=="yes")
39
- {*/
40
- $permalink = get_permalink($post->ID);
41
- $title = get_the_title();
42
- $sfsiLikeWith = "45px;";
43
-
44
- /* check for counter display */
45
- //if($sfsi_section6['sfsi_plus_icons_DisplayCounts']=="yes")
46
-
47
- if ($sfsi_section4['sfsi_plus_display_counts'] == "yes" && $sfsi_section4['sfsi_plus_original_counts'] == "yes") {
48
- $show_count = 1;
49
- $sfsiLikeWith = "75px;";
50
- } else {
51
- $show_count = 0;
52
- }
53
- $common_options_check = (($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") || ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") && (isset($sfsi_section8['sfsi_plus_float_page_position'])) || ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") || ($sfsi_section8['sfsi_plus_place_item_gutenberg'] == "no"));
54
- //$txt=(isset($sfsi_section6['sfsi_plus_textBefor_icons']))? $sfsi_section6['sfsi_plus_textBefor_icons'] : "Share this Post with :" ;
55
- $txt = (isset($sfsi_section8['sfsi_plus_textBefor_icons'])) ? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:";
56
- //$float= $sfsi_section6['sfsi_plus_icons_alignment'];
57
- $float = $sfsi_section8['sfsi_plus_icons_alignment'];
58
- if ($sfsi_section8['sfsi_plus_rectsub'] == 'yes' || $sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_recttwtr'] == 'yes' || $sfsi_section8['sfsi_plus_rectpinit'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
59
- $icons = "<div class='sfsi_plus_Sicons " . $float . "' style='float:" . $float . "'><div style='display: inline-block;margin-bottom: 0; margin-left: 0; margin-right: 8px; margin-top: 0; vertical-align: middle;width: auto;'><span>" . $txt . "</span></div>";
60
- }
61
- if ($sfsi_section8['sfsi_plus_rectsub'] == 'yes') {
62
- if ($show_count) {
63
- $sfsiLikeWithsub = "93px";
64
- } else {
65
- $sfsiLikeWithsub = "64px";
66
- }
67
- if (!isset($sfsiLikeWithsub)) {
68
- $sfsiLikeWithsub = $sfsiLikeWith;
69
- }
70
- $icons .= "<div class='sf_subscrbe' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_Subscribelike($permalink, $show_count) . "</div>";
71
- }
72
- if ($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $common_options_check) {
73
- $icons .= "<div class='sf_fb' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_FBlike($permalink, $show_count) . "</div>";
74
- }
75
-
76
- if ($sfsi_section8['sfsi_plus_rectfbshare'] == 'yes' || $common_options_check) {
77
- $socialObj = new sfsi_plus_SocialHelper();
78
- $sfsi_section4 = maybe_unserialize(get_option('sfsi_plus_section4_options', false));
79
- $count_html = '';
80
-
81
- if ($show_count) {
82
- if ($sfsi_section4['sfsi_plus_facebook_countsDisplay'] == "yes" && $sfsi_section4['sfsi_plus_display_counts'] == "yes") {
83
-
84
- if ($sfsi_section4['sfsi_plus_facebook_countsFrom'] == "manual") {
85
- $counts = $sfsi_section4['sfsi_plus_facebook_manualCounts'];
86
- } else if ($sfsi_section4['sfsi_plus_facebook_countsFrom'] == "likes") {
87
- $counts = $socialObj->sfsi_get_fb($permalink);
88
- } else if ($sfsi_section4['sfsi_plus_facebook_countsFrom'] == "followers") {
89
- $counts = $socialObj->sfsi_get_fb($permalink);
90
- } else if ($sfsi_section4['sfsi_plus_facebook_countsFrom'] == "mypage") {
91
- $current_url = $sfsi_section4['sfsi_plus_facebook_mypageCounts'];
92
- $counts = $socialObj->sfsi_get_fb_pagelike($current_url);
93
- }
94
- $count_html = '<span class="bot_no">' . $counts . '</span>';
95
- }
96
- }
97
-
98
- $icons .= "<div class='sf_fb' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_FBshare($permalink, $show_count) . $count_html . "</div>";
99
- }
100
-
101
- if ($sfsi_section8['sfsi_plus_recttwtr'] == 'yes') {
102
- if ($show_count) {
103
- $sfsiLikeWithtwtr = "77px";
104
- } else {
105
- $sfsiLikeWithtwtr = "56px";
106
- }
107
- if (!isset($sfsiLikeWithtwtr)) {
108
- $sfsiLikeWithtwtr = $sfsiLikeWith;
109
- }
110
- if ($show_count) {
111
- /* get twitter counts */
112
- if ($sfsi_section4['sfsi_plus_twitter_countsFrom'] == "source") {
113
- $option2 = maybe_unserialize(get_option('sfsi_plus_section2_options', false));
114
-
115
- $twitter_user = $option2['sfsi_plus_twitter_followUserName'];
116
- $tw_settings = array(
117
- 'sfsiplus_tw_consumer_key' => $sfsi_section4['sfsiplus_tw_consumer_key'],
118
- 'sfsiplus_tw_consumer_secret' => $sfsi_section4['sfsiplus_tw_consumer_secret'],
119
- 'sfsiplus_tw_oauth_access_token' => $sfsi_section4['sfsiplus_tw_oauth_access_token'],
120
- 'sfsiplus_tw_oauth_access_token_secret' => $sfsi_section4['sfsiplus_tw_oauth_access_token_secret']
121
- );
122
-
123
- $followers = $socialObj->sfsi_get_tweets($twitter_user, $tw_settings);
124
- $counts = $socialObj->format_num($followers);
125
- } else {
126
- $counts = $socialObj->format_num($sfsi_section4['sfsi_plus_twitter_manualCounts']);
127
- }
128
- if ($counts > 0) {
129
- $count_html = '<span class="bot_no">' . $counts . '</span>';
130
- }
131
- }
132
- $twitter_text = '';
133
-
134
- if (!empty($permalink)) {
135
- $postid = url_to_postid($permalink);
136
- }
137
- if (!empty($postid)) {
138
- $twitter_text = get_the_title($postid);
139
- }
140
- $icons .= "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_twitterShare($permalink, $twitter_text) . $count_html . "</div>";
141
- }
142
- if ($sfsi_section8['sfsi_plus_rectpinit'] == 'yes') {
143
-
144
- if ($show_count) {
145
- $sfsiLikeWithpinit = "100px";
146
- } else {
147
- $sfsiLikeWithpinit = "auto";
148
- }
149
- if ($show_count) {
150
- /* get Pinterest counts */
151
- if ($sfsi_section4['sfsi_plus_pinterest_countsFrom'] == "pins") {
152
- $url = home_url();
153
- $pins = $socialObj->sfsi_get_pinterest($url);
154
- $counts = $socialObj->format_num($pins);
155
- } else {
156
- $counts = $sfsi_section4['sfsi_plus_pinterest_manualCounts'];
157
- }
158
- if ($counts > 0) {
159
- $count_html = '<span class="bot_no">' . $counts . '</span>';
160
- }
161
- }
162
- $icons .= "<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: " . $sfsiLikeWithpinit . ";'>" . sfsi_plus_pinterest_Custom($permalink, $show_count) . $count_html . "</div>";
163
- }
164
- $icons .= "</div>";
165
-
166
- if (!is_feed() && !is_home() && !is_page()) {
167
- $content = $content . $icons;
168
- }
169
- //}
170
- return $content;
171
- }
172
-
173
- /*subscribe like*/
174
- function sfsi_plus_Subscribelike($permalink, $show_count)
175
- {
176
- global $socialObj;
177
- $socialObj = new sfsi_plus_SocialHelper();
178
-
179
- $sfsi_plus_section2_options = maybe_unserialize(get_option('sfsi_plus_section2_options', false));
180
- $sfsi_plus_section4_options = maybe_unserialize(get_option('sfsi_plus_section4_options', false));
181
- $sfsi_plus_section8_options = maybe_unserialize(get_option('sfsi_plus_section8_options', false));
182
- $option5 = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
183
-
184
- $post_icons = $option5['sfsi_plus_follow_icons_language'];
185
- $visit_icon1 = SFSI_PLUS_DOCROOT . '/images/visit_icons/Follow/icon_' . $post_icons . '.png';
186
- $visit_iconsUrl = SFSI_PLUS_PLUGURL . "images/";
187
-
188
- if (file_exists($visit_icon1)) {
189
- $visit_icon = $visit_iconsUrl . "visit_icons/Follow/icon_" . $post_icons . ".png";
190
- } else {
191
- $visit_icon = $visit_iconsUrl . "follow_subscribe.png";
192
- }
193
-
194
- $url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'https://follow.it/now';
195
-
196
- if ($sfsi_plus_section4_options['sfsi_plus_email_countsFrom'] == "manual") {
197
- $counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
198
- } else {
199
- $counts = $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_plus_feed_id', false)));
200
- }
201
-
202
- if ($sfsi_plus_section4_options['sfsi_plus_display_counts'] == "yes" && $sfsi_plus_section4_options['sfsi_plus_original_counts'] == "yes") {
203
- $icon = '<a href="' . $url . '" target="_blank"><img src="' . $visit_icon . '" /></a>
204
- <span class="bot_no">' . $counts . '</span>';
205
- } else {
206
- $icon = '<a href="' . $url . '" target="_blank"><img src="' . $visit_icon . '" /></a>';
207
- }
208
- return $icon;
209
- }
210
- /*subscribe like*/
211
-
212
- /*twitter like*/
213
- function sfsi_plus_twitterlike($permalink, $show_count)
214
- {
215
- global $socialObj;
216
- $socialObj = new sfsi_plus_SocialHelper();
217
- $twitter_text = '';
218
- $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
219
- $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
220
- if (!empty($permalink)) {
221
- $postid = url_to_postid($permalink);
222
- }
223
- if (!empty($postid)) {
224
- $twitter_text = get_the_title($postid);
225
- }
226
- return $socialObj->sfsi_twitterSharewithcount($permalink, $twitter_text, $show_count, $icons_language);
227
- }
228
- /*twitter like*/
229
-
230
- function sfsi_twitterShare($permalink, $tweettext)
231
- {
232
- $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
233
- $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
234
- $tweet_icon = SFSI_PLUS_PLUGURL . 'images/share_icons/Twitter_Tweet/' . $icons_language . '_Tweet.svg';
235
- // $tweet_icon = SFSI_PLUS_PLUGURL . 'images/visit_icons/'".$icons_language."'.svg';
236
-
237
-
238
- $twitter_html = "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>
239
- <a target='_blank' href='https://twitter.com/intent/tweet?text=" . urlencode($tweettext) . ' ' . $permalink . "'style='display:inline-block' >
240
- <img nopin=nopin width='auto' class='sfsi_plus_wicon' src='" . $tweet_icon . "' alt='Tweet' title='Tweet' >
241
- </a>
242
- </div>";
243
- return $twitter_html;
244
- }
245
- // if(empty($tweettext)){
246
- // $tweettext = "&nbsp";
247
- // }
248
- // $twitter_html = '<a rel="nofollow" href="https://twitter.com/intent/tweet" data-count="none" class="sr-twitter-button twitter-share-button" data-lang="'.$icons_language.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
249
- // return $twitter_html;
250
-
251
- /* create fb like button */
252
- function sfsi_plus_FBlike($permalink, $show_count)
253
- {
254
- $send = 'false';
255
- $width = 180;
256
-
257
- $fb_like_html = '';
258
-
259
- $fb_like_html .= '<div class="fb-like" data-href="' . $permalink . '" data-action="like" data-size="small" data-show-faces="false" data-share="false"';
260
-
261
- if (1 == $show_count) {
262
- $fb_like_html .= 'data-layout="button_count"';
263
- } else {
264
- $fb_like_html .= 'data-layout="button"';
265
- }
266
-
267
- $fb_like_html .= ' ></div>';
268
-
269
- return $fb_like_html;
270
- }
271
-
272
- function sfsi_plus_FBshare($permalink, $show_count)
273
- {
274
- $fb_share_html = '';
275
- $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
276
- $facebook_icons_lang = $sfsi_plus_section5_options["sfsi_plus_icons_language"];
277
- $shareurl = "https://www.facebook.com/sharer/sharer.php?u=";
278
- $shareurl = $shareurl . urlencode(urldecode($permalink));
279
- $fb_share_html = "<a target='_blank' href='" . $shareurl . "' style='display:inline-block;' > <img class='sfsi_wicon' data-pin-nopin='true' width='auto' height='auto' alt='fb-share-icon' title='Facebook Share' src='" . SFSI_PLUS_PLUGURL . "images/share_icons/fb_icons/" . $facebook_icons_lang . ".svg'" . "' /></a>";
280
- return $fb_share_html;
281
- }
282
-
283
- function sfsi_plus_pinterest_Custom($permalink, $show_count = false)
284
- {
285
- $pinit_html = 'https://www.pinterest.com/pin/create/button/?url=&media=&description';
286
-
287
- $pinit_html = "<a href='" . $pinit_html . "' style='display:inline-block;' > <img class='sfsi_wicon' data-pin-nopin='true' width='auto' height='auto' alt='Pin Share' title='Pin Share' src='" . SFSI_PLUS_PLUGURL . "images/share_icons/en_US_save.svg" . "' /></a>";
288
- return $pinit_html;
289
- }
290
-
291
-
292
- /* create pinit button */
293
-
294
- function sfsi_plus_pinitpinterest($permalink, $show_count)
295
- {
296
- $pinit_html = '<a href="https://www.pinterest.com/pin/create/button/?url=&media=&description=" data-pin-do="buttonPin" data-pin-save="true"';
297
-
298
- if ($show_count) {
299
- $pinit_html .= 'data-pin-count="beside"';
300
- } else {
301
- $pinit_html .= 'data-pin-count="none"';
302
- }
303
-
304
- $pinit_html .= '></a>';
305
-
306
- return $pinit_html;
307
- }
308
-
309
- /* add all external javascript to wp_footer */
310
- function sfsi_plus_footer_script()
311
- {
312
- $sfsi_section1 = maybe_unserialize(get_option('sfsi_plus_section1_options', false));
313
- $sfsi_section6 = maybe_unserialize(get_option('sfsi_plus_section6_options', false));
314
- $sfsi_section8 = maybe_unserialize(get_option('sfsi_plus_section8_options', false));
315
- $sfsi_section2 = maybe_unserialize(get_option('sfsi_plus_section2_options', false));
316
-
317
- /* filter the content of post */
318
- //commenting following code as we are going to extend this functionality
319
- //add_filter('the_content', 'sfsi_plus_social_buttons_below');
320
-
321
- $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
322
-
323
- if (
324
- isset($sfsi_plus_section5_options['sfsi_plus_icons_language']) &&
325
- !empty($sfsi_plus_section5_options['sfsi_plus_icons_language'])
326
- ) {
327
- $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
328
- } else {
329
- $icons_language = "en_US";
330
- }
331
-
332
- if (!isset($sfsi_section8['sfsi_plus_rectsub'])) {
333
- $sfsi_section8['sfsi_plus_rectsub'] = 'no';
334
- }
335
- if (!isset($sfsi_section8['sfsi_plus_rectfb'])) {
336
- $sfsi_section8['sfsi_plus_rectfb'] = 'yes';
337
- }
338
- if (!isset($sfsi_section8['sfsi_plus_recttwtr'])) {
339
- $sfsi_section8['sfsi_plus_recttwtr'] = 'no';
340
- }
341
- if (!isset($sfsi_section8['sfsi_plus_rectpinit'])) {
342
- $sfsi_section8['sfsi_plus_rectpinit'] = 'no';
343
- }
344
-
345
- if (!isset($sfsi_section8['sfsi_plus_rectfbshare'])) {
346
- $sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
347
- }
348
- $common_options_check = (
349
- ($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") || ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") || (isset($sfsi_section8['sfsi_plus_float_page_position']) && "yes" == $sfsi_section8['sfsi_plus_float_page_position']) || ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") || (isset($sfsi_section8['sfsi_plus_place_item_gutenberg']) && $sfsi_section8['sfsi_plus_place_item_gutenberg'] == "no") || (isset($sfsi_section8['sfsi_plus_show_item_onposts']) && "yes" == $sfsi_section8['sfsi_plus_show_item_onposts'] && (isset($sfsi_section8["sfsi_plus_display_button_type"])) && "normal_button" == $sfsi_section8["sfsi_plus_display_button_type"] && ($sfsi_section4["sfsi_plus_round_counts"] == "yes")));
350
- if (
351
- ($sfsi_section8['sfsi_plus_rectfb'] == "yes" &&
352
- $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
353
- $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons")
354
- || ($sfsi_section1['sfsi_plus_facebook_display'] == "yes" && ($sfsi_section2['sfsi_plus_facebookLike_option'] == "yes") && $common_options_check)
355
- ) { ?>
356
- <!--facebook like and share js -->
357
- <div id="fb-root"></div>
358
-
359
- <script>
360
- (function(d, s, id) {
361
- var js, fjs = d.getElementsByTagName(s)[0];
362
- if (d.getElementById(id)) return;
363
- js = d.createElement(s);
364
- js.id = id;
365
- js.src = "//connect.facebook.net/<?php echo $icons_language; ?>/sdk.js#xfbml=1&version=v2.5";
366
- fjs.parentNode.insertBefore(js, fjs);
367
- }(document, 'script', 'facebook-jssdk'));
368
- </script>
369
- <?php
370
- }
371
- $isYoutubeFollowFeatureActive = ("yes" == $sfsi_section2['sfsi_plus_youtube_follow']) && (isset($sfsi_section2['sfsi_plus_youtubeusernameorid']) &&
372
- !empty($sfsi_section2['sfsi_plus_youtubeusernameorid'])) && (
373
- ("name" == $sfsi_section2['sfsi_plus_youtubeusernameorid'] &&
374
- isset($sfsi_section2['sfsi_plus_ytube_user']) &&
375
- !empty($sfsi_section2['sfsi_plus_ytube_user'])) || ("id" == $sfsi_section2['sfsi_plus_youtubeusernameorid'] &&
376
- isset($sfsi_section2['sfsi_plus_ytube_chnlid']) &&
377
- !empty($sfsi_section2['sfsi_plus_ytube_chnlid'])));
378
- if (
379
- ($sfsi_section1['sfsi_plus_youtube_display'] == "yes" && $isYoutubeFollowFeatureActive && $common_options_check)
380
- ) { ?>
381
- <!-- youtube share -->
382
- <script type="text/javascript">
383
- (function() {
384
- var po = document.createElement('script');
385
- po.type = 'text/javascript';
386
- po.async = true;
387
- po.src = 'https://apis.google.com/js/platform.js';
388
- var s = document.getElementsByTagName('script')[0];
389
- s.parentNode.insertBefore(po, s);
390
- })();
391
- </script>
392
- <?php
393
- }
394
- $isLinkedInFollowFeatureActive = (isset($sfsi_section2['sfsi_plus_linkedin_follow']) && !empty($sfsi_section2['sfsi_plus_linkedin_follow']) && ("yes" == $sfsi_section2['sfsi_plus_linkedin_follow'])
395
- && isset($sfsi_section2['sfsi_plus_linkedin_followCompany']) && !empty($sfsi_section2['sfsi_plus_linkedin_followCompany']));
396
-
397
- $isLinkedInRecommnedFeatureActive = (isset($sfsi_section2['sfsi_plus_linkedin_recommendBusines']) && !empty($sfsi_section2['sfsi_plus_linkedin_recommendBusines']) && ("yes" == $sfsi_section2['sfsi_plus_linkedin_recommendBusines'])
398
- && isset($sfsi_section2['sfsi_plus_linkedin_recommendProductId']) && !empty($sfsi_section2['sfsi_plus_linkedin_recommendProductId'])
399
- && isset($sfsi_section2['sfsi_plus_linkedin_recommendCompany']) && !empty($sfsi_section2['sfsi_plus_linkedin_recommendCompany']));
400
- if (
401
- ($sfsi_section1['sfsi_plus_linkedin_display'] == "yes" && (($isLinkedInFollowFeatureActive || $isLinkedInRecommnedFeatureActive)) && $common_options_check)
402
- ) {
403
- if ($icons_language == 'ar_AR') {
404
- $icons_language = 'ar_AE';
405
- }
406
- if ($common_options_check) {
407
-
408
- ?>
409
- <!-- linkedIn share and follow js -->
410
- <script src="//platform.linkedin.com/in.js">
411
- lang: <?php echo $icons_language; ?>
412
- </script>
413
- <?php
414
- }
415
- }
416
- /* activate footer credit link */
417
- if (get_option('sfsi_plus_footer_sec') == "yes") {
418
- if (!is_admin()) {
419
- //$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> ';
420
- $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/?utm_source=usmplus_settings_page&utm_campaign=footer_credit_new&utm_medium=banner" target="_new">Social media & sharing icons </a> powered by UltimatelySocial';
421
- $footer_link .= "</div>";
422
- echo $footer_link;
423
- }
424
- }
425
- }
426
- /* filter the content of post */
427
- //commenting following code as we are going to extend this functionality
428
- //add_filter('the_content', 'sfsi_plus_social_buttons_below');
429
-
430
- /* update footer for frontend and admin both */
431
- if (!is_admin()) {
432
- global $post;
433
- add_action('wp_footer', 'sfsi_plus_footer_script');
434
- if (!function_exists('sfsi_plus_check_PopUp')) {
435
- include('sfsi_frontpopUp.php');
436
- }
437
- add_action('wp_footer', 'sfsi_plus_check_PopUp');
438
- add_action('wp_footer', 'sfsi_plus_frontFloter');
439
- }
440
- if (is_admin()) {
441
- add_action('in_admin_footer', 'sfsi_plus_footer_script');
442
- }
443
- /* ping to vendor site on updation of new post */
444
-
445
- //<---------------------* Responsive icons *----------------->
446
- function sfsi_plus_social_responsive_buttons($content, $option8, $server_side = false)
447
- {
448
-
449
- if ((isset($option8["sfsi_plus_show_item_onposts"]) && $option8["sfsi_plus_show_item_onposts"] == "yes" && isset($option8["sfsi_plus_display_button_type"]) && $option8["sfsi_plus_display_button_type"] == "responsive_button") || $server_side) :
450
- $option2 = maybe_unserialize(get_option('sfsi_plus_section2_options', false));
451
- $option4 = maybe_unserialize(get_option('sfsi_plus_section4_options', false));
452
- $icons = "";
453
- $sfsi_plus_responsive_icons = (isset($option8["sfsi_plus_responsive_icons"]) ? $option8["sfsi_plus_responsive_icons"] : null);
454
-
455
- if (is_null($sfsi_plus_responsive_icons)) {
456
- return ""; // dont return anything if options not set;
457
- }
458
- $icon_width_type = $sfsi_plus_responsive_icons["settings"]["icon_width_type"];
459
- $sfsi_plus_margin_above = $sfsi_plus_responsive_icons["settings"]["margin_above"];
460
- $sfsi_plus_margin_below = $sfsi_plus_responsive_icons["settings"]["margin_below"];
461
- if ($option4['sfsi_plus_display_counts'] == 'yes' && $option4['sfsi_plus_responsive_share_count'] == "yes") :
462
- $counter_class = "sfsi_plus_responsive_with_counter_icons";
463
- $couter_display = "inline-block";
464
-
465
- else :
466
- $counter_class = "sfsi_plus_responsive_without_counter_icons";
467
- $couter_display = "none";
468
- endif;
469
- $counts = sfsi_plus_getCounts(true);
470
- $count = 0;
471
- if (isset($counts['email_count'])) {
472
- $count = (int) ($counts['email_count']) + $count;
473
- }
474
- if (isset($counts['fb_count'])) {
475
- $count = (int) ($counts['fb_count']) + $count;
476
- }
477
- if (isset($counts['twitter_count'])) {
478
- $count = (int) ($counts['twitter_count']) + $count;
479
- } else {
480
- $count = 0;
481
- }
482
- $icons .= "<div class='sfsi_plus_responsive_icons' style='display:inline-block;margin-top:" . $sfsi_plus_margin_above . "px; margin-bottom: " . $sfsi_plus_margin_below . "px; " . ($icon_width_type == "Fully Responsive" ? "width:100%;display:flex; " : 'width:100%') . "' data-icon-width-type='" . $icon_width_type . "' data-icon-width-size='" . $sfsi_plus_responsive_icons["settings"]['icon_width_size'] . "' data-edge-type='" . $sfsi_plus_responsive_icons["settings"]['edge_type'] . "' data-edge-radius='" . $sfsi_plus_responsive_icons["settings"]['edge_radius'] . "' >";
483
- $sfsi_plus_anchor_div_style = "";
484
- if ($sfsi_plus_responsive_icons["settings"]["edge_type"] === "Round") {
485
- $sfsi_plus_anchor_div_style .= " border-radius:";
486
- if ($sfsi_plus_responsive_icons["settings"]["edge_radius"] !== "") {
487
- $sfsi_plus_anchor_div_style .= $sfsi_plus_responsive_icons["settings"]["edge_radius"] . 'px; ';
488
- } else {
489
- $sfsi_plus_anchor_div_style .= '0px; ';
490
- }
491
- }
492
- ob_start(); ?>
493
- <div class="sfsi_plus_responsive_icons_count sfsi_plus_<?php echo ($icon_width_type == "Fully responsive" ? 'responsive' : 'fixed'); ?>_count_container sfsi_plus_<?php echo strtolower($sfsi_plus_responsive_icons['settings']['icon_size']); ?>_button" style='display:<?php echo $couter_display; ?>;text-align:center; background-color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_bg_color']; ?>;color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color']; ?>; <?php echo $sfsi_plus_anchor_div_style; ?>;'>
494
- <h3 style="color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color']; ?>; "><?php echo $count; ?></h3>
495
- <h6 style="color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color']; ?>;"><?php echo $sfsi_plus_responsive_icons['settings']["share_count_text"]; ?></h6>
496
- </div>
497
- <?php
498
- $icons .= ob_get_contents();
499
- ob_end_clean();
500
- $icons .= "\t<div class='sfsi_plus_icons_container " . $counter_class . " sfsi_plus_" . strtolower($sfsi_plus_responsive_icons['settings']['icon_size']) . "_button_container sfsi_plus_icons_container_box_" . ($icon_width_type !== "Fixed icon width" ? "fully" : 'fixed') . "_container ' style='" . ($icon_width_type !== "Fixed icon width" ? "width:100%;display:flex; " : 'width:auto') . "; text-align:center;' >";
501
- $socialObj = new sfsi_plus_SocialHelper();
502
- //styles
503
- $sfsi_plus_anchor_style = "";
504
- if ($sfsi_plus_responsive_icons["settings"]["text_align"] == "Centered") {
505
- $sfsi_plus_anchor_style .= 'text-align:center;';
506
- }
507
- if ($sfsi_plus_responsive_icons["settings"]["margin"] !== "") {
508
- $sfsi_plus_anchor_style .= 'margin-left:' . $sfsi_plus_responsive_icons["settings"]["margin"] . "px; ";
509
- // $sfsi_plus_anchor_style.='margin-bottom:'.$sfsi_plus_responsive_icons["settings"]["margin"]."px; ";
510
- }
511
- //styles
512
-
513
- if ($sfsi_plus_responsive_icons['settings']['icon_width_type'] === "Fixed icon width") {
514
- $sfsi_plus_anchor_div_style .= 'width:' . $sfsi_plus_responsive_icons['settings']['icon_width_size'] . 'px;';
515
- } else {
516
- $sfsi_plus_anchor_style .= " flex-basis:100%;";
517
- $sfsi_plus_anchor_div_style .= " width:100%;";
518
- }
519
- // var_dump($sfsi_plus_anchor_style,$sfsi_plus_anchor_div_style);
520
- foreach ($sfsi_plus_responsive_icons['default_icons'] as $icon => $icon_config) {
521
- // var_dump($icon_config, $icon);
522
- // $current_url = $socialObj->sfsi_get_custom_share_link(strtolower($icon));
523
- switch ($icon) {
524
- case "facebook":
525
- $share_url = "https://www.facebook.com/sharer/sharer.php?u=" . get_permalink();
526
- break;
527
- case "Twitter":
528
- $twitter_text = $share_url = "https://twitter.com/intent/tweet?text=" . get_the_title() . "&url=" . get_permalink();
529
- break;
530
- case "Follow":
531
- if (isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'sf') {
532
- $share_url = (isset($option2['sfsi_plus_email_url']))
533
- ? $option2['sfsi_plus_email_url']
534
- : 'https://follow.it/now';
535
- } elseif (isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'contact') {
536
- $share_url = (isset($option2['sfsi_plus_email_icons_contact']) && !empty($option2['sfsi_plus_email_icons_contact']))
537
- ? "mailto:" . $option2['sfsi_plus_email_icons_contact']
538
- : 'https://follow.it/now';
539
- } elseif (isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'page') {
540
- $share_url = (isset($option2['sfsi_plus_email_icons_pageurl']) && !empty($option2['sfsi_plus_email_icons_pageurl']))
541
- ? $option2['sfsi_plus_email_icons_pageurl']
542
- : 'https://follow.it/now';
543
- } elseif (isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'share_email') {
544
- $subject = stripslashes($option2['sfsi_plus_email_icons_subject_line']);
545
- $subject = str_replace('${title}', $socialObj->sfsi_get_the_title(), $subject);
546
- $subject = str_replace('"', '', str_replace("'", '', $subject));
547
- $subject = html_entity_decode(strip_tags($subject), ENT_QUOTES, 'UTF-8');
548
- $subject = str_replace("%26%238230%3B", "...", $subject);
549
- $subject = rawurlencode($subject);
550
-
551
- $body = stripslashes($option2['sfsi_plus_email_icons_email_content']);
552
- $body = str_replace('${title}', $socialObj->sfsi_get_the_title(), $body);
553
- $body = str_replace('${link}', trailingslashit($socialObj->sfsi_get_custom_share_link('email')), $body);
554
- $body = str_replace('"', '', str_replace("'", '', $body));
555
- $body = html_entity_decode(strip_tags($body), ENT_QUOTES, 'UTF-8');
556
- $body = str_replace("%26%238230%3B", "...", $body);
557
- $body = rawurlencode($body);
558
- $share_url = "mailto:?subject=$subject&body=$body";
559
- } else {
560
- $share_url = (isset($option2['sfsi_plus_email_url']))
561
- ? $option2['sfsi_plus_email_url']
562
- : 'https://follow.it/now';
563
- }
564
- }
565
- $icons .= "\t\t" . "<a " . sfsi_plus_checkNewWindow() . " href='" . ($icon_config['url'] == "" ? $share_url : do_shortcode($icon_config['url'])) . "' style='" . ($icon_config['active'] == 'yes' ? ($sfsi_plus_responsive_icons['settings']['icon_width_type'] === "Fixed icon width" ? 'display:inline-flex' : 'display:block') : 'display:none') . ";" . $sfsi_plus_anchor_style . "' class=" . ($sfsi_plus_responsive_icons['settings']['icon_width_type'] === "Fixed icon width" ? 'sfsi_plus_responsive_fixed_width' : 'sfsi_plus_responsive_fluid') . " >" . "\n";
566
- $icons .= "\t\t\t<div class='sfsi_plus_responsive_icon_item_container sfsi_plus_responsive_icon_" . strtolower($icon) . "_container sfsi_plus_" . strtolower($sfsi_plus_responsive_icons['settings']['icon_size']) . "_button " . ($sfsi_plus_responsive_icons['settings']['style'] == "Gradient" ? 'sfsi_plus_responsive_icon_gradient' : '') . (" sfsi_plus_" . (strtolower($sfsi_plus_responsive_icons['settings']['text_align']) == "centered" ? 'centered' : 'left-align') . "_icon") . "' style='" . $sfsi_plus_anchor_div_style . " ' >" . "\n";
567
- $icons .= "\t\t\t\t<img style='max-height: 25px;display:unset;margin:0' class='sfsi_plus_wicon' src='" . SFSI_PLUS_PLUGURL . "images/responsive-icon/" . $icon . ('Follow' === $icon ? '.png' : '.svg') . "'>" . "\n";
568
- $icons .= "\t\t\t\t<span style='color:#fff' >" . ($icon_config["text"]) . "</span>" . "\n";
569
- $icons .= "\t\t\t</div>" . "\n";
570
- $icons .= "\t\t</a>" . "\n\n";
571
- }
572
- $icons .= "</div></div><!--end responsive_icons-->";
573
- return $icons;
574
- endif;
575
- }
1
+ <?php
2
+ /* add fb like add this share to end of every post */
3
+ function sfsi_plus_social_buttons_below($content)
4
+ {
5
+ global $post;
6
+ $sfsi_section6 = maybe_unserialize(get_option('sfsi_plus_section6_options', false));
7
+
8
+ //new options that are added on the third questions
9
+ //so in this function we are replacing all the past options
10
+ //that were saved under option6 by new settings saved under option8
11
+ $sfsi_section8 = maybe_unserialize(get_option('sfsi_plus_section8_options', false));
12
+ $sfsi_section4 = maybe_unserialize(get_option('sfsi_plus_section4_options', false));
13
+
14
+ $sfsi_plus_show_item_onposts = $sfsi_section8['sfsi_plus_show_item_onposts'];
15
+ //new options that are added on the third questions
16
+
17
+ //checking for standard icons
18
+ if (!isset($sfsi_section8['sfsi_plus_rectsub'])) {
19
+ $sfsi_section8['sfsi_plus_rectsub'] = 'no';
20
+ }
21
+ if (!isset($sfsi_section8['sfsi_plus_rectfb'])) {
22
+ $sfsi_section8['sfsi_plus_rectfb'] = 'yes';
23
+ }
24
+ if (!isset($sfsi_section8['sfsi_plus_recttwtr'])) {
25
+ $sfsi_section8['sfsi_plus_recttwtr'] = 'no';
26
+ }
27
+ if (!isset($sfsi_section8['sfsi_plus_rectpinit'])) {
28
+ $sfsi_section8['sfsi_plus_rectpinit'] = 'no';
29
+ }
30
+ if (!isset($sfsi_section8['sfsi_plus_rectfbshare'])) {
31
+ $sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
32
+ }
33
+ //checking for standard icons
34
+
35
+ /* check if option activated in admin or not */
36
+ //if($sfsi_section6['sfsi_plus_show_Onposts']=="yes")
37
+ //removing following condition for now
38
+ /*if($sfsi_section8['sfsi_plus_show_Onposts']=="yes")
39
+ {*/
40
+ $permalink = get_permalink($post->ID);
41
+ $title = get_the_title();
42
+ $sfsiLikeWith = "45px;";
43
+
44
+ /* check for counter display */
45
+ //if($sfsi_section6['sfsi_plus_icons_DisplayCounts']=="yes")
46
+
47
+ if ($sfsi_section4['sfsi_plus_display_counts'] == "yes" && $sfsi_section4['sfsi_plus_original_counts'] == "yes") {
48
+ $show_count = 1;
49
+ $sfsiLikeWith = "75px;";
50
+ } else {
51
+ $show_count = 0;
52
+ }
53
+ $common_options_check = (($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") || ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") && (isset($sfsi_section8['sfsi_plus_float_page_position'])) || ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") || ($sfsi_section8['sfsi_plus_place_item_gutenberg'] == "no"));
54
+ //$txt=(isset($sfsi_section6['sfsi_plus_textBefor_icons']))? $sfsi_section6['sfsi_plus_textBefor_icons'] : "Share this Post with :" ;
55
+ $txt = (isset($sfsi_section8['sfsi_plus_textBefor_icons'])) ? $sfsi_section8['sfsi_plus_textBefor_icons'] : "Please follow and like us:";
56
+ //$float= $sfsi_section6['sfsi_plus_icons_alignment'];
57
+ $float = $sfsi_section8['sfsi_plus_icons_alignment'];
58
+ if ($sfsi_section8['sfsi_plus_rectsub'] == 'yes' || $sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $sfsi_section8['sfsi_plus_recttwtr'] == 'yes' || $sfsi_section8['sfsi_plus_rectpinit'] == 'yes' || $sfsi_section8['sfsi_plus_rectfbshare'] == 'yes') {
59
+ $icons = "<div class='sfsi_plus_Sicons " . $float . "' style='float:" . $float . "'><div style='display: inline-block;margin-bottom: 0; margin-left: 0; margin-right: 8px; margin-top: 0; vertical-align: middle;width: auto;'><span>" . $txt . "</span></div>";
60
+ }
61
+ if ($sfsi_section8['sfsi_plus_rectsub'] == 'yes') {
62
+ if ($show_count) {
63
+ $sfsiLikeWithsub = "93px";
64
+ } else {
65
+ $sfsiLikeWithsub = "64px";
66
+ }
67
+ if (!isset($sfsiLikeWithsub)) {
68
+ $sfsiLikeWithsub = $sfsiLikeWith;
69
+ }
70
+ $icons .= "<div class='sf_subscrbe' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_Subscribelike($permalink, $show_count) . "</div>";
71
+ }
72
+ if ($sfsi_section8['sfsi_plus_rectfb'] == 'yes' || $common_options_check) {
73
+ $icons .= "<div class='sf_fb' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_FBlike($permalink, $show_count) . "</div>";
74
+ }
75
+
76
+ if ($sfsi_section8['sfsi_plus_rectfbshare'] == 'yes' || $common_options_check) {
77
+ $socialObj = new sfsi_plus_SocialHelper();
78
+ $sfsi_section4 = maybe_unserialize(get_option('sfsi_plus_section4_options', false));
79
+ $count_html = '';
80
+
81
+ if ($show_count) {
82
+ if ($sfsi_section4['sfsi_plus_facebook_countsDisplay'] == "yes" && $sfsi_section4['sfsi_plus_display_counts'] == "yes") {
83
+
84
+ if ($sfsi_section4['sfsi_plus_facebook_countsFrom'] == "manual") {
85
+ $counts = $sfsi_section4['sfsi_plus_facebook_manualCounts'];
86
+ } else if ($sfsi_section4['sfsi_plus_facebook_countsFrom'] == "likes") {
87
+ $counts = $socialObj->sfsi_get_fb($permalink);
88
+ } else if ($sfsi_section4['sfsi_plus_facebook_countsFrom'] == "followers") {
89
+ $counts = $socialObj->sfsi_get_fb($permalink);
90
+ } else if ($sfsi_section4['sfsi_plus_facebook_countsFrom'] == "mypage") {
91
+ $current_url = $sfsi_section4['sfsi_plus_facebook_mypageCounts'];
92
+ $counts = $socialObj->sfsi_get_fb_pagelike($current_url);
93
+ }
94
+ $count_html = '<span class="bot_no">' . $counts . '</span>';
95
+ }
96
+ }
97
+
98
+ $icons .= "<div class='sf_fb' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_plus_FBshare($permalink, $show_count) . $count_html . "</div>";
99
+ }
100
+
101
+ if ($sfsi_section8['sfsi_plus_recttwtr'] == 'yes') {
102
+ if ($show_count) {
103
+ $sfsiLikeWithtwtr = "77px";
104
+ } else {
105
+ $sfsiLikeWithtwtr = "56px";
106
+ }
107
+ if (!isset($sfsiLikeWithtwtr)) {
108
+ $sfsiLikeWithtwtr = $sfsiLikeWith;
109
+ }
110
+ if ($show_count) {
111
+ /* get twitter counts */
112
+ if ($sfsi_section4['sfsi_plus_twitter_countsFrom'] == "source") {
113
+ $option2 = maybe_unserialize(get_option('sfsi_plus_section2_options', false));
114
+
115
+ $twitter_user = $option2['sfsi_plus_twitter_followUserName'];
116
+ $tw_settings = array(
117
+ 'sfsiplus_tw_consumer_key' => $sfsi_section4['sfsiplus_tw_consumer_key'],
118
+ 'sfsiplus_tw_consumer_secret' => $sfsi_section4['sfsiplus_tw_consumer_secret'],
119
+ 'sfsiplus_tw_oauth_access_token' => $sfsi_section4['sfsiplus_tw_oauth_access_token'],
120
+ 'sfsiplus_tw_oauth_access_token_secret' => $sfsi_section4['sfsiplus_tw_oauth_access_token_secret']
121
+ );
122
+
123
+ $followers = $socialObj->sfsi_get_tweets($twitter_user, $tw_settings);
124
+ $counts = $socialObj->format_num($followers);
125
+ } else {
126
+ $counts = $socialObj->format_num($sfsi_section4['sfsi_plus_twitter_manualCounts']);
127
+ }
128
+ if ($counts > 0) {
129
+ $count_html = '<span class="bot_no">' . $counts . '</span>';
130
+ }
131
+ }
132
+ $twitter_text = '';
133
+
134
+ if (!empty($permalink)) {
135
+ $postid = url_to_postid($permalink);
136
+ }
137
+ if (!empty($postid)) {
138
+ $twitter_text = get_the_title($postid);
139
+ }
140
+ $icons .= "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>" . sfsi_twitterShare($permalink, $twitter_text) . $count_html . "</div>";
141
+ }
142
+ if ($sfsi_section8['sfsi_plus_rectpinit'] == 'yes') {
143
+
144
+ if ($show_count) {
145
+ $sfsiLikeWithpinit = "100px";
146
+ } else {
147
+ $sfsiLikeWithpinit = "auto";
148
+ }
149
+ if ($show_count) {
150
+ /* get Pinterest counts */
151
+ if ($sfsi_section4['sfsi_plus_pinterest_countsFrom'] == "pins") {
152
+ $url = home_url();
153
+ $pins = $socialObj->sfsi_get_pinterest($url);
154
+ $counts = $socialObj->format_num($pins);
155
+ } else {
156
+ $counts = $sfsi_section4['sfsi_plus_pinterest_manualCounts'];
157
+ }
158
+ if ($counts > 0) {
159
+ $count_html = '<span class="bot_no">' . $counts . '</span>';
160
+ }
161
+ }
162
+ $icons .= "<div class='sf_pinit' style='display: inline-block;text-align:left;vertical-align: middle;width: " . $sfsiLikeWithpinit . ";'>" . sfsi_plus_pinterest_Custom($permalink, $show_count) . $count_html . "</div>";
163
+ }
164
+ $icons .= "</div>";
165
+
166
+ if (!is_feed() && !is_home() && !is_page()) {
167
+ $content = $content . $icons;
168
+ }
169
+ //}
170
+ return $content;
171
+ }
172
+
173
+ /*subscribe like*/
174
+ function sfsi_plus_Subscribelike($permalink, $show_count)
175
+ {
176
+ global $socialObj;
177
+ $socialObj = new sfsi_plus_SocialHelper();
178
+
179
+ $sfsi_plus_section2_options = maybe_unserialize(get_option('sfsi_plus_section2_options', false));
180
+ $sfsi_plus_section4_options = maybe_unserialize(get_option('sfsi_plus_section4_options', false));
181
+ $sfsi_plus_section8_options = maybe_unserialize(get_option('sfsi_plus_section8_options', false));
182
+ $option5 = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
183
+
184
+ $post_icons = $option5['sfsi_plus_follow_icons_language'];
185
+ $visit_icon1 = SFSI_PLUS_DOCROOT . '/images/visit_icons/Follow/icon_' . $post_icons . '.png';
186
+ $visit_iconsUrl = SFSI_PLUS_PLUGURL . "images/";
187
+
188
+ if (file_exists($visit_icon1)) {
189
+ $visit_icon = $visit_iconsUrl . "visit_icons/Follow/icon_" . $post_icons . ".png";
190
+ } else {
191
+ $visit_icon = $visit_iconsUrl . "follow_subscribe.png";
192
+ }
193
+
194
+ $url = (isset($sfsi_plus_section2_options['sfsi_plus_email_url'])) ? $sfsi_plus_section2_options['sfsi_plus_email_url'] : 'https://follow.it/now';
195
+
196
+ if ($sfsi_plus_section4_options['sfsi_plus_email_countsFrom'] == "manual") {
197
+ $counts = $socialObj->format_num($sfsi_plus_section4_options['sfsi_plus_email_manualCounts']);
198
+ } else {
199
+ $counts = $socialObj->SFSI_getFeedSubscriber(sanitize_text_field(get_option('sfsi_plus_feed_id', false)));
200
+ }
201
+
202
+ if ($sfsi_plus_section4_options['sfsi_plus_display_counts'] == "yes" && $sfsi_plus_section4_options['sfsi_plus_original_counts'] == "yes") {
203
+ $icon = '<a href="' . $url . '" target="_blank"><img src="' . $visit_icon . '" /></a>
204
+ <span class="bot_no">' . $counts . '</span>';
205
+ } else {
206
+ $icon = '<a href="' . $url . '" target="_blank"><img src="' . $visit_icon . '" /></a>';
207
+ }
208
+ return $icon;
209
+ }
210
+ /*subscribe like*/
211
+
212
+ /*twitter like*/
213
+ function sfsi_plus_twitterlike($permalink, $show_count)
214
+ {
215
+ global $socialObj;
216
+ $socialObj = new sfsi_plus_SocialHelper();
217
+ $twitter_text = '';
218
+ $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
219
+ $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
220
+ if (!empty($permalink)) {
221
+ $postid = url_to_postid($permalink);
222
+ }
223
+ if (!empty($postid)) {
224
+ $twitter_text = get_the_title($postid);
225
+ }
226
+ return $socialObj->sfsi_twitterSharewithcount($permalink, $twitter_text, $show_count, $icons_language);
227
+ }
228
+ /*twitter like*/
229
+
230
+ function sfsi_twitterShare($permalink, $tweettext)
231
+ {
232
+ $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
233
+ $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
234
+ $tweet_icon = SFSI_PLUS_PLUGURL . 'images/share_icons/Twitter_Tweet/' . $icons_language . '_Tweet.svg';
235
+ // $tweet_icon = SFSI_PLUS_PLUGURL . 'images/visit_icons/'".$icons_language."'.svg';
236
+
237
+
238
+ $twitter_html = "<div class='sf_twiter' style='display: inline-block;vertical-align: middle;width: auto;'>
239
+ <a target='_blank' href='https://twitter.com/intent/tweet?text=" . urlencode($tweettext) . ' ' . $permalink . "'style='display:inline-block' >
240
+ <img nopin=nopin width='auto' class='sfsi_plus_wicon' src='" . $tweet_icon . "' alt='Tweet' title='Tweet' >
241
+ </a>
242
+ </div>";
243
+ return $twitter_html;
244
+ }
245
+ // if(empty($tweettext)){
246
+ // $tweettext = "&nbsp";
247
+ // }
248
+ // $twitter_html = '<a rel="nofollow" href="https://twitter.com/intent/tweet" data-count="none" class="sr-twitter-button twitter-share-button" data-lang="'.$icons_language.'" data-url="'.$permalink.'" data-text="'.stripslashes($tweettext).'" ></a>';
249
+ // return $twitter_html;
250
+
251
+ /* create fb like button */
252
+ function sfsi_plus_FBlike($permalink, $show_count)
253
+ {
254
+ $send = 'false';
255
+ $width = 180;
256
+
257
+ $fb_like_html = '';
258
+
259
+ $fb_like_html .= '<div class="fb-like" data-href="' . $permalink . '" data-action="like" data-size="small" data-show-faces="false" data-share="false"';
260
+
261
+ if (1 == $show_count) {
262
+ $fb_like_html .= ' data-layout="button_count"';
263
+ } else {
264
+ $fb_like_html .= ' data-layout="button"';
265
+ }
266
+
267
+ $fb_like_html .= ' ></div>';
268
+
269
+ return $fb_like_html;
270
+ }
271
+
272
+ function sfsi_plus_FBshare($permalink, $show_count)
273
+ {
274
+ $fb_share_html = '';
275
+ $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
276
+ $facebook_icons_lang = $sfsi_plus_section5_options["sfsi_plus_icons_language"];
277
+ $shareurl = "https://www.facebook.com/sharer/sharer.php?u=";
278
+ $shareurl = $shareurl . urlencode(urldecode($permalink));
279
+ $fb_share_html = "<a target='_blank' href='" . $shareurl . "' style='display:inline-block;' > <img class='sfsi_wicon' data-pin-nopin='true' width='auto' height='auto' alt='fb-share-icon' title='Facebook Share' src='" . SFSI_PLUS_PLUGURL . "images/share_icons/fb_icons/" . $facebook_icons_lang . ".svg'" . "' /></a>";
280
+ return $fb_share_html;
281
+ }
282
+
283
+ function sfsi_plus_pinterest_Custom($permalink, $show_count = false) {
284
+ $pinit_html = "<a href='https://www.pinterest.com/pin/create/button/?url=&media=&description' style='display:inline-block;'><img class='sfsi_wicon' data-pin-nopin='true' width='auto' height='auto' alt='Pin Share' title='Pin Share' src='" . SFSI_PLUS_PLUGURL . "images/share_icons/en_US_save.svg" . "' /></a>";
285
+ return $pinit_html;
286
+ }
287
+
288
+
289
+ /* create pinit button */
290
+
291
+ function sfsi_plus_pinitpinterest($permalink, $show_count)
292
+ {
293
+ $pinit_html = '<a href="https://www.pinterest.com/pin/create/button/?url=&media=&description=" data-pin-do="buttonPin" data-pin-save="true"';
294
+
295
+ if ($show_count) {
296
+ $pinit_html .= ' data-pin-count="beside"';
297
+ } else {
298
+ $pinit_html .= ' data-pin-count="none"';
299
+ }
300
+
301
+ $pinit_html .= '></a>';
302
+
303
+ return $pinit_html;
304
+ }
305
+
306
+ /* add all external javascript to wp_footer */
307
+ function sfsi_plus_footer_script()
308
+ {
309
+ $sfsi_section1 = maybe_unserialize(get_option('sfsi_plus_section1_options', false));
310
+ $sfsi_section6 = maybe_unserialize(get_option('sfsi_plus_section6_options', false));
311
+ $sfsi_section8 = maybe_unserialize(get_option('sfsi_plus_section8_options', false));
312
+ $sfsi_section2 = maybe_unserialize(get_option('sfsi_plus_section2_options', false));
313
+
314
+ /* filter the content of post */
315
+ //commenting following code as we are going to extend this functionality
316
+ //add_filter('the_content', 'sfsi_plus_social_buttons_below');
317
+
318
+ $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
319
+
320
+ if (
321
+ isset($sfsi_plus_section5_options['sfsi_plus_icons_language']) &&
322
+ !empty($sfsi_plus_section5_options['sfsi_plus_icons_language'])
323
+ ) {
324
+ $icons_language = $sfsi_plus_section5_options['sfsi_plus_icons_language'];
325
+ } else {
326
+ $icons_language = "en_US";
327
+ }
328
+
329
+ if (!isset($sfsi_section8['sfsi_plus_rectsub'])) {
330
+ $sfsi_section8['sfsi_plus_rectsub'] = 'no';
331
+ }
332
+ if (!isset($sfsi_section8['sfsi_plus_rectfb'])) {
333
+ $sfsi_section8['sfsi_plus_rectfb'] = 'yes';
334
+ }
335
+ if (!isset($sfsi_section8['sfsi_plus_recttwtr'])) {
336
+ $sfsi_section8['sfsi_plus_recttwtr'] = 'no';
337
+ }
338
+ if (!isset($sfsi_section8['sfsi_plus_rectpinit'])) {
339
+ $sfsi_section8['sfsi_plus_rectpinit'] = 'no';
340
+ }
341
+
342
+ if (!isset($sfsi_section8['sfsi_plus_rectfbshare'])) {
343
+ $sfsi_section8['sfsi_plus_rectfbshare'] = 'no';
344
+ }
345
+ $common_options_check = (
346
+ ($sfsi_section8['sfsi_plus_show_via_widget'] == "yes") || ($sfsi_section8['sfsi_plus_float_on_page'] == "yes") || (isset($sfsi_section8['sfsi_plus_float_page_position']) && "yes" == $sfsi_section8['sfsi_plus_float_page_position']) || ($sfsi_section8['sfsi_plus_place_item_manually'] == "yes") || (isset($sfsi_section8['sfsi_plus_place_item_gutenberg']) && $sfsi_section8['sfsi_plus_place_item_gutenberg'] == "no") || (isset($sfsi_section8['sfsi_plus_show_item_onposts']) && "yes" == $sfsi_section8['sfsi_plus_show_item_onposts'] && (isset($sfsi_section8["sfsi_plus_display_button_type"])) && "normal_button" == $sfsi_section8["sfsi_plus_display_button_type"] && ($sfsi_section4["sfsi_plus_round_counts"] == "yes")));
347
+ if (
348
+ ($sfsi_section8['sfsi_plus_rectfb'] == "yes" &&
349
+ $sfsi_section8['sfsi_plus_show_item_onposts'] == "yes" &&
350
+ $sfsi_section8['sfsi_plus_display_button_type'] == "standard_buttons")
351
+ || ($sfsi_section1['sfsi_plus_facebook_display'] == "yes" && ($sfsi_section2['sfsi_plus_facebookLike_option'] == "yes") && $common_options_check)
352
+ ) { ?>
353
+ <!--facebook like and share js -->
354
+ <div id="fb-root"></div>
355
+
356
+ <script>
357
+ (function(d, s, id) {
358
+ var js, fjs = d.getElementsByTagName(s)[0];
359
+ if (d.getElementById(id)) return;
360
+ js = d.createElement(s);
361
+ js.id = id;
362
+ js.src = "//connect.facebook.net/<?php echo $icons_language; ?>/sdk.js#xfbml=1&version=v2.5";
363
+ fjs.parentNode.insertBefore(js, fjs);
364
+ }(document, 'script', 'facebook-jssdk'));
365
+ </script>
366
+ <?php
367
+ }
368
+ $isYoutubeFollowFeatureActive = ("yes" == $sfsi_section2['sfsi_plus_youtube_follow']) && (isset($sfsi_section2['sfsi_plus_youtubeusernameorid']) &&
369
+ !empty($sfsi_section2['sfsi_plus_youtubeusernameorid'])) && (
370
+ ("name" == $sfsi_section2['sfsi_plus_youtubeusernameorid'] &&
371
+ isset($sfsi_section2['sfsi_plus_ytube_user']) &&
372
+ !empty($sfsi_section2['sfsi_plus_ytube_user'])) || ("id" == $sfsi_section2['sfsi_plus_youtubeusernameorid'] &&
373
+ isset($sfsi_section2['sfsi_plus_ytube_chnlid']) &&
374
+ !empty($sfsi_section2['sfsi_plus_ytube_chnlid'])));
375
+ if (
376
+ ($sfsi_section1['sfsi_plus_youtube_display'] == "yes" && $isYoutubeFollowFeatureActive && $common_options_check)
377
+ ) { ?>
378
+ <!-- youtube share -->
379
+ <script type="text/javascript">
380
+ (function() {
381
+ var po = document.createElement('script');
382
+ po.type = 'text/javascript';
383
+ po.async = true;
384
+ po.src = 'https://apis.google.com/js/platform.js';
385
+ var s = document.getElementsByTagName('script')[0];
386
+ s.parentNode.insertBefore(po, s);
387
+ })();
388
+ </script>
389
+ <?php
390
+ }
391
+ $isLinkedInFollowFeatureActive = (isset($sfsi_section2['sfsi_plus_linkedin_follow']) && !empty($sfsi_section2['sfsi_plus_linkedin_follow']) && ("yes" == $sfsi_section2['sfsi_plus_linkedin_follow'])
392
+ && isset($sfsi_section2['sfsi_plus_linkedin_followCompany']) && !empty($sfsi_section2['sfsi_plus_linkedin_followCompany']));
393
+
394
+ $isLinkedInRecommnedFeatureActive = (isset($sfsi_section2['sfsi_plus_linkedin_recommendBusines']) && !empty($sfsi_section2['sfsi_plus_linkedin_recommendBusines']) && ("yes" == $sfsi_section2['sfsi_plus_linkedin_recommendBusines'])
395
+ && isset($sfsi_section2['sfsi_plus_linkedin_recommendProductId']) && !empty($sfsi_section2['sfsi_plus_linkedin_recommendProductId'])
396
+ && isset($sfsi_section2['sfsi_plus_linkedin_recommendCompany']) && !empty($sfsi_section2['sfsi_plus_linkedin_recommendCompany']));
397
+ if (
398
+ ($sfsi_section1['sfsi_plus_linkedin_display'] == "yes" && (($isLinkedInFollowFeatureActive || $isLinkedInRecommnedFeatureActive)) && $common_options_check)
399
+ ) {
400
+ if ($icons_language == 'ar_AR') {
401
+ $icons_language = 'ar_AE';
402
+ }
403
+ if ($common_options_check) {
404
+
405
+ ?>
406
+ <!-- linkedIn share and follow js -->
407
+ <script src="//platform.linkedin.com/in.js">
408
+ lang: <?php echo $icons_language; ?>
409
+ </script>
410
+ <?php
411
+ }
412
+ }
413
+ /* activate footer credit link */
414
+ if (get_option('sfsi_plus_footer_sec') == "yes") {
415
+ if (!is_admin()) {
416
+ //$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> ';
417
+ $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/?utm_source=usmplus_settings_page&utm_campaign=footer_credit_new&utm_medium=banner" target="_new">Social media & sharing icons </a> powered by UltimatelySocial';
418
+ $footer_link .= "</div>";
419
+ echo $footer_link;
420
+ }
421
+ }
422
+ }
423
+ /* filter the content of post */
424
+ //commenting following code as we are going to extend this functionality
425
+ //add_filter('the_content', 'sfsi_plus_social_buttons_below');
426
+
427
+ /* update footer for frontend and admin both */
428
+ if (!is_admin()) {
429
+ global $post;
430
+ add_action('wp_footer', 'sfsi_plus_footer_script');
431
+ if (!function_exists('sfsi_plus_check_PopUp')) {
432
+ include('sfsi_frontpopUp.php');
433
+ }
434
+ add_action('wp_footer', 'sfsi_plus_check_PopUp');
435
+ add_action('wp_footer', 'sfsi_plus_frontFloter');
436
+ }
437
+ if (is_admin()) {
438
+ add_action('in_admin_footer', 'sfsi_plus_footer_script');
439
+ }
440
+ /* ping to vendor site on updation of new post */
441
+
442
+ //<---------------------* Responsive icons *----------------->
443
+ function sfsi_plus_social_responsive_buttons($content, $option8, $server_side = false)
444
+ {
445
+
446
+ if ((isset($option8["sfsi_plus_show_item_onposts"]) && $option8["sfsi_plus_show_item_onposts"] == "yes" && isset($option8["sfsi_plus_display_button_type"]) && $option8["sfsi_plus_display_button_type"] == "responsive_button") || $server_side) :
447
+ $option2 = maybe_unserialize(get_option('sfsi_plus_section2_options', false));
448
+ $option4 = maybe_unserialize(get_option('sfsi_plus_section4_options', false));
449
+ $icons = "";
450
+ $sfsi_plus_responsive_icons = (isset($option8["sfsi_plus_responsive_icons"]) ? $option8["sfsi_plus_responsive_icons"] : null);
451
+
452
+ if (is_null($sfsi_plus_responsive_icons)) {
453
+ return ""; // dont return anything if options not set;
454
+ }
455
+ $icon_width_type = $sfsi_plus_responsive_icons["settings"]["icon_width_type"];
456
+ $sfsi_plus_margin_above = $sfsi_plus_responsive_icons["settings"]["margin_above"];
457
+ $sfsi_plus_margin_below = $sfsi_plus_responsive_icons["settings"]["margin_below"];
458
+ if ($option4['sfsi_plus_display_counts'] == 'yes' && $option4['sfsi_plus_responsive_share_count'] == "yes") :
459
+ $counter_class = "sfsi_plus_responsive_with_counter_icons";
460
+ $couter_display = "inline-block";
461
+
462
+ else :
463
+ $counter_class = "sfsi_plus_responsive_without_counter_icons";
464
+ $couter_display = "none";
465
+ endif;
466
+ $counts = sfsi_plus_getCounts(true);
467
+ $count = 0;
468
+ if (isset($counts['email_count'])) {
469
+ $count = (int) ($counts['email_count']) + $count;
470
+ }
471
+ if (isset($counts['fb_count'])) {
472
+ $count = (int) ($counts['fb_count']) + $count;
473
+ }
474
+ if (isset($counts['twitter_count'])) {
475
+ $count = (int) ($counts['twitter_count']) + $count;
476
+ } else {
477
+ $count = 0;
478
+ }
479
+ $icons .= "<div class='sfsi_plus_responsive_icons' style='display:inline-block;margin-top:" . $sfsi_plus_margin_above . "px; margin-bottom: " . $sfsi_plus_margin_below . "px; " . ($icon_width_type == "Fully Responsive" ? "width:100%;display:flex; " : 'width:100%') . "' data-icon-width-type='" . $icon_width_type . "' data-icon-width-size='" . $sfsi_plus_responsive_icons["settings"]['icon_width_size'] . "' data-edge-type='" . $sfsi_plus_responsive_icons["settings"]['edge_type'] . "' data-edge-radius='" . $sfsi_plus_responsive_icons["settings"]['edge_radius'] . "' >";
480
+ $sfsi_plus_anchor_div_style = "";
481
+ if ($sfsi_plus_responsive_icons["settings"]["edge_type"] === "Round") {
482
+ $sfsi_plus_anchor_div_style .= " border-radius:";
483
+ if ($sfsi_plus_responsive_icons["settings"]["edge_radius"] !== "") {
484
+ $sfsi_plus_anchor_div_style .= $sfsi_plus_responsive_icons["settings"]["edge_radius"] . 'px; ';
485
+ } else {
486
+ $sfsi_plus_anchor_div_style .= '0px; ';
487
+ }
488
+ }
489
+ ob_start(); ?>
490
+ <div class="sfsi_plus_responsive_icons_count sfsi_plus_<?php echo ($icon_width_type == "Fully responsive" ? 'responsive' : 'fixed'); ?>_count_container sfsi_plus_<?php echo strtolower($sfsi_plus_responsive_icons['settings']['icon_size']); ?>_button" style='display:<?php echo $couter_display; ?>;text-align:center; background-color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_bg_color']; ?>;color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color']; ?>; <?php echo $sfsi_plus_anchor_div_style; ?>;'>
491
+ <h3 style="color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color']; ?>; "><?php echo $count; ?></h3>
492
+ <h6 style="color:<?php echo $sfsi_plus_responsive_icons['settings']['counter_color']; ?>;"><?php echo $sfsi_plus_responsive_icons['settings']["share_count_text"]; ?></h6>
493
+ </div>
494
+ <?php
495
+ $icons .= ob_get_contents();
496
+ ob_end_clean();
497
+ $icons .= "\t<div class='sfsi_plus_icons_container " . $counter_class . " sfsi_plus_" . strtolower($sfsi_plus_responsive_icons['settings']['icon_size']) . "_button_container sfsi_plus_icons_container_box_" . ($icon_width_type !== "Fixed icon width" ? "fully" : 'fixed') . "_container ' style='" . ($icon_width_type !== "Fixed icon width" ? "width:100%;display:flex; " : 'width:auto') . "; text-align:center;' >";
498
+ $socialObj = new sfsi_plus_SocialHelper();
499
+ //styles
500
+ $sfsi_plus_anchor_style = "";
501
+ if ($sfsi_plus_responsive_icons["settings"]["text_align"] == "Centered") {
502
+ $sfsi_plus_anchor_style .= 'text-align:center;';
503
+ }
504
+ if ($sfsi_plus_responsive_icons["settings"]["margin"] !== "") {
505
+ $sfsi_plus_anchor_style .= 'margin-left:' . $sfsi_plus_responsive_icons["settings"]["margin"] . "px; ";
506
+ // $sfsi_plus_anchor_style.='margin-bottom:'.$sfsi_plus_responsive_icons["settings"]["margin"]."px; ";
507
+ }
508
+ //styles
509
+
510
+ if ($sfsi_plus_responsive_icons['settings']['icon_width_type'] === "Fixed icon width") {
511
+ $sfsi_plus_anchor_div_style .= 'width:' . $sfsi_plus_responsive_icons['settings']['icon_width_size'] . 'px;';
512
+ } else {
513
+ $sfsi_plus_anchor_style .= " flex-basis:100%;";
514
+ $sfsi_plus_anchor_div_style .= " width:100%;";
515
+ }
516
+ // var_dump($sfsi_plus_anchor_style,$sfsi_plus_anchor_div_style);
517
+ foreach ($sfsi_plus_responsive_icons['default_icons'] as $icon => $icon_config) {
518
+ // var_dump($icon_config, $icon);
519
+ // $current_url = $socialObj->sfsi_get_custom_share_link(strtolower($icon));
520
+ switch ($icon) {
521
+ case "facebook":
522
+ $share_url = "https://www.facebook.com/sharer/sharer.php?u=" . get_permalink();
523
+ break;
524
+ case "Twitter":
525
+ $twitter_text = $share_url = "https://twitter.com/intent/tweet?text=" . get_the_title() . "&url=" . get_permalink();
526
+ break;
527
+ case "Follow":
528
+ if (isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'sf') {
529
+ $share_url = (isset($option2['sfsi_plus_email_url']))
530
+ ? $option2['sfsi_plus_email_url']
531
+ : 'https://follow.it/now';
532
+ } elseif (isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'contact') {
533
+ $share_url = (isset($option2['sfsi_plus_email_icons_contact']) && !empty($option2['sfsi_plus_email_icons_contact']))
534
+ ? "mailto:" . $option2['sfsi_plus_email_icons_contact']
535
+ : 'https://follow.it/now';
536
+ } elseif (isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'page') {
537
+ $share_url = (isset($option2['sfsi_plus_email_icons_pageurl']) && !empty($option2['sfsi_plus_email_icons_pageurl']))
538
+ ? $option2['sfsi_plus_email_icons_pageurl']
539
+ : 'https://follow.it/now';
540
+ } elseif (isset($option2['sfsi_plus_email_icons_functions']) && $option2['sfsi_plus_email_icons_functions'] == 'share_email') {
541
+ $subject = stripslashes($option2['sfsi_plus_email_icons_subject_line']);
542
+ $subject = str_replace('${title}', $socialObj->sfsi_get_the_title(), $subject);
543
+ $subject = str_replace('"', '', str_replace("'", '', $subject));
544
+ $subject = html_entity_decode(strip_tags($subject), ENT_QUOTES, 'UTF-8');
545
+ $subject = str_replace("%26%238230%3B", "...", $subject);
546
+ $subject = rawurlencode($subject);
547
+
548
+ $body = stripslashes($option2['sfsi_plus_email_icons_email_content']);
549
+ $body = str_replace('${title}', $socialObj->sfsi_get_the_title(), $body);
550
+ $body = str_replace('${link}', trailingslashit($socialObj->sfsi_get_custom_share_link('email')), $body);
551
+ $body = str_replace('"', '', str_replace("'", '', $body));
552
+ $body = html_entity_decode(strip_tags($body), ENT_QUOTES, 'UTF-8');
553
+ $body = str_replace("%26%238230%3B", "...", $body);
554
+ $body = rawurlencode($body);
555
+ $share_url = "mailto:?subject=$subject&body=$body";
556
+ } else {
557
+ $share_url = (isset($option2['sfsi_plus_email_url']))
558
+ ? $option2['sfsi_plus_email_url']
559
+ : 'https://follow.it/now';
560
+ }
561
+ }
562
+ $icons .= "\t\t" . "<a " . sfsi_plus_checkNewWindow() . " href='" . ($icon_config['url'] == "" ? $share_url : do_shortcode($icon_config['url'])) . "' style='" . ($icon_config['active'] == 'yes' ? ($sfsi_plus_responsive_icons['settings']['icon_width_type'] === "Fixed icon width" ? 'display:inline-flex' : 'display:block') : 'display:none') . ";" . $sfsi_plus_anchor_style . "' class=" . ($sfsi_plus_responsive_icons['settings']['icon_width_type'] === "Fixed icon width" ? 'sfsi_plus_responsive_fixed_width' : 'sfsi_plus_responsive_fluid') . " >" . "\n";
563
+ $icons .= "\t\t\t<div class='sfsi_plus_responsive_icon_item_container sfsi_plus_responsive_icon_" . strtolower($icon) . "_container sfsi_plus_" . strtolower($sfsi_plus_responsive_icons['settings']['icon_size']) . "_button " . ($sfsi_plus_responsive_icons['settings']['style'] == "Gradient" ? 'sfsi_plus_responsive_icon_gradient' : '') . (" sfsi_plus_" . (strtolower($sfsi_plus_responsive_icons['settings']['text_align']) == "centered" ? 'centered' : 'left-align') . "_icon") . "' style='" . $sfsi_plus_anchor_div_style . " ' >" . "\n";
564
+ $icons .= "\t\t\t\t<img style='max-height: 25px;display:unset;margin:0' class='sfsi_plus_wicon' src='" . SFSI_PLUS_PLUGURL . "images/responsive-icon/" . $icon . ('Follow' === $icon ? '.png' : '.svg') . "'>" . "\n";
565
+ $icons .= "\t\t\t\t<span style='color:#fff' >" . ($icon_config["text"]) . "</span>" . "\n";
566
+ $icons .= "\t\t\t</div>" . "\n";
567
+ $icons .= "\t\t</a>" . "\n\n";
568
+ }
569
+ $icons .= "</div></div><!--end responsive_icons-->";
570
+ return $icons;
571
+ endif;
572
+ }
 
 
 
libs/sfsi_Init_JqueryCss.php CHANGED
@@ -110,7 +110,6 @@ function sfsiplus_plugin_front_enqueue_script()
110
  }
111
 
112
  $option1 = maybe_unserialize(get_option("sfsi_plus_section1_options",false));
113
- $option2 = maybe_unserialize(get_option("sfsi_plus_section2_options",false));
114
 
115
  if(isset($option1["sfsi_plus_wechat_display"]) && $option1["sfsi_plus_wechat_display"]=="yes"){
116
  wp_register_script('SFSIPLUSqrcode.js', SFSI_PLUS_PLUGURL . 'js/qrcode.min.js', '', '', true);
@@ -125,5 +124,4 @@ function sfsiplus_plugin_front_enqueue_script()
125
  wp_localize_script( 'SFSIPLUSCustomJs', 'sfsi_plus_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ),'plugin_url'=> SFSI_PLUS_PLUGURL,'rest_url'=>(function_exists('get_rest_url')?get_rest_url():'')) );
126
  wp_localize_script( 'SFSIPLUSCustomJs', 'sfsi_plus_links', array( 'admin_url' => admin_url('/'),'plugin_dir_url'=> SFSI_PLUS_PLUGURL,'rest_url'=>(function_exists('get_rest_url')?get_rest_url():''),'pretty_perma'=>(get_option('permalink_structure')==""?'no':'yes')) );
127
  }
128
- add_action( 'wp_enqueue_scripts', 'sfsiplus_plugin_front_enqueue_script' );
129
- ?>
110
  }
111
 
112
  $option1 = maybe_unserialize(get_option("sfsi_plus_section1_options",false));
 
113
 
114
  if(isset($option1["sfsi_plus_wechat_display"]) && $option1["sfsi_plus_wechat_display"]=="yes"){
115
  wp_register_script('SFSIPLUSqrcode.js', SFSI_PLUS_PLUGURL . 'js/qrcode.min.js', '', '', true);
124
  wp_localize_script( 'SFSIPLUSCustomJs', 'sfsi_plus_ajax_object', array( 'ajax_url' => admin_url( 'admin-ajax.php' ),'plugin_url'=> SFSI_PLUS_PLUGURL,'rest_url'=>(function_exists('get_rest_url')?get_rest_url():'')) );
125
  wp_localize_script( 'SFSIPLUSCustomJs', 'sfsi_plus_links', array( 'admin_url' => admin_url('/'),'plugin_dir_url'=> SFSI_PLUS_PLUGURL,'rest_url'=>(function_exists('get_rest_url')?get_rest_url():''),'pretty_perma'=>(get_option('permalink_structure')==""?'no':'yes')) );
126
  }
127
+ add_action( 'wp_enqueue_scripts', 'sfsiplus_plugin_front_enqueue_script' );
 
libs/sfsi_ajax_social_sharing_settings_updater.php CHANGED
@@ -11,5 +11,4 @@ function sfsi_plus_update_sharing_settings() {
11
  update_option('sfsi_plus_section5_options',serialize($option5));
12
  echo true;
13
  wp_die(); // this is required to terminate immediately and return a proper response
14
- }
15
- ?>
11
  update_option('sfsi_plus_section5_options',serialize($option5));
12
  echo true;
13
  wp_die(); // this is required to terminate immediately and return a proper response
14
+ }
 
libs/sfsi_custom_social_sharing_data.php CHANGED
@@ -2,162 +2,176 @@
2
 
3
  function sfsi_plus_social_media_metabox($post)
4
  { ?>
5
- <style>
6
- .sfsi_new_prmium_follw p {
7
- width: 90%;
8
- color: #1a1d20 !important;
9
- font-size: 17px !important;
10
- font-family: helveticaregular !important;
11
- }
12
- .sfsi_new_prmium_follw {
13
- width: 97%;
14
- margin-top: 8px;
15
- display: inline-block;
16
- background: #f3faf6;
17
- border: 1px solid #12a252;
18
- padding: 0px 25px 0px 15px;
19
- height: 63px;
20
- clear: both;
21
- position: relative;
22
- }
23
- .sfsi_new_prmium_sharing p a {
24
- color: #12a252 !important;
25
- border-bottom: 1px solid #12a252;
26
- text-decoration: none;
27
- }
28
- .sfsi_new_prmium_follw p b {
29
- font-weight: bold;
30
- color: #1a1d20 !important;
31
- }
32
- .sfsi_hidenotice{
33
- cursor: pointer;
34
- float: right;
35
- position: absolute;
36
- right: 10px;
37
- top: 21px;
38
- color: grey;
39
- font-size: 13px;
40
- }
41
- .sfsi-post-tooltip {
42
- /* display: block!important; */
43
- position: fixed;
44
- /*top: 100px;*/
45
- /*left: 100px;*/
46
- background: white;
47
- min-width: 100px;
48
- padding: 20px;
49
- border: 1px solid #ddd;
50
- border-radius: 10px;
51
- z-index: 99999;
52
- }
53
- .sfsi-port-meta-backdrop {
54
- position: absolute;
55
- top: 0;
56
- left: 0;
57
- width: 100%;
58
- height: 100%;
59
- }
60
- </style>
61
- <script type="text/javascript">
62
- // window.addEventListener('sfsi_functions_loaded',function(){ //cause this is not fired in post page and only fired in our plugin page
63
- jQuery(document).ready(() => {
64
- jQuery('.sfsi_hidenotice').on('click', function() {
65
- var data = {
66
- action: "update_sharing_settings",
67
- sfsi_custom_social_hide: "yes",
68
- nonce: '<?php echo wp_create_nonce('update_sharing_settings') ?>'
69
- };
70
- jQuery.post(ajaxurl, data, function(response) {
71
- if (response) {
72
- alert('Settings updated');
73
- jQuery('#sfsi-social-media').remove();
74
- }
75
- });
76
- });
77
- const sfsi_post_meta_wrapper = jQuery(".sfsi-post-meta-wrapper");
78
- const sfsi_post_meta_tooltip = jQuery(".sfsi-post-tooltip");
79
- sfsi_post_meta_wrapper.on('mouseenter', (mouseEvent) => {
80
- var sfsi_post_meta_wrapper_cur = jQuery(mouseEvent.target).parents(".sfsi-post-meta-wrapper");
81
- console.log(sfsi_post_meta_wrapper_cur[0]);
82
- var boundary_dimentions = sfsi_post_meta_wrapper_cur[0].getBoundingClientRect();
83
- console.log(boundary_dimentions, boundary_dimentions.width, boundary_dimentions.left);
84
- if (mouseEvent) {
85
- //FireFox
86
- ypos = mouseEvent.screenY;
87
- } else {
88
- //IE
89
- ypos = window.event.screenY;
90
  }
91
- // console.log(xpos,ypos);
92
- sfsi_post_meta_tooltip.css("top", ypos - 120)
93
- sfsi_post_meta_tooltip.show();
94
- jQuery(".sfsi-port-meta-backdrop").show();
95
- sfsi_post_meta_tooltip.css(
96
- "left",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
97
  (
98
- boundary_dimentions.left +
99
- (
100
- boundary_dimentions.width / 2
101
- ) -
102
- (
103
- sfsi_post_meta_tooltip.width() / 2
104
- )
105
  )
106
- );
107
- });
108
- sfsi_post_meta_wrapper.on('mouseleave', () => {
109
- console.log("hidden");
110
- jQuery(".sfsi-port-meta-backdrop").hide();
111
- sfsi_post_meta_tooltip.hide();
112
- });
113
- // createPopper(sfsi_post_meta_wrapper, sfsi_post_meta_tooltip, {
114
- // // options
115
- // });
116
  });
117
- </script>
 
 
 
 
118
 
119
  <div class="sfsi-post-meta-wrapper">
120
  <div class="social_data_container_first">
121
 
122
  <!--********************************** Image for Social Networks (Facebook, LinkedIn & Twitter) STARTS ***********************************************-->
123
-
124
  <div class="sfsi_custom_social_data_container">
125
-
126
- <div class="imgTopTxt"><?php _e('<strong>Picture </strong>(for social media sharing)', SFSI_PLUS_DOMAIN); ?>
 
 
 
 
 
 
127
  </div>
128
 
129
  <div class="imgContainer imgpicker">
130
-
131
- <img src="<?php echo esc_url(SFSI_PLUS_PLUGURL . "images/no-image.jpg"); ?>" />
 
 
132
  </div>
133
- <div class="imgUploadBtn"><input readonly disable type="button" class="button sfsi-post-meta-btn" value="Add Picture" /></div>
134
  </div>
135
 
136
  <!--********************************** Image for Social Networks (Facebook, LinkedIn & Twitter) CLOSES ***********************************************-->
137
-
138
-
139
  <div class="sfsi_custom_social_titlePlusDescription">
140
-
141
  <div class="sfsi_titlePlusDescription">
142
 
143
  <!--********************************** TITLE for Social Networks (Facebook, LinkedIn & Twitter) STARTS ***********************************************-->
144
-
145
  <div class="sfsi_custom_social_data_title">
146
-
147
  <div class="imgTopTxt">
148
- <?php _e('<strong>Title </strong>(leave blank to use the post title)', SFSI_PLUS_DOMAIN); ?></div>
 
 
 
 
 
 
 
149
 
150
- <div class="social_title"><textarea readonly name="social_fbGLTw_title_textarea" class="sfsi_textarea" maxlength="95"></textarea>
 
151
  </div>
152
 
153
  <div class="social_description">
154
  <div style="padding-right: 15px;">
155
- <?php _e('This title will be used when shared on Facebook, Linkedin and WhatsApp. Leave it blank to use the post title. [Developers: this is used by the open graph meta tag «og:title»]', SFSI_PLUS_DOMAIN); ?>
156
  </div>
157
  </div>
158
 
159
  <div class="remaining_char_box" class="sfsi-remaining_char_title">
160
- <?php _e('<span id="sfsi_title_remaining_char">95</span> Characters Remaining', SFSI_PLUS_DOMAIN); ?>
 
 
 
 
 
161
  </div>
162
 
163
  </div>
@@ -169,7 +183,13 @@ function sfsi_plus_social_media_metabox($post)
169
  <div class="sfsi_custom_social_data_description">
170
 
171
  <div class="imgTopTxt">
172
- <?php _e('<strong>Description </strong>(leave blank to use the post exerpt)', SFSI_PLUS_DOMAIN); ?>
 
 
 
 
 
 
173
  </div>
174
 
175
  <div class="social_description_container"><textarea name="social_fbGLTw_description_textarea" readonly class="sfsi_textarea" maxlength="297"></textarea>
@@ -177,17 +197,18 @@ function sfsi_plus_social_media_metabox($post)
177
 
178
  <div class="social_description_hint">
179
  <div style="padding-right: 15px;">
180
- <?php _e('This description will be used when shared on Facebook, Linkedin, Twitter and WhatsApp (if you use ‘Twitter cards’). Leave it blank to use the post excerpt. [Developers: this is used by the open graph meta tag «og:description»]', SFSI_PLUS_DOMAIN); ?>
181
  </div>
182
  </div>
183
 
184
  <div class="remaining_char_box">
185
- <?php _e('<span id="sfsi_desc_remaining_char">297</span> Characters Remaining', SFSI_PLUS_DOMAIN); ?>
186
- </div>
187
-
188
- <?php //sfsi_social_image_issues_support_link();
 
189
  ?>
190
-
191
  </div>
192
 
193
  <!--********************************** DESCRIPTION for Social Networks (Facebook, LinkedIn & Twitter) CLOSES ***********************************************-->
@@ -201,20 +222,14 @@ function sfsi_plus_social_media_metabox($post)
201
 
202
  <div class="sfsi_custom_social_data_container">
203
 
204
- <div class="imgTopTxt"><?php _e('<strong>Pinterest image </strong>', SFSI_PLUS_DOMAIN); ?></div>
205
-
206
  <div class="imgContainer imgpicker">
207
-
208
- <img src="<?php echo esc_url(SFSI_PLUS_PLUGURL . "images/no-image.jpg"); ?>" />
209
-
210
- <?php
211
-
212
- $uploadBtnTitle = 'Add Picture';
213
- ?>
214
-
215
  </div>
216
 
217
- <div class="imgUploadBtn"><input readonly disable type="button" disable class="button sfsi-post-meta-btn" value="<?php _e($uploadBtnTitle, SFSI_PLUS_DOMAIN); ?>" /></div>
 
 
218
  </div>
219
 
220
  <!--********************************** Image for PINTEREST CLOSES ***********************************************-->
@@ -226,14 +241,22 @@ function sfsi_plus_social_media_metabox($post)
226
  <!--********************************** DESCRIPTION for PINTEREST STARTS ***********************************************-->
227
  <div class="sfsi_custom_social_data_title">
228
  <div class="imgTopTxt">
229
- <?php _e('<strong>Pinterest description </strong>(leave blank to use the post title)', SFSI_PLUS_DOMAIN); ?>
 
 
 
 
 
 
230
  </div>
231
 
232
- <div class="social_title"><textarea readonly name="social_pinterest_description_textarea" class="sfsi_textarea"></textarea></div>
 
 
233
 
234
  <div class="social_description">
235
  <div style="padding-right: 15px;">
236
- <?php _e('This description will be used when this post is shared on Pinterest. Leave it blank to use the post title.', SFSI_PLUS_DOMAIN); ?>
237
  </div>
238
  </div>
239
  </div>
@@ -243,22 +266,24 @@ function sfsi_plus_social_media_metabox($post)
243
 
244
  <div class="sfsi_custom_social_data_description">
245
 
246
- <div class="imgTopTxt"><?php _e('<strong>Tweet </strong>', SFSI_PLUS_DOMAIN); ?></div>
247
 
248
- <div class="social_description_container"><textarea name="social_twitter_description_textarea" readonly class="sfsi_textarea" maxlength="106"></textarea>
 
249
  </div>
250
 
251
  <div class="social_description_hint">
252
- <?php _e('This will be used as tweet-text (the link which get shared will be automatically the added at the end). If you don’t enter anything here the tweet text will be used which you defined globally under question 6 on the plugin’s settings page. ', SFSI_PLUS_DOMAIN); ?>
253
  </div>
254
 
255
  <div class="remaining_char_box" id="remaining_twiter_char_description">
256
- <?php _e('<span id="sfsi_twitter_desc_remaining_char">106</span> Characters Remaining', SFSI_PLUS_DOMAIN); ?>
257
- </div>
258
-
259
- <?php //sfsi_social_image_issues_support_link();
 
260
  ?>
261
-
262
  </div>
263
 
264
  <!--********************************** TITLE for Twitter CLOSES ***********************************************-->
@@ -267,24 +292,31 @@ function sfsi_plus_social_media_metabox($post)
267
  </div>
268
  <div class="sfsi-port-meta-backdrop" style='display:none'></div>
269
  <div style='display:none; background: rgb(221, 221, 221);' class="sfsi-post-tooltip">
270
- <span style="font-family: helvetica-light; font-size: 17px;">Available in premium – </span>
271
- <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_post_or_page&utm_campaign=usm_sharing_texts_and_images_section&utm_medium=banner" class="font-italic text-success" style="color: #28a745!important;font-family: helvetica-light;font-size: 17px;">click to learn more</a>
272
  </div>
273
  </div>
274
  <?php }
275
 
 
276
 
277
- function sfsi_plus_icons_add_meta_boxes()
278
- {
279
- $screen = get_current_screen();
280
- $option5 = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
281
- $hideSectionVal = (isset($option5['sfsi_plus_custom_social_hide'])) ? $option5['sfsi_plus_custom_social_hide'] : 'no';
282
 
283
  if ($hideSectionVal == 'no') {
284
- if (isset($screen->post_type) && ('page' == $screen->post_type || 'post' == $screen->post_type)) {
285
- add_meta_box('sfsi-plus-social-media', 'Ultimate Social Media – Define which pictures & texts will get shared', 'sfsi_plus_social_media_metabox', $screen->post_type, 'normal', 'low');
 
 
 
 
 
 
 
 
 
 
286
  }
287
  }
288
  }
289
- add_action('add_meta_boxes', 'sfsi_plus_icons_add_meta_boxes');
290
- ?>
2
 
3
  function sfsi_plus_social_media_metabox($post)
4
  { ?>
5
+ <style>
6
+ .sfsi_new_prmium_follw p {
7
+ width: 90%;
8
+ color: #1a1d20 !important;
9
+ font-size: 17px !important;
10
+ font-family: helveticaregular !important;
11
+ }
12
+ .sfsi_new_prmium_follw {
13
+ width: 97%;
14
+ margin-top: 8px;
15
+ display: inline-block;
16
+ background: #f3faf6;
17
+ border: 1px solid #12a252;
18
+ padding: 0px 25px 0px 15px;
19
+ height: 63px;
20
+ clear: both;
21
+ position: relative;
22
+ }
23
+ .sfsi_new_prmium_sharing p a {
24
+ color: #12a252 !important;
25
+ border-bottom: 1px solid #12a252;
26
+ text-decoration: none;
27
+ }
28
+ .sfsi_new_prmium_follw p b {
29
+ font-weight: bold;
30
+ color: #1a1d20 !important;
31
+ }
32
+ .sfsi_hidenotice{
33
+ cursor: pointer;
34
+ float: right;
35
+ position: absolute;
36
+ right: 10px;
37
+ top: 21px;
38
+ color: grey;
39
+ font-size: 13px;
40
+ }
41
+ .sfsi-post-tooltip {
42
+ /* display: block!important; */
43
+ position: fixed;
44
+ /*top: 100px;*/
45
+ /*left: 100px;*/
46
+ background: white;
47
+ min-width: 100px;
48
+ padding: 20px;
49
+ border: 1px solid #ddd;
50
+ border-radius: 10px;
51
+ z-index: 99999;
52
+ }
53
+ .sfsi-port-meta-backdrop {
54
+ position: absolute;
55
+ top: 0;
56
+ left: 0;
57
+ width: 100%;
58
+ height: 100%;
59
+ }
60
+ </style>
61
+ <script type="text/javascript">
62
+ // window.addEventListener('sfsi_functions_loaded',function(){ //cause this is not fired in post page and only fired in our plugin page
63
+ jQuery(document).ready(() => {
64
+ jQuery('.sfsi_hidenotice').on('click', function() {
65
+ var data = {
66
+ action: "update_sharing_settings",
67
+ sfsi_custom_social_hide: "yes",
68
+ nonce: '<?php echo wp_create_nonce('update_sharing_settings') ?>'
69
+ };
70
+ jQuery.post(ajaxurl, data, function(response) {
71
+ if (response) {
72
+ alert('Settings updated');
73
+ jQuery('#sfsi-social-media').remove();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  }
75
+ });
76
+ });
77
+ const sfsi_post_meta_wrapper = jQuery(".sfsi-post-meta-wrapper");
78
+ const sfsi_post_meta_tooltip = jQuery(".sfsi-post-tooltip");
79
+ sfsi_post_meta_wrapper.on('mouseenter', (mouseEvent) => {
80
+ var sfsi_post_meta_wrapper_cur = jQuery(mouseEvent.target).parents(".sfsi-post-meta-wrapper");
81
+ console.log(sfsi_post_meta_wrapper_cur[0]);
82
+ var boundary_dimentions = sfsi_post_meta_wrapper_cur[0].getBoundingClientRect();
83
+ console.log(boundary_dimentions, boundary_dimentions.width, boundary_dimentions.left);
84
+ if (mouseEvent) {
85
+ //FireFox
86
+ ypos = mouseEvent.screenY;
87
+ } else {
88
+ //IE
89
+ ypos = window.event.screenY;
90
+ }
91
+ // console.log(xpos,ypos);
92
+ sfsi_post_meta_tooltip.css("top", ypos - 120);
93
+ sfsi_post_meta_tooltip.show();
94
+ jQuery(".sfsi-port-meta-backdrop").show();
95
+ sfsi_post_meta_tooltip.css(
96
+ "left",
97
+ (
98
+ boundary_dimentions.left +
99
  (
100
+ boundary_dimentions.width / 2
101
+ ) -
102
+ (
103
+ sfsi_post_meta_tooltip.width() / 2
 
 
 
104
  )
105
+ )
106
+ );
107
+ });
108
+ sfsi_post_meta_wrapper.on('mouseleave', () => {
109
+ console.log("hidden");
110
+ jQuery(".sfsi-port-meta-backdrop").hide();
111
+ sfsi_post_meta_tooltip.hide();
 
 
 
112
  });
113
+ // createPopper(sfsi_post_meta_wrapper, sfsi_post_meta_tooltip, {
114
+ // // options
115
+ // });
116
+ });
117
+ </script>
118
 
119
  <div class="sfsi-post-meta-wrapper">
120
  <div class="social_data_container_first">
121
 
122
  <!--********************************** Image for Social Networks (Facebook, LinkedIn & Twitter) STARTS ***********************************************-->
 
123
  <div class="sfsi_custom_social_data_container">
124
+ <div class="imgTopTxt">
125
+ <?php
126
+ printf(
127
+ __( '%1$sPicture%2$s (for social media sharing)', SFSI_PLUS_DOMAIN ),
128
+ '<strong>',
129
+ '</strong>'
130
+ );
131
+ ?>
132
  </div>
133
 
134
  <div class="imgContainer imgpicker">
135
+ <img src="<?php echo esc_url( SFSI_PLUS_PLUGURL . "images/no-image.jpg" ); ?>" />
136
+ </div>
137
+ <div class="imgUploadBtn">
138
+ <input readonly disable type="button" class="button sfsi-post-meta-btn" value="<?php _e( 'Add Picture', SFSI_PLUS_DOMAIN ); ?>" />
139
  </div>
 
140
  </div>
141
 
142
  <!--********************************** Image for Social Networks (Facebook, LinkedIn & Twitter) CLOSES ***********************************************-->
 
 
143
  <div class="sfsi_custom_social_titlePlusDescription">
 
144
  <div class="sfsi_titlePlusDescription">
145
 
146
  <!--********************************** TITLE for Social Networks (Facebook, LinkedIn & Twitter) STARTS ***********************************************-->
 
147
  <div class="sfsi_custom_social_data_title">
 
148
  <div class="imgTopTxt">
149
+ <?php
150
+ printf(
151
+ __( '%1$sTitle%2$s (leave blank to use the post title)', SFSI_PLUS_DOMAIN ),
152
+ '<strong>',
153
+ '</strong>'
154
+ );
155
+ ?>
156
+ </div>
157
 
158
+ <div class="social_title">
159
+ <textarea readonly name="social_fbGLTw_title_textarea" class="sfsi_textarea" maxlength="95"></textarea>
160
  </div>
161
 
162
  <div class="social_description">
163
  <div style="padding-right: 15px;">
164
+ <?php _e( 'This title will be used when shared on Facebook, Linkedin and WhatsApp. Leave it blank to use the post title. [Developers: this is used by the open graph meta tag «og:title»]', SFSI_PLUS_DOMAIN ); ?>
165
  </div>
166
  </div>
167
 
168
  <div class="remaining_char_box" class="sfsi-remaining_char_title">
169
+ <?php
170
+ printf(
171
+ __( '%s Characters Remaining', SFSI_PLUS_DOMAIN ),
172
+ '<span id="sfsi_title_remaining_char">95</span>'
173
+ );
174
+ ?>
175
  </div>
176
 
177
  </div>
183
  <div class="sfsi_custom_social_data_description">
184
 
185
  <div class="imgTopTxt">
186
+ <?php
187
+ printf(
188
+ __( '%1$sDescription%2$s (leave blank to use the post exerpt)', SFSI_PLUS_DOMAIN ),
189
+ '<strong>',
190
+ '</strong>'
191
+ );
192
+ ?>
193
  </div>
194
 
195
  <div class="social_description_container"><textarea name="social_fbGLTw_description_textarea" readonly class="sfsi_textarea" maxlength="297"></textarea>
197
 
198
  <div class="social_description_hint">
199
  <div style="padding-right: 15px;">
200
+ <?php _e( 'This description will be used when shared on Facebook, Linkedin, Twitter and WhatsApp (if you use ‘Twitter cards’). Leave it blank to use the post excerpt. [Developers: this is used by the open graph meta tag «og:description»]', SFSI_PLUS_DOMAIN ); ?>
201
  </div>
202
  </div>
203
 
204
  <div class="remaining_char_box">
205
+ <?php
206
+ printf(
207
+ __( '%s Characters Remaining', SFSI_PLUS_DOMAIN ),
208
+ '<span id="sfsi_desc_remaining_char">297</span>'
209
+ );
210
  ?>
211
+ </div>
212
  </div>
213
 
214
  <!--********************************** DESCRIPTION for Social Networks (Facebook, LinkedIn & Twitter) CLOSES ***********************************************-->
222
 
223
  <div class="sfsi_custom_social_data_container">
224
 
225
+ <div class="imgTopTxt"><strong><?php _e( 'Pinterest image', SFSI_PLUS_DOMAIN ); ?></strong></div>
 
226
  <div class="imgContainer imgpicker">
227
+ <img src="<?php echo esc_url( SFSI_PLUS_PLUGURL . "images/no-image.jpg" ); ?>" />
 
 
 
 
 
 
 
228
  </div>
229
 
230
+ <div class="imgUploadBtn">
231
+ <input readonly disable type="button" disable class="button sfsi-post-meta-btn" value="<?php _e( 'Add Picture', SFSI_PLUS_DOMAIN ); ?>" />
232
+ </div>
233
  </div>
234
 
235
  <!--********************************** Image for PINTEREST CLOSES ***********************************************-->
241
  <!--********************************** DESCRIPTION for PINTEREST STARTS ***********************************************-->
242
  <div class="sfsi_custom_social_data_title">
243
  <div class="imgTopTxt">
244
+ <?php
245
+ printf(
246
+ __( '%1$sPinterest description%2$s (leave blank to use the post title)', SFSI_PLUS_DOMAIN ),
247
+ '<strong>',
248
+ '</strong>'
249
+ );
250
+ ?>
251
  </div>
252
 
253
+ <div class="social_title">
254
+ <textarea readonly name="social_pinterest_description_textarea" class="sfsi_textarea"></textarea>
255
+ </div>
256
 
257
  <div class="social_description">
258
  <div style="padding-right: 15px;">
259
+ <?php _e( 'This description will be used when this post is shared on Pinterest. Leave it blank to use the post title.', SFSI_PLUS_DOMAIN ); ?>
260
  </div>
261
  </div>
262
  </div>
266
 
267
  <div class="sfsi_custom_social_data_description">
268
 
269
+ <div class="imgTopTxt"><strong><?php _e( 'Tweet', SFSI_PLUS_DOMAIN ); ?></strong></div>
270
 
271
+ <div class="social_description_container">
272
+ <textarea name="social_twitter_description_textarea" readonly class="sfsi_textarea" maxlength="106"></textarea>
273
  </div>
274
 
275
  <div class="social_description_hint">
276
+ <?php _e( 'This will be used as tweet-text (the link which get shared will be automatically the added at the end). If you don’t enter anything here the tweet text will be used which you defined globally under question 6 on the plugin’s settings page. ', SFSI_PLUS_DOMAIN ); ?>
277
  </div>
278
 
279
  <div class="remaining_char_box" id="remaining_twiter_char_description">
280
+ <?php
281
+ printf(
282
+ __( '%s Characters Remaining', SFSI_PLUS_DOMAIN ),
283
+ '<span id="sfsi_twitter_desc_remaining_char">106</span>'
284
+ );
285
  ?>
286
+ </div>
287
  </div>
288
 
289
  <!--********************************** TITLE for Twitter CLOSES ***********************************************-->
292
  </div>
293
  <div class="sfsi-port-meta-backdrop" style='display:none'></div>
294
  <div style='display:none; background: rgb(221, 221, 221);' class="sfsi-post-tooltip">
295
+ <span style="font-family: helvetica-light; font-size: 17px;"><?php _e( 'Available in premium – ', SFSI_PLUS_DOMAIN ); ?></span>
296
+ <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_post_or_page&utm_campaign=usm_sharing_texts_and_images_section&utm_medium=banner" class="font-italic text-success" style="color: #28a745!important;font-family: helvetica-light;font-size: 17px;"><?php _e( 'click to learn more', SFSI_PLUS_DOMAIN ); ?></a>
297
  </div>
298
  </div>
299
  <?php }
300
 
301
+ function sfsi_plus_icons_add_meta_boxes( $post_type ) {
302
 
303
+ $option5 = maybe_unserialize( get_option( 'sfsi_plus_section5_options', false ) );
304
+ $hideSectionVal = ( isset( $option5['sfsi_plus_custom_social_hide'] ) ) ? $option5['sfsi_plus_custom_social_hide'] : 'no';
 
 
 
305
 
306
  if ($hideSectionVal == 'no') {
307
+ // Limit meta box to certain post types.
308
+ $post_types = array( 'post', 'page' );
309
+
310
+ if ( in_array( $post_type, $post_types ) ) {
311
+ add_meta_box(
312
+ 'sfsi-plus-social-media',
313
+ __( 'Ultimate Social Media – Define which pictures & texts will get shared', SFSI_PLUS_DOMAIN ),
314
+ 'sfsi_plus_social_media_metabox',
315
+ $post_type,
316
+ 'normal',
317
+ 'low'
318
+ );
319
  }
320
  }
321
  }
322
+ add_action( 'add_meta_boxes', 'sfsi_plus_icons_add_meta_boxes' );
 
libs/sfsi_gutenberg_block.php CHANGED
@@ -36,7 +36,7 @@ function sfsi_plus_share_block_editor_assets() {
36
  '1'
37
  // filemtime( plugin_dir_path( 'css/editor.css', __FILE__ ) )
38
  );
39
- wp_localize_script( 'sfsi-plus-share-block', 'plugin_url',plugins_url( 'icons_theme', __FILE__ ) );
40
  }
41
  function sfsi_plus_share_block_assets() {
42
  wp_enqueue_style(
@@ -107,7 +107,7 @@ function sfsi_plus_render_shortcode(){
107
  function sfsi_plus_render_gutenberg_round($args = null, $content = null,$share_url=null, $is_admin = null){
108
  $instance = array("showf" => 1, "title" => '');
109
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
110
- $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
111
  $sfsi_plus_place_item_gutenberg = isset($sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg'])?$sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg']:'no';
112
  if($sfsi_plus_place_item_gutenberg == "yes")
113
  {
@@ -143,7 +143,7 @@ function sfsi_plus_render_gutenberg_rectangle($args = null, $content = null,$sha
143
  $share_url=home_url();
144
  }
145
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
146
- $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
147
  $sfsi_plus_place_item_gutenberg = isset($sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg'])?$sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg']:'no';
148
  if($sfsi_plus_place_item_gutenberg == "yes")
149
  {
@@ -293,5 +293,4 @@ function sfsi_plus_gutenberg_share_block_init(){
293
  }
294
  }
295
 
296
- add_action( 'init','sfsi_plus_gutenberg_share_block_init' );
297
- ?>
36
  '1'
37
  // filemtime( plugin_dir_path( 'css/editor.css', __FILE__ ) )
38
  );
39
+ wp_localize_script( 'sfsi-plus-share-block', 'plugin_url', array( plugins_url( 'icons_theme', __FILE__ ) ) );
40
  }
41
  function sfsi_plus_share_block_assets() {
42
  wp_enqueue_style(
107
  function sfsi_plus_render_gutenberg_round($args = null, $content = null,$share_url=null, $is_admin = null){
108
  $instance = array("showf" => 1, "title" => '');
109
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
110
+ $sfsi_plus_section8_options = maybe_unserialize($sfsi_plus_section8_options);
111
  $sfsi_plus_place_item_gutenberg = isset($sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg'])?$sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg']:'no';
112
  if($sfsi_plus_place_item_gutenberg == "yes")
113
  {
143
  $share_url=home_url();
144
  }
145
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
146
+ $sfsi_plus_section8_options = maybe_unserialize($sfsi_plus_section8_options);
147
  $sfsi_plus_place_item_gutenberg = isset($sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg'])?$sfsi_plus_section8_options['sfsi_plus_place_item_gutenberg']:'no';
148
  if($sfsi_plus_place_item_gutenberg == "yes")
149
  {
293
  }
294
  }
295
 
296
+ add_action( 'init','sfsi_plus_gutenberg_share_block_init' );
 
libs/sfsi_install_uninstall.php CHANGED
@@ -1454,28 +1454,28 @@ function sfsi_plus_check_wp_footer() {
1454
  }
1455
  }
1456
  /* admin notice for first time installation */
1457
- function sfsi_plus_activation_msg()
1458
- {
1459
- global $wp_version;
1460
 
1461
- if(get_option('sfsi_plus_activate',false)==1)
1462
- {
1463
- echo "<div class='updated'><p>".__("Thank you for installing the Ultimate Social Media PLUS plugin. Please go to the plugin's settings page to configure it: ",SFSI_PLUS_DOMAIN)."<b><a href='admin.php?page=sfsi-plus-options'>".__("Click here",SFSI_PLUS_DOMAIN)."</a></b></p></div>";
1464
- update_option('sfsi_plus_activate',0);
 
 
 
 
 
 
 
 
1465
  }
1466
 
1467
- $path=pathinfo($_SERVER['REQUEST_URI']);
1468
- update_option('sfsi_plus_activate',0);
1469
 
1470
- if($wp_version < 3.5 && $path['basename'] == "admin.php?page=sfsi-plus-options")
1471
- {
1472
- 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', SFSI_PLUS_DOMAIN)."</b></p></div>";
1473
- }
1474
  }
1475
  /* admin notice for first time installation */
1476
- function sfsi_plus_rating_msg()
1477
- {
1478
- global $wp_version;
1479
  $install_date = get_option('sfsi_plus_installDate');
1480
  $display_date = date('Y-m-d h:i:s');
1481
  $datetime1 = new DateTime($install_date);
@@ -1604,6 +1604,4 @@ function sfsi_plus_was_displaying_addthis(){
1604
  unset($sfsi_plus_section8['sfsi_plus_rectshr']);
1605
  update_option('sfsi_plus_section8_options', serialize($sfsi_plus_section8) );
1606
  }
1607
- }
1608
-
1609
- ?>
1454
  }
1455
  }
1456
  /* admin notice for first time installation */
1457
+ function sfsi_plus_activation_msg() {
 
 
1458
 
1459
+ $path = pathinfo( $_SERVER['REQUEST_URI'] );
1460
+ $sfsi_plus_activate = get_option( 'sfsi_plus_activate', false );
1461
+ if ( $sfsi_plus_activate == 1 && $path['basename'] !== "admin.php?page=sfsi-plus-options" ) {
1462
+ echo '<div class="updated"><p>';
1463
+ echo sprintf(
1464
+ __( 'Thank you for installing the %1$sUltimate Social Media PLUS%2$s Plugin. Please go to the %3$splugin\'s settings page%4$s to configure it.', 'ultimate-social-media-icons' ),
1465
+ '<b>',
1466
+ '</b>',
1467
+ '<a href="'.admin_url( 'admin.php?page=sfsi-plus-options' ).'">',
1468
+ '</a>'
1469
+ );
1470
+ echo '</p></div>';
1471
  }
1472
 
1473
+ update_option( 'sfsi_plus_activate', 0 );
 
1474
 
 
 
 
 
1475
  }
1476
  /* admin notice for first time installation */
1477
+ function sfsi_plus_rating_msg() {
1478
+
 
1479
  $install_date = get_option('sfsi_plus_installDate');
1480
  $display_date = date('Y-m-d h:i:s');
1481
  $datetime1 = new DateTime($install_date);
1604
  unset($sfsi_plus_section8['sfsi_plus_rectshr']);
1605
  update_option('sfsi_plus_section8_options', serialize($sfsi_plus_section8) );
1606
  }
1607
+ }
 
 
libs/sfsi_plus_subscribe_widget.php CHANGED
@@ -260,9 +260,8 @@ function sfsiPlus_subscriber_load_widget()
260
  add_action('widgets_init', 'sfsiPlus_subscriber_load_widget');
261
  ?>
262
  <?php
263
- add_shortcode("USM_plus_form", "sfsi_plus_get_subscriberForm");
264
- function sfsi_plus_get_subscriberForm()
265
- {
266
  $option9 = maybe_unserialize(get_option('sfsi_plus_section9_options', false));
267
  $sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
268
  if ($sfsi_plus_feediid == "") {
@@ -273,18 +272,16 @@ function sfsi_plus_get_subscriberForm()
273
  }
274
  $return = '';
275
  $return .= '<div class="sfsi_plus_subscribe_Popinner">
276
- <form method="post" onsubmit="return sfsi_plus_processfurther(this);" target="popupwindow" action="' . $url . '">
277
- <h5>' . __(trim($option9['sfsi_plus_form_heading_text']), SFSI_PLUS_DOMAIN) . '</h5>
278
-
279
- <div class="sfsi_plus_subscription_form_field">
280
- <input type="hidden" name="action" value="followPub">
281
- <input type="email" name="email" value="" placeholder="' . trim($option9['sfsi_plus_form_field_text']) . '"/>
282
- </div>
283
- <div class="sfsi_plus_subscription_form_field">
284
- <input type="submit" name="subscribe" value="' . __($option9['sfsi_plus_form_button_text'], SFSI_PLUS_DOMAIN) . '" />
285
- </div>
286
- </form>
287
- </div>';
288
  return $return;
289
- }
290
- ?>
260
  add_action('widgets_init', 'sfsiPlus_subscriber_load_widget');
261
  ?>
262
  <?php
263
+ add_shortcode( "USM_plus_form", "sfsi_plus_get_subscriberForm" );
264
+ function sfsi_plus_get_subscriberForm() {
 
265
  $option9 = maybe_unserialize(get_option('sfsi_plus_section9_options', false));
266
  $sfsi_plus_feediid = sanitize_text_field(get_option('sfsi_plus_feed_id'));
267
  if ($sfsi_plus_feediid == "") {
272
  }
273
  $return = '';
274
  $return .= '<div class="sfsi_plus_subscribe_Popinner">
275
+ <form method="post" onsubmit="return sfsi_plus_processfurther(this);" target="popupwindow" action="' . $url . '">
276
+ <h5>'.trim( $option9['sfsi_plus_form_heading_text'] ).'</h5>
277
+ <div class="sfsi_plus_subscription_form_field">
278
+ <input type="hidden" name="action" value="followPub">
279
+ <input type="email" name="email" value="" placeholder="' . trim( $option9['sfsi_plus_form_field_text'] ) . '" />
280
+ </div>
281
+ <div class="sfsi_plus_subscription_form_field">
282
+ <input type="submit" name="subscribe" value="' . esc_attr( $option9['sfsi_plus_form_button_text'] ) . '" />
283
+ </div>
284
+ </form>
285
+ </div>';
 
286
  return $return;
287
+ }
 
libs/sfsi_widget.php CHANGED
@@ -29,7 +29,7 @@ class Sfsi_Plus_Widget extends WP_Widget
29
  $after_widget = isset($args["after_widget"]) ? $args["after_widget"] : '';
30
  //if show via widget is checked
31
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
32
- $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
33
  $sfsi_plus_show_via_widget = $sfsi_plus_section8_options['sfsi_plus_show_via_widget'];
34
  if ($sfsi_plus_show_via_widget == "yes") {
35
  /*Our variables from the widget settings. */
@@ -43,13 +43,13 @@ class Sfsi_Plus_Widget extends WP_Widget
43
  <div class="sfsi_plus_widget" data-position="widget">
44
  <div id='sfsi_plus_wDiv'></div>
45
  <?php
46
- /* Link the main icons function */
47
- echo sfsi_plus_check_visiblity(0);
48
- ?>
49
  <div style="clear: both;"></div>
50
  </div>
51
  <?php
52
- if (is_active_widget(false, false, $this->id_base, true)) { }
53
  echo $after_widget;
54
  } else {
55
  //echo 'Kindly go to setting page and check the option "show them via a widget"';
@@ -182,24 +182,24 @@ class Sfsi_Plus_Widget extends WP_Widget
182
  $position .= "position:absolute;right:30px;top:35px;";
183
  $top = "35";
184
  } else {
185
- $position .= "position:absolute;right:10px;top:2%";
186
  $top = "10";
187
  }
188
  break;
189
  case "center-right":
190
- $position .= "position:absolute;right:30px;top:50%";
191
  $top = "center";
192
  break;
193
  case "center-left":
194
- $position .= "position:absolute;left:30px;top:50%";
195
  $top = "center";
196
  break;
197
  case "bottom-right":
198
- $position .= "position:absolute;right:30px;bottom:0px";
199
  $top = "bottom";
200
  break;
201
  case "bottom-left":
202
- $position .= "position:absolute;left:30px;bottom:0px";
203
  $top = "bottom";
204
  break;
205
  case "center-top":
@@ -212,7 +212,7 @@ class Sfsi_Plus_Widget extends WP_Widget
212
  }
213
  break;
214
  case "center-bottom":
215
- $position .= "left:50%;bottom:0px";
216
  $top = "bottom";
217
  break;
218
  }
@@ -244,11 +244,11 @@ class Sfsi_Plus_Widget extends WP_Widget
244
  }
245
 
246
  /* magnage the icons in saved order in admin */
247
- $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
248
  $icons_list = array();
249
  if (isset($sfsi_plus_section1_options['sfsi_custom_files'])) {
250
  if (is_string($sfsi_plus_section1_options['sfsi_custom_files'])) {
251
- $icons_list = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
252
  } else {
253
  $icons_list = $sfsi_plus_section1_options['sfsi_custom_files'];
254
  }
@@ -275,7 +275,7 @@ class Sfsi_Plus_Widget extends WP_Widget
275
  $sfsi_plus_section5_options['sfsi_plus_whatsappIcon_order'] = 27;
276
  }
277
 
278
- // $icons_list = (isset($sfsi_plus_section1_options['sfsi_custom_files']))?(!is_string($sfsi_plus_section1_options['sfsi_custom_files'])?unserialize($sfsi_plus_section1_options['sfsi_custom_files'],false):$sfsi_plus_section1_options['sfsi_custom_files']):(array());
279
  $icons_order = array(
280
  '0' => '',
281
  $sfsi_section5['sfsi_plus_rssIcon_order'] => 'rss',
@@ -1346,12 +1346,12 @@ class Sfsi_Plus_Widget extends WP_Widget
1346
  //$border_radius="border-radius: 38%;";
1347
  }
1348
 
1349
- $custom_icon_urls = isset($sfsi_plus_section2_options['sfsi_plus_CustomIcon_links']) && "" !== $sfsi_plus_section2_options['sfsi_plus_CustomIcon_links'] ? unserialize($sfsi_plus_section2_options['sfsi_plus_CustomIcon_links']) : array();
1350
  $url = (isset($custom_icon_urls[$icon_n]) && !empty($custom_icon_urls[$icon_n])) ? $custom_icon_urls[$icon_n] : 'javascript:void(0);';
1351
  $toolClass = "custom_lkn";
1352
  $arsfsiplus_row_class = "";
1353
- $custom_icons_hoverTxt = unserialize($sfsi_plus_section5_options['sfsi_plus_custom_MouseOverTexts']);
1354
- $icons = isset($sfsi_plus_section1_options['sfsi_custom_files']) && "" !== $sfsi_plus_section1_options['sfsi_custom_files'] ? unserialize($sfsi_plus_section1_options['sfsi_custom_files']) : array();
1355
  // var_dump($icons,$custom_icon_urls,$icon_n,$sfsi_plus_section2_options);die();
1356
  $icon = $icons[$icon_n];
1357
 
@@ -1482,8 +1482,8 @@ class Sfsi_Plus_Widget extends WP_Widget
1482
 
1483
 
1484
  /* magnage the icons in saved order in admin */
1485
- $custom_icons_order = unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
1486
- $icons = unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
1487
  $icons_order = array(
1488
  '0' => '',
1489
  $sfsi_section5['sfsi_plus_rssIcon_order'] => 'rss',
@@ -1654,36 +1654,29 @@ class Sfsi_Plus_Widget extends WP_Widget
1654
  return $icons_data;
1655
  }
1656
 
1657
- // MZ CODE
1658
-
1659
-
1660
- function sfsi_plus_get_icon_mouseover_text($icon_name)
1661
- {
1662
 
1663
- $alt_text = '';
1664
 
1665
- if (isset($icon_name) && !empty($icon_name)) {
1666
 
1667
- $icon_name = strtolower($icon_name);
1668
 
1669
- $key = 'sfsi_plus_' . $icon_name . '_MouseOverText';
1670
 
1671
- $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
1672
 
1673
- if (isset($sfsi_plus_section5_options[$key]) && !empty($sfsi_plus_section5_options[$key])) {
1674
- $alt_text = $sfsi_plus_section5_options[$key];
1675
- }
1676
  }
1677
-
1678
- return $alt_text;
1679
  }
1680
 
 
 
1681
 
 
1682
 
1683
- //MZ CODE END
1684
-
1685
- function isMobileDevice()
1686
- {
1687
- return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
1688
- }
1689
- ?>
29
  $after_widget = isset($args["after_widget"]) ? $args["after_widget"] : '';
30
  //if show via widget is checked
31
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
32
+ $sfsi_plus_section8_options = maybe_unserialize($sfsi_plus_section8_options);
33
  $sfsi_plus_show_via_widget = $sfsi_plus_section8_options['sfsi_plus_show_via_widget'];
34
  if ($sfsi_plus_show_via_widget == "yes") {
35
  /*Our variables from the widget settings. */
43
  <div class="sfsi_plus_widget" data-position="widget">
44
  <div id='sfsi_plus_wDiv'></div>
45
  <?php
46
+ /* Link the main icons function */
47
+ echo sfsi_plus_check_visiblity(0);
48
+ ?>
49
  <div style="clear: both;"></div>
50
  </div>
51
  <?php
52
+ if (is_active_widget(false, false, $this->id_base, true)) { }
53
  echo $after_widget;
54
  } else {
55
  //echo 'Kindly go to setting page and check the option "show them via a widget"';
182
  $position .= "position:absolute;right:30px;top:35px;";
183
  $top = "35";
184
  } else {
185
+ $position .= "position:absolute;right:10px;top:2%;";
186
  $top = "10";
187
  }
188
  break;
189
  case "center-right":
190
+ $position .= "position:absolute;right:30px;top:50%;";
191
  $top = "center";
192
  break;
193
  case "center-left":
194
+ $position .= "position:absolute;left:30px;top:50%;";
195
  $top = "center";
196
  break;
197
  case "bottom-right":
198
+ $position .= "position:absolute;right:30px;bottom:0px;";
199
  $top = "bottom";
200
  break;
201
  case "bottom-left":
202
+ $position .= "position:absolute;left:30px;bottom:0px;";
203
  $top = "bottom";
204
  break;
205
  case "center-top":
212
  }
213
  break;
214
  case "center-bottom":
215
+ $position .= "left:50%;bottom:0px;";
216
  $top = "bottom";
217
  break;
218
  }
244
  }
245
 
246
  /* magnage the icons in saved order in admin */
247
+ $custom_icons_order = maybe_unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
248
  $icons_list = array();
249
  if (isset($sfsi_plus_section1_options['sfsi_custom_files'])) {
250
  if (is_string($sfsi_plus_section1_options['sfsi_custom_files'])) {
251
+ $icons_list = maybe_unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
252
  } else {
253
  $icons_list = $sfsi_plus_section1_options['sfsi_custom_files'];
254
  }
275
  $sfsi_plus_section5_options['sfsi_plus_whatsappIcon_order'] = 27;
276
  }
277
 
278
+ // $icons_list = (isset($sfsi_plus_section1_options['sfsi_custom_files']))?(!is_string($sfsi_plus_section1_options['sfsi_custom_files'])?maybe_unserialize($sfsi_plus_section1_options['sfsi_custom_files'],false):$sfsi_plus_section1_options['sfsi_custom_files']):(array());
279
  $icons_order = array(
280
  '0' => '',
281
  $sfsi_section5['sfsi_plus_rssIcon_order'] => 'rss',
1346
  //$border_radius="border-radius: 38%;";
1347
  }
1348
 
1349
+ $custom_icon_urls = isset($sfsi_plus_section2_options['sfsi_plus_CustomIcon_links']) && "" !== $sfsi_plus_section2_options['sfsi_plus_CustomIcon_links'] ? maybe_unserialize($sfsi_plus_section2_options['sfsi_plus_CustomIcon_links']) : array();
1350
  $url = (isset($custom_icon_urls[$icon_n]) && !empty($custom_icon_urls[$icon_n])) ? $custom_icon_urls[$icon_n] : 'javascript:void(0);';
1351
  $toolClass = "custom_lkn";
1352
  $arsfsiplus_row_class = "";
1353
+ $custom_icons_hoverTxt = maybe_unserialize($sfsi_plus_section5_options['sfsi_plus_custom_MouseOverTexts']);
1354
+ $icons = isset($sfsi_plus_section1_options['sfsi_custom_files']) && "" !== $sfsi_plus_section1_options['sfsi_custom_files'] ? maybe_unserialize($sfsi_plus_section1_options['sfsi_custom_files']) : array();
1355
  // var_dump($icons,$custom_icon_urls,$icon_n,$sfsi_plus_section2_options);die();
1356
  $icon = $icons[$icon_n];
1357
 
1482
 
1483
 
1484
  /* magnage the icons in saved order in admin */
1485
+ $custom_icons_order = maybe_unserialize($sfsi_section5['sfsi_plus_CustomIcons_order']);
1486
+ $icons = maybe_unserialize($sfsi_plus_section1_options['sfsi_custom_files']);
1487
  $icons_order = array(
1488
  '0' => '',
1489
  $sfsi_section5['sfsi_plus_rssIcon_order'] => 'rss',
1654
  return $icons_data;
1655
  }
1656
 
1657
+ // MZ CODE
1658
+ function sfsi_plus_get_icon_mouseover_text($icon_name) {
 
 
 
1659
 
1660
+ $alt_text = '';
1661
 
1662
+ if ( isset( $icon_name ) && !empty( $icon_name ) ) {
1663
 
1664
+ $icon_name = strtolower( $icon_name );
1665
 
1666
+ $key = 'sfsi_plus_' . $icon_name . '_MouseOverText';
1667
 
1668
+ $sfsi_plus_section5_options = maybe_unserialize(get_option('sfsi_plus_section5_options', false));
1669
 
1670
+ if (isset($sfsi_plus_section5_options[$key]) && !empty($sfsi_plus_section5_options[$key])) {
1671
+ $alt_text = $sfsi_plus_section5_options[$key];
 
1672
  }
 
 
1673
  }
1674
 
1675
+ return $alt_text;
1676
+ }
1677
 
1678
+ //MZ CODE END
1679
 
1680
+ function isMobileDevice() {
1681
+ return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
1682
+ }
 
 
 
 
readme.txt CHANGED
@@ -1,882 +1,887 @@
1
- === Social Share Icons & Social Share Buttons ===
2
- Contributors: socialsharepro, socialtech
3
- Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
- Requires at least: 3.0
5
- Tested up to: 5.8
6
- Stable tag: 3.4.9
7
- License: GPLv2
8
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
-
10
- Social sharing plugin adding social buttons.
11
-
12
- == Description ==
13
-
14
- **Try before you use it: [https://tastewp.com/new/?pre-installed-plugin-slug=ultimate-social-media-plus](https://tastewp.com/new/?pre-installed-plugin-slug=ultimate-social-media-plus)**
15
-
16
- Add social share icons on your website with just a few clicks.
17
-
18
- The plugin can be customized to suit any need and is FREE. It also has been **translated into various languages**.
19
-
20
- Feature list:
21
-
22
- - Numerous **social share platforms** (see a list of them below)
23
- - Many placement options **before or after posts, floating over your website's pages, via widget, via shortcode,** (top right, bottom left etc.)
24
- - The possibility to give **several actions to one social share button** (e.g. your Facebook icon can lead visitors to your Facebook page, and also show a Facebook button to share your page on social media)
25
- - **16 design styles** for your social share buttons
26
- - **Animated** social share buttons (e.g. automatic shuffling, mouse-over effects)
27
- - Social **pop-up** - ask people to follow or share you
28
- - **Subscription service** - allow visitors to subscribe to your site and receive new posts automatically by email
29
- - Share counts
30
- - **Rearrange Order** of social share icons
31
- - **Lots of other customization options** for your social share buttons
32
- - Compatible with Gutenberg editor
33
-
34
- List of platforms supported in the free plugin:
35
-
36
- * Facebook share icon
37
- * Twitter share icon
38
- * Email icon
39
- * RSS icon
40
- * Instagram share icon
41
- * Youtube share icon
42
- * Pinterest share icon
43
- * LinkedIn share icon
44
- * Houzz share icon
45
- * OK icon
46
- * Telegram icon
47
- * VK icon
48
- * WeChat icon
49
- * Weibo icon
50
- * Share icon (allows your visitors to share your site on over 200+ other social media sites; powered by addthis/sharethis)
51
-
52
- If there are any important social share networks not covered yet, please let us know!
53
-
54
- For GDPR compliance, please have a look at our [Social Media GDPR Compliance page](https://ultimatelysocial.com/gdpr/).
55
-
56
- In case of issues or questions please ask in the [Support forum] (https://wordpress.org/support/plugin/ultimate-social-media-plus).
57
-
58
- = Premium Plugin =
59
-
60
- The free plugin already provides tons of options for social sharing (as outlined above). In our Premium Plugin, even more is possible. Some examples for additional features in the Premium Plugin:
61
-
62
- * More social share buttons (the icon pack includes an Instagram button, Snapchat button, Yummly button, Print button, Whatsapp button, Yelp button, Soundcloud button, Skype button, Flickr button, Share button, Blogger button, Digg button, Reddit button, Vimeo button, Tumblr button, Xing button, vk button, Telegram button, Amazon button, Spotify button and many more badge, see list above)
63
- * More (default) design styles for your social share icons
64
- * Themed design styles for your social share buttons (e.g. if you have a site about cats, you can pick from cat-themed buttons etc.)
65
- * Better sharing & following features (tailored tweet texts, allow people to follow you directly on your page etc.)
66
- * Place the social share icons on specific pages
67
- * Optimized for mobile sharing and buton display
68
- * More functions for email icon to connect with you
69
- * More lightbox / popup options (e.g. limit how often the popup is shown to the same user)
70
- * (Friendly and fast) Support
71
- * Many more settings & options
72
-
73
- 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.
74
-
75
- == Installation ==
76
- 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.
77
-
78
- Then go to plugin settings page and answer the first 3 questions. That's it.
79
-
80
- Note: This plugin requires CURL to be activated/installed on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
81
-
82
- == Frequently Asked Questions ==
83
-
84
- = Please also check the more comprehensive FAQ on http://ultimatelysocial.com/faq =
85
-
86
- We will try to keep this FAQ section up-to-date, but please note that the latest version of the FAQ might be only available at http://ultimatelysocial.com/faq
87
-
88
- = I face fundamental issues (the plugin doesn't load, social share buttons don't show etc.) =
89
-
90
- Please ensure that:
91
-
92
- - You're using the latest version of the plugin(s)
93
- - Your site is running on PHP 5.4 or above
94
- - You have CURL activated (should be activated by default)
95
-
96
- If you're not familiar with those please contact your hosting company or server admin.
97
-
98
- Please check if you have browser extensions activated which may conflict with the social share buttons. Known culprits include:
99
-
100
- - Open SEO Stats (Formerly: PageRank Status) in Chrome
101
- - Adblock Plus in Chrome
102
- - Vine in Chrome
103
-
104
- Either de-activate those extensions or try it in a different browser.
105
-
106
- If the plugin setting's area looks 'funny' after an upgrade then please clear your cache with String+F5 (PC) or Command+R (Mac).
107
-
108
- If you get the error message “Are you sure you want to do this? / Please try again” when uploading the plugin: Some servers may have a low limits with respect to permitted upload times. Please set the values in the “php.ini” file to:
109
-
110
- max_execution_time 90
111
- post_max_size 48M
112
-
113
- If you don’t know how to do it, please contact your server support / hosting company for that. Tell them you need it for a sharing plugin on WordPress which may take longer to upload as many socialsharing buttons are included in it (larger file size).
114
-
115
- If your issue is still not fixed after you’ve followed the steps above, we can provide support as part of our new share to social Premium Plugin: https://www.ultimatelysocial.com/usm-premium/.
116
-
117
- = I get error messages 'Error : 7', 'Error : 56', 'Error : 6' etc. =
118
-
119
- Those point to a CURL-issue on your site. Please contact your server admin or your hosting company to resolve it.
120
-
121
- The plugin requires CURL for the social share counts and other features.
122
-
123
- = Social share buttons don't show =
124
-
125
- Please ensure you actually placed the social share buttons either as social widget (in your widget area) or as floating icons under question 5). The Premium Plugin makes placing sharing buttons especially easy and also allows you to place sticky buttons on your site, define the placement of the share buttons by margins and many other options, see https://www.ultimatelysocial.com/usm-premium/.
126
-
127
- If only some social share buttons show, but not all, then please clear your cache, and check if you may have conflicting browser extensions (e.g. 'Disconnect'-app in Chrome). Also Ad-Blockers are known culprits, please switch them off temporarily to see if that is the reason.
128
-
129
- If the social share buttons still don't show then there's an issue with your template. Please contact the creator of your template for that.
130
-
131
- If you are referring to specific social share buttons not showing in the plugin itself (e.g. you're looking for a Whatsapp icon, but it doesnt exist) please note that our Premium Plugin has many more social media share buttons, see https://www.ultimatelysocial.com/usm-premium/
132
-
133
- = Twitter share counters are not displaying (anymore) =
134
-
135
- Unfortunately, Twitter stopped providing any social share counter. God knows why.
136
-
137
- = Changes don't get saved / Deleted plugin but sharing buttons still show =
138
-
139
- Most likely you have the WP Cache plugin installed. Please de-activate and then re-activate it.
140
-
141
- = Links don't work =
142
-
143
- Please ensure you've entered the 'http://' at the beginning of the url (for *all* social networks). If the share buttons are not clickable at all there is most likely an issue with your template. This is especially the case if you've given your social share buttons several features, which should show a pop-up (tooltip) when you move over the share buttons.
144
-
145
- = I cannot upload social custom buttons =
146
-
147
- Most likely that's because you've set 'allow_url_fopen' to 'off'. Please turn it to 'on' (or ask your server admin to do so, he'll know what to do. Tell them you need it to upload custom buttons for a social media buttons plugin which are not included yet).
148
-
149
- = My Youtube button (direct follow) doesn't work =
150
-
151
- Please ensure that you've selected the radio button 'Username' when you enter a youtube username, or 'Channel ID' when you entered a channel ID.
152
-
153
- = Aligning the social share buttons (centered, left- or right-aligned) doesn't work =
154
-
155
- The alignment options under question 5 align the sharing icons with respect to each other, not where they appear on the page. Our new Premium Plugin is the best social sharing plugin on the market, allowing you to define also many other button alignments (e.g. within a widget, within shortcode etc.).
156
-
157
- = Clicking on the RSS button returns funny codes =
158
-
159
- That's normal. RSS users will know what to do with it (i.e. copy & paste the url into their RSS readers).
160
-
161
- = Facebook 'like'-count isn't correct =
162
-
163
- When you 'like' something on your blog via facebook it likes the site you're currently on (e.g. your blog) and not your Facebook page.
164
-
165
- The new Premium Plugin also allows to show the number of your Facebook page likes, see https://www.ultimatelysocial.com/usm-premium/.
166
-
167
- = Sharing doesn't take the right text or picture =
168
-
169
- We use the codes from Facebook, Google+ etc. and therefore don't have any influence over which text & pic is used for sharing.
170
-
171
- Note that you can define an image as 'Featured Image' which tells Facebok / Google etc. to share that one. You'll find this 'Featured Image' section in your blog's admin area where you can edit your blog post.
172
-
173
- You can crosscheck which image Facebook will share by entring your url on https://developers.facebook.com/tools/debug/og/object/.
174
-
175
- = The pop-up shows although I only gave my social share button one share function =
176
-
177
- The pop-up only disappears if you've given your sharing buttons only a 'visit us'-function, otherwise (e.g. if you gave it 'Like' (on facebook) or 'Tweet' functions or sharing functions) a pop-up is still needed because the share buttons for those are coming directly from the social media sites (e.g. Facebook, Twitter) and we don't have any influence over their design.
178
-
179
- = I selected to display the social sharing buttons after every post but they don't show =
180
-
181
- The social sharing buttons usually do show, however not on your blog page, but on your single posts pages. The Premium plugin (https://www.ultimatelysocial.com/usm-premium/) also allows to display the share buttons on your homepage.
182
-
183
- = Plugin decreases my site's loading speed =
184
-
185
- The plugin is one of the most optimized social media plugin in terms of impact on a site's loading speed (optimized code, compressed pictures etc.).
186
-
187
- If you still experience loading speed issues, please note that:
188
-
189
- - The more social sharing bottons and invite features you place on your site, the more external codes you load (i.e. from the social media sites; we just use their code), therefore impacting loading speed. So to prevent this, give your sharing buttons only 'Visit us'-functionality rather than sharing functionalities.
190
-
191
- - We've programed it so that the code for the social media buttons is the one which loads lasts on your site, i.e. after all the other content has already been loaded. This means: even if there is a decrease in loading speed, it does not impact a user's experience because he sees your site as quickly as before, only the social media buttons take a bit longer to load.
192
-
193
- There might be also other issues on your site which cause a high loading speed (e.g. conflicts with our plugins or template issues). Please ask your template creator about that.
194
-
195
- Also, if you've uploaded social media sharing buttons not provided by the plugin itself (i.e. custom buttons) please ensure they are compressd as well.
196
-
197
- = After moving from demo-server to live-server the follow or subscribe link doesn't work anymore =
198
-
199
- Please delete and install the plugin again.
200
-
201
- If you already placed the code for a subscription form on your site, remove it again and take the new one from the new plugin installation.
202
-
203
- = When I try to like or share via Facebook, I get error message 'App Not Setup: This app is still...' =
204
-
205
- If you get the error message...
206
-
207
- 'App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.'
208
-
209
- ...then most likely you're curently logged in with a business account on Facebook. Please logout, or switch to your personal account.
210
-
211
- = There are other issues when I activate the plugin or place the share buttons =
212
-
213
- Please check the following:
214
-
215
- The plugin requires that CURL is instaled & activated on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
216
-
217
- Please ensure that you don't have any browser extension activated which may conflict with the plugin, esp. those which block certain content including the share buttons. Known culprits include the 'Disconnect' extension in Chrome or the 'Privacy Badger' extension in Firefox.
218
-
219
- If issues persist most likely your theme has issues which makes it incompatible with our plugin. Please contact your template creator for that. As part of the Premium Plugin (https://www.ultimatelysocial.com/usm-premium/) we fix also theme issues, and provide support to ensure that your social media share buttons appear on your site (exactly where you want them).
220
-
221
- = How can I see how many people share or like my posts? =
222
-
223
- You can see this by activating the sharnig 'counts' on the front end (under question 5 in the plugin). This will display the counters in little bubbles showing how often people share your posts.
224
-
225
- We cannot provide you this data in other ways as it's coming directly from the social media sites. One exception: if you like to know when people start to follow you by email, then you can get email alerts. For that, please claim your feed.
226
-
227
- = How can I change the 'Please follow & like us :)'? =
228
-
229
- You can change it in the Widget-area where you dropped the widget with the sharing buttons on the sidebar. Please click on it (on the sidebar), it will open the menu where you can change the text.
230
-
231
- If you don't want to show any text, just enter a space (' ').
232
-
233
- = How can I remove the credit-link ('Powered by Ultimatelysocial')? =
234
-
235
- Please note that we didn't place the credit link without your consent (you agreed to it when de-selecting the email button).
236
-
237
- Open the first question in the plugin ('1. Which sharing buttons do you want to show on your site?'), on the level of the email button you see a link on the right hand side. Please click it to remove the credit link.
238
-
239
- = Can I use a shortcode to place the share buttons? =
240
-
241
- Yes, it's [DISPLAY_ULTIMATE_SOCIAL_ICONS]. You can place it into any editor. If the sharing buttons still don't show, there might be an issue with your theme.
242
-
243
- Alternatively, you can place the followin into your codes: <?php echo do_shortcode('[DISPLAY_ULTIMATE_SOCIAL_ICONS]'); ?>
244
-
245
- In some cases there might be issues to display social media sharing buttons which you uploaded as custom buttons. In this case, we provide support as part of our premium plugin: https://www.ultimatelysocial.com/usm-premium/
246
-
247
- = Can I get more options for the social share buttons next to posts? =
248
-
249
- Please use this plugin for that: https://www.ultimatelysocial.com/usm-premium/. This allows you to place more share buttons (e.g. including Linkedin) as well as giving you more configuration options.
250
-
251
- = Can I also give the email button a 'mailto:' functionality? =
252
-
253
- Yes, that is possible in our new social share plugin, the Premium Plugin: https://www.ultimatelysocial.com/usm-premium/
254
-
255
- To get the email button in the same design style you picked, activate it, then on the front-end, rightclick on the button, and save it as picture. Upload that picture as custom button.
256
-
257
- = Can I also display the share buttons vertically? =
258
-
259
- Yes, that is possible in our new social sharing plugin, the Premium Plugn: https://www.ultimatelysocial.com/usm-premium/.
260
-
261
- = How can I change the text on the 'visit us'-buttons? =
262
-
263
- Use this plugin: https://www.ultimatelysocial.com/usm-premium/
264
-
265
- = Can I deactivate the social sharing buttons on mobile? =
266
-
267
- Yes, there's an option for that under question 5. In our new Premium Plugin you can define different settings of the share buttons for mobile, see https://www.ultimatelysocial.com/usm-premium/. The best way to share social media! :)
268
-
269
- = How can I use two instances of the plugin on my site? =
270
-
271
- You cannot use the same plugin twice, however you can install both the first USM plugin (https://wordpress.org/plugins/ultimate-social-media-icons/) as well as the Premiuem plugin (https://www.ultimatelysocial.com/usm-premium/). We've developed the code so that there are no conflicts and they can be used in parallel.
272
-
273
- = Where can I find icons for more social media platforms? =
274
-
275
- The premium plugin offrs many more social buttons from other social media platforms such as Snapchat, Whattsapp, Yelp, Sound cloud and many others. It's the best socialsharing plugin on the market :) Check it out at https://www.ultimatelysocial.com/usm-premium/
276
-
277
-
278
- == Screenshots ==
279
-
280
- 1. After installing the plugin, you'll see this overview. You'll be taken through the easy-to-understand steps to configure your plugin
281
-
282
- 2. As a first step you select which icons you want to display on your website
283
-
284
- 3. Then you'll define what the icons should do (they can perform several actions, e.g. lead users to your facebook page, or allow them to share your content on their facebook page)
285
-
286
- 4. In a third step you decide where the icons should be placed: a.) via Widget, b.) Floating, c.) via Shortcode and/or d.) Before or after posts
287
-
288
- 5. You can pick from a wide range of social share icon designs
289
-
290
- 6. Here you can animate your main icons (automatic shuffling, mouse-over effects etc.), to make visitors of your site aware that they can share, follow & like your site
291
-
292
- 7. You can choose to display counts next to your icons (e.g. number of Twitter-followers)
293
-
294
- 8. There are many more options to choose from
295
-
296
- 9. You can also display a pop-up (designed to your liking) which asks users to like & share your site
297
-
298
- == Changelog ==
299
- = 3.4.9 =
300
- * Updated to WordPress 5.7.2 compatibility.
301
- * Change unserialize to maybe_unserialize
302
- * Added target attribute in Facebook and twitter sharing links
303
- * Update Instagram icons
304
- * Some minor fixes
305
-
306
- = 3.4.8 =
307
- * Banner & Footer Carousel
308
- * Fixes with translated WordPress
309
-
310
- = 3.4.7 =
311
- * Updated to Wordpress 5.6 compatibility.
312
- * Updated to PHP 8 compatibility.
313
-
314
- = 3.4.6 =
315
- * Fixed banner.
316
-
317
- = 3.4.5 =
318
- * Added Whatsapp share
319
- * Fixed Woocommerce banner dismiss
320
-
321
- = 3.4.4 =
322
- * Gutenberg corrected.
323
- * The permission callback for register_rest_route issue fixed.
324
- * The jQuery load function issue fixed.
325
-
326
- = 3.4.3 =
327
- * UI fixes.
328
- * Banner changes.
329
- * Removed comment for false warning from security plugins.
330
- * Compatablity with 5.5
331
-
332
- = 3.4.2 =
333
- * Update the banner to show less frequently
334
-
335
- = 3.4.0 =
336
- * Removed banner options
337
-
338
- = 3.3.9 =
339
- * Subscription fallback Url issue fixed
340
-
341
- = 3.3.8 =
342
- * Plugin url fixes
343
- * Updated youtube API ID
344
-
345
- = 3.3.7 =
346
- * Popup skip error solved
347
- * Corrected a banner
348
-
349
- = 3.3.6 =
350
- * Updated auto open q3 removed.
351
- * Fixed subscribe form button value.
352
- * Updated pinterest model images.
353
- * Fixed claim feed from Q8 popup.
354
-
355
- = 3.3.5 =
356
- * Fixed UI issues.
357
- * Fixed problems with moving to Follow.it
358
-
359
- = 3.3.4 =
360
- * Updated Banners to make them less annoying.
361
- * Updated to follow.it
362
- * Quick purchase updaed.
363
- * Some Style and typo corrections.
364
-
365
- = 3.3.3 =
366
- * Updated texts
367
-
368
- = 3.3.2 =
369
- * Update: Option to define margin above and below responsive icons added
370
- * Update: Widget alignment issues fixed
371
- * Update: Replaced with icons which reduce the loading time
372
-
373
- = 3.3.1 =
374
- * Updated: Tweet text blank.
375
- * Updated: Export and import text size changed.
376
- * Updated: Video url changed.
377
- * Updated: Resolved the illigal offset error.
378
-
379
- = 3.3.0 =
380
- * Update: Responsive icons only on blog post.
381
- * Update: Lazy load css added.
382
- * Update: Success message after export.
383
- * Update: Changed the installer.
384
- * Update: Added shortcode support for the custom url.
385
- * Update: Updated Ping function.
386
-
387
- = 3.2.9 =
388
- * Update: Q3 auto opening and opening of Floating and 'before and after posts' open automatically for new installes.
389
- * Update: Popup open error fixed.
390
- * Update: Analyst5.4.
391
- * Update: Added the waiting imgage on contact.
392
- * Update: Sellcodes callback.
393
- * Update: Removed console.log.
394
-
395
- = 3.2.8 =
396
- * Update: Url encoded for location.href
397
- * Update: Restrucutre the section 8 options
398
- * Update: UI improvements
399
- * Update: Shortcode updated
400
-
401
- = 3.2.7 =
402
- * Update: Feedback system updated.
403
- * Update: Banner text for responsive icons updated.
404
- * Update: Css Validation issue corrected;
405
-
406
- = 3.2.6 =
407
- * Update: Fixed the text in theme banner.
408
- * Update: Fixed follow icon and subscription box when Curl is disabled.
409
- * Update: Fixed cURL errors.
410
-
411
- = 3.2.5 =
412
- * Update: Q4 missing images corrected.
413
-
414
- = 3.2.4 =
415
- * Update: Text changes.
416
- * Update: Solved widget alignments.
417
- * Update: Solved php errors.
418
-
419
- = 3.2.3 =
420
- * Update: Text changes.
421
- * Update: Link for email and action for subscription when request fails.
422
-
423
- = 3.2.2 =
424
- * Update: Feedback system updated
425
-
426
- = 3.2.1 =
427
- * Update: Feedback system updated
428
-
429
- = 3.2.0 =
430
- * Update: SDK.
431
- * Update: Grammer Errors.
432
-
433
- = 3.1.9 =
434
- * Update: Responsive icons options display logic corrected.
435
- * Update: Twitter and other external js inclusion logic updated.
436
- * Solved: Cancel button on banner reapplied.
437
- * Solved: Validation for section 2 options while section 1 options are checked but not saved corrected.
438
- * Update: Feedback system updated
439
-
440
- = 3.1.8 =
441
- * New Feature: Responsive icons in the plugin.
442
- * Solved: Icons not rendering on woocomerce product page.
443
- * Solved: Stop loading unused external library code for faster load.
444
- * Solved: Updated feedback system to next version.
445
-
446
- = 3.1.7 =
447
- * Update: Feedback system added
448
-
449
- = 3.1.6 =
450
- * Update: Removed google icon.
451
- * Update: Nonce error in Q6 preview language icons
452
-
453
- = 3.1.5 =
454
- * Update: Corrected typos
455
- * Update: Updated theme suggestion data
456
- * Update: Removed Curl error
457
- * Update: Fixed Facebook and Twitter icons not working on some pages
458
- * Update: Removed w3 validation errors
459
- * Update: Removed googleplus icon
460
-
461
- = 3.1.4 =
462
- * Update: Solved the Undefined Notice messages.
463
-
464
- = 3.1.3 =
465
- * Update: Google plus like removed
466
- * Update: Extra debug log removed
467
- * Update: Screencast video removed
468
- * Update: more icons included.
469
- * Update: White background from icons removed.
470
-
471
- = 3.1.2 =
472
- * Update: updated the new added icons.
473
- * Update: optimized the extraicons of premium shown to the plugin.
474
-
475
- = 3.1.1 =
476
- * Update: removed unwanted files.
477
- * Update: included skins for wechat icons.
478
- * Update: Custom skin for newly added icons.
479
- * Update: Compatablity Errors corrected.
480
-
481
- = 3.1.0 =
482
- * New Feature: New icons Implemented.
483
- * Update: Alert for checkbox conflict.
484
- * Update: Cron implemented for rss count.
485
- * Update: Custom icons not showing solved.
486
-
487
-
488
- = 3.0.9 =
489
- * Update: Woocommerce resolved conflict resulted in other conflicts - fixed.
490
-
491
- = 3.0.8 =
492
- * Update: Critical Security Patch.
493
- * Update: Resolved Conflict with woocommerce auto update.
494
-
495
- = 3.0.7 =
496
- * Update: Security Patch.
497
-
498
- = 3.0.6 =
499
- * Update: security update.
500
- * Update: save button not working.
501
-
502
- = 3.0.5 =
503
- * Update: Theme cheker dom error updated.
504
- * Update: Deprecated Google plus
505
- * Updated: css changes to make icons more symetric.
506
-
507
- = 3.0.4 =
508
- * Updated: Security patch in freemius.
509
-
510
- = 3.0.3 =
511
- * Update: solved Undefined constant notice resolved.
512
- * Update: offline chat email validation added.
513
- * Update: ROUND SHORTCODE sharing error solved.
514
- * Update: curl errors in backend solved.
515
- * Update: ajax_object conflict solved and updated sfsi_plus_ajax.
516
-
517
- = 3.0.2 =
518
- * Update: Conflict solved.
519
-
520
- = 3.0.1 =
521
- * Update: design changes in gutenberg.
522
- * Update: Dashboard chat updated.
523
- * Update: Security updates.
524
-
525
- = 3.0.0 =
526
- * Update: Updated gutenberg block to incorporate current changes. Added support for multiple controls on block inspector controls.
527
- * update: In-admin-pannel chat updated for more user friendly features.
528
-
529
- = 2.9.9 =
530
- * Duplicate IDs removed from icon's link
531
- * Facebook share counts (rectangle icons) do not show
532
- * specificfeeds.com links changed to https
533
- * Remove google like
534
- * Click on G+ in firefox opens a new window
535
-
536
- = 2.9.8 =
537
- * Update: Display counts can’t be manually updated
538
-
539
- = 2.9.7 =
540
- * New Feature: Direct chat added to the plugins settings page.
541
-
542
- = 2.9.6 =
543
- * Image not showing error fixed for banner in animation section in Question 4 added
544
-
545
- = 2.9.5 =
546
- * Lightbox removed after click on de-activation of plugin
547
- * Banner for animation section in Question 4 added
548
- * Different icon for mouseover section pointing in premium in Question 4 added
549
- * Removed theme icon banner if no match
550
-
551
- = 2.9.4 =
552
- * Optimized footer
553
-
554
- = 2.9.3 =
555
- * Fixed Gutenberg issues which arose for old PHP versions
556
- * Removed Addthis due to GDPR compliance issues
557
-
558
- = 2.9.2 =
559
- * Issue fixed that click on dismiss for banner didn't dismiss it permanently
560
- * Gutenberg implemented
561
-
562
- = 2.9.1 =
563
- * Count Error for newer PHP version fixed
564
-
565
- = 2.9.0 =
566
- * Count Error shown for newer php versions fixed.
567
-
568
- = 2.8.9 =
569
- * Language in Question 6 not saving issue fixed
570
-
571
- = 2.8.8 =
572
- * Optimized code for setting value for "adding_plustags" which caused issues on some sites
573
-
574
- = 2.8.7 =
575
- * Various instructions optimized
576
-
577
- = 2.8.5 =
578
- * Cookies don't get set anymore if selected to show pop-up when user scrolls to end of page (relevant for GDPR compliance)
579
-
580
- = 2.8.4 =
581
- * Like count issue fixed
582
- * Youtube subscribe issue fixed
583
-
584
- = 2.8.3 =
585
- * Instagram followers count issue fixed
586
- * Twitter count issue fixed
587
- * Facebook share count issue fixed
588
-
589
- = 2.8.2 =
590
- * Non-numeric value errors fixed
591
-
592
- = 2.8.0 =
593
- * Removed error log files
594
- * Follow icon sometimes showed too large - fixed
595
-
596
- = 2.7.9 =
597
- * Linkedin-counter after posts corrected
598
-
599
- = 2.7.8 =
600
- * Text changes
601
-
602
- = 2.7.7 =
603
- * New question for referring added
604
-
605
- = 2.7.6 =
606
- * Saving links for custom icons sometimes didn't work. Fixed now.
607
-
608
- = 2.7.5 =
609
- * Links updated
610
-
611
- = 2.7.4 =
612
- * Themed icons notification optimized
613
-
614
- = 2.7.3 =
615
- * Important bug fixed (which caused fatal error on sites with PHP version below 5.5. and sensitive error reporting on server)
616
-
617
- = 2.7.2 =
618
- * Banners modified
619
- * Spelling mistakes corrected
620
-
621
- = 2.7.1 =
622
- * Added more themed icons banners
623
-
624
- = 2.7.0 =
625
- * There were conflicts when both free USM plugins were installed at the same time, those are now resolved
626
-
627
- = 2.6.9 =
628
- * Notification for possibility to define sharing text and pic added
629
-
630
- = 2.6.8 =
631
- * Link to full list of premium icons added
632
-
633
- = 2.6.7 =
634
- * Info added that url shortener is available in premium plugin
635
- * Non numeric value warning fixed
636
- * Templates with no head issue fixed
637
-
638
- = 2.6.6 =
639
- * Incorrect error messages removed
640
- * Better formatting of socialshare review bar
641
-
642
- = 2.6.5 =
643
- * Updated so that also widget data gets removed when you de-install the plugin, so now everything is completely removed
644
-
645
- = 2.6.4 =
646
- * New CURL error messages to point better to the specific issue
647
- * Error message if user is using outdated PHP version
648
- * "Mandatory" removed from email and rss icons
649
- * Freemius Error (uninstall hook error) fixed
650
- * Icons not underlined anymore (was a conflict with certain themes such as twentyseventeen)
651
- * Js removed after de-activating the icons
652
- * Freemius image added
653
- * After activation of plugin you're directly taken to the plugin's settings page
654
-
655
- = 2.6.3 =
656
- * Fremius analytics implemented
657
-
658
- = 2.6.2 =
659
- * More strings made translation-ready
660
- * Better claiming of feed enabled
661
-
662
- = 2.6.1 =
663
- * Issue with Instagram button counters fixed
664
-
665
- = 2.5.9 =
666
- * Issue fixed that sometimes incorrect error-messages showed on front-end
667
- * Credit link updated
668
- * More icons added for pro-version
669
- * SpecificFeeds adjusted for paid option
670
- * De-installation will now clear database entirely
671
- * Upgrade to pro-link renamed
672
-
673
- = 2.5.7 =
674
- * New option for tailor-made icons
675
-
676
- = 2.5.6 =
677
- * Activation/de-activation links optimized
678
-
679
- = 2.5.5 =
680
- * Notifications activated
681
-
682
- = 2.5.4 =
683
- * Notifications revised
684
-
685
- = 2.5.3 =
686
- * Notification added
687
-
688
- = 2.5.1 =
689
- * Instructions for troubleshooting optimized
690
-
691
- = 2.5.0 =
692
- * Facebook icon leading to empty pages (in specific cases) fixed
693
-
694
- = 2.4.9 =
695
- * Twitter sharing text issues with forwarded slashes fixed
696
- * Links to review sites adjusted following Wordpress changes in review section
697
-
698
- = 2.4.7 =
699
- * Missing counts for email follow option fixed (when there are no subscribers yet)
700
- * Extra explanation text added
701
-
702
- = 2.4.6 =
703
- * Corner case vulnerability fixed
704
-
705
- = 2.4.5 =
706
- * Claiming box made nicer
707
-
708
- = 2.4.4 =
709
- * Updated PIN-it button to SAVE
710
- * Claiming process simplified
711
-
712
- = 2.4.3 =
713
- * jQuery issue fixed
714
- * Counts for SpecificFeeds-subscribers are back, getting updated once a day
715
- * Some mouse-over issues for custom icons, fixed now
716
-
717
- = 2.4.2 =
718
- * Cute G+ icon didn't look good on dark backgrounds, fixed now
719
- * Counts for SpecificFeeds-subscribers disabled due to high server load. We'll try to bring them back in a future plugin version.
720
-
721
- = 2.4.1 =
722
- * Size of custom icons corrected
723
- * Cute G+ icon too small before, corrected now
724
- * Better description how to get G+ API key added
725
- * Unsupported "live" function in jquery fixed
726
-
727
- = 2.3.9 =
728
- * Language issues fixed
729
- * Counter didn't disappear before/after posts if round icons were selected - fixed now
730
-
731
- = 2.3.8 =
732
- * Language folder added
733
- * Persian added as first language
734
- * For round icons before/after posts, the counts now correctly show the counts of the post page, not necessarily the page they are on
735
-
736
- = 2.3.7 =
737
- * Translation errors fixed
738
-
739
- = 2.3.6 =
740
- * Translation errors fixed
741
- * Icons sometimes on top of each other - fixed
742
- * New icon function: If user has given the icon a visit-us functionality, then it already works now when clicking on the icon (i.e. no selection in tooltip required)
743
-
744
- = 2.3.5 =
745
- * Errors appearing on front end fixed
746
-
747
- = 2.3.4 =
748
- * Plugin updated for translations
749
- * E-NOTICE error fixed
750
-
751
- = 2.3.3 =
752
- * Removed the js files from plugin and using the ones provided by WP now
753
- * POST calls optimized (sanitize, escape, validate)
754
- * Removed feedback option
755
- * Tags changed
756
-
757
- = 2.3.2 =
758
- * Feedback mechanism disabled
759
- * Tags reduced
760
-
761
- = 2.3.1 =
762
- * Added Facebook share button after/before posts
763
- * G+ design issues on black background fixed
764
-
765
- = 2.2.9 =
766
- * Crashes/content disappearing fixed
767
-
768
- = 2.2.7 =
769
- * Overkill declaration in the CSS fixed
770
- * Custom icons can now have mailto:-functionality
771
- * jQuery UI issues fixed
772
- * Rectangle G+ icon now shown as last one as it takes more space (looks better)
773
-
774
- = 2.2.6 =
775
- * jQuery issues/conflicts fixed
776
- * Script issues fixed
777
- * Count issues for icons on homepage fixed
778
- * Text added on plugin setting's page for easier understanding
779
- * Issue that dashboard sometimes doesn't load fixed
780
- * Instagram thin-icon issue fixed (misspelled, therefore didn't show)
781
- * Custom icon uploads optimized
782
-
783
- = 2.2.5 =
784
- * Facebook changed their API - please upgrade if you want Facebook sharing on mobile to work properly on your site!
785
-
786
- = 2.2.4 =
787
- * Custom icon uploads optimized
788
-
789
- = 2.2.3 =
790
- * Houzz error message fixed
791
-
792
- = 2.2.2 =
793
- * Plugin made ready for translations
794
-
795
- = 2.2.1 =
796
- * Feed claiming optimized
797
-
798
- = 2.2 =
799
- * Shortpixel link updated
800
-
801
- = 2.1 =
802
- * Feed claiming bug fixed
803
-
804
- = 2.0 =
805
- * Houzz-button integrated
806
- * New G+ button updated
807
- * Quicker claiming of feed possible
808
- * Comments to share-button added
809
- * Credit to shortpixel added
810
-
811
- = 1.9 =
812
- * New feature: Users can now decide where exactly the floating icons will display
813
- * Internal links corrected
814
- * Fixed: Targets only labels within the social icons div.
815
- * Subscriber counts fixed
816
- * Apostrophe issues fixed
817
- * Conflicts with Yoast SEO plugin resolved
818
- * PHP errors fixed
819
-
820
- = 1.8 =
821
- * Plugin also allows a subscription form now (question 8)!
822
-
823
- = 1.7 =
824
- * Count issues fixed - please upgrade!
825
- * Style constructor updated to PHP 5
826
- * Text adjustments in admin area
827
-
828
- = 1.6 =
829
- * More explanations added how to fix if counts don't work
830
- * Icon files are compressed now for faster loading - thank you ShortPixel.com!
831
- * A typo in the code threw an error message in certain cases, this is fixed now
832
-
833
- = 1.5 =
834
- * jQuery issues fixed
835
- * Vulnerability issues fixed
836
- * Twitter-button didn't get displayed in full sometimes, this is fixed now
837
- * CSS issues (occurred on some templates) fixed
838
- * Facebook updated API (so counts didn't get displayed correctly anymore), we updated the plugin accordingly
839
- * Sometimes error messages appeared on the front end, this is fixed now
840
-
841
- = 1.4 =
842
- * New follow-icons added
843
- * More "rectangle" icons added before/after posts
844
- * Widget was rendered incorrectly on some templates, fixed now
845
- * Icons didn't always line up (on some themes), fixed now
846
- * Youtube API got changed, which made the counts not displayed correctly, this is now adjusted in the plugin
847
- * Slight layout adjustments in plugin's admin area
848
-
849
-
850
- = 1.3 =
851
- * Links with "@" in the url (e.g. as in Flickr-links) now get recognized as well
852
- * Alignment issues of icons in tooltip fixed
853
- * Layout optimizations in plugin area
854
- * Users can now select to have the number of likes of their facebook page displayed as counts of the facebook icon on their blogs
855
- * Typos in admin area corrected
856
- * Users can now disable auto-scaling feature for mobile devices ("viewport" meta tag)
857
-
858
- = 1.2 =
859
- * Vulnerabilities (AJAX) fixed
860
- * OG-issues (caused in conjunction with other plugins) fixed
861
-
862
- = 1.1 =
863
- * Og-issues fixed
864
- * Conflicts with Yoast SEO plugin sorted
865
- * Alignments under posts didn't work sometimes before, fixed now
866
- * When user selected icons to shuffle pop-up didn't show up, fixed now
867
- * Short code corrected
868
- * On some templates the checkboxes in the admin area couldn't get selected, fixed now
869
- * Links now to the correct review screen
870
- * Share-box only displayed partly sometimes, fixed now
871
- * When sharing from a Facebook business page it returned errors, this should be fixed now (to be observed)
872
- * Sometimes facebook share count didn't increase despite liking it, this should be fixed now (to be observed)
873
- * Template CSS conflicts solved in the plugin
874
- * Facebook sharing text issues fixed
875
-
876
- = 1.0 =
877
- * First release
878
-
879
- == Upgrade Notice ==
880
-
881
- = 3.4.9 =
882
- * Please update
 
 
 
 
 
1
+ === Social Share Icons & Social Share Buttons ===
2
+ Contributors: socialsharepro, socialtech
3
+ Tags: Share, sharing, share buttons, share button, share social media, share icons, social buttons, sharing buttons, sharing icons, social media icons, social share, social sharing
4
+ Requires at least: 3.0
5
+ Tested up to: 5.8.1
6
+ Stable tag: 3.5.0
7
+ License: GPLv2
8
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
+ 
10
+ Social sharing plugin adding social buttons.
11
+
12
+ == Description ==
13
+
14
+ Add social share icons on your website with just a few clicks.
15
+
16
+ The plugin can be customized to suit any need and is FREE. It also has been **translated into various languages**.
17
+
18
+ Feature list:
19
+
20
+ - Numerous **social share platforms** (see a list of them below)
21
+ - Many placement options **before or after posts, floating over your website's pages, via widget, via shortcode,** (top right, bottom left etc.)
22
+ - The possibility to give **several actions to one social share button** (e.g. your Facebook icon can lead visitors to your Facebook page, and also show a Facebook button to share your page on social media)
23
+ - **16 design styles** for your social share buttons
24
+ - **Animated** social share buttons (e.g. automatic shuffling, mouse-over effects)
25
+ - Social **pop-up** - ask people to follow or share you
26
+ - **Subscription service** - allow visitors to subscribe to your site and receive new posts automatically by email
27
+ - Share counts
28
+ - **Rearrange Order** of social share icons
29
+ - **Lots of other customization options** for your social share buttons
30
+ - Compatible with Gutenberg editor
31
+
32
+ List of platforms supported in the free plugin:
33
+
34
+ * Facebook share icon
35
+ * Twitter share icon
36
+ * Email icon
37
+ * RSS icon
38
+ * Instagram share icon
39
+ * Youtube share icon
40
+ * Pinterest share icon
41
+ * LinkedIn share icon
42
+ * Houzz share icon
43
+ * OK icon
44
+ * Telegram icon
45
+ * VK icon
46
+ * WeChat icon
47
+ * Weibo icon
48
+ * Share icon (allows your visitors to share your site on over 200+ other social media sites; powered by addthis/sharethis)
49
+
50
+ If there are any important social share networks not covered yet, please let us know!
51
+
52
+ For GDPR compliance, please have a look at our [Social Media GDPR Compliance page](https://ultimatelysocial.com/gdpr/).
53
+
54
+ In case of issues or questions please ask in the [Support forum] (https://wordpress.org/support/plugin/ultimate-social-media-plus).
55
+
56
+ = Premium Plugin =
57
+
58
+ The free plugin already provides tons of options for social sharing (as outlined above). In our Premium Plugin, even more is possible. Some examples for additional features in the Premium Plugin:
59
+
60
+ * More social share buttons (the icon pack includes an Instagram button, Snapchat button, Yummly button, Print button, Whatsapp button, Yelp button, Soundcloud button, Skype button, Flickr button, Share button, Blogger button, Digg button, Reddit button, Vimeo button, Tumblr button, Xing button, vk button, Telegram button, Amazon button, Spotify button and many more badge, see list above)
61
+ * More (default) design styles for your social share icons
62
+ * Themed design styles for your social share buttons (e.g. if you have a site about cats, you can pick from cat-themed buttons etc.)
63
+ * Better sharing & following features (tailored tweet texts, allow people to follow you directly on your page etc.)
64
+ * Place the social share icons on specific pages
65
+ * Optimized for mobile sharing and buton display
66
+ * More functions for email icon to connect with you
67
+ * More lightbox / popup options (e.g. limit how often the popup is shown to the same user)
68
+ * (Friendly and fast) Support
69
+ * Many more settings & options
70
+
71
+ 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.
72
+
73
+ == Installation ==
74
+ 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.
75
+
76
+ Then go to plugin settings page and answer the first 3 questions. That's it.
77
+
78
+ Note: This plugin requires CURL to be activated/installed on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
79
+
80
+ == Frequently Asked Questions ==
81
+
82
+ = Please also check the more comprehensive FAQ on http://ultimatelysocial.com/faq =
83
+
84
+ We will try to keep this FAQ section up-to-date, but please note that the latest version of the FAQ might be only available at http://ultimatelysocial.com/faq
85
+
86
+ = I face fundamental issues (the plugin doesn't load, social share buttons don't show etc.) =
87
+
88
+ Please ensure that:
89
+
90
+ - You're using the latest version of the plugin(s)
91
+ - Your site is running on PHP 5.4 or above
92
+ - You have CURL activated (should be activated by default)
93
+
94
+ If you're not familiar with those please contact your hosting company or server admin.
95
+
96
+ Please check if you have browser extensions activated which may conflict with the social share buttons. Known culprits include:
97
+
98
+ - Open SEO Stats (Formerly: PageRank Status) in Chrome
99
+ - Adblock Plus in Chrome
100
+ - Vine in Chrome
101
+
102
+ Either de-activate those extensions or try it in a different browser.
103
+
104
+ If the plugin setting's area looks 'funny' after an upgrade then please clear your cache with String+F5 (PC) or Command+R (Mac).
105
+
106
+ If you get the error message “Are you sure you want to do this? / Please try again” when uploading the plugin: Some servers may have a low limits with respect to permitted upload times. Please set the values in the “php.ini” file to:
107
+
108
+ max_execution_time 90
109
+ post_max_size 48M
110
+
111
+ If you don’t know how to do it, please contact your server support / hosting company for that. Tell them you need it for a sharing plugin on WordPress which may take longer to upload as many socialsharing buttons are included in it (larger file size).
112
+
113
+ If your issue is still not fixed after you’ve followed the steps above, we can provide support as part of our new share to social Premium Plugin: https://www.ultimatelysocial.com/usm-premium/.
114
+
115
+ = I get error messages 'Error : 7', 'Error : 56', 'Error : 6' etc. =
116
+
117
+ Those point to a CURL-issue on your site. Please contact your server admin or your hosting company to resolve it.
118
+
119
+ The plugin requires CURL for the social share counts and other features.
120
+
121
+ = Social share buttons don't show =
122
+
123
+ Please ensure you actually placed the social share buttons either as social widget (in your widget area) or as floating icons under question 5). The Premium Plugin makes placing sharing buttons especially easy and also allows you to place sticky buttons on your site, define the placement of the share buttons by margins and many other options, see https://www.ultimatelysocial.com/usm-premium/.
124
+
125
+ If only some social share buttons show, but not all, then please clear your cache, and check if you may have conflicting browser extensions (e.g. 'Disconnect'-app in Chrome). Also Ad-Blockers are known culprits, please switch them off temporarily to see if that is the reason.
126
+
127
+ If the social share buttons still don't show then there's an issue with your template. Please contact the creator of your template for that.
128
+
129
+ If you are referring to specific social share buttons not showing in the plugin itself (e.g. you're looking for a Whatsapp icon, but it doesnt exist) please note that our Premium Plugin has many more social media share buttons, see https://www.ultimatelysocial.com/usm-premium/
130
+
131
+ = Twitter share counters are not displaying (anymore) =
132
+
133
+ Unfortunately, Twitter stopped providing any social share counter. God knows why.
134
+
135
+ = Changes don't get saved / Deleted plugin but sharing buttons still show =
136
+
137
+ Most likely you have the WP Cache plugin installed. Please de-activate and then re-activate it.
138
+
139
+ = Links don't work =
140
+
141
+ Please ensure you've entered the 'http://' at the beginning of the url (for *all* social networks). If the share buttons are not clickable at all there is most likely an issue with your template. This is especially the case if you've given your social share buttons several features, which should show a pop-up (tooltip) when you move over the share buttons.
142
+
143
+ = I cannot upload social custom buttons =
144
+
145
+ Most likely that's because you've set 'allow_url_fopen' to 'off'. Please turn it to 'on' (or ask your server admin to do so, he'll know what to do. Tell them you need it to upload custom buttons for a social media buttons plugin which are not included yet).
146
+
147
+ = My Youtube button (direct follow) doesn't work =
148
+
149
+ Please ensure that you've selected the radio button 'Username' when you enter a youtube username, or 'Channel ID' when you entered a channel ID.
150
+
151
+ = Aligning the social share buttons (centered, left- or right-aligned) doesn't work =
152
+
153
+ The alignment options under question 5 align the sharing icons with respect to each other, not where they appear on the page. Our new Premium Plugin is the best social sharing plugin on the market, allowing you to define also many other button alignments (e.g. within a widget, within shortcode etc.).
154
+
155
+ = Clicking on the RSS button returns funny codes =
156
+
157
+ That's normal. RSS users will know what to do with it (i.e. copy & paste the url into their RSS readers).
158
+
159
+ = Facebook 'like'-count isn't correct =
160
+
161
+ When you 'like' something on your blog via facebook it likes the site you're currently on (e.g. your blog) and not your Facebook page.
162
+
163
+ The new Premium Plugin also allows to show the number of your Facebook page likes, see https://www.ultimatelysocial.com/usm-premium/.
164
+
165
+ = Sharing doesn't take the right text or picture =
166
+
167
+ We use the codes from Facebook, Google+ etc. and therefore don't have any influence over which text & pic is used for sharing.
168
+
169
+ Note that you can define an image as 'Featured Image' which tells Facebok / Google etc. to share that one. You'll find this 'Featured Image' section in your blog's admin area where you can edit your blog post.
170
+
171
+ You can crosscheck which image Facebook will share by entring your url on https://developers.facebook.com/tools/debug/og/object/.
172
+
173
+ = The pop-up shows although I only gave my social share button one share function =
174
+
175
+ The pop-up only disappears if you've given your sharing buttons only a 'visit us'-function, otherwise (e.g. if you gave it 'Like' (on facebook) or 'Tweet' functions or sharing functions) a pop-up is still needed because the share buttons for those are coming directly from the social media sites (e.g. Facebook, Twitter) and we don't have any influence over their design.
176
+
177
+ = I selected to display the social sharing buttons after every post but they don't show =
178
+
179
+ The social sharing buttons usually do show, however not on your blog page, but on your single posts pages. The Premium plugin (https://www.ultimatelysocial.com/usm-premium/) also allows to display the share buttons on your homepage.
180
+
181
+ = Plugin decreases my site's loading speed =
182
+
183
+ The plugin is one of the most optimized social media plugin in terms of impact on a site's loading speed (optimized code, compressed pictures etc.).
184
+
185
+ If you still experience loading speed issues, please note that:
186
+
187
+ - The more social sharing bottons and invite features you place on your site, the more external codes you load (i.e. from the social media sites; we just use their code), therefore impacting loading speed. So to prevent this, give your sharing buttons only 'Visit us'-functionality rather than sharing functionalities.
188
+
189
+ - We've programed it so that the code for the social media buttons is the one which loads lasts on your site, i.e. after all the other content has already been loaded. This means: even if there is a decrease in loading speed, it does not impact a user's experience because he sees your site as quickly as before, only the social media buttons take a bit longer to load.
190
+
191
+ There might be also other issues on your site which cause a high loading speed (e.g. conflicts with our plugins or template issues). Please ask your template creator about that.
192
+
193
+ Also, if you've uploaded social media sharing buttons not provided by the plugin itself (i.e. custom buttons) please ensure they are compressd as well.
194
+
195
+ = After moving from demo-server to live-server the follow or subscribe link doesn't work anymore =
196
+
197
+ Please delete and install the plugin again.
198
+
199
+ If you already placed the code for a subscription form on your site, remove it again and take the new one from the new plugin installation.
200
+
201
+ = When I try to like or share via Facebook, I get error message 'App Not Setup: This app is still...' =
202
+
203
+ If you get the error message...
204
+
205
+ 'App Not Setup: This app is still in development mode, and you don't have access to it. Switch to a registered test user or ask an app admin for permissions.'
206
+
207
+ ...then most likely you're curently logged in with a business account on Facebook. Please logout, or switch to your personal account.
208
+
209
+ = There are other issues when I activate the plugin or place the share buttons =
210
+
211
+ Please check the following:
212
+
213
+ The plugin requires that CURL is instaled & activated on your server (which should be the standard case). If you don't have it, please contact your hosting provider.
214
+
215
+ Please ensure that you don't have any browser extension activated which may conflict with the plugin, esp. those which block certain content including the share buttons. Known culprits include the 'Disconnect' extension in Chrome or the 'Privacy Badger' extension in Firefox.
216
+
217
+ If issues persist most likely your theme has issues which makes it incompatible with our plugin. Please contact your template creator for that. As part of the Premium Plugin (https://www.ultimatelysocial.com/usm-premium/) we fix also theme issues, and provide support to ensure that your social media share buttons appear on your site (exactly where you want them).
218
+
219
+ = How can I see how many people share or like my posts? =
220
+
221
+ You can see this by activating the sharnig 'counts' on the front end (under question 5 in the plugin). This will display the counters in little bubbles showing how often people share your posts.
222
+
223
+ We cannot provide you this data in other ways as it's coming directly from the social media sites. One exception: if you like to know when people start to follow you by email, then you can get email alerts. For that, please claim your feed.
224
+
225
+ = How can I change the 'Please follow & like us :)'? =
226
+
227
+ You can change it in the Widget-area where you dropped the widget with the sharing buttons on the sidebar. Please click on it (on the sidebar), it will open the menu where you can change the text.
228
+
229
+ If you don't want to show any text, just enter a space (' ').
230
+
231
+ = How can I remove the credit-link ('Powered by Ultimatelysocial')? =
232
+
233
+ Please note that we didn't place the credit link without your consent (you agreed to it when de-selecting the email button).
234
+
235
+ Open the first question in the plugin ('1. Which sharing buttons do you want to show on your site?'), on the level of the email button you see a link on the right hand side. Please click it to remove the credit link.
236
+
237
+ = Can I use a shortcode to place the share buttons? =
238
+
239
+ Yes, it's [DISPLAY_ULTIMATE_SOCIAL_ICONS]. You can place it into any editor. If the sharing buttons still don't show, there might be an issue with your theme.
240
+
241
+ Alternatively, you can place the followin into your codes: <?php echo do_shortcode('[DISPLAY_ULTIMATE_SOCIAL_ICONS]'); ?>
242
+
243
+ In some cases there might be issues to display social media sharing buttons which you uploaded as custom buttons. In this case, we provide support as part of our premium plugin: https://www.ultimatelysocial.com/usm-premium/
244
+
245
+ = Can I get more options for the social share buttons next to posts? =
246
+
247
+ Please use this plugin for that: https://www.ultimatelysocial.com/usm-premium/. This allows you to place more share buttons (e.g. including Linkedin) as well as giving you more configuration options.
248
+
249
+ = Can I also give the email button a 'mailto:' functionality? =
250
+
251
+ Yes, that is possible in our new social share plugin, the Premium Plugin: https://www.ultimatelysocial.com/usm-premium/
252
+
253
+ To get the email button in the same design style you picked, activate it, then on the front-end, rightclick on the button, and save it as picture. Upload that picture as custom button.
254
+
255
+ = Can I also display the share buttons vertically? =
256
+
257
+ Yes, that is possible in our new social sharing plugin, the Premium Plugn: https://www.ultimatelysocial.com/usm-premium/.
258
+
259
+ = How can I change the text on the 'visit us'-buttons? =
260
+
261
+ Use this plugin: https://www.ultimatelysocial.com/usm-premium/
262
+
263
+ = Can I deactivate the social sharing buttons on mobile? =
264
+
265
+ Yes, there's an option for that under question 5. In our new Premium Plugin you can define different settings of the share buttons for mobile, see https://www.ultimatelysocial.com/usm-premium/. The best way to share social media! :)
266
+
267
+ = How can I use two instances of the plugin on my site? =
268
+
269
+ You cannot use the same plugin twice, however you can install both the first USM plugin (https://wordpress.org/plugins/ultimate-social-media-icons/) as well as the Premiuem plugin (https://www.ultimatelysocial.com/usm-premium/). We've developed the code so that there are no conflicts and they can be used in parallel.
270
+
271
+ = Where can I find icons for more social media platforms? =
272
+
273
+ The premium plugin offrs many more social buttons from other social media platforms such as Snapchat, Whattsapp, Yelp, Sound cloud and many others. It's the best socialsharing plugin on the market :) Check it out at https://www.ultimatelysocial.com/usm-premium/
274
+
275
+
276
+ == Screenshots ==
277
+
278
+ 1. After installing the plugin, you'll see this overview. You'll be taken through the easy-to-understand steps to configure your plugin
279
+
280
+ 2. As a first step you select which icons you want to display on your website
281
+
282
+ 3. Then you'll define what the icons should do (they can perform several actions, e.g. lead users to your facebook page, or allow them to share your content on their facebook page)
283
+
284
+ 4. In a third step you decide where the icons should be placed: a.) via Widget, b.) Floating, c.) via Shortcode and/or d.) Before or after posts
285
+
286
+ 5. You can pick from a wide range of social share icon designs
287
+
288
+ 6. Here you can animate your main icons (automatic shuffling, mouse-over effects etc.), to make visitors of your site aware that they can share, follow & like your site
289
+
290
+ 7. You can choose to display counts next to your icons (e.g. number of Twitter-followers)
291
+
292
+ 8. There are many more options to choose from
293
+
294
+ 9. You can also display a pop-up (designed to your liking) which asks users to like & share your site
295
+
296
+ == Changelog ==
297
+ = 3.5.0 =
298
+ * Updated to WordPress 5.8.1 compatibility.
299
+ * Optimize code
300
+ * Remove unused images
301
+ * Add/update Translation functions
302
+ * Some minor fixes
303
+
304
+ = 3.4.9 =
305
+ * Updated to WordPress 5.7.2 compatibility.
306
+ * Change unserialize to maybe_unserialize
307
+ * Added target attribute in Facebook and twitter sharing links
308
+ * Update Instagram icons
309
+ * Some minor fixes
310
+
311
+ = 3.4.8 =
312
+ * Banner & Footer Carousel
313
+ * Fixes with translated WordPress
314
+
315
+ = 3.4.7 =
316
+ * Updated to WordPress 5.6 compatibility.
317
+ * Updated to PHP 8 compatibility.
318
+
319
+ = 3.4.6 =
320
+ * Fixed banner.
321
+
322
+ = 3.4.5 =
323
+ * Added Whatsapp share
324
+ * Fixed WooCommerce banner dismiss
325
+
326
+ = 3.4.4 =
327
+ * Gutenberg corrected.
328
+ * The permission callback for register_rest_route issue fixed.
329
+ * The jQuery load function issue fixed.
330
+
331
+ = 3.4.3 =
332
+ * UI fixes.
333
+ * Banner changes.
334
+ * Removed comment for false warning from security plugins.
335
+ * Compatablity with 5.5
336
+
337
+ = 3.4.2 =
338
+ * Update the banner to show less frequently
339
+
340
+ = 3.4.0 =
341
+ * Removed banner options
342
+
343
+ = 3.3.9 =
344
+ * Subscription fallback Url issue fixed
345
+
346
+ = 3.3.8 =
347
+ * Plugin url fixes
348
+ * Updated youtube API ID
349
+
350
+ = 3.3.7 =
351
+ * Popup skip error solved
352
+ * Corrected a banner
353
+
354
+ = 3.3.6 =
355
+ * Updated auto open q3 removed.
356
+ * Fixed subscribe form button value.
357
+ * Updated pinterest model images.
358
+ * Fixed claim feed from Q8 popup.
359
+
360
+ = 3.3.5 =
361
+ * Fixed UI issues.
362
+ * Fixed problems with moving to Follow.it
363
+
364
+ = 3.3.4 =
365
+ * Updated Banners to make them less annoying.
366
+ * Updated to follow.it
367
+ * Quick purchase updated.
368
+ * Some Style and typo corrections.
369
+
370
+ = 3.3.3 =
371
+ * Updated texts
372
+
373
+ = 3.3.2 =
374
+ * Update: Option to define margin above and below responsive icons added
375
+ * Update: Widget alignment issues fixed
376
+ * Update: Replaced with icons which reduce the loading time
377
+
378
+ = 3.3.1 =
379
+ * Updated: Tweet text blank.
380
+ * Updated: Export and import text size changed.
381
+ * Updated: Video url changed.
382
+ * Updated: Resolved the illegal offset error.
383
+
384
+ = 3.3.0 =
385
+ * Update: Responsive icons only on blog post.
386
+ * Update: Lazy load css added.
387
+ * Update: Success message after export.
388
+ * Update: Changed the installer.
389
+ * Update: Added shortcode support for the custom url.
390
+ * Update: Updated Ping function.
391
+
392
+ = 3.2.9 =
393
+ * Update: Q3 auto opening and opening of Floating and 'before and after posts' open automatically for new installes.
394
+ * Update: Popup open error fixed.
395
+ * Update: Analyst 5.4.
396
+ * Update: Added the waiting imgage on contact.
397
+ * Update: Sellcodes callback.
398
+ * Update: Removed console.log.
399
+
400
+ = 3.2.8 =
401
+ * Update: Url encoded for location.href
402
+ * Update: Restructure the section 8 options
403
+ * Update: UI improvements
404
+ * Update: Shortcode updated
405
+
406
+ = 3.2.7 =
407
+ * Update: Feedback system updated.
408
+ * Update: Banner text for responsive icons updated.
409
+ * Update: CSS Validation issue corrected;
410
+
411
+ = 3.2.6 =
412
+ * Update: Fixed the text in theme banner.
413
+ * Update: Fixed follow icon and subscription box when Curl is disabled.
414
+ * Update: Fixed cURL errors.
415
+
416
+ = 3.2.5 =
417
+ * Update: Q4 missing images corrected.
418
+
419
+ = 3.2.4 =
420
+ * Update: Text changes.
421
+ * Update: Solved widget alignments.
422
+ * Update: Solved php errors.
423
+
424
+ = 3.2.3 =
425
+ * Update: Text changes.
426
+ * Update: Link for email and action for subscription when request fails.
427
+
428
+ = 3.2.2 =
429
+ * Update: Feedback system updated
430
+
431
+ = 3.2.1 =
432
+ * Update: Feedback system updated
433
+
434
+ = 3.2.0 =
435
+ * Update: SDK.
436
+ * Update: Grammer Errors.
437
+
438
+ = 3.1.9 =
439
+ * Update: Responsive icons options display logic corrected.
440
+ * Update: Twitter and other external js inclusion logic updated.
441
+ * Solved: Cancel button on banner reapplied.
442
+ * Solved: Validation for section 2 options while section 1 options are checked but not saved corrected.
443
+ * Update: Feedback system updated
444
+
445
+ = 3.1.8 =
446
+ * New Feature: Responsive icons in the plugin.
447
+ * Solved: Icons not rendering on WooCommerce product page.
448
+ * Solved: Stop loading unused external library code for faster load.
449
+ * Solved: Updated feedback system to next version.
450
+
451
+ = 3.1.7 =
452
+ * Update: Feedback system added
453
+
454
+ = 3.1.6 =
455
+ * Update: Removed Google icon.
456
+ * Update: Nonce error in Q6 preview language icons
457
+
458
+ = 3.1.5 =
459
+ * Update: Corrected typos
460
+ * Update: Updated theme suggestion data
461
+ * Update: Removed Curl error
462
+ * Update: Fixed Facebook and Twitter icons not working on some pages
463
+ * Update: Removed w3 validation errors
464
+ * Update: Removed googleplus icon
465
+
466
+ = 3.1.4 =
467
+ * Update: Solved the Undefined Notice messages.
468
+
469
+ = 3.1.3 =
470
+ * Update: Google plus like removed
471
+ * Update: Extra debug log removed
472
+ * Update: Screencast video removed
473
+ * Update: more icons included.
474
+ * Update: White background from icons removed.
475
+
476
+ = 3.1.2 =
477
+ * Update: updated the new added icons.
478
+ * Update: optimized the extraicons of premium shown to the plugin.
479
+
480
+ = 3.1.1 =
481
+ * Update: removed unwanted files.
482
+ * Update: included skins for wechat icons.
483
+ * Update: Custom skin for newly added icons.
484
+ * Update: Compatablity Errors corrected.
485
+
486
+ = 3.1.0 =
487
+ * New Feature: New icons Implemented.
488
+ * Update: Alert for checkbox conflict.
489
+ * Update: Cron implemented for rss count.
490
+ * Update: Custom icons not showing solved.
491
+
492
+
493
+ = 3.0.9 =
494
+ * Update: WooCommerce resolved conflict resulted in other conflicts - fixed.
495
+
496
+ = 3.0.8 =
497
+ * Update: Critical Security Patch.
498
+ * Update: Resolved Conflict with WooCommerce auto update.
499
+
500
+ = 3.0.7 =
501
+ * Update: Security Patch.
502
+
503
+ = 3.0.6 =
504
+ * Update: security update.
505
+ * Update: save button not working.
506
+
507
+ = 3.0.5 =
508
+ * Update: Theme cheker dom error updated.
509
+ * Update: Deprecated Google plus
510
+ * Updated: css changes to make icons more symetric.
511
+
512
+ = 3.0.4 =
513
+ * Updated: Security patch in freemius.
514
+
515
+ = 3.0.3 =
516
+ * Update: solved Undefined constant notice resolved.
517
+ * Update: offline chat email validation added.
518
+ * Update: ROUND SHORTCODE sharing error solved.
519
+ * Update: curl errors in backend solved.
520
+ * Update: ajax_object conflict solved and updated sfsi_plus_ajax.
521
+
522
+ = 3.0.2 =
523
+ * Update: Conflict solved.
524
+
525
+ = 3.0.1 =
526
+ * Update: design changes in Gutenberg.
527
+ * Update: Dashboard chat updated.
528
+ * Update: Security updates.
529
+
530
+ = 3.0.0 =
531
+ * Update: Updated gutenberg block to incorporate current changes. Added support for multiple controls on block inspector controls.
532
+ * update: In-admin-pannel chat updated for more user friendly features.
533
+
534
+ = 2.9.9 =
535
+ * Duplicate IDs removed from icon's link
536
+ * Facebook share counts (rectangle icons) do not show
537
+ * specificfeeds.com links changed to https
538
+ * Remove google like
539
+ * Click on G+ in firefox opens a new window
540
+
541
+ = 2.9.8 =
542
+ * Update: Display counts can’t be manually updated
543
+
544
+ = 2.9.7 =
545
+ * New Feature: Direct chat added to the plugins settings page.
546
+
547
+ = 2.9.6 =
548
+ * Image not showing error fixed for banner in animation section in Question 4 added
549
+
550
+ = 2.9.5 =
551
+ * Lightbox removed after click on de-activation of plugin
552
+ * Banner for animation section in Question 4 added
553
+ * Different icon for mouseover section pointing in premium in Question 4 added
554
+ * Removed theme icon banner if no match
555
+
556
+ = 2.9.4 =
557
+ * Optimized footer
558
+
559
+ = 2.9.3 =
560
+ * Fixed Gutenberg issues which arose for old PHP versions
561
+ * Removed Addthis due to GDPR compliance issues
562
+
563
+ = 2.9.2 =
564
+ * Issue fixed that click on dismiss for banner didn't dismiss it permanently
565
+ * Gutenberg implemented
566
+
567
+ = 2.9.1 =
568
+ * Count Error for newer PHP version fixed
569
+
570
+ = 2.9.0 =
571
+ * Count Error shown for newer php versions fixed.
572
+
573
+ = 2.8.9 =
574
+ * Language in Question 6 not saving issue fixed
575
+
576
+ = 2.8.8 =
577
+ * Optimized code for setting value for "adding_plustags" which caused issues on some sites
578
+
579
+ = 2.8.7 =
580
+ * Various instructions optimized
581
+
582
+ = 2.8.5 =
583
+ * Cookies don't get set anymore if selected to show pop-up when user scrolls to end of page (relevant for GDPR compliance)
584
+
585
+ = 2.8.4 =
586
+ * Like count issue fixed
587
+ * Youtube subscribe issue fixed
588
+
589
+ = 2.8.3 =
590
+ * Instagram followers count issue fixed
591
+ * Twitter count issue fixed
592
+ * Facebook share count issue fixed
593
+
594
+ = 2.8.2 =
595
+ * Non-numeric value errors fixed
596
+
597
+ = 2.8.0 =
598
+ * Removed error log files
599
+ * Follow icon sometimes showed too large - fixed
600
+
601
+ = 2.7.9 =
602
+ * Linkedin-counter after posts corrected
603
+
604
+ = 2.7.8 =
605
+ * Text changes
606
+
607
+ = 2.7.7 =
608
+ * New question for referring added
609
+
610
+ = 2.7.6 =
611
+ * Saving links for custom icons sometimes didn't work. Fixed now.
612
+
613
+ = 2.7.5 =
614
+ * Links updated
615
+
616
+ = 2.7.4 =
617
+ * Themed icons notification optimized
618
+
619
+ = 2.7.3 =
620
+ * Important bug fixed (which caused fatal error on sites with PHP version below 5.5. and sensitive error reporting on server)
621
+
622
+ = 2.7.2 =
623
+ * Banners modified
624
+ * Spelling mistakes corrected
625
+
626
+ = 2.7.1 =
627
+ * Added more themed icons banners
628
+
629
+ = 2.7.0 =
630
+ * There were conflicts when both free USM plugins were installed at the same time, those are now resolved
631
+
632
+ = 2.6.9 =
633
+ * Notification for possibility to define sharing text and pic added
634
+
635
+ = 2.6.8 =
636
+ * Link to full list of premium icons added
637
+
638
+ = 2.6.7 =
639
+ * Info added that url shortener is available in premium plugin
640
+ * Non numeric value warning fixed
641
+ * Templates with no head issue fixed
642
+
643
+ = 2.6.6 =
644
+ * Incorrect error messages removed
645
+ * Better formatting of socialshare review bar
646
+
647
+ = 2.6.5 =
648
+ * Updated so that also widget data gets removed when you de-install the plugin, so now everything is completely removed
649
+
650
+ = 2.6.4 =
651
+ * New CURL error messages to point better to the specific issue
652
+ * Error message if user is using outdated PHP version
653
+ * "Mandatory" removed from email and rss icons
654
+ * Freemius Error (uninstall hook error) fixed
655
+ * Icons not underlined anymore (was a conflict with certain themes such as twentyseventeen)
656
+ * Js removed after de-activating the icons
657
+ * Freemius image added
658
+ * After activation of plugin you're directly taken to the plugin's settings page
659
+
660
+ = 2.6.3 =
661
+ * Fremius analytics implemented
662
+
663
+ = 2.6.2 =
664
+ * More strings made translation-ready
665
+ * Better claiming of feed enabled
666
+
667
+ = 2.6.1 =
668
+ * Issue with Instagram button counters fixed
669
+
670
+ = 2.5.9 =
671
+ * Issue fixed that sometimes incorrect error-messages showed on front-end
672
+ * Credit link updated
673
+ * More icons added for pro-version
674
+ * SpecificFeeds adjusted for paid option
675
+ * De-installation will now clear database entirely
676
+ * Upgrade to pro-link renamed
677
+
678
+ = 2.5.7 =
679
+ * New option for tailor-made icons
680
+
681
+ = 2.5.6 =
682
+ * Activation/de-activation links optimized
683
+
684
+ = 2.5.5 =
685
+ * Notifications activated
686
+
687
+ = 2.5.4 =
688
+ * Notifications revised
689
+
690
+ = 2.5.3 =
691
+ * Notification added
692
+
693
+ = 2.5.1 =
694
+ * Instructions for troubleshooting optimized
695
+
696
+ = 2.5.0 =
697
+ * Facebook icon leading to empty pages (in specific cases) fixed
698
+
699
+ = 2.4.9 =
700
+ * Twitter sharing text issues with forwarded slashes fixed
701
+ * Links to review sites adjusted following WordPress changes in review section
702
+
703
+ = 2.4.7 =
704
+ * Missing counts for email follow option fixed (when there are no subscribers yet)
705
+ * Extra explanation text added
706
+
707
+ = 2.4.6 =
708
+ * Corner case vulnerability fixed
709
+
710
+ = 2.4.5 =
711
+ * Claiming box made nicer
712
+
713
+ = 2.4.4 =
714
+ * Updated PIN-it button to SAVE
715
+ * Claiming process simplified
716
+
717
+ = 2.4.3 =
718
+ * jQuery issue fixed
719
+ * Counts for SpecificFeeds-subscribers are back, getting updated once a day
720
+ * Some mouse-over issues for custom icons, fixed now
721
+
722
+ = 2.4.2 =
723
+ * Cute G+ icon didn't look good on dark backgrounds, fixed now
724
+ * Counts for SpecificFeeds-subscribers disabled due to high server load. We'll try to bring them back in a future plugin version.
725
+
726
+ = 2.4.1 =
727
+ * Size of custom icons corrected
728
+ * Cute G+ icon too small before, corrected now
729
+ * Better description how to get G+ API key added
730
+ * Unsupported "live" function in jquery fixed
731
+
732
+ = 2.3.9 =
733
+ * Language issues fixed
734
+ * Counter didn't disappear before/after posts if round icons were selected - fixed now
735
+
736
+ = 2.3.8 =
737
+ * Language folder added
738
+ * Persian added as first language
739
+ * For round icons before/after posts, the counts now correctly show the counts of the post page, not necessarily the page they are on
740
+
741
+ = 2.3.7 =
742
+ * Translation errors fixed
743
+
744
+ = 2.3.6 =
745
+ * Translation errors fixed
746
+ * Icons sometimes on top of each other - fixed
747
+ * New icon function: If user has given the icon a visit-us functionality, then it already works now when clicking on the icon (i.e. no selection in tooltip required)
748
+
749
+ = 2.3.5 =
750
+ * Errors appearing on front end fixed
751
+
752
+ = 2.3.4 =
753
+ * Plugin updated for translations
754
+ * E-NOTICE error fixed
755
+
756
+ = 2.3.3 =
757
+ * Removed the js files from plugin and using the ones provided by WP now
758
+ * POST calls optimized (sanitize, escape, validate)
759
+ * Removed feedback option
760
+ * Tags changed
761
+
762
+ = 2.3.2 =
763
+ * Feedback mechanism disabled
764
+ * Tags reduced
765
+
766
+ = 2.3.1 =
767
+ * Added Facebook share button after/before posts
768
+ * G+ design issues on black background fixed
769
+
770
+ = 2.2.9 =
771
+ * Crashes/content disappearing fixed
772
+
773
+ = 2.2.7 =
774
+ * Overkill declaration in the CSS fixed
775
+ * Custom icons can now have mailto:-functionality
776
+ * jQuery UI issues fixed
777
+ * Rectangle G+ icon now shown as last one as it takes more space (looks better)
778
+
779
+ = 2.2.6 =
780
+ * jQuery issues/conflicts fixed
781
+ * Script issues fixed
782
+ * Count issues for icons on homepage fixed
783
+ * Text added on plugin setting's page for easier understanding
784
+ * Issue that dashboard sometimes doesn't load fixed
785
+ * Instagram thin-icon issue fixed (misspelled, therefore didn't show)
786
+ * Custom icon uploads optimized
787
+
788
+ = 2.2.5 =
789
+ * Facebook changed their API - please upgrade if you want Facebook sharing on mobile to work properly on your site!
790
+
791
+ = 2.2.4 =
792
+ * Custom icon uploads optimized
793
+
794
+ = 2.2.3 =
795
+ * Houzz error message fixed
796
+
797
+ = 2.2.2 =
798
+ * Plugin made ready for translations
799
+
800
+ = 2.2.1 =
801
+ * Feed claiming optimized
802
+
803
+ = 2.2 =
804
+ * Shortpixel link updated
805
+
806
+ = 2.1 =
807
+ * Feed claiming bug fixed
808
+
809
+ = 2.0 =
810
+ * Houzz-button integrated
811
+ * New G+ button updated
812
+ * Quicker claiming of feed possible
813
+ * Comments to share-button added
814
+ * Credit to shortpixel added
815
+
816
+ = 1.9 =
817
+ * New feature: Users can now decide where exactly the floating icons will display
818
+ * Internal links corrected
819
+ * Fixed: Targets only labels within the social icons div.
820
+ * Subscriber counts fixed
821
+ * Apostrophe issues fixed
822
+ * Conflicts with Yoast SEO plugin resolved
823
+ * PHP errors fixed
824
+
825
+ = 1.8 =
826
+ * Plugin also allows a subscription form now (question 8)!
827
+
828
+ = 1.7 =
829
+ * Count issues fixed - please upgrade!
830
+ * Style constructor updated to PHP 5
831
+ * Text adjustments in admin area
832
+
833
+ = 1.6 =
834
+ * More explanations added how to fix if counts don't work
835
+ * Icon files are compressed now for faster loading - thank you ShortPixel.com!
836
+ * A typo in the code threw an error message in certain cases, this is fixed now
837
+
838
+ = 1.5 =
839
+ * jQuery issues fixed
840
+ * Vulnerability issues fixed
841
+ * Twitter-button didn't get displayed in full sometimes, this is fixed now
842
+ * CSS issues (occurred on some templates) fixed
843
+ * Facebook updated API (so counts didn't get displayed correctly anymore), we updated the plugin accordingly
844
+ * Sometimes error messages appeared on the front end, this is fixed now
845
+
846
+ = 1.4 =
847
+ * New follow-icons added
848
+ * More "rectangle" icons added before/after posts
849
+ * Widget was rendered incorrectly on some templates, fixed now
850
+ * Icons didn't always line up (on some themes), fixed now
851
+ * Youtube API got changed, which made the counts not displayed correctly, this is now adjusted in the plugin
852
+ * Slight layout adjustments in plugin's admin area
853
+
854
+
855
+ = 1.3 =
856
+ * Links with "@" in the url (e.g. as in Flickr-links) now get recognized as well
857
+ * Alignment issues of icons in tooltip fixed
858
+ * Layout optimizations in plugin area
859
+ * Users can now select to have the number of likes of their facebook page displayed as counts of the facebook icon on their blogs
860
+ * Typos in admin area corrected
861
+ * Users can now disable auto-scaling feature for mobile devices ("viewport" meta tag)
862
+
863
+ = 1.2 =
864
+ * Vulnerabilities (AJAX) fixed
865
+ * OG-issues (caused in conjunction with other plugins) fixed
866
+
867
+ = 1.1 =
868
+ * Og-issues fixed
869
+ * Conflicts with Yoast SEO plugin sorted
870
+ * Alignments under posts didn't work sometimes before, fixed now
871
+ * When user selected icons to shuffle pop-up didn't show up, fixed now
872
+ * Short code corrected
873
+ * On some templates the checkboxes in the admin area couldn't get selected, fixed now
874
+ * Links now to the correct review screen
875
+ * Share-box only displayed partly sometimes, fixed now
876
+ * When sharing from a Facebook business page it returned errors, this should be fixed now (to be observed)
877
+ * Sometimes Facebook share count didn't increase despite liking it, this should be fixed now (to be observed)
878
+ * Template CSS conflicts solved in the plugin
879
+ * Facebook sharing text issues fixed
880
+
881
+ = 1.0 =
882
+ * First release
883
+
884
+ == Upgrade Notice ==
885
+
886
+ = 3.5.0 =
887
+ * Please update
ultimate_social_media_icons.php CHANGED
@@ -7,7 +7,7 @@ Author: social share pro
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
- Version: 3.4.9
11
  License: GPLv2
12
  */
13
  if (!function_exists('get_plugins')) {
@@ -114,7 +114,7 @@ if (!is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php')) {
114
  }
115
  $instance = array("showf" => 1, "title" => '');
116
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
117
- $sfsi_plus_section8_options = unserialize($sfsi_plus_section8_options);
118
  $sfsi_plus_place_item_manually = $sfsi_plus_section8_options['sfsi_plus_place_item_manually'];
119
  if ($sfsi_plus_place_item_manually == "yes") {
120
  $return = '';
@@ -214,26 +214,19 @@ if (!is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php')) {
214
  echo '<meta property="og:image" content="' . $feat_image . '" data-id="sfsi-plus"/>';
215
  }
216
  $metadata = wp_get_attachment_metadata($attachment_id);
 
217
  if (isset($metadata) && !empty($metadata)) {
218
  if (isset($metadata['sizes']['post-thumbnail'])) {
219
  $image_type = $metadata['sizes']['post-thumbnail']['mime-type'];
220
- } else {
221
- $image_type = '';
222
  }
 
223
  if (isset($metadata['width'])) {
224
  $width = $metadata['width'];
225
- } else {
226
- $width = '';
227
  }
 
228
  if (isset($metadata['height'])) {
229
  $height = $metadata['height'];
230
- } else {
231
- $height = '';
232
- }
233
- } else {
234
- $image_type = '';
235
- $width = '';
236
- $height = '';
237
  }
238
  echo '<meta property="og:image:type" content="' . $image_type . '" data-id="sfsi-plus"/>';
239
  echo '<meta property="og:image:width" content="' . $width . '" data-id="sfsi-plus"/>';
@@ -2040,13 +2033,7 @@ if (!is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php')) {
2040
  $sfsi_plus_section1 = maybe_unserialize(get_option('sfsi_plus_section1_options', false));
2041
  $option9 = maybe_unserialize(get_option('sfsi_plus_section9_options', false));
2042
  $option6 = maybe_unserialize(get_option('sfsi_plus_section6_options', false));
2043
- // var_dump($option9["sfsi_plus_icons_float"]);
2044
- // var_dump($option9["sfsi_plus_show_via_widget"]);
2045
- // var_dump($option9["sfsi_plus_show_via_shortcode"]);
2046
- // var_dump($sfsi_plus_section1["sfsi_plus_pinterest_display"]);
2047
- // var_dump($option6["sfsi_plus_show_Onposts"]);
2048
- // var_dump($option6["sfsi_plus_rectpinit"]);
2049
- // var_dump($option9["sfsi_plus_show_via_afterposts"]);
2050
  //check if icons are displayed
2051
  if (
2052
  (
@@ -2131,17 +2118,17 @@ if (!is_plugin_active('Ultimate-Premium-Plugin/usm_premium_icons.php')) {
2131
  function sfsi_plus_conflict_admin_notice()
2132
  { ?>
2133
  <div class="success">
2134
- <p>Cannot install both Ultimate Social Media PLUS and USM Premium.</p>
2135
  </div><?php
2136
- @trigger_error(__('Cannot install both Ultimate Social Media PLUS and USM Premium.', 'ap'), E_USER_ERROR);
2137
- }
2138
- add_action('admin_notices', 'sfsi_plus_conflict_admin_notice');
2139
- register_activation_hook(__FILE__, 'sfsi_plus_conflict_admin_notice');
2140
- }
2141
 
2142
  // Carrousel
2143
  include_once __DIR__ . '/banner/misc.php';
2144
 
2145
  // Global Banner
2146
  if (!class_exists('Inisev\Subs\InisevPlugPromo')) require_once trailingslashit(__DIR__) . 'promotion/misc.php';
2147
- if (!defined('insPP_initialized')) new Inisev\Subs\InisevPlugPromo(__FILE__, 'sfsi-plus-options', 'Ultimate Social Media Plus', 'ultimate-social-media-plus');
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
+ Version: 3.5.0
11
  License: GPLv2
12
  */
13
  if (!function_exists('get_plugins')) {
114
  }
115
  $instance = array("showf" => 1, "title" => '');
116
  $sfsi_plus_section8_options = get_option("sfsi_plus_section8_options");
117
+ $sfsi_plus_section8_options = maybe_unserialize($sfsi_plus_section8_options);
118
  $sfsi_plus_place_item_manually = $sfsi_plus_section8_options['sfsi_plus_place_item_manually'];
119
  if ($sfsi_plus_place_item_manually == "yes") {
120
  $return = '';
214
  echo '<meta property="og:image" content="' . $feat_image . '" data-id="sfsi-plus"/>';
215
  }
216
  $metadata = wp_get_attachment_metadata($attachment_id);
217
+ $image_type = $width = $height = '';
218
  if (isset($metadata) && !empty($metadata)) {
219
  if (isset($metadata['sizes']['post-thumbnail'])) {
220
  $image_type = $metadata['sizes']['post-thumbnail']['mime-type'];
 
 
221
  }
222
+
223
  if (isset($metadata['width'])) {
224
  $width = $metadata['width'];
 
 
225
  }
226
+
227
  if (isset($metadata['height'])) {
228
  $height = $metadata['height'];
229
+ }
 
 
 
 
 
 
230
  }
231
  echo '<meta property="og:image:type" content="' . $image_type . '" data-id="sfsi-plus"/>';
232
  echo '<meta property="og:image:width" content="' . $width . '" data-id="sfsi-plus"/>';
2033
  $sfsi_plus_section1 = maybe_unserialize(get_option('sfsi_plus_section1_options', false));
2034
  $option9 = maybe_unserialize(get_option('sfsi_plus_section9_options', false));
2035
  $option6 = maybe_unserialize(get_option('sfsi_plus_section6_options', false));
2036
+
 
 
 
 
 
 
2037
  //check if icons are displayed
2038
  if (
2039
  (
2118
  function sfsi_plus_conflict_admin_notice()
2119
  { ?>
2120
  <div class="success">
2121
+ <p><?php _e( 'Cannot install both Ultimate Social Media PLUS and USM Premium.', SFSI_PLUS_DOMAIN ); ?></p>
2122
  </div><?php
2123
+ @trigger_error(__('Cannot install both Ultimate Social Media PLUS and USM Premium.', SFSI_PLUS_DOMAIN), E_USER_ERROR);
2124
+ }
2125
+ add_action('admin_notices', 'sfsi_plus_conflict_admin_notice');
2126
+ register_activation_hook(__FILE__, 'sfsi_plus_conflict_admin_notice');
2127
+ }
2128
 
2129
  // Carrousel
2130
  include_once __DIR__ . '/banner/misc.php';
2131
 
2132
  // Global Banner
2133
  if (!class_exists('Inisev\Subs\InisevPlugPromo')) require_once trailingslashit(__DIR__) . 'promotion/misc.php';
2134
+ if (!defined('insPP_initialized')) new Inisev\Subs\InisevPlugPromo( __FILE__, 'ultimate-social-media-plus', 'Ultimate Social Media Plus', 'sfsi-plus-options' );
views/sfsi_option_view1.php CHANGED
@@ -55,35 +55,33 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
55
  <!-- Section 1 "Which icons do you want to show on your site? " main div Start -->
56
  <div class="tab1">
57
  <p class="top_txt">
58
- <?php
59
- _e('In general, the more icons you offer the better because people have different preferences, and more options mean that there’s something for everybody, increasing the chances that you get followed and/or shared.', SFSI_PLUS_DOMAIN);
60
- ?>
61
  </p>
62
  <ul class="plus_icn_listing">
63
  <!-- RSS ICON -->
64
  <li class="gary_bg">
65
  <div class="radio_section tb_4_ck">
66
- <input name="sfsi_plus_rss_display" <?php echo ($option1['sfsi_plus_rss_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_rss_display" type="checkbox" value="yes" class="styled" />
67
  </div>
68
  <span class="sfsicls_rs_s">
69
- RSS
70
  </span>
71
  <div class="sfsiplus_right_info">
72
  <p>
73
  <span>
74
- <?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?>
75
  </span>
76
 
77
- <?php _e('RSS is still popular, esp. among the tech-savvy crowd.', SFSI_PLUS_DOMAIN); ?>
78
 
79
  <label class="expanded-area">
80
- <?php _e('RSS stands for Really Simply Syndication and is an easy way for people to read your content. ', SFSI_PLUS_DOMAIN); ?>
81
  <a href="http://en.wikipedia.org/wiki/RSS" target="_new" title="Syndication">
82
- <?php _e('Learn more about RSS', SFSI_PLUS_DOMAIN); ?>
83
  </a>.
84
  </label>
85
  </p>
86
- <a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
87
  </div>
88
  </li>
89
  <!-- END RSS ICON -->
@@ -92,35 +90,35 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
92
  <li class="gary_bg">
93
  <div>
94
  <div class="radio_section tb_4_ck">
95
- <input name="sfsi_plus_email_display" <?php echo ($option1['sfsi_plus_email_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_email_display" type="checkbox" value="yes" class="styled" />
96
  </div>
97
  <span class="sfsicls_email">
98
- Email
99
  </span>
100
  </div>
101
 
102
  <div class="sfsiplus_right_info">
103
  <p>
104
  <span>
105
- <?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?>
106
  </span>
107
 
108
- <?php _e('Email is the most effective tool to build up followership.', SFSI_PLUS_DOMAIN); ?>
109
 
110
  <span style="float: right;margin-right: 13px; margin-top: -3px;">
111
  <?php if (get_option('sfsi_plus_footer_sec') == "yes") {
112
- $nonce = wp_create_nonce("remove_plusfooter"); ?> <a style="font-size:13px;margin-left:30px;color:#777777;" href="javascript:;" class="sfsiplus_removeFooter" data-nonce="<?php echo $nonce; ?>"><?php _e('Remove credit link', SFSI_PLUS_DOMAIN); ?></a>
113
  <?php } ?>
114
  </span>
115
  <label class="expanded-area">
116
- <?php _e('Everybody uses email – that’s why it’s much more effective than social media to make people follow you', SFSI_PLUS_DOMAIN); ?>
117
  (<a href="http://www.entrepreneur.com/article/230949" target="_new">
118
- <?php _e('learn more', SFSI_PLUS_DOMAIN); ?>
119
  </a>)
120
- <?php _e('Not offering an email subscription option mean losing out on future traffic to your site.', SFSI_PLUS_DOMAIN); ?>
121
  </label>
122
  </p>
123
- <a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
124
  </div>
125
  </li>
126
  <!-- EMAIL ICON -->
@@ -130,23 +128,23 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
130
  <div>
131
 
132
  <div class="radio_section tb_4_ck">
133
- <input name="sfsi_plus_facebook_display" <?php echo ($option1['sfsi_plus_facebook_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_facebook_display" type="checkbox" value="yes" class="styled" />
134
  </div>
135
  <span class="sfsicls_facebook">
136
- Facebook
137
  </span>
138
  </div>
139
 
140
  <div class="sfsiplus_right_info">
141
  <p>
142
- <span><?php _e('Strongly recommended:', SFSI_PLUS_DOMAIN); ?></span>
143
- <?php _e('Facebook is crucial, esp. for sharing.', SFSI_PLUS_DOMAIN); ?>
144
 
145
  <label class="expanded-area">
146
  <?php _e('Facebook is the giant in the social media world, and even if you don’t have a Facebook account yourself you should display this icon, so that Facebook users can share your site on Facebook.', SFSI_PLUS_DOMAIN); ?>
147
  </label>
148
  </p>
149
- <a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
150
  </div>
151
  </li>
152
  <!-- END FACEBOOK ICON -->
@@ -154,9 +152,8 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
154
  <!-- TWITTER ICON -->
155
  <li class="gary_bg">
156
  <div>
157
-
158
  <div class="radio_section tb_4_ck">
159
- <input name="sfsi_plus_twitter_display" <?php echo ($option1['sfsi_plus_twitter_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_twitter_display" type="checkbox" value="yes" class="styled" />
160
  </div>
161
  <span class="sfsicls_twt">
162
  Twitter
@@ -172,7 +169,7 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
172
  </label>
173
  </p>
174
 
175
- <a href="javascript:;" class="expand-area"><?php _e('Read more', SFSI_PLUS_DOMAIN); ?></a>
176
  </div>
177
  </li>
178
  <!-- END TWITTER ICON -->
@@ -183,16 +180,16 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
183
  <div>
184
 
185
  <div class="radio_section tb_4_ck">
186
- <input name="sfsi_plus_youtube_display" <?php echo ($option1['sfsi_plus_youtube_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_youtube_display" type="checkbox" value="yes" class="styled" />
187
  </div>
188
  <span class="sfsicls_utube">
189
- Youtube
190
  </span>
191
  </div>
192
  <div class="sfsiplus_right_info">
193
  <p>
194
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
195
- <?php _e('Show this icon if you have a youtube account (and you should set up one if you have video content – that can increase your traffic significantly).', SFSI_PLUS_DOMAIN); ?>
196
  </p>
197
  </div>
198
  </li>
@@ -202,10 +199,10 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
202
  <li class="vertical-align">
203
  <div>
204
  <div class="radio_section tb_4_ck">
205
- <input name="sfsi_plus_linkedin_display" <?php echo ($option1['sfsi_plus_linkedin_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_linkedin_display" type="checkbox" value="yes" class="styled" />
206
  </div>
207
  <span class="sfsicls_linkdin">
208
- LinkedIn
209
  </span>
210
  </div>
211
  <div class="sfsiplus_right_info">
@@ -221,16 +218,16 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
221
  <li class="vertical-align">
222
  <div>
223
  <div class="radio_section tb_4_ck">
224
- <input name="sfsi_plus_pinterest_display" <?php echo ($option1['sfsi_plus_pinterest_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_pinterest_display" type="checkbox" value="yes" class="styled" />
225
  </div>
226
  <span class="sfsicls_pinterest">
227
- Pinterest
228
  </span>
229
  </div>
230
  <div class="sfsiplus_right_info">
231
  <p>
232
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
233
- <?php _e('Show this icon if you have a Pinterest account (and you should set up one if you publish new pictures regularly – that can increase your traffic significantly).', SFSI_PLUS_DOMAIN); ?>
234
  </p>
235
  </div>
236
  </li>
@@ -239,45 +236,42 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
239
  <!-- INSTAGRAM ICON -->
240
  <li class="vertical-align">
241
  <div>
242
- <div class="radio_section tb_4_ck"><input name="sfsi_plus_instagram_display" <?php echo ($option1['sfsi_plus_instagram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_instagram_display" type="checkbox" value="yes" class="styled" /></div>
243
  <span class="sfsicls_instagram">
244
- Instagram
245
  </span>
246
  </div>
247
  <div class="sfsiplus_right_info">
248
  <p>
249
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
250
- <?php _e('Show this icon if you have an Instagram account.', SFSI_PLUS_DOMAIN); ?>
251
  </p>
252
  </div>
253
  </li>
254
  <!-- END INSTAGRAM ICON -->
255
 
256
-
257
  <!-- Houzz ICON -->
258
  <li class="vertical-align">
259
  <div>
260
  <div class="radio_section tb_4_ck">
261
- <input name="sfsi_plus_houzz_display" <?php echo (isset($option1['sfsi_plus_houzz_display']) && $option1['sfsi_plus_houzz_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_houzz_display" type="checkbox" value="yes" class="styled" />
262
  </div>
263
  <span class="sfsicls_houzz">
264
- Houzz
265
  </span>
266
  </div>
267
  <div class="sfsiplus_right_info">
268
  <p>
269
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
270
- <?php _e('Show this icon if you have a Houzz account.', SFSI_PLUS_DOMAIN); ?>
271
 
272
- <?php _e('Houzz is the No.1 site & community in the world of architecture and interior design.', SFSI_PLUS_DOMAIN); ?>
273
  <a href="http://www.houzz.com/" target="_blank">
274
- <?php _e('Visit Houzz', SFSI_PLUS_DOMAIN); ?>
275
  </a>
276
  </p>
277
  </div>
278
  </li>
279
-
280
-
281
  <!-- END Houzz ICON -->
282
 
283
  <!--MZ CODE-->
@@ -286,14 +280,14 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
286
  <li class="vertical-align">
287
  <div>
288
  <div class="radio_section tb_4_ck">
289
- <input name="sfsi_plus_ok_display" <?php echo (isset($option1['sfsi_plus_ok_display']) && $option1['sfsi_plus_ok_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_ok_display" type="checkbox" value="yes" class="styled" />
290
  </div>
291
- <span class="sfsicls_ok">OK</span>
292
  </div>
293
  <div class="sfsiplus_right_info">
294
  <p>
295
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
296
- <?php _e('Show this icon if you have an OK account.', SFSI_PLUS_DOMAIN); ?>
297
  </p>
298
  </div>
299
  </li>
@@ -303,33 +297,31 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
303
  <li class="vertical-align">
304
  <div>
305
  <div class="radio_section tb_4_ck">
306
- <input name="sfsi_plus_telegram_display" <?php echo (isset($option1['sfsi_plus_telegram_display']) && $option1['sfsi_plus_telegram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_telegram_display" type="checkbox" value="yes" class="styled" />
307
  </div>
308
- <span class="sfsicls_telegram">Telegram</span>
309
  </div>
310
  <div class="sfsiplus_right_info">
311
  <p>
312
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
313
- <?php _e('Show this icon if you have a Telegram account.', SFSI_PLUS_DOMAIN); ?>
314
  </p>
315
  </div>
316
  </li>
317
  <!-- END Telegram ICON -->
318
 
319
-
320
-
321
  <!-- VK ICON -->
322
  <li class="vertical-align">
323
  <div>
324
  <div class="radio_section tb_4_ck">
325
- <input name="sfsi_plus_vk_display" <?php echo (isset($option1['sfsi_plus_vk_display']) && $option1['sfsi_plus_vk_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_vk_display" type="checkbox" value="yes" class="styled" />
326
  </div>
327
- <span class="sfsicls_vk">VK</span>
328
  </div>
329
  <div class="sfsiplus_right_info">
330
  <p>
331
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
332
- <?php _e('Show this icon if you have a VK account.', SFSI_PLUS_DOMAIN); ?>
333
  </p>
334
  </div>
335
  </li>
@@ -339,14 +331,14 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
339
  <li class="vertical-align">
340
  <div>
341
  <div class="radio_section tb_4_ck">
342
- <input name="sfsi_plus_wechat_display" <?php echo (isset($option1['sfsi_plus_wechat_display']) && $option1['sfsi_plus_wechat_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_wechat_display" type="checkbox" value="yes" class="styled" />
343
  </div>
344
- <span class="sfsicls_wechat">WeChat</span>
345
  </div>
346
  <div class="sfsiplus_right_info">
347
  <p>
348
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
349
- <?php _e('Show this icon if you have a WeChat account.', SFSI_PLUS_DOMAIN); ?>
350
  </p>
351
  </div>
352
  </li>
@@ -356,14 +348,14 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
356
  <li class="vertical-align">
357
  <div>
358
  <div class="radio_section tb_4_ck">
359
- <input name="sfsi_plus_whatsapp_display" <?php echo (isset($option1['sfsi_plus_whatsapp_display']) && $option1['sfsi_plus_whatsapp_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_whatsapp_display" type="checkbox" value="yes" class="styled" />
360
  </div>
361
- <span class="sfsicls_whatsapp">WhatsApp</span>
362
  </div>
363
  <div class="sfsiplus_right_info">
364
  <p>
365
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
366
- <?php _e('Show this icon if you want to allow users to share the page via WhatsApp.', SFSI_PLUS_DOMAIN); ?>
367
  </p>
368
  </div>
369
  </li>
@@ -373,15 +365,15 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
373
  <li class="vertical-align">
374
  <div>
375
  <div class="radio_section tb_4_ck">
376
- <input name="sfsi_plus_weibo_display" <?php echo (isset($option1['sfsi_plus_weibo_display']) && $option1['sfsi_plus_weibo_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_weibo_display" type="checkbox" value="yes" class="styled" />
377
  </div>
378
- <span class="sfsicls_weibo">Weibo</span>
379
  </div>
380
 
381
  <div class="sfsiplus_right_info">
382
  <p>
383
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
384
- <?php _e('Show this icon if you have a Weibo account.', SFSI_PLUS_DOMAIN); ?>
385
  </p>
386
  </div>
387
  </li>
@@ -393,7 +385,7 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
393
 
394
  <?php
395
  if (get_option('sfsi_plus_custom_icons') == 'no') {
396
- $icons = (isset($option1['sfsi_custom_files'])) ? unserialize($option1['sfsi_custom_files']) : array();
397
  if (!is_array($icons)) {
398
  $icons = array();
399
  }
@@ -436,18 +428,18 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
436
  </span>
437
 
438
  <span class="custom sfsiplus_custom-txt" style="font-weight:normal;opacity:0.5;margin-left:2px">
439
- <?php _e('Custom icon', SFSI_PLUS_DOMAIN); ?>
440
  </span>
441
  </a>
442
 
443
  <div class="sfsiplus_right_info ">
444
  <p>
445
  <a style="color: #12a252 !important;font-weight: bold; border-bottom:none;text-decoration: none;">
446
- <?php _e('Premium Feature:', SFSI_PLUS_DOMAIN); ?>
447
  </a>
448
  <?php _e('Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN); ?>
449
  <a class="pop-up" style="cursor:pointer; color: #12a252 !important;border-bottom: 1px solid #12a252;text-decoration: none;" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
450
- <?php _e('Get it now.', SFSI_PLUS_DOMAIN); ?>
451
  </a>
452
  </p>
453
  </div>
@@ -458,7 +450,7 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
458
  <?php if (get_option('sfsi_plus_custom_icons') == 'yes') { ?>
459
  <!-- Custom icon section start here -->
460
  <?php
461
- $icons = (isset($option1['sfsi_custom_files'])) ? unserialize($option1['sfsi_custom_files']) : array();
462
  if (!is_array($icons)) {
463
  $icons = array();
464
  }
@@ -494,7 +486,7 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
494
  <div class="sfsiplus_right_info">
495
  <p>
496
  <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
497
- <?php _e('Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN); ?>
498
  </p>
499
  </div>
500
  </li>
@@ -515,167 +507,165 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
515
  </span>
516
 
517
  <span class="custom sfsiplus_custom-txt">
518
- <?php _e('Custom', SFSI_PLUS_DOMAIN); ?>
519
  <?php echo $count; ?>
520
  </span>
521
  </div>
522
 
523
  <div class="sfsiplus_right_info">
524
  <p>
525
- <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
526
- <?php _e('Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN); ?>
527
  </p>
528
  </div>
529
  </li>
530
  <?php endif; ?>
531
  <!-- END Custom icon section here -->
532
  <?php } ?>
533
-
534
-
535
  </ul>
536
  <ul>
537
  <li class="sfsi_plus_premium_brdr_box">
538
  <div class="sfsi_plus_prem_icons_added">
539
  <div class="sf_si_plus_prmium_head">
540
- <h2><?php _e('New: ', SFSI_PLUS_DOMAIN); ?><span> <?php _e('In our Premium Plugin we added icons for:', SFSI_PLUS_DOMAIN); ?></span></h2>
541
  </div>
542
  <div class="sfsi_plus_premium_row">
543
  <div class="sfsi_plus_prem_cmn_rowlisting">
544
  <span>
545
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/snapchat.png'; ?>" id="CImg" />
546
  </span>
547
- <span class="sfsicls_plus_prem_text"><?php _e('Snapchat', SFSI_PLUS_DOMAIN); ?></span>
548
  </div>
549
 
550
  <div class="sfsi_plus_prem_cmn_rowlisting">
551
  <span>
552
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/whatsapp.png'; ?>" id="CImg" />
553
  </span>
554
- <span class="sfsicls_plus_prem_text"><?php _e('WhatsApp or Phone', SFSI_PLUS_DOMAIN); ?></span>
555
  </div>
556
 
557
  <div class="sfsi_plus_prem_cmn_rowlisting">
558
  <span>
559
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/yummly.png'; ?>" id="CImg" />
560
  </span>
561
- <span class="sfsicls_plus_prem_text"><?php _e('Yummly', SFSI_PLUS_DOMAIN); ?></span>
562
  </div>
563
  <div class="sfsi_plus_prem_cmn_rowlisting">
564
  <span>
565
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/yelp.png'; ?>" id="CImg" />
566
  </span>
567
- <span class="sfsicls_plus_prem_text"><?php _e('Yelp', SFSI_PLUS_DOMAIN); ?></span>
568
  </div>
569
  <div class="sfsi_plus_prem_cmn_rowlisting">
570
  <span>
571
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/print.png'; ?>" id="CImg" />
572
  </span>
573
- <span class="sfsicls_plus_prem_text"><?php _e('Print', SFSI_PLUS_DOMAIN); ?></span>
574
  </div>
575
  </div>
576
  <div class="sfsi_plus_premium_row">
577
  <div class="sfsi_plus_prem_cmn_rowlisting">
578
  <span>
579
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/soundcloud.png'; ?>" id="CImg" />
580
  </span>
581
- <span class="sfsicls_plus_prem_text"><?php _e('Soundcloud', SFSI_PLUS_DOMAIN); ?></span>
582
  </div>
583
 
584
  <div class="sfsi_plus_prem_cmn_rowlisting">
585
  <span>
586
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/skype.png'; ?>" id="CImg" />
587
  </span>
588
- <span class="sfsicls_plus_prem_text"><?php _e('Skype', SFSI_PLUS_DOMAIN); ?></span>
589
  </div>
590
  <div class="sfsi_plus_prem_cmn_rowlisting">
591
  <span>
592
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/flickr.png'; ?>" id="CImg" />
593
  </span>
594
- <span class="sfsicls_plus_prem_text"><?php _e('Flickr', SFSI_PLUS_DOMAIN); ?></span>
595
  </div>
596
 
597
  <div class="sfsi_plus_prem_cmn_rowlisting">
598
  <span>
599
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/angieslist.png'; ?>" id="CImg" />
600
  </span>
601
- <span class="sfsicls_plus_prem_text"><?php _e('Angie’s List', SFSI_PLUS_DOMAIN); ?></span>
602
  </div>
603
 
604
  <div class="sfsi_plus_prem_cmn_rowlisting">
605
  <span>
606
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/reddit.png'; ?>" id="CImg" />
607
  </span>
608
- <span class="sfsicls_plus_prem_text"><?php _e('Reddit', SFSI_PLUS_DOMAIN); ?></span>
609
  </div>
610
  </div>
611
  <div class="sfsi_plus_premium_row">
612
  <div class="sfsi_plus_prem_cmn_rowlisting">
613
  <span>
614
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/vimeo.png'; ?>" id="CImg" />
615
  </span>
616
- <span class="sfsicls_plus_prem_text"><?php _e('Vimeo', SFSI_PLUS_DOMAIN); ?></span>
617
  </div>
618
 
619
  <div class="sfsi_plus_prem_cmn_rowlisting">
620
  <span>
621
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/tumblr.png'; ?>" id="CImg" />
622
  </span>
623
- <span class="sfsicls_plus_prem_text"><?php _e('Tumblr', SFSI_PLUS_DOMAIN); ?></span>
624
  </div>
625
  <div class="sfsi_plus_prem_cmn_rowlisting">
626
  <span>
627
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/buffer.png'; ?>" id="CImg" />
628
  </span>
629
- <span class="sfsicls_plus_prem_text"><?php _e('Buffer', SFSI_PLUS_DOMAIN); ?></span>
630
  </div>
631
  <div class="sfsi_plus_prem_cmn_rowlisting">
632
  <span>
633
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/blogger.png'; ?>" id="CImg" />
634
  </span>
635
- <span class="sfsicls_plus_prem_text"><?php _e('Blogger', SFSI_PLUS_DOMAIN); ?></span>
636
  </div>
637
 
638
  <div class="sfsi_plus_prem_cmn_rowlisting">
639
  <span>
640
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/steam.png'; ?>" id="CImg" />
641
  </span>
642
- <span class="sfsicls_plus_prem_text"><?php _e('Steam', SFSI_PLUS_DOMAIN); ?></span>
643
  </div>
644
  </div>
645
  <div class="sfsi_plus_premium_row">
646
  <div class="sfsi_plus_prem_cmn_rowlisting">
647
  <span>
648
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/xing.png'; ?>" id="CImg" />
649
  </span>
650
- <span class="sfsicls_plus_prem_text"><?php _e('Xing', SFSI_PLUS_DOMAIN); ?></span>
651
  </div>
652
 
653
  <div class="sfsi_plus_prem_cmn_rowlisting">
654
  <span>
655
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/amazon.png'; ?>" id="CImg" />
656
  </span>
657
- <span class="sfsicls_plus_prem_text"><?php _e('Amazon', SFSI_PLUS_DOMAIN); ?></span>
658
  </div>
659
  <div class="sfsi_plus_prem_cmn_rowlisting">
660
  <span>
661
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/twitch.png'; ?>" id="CImg" />
662
  </span>
663
- <span class="sfsicls_plus_prem_text"><?php _e('Twitch', SFSI_PLUS_DOMAIN); ?></span>
664
  </div>
665
  <div class="sfsi_plus_prem_cmn_rowlisting">
666
  <span>
667
- <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/messenger.png'; ?>" id="CImg" />
668
  </span>
669
- <span class="sfsicls_plus_prem_text"><?php _e('Messenger', SFSI_PLUS_DOMAIN); ?></span>
670
  </div>
671
  </div>
672
  <div class="sfsi_plus_need_another_one_link">
673
- <!-- <p><?php _e('Need another one?', SFSI_PLUS_DOMAIN); ?><a href="mailto:biz@ultimatelysocial.com" target="_blank"> <?php _e('Tell us', SFSI_PLUS_DOMAIN); ?></a></p> -->
674
  </div>
675
  <div class="sfsi_plus_need_another_tell_us">
676
- <a href="https://www.ultimatelysocial.com/all-platforms/" target="_blank"><?php _e('...and many more!', SFSI_PLUS_DOMAIN); ?></a>
677
  <a class="pop-up" style="cursor:pointer" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
678
- <?php _e(' Go premium now', SFSI_PLUS_DOMAIN); ?>
679
  </a>
680
  <!-- <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=more_platforms&utm_medium=banner" target="_blank"><?php _e('See all features Premium Plugin', SFSI_PLUS_DOMAIN); ?></a>
681
  -->
@@ -693,7 +683,7 @@ $option1['sfsi_plus_weibo_display'] = (isset($option1['sfsi_plus_weibo_display']
693
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
694
  <?php $nonce = wp_create_nonce("update_plus_step1"); ?>
695
  <a href="javascript:;" id="sfsi_plus_save1" title="Save" data-nonce="<?php echo $nonce; ?>">
696
- <?php _e('Save', SFSI_PLUS_DOMAIN); ?>
697
  </a>
698
  </div>
699
  <!-- END SAVE BUTTON SECTION -->
55
  <!-- Section 1 "Which icons do you want to show on your site? " main div Start -->
56
  <div class="tab1">
57
  <p class="top_txt">
58
+ <?php _e( 'In general, the more icons you offer the better because people have different preferences, and more options mean that there’s something for everybody, increasing the chances that you get followed and/or shared.', SFSI_PLUS_DOMAIN ); ?>
 
 
59
  </p>
60
  <ul class="plus_icn_listing">
61
  <!-- RSS ICON -->
62
  <li class="gary_bg">
63
  <div class="radio_section tb_4_ck">
64
+ <input name="sfsi_plus_rss_display" <?php echo ($option1['sfsi_plus_rss_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_rss_display" type="checkbox" value="yes" class="styled" />
65
  </div>
66
  <span class="sfsicls_rs_s">
67
+ <?php _e( 'RSS', SFSI_PLUS_DOMAIN ); ?>
68
  </span>
69
  <div class="sfsiplus_right_info">
70
  <p>
71
  <span>
72
+ <?php _e( 'Strongly recommended:', SFSI_PLUS_DOMAIN ); ?>
73
  </span>
74
 
75
+ <?php _e( 'RSS is still popular, esp. among the tech-savvy crowd.', SFSI_PLUS_DOMAIN ); ?>
76
 
77
  <label class="expanded-area">
78
+ <?php _e( 'RSS stands for Really Simply Syndication and is an easy way for people to read your content. ', SFSI_PLUS_DOMAIN ); ?>
79
  <a href="http://en.wikipedia.org/wiki/RSS" target="_new" title="Syndication">
80
+ <?php _e( 'Learn more about RSS', SFSI_PLUS_DOMAIN ); ?>
81
  </a>.
82
  </label>
83
  </p>
84
+ <a href="javascript:;" class="expand-area"><?php _e( 'Read more', SFSI_PLUS_DOMAIN ); ?></a>
85
  </div>
86
  </li>
87
  <!-- END RSS ICON -->
90
  <li class="gary_bg">
91
  <div>
92
  <div class="radio_section tb_4_ck">
93
+ <input name="sfsi_plus_email_display" <?php echo ($option1['sfsi_plus_email_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_email_display" type="checkbox" value="yes" class="styled" />
94
  </div>
95
  <span class="sfsicls_email">
96
+ <?php _e( 'Email', SFSI_PLUS_DOMAIN ); ?>
97
  </span>
98
  </div>
99
 
100
  <div class="sfsiplus_right_info">
101
  <p>
102
  <span>
103
+ <?php _e( 'Strongly recommended:', SFSI_PLUS_DOMAIN ); ?>
104
  </span>
105
 
106
+ <?php _e( 'Email is the most effective tool to build up followership.', SFSI_PLUS_DOMAIN ); ?>
107
 
108
  <span style="float: right;margin-right: 13px; margin-top: -3px;">
109
  <?php if (get_option('sfsi_plus_footer_sec') == "yes") {
110
+ $nonce = wp_create_nonce("remove_plusfooter"); ?> <a style="font-size:13px;margin-left:30px;color:#777777;" href="javascript:;" class="sfsiplus_removeFooter" data-nonce="<?php echo $nonce; ?>"><?php _e( 'Remove credit link', SFSI_PLUS_DOMAIN ); ?></a>
111
  <?php } ?>
112
  </span>
113
  <label class="expanded-area">
114
+ <?php _e( 'Everybody uses email – that’s why it’s much more effective than social media to make people follow you', SFSI_PLUS_DOMAIN ); ?>
115
  (<a href="http://www.entrepreneur.com/article/230949" target="_new">
116
+ <?php _e( 'learn more', SFSI_PLUS_DOMAIN ); ?>
117
  </a>)
118
+ <?php _e( 'Not offering an email subscription option mean losing out on future traffic to your site.', SFSI_PLUS_DOMAIN ); ?>
119
  </label>
120
  </p>
121
+ <a href="javascript:;" class="expand-area"><?php _e( 'Read more', SFSI_PLUS_DOMAIN ); ?></a>
122
  </div>
123
  </li>
124
  <!-- EMAIL ICON -->
128
  <div>
129
 
130
  <div class="radio_section tb_4_ck">
131
+ <input name="sfsi_plus_facebook_display" <?php echo ($option1['sfsi_plus_facebook_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_facebook_display" type="checkbox" value="yes" class="styled" />
132
  </div>
133
  <span class="sfsicls_facebook">
134
+ <?php _e( 'Facebook', SFSI_PLUS_DOMAIN ); ?>
135
  </span>
136
  </div>
137
 
138
  <div class="sfsiplus_right_info">
139
  <p>
140
+ <span><?php _e( 'Strongly recommended:', SFSI_PLUS_DOMAIN ); ?></span>
141
+ <?php _e( 'Facebook is crucial, esp. for sharing.', SFSI_PLUS_DOMAIN ); ?>
142
 
143
  <label class="expanded-area">
144
  <?php _e('Facebook is the giant in the social media world, and even if you don’t have a Facebook account yourself you should display this icon, so that Facebook users can share your site on Facebook.', SFSI_PLUS_DOMAIN); ?>
145
  </label>
146
  </p>
147
+ <a href="javascript:;" class="expand-area"><?php _e( 'Read more', SFSI_PLUS_DOMAIN ); ?></a>
148
  </div>
149
  </li>
150
  <!-- END FACEBOOK ICON -->
152
  <!-- TWITTER ICON -->
153
  <li class="gary_bg">
154
  <div>
 
155
  <div class="radio_section tb_4_ck">
156
+ <input name="sfsi_plus_twitter_display" <?php echo ( $option1['sfsi_plus_twitter_display'] == 'yes' ) ? 'checked="true"' : ''; ?> id="sfsi_plus_twitter_display" type="checkbox" value="yes" class="styled" />
157
  </div>
158
  <span class="sfsicls_twt">
159
  Twitter
169
  </label>
170
  </p>
171
 
172
+ <a href="javascript:;" class="expand-area"><?php _e( 'Read more', SFSI_PLUS_DOMAIN ); ?></a>
173
  </div>
174
  </li>
175
  <!-- END TWITTER ICON -->
180
  <div>
181
 
182
  <div class="radio_section tb_4_ck">
183
+ <input name="sfsi_plus_youtube_display" <?php echo ($option1['sfsi_plus_youtube_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_youtube_display" type="checkbox" value="yes" class="styled" />
184
  </div>
185
  <span class="sfsicls_utube">
186
+ <?php _e( 'Youtube', SFSI_PLUS_DOMAIN ); ?>
187
  </span>
188
  </div>
189
  <div class="sfsiplus_right_info">
190
  <p>
191
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
192
+ <?php _e( 'Show this icon if you have a youtube account (and you should set up one if you have video content – that can increase your traffic significantly).', SFSI_PLUS_DOMAIN ); ?>
193
  </p>
194
  </div>
195
  </li>
199
  <li class="vertical-align">
200
  <div>
201
  <div class="radio_section tb_4_ck">
202
+ <input name="sfsi_plus_linkedin_display" <?php echo ( $option1['sfsi_plus_linkedin_display'] == 'yes' ) ? 'checked="true"' : ''; ?> id="sfsi_plus_linkedin_display" type="checkbox" value="yes" class="styled" />
203
  </div>
204
  <span class="sfsicls_linkdin">
205
+ <?php _e( 'LinkedIn', SFSI_PLUS_DOMAIN ); ?>
206
  </span>
207
  </div>
208
  <div class="sfsiplus_right_info">
218
  <li class="vertical-align">
219
  <div>
220
  <div class="radio_section tb_4_ck">
221
+ <input name="sfsi_plus_pinterest_display" <?php echo ($option1['sfsi_plus_pinterest_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_pinterest_display" type="checkbox" value="yes" class="styled" />
222
  </div>
223
  <span class="sfsicls_pinterest">
224
+ <?php _e( 'Pinterest', SFSI_PLUS_DOMAIN ); ?>
225
  </span>
226
  </div>
227
  <div class="sfsiplus_right_info">
228
  <p>
229
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
230
+ <?php _e( 'Show this icon if you have a Pinterest account (and you should set up one if you publish new pictures regularly – that can increase your traffic significantly).', SFSI_PLUS_DOMAIN ); ?>
231
  </p>
232
  </div>
233
  </li>
236
  <!-- INSTAGRAM ICON -->
237
  <li class="vertical-align">
238
  <div>
239
+ <div class="radio_section tb_4_ck"><input name="sfsi_plus_instagram_display" <?php echo ($option1['sfsi_plus_instagram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_instagram_display" type="checkbox" value="yes" class="styled" /></div>
240
  <span class="sfsicls_instagram">
241
+ <?php _e( 'Instagram', SFSI_PLUS_DOMAIN ); ?>
242
  </span>
243
  </div>
244
  <div class="sfsiplus_right_info">
245
  <p>
246
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
247
+ <?php _e( 'Show this icon if you have an Instagram account.', SFSI_PLUS_DOMAIN ); ?>
248
  </p>
249
  </div>
250
  </li>
251
  <!-- END INSTAGRAM ICON -->
252
 
 
253
  <!-- Houzz ICON -->
254
  <li class="vertical-align">
255
  <div>
256
  <div class="radio_section tb_4_ck">
257
+ <input name="sfsi_plus_houzz_display" <?php echo (isset($option1['sfsi_plus_houzz_display']) && $option1['sfsi_plus_houzz_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_houzz_display" type="checkbox" value="yes" class="styled" />
258
  </div>
259
  <span class="sfsicls_houzz">
260
+ <?php _e( 'Houzz', SFSI_PLUS_DOMAIN ); ?>
261
  </span>
262
  </div>
263
  <div class="sfsiplus_right_info">
264
  <p>
265
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
266
+ <?php _e( 'Show this icon if you have a Houzz account.', SFSI_PLUS_DOMAIN ); ?>
267
 
268
+ <?php _e( 'Houzz is the No.1 site & community in the world of architecture and interior design.', SFSI_PLUS_DOMAIN ); ?>
269
  <a href="http://www.houzz.com/" target="_blank">
270
+ <?php _e( 'Visit Houzz', SFSI_PLUS_DOMAIN ); ?>
271
  </a>
272
  </p>
273
  </div>
274
  </li>
 
 
275
  <!-- END Houzz ICON -->
276
 
277
  <!--MZ CODE-->
280
  <li class="vertical-align">
281
  <div>
282
  <div class="radio_section tb_4_ck">
283
+ <input name="sfsi_plus_ok_display" <?php echo (isset($option1['sfsi_plus_ok_display']) && $option1['sfsi_plus_ok_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_ok_display" type="checkbox" value="yes" class="styled" />
284
  </div>
285
+ <span class="sfsicls_ok"><?php _e( 'OK', SFSI_PLUS_DOMAIN ); ?></span>
286
  </div>
287
  <div class="sfsiplus_right_info">
288
  <p>
289
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
290
+ <?php _e( 'Show this icon if you have an OK account.', SFSI_PLUS_DOMAIN ); ?>
291
  </p>
292
  </div>
293
  </li>
297
  <li class="vertical-align">
298
  <div>
299
  <div class="radio_section tb_4_ck">
300
+ <input name="sfsi_plus_telegram_display" <?php echo (isset($option1['sfsi_plus_telegram_display']) && $option1['sfsi_plus_telegram_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_telegram_display" type="checkbox" value="yes" class="styled" />
301
  </div>
302
+ <span class="sfsicls_telegram"><?php _e( 'Telegram', SFSI_PLUS_DOMAIN ); ?></span>
303
  </div>
304
  <div class="sfsiplus_right_info">
305
  <p>
306
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
307
+ <?php _e( 'Show this icon if you have a Telegram account.', SFSI_PLUS_DOMAIN ); ?>
308
  </p>
309
  </div>
310
  </li>
311
  <!-- END Telegram ICON -->
312
 
 
 
313
  <!-- VK ICON -->
314
  <li class="vertical-align">
315
  <div>
316
  <div class="radio_section tb_4_ck">
317
+ <input name="sfsi_plus_vk_display" <?php echo (isset($option1['sfsi_plus_vk_display']) && $option1['sfsi_plus_vk_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_vk_display" type="checkbox" value="yes" class="styled" />
318
  </div>
319
+ <span class="sfsicls_vk"><?php _e( 'VK', SFSI_PLUS_DOMAIN ); ?></span>
320
  </div>
321
  <div class="sfsiplus_right_info">
322
  <p>
323
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
324
+ <?php _e( 'Show this icon if you have a VK account.', SFSI_PLUS_DOMAIN ); ?>
325
  </p>
326
  </div>
327
  </li>
331
  <li class="vertical-align">
332
  <div>
333
  <div class="radio_section tb_4_ck">
334
+ <input name="sfsi_plus_wechat_display" <?php echo (isset($option1['sfsi_plus_wechat_display']) && $option1['sfsi_plus_wechat_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_wechat_display" type="checkbox" value="yes" class="styled" />
335
  </div>
336
+ <span class="sfsicls_wechat"><?php _e( 'WeChat', SFSI_PLUS_DOMAIN ); ?></span>
337
  </div>
338
  <div class="sfsiplus_right_info">
339
  <p>
340
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
341
+ <?php _e( 'Show this icon if you have a WeChat account.', SFSI_PLUS_DOMAIN ); ?>
342
  </p>
343
  </div>
344
  </li>
348
  <li class="vertical-align">
349
  <div>
350
  <div class="radio_section tb_4_ck">
351
+ <input name="sfsi_plus_whatsapp_display" <?php echo (isset($option1['sfsi_plus_whatsapp_display']) && $option1['sfsi_plus_whatsapp_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_whatsapp_display" type="checkbox" value="yes" class="styled" />
352
  </div>
353
+ <span class="sfsicls_whatsapp"><?php _e( 'WhatsApp', SFSI_PLUS_DOMAIN ); ?></span>
354
  </div>
355
  <div class="sfsiplus_right_info">
356
  <p>
357
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
358
+ <?php _e( 'Show this icon if you want to allow users to share the page via WhatsApp.', SFSI_PLUS_DOMAIN ); ?>
359
  </p>
360
  </div>
361
  </li>
365
  <li class="vertical-align">
366
  <div>
367
  <div class="radio_section tb_4_ck">
368
+ <input name="sfsi_plus_weibo_display" <?php echo (isset($option1['sfsi_plus_weibo_display']) && $option1['sfsi_plus_weibo_display'] == 'yes') ? 'checked="true"' : ''; ?> id="sfsi_plus_weibo_display" type="checkbox" value="yes" class="styled" />
369
  </div>
370
+ <span class="sfsicls_weibo"><?php _e( 'Weibo', SFSI_PLUS_DOMAIN ); ?></span>
371
  </div>
372
 
373
  <div class="sfsiplus_right_info">
374
  <p>
375
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
376
+ <?php _e( 'Show this icon if you have a Weibo account.', SFSI_PLUS_DOMAIN ); ?>
377
  </p>
378
  </div>
379
  </li>
385
 
386
  <?php
387
  if (get_option('sfsi_plus_custom_icons') == 'no') {
388
+ $icons = (isset($option1['sfsi_custom_files'])) ? maybe_unserialize($option1['sfsi_custom_files']) : array();
389
  if (!is_array($icons)) {
390
  $icons = array();
391
  }
428
  </span>
429
 
430
  <span class="custom sfsiplus_custom-txt" style="font-weight:normal;opacity:0.5;margin-left:2px">
431
+ <?php _e( 'Custom icon', SFSI_PLUS_DOMAIN ); ?>
432
  </span>
433
  </a>
434
 
435
  <div class="sfsiplus_right_info ">
436
  <p>
437
  <a style="color: #12a252 !important;font-weight: bold; border-bottom:none;text-decoration: none;">
438
+ <?php _e( 'Premium Feature:', SFSI_PLUS_DOMAIN ); ?>
439
  </a>
440
  <?php _e('Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN); ?>
441
  <a class="pop-up" style="cursor:pointer; color: #12a252 !important;border-bottom: 1px solid #12a252;text-decoration: none;" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
442
+ <?php _e( 'Get it now.', SFSI_PLUS_DOMAIN ); ?>
443
  </a>
444
  </p>
445
  </div>
450
  <?php if (get_option('sfsi_plus_custom_icons') == 'yes') { ?>
451
  <!-- Custom icon section start here -->
452
  <?php
453
+ $icons = (isset($option1['sfsi_custom_files'])) ? maybe_unserialize($option1['sfsi_custom_files']) : array();
454
  if (!is_array($icons)) {
455
  $icons = array();
456
  }
486
  <div class="sfsiplus_right_info">
487
  <p>
488
  <span><?php _e('It depends:', SFSI_PLUS_DOMAIN); ?></span>
489
+ <?php _e( 'Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN ); ?>
490
  </p>
491
  </div>
492
  </li>
507
  </span>
508
 
509
  <span class="custom sfsiplus_custom-txt">
510
+ <?php _e( 'Custom', SFSI_PLUS_DOMAIN ); ?>
511
  <?php echo $count; ?>
512
  </span>
513
  </div>
514
 
515
  <div class="sfsiplus_right_info">
516
  <p>
517
+ <span><?php _e( 'It depends:', SFSI_PLUS_DOMAIN ); ?></span>
518
+ <?php _e( 'Upload a custom icon if you have other accounts/websites you want to link to.', SFSI_PLUS_DOMAIN ); ?>
519
  </p>
520
  </div>
521
  </li>
522
  <?php endif; ?>
523
  <!-- END Custom icon section here -->
524
  <?php } ?>
 
 
525
  </ul>
526
  <ul>
527
  <li class="sfsi_plus_premium_brdr_box">
528
  <div class="sfsi_plus_prem_icons_added">
529
  <div class="sf_si_plus_prmium_head">
530
+ <h2><?php _e( 'New:', SFSI_PLUS_DOMAIN ); ?><span> <?php _e( 'In our Premium Plugin we added icons for:', SFSI_PLUS_DOMAIN ); ?></span></h2>
531
  </div>
532
  <div class="sfsi_plus_premium_row">
533
  <div class="sfsi_plus_prem_cmn_rowlisting">
534
  <span>
535
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/snapchat.png'; ?>" id="CImg" alt="" />
536
  </span>
537
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Snapchat', SFSI_PLUS_DOMAIN ); ?></span>
538
  </div>
539
 
540
  <div class="sfsi_plus_prem_cmn_rowlisting">
541
  <span>
542
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/whatsapp.png'; ?>" id="CImg" alt="" />
543
  </span>
544
+ <span class="sfsicls_plus_prem_text"><?php _e( 'WhatsApp or Phone', SFSI_PLUS_DOMAIN ); ?></span>
545
  </div>
546
 
547
  <div class="sfsi_plus_prem_cmn_rowlisting">
548
  <span>
549
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/yummly.png'; ?>" id="CImg" alt="" />
550
  </span>
551
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Yummly', SFSI_PLUS_DOMAIN ); ?></span>
552
  </div>
553
  <div class="sfsi_plus_prem_cmn_rowlisting">
554
  <span>
555
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/yelp.png'; ?>" id="CImg" alt="" />
556
  </span>
557
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Yelp', SFSI_PLUS_DOMAIN ); ?></span>
558
  </div>
559
  <div class="sfsi_plus_prem_cmn_rowlisting">
560
  <span>
561
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/print.png'; ?>" id="CImg" alt="" />
562
  </span>
563
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Print', SFSI_PLUS_DOMAIN ); ?></span>
564
  </div>
565
  </div>
566
  <div class="sfsi_plus_premium_row">
567
  <div class="sfsi_plus_prem_cmn_rowlisting">
568
  <span>
569
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/soundcloud.png'; ?>" id="CImg" alt="" />
570
  </span>
571
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Soundcloud', SFSI_PLUS_DOMAIN ); ?></span>
572
  </div>
573
 
574
  <div class="sfsi_plus_prem_cmn_rowlisting">
575
  <span>
576
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/skype.png'; ?>" id="CImg" alt="" />
577
  </span>
578
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Skype', SFSI_PLUS_DOMAIN ); ?></span>
579
  </div>
580
  <div class="sfsi_plus_prem_cmn_rowlisting">
581
  <span>
582
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/flickr.png'; ?>" id="CImg" alt="" />
583
  </span>
584
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Flickr', SFSI_PLUS_DOMAIN ); ?></span>
585
  </div>
586
 
587
  <div class="sfsi_plus_prem_cmn_rowlisting">
588
  <span>
589
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/angieslist.png'; ?>" id="CImg" alt="" />
590
  </span>
591
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Angie’s List', SFSI_PLUS_DOMAIN ); ?></span>
592
  </div>
593
 
594
  <div class="sfsi_plus_prem_cmn_rowlisting">
595
  <span>
596
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/reddit.png'; ?>" id="CImg" alt="" />
597
  </span>
598
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Reddit', SFSI_PLUS_DOMAIN ); ?></span>
599
  </div>
600
  </div>
601
  <div class="sfsi_plus_premium_row">
602
  <div class="sfsi_plus_prem_cmn_rowlisting">
603
  <span>
604
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/vimeo.png'; ?>" id="CImg" alt="" />
605
  </span>
606
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Vimeo', SFSI_PLUS_DOMAIN ); ?></span>
607
  </div>
608
 
609
  <div class="sfsi_plus_prem_cmn_rowlisting">
610
  <span>
611
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/tumblr.png'; ?>" id="CImg" alt="" />
612
  </span>
613
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Tumblr', SFSI_PLUS_DOMAIN ); ?></span>
614
  </div>
615
  <div class="sfsi_plus_prem_cmn_rowlisting">
616
  <span>
617
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/buffer.png'; ?>" id="CImg" alt="" />
618
  </span>
619
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Buffer', SFSI_PLUS_DOMAIN ); ?></span>
620
  </div>
621
  <div class="sfsi_plus_prem_cmn_rowlisting">
622
  <span>
623
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/blogger.png'; ?>" id="CImg" alt="" />
624
  </span>
625
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Blogger', SFSI_PLUS_DOMAIN ); ?></span>
626
  </div>
627
 
628
  <div class="sfsi_plus_prem_cmn_rowlisting">
629
  <span>
630
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/steam.png'; ?>" id="CImg" alt="" />
631
  </span>
632
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Steam', SFSI_PLUS_DOMAIN ); ?></span>
633
  </div>
634
  </div>
635
  <div class="sfsi_plus_premium_row">
636
  <div class="sfsi_plus_prem_cmn_rowlisting">
637
  <span>
638
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/xing.png'; ?>" id="CImg" alt="" />
639
  </span>
640
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Xing', SFSI_PLUS_DOMAIN ); ?></span>
641
  </div>
642
 
643
  <div class="sfsi_plus_prem_cmn_rowlisting">
644
  <span>
645
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/amazon.png'; ?>" id="CImg" alt="" />
646
  </span>
647
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Amazon', SFSI_PLUS_DOMAIN ); ?></span>
648
  </div>
649
  <div class="sfsi_plus_prem_cmn_rowlisting">
650
  <span>
651
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/twitch.png'; ?>" id="CImg" alt="" />
652
  </span>
653
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Twitch', SFSI_PLUS_DOMAIN ); ?></span>
654
  </div>
655
  <div class="sfsi_plus_prem_cmn_rowlisting">
656
  <span>
657
+ <img src="<?php echo SFSI_PLUS_PLUGURL . 'images/messenger.png'; ?>" id="CImg" alt="" />
658
  </span>
659
+ <span class="sfsicls_plus_prem_text"><?php _e( 'Messenger', SFSI_PLUS_DOMAIN ); ?></span>
660
  </div>
661
  </div>
662
  <div class="sfsi_plus_need_another_one_link">
663
+ <!-- <p><?php _e('Need another one?', SFSI_PLUS_DOMAIN); ?><a href="mailto:biz@ultimatelysocial.com" target="_blank"> <?php _e( 'Tell us', SFSI_PLUS_DOMAIN ); ?></a></p> -->
664
  </div>
665
  <div class="sfsi_plus_need_another_tell_us">
666
+ <a href="https://www.ultimatelysocial.com/all-platforms/" target="_blank"><?php _e( '...and many more!', SFSI_PLUS_DOMAIN ); ?></a>
667
  <a class="pop-up" style="cursor:pointer" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank">
668
+ <?php _e( ' Go premium now', SFSI_PLUS_DOMAIN ); ?>
669
  </a>
670
  <!-- <a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=more_platforms&utm_medium=banner" target="_blank"><?php _e('See all features Premium Plugin', SFSI_PLUS_DOMAIN); ?></a>
671
  -->
683
  <img src="<?php echo SFSI_PLUS_PLUGURL ?>images/ajax-loader.gif" class="loader-img" />
684
  <?php $nonce = wp_create_nonce("update_plus_step1"); ?>
685
  <a href="javascript:;" id="sfsi_plus_save1" title="Save" data-nonce="<?php echo $nonce; ?>">
686
+ <?php _e( 'Save', SFSI_PLUS_DOMAIN ); ?>
687
  </a>
688
  </div>
689
  <!-- END SAVE BUTTON SECTION -->
views/sfsi_option_view2.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
  /* unserialize all saved option for second section options */
3
- $option4= maybe_unserialize(get_option('sfsi_plus_section4_options',false));
4
- $option2= maybe_unserialize(get_option('sfsi_plus_section2_options',false));
5
  /*
6
  * Sanitize, escape and validate values
7
  */
@@ -191,19 +191,19 @@
191
  <!-- RSS ICON -->
192
  <div class="row bdr_top sfsiplus_rss_section">
193
  <h2 class="sfsicls_rs_s">
194
- RSS
195
  </h2>
196
  <div class="inr_cont">
197
  <p>
198
- <?php _e( 'When clicked on, users can subscribe via RSS', SFSI_PLUS_DOMAIN); ?>
199
  </p>
200
  <p class="rss_url_row">
201
  <label style="vertical-align: unset;">
202
- RSS URL
203
  </label>
204
- <input name="sfsi_plus_rss_url" style="float: none;margin-left:20px;" id="sfsi_plus_rss_url" class="add" type="url" value="<?php echo ($option2['sfsi_plus_rss_url']!='') ? $option2['sfsi_plus_rss_url'] : '' ;?>" placeholder="E.g http://www.yoursite.com/feed" />
205
  <span class="sfrsTxt" >
206
- <?php _e( 'For most blogs it’s http://blogname.com/feed', SFSI_PLUS_DOMAIN); ?>
207
  </span>
208
  </p>
209
  </div>
@@ -214,62 +214,61 @@
214
  <?php
215
  $feedId = sanitize_text_field(get_option('sfsi_plus_feed_id',false));
216
  $connectToFeed = "https://api.follow.it/?".base64_encode("userprofile=wordpress&feed_id=".$feedId);
217
-
218
  ?>
219
  <div class="row sfsiplus_email_section">
220
  <h2 class="sfsicls_email">
221
- Email
222
  </h2>
223
  <div class="inr_cont">
224
  <p class="sfsi_plus_specificfeedlink">
225
- <?php _e('It allows your visitors to subscribe to your site (on ', SFSI_PLUS_DOMAIN ); ?><a href="https://api.follow.it/widgets/emailSubscribeEncFeed/<?php echo $feedId; ?>/<?php echo base64_encode(8); ?>" target="_new"><?php _e( 'this screen', SFSI_PLUS_DOMAIN); ?></a><?php _e(") and receive new posts automatically by email.", SFSI_PLUS_DOMAIN); ?>
226
  </p>
227
- <p><?php _e( 'Please pick which icon type you want to use:', SFSI_PLUS_DOMAIN); ?></p>
228
  <ul class="tab_2_email_sec">
229
  <li>
230
  <div class="sfsiplusicnsdvwrp">
231
- <input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='email') ? 'checked="true"' : '' ;?> type="radio" value="email" class="styled" /><span class="email_icn"></span>
232
  </div>
233
  <label>
234
- <?php _e( 'Email icon', SFSI_PLUS_DOMAIN); ?>
235
  </label>
236
  </li>
237
  <li>
238
  <div class="sfsiplusicnsdvwrp">
239
- <input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='subscribe') ? 'checked="true"' : '' ;?> type="radio" value="subscribe" class="styled" /><span class="subscribe_icn"></span>
240
  </div>
241
  <label>
242
- <?php _e( 'Email + follow text', SFSI_PLUS_DOMAIN); ?>
243
  <span class="sfplsdesc">
244
  </span>
245
  </label>
246
  </li>
247
  <li>
248
  <div class="sfsiplusicnsdvwrp">
249
- <input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='sfsi') ? 'checked="true"' : '' ;?> type="radio" value="sfsi" class="styled" /><span class="sf_arow"></span>
250
  </div>
251
  <label>
252
- <?php _e( 'follow.it icon', SFSI_PLUS_DOMAIN); ?>
253
  <span class="sfplsdesc">
254
- (<?php _e( 'provider of the service', SFSI_PLUS_DOMAIN); ?>)
255
  </span>
256
  </label>
257
  </li>
258
  </ul>
259
- <p><?php _e( 'The service offers many (more) advantages:', SFSI_PLUS_DOMAIN); ?></p>
260
  <div class='sfsi_plus_service_row'>
261
  <div class='sfsi_plus_service_column'>
262
  <ul>
263
- <li><span><?php _e( 'More people come back', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' to your site', SFSI_PLUS_DOMAIN); ?></li>
264
- <li><?php _e( 'See your ', SFSI_PLUS_DOMAIN); ?><span><?php _e( 'subscribers’ emails', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' & ', SFSI_PLUS_DOMAIN); ?><span><?php _e( 'interesting statistics', SFSI_PLUS_DOMAIN); ?></span></li>
265
- <li><?php _e( 'Automatically post on ', SFSI_PLUS_DOMAIN); ?><span><?php _e( 'Facebook & Twitter', SFSI_PLUS_DOMAIN); ?></span></li>
266
  </ul>
267
  </div>
268
  <div class='sfsi_plus_service_column'>
269
  <ul>
270
- <li><span><?php _e( 'Get more traffic', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' by being listed in the follow.it directory', SFSI_PLUS_DOMAIN); ?></li>
271
- <li><span><?php _e( 'Get alerts', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' when people subscribe or unsubscribe', SFSI_PLUS_DOMAIN); ?></li>
272
- <li><span><?php _e( 'Tailor the sender name & subject line', SFSI_PLUS_DOMAIN); ?></span><?php _e( ' of the emails', SFSI_PLUS_DOMAIN); ?></li>
273
  </ul>
274
  </div>
275
 
@@ -282,22 +281,22 @@
282
  </div>
283
  <div class='sfsi_plus_more_services_link'>
284
  <a class="pop-up" href="javascript:" id="getMeFullAccess" class="sfsi_plus_getMeFullAccess_class" data-nonce-fetch-feed-id="<?php echo wp_create_nonce( 'sfsi_plus_get_feed_id' );?>" title="Give me access">
285
- <?php _e('Click here to benefit from all advantages >', SFSI_PLUS_DOMAIN ); ?>
286
  </a>
287
  </div>
288
  </form>
289
 
290
  <p class='sfsi_plus_email_last_paragraph'>
291
- <?php _e( 'This will create your FREE account on follow.it, using the above email. ', SFSI_PLUS_DOMAIN); ?><br>
292
- <?php _e( 'All data will be treated highly confidentially, see the', SFSI_PLUS_DOMAIN); ?>
293
  <a href="https://follow.it/info/privacy" target="_new">
294
- <?php _e('Privacy Policy.', SFSI_PLUS_DOMAIN ); ?>
295
  </a>
296
  </p>
297
  <?php if($option2['sfsi_plus_premium_email_box'] =='yes') { ?>
298
  <div class ="sfsi_plus_new_prmium_follw">
299
  <p>
300
- <b><?php _e( 'New:', SFSI_PLUS_DOMAIN); ?></b><?php _e( ' In our Premium Plugin you can now give your email icon other functions too, e.g. contact you (email), share by email, and link to a certain page (e.g. your contact form or newsletter sign-up site). ', SFSI_PLUS_DOMAIN); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=more_functions_email_icon&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
301
  </p>
302
  </div>
303
  <?php } ?>
@@ -309,46 +308,46 @@
309
  <!-- FACEBOOK ICON -->
310
  <div class="row sfsiplus_facebook_section">
311
  <h2 class="sfsicls_facebook">
312
- Facebook
313
  </h2>
314
  <div class="inr_cont">
315
  <p>
316
- <?php _e( 'The Facebook icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN); ?>
317
  <a class="rit_link pop-up" href="javascript:;" data-id="fbex-s2">
318
- (<?php _e( 'see an example', SFSI_PLUS_DOMAIN); ?>).
319
  </a>
320
  </p>
321
  <p>
322
- <?php _e( 'The facebook icon should allow users to...', SFSI_PLUS_DOMAIN); ?>
323
  </p>
324
 
325
  <p class="radio_section fb_url" style="display: flow-root;padding-bottom: 4px;">
326
- <input name="sfsi_plus_facebookPage_option" <?php echo ($option2['sfsi_plus_facebookPage_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
327
 
328
  <label>
329
- <?php _e( 'Visit my Facebook page at:', SFSI_PLUS_DOMAIN); ?>
330
  </label>
331
 
332
- <input class="add" name="sfsi_plus_facebookPage_url" type="url" value="<?php echo ($option2['sfsi_plus_facebookPage_url']!='') ? $option2['sfsi_plus_facebookPage_url'] : '' ;?>" placeholder="E.g https://www.facebook.com/your_page_name" /></p>
333
 
334
  <p class="radio_section fb_url extra_sp" style="display: flow-root;padding-bottom: 6px;">
335
- <input name="sfsi_plus_facebookLike_option" <?php echo ($option2['sfsi_plus_facebookLike_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
336
  <label>
337
- <?php _e( 'Like my blog on Facebook (+1)', SFSI_PLUS_DOMAIN); ?>
338
  </label>
339
  </p>
340
 
341
  <p class="radio_section fb_url extra_sp" style="display: flow-root;padding-top: 8px;">
342
- <input name="sfsi_plus_facebookShare_option" <?php echo ($option2['sfsi_plus_facebookShare_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
343
 
344
  <label class="sfsi_fb_label_3">
345
- <?php _e( 'Share my blog with friends (on Facebook)', SFSI_PLUS_DOMAIN); ?>
346
  </label>
347
  </p>
348
  <?php if($option2['sfsi_plus_premium_facebook_box'] =='yes') { ?>
349
  <div class="sfsi_plus_new_prmium_follw">
350
  <p>
351
- <b><?php _e( 'New:', SFSI_PLUS_DOMAIN); ?></b> <?php _e( ' In our Premium Plugin you can also allow users to follow you on Facebook directly from your site (without leaving your page, increasing followers). ', SFSI_PLUS_DOMAIN); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=direct_follow_facebook&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
352
  </p>
353
  </div>
354
  <?php } ?>
@@ -360,48 +359,48 @@
360
  <!-- TWITTER ICON -->
361
  <div class="row sfsiplus_twitter_section">
362
  <h2 class="sfsicls_twt">
363
- Twitter
364
  </h2>
365
  <div class="inr_cont twt_tab_2">
366
  <p>
367
  <?php
368
- _e( 'The Twitter icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN);
369
  ?>
370
  <a class="rit_link pop-up" href="javascript:;" data-id="twex-s2">
371
- (<?php _e( 'see an example', SFSI_PLUS_DOMAIN); ?>).
372
  </a>
373
  </p>
374
  <p>
375
- <?php _e( 'The Twitter icon should allow users to...', SFSI_PLUS_DOMAIN); ?>
376
  </p>
377
  <p class="radio_section fb_url twt_fld">
378
- <input name="sfsi_plus_twitter_page" <?php echo ($option2['sfsi_plus_twitter_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
379
  <label>
380
- <?php _e( 'Visit me on Twitter:', SFSI_PLUS_DOMAIN); ?>
381
  </label>
382
- <input name="sfsi_plus_twitter_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_twitter_pageURL']!='') ? $option2['sfsi_plus_twitter_pageURL'] : '' ;?>" class="add" />
383
  </p>
384
 
385
  <div class="radio_section fb_url twt_fld">
386
- <input name="sfsi_plus_twitter_followme" <?php echo ($option2['sfsi_plus_twitter_followme']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
387
 
388
  <label>
389
- <?php _e( 'Follow me on Twitter:', SFSI_PLUS_DOMAIN); ?>
390
  </label>
391
 
392
- <input name="sfsi_plus_twitter_followUserName" type="text" value="<?php echo ($option2['sfsi_plus_twitter_followUserName']!='') ? $option2['sfsi_plus_twitter_followUserName'] : '' ;?>" placeholder="my_twitter_name" class="add" />
393
  </div>
394
  <div class="radio_section fb_url twt_fld_2">
395
- <input name="sfsi_plus_twitter_aboutPage" <?php echo ($option2['sfsi_plus_twitter_aboutPage']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
396
  <label>
397
- <?php _e( 'Tweet about my page:', SFSI_PLUS_DOMAIN ); ?>
398
  </label>
399
- <textarea name="sfsi_plus_twitter_aboutPageText" id="sfsi_plus_twitter_aboutPageText" type="text" class="add_txt" placeholder="<?php _e( 'Hey check out this cool site I found', SFSI_PLUS_DOMAIN ) ;?>: www.yourname.com #Topic via@my_twitter_name" /><?php echo ($option2['sfsi_plus_twitter_aboutPageText']!='') ? stripslashes($option2['sfsi_plus_twitter_aboutPageText']) : _e( 'Hey check out this cool site I found', SFSI_PLUS_DOMAIN ) ;?></textarea>
400
  </div>
401
  <?php if($option2['sfsi_plus_premium_twitter_box'] =='yes') { ?>
402
  <div class= "sfsi_plus_new_prmium_follw">
403
  <p>
404
- <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "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!. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=better_tweets&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
405
  </p>
406
  </div>
407
  <?php } ?>
@@ -413,29 +412,29 @@
413
  <!-- YOUTUBE ICON -->
414
  <div class="row sfsiplus_youtube_section">
415
  <h2 class="sfsicls_utube">
416
- Youtube
417
  </h2>
418
  <div class="inr_cont utube_inn">
419
  <p>
420
- <?php _e( 'The Youtube icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
421
  <a class="rit_link pop-up" href="javascript:;" data-id="ytex-s2">
422
- (<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
423
  </a>
424
  </p>
425
  <p>
426
- <?php _e( 'The Youtube icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
427
  </p>
428
- <p class="radio_section fb_url"><input name="sfsi_plus_youtube_page" <?php echo ($option2['sfsi_plus_youtube_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
429
  <label class="sfsi_label_utube">
430
- <?php _e( 'Visit my Youtube page at:', SFSI_PLUS_DOMAIN ); ?>
431
  </label>
432
- <input name="sfsi_plus_youtube_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_youtube_pageUrl']!='') ? $option2['sfsi_plus_youtube_pageUrl'] : '' ;?>" class="add" />
433
  </p>
434
- <p class="radio_section fb_url"><input name="sfsi_plus_youtube_follow" <?php echo ($option2['sfsi_plus_youtube_follow']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
435
  <label class="sfsi_label_utube_2">
436
- <?php _e( 'Subscribe to me on Youtube', SFSI_PLUS_DOMAIN ); ?>
437
  <span>
438
- <?php _e( '(it allows people to subscribe to you directly, without leaving your blog)', SFSI_PLUS_DOMAIN ); ?>
439
  </span>
440
  </label>
441
  </p>
@@ -453,21 +452,21 @@
453
 
454
  <div class="cstmutbewpr">
455
  <ul class="enough_waffling">
456
- <li onclick="showhideutube(this);"><input name="sfsi_plus_youtubeusernameorid" <?php echo ($sfsi_plus_youtubeusernameorid=='name') ? 'checked="true"' : '' ;?> type="radio" value="name" class="styled" />
457
  <label>
458
- <?php _e( 'User Name', SFSI_PLUS_DOMAIN ); ?>
459
  </label>
460
  </li>
461
- <li onclick="showhideutube(this);"><input name="sfsi_plus_youtubeusernameorid" <?php echo ($sfsi_plus_youtubeusernameorid=='id') ? 'checked="true"' : '' ;?> type="radio" value="id" class="styled" />
462
  <label>
463
- <?php _e( 'Channel Id', SFSI_PLUS_DOMAIN ); ?>
464
  </label></li>
465
  </ul>
466
  <div class="cstmutbtxtwpr">
467
  <div class="cstmutbchnlnmewpr" <?php if($sfsi_plus_youtubeusernameorid != 'id'){echo 'style="display: block;"';}?>>
468
  <p class="extra_pp">
469
- <label><?php _e( 'UserName:', SFSI_PLUS_DOMAIN ); ?></label>
470
- <input name="sfsi_plus_ytube_user" type="url" value="<?php echo (isset($option2['sfsi_plus_ytube_user']) && $option2['sfsi_plus_ytube_user']!='') ? $option2['sfsi_plus_ytube_user'] : '' ;?>" placeholder="Youtube username" class="add" />
471
  </p>
472
  <div class="utbe_instruction">
473
  <?php _e( 'To find your User ID/Channel ID, login to your YouTube account, click the user icon at the top right corner and select "Settings", then click "Advanced" under "Name" and you will find both your "Channel ID" and "User ID" under "Account Information".', SFSI_PLUS_DOMAIN ); ?>
@@ -476,12 +475,12 @@
476
  <div class="cstmutbchnlidwpr" <?php if($sfsi_plus_youtubeusernameorid == 'id'){echo 'style="display: block"';}?>>
477
  <p class="extra_pp">
478
  <label>
479
- <?php _e( 'Channel Id:', SFSI_PLUS_DOMAIN ); ?>
480
  </label>
481
- <input name="sfsi_plus_ytube_chnlid" type="url" value="<?php echo (isset($option2['sfsi_plus_ytube_chnlid']) && $option2['sfsi_plus_ytube_chnlid']!='') ? $option2['sfsi_plus_ytube_chnlid'] : '' ;?>" placeholder="youtube_channel_id" class="add" />
482
  </p>
483
  <div class="utbe_instruction">
484
- <?php _e( 'To find your User ID/Channel ID, login to your YouTube account, click the user icon at the top right corner and select "Settings", then click "Advanced" under "Name" and you will find both your "Channel ID" and "User ID" under "Account Information".', SFSI_PLUS_DOMAIN ); ?>
485
  </div>
486
  </div>
487
  </div>
@@ -493,35 +492,35 @@
493
 
494
  <!-- PINTEREST ICON -->
495
  <div class="row sfsiplus_pinterest_section">
496
- <h2 class="sfsicls_pinterest">Pinterest</h2>
497
  <div class="inr_cont">
498
  <p>
499
- <?php _e( 'The Pinterest icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
500
  <a class="rit_link pop-up" href="javascript:;" data-id="pinex-s2">
501
- (<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
502
  </a>
503
  </p>
504
  <p>
505
- <?php _e( 'The Pinterest icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
506
  </p>
507
  <p class="radio_section fb_url">
508
- <input name="sfsi_plus_pinterest_page" <?php echo ($option2['sfsi_plus_pinterest_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
509
  <label>
510
- <?php _e( 'Visit my Pinterest page at:', SFSI_PLUS_DOMAIN ); ?>
511
  </label>
512
- <input name="sfsi_plus_pinterest_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_pinterest_pageUrl']!='') ? $option2['sfsi_plus_pinterest_pageUrl'] : '' ;?>" class="add" />
513
  </p>
514
  <div class="pint_url">
515
  <p class="radio_section fb_url">
516
- <input name="sfsi_plus_pinterest_pingBlog" <?php echo ($option2['sfsi_plus_pinterest_pingBlog']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
517
  <label class="sfsi_label_pinterest">
518
- <?php _e( 'Pin my blog on Pinterest (+1)', SFSI_PLUS_DOMAIN); ?>
519
  </label>
520
  </p>
521
  </div>
522
  <div class= "sfsi_plus_new_prmium_follw">
523
  <p>
524
- <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "The Premium Plugin allows you to show a Pinterest icon if visitors move their mouse over your images. You can define exactly where it should show, and where not. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=pinterest&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
525
  </p>
526
  </div>
527
  </div>
@@ -532,17 +531,17 @@
532
  <!-- INSTAGRAM ICON -->
533
  <div class="row sfsiplus_instagram_section">
534
  <h2 class="sfsicls_instagram">
535
- Instagram
536
  </h2>
537
  <div class="inr_cont">
538
  <p>
539
- <?php _e( 'When clicked on, users will get directed to your Instagram page', SFSI_PLUS_DOMAIN ); ?>.
540
  </p>
541
  <p class="radio_section fb_url cus_link instagram_space" >
542
  <label class="sfsiLabel">
543
- URL
544
  </label>
545
- <input name="sfsi_plus_instagram_pageUrl" type="text" value="<?php echo (isset($option2['sfsi_plus_instagram_pageUrl']) && $option2['sfsi_plus_instagram_pageUrl']!='') ? $option2['sfsi_plus_instagram_pageUrl'] : '' ;?>" placeholder="http://" class="add" />
546
  </p>
547
  </div>
548
  </div>
@@ -551,59 +550,59 @@
551
  <!-- LINKEDIN ICON -->
552
  <div class="row sfsiplus_linkedin_section">
553
  <h2 class="sfsicls_linkdin">
554
- LinkedIn
555
  </h2>
556
  <div class="inr_cont linked_tab_2 link_in">
557
  <p>
558
- <?php _e( 'The LinkedIn icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
559
  <a class="rit_link pop-up" href="javascript:;" data-id="linkex-s2">
560
- (<?php _e( 'see an example', SFSI_PLUS_DOMAIN); ?>).
561
  </a>
562
  </p>
563
  <p>
564
- <?php _e( 'You can find your ID in the link of your profile page, e.g. https://www.linkedin.com/profile/view?id=<b>8539887</b>&trk=nav_responsive_tab_profile_pic', SFSI_PLUS_DOMAIN ); ?>
565
  </p>
566
  <p>
567
- <?php _e( 'The LinkedIn icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
568
  </p>
569
  <div class="radio_section fb_url link_1">
570
- <input name="sfsi_plus_linkedin_page" <?php echo ($option2['sfsi_plus_linkedin_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
571
  <label>
572
  <?php _e( 'Visit my Linkedin page at:', SFSI_PLUS_DOMAIN ); ?>
573
  </label>
574
- <input name="sfsi_plus_linkedin_pageURL" type="text" placeholder="http://" value="<?php echo ($option2['sfsi_plus_linkedin_pageURL']!='') ? $option2['sfsi_plus_linkedin_pageURL'] : '' ;?>" class="add" />
575
  </div>
576
 
577
  <div class="radio_section fb_url link_2">
578
- <input name="sfsi_plus_linkedin_follow" <?php echo ($option2['sfsi_plus_linkedin_follow']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
579
 
580
  <label>
581
- <?php _e( 'Follow me on Linkedin:', SFSI_PLUS_DOMAIN ); ?>
582
  </label>
583
 
584
- <input name="sfsi_plus_linkedin_followCompany" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_followCompany']!='') ? $option2['sfsi_plus_linkedin_followCompany'] : '' ;?>" class="add" placeholder="Enter company ID, e.g. 123456" />
585
  </div>
586
 
587
  <div class="radio_section fb_url link_3">
588
- <input name="sfsi_plus_linkedin_SharePage" <?php echo ($option2['sfsi_plus_linkedin_SharePage']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
589
  <label>
590
- <?php _e( 'Share my page on LinkedIn', SFSI_PLUS_DOMAIN ); ?>
591
  </label>
592
  </div>
593
 
594
  <div class="radio_section fb_url link_4">
595
- <input name="sfsi_plus_linkedin_recommendBusines" <?php echo ($option2['sfsi_plus_linkedin_recommendBusines']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
596
  <label class="anthr_labl">
597
- <?php _e( 'Recommend my business or product on Linkedin', SFSI_PLUS_DOMAIN ); ?>
598
  </label>
599
- <input name="sfsi_plus_linkedin_recommendProductId" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_recommendProductId']!='') ? $option2['sfsi_plus_linkedin_recommendProductId'] : '' ;?>" class="add link_dbl" placeholder="Enter Product ID, e.g. 1441" /> <input name="sfsi_plus_linkedin_recommendCompany" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_recommendCompany']!='') ? $option2['sfsi_plus_linkedin_recommendCompany'] : '' ;?>" class="add" placeholder="Enter company name, e.g. Google”" />
600
  </div>
601
  <div class="lnkdin_instruction">
602
- <?php _e( 'To find your Product or Company ID, you can use their ID lookup tool at', SFSI_PLUS_DOMAIN ); ?>
603
  <a target="_blank" href="https://developer.linkedin.com/apply-getting-started#company-lookup">
604
  https://developer.linkedin.com/apply-getting-started#company-lookup
605
  </a>
606
- . <?php _e( 'You need to be logged in to Linkedin to be able to use it.', SFSI_PLUS_DOMAIN ); ?>
607
  </div>
608
  </div>
609
  </div>
@@ -612,18 +611,18 @@
612
  <!-- HOUZZ ICON -->
613
  <div class="row sfsiplus_houzz_section">
614
  <h2 class="sfsicls_houzz">
615
- Houzz
616
  </h2>
617
  <div class="inr_cont">
618
  <p>
619
- <?php _e( 'Please provide the url to your Houzz profile (e.g. http://www.houzz.com/user/your_username).', SFSI_PLUS_DOMAIN ); ?>
620
  </p>
621
  <div class="fb_url link_2">
622
  <label class="sfsiLabel" style="min-width: 0px;">
623
- <?php _e( 'URL:', SFSI_PLUS_DOMAIN ); ?>
624
  </label>
625
 
626
- <input style="float:none;margin-top:0" name="sfsi_plus_houzz_pageUrl" type="text" value="<?php echo (isset($option2['sfsi_plus_houzz_pageUrl']) && $option2['sfsi_plus_houzz_pageUrl']!='') ? $option2['sfsi_plus_houzz_pageUrl'] : '' ;?>" placeholder="http://" class="add" />
627
  </div>
628
 
629
  </div>
@@ -635,7 +634,7 @@
635
  <!-- Ok ICON -->
636
  <div class="row sfsiplus_ok_section">
637
 
638
- <h2 class="sfsicls_ok"><?php _e( 'OdnoKlassniki', SFSI_PLUS_DOMAIN ); ?></h2>
639
  <div class="inr_cont">
640
  <p>
641
  <?php _e( 'When clicked on, users will get directed to your OK page.', SFSI_PLUS_DOMAIN ); ?>
@@ -645,14 +644,14 @@
645
  <input name="sfsi_plus_okVisit_option" checked="true" type="checkbox" value="yes" style="display:none;" class=""/>
646
 
647
  <label class="sfsiLabel" style="margin-top:10px">
648
- <?php _e( 'Visit my OK page at:', SFSI_PLUS_DOMAIN ); ?>
649
  </label>
650
 
651
  <input name="sfsi_plus_okVisit_url" type="url" placeholder="" value="<?php echo $option2['sfsi_plus_okVisit_url'];?>" class="add" style="margin-top:10px" />
652
  </div>
653
  <div class= "sfsi_plus_new_prmium_follw">
654
  <p>
655
- <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "In our Premium Plugin you can now give OK icon other functions too, e.g. <b>like your website/blog, subscribe/follow you</b> on OK. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=ok_like_and_subscribe&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
656
  </p>
657
  </div>
658
  </div>
@@ -662,7 +661,7 @@
662
  <!-- Telegram ICON -->
663
  <div class="row sfsiplus_telegram_section">
664
 
665
- <h2 class="sfsicls_telegram"><?php _e( 'Telegram', SFSI_PLUS_DOMAIN ); ?></h2>
666
 
667
  <div class="inr_cont">
668
  <p>
@@ -673,22 +672,22 @@
673
  <input type="checkbox" name="sfsi_plus_telegramShare_option" value="yes" checked="checked" style="display:none" />
674
 
675
  <label class="sfsiLabel1 sfsiLabel" >
676
- <?php _e("Pre-filled message:", SFSI_PLUS_DOMAIN);?>
677
  </label>
678
 
679
- <input name="sfsi_plus_telegram_message" type="text" value="<?php echo (isset($option2['sfsi_plus_telegram_message']) && $option2['sfsi_plus_telegram_message']!='') ? $option2['sfsi_plus_telegram_message'] : '' ;?>" placeholder="Hey, I like your website." class="add link_1"/>
680
  </div>
681
 
682
  <div class="radio_section fb_url ">
683
  <label class="sfsiLabel1 sfsiLabel" >
684
- <?php _e("My Telegram username", SFSI_PLUS_DOMAIN);?>
685
  </label>
686
 
687
- <input name="sfsi_plus_telegram_username" type="text" value="<?php echo (isset($option2['sfsi_plus_telegram_username']) && $option2['sfsi_plus_telegram_username']!='') ? $option2['sfsi_plus_telegram_username'] : '' ;?>" placeholder="" class="add" />
688
  </div>
689
  <div class= "sfsi_plus_new_prmium_follw">
690
  <p>
691
- <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( " In our Premium Plugin you can now give your Telegram icon sharing functionality too, e.g. share your website/blog with friends. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=telegram_sharing&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
692
  </p>
693
  </div>
694
  </div>
@@ -701,7 +700,7 @@
701
  <div class="row sfsiplus_vk_section">
702
 
703
  <h2 class="sfsicls_vk">
704
- <?php _e( 'VK', SFSI_PLUS_DOMAIN ); ?>
705
  </h2>
706
  <div class="inr_cont">
707
  <p>
@@ -712,15 +711,15 @@
712
  <input type="checkbox" name="sfsi_plus_vkVisit_option" value="yes" checked="checked" style="display:none">
713
 
714
  <label class="sfsiLabel">
715
- <?php _e( 'Visit my VK page at:', SFSI_PLUS_DOMAIN ); ?>
716
  </label>
717
 
718
  <input name="sfsi_plus_vkVisit_url" type="url" placeholder="http://" value="<?php echo $option2['sfsi_plus_vkVisit_url'];?>" class="add" />
719
  </div>
720
  <div class= "sfsi_plus_new_prmium_follw">
721
  <p>
722
- <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
723
- <?php _e( "In our Premium Plugin you can now give your VK icon sharing functionality too, e.g. <b>share your website/blog</b> with friends. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=vk_share&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
724
  </p>
725
  </div>
726
  </div>
@@ -730,7 +729,7 @@
730
  <div class="row sfsiplus_wechat_section" style="display: <?php echo isset($option1["sfsi_plus_wechat_display"])&&$option1["sfsi_plus_wechat_display"]=="yes"?'block':'none'; ?>">
731
 
732
  <h2 class="sfsicls_wechat">
733
- <?php _e('WeChat', SFSI_PLUS_DOMAIN ); ?>
734
  </h2>
735
 
736
  <div class="inr_cont">
@@ -743,15 +742,11 @@
743
  </div>
744
  <div class= "sfsi_plus_new_prmium_follw">
745
  <p>
746
- <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
747
- <?php _e( "In our Premium Plugin you can also allow users to <b>follow you</b> on WeChat. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=wechat_sharing&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
748
  </p>
749
  </div>
750
  </div>
751
-
752
-
753
-
754
-
755
  </div>
756
  <!-- VK ICON -->
757
 
@@ -760,7 +755,7 @@
760
  <div class="row sfsiplus_whatsapp_section" style="display: <?php echo isset($option1["sfsi_plus_whatsapp_display"])&&$option1["sfsi_plus_whatsapp_display"]=="yes"?'block':'none'; ?>">
761
 
762
  <h2 class="sfsicls_whatsapp">
763
- <?php _e('WhatsApp', SFSI_PLUS_DOMAIN ); ?>
764
  </h2>
765
 
766
  <div class="inr_cont">
@@ -769,15 +764,11 @@
769
  </p>
770
  <div class= "sfsi_plus_new_prmium_follw">
771
  <p>
772
- <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
773
- <?php _e( "In our Premium Plugin you can define what text will get shared, and also give the icon the feature to send you a WhatsApp message. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=whatsapp_sharing&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
774
  </p>
775
  </div>
776
  </div>
777
-
778
-
779
-
780
-
781
  </div>
782
  <!-- Whatsapp ICON -->
783
 
@@ -785,7 +776,7 @@
785
  <div class="row sfsiplus_weibo_section">
786
 
787
  <h2 class="sfsicls_weibo">
788
- <?php _e('Sina Weibo', SFSI_PLUS_DOMAIN ); ?>
789
  </h2>
790
  <div class="inr_cont">
791
  <p class="sfsiLabel infoLabel">
@@ -795,20 +786,19 @@
795
  <input name="sfsi_plus_weiboVisit_option" checked="checked" placeholder="http://" type="checkbox" value="yes" style="display:none"/>
796
 
797
  <label class="sfsiLabel">
798
- <?php _e( 'Visit my Sina Weibo page at:', SFSI_PLUS_DOMAIN ); ?>
799
  </label>
800
 
801
  <input name="sfsi_plus_weiboVisit_url" type="url" placeholder="" value="<?php echo $option2['sfsi_plus_weiboVisit_url'];?>" class="add" />
802
  </div>
803
  <div class= "sfsi_plus_new_prmium_follw">
804
  <p>
805
- <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
806
- <?php _e( " In our Premium Plugin you can now give Weibo icon other functions too, e.g. <b>like your website/blog, share your website/blog</b> on Weibo. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=weibo_like_and_share&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
807
  </p>
808
  </div>
809
  </div>
810
 
811
-
812
  </div>
813
  <!-- Weibo ICON -->
814
 
@@ -817,7 +807,7 @@
817
  <!-- Custom icon section start here -->
818
  <div class="plus_custom-links sfsiplus_custom_section">
819
  <?php
820
- $costom_links = unserialize($option2['sfsi_plus_CustomIcon_links']);
821
 
822
  $bannerDisplay= "display:none;";
823
  $count = 1;
@@ -829,22 +819,22 @@
829
  <div class="row sfsiICON_<?php echo $i; ?> cm_lnk">
830
  <h2 class="custom">
831
  <span class="customstep2-img">
832
- <img src="<?php echo (!empty($icons[$i])) ? esc_url($icons[$i]) : SFSI_PLUS_PLUGURL.'images/custom.png';?>" id="CImg_<?php echo $new_element; ?>" style="border-radius:48%" />
833
  </span>
834
  <span class="sfsiCtxt">
835
- <?php _e( 'Custom', SFSI_PLUS_DOMAIN ); ?>
836
  <?php echo $count; ?>
837
  </span>
838
  </h2>
839
  <div class="inr_cont ">
840
  <p>
841
- <?php _e( 'Where do you want this icon to link to?', SFSI_PLUS_DOMAIN ); ?>
842
  </p>
843
  <p class="radio_section fb_url sfsiplus_custom_section cus_link " >
844
  <label>
845
- <?php _e( 'Link:', SFSI_PLUS_DOMAIN ); ?>
846
  </label>
847
- <input name="sfsi_plus_CustomIcon_links[]" type="text" value="<?php echo (isset($costom_links[$i]) && $costom_links[$i]!='') ? esc_url($costom_links[$i]) : '' ;?>" placeholder="http://" class="add" file-id="<?php echo $i; ?>" />
848
  </p>
849
  </div>
850
  </div>
@@ -855,29 +845,27 @@
855
  </div>
856
 
857
  <div class="banner_custom_icon sfsi_plus_new_prmium_follw" style="<?php echo $bannerDisplay;?>">
858
- <p><b><?php _e( 'New:', SFSI_PLUS_DOMAIN); ?></b> <?php _e( ' 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). ', SFSI_PLUS_DOMAIN); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=call_or_sms_feature_custom_icons&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank" style="font-family: inherit !important;"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN); ?></a>
859
  </p>
860
  </div>
861
 
862
  <!-- END Custom icon section here -->
863
-
864
 
865
  <?php sfsi_plus_ask_for_help(2); ?>
866
 
867
-
868
  <!-- SAVE BUTTON SECTION -->
869
  <div class="save_button tab_2_sav">
870
- <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" />
871
 
872
  <?php $nonce = wp_create_nonce("update_plus_step2"); ?>
873
 
874
  <a href="javascript:;" id="sfsi_plus_save2" title="Save" data-nonce="<?php echo $nonce;?>">
875
- <?php _e( 'Save', SFSI_PLUS_DOMAIN ); ?>
876
  </a>
877
  </div>
878
  <!-- END SAVE BUTTON SECTION -->
879
  <a class="sfsiColbtn closeSec" href="javascript:;">
880
- <?php _e( 'Collapse area', SFSI_PLUS_DOMAIN ); ?>
881
  </a>
882
 
883
  <label class="closeSec"></label>
1
  <?php
2
  /* unserialize all saved option for second section options */
3
+ $option4 = maybe_unserialize( get_option( 'sfsi_plus_section4_options', false ) );
4
+ $option2 = maybe_unserialize( get_option( 'sfsi_plus_section2_options', false ) );
5
  /*
6
  * Sanitize, escape and validate values
7
  */
191
  <!-- RSS ICON -->
192
  <div class="row bdr_top sfsiplus_rss_section">
193
  <h2 class="sfsicls_rs_s">
194
+ <?php _e( 'RSS', SFSI_PLUS_DOMAIN ); ?>
195
  </h2>
196
  <div class="inr_cont">
197
  <p>
198
+ <?php _e( 'When clicked on, users can subscribe via RSS', SFSI_PLUS_DOMAIN ); ?>
199
  </p>
200
  <p class="rss_url_row">
201
  <label style="vertical-align: unset;">
202
+ <?php _e( 'RSS URL', SFSI_PLUS_DOMAIN ); ?>
203
  </label>
204
+ <input name="sfsi_plus_rss_url" style="float: none;margin-left:20px;" id="sfsi_plus_rss_url" class="add" type="url" value="<?php echo ($option2['sfsi_plus_rss_url']!='') ? $option2['sfsi_plus_rss_url'] : '' ;?>" placeholder="E.g http://www.yoursite.com/feed" />
205
  <span class="sfrsTxt" >
206
+ <?php _e( 'For most blogs it’s http://blogname.com/feed', SFSI_PLUS_DOMAIN ); ?>
207
  </span>
208
  </p>
209
  </div>
214
  <?php
215
  $feedId = sanitize_text_field(get_option('sfsi_plus_feed_id',false));
216
  $connectToFeed = "https://api.follow.it/?".base64_encode("userprofile=wordpress&feed_id=".$feedId);
 
217
  ?>
218
  <div class="row sfsiplus_email_section">
219
  <h2 class="sfsicls_email">
220
+ <?php _e( 'Email', SFSI_PLUS_DOMAIN ); ?>
221
  </h2>
222
  <div class="inr_cont">
223
  <p class="sfsi_plus_specificfeedlink">
224
+ <?php _e('It allows your visitors to subscribe to your site (on ', SFSI_PLUS_DOMAIN ); ?><a href="https://api.follow.it/widgets/emailSubscribeEncFeed/<?php echo $feedId; ?>/<?php echo base64_encode(8); ?>" target="_new"><?php _e( 'this screen', SFSI_PLUS_DOMAIN ); ?></a><?php _e(") and receive new posts automatically by email.", SFSI_PLUS_DOMAIN ); ?>
225
  </p>
226
+ <p><?php _e( 'Please pick which icon type you want to use:', SFSI_PLUS_DOMAIN ); ?></p>
227
  <ul class="tab_2_email_sec">
228
  <li>
229
  <div class="sfsiplusicnsdvwrp">
230
+ <input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='email') ? 'checked="true"' : '' ;?> type="radio" value="email" class="styled" /><span class="email_icn"></span>
231
  </div>
232
  <label>
233
+ <?php _e( 'Email icon', SFSI_PLUS_DOMAIN ); ?>
234
  </label>
235
  </li>
236
  <li>
237
  <div class="sfsiplusicnsdvwrp">
238
+ <input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='subscribe') ? 'checked="true"' : '' ;?> type="radio" value="subscribe" class="styled" /><span class="subscribe_icn"></span>
239
  </div>
240
  <label>
241
+ <?php _e( 'Email + follow text', SFSI_PLUS_DOMAIN ); ?>
242
  <span class="sfplsdesc">
243
  </span>
244
  </label>
245
  </li>
246
  <li>
247
  <div class="sfsiplusicnsdvwrp">
248
+ <input name="sfsi_plus_rss_icons" <?php echo ($option2['sfsi_plus_rss_icons']=='sfsi') ? 'checked="true"' : '' ;?> type="radio" value="sfsi" class="styled" /><span class="sf_arow"></span>
249
  </div>
250
  <label>
251
+ <?php _e( 'follow.it icon', SFSI_PLUS_DOMAIN ); ?>
252
  <span class="sfplsdesc">
253
+ (<?php _e( 'provider of the service', SFSI_PLUS_DOMAIN ); ?>)
254
  </span>
255
  </label>
256
  </li>
257
  </ul>
258
+ <p><?php _e( 'The service offers many (more) advantages:', SFSI_PLUS_DOMAIN ); ?></p>
259
  <div class='sfsi_plus_service_row'>
260
  <div class='sfsi_plus_service_column'>
261
  <ul>
262
+ <li><span><?php _e( 'More people come back', SFSI_PLUS_DOMAIN ); ?></span><?php _e( ' to your site', SFSI_PLUS_DOMAIN ); ?></li>
263
+ <li><?php _e( 'See your ', SFSI_PLUS_DOMAIN ); ?><span><?php _e( 'subscribers’ emails', SFSI_PLUS_DOMAIN ); ?></span><?php _e( ' & ', SFSI_PLUS_DOMAIN ); ?><span><?php _e( 'interesting statistics', SFSI_PLUS_DOMAIN ); ?></span></li>
264
+ <li><?php _e( 'Automatically post on ', SFSI_PLUS_DOMAIN ); ?><span><?php _e( 'Facebook & Twitter', SFSI_PLUS_DOMAIN ); ?></span></li>
265
  </ul>
266
  </div>
267
  <div class='sfsi_plus_service_column'>
268
  <ul>
269
+ <li><span><?php _e( 'Get more traffic', SFSI_PLUS_DOMAIN ); ?></span><?php _e( ' by being listed in the follow.it directory', SFSI_PLUS_DOMAIN ); ?></li>
270
+ <li><span><?php _e( 'Get alerts', SFSI_PLUS_DOMAIN ); ?></span><?php _e( ' when people subscribe or unsubscribe', SFSI_PLUS_DOMAIN ); ?></li>
271
+ <li><span><?php _e( 'Tailor the sender name & subject line', SFSI_PLUS_DOMAIN ); ?></span><?php _e( ' of the emails', SFSI_PLUS_DOMAIN ); ?></li>
272
  </ul>
273
  </div>
274
 
281
  </div>
282
  <div class='sfsi_plus_more_services_link'>
283
  <a class="pop-up" href="javascript:" id="getMeFullAccess" class="sfsi_plus_getMeFullAccess_class" data-nonce-fetch-feed-id="<?php echo wp_create_nonce( 'sfsi_plus_get_feed_id' );?>" title="Give me access">
284
+ <?php _e( 'Click here to benefit from all advantages >', SFSI_PLUS_DOMAIN ); ?>
285
  </a>
286
  </div>
287
  </form>
288
 
289
  <p class='sfsi_plus_email_last_paragraph'>
290
+ <?php _e( 'This will create your FREE account on follow.it, using the above email. ', SFSI_PLUS_DOMAIN ); ?><br>
291
+ <?php _e( 'All data will be treated highly confidentially, see the', SFSI_PLUS_DOMAIN ); ?>
292
  <a href="https://follow.it/info/privacy" target="_new">
293
+ <?php _e( 'Privacy Policy.', SFSI_PLUS_DOMAIN ); ?>
294
  </a>
295
  </p>
296
  <?php if($option2['sfsi_plus_premium_email_box'] =='yes') { ?>
297
  <div class ="sfsi_plus_new_prmium_follw">
298
  <p>
299
+ <b><?php _e( 'New:', SFSI_PLUS_DOMAIN ); ?></b><?php _e( ' In our Premium Plugin you can now give your email icon other functions too, e.g. contact you (email), share by email, and link to a certain page (e.g. your contact form or newsletter sign-up site). ', SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=more_functions_email_icon&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
300
  </p>
301
  </div>
302
  <?php } ?>
308
  <!-- FACEBOOK ICON -->
309
  <div class="row sfsiplus_facebook_section">
310
  <h2 class="sfsicls_facebook">
311
+ <?php _e( 'Facebook', SFSI_PLUS_DOMAIN ); ?>
312
  </h2>
313
  <div class="inr_cont">
314
  <p>
315
+ <?php _e( 'The Facebook icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
316
  <a class="rit_link pop-up" href="javascript:;" data-id="fbex-s2">
317
+ (<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
318
  </a>
319
  </p>
320
  <p>
321
+ <?php _e( 'The facebook icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
322
  </p>
323
 
324
  <p class="radio_section fb_url" style="display: flow-root;padding-bottom: 4px;">
325
+ <input name="sfsi_plus_facebookPage_option" <?php echo ($option2['sfsi_plus_facebookPage_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
326
 
327
  <label>
328
+ <?php _e( 'Visit my Facebook page at:', SFSI_PLUS_DOMAIN ); ?>
329
  </label>
330
 
331
+ <input class="add" name="sfsi_plus_facebookPage_url" type="url" value="<?php echo ($option2['sfsi_plus_facebookPage_url']!='') ? $option2['sfsi_plus_facebookPage_url'] : '' ;?>" placeholder="E.g https://www.facebook.com/your_page_name" /></p>
332
 
333
  <p class="radio_section fb_url extra_sp" style="display: flow-root;padding-bottom: 6px;">
334
+ <input name="sfsi_plus_facebookLike_option" <?php echo ($option2['sfsi_plus_facebookLike_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
335
  <label>
336
+ <?php _e( 'Like my blog on Facebook (+1)', SFSI_PLUS_DOMAIN ); ?>
337
  </label>
338
  </p>
339
 
340
  <p class="radio_section fb_url extra_sp" style="display: flow-root;padding-top: 8px;">
341
+ <input name="sfsi_plus_facebookShare_option" <?php echo ($option2['sfsi_plus_facebookShare_option']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
342
 
343
  <label class="sfsi_fb_label_3">
344
+ <?php _e( 'Share my blog with friends (on Facebook)', SFSI_PLUS_DOMAIN ); ?>
345
  </label>
346
  </p>
347
  <?php if($option2['sfsi_plus_premium_facebook_box'] =='yes') { ?>
348
  <div class="sfsi_plus_new_prmium_follw">
349
  <p>
350
+ <b><?php _e( 'New:', SFSI_PLUS_DOMAIN ); ?></b> <?php _e( ' In our Premium Plugin you can also allow users to follow you on Facebook directly from your site (without leaving your page, increasing followers). ', SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=direct_follow_facebook&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
351
  </p>
352
  </div>
353
  <?php } ?>
359
  <!-- TWITTER ICON -->
360
  <div class="row sfsiplus_twitter_section">
361
  <h2 class="sfsicls_twt">
362
+ <?php _e( 'Twitter', SFSI_PLUS_DOMAIN ); ?>
363
  </h2>
364
  <div class="inr_cont twt_tab_2">
365
  <p>
366
  <?php
367
+ _e( 'The Twitter icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN );
368
  ?>
369
  <a class="rit_link pop-up" href="javascript:;" data-id="twex-s2">
370
+ (<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
371
  </a>
372
  </p>
373
  <p>
374
+ <?php _e( 'The Twitter icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
375
  </p>
376
  <p class="radio_section fb_url twt_fld">
377
+ <input name="sfsi_plus_twitter_page" <?php echo ($option2['sfsi_plus_twitter_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
378
  <label>
379
+ <?php _e( 'Visit me on Twitter:', SFSI_PLUS_DOMAIN ); ?>
380
  </label>
381
+ <input name="sfsi_plus_twitter_pageURL" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_twitter_pageURL']!='') ? $option2['sfsi_plus_twitter_pageURL'] : '' ;?>" class="add" />
382
  </p>
383
 
384
  <div class="radio_section fb_url twt_fld">
385
+ <input name="sfsi_plus_twitter_followme" <?php echo ($option2['sfsi_plus_twitter_followme']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
386
 
387
  <label>
388
+ <?php _e( 'Follow me on Twitter:', SFSI_PLUS_DOMAIN ); ?>
389
  </label>
390
 
391
+ <input name="sfsi_plus_twitter_followUserName" type="text" value="<?php echo ($option2['sfsi_plus_twitter_followUserName']!='') ? $option2['sfsi_plus_twitter_followUserName'] : '' ;?>" placeholder="my_twitter_name" class="add" />
392
  </div>
393
  <div class="radio_section fb_url twt_fld_2">
394
+ <input name="sfsi_plus_twitter_aboutPage" <?php echo ($option2['sfsi_plus_twitter_aboutPage']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
395
  <label>
396
+ <?php _e( 'Tweet about my page:', SFSI_PLUS_DOMAIN ); ?>
397
  </label>
398
+ <textarea name="sfsi_plus_twitter_aboutPageText" id="sfsi_plus_twitter_aboutPageText" type="text" class="add_txt" placeholder="<?php _e( 'Hey check out this cool site I found', SFSI_PLUS_DOMAIN ) ;?>: www.yourname.com #Topic via@my_twitter_name" /><?php echo ($option2['sfsi_plus_twitter_aboutPageText']!='') ? stripslashes($option2['sfsi_plus_twitter_aboutPageText']) : _e( 'Hey check out this cool site I found', SFSI_PLUS_DOMAIN ) ;?></textarea>
399
  </div>
400
  <?php if($option2['sfsi_plus_premium_twitter_box'] =='yes') { ?>
401
  <div class= "sfsi_plus_new_prmium_follw">
402
  <p>
403
+ <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "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!. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=better_tweets&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
404
  </p>
405
  </div>
406
  <?php } ?>
412
  <!-- YOUTUBE ICON -->
413
  <div class="row sfsiplus_youtube_section">
414
  <h2 class="sfsicls_utube">
415
+ <?php _e( 'Youtube', SFSI_PLUS_DOMAIN ); ?>
416
  </h2>
417
  <div class="inr_cont utube_inn">
418
  <p>
419
+ <?php _e( 'The Youtube icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
420
  <a class="rit_link pop-up" href="javascript:;" data-id="ytex-s2">
421
+ (<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
422
  </a>
423
  </p>
424
  <p>
425
+ <?php _e( 'The Youtube icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
426
  </p>
427
+ <p class="radio_section fb_url"><input name="sfsi_plus_youtube_page" <?php echo ($option2['sfsi_plus_youtube_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
428
  <label class="sfsi_label_utube">
429
+ <?php _e( 'Visit my Youtube page at:', SFSI_PLUS_DOMAIN ); ?>
430
  </label>
431
+ <input name="sfsi_plus_youtube_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_youtube_pageUrl']!='') ? $option2['sfsi_plus_youtube_pageUrl'] : '' ;?>" class="add" />
432
  </p>
433
+ <p class="radio_section fb_url"><input name="sfsi_plus_youtube_follow" <?php echo ($option2['sfsi_plus_youtube_follow']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
434
  <label class="sfsi_label_utube_2">
435
+ <?php _e( 'Subscribe to me on Youtube', SFSI_PLUS_DOMAIN ); ?>
436
  <span>
437
+ <?php _e( '(it allows people to subscribe to you directly, without leaving your blog)', SFSI_PLUS_DOMAIN ); ?>
438
  </span>
439
  </label>
440
  </p>
452
 
453
  <div class="cstmutbewpr">
454
  <ul class="enough_waffling">
455
+ <li onclick="showhideutube(this);"><input name="sfsi_plus_youtubeusernameorid" <?php echo ($sfsi_plus_youtubeusernameorid=='name') ? 'checked="true"' : '' ;?> type="radio" value="name" class="styled" />
456
  <label>
457
+ <?php _e( 'User Name', SFSI_PLUS_DOMAIN ); ?>
458
  </label>
459
  </li>
460
+ <li onclick="showhideutube(this);"><input name="sfsi_plus_youtubeusernameorid" <?php echo ($sfsi_plus_youtubeusernameorid=='id') ? 'checked="true"' : '' ;?> type="radio" value="id" class="styled" />
461
  <label>
462
+ <?php _e( 'Channel Id', SFSI_PLUS_DOMAIN ); ?>
463
  </label></li>
464
  </ul>
465
  <div class="cstmutbtxtwpr">
466
  <div class="cstmutbchnlnmewpr" <?php if($sfsi_plus_youtubeusernameorid != 'id'){echo 'style="display: block;"';}?>>
467
  <p class="extra_pp">
468
+ <label><?php _e( 'UserName:', SFSI_PLUS_DOMAIN ); ?></label>
469
+ <input name="sfsi_plus_ytube_user" type="url" value="<?php echo (isset($option2['sfsi_plus_ytube_user']) && $option2['sfsi_plus_ytube_user']!='') ? $option2['sfsi_plus_ytube_user'] : '' ;?>" placeholder="Youtube username" class="add" />
470
  </p>
471
  <div class="utbe_instruction">
472
  <?php _e( 'To find your User ID/Channel ID, login to your YouTube account, click the user icon at the top right corner and select "Settings", then click "Advanced" under "Name" and you will find both your "Channel ID" and "User ID" under "Account Information".', SFSI_PLUS_DOMAIN ); ?>
475
  <div class="cstmutbchnlidwpr" <?php if($sfsi_plus_youtubeusernameorid == 'id'){echo 'style="display: block"';}?>>
476
  <p class="extra_pp">
477
  <label>
478
+ <?php _e( 'Channel Id:', SFSI_PLUS_DOMAIN ); ?>
479
  </label>
480
+ <input name="sfsi_plus_ytube_chnlid" type="url" value="<?php echo (isset($option2['sfsi_plus_ytube_chnlid']) && $option2['sfsi_plus_ytube_chnlid']!='') ? $option2['sfsi_plus_ytube_chnlid'] : '' ;?>" placeholder="youtube_channel_id" class="add" />
481
  </p>
482
  <div class="utbe_instruction">
483
+ <?php _e( 'To find your User ID/Channel ID, login to your YouTube account, click the user icon at the top right corner and select "Settings", then click "Advanced" under "Name" and you will find both your "Channel ID" and "User ID" under "Account Information".', SFSI_PLUS_DOMAIN ); ?>
484
  </div>
485
  </div>
486
  </div>
492
 
493
  <!-- PINTEREST ICON -->
494
  <div class="row sfsiplus_pinterest_section">
495
+ <h2 class="sfsicls_pinterest"><?php _e( 'Pinterest', SFSI_PLUS_DOMAIN ); ?></h2>
496
  <div class="inr_cont">
497
  <p>
498
+ <?php _e( 'The Pinterest icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
499
  <a class="rit_link pop-up" href="javascript:;" data-id="pinex-s2">
500
+ (<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
501
  </a>
502
  </p>
503
  <p>
504
+ <?php _e( 'The Pinterest icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
505
  </p>
506
  <p class="radio_section fb_url">
507
+ <input name="sfsi_plus_pinterest_page" <?php echo ($option2['sfsi_plus_pinterest_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
508
  <label>
509
+ <?php _e( 'Visit my Pinterest page at:', SFSI_PLUS_DOMAIN ); ?>
510
  </label>
511
+ <input name="sfsi_plus_pinterest_pageUrl" type="url" placeholder="http://" value="<?php echo ($option2['sfsi_plus_pinterest_pageUrl']!='') ? $option2['sfsi_plus_pinterest_pageUrl'] : '' ;?>" class="add" />
512
  </p>
513
  <div class="pint_url">
514
  <p class="radio_section fb_url">
515
+ <input name="sfsi_plus_pinterest_pingBlog" <?php echo ($option2['sfsi_plus_pinterest_pingBlog']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
516
  <label class="sfsi_label_pinterest">
517
+ <?php _e( 'Pin my blog on Pinterest (+1)', SFSI_PLUS_DOMAIN ); ?>
518
  </label>
519
  </p>
520
  </div>
521
  <div class= "sfsi_plus_new_prmium_follw">
522
  <p>
523
+ <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "The Premium Plugin allows you to show a Pinterest icon if visitors move their mouse over your images. You can define exactly where it should show, and where not. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=pinterest&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
524
  </p>
525
  </div>
526
  </div>
531
  <!-- INSTAGRAM ICON -->
532
  <div class="row sfsiplus_instagram_section">
533
  <h2 class="sfsicls_instagram">
534
+ <?php _e( 'Instagram', SFSI_PLUS_DOMAIN ); ?>
535
  </h2>
536
  <div class="inr_cont">
537
  <p>
538
+ <?php _e( 'When clicked on, users will get directed to your Instagram page', SFSI_PLUS_DOMAIN ); ?>.
539
  </p>
540
  <p class="radio_section fb_url cus_link instagram_space" >
541
  <label class="sfsiLabel">
542
+ <?php _e( 'URL', SFSI_PLUS_DOMAIN ); ?>
543
  </label>
544
+ <input name="sfsi_plus_instagram_pageUrl" type="text" value="<?php echo (isset($option2['sfsi_plus_instagram_pageUrl']) && $option2['sfsi_plus_instagram_pageUrl']!='') ? $option2['sfsi_plus_instagram_pageUrl'] : '' ;?>" placeholder="http://" class="add" />
545
  </p>
546
  </div>
547
  </div>
550
  <!-- LINKEDIN ICON -->
551
  <div class="row sfsiplus_linkedin_section">
552
  <h2 class="sfsicls_linkdin">
553
+ <?php _e( 'LinkedIn', SFSI_PLUS_DOMAIN ); ?>
554
  </h2>
555
  <div class="inr_cont linked_tab_2 link_in">
556
  <p>
557
+ <?php _e( 'The LinkedIn icon can perform several actions. Pick below which ones it should perform. If you select several options, then users can select what they want to do', SFSI_PLUS_DOMAIN ); ?>
558
  <a class="rit_link pop-up" href="javascript:;" data-id="linkex-s2">
559
+ (<?php _e( 'see an example', SFSI_PLUS_DOMAIN ); ?>).
560
  </a>
561
  </p>
562
  <p>
563
+ <?php _e( 'You can find your ID in the link of your profile page, e.g. https://www.linkedin.com/profile/view?id=<b>8539887</b>&trk=nav_responsive_tab_profile_pic', SFSI_PLUS_DOMAIN ); ?>
564
  </p>
565
  <p>
566
+ <?php _e( 'The LinkedIn icon should allow users to...', SFSI_PLUS_DOMAIN ); ?>
567
  </p>
568
  <div class="radio_section fb_url link_1">
569
+ <input name="sfsi_plus_linkedin_page" <?php echo ($option2['sfsi_plus_linkedin_page']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
570
  <label>
571
  <?php _e( 'Visit my Linkedin page at:', SFSI_PLUS_DOMAIN ); ?>
572
  </label>
573
+ <input name="sfsi_plus_linkedin_pageURL" type="text" placeholder="http://" value="<?php echo ($option2['sfsi_plus_linkedin_pageURL']!='') ? $option2['sfsi_plus_linkedin_pageURL'] : '' ;?>" class="add" />
574
  </div>
575
 
576
  <div class="radio_section fb_url link_2">
577
+ <input name="sfsi_plus_linkedin_follow" <?php echo ($option2['sfsi_plus_linkedin_follow']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
578
 
579
  <label>
580
+ <?php _e( 'Follow me on Linkedin:', SFSI_PLUS_DOMAIN ); ?>
581
  </label>
582
 
583
+ <input name="sfsi_plus_linkedin_followCompany" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_followCompany']!='') ? $option2['sfsi_plus_linkedin_followCompany'] : '' ;?>" class="add" placeholder="Enter company ID, e.g. 123456" />
584
  </div>
585
 
586
  <div class="radio_section fb_url link_3">
587
+ <input name="sfsi_plus_linkedin_SharePage" <?php echo ($option2['sfsi_plus_linkedin_SharePage']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
588
  <label>
589
+ <?php _e( 'Share my page on LinkedIn', SFSI_PLUS_DOMAIN ); ?>
590
  </label>
591
  </div>
592
 
593
  <div class="radio_section fb_url link_4">
594
+ <input name="sfsi_plus_linkedin_recommendBusines" <?php echo ($option2['sfsi_plus_linkedin_recommendBusines']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
595
  <label class="anthr_labl">
596
+ <?php _e( 'Recommend my business or product on Linkedin', SFSI_PLUS_DOMAIN ); ?>
597
  </label>
598
+ <input name="sfsi_plus_linkedin_recommendProductId" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_recommendProductId']!='') ? $option2['sfsi_plus_linkedin_recommendProductId'] : '' ;?>" class="add link_dbl" placeholder="Enter Product ID, e.g. 1441" /> <input name="sfsi_plus_linkedin_recommendCompany" type="text" value="<?php echo ($option2['sfsi_plus_linkedin_recommendCompany']!='') ? $option2['sfsi_plus_linkedin_recommendCompany'] : '' ;?>" class="add" placeholder="Enter company name, e.g. Google”" />
599
  </div>
600
  <div class="lnkdin_instruction">
601
+ <?php _e( 'To find your Product or Company ID, you can use their ID lookup tool at', SFSI_PLUS_DOMAIN ); ?>
602
  <a target="_blank" href="https://developer.linkedin.com/apply-getting-started#company-lookup">
603
  https://developer.linkedin.com/apply-getting-started#company-lookup
604
  </a>
605
+ . <?php _e( 'You need to be logged in to Linkedin to be able to use it.', SFSI_PLUS_DOMAIN ); ?>
606
  </div>
607
  </div>
608
  </div>
611
  <!-- HOUZZ ICON -->
612
  <div class="row sfsiplus_houzz_section">
613
  <h2 class="sfsicls_houzz">
614
+ <?php _e( 'Houzz', SFSI_PLUS_DOMAIN ); ?>
615
  </h2>
616
  <div class="inr_cont">
617
  <p>
618
+ <?php _e( 'Please provide the url to your Houzz profile (e.g. http://www.houzz.com/user/your_username).', SFSI_PLUS_DOMAIN ); ?>
619
  </p>
620
  <div class="fb_url link_2">
621
  <label class="sfsiLabel" style="min-width: 0px;">
622
+ <?php _e( 'URL:', SFSI_PLUS_DOMAIN ); ?>
623
  </label>
624
 
625
+ <input style="float:none;margin-top:0" name="sfsi_plus_houzz_pageUrl" type="text" value="<?php echo (isset($option2['sfsi_plus_houzz_pageUrl']) && $option2['sfsi_plus_houzz_pageUrl']!='') ? $option2['sfsi_plus_houzz_pageUrl'] : '' ;?>" placeholder="http://" class="add" />
626
  </div>
627
 
628
  </div>
634
  <!-- Ok ICON -->
635
  <div class="row sfsiplus_ok_section">
636
 
637
+ <h2 class="sfsicls_ok"><?php _e( 'OdnoKlassniki', SFSI_PLUS_DOMAIN ); ?></h2>
638
  <div class="inr_cont">
639
  <p>
640
  <?php _e( 'When clicked on, users will get directed to your OK page.', SFSI_PLUS_DOMAIN ); ?>
644
  <input name="sfsi_plus_okVisit_option" checked="true" type="checkbox" value="yes" style="display:none;" class=""/>
645
 
646
  <label class="sfsiLabel" style="margin-top:10px">
647
+ <?php _e( 'Visit my OK page at:', SFSI_PLUS_DOMAIN ); ?>
648
  </label>
649
 
650
  <input name="sfsi_plus_okVisit_url" type="url" placeholder="" value="<?php echo $option2['sfsi_plus_okVisit_url'];?>" class="add" style="margin-top:10px" />
651
  </div>
652
  <div class= "sfsi_plus_new_prmium_follw">
653
  <p>
654
+ <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( "In our Premium Plugin you can now give OK icon other functions too, e.g. <b>like your website/blog, subscribe/follow you</b> on OK. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=ok_like_and_subscribe&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
655
  </p>
656
  </div>
657
  </div>
661
  <!-- Telegram ICON -->
662
  <div class="row sfsiplus_telegram_section">
663
 
664
+ <h2 class="sfsicls_telegram"><?php _e( 'Telegram', SFSI_PLUS_DOMAIN ); ?></h2>
665
 
666
  <div class="inr_cont">
667
  <p>
672
  <input type="checkbox" name="sfsi_plus_telegramShare_option" value="yes" checked="checked" style="display:none" />
673
 
674
  <label class="sfsiLabel1 sfsiLabel" >
675
+ <?php _e("Pre-filled message:", SFSI_PLUS_DOMAIN );?>
676
  </label>
677
 
678
+ <input name="sfsi_plus_telegram_message" type="text" value="<?php echo (isset($option2['sfsi_plus_telegram_message']) && $option2['sfsi_plus_telegram_message']!='') ? $option2['sfsi_plus_telegram_message'] : '' ;?>" placeholder="Hey, I like your website." class="add link_1"/>
679
  </div>
680
 
681
  <div class="radio_section fb_url ">
682
  <label class="sfsiLabel1 sfsiLabel" >
683
+ <?php _e("My Telegram username", SFSI_PLUS_DOMAIN );?>
684
  </label>
685
 
686
+ <input name="sfsi_plus_telegram_username" type="text" value="<?php echo (isset($option2['sfsi_plus_telegram_username']) && $option2['sfsi_plus_telegram_username']!='') ? $option2['sfsi_plus_telegram_username'] : '' ;?>" placeholder="" class="add" />
687
  </div>
688
  <div class= "sfsi_plus_new_prmium_follw">
689
  <p>
690
+ <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b><?php _e( " In our Premium Plugin you can now give your Telegram icon sharing functionality too, e.g. share your website/blog with friends. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=telegram_sharing&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
691
  </p>
692
  </div>
693
  </div>
700
  <div class="row sfsiplus_vk_section">
701
 
702
  <h2 class="sfsicls_vk">
703
+ <?php _e( 'VK', SFSI_PLUS_DOMAIN ); ?>
704
  </h2>
705
  <div class="inr_cont">
706
  <p>
711
  <input type="checkbox" name="sfsi_plus_vkVisit_option" value="yes" checked="checked" style="display:none">
712
 
713
  <label class="sfsiLabel">
714
+ <?php _e( 'Visit my VK page at:', SFSI_PLUS_DOMAIN ); ?>
715
  </label>
716
 
717
  <input name="sfsi_plus_vkVisit_url" type="url" placeholder="http://" value="<?php echo $option2['sfsi_plus_vkVisit_url'];?>" class="add" />
718
  </div>
719
  <div class= "sfsi_plus_new_prmium_follw">
720
  <p>
721
+ <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
722
+ <?php _e( "In our Premium Plugin you can now give your VK icon sharing functionality too, e.g. <b>share your website/blog</b> with friends. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=vk_share&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
723
  </p>
724
  </div>
725
  </div>
729
  <div class="row sfsiplus_wechat_section" style="display: <?php echo isset($option1["sfsi_plus_wechat_display"])&&$option1["sfsi_plus_wechat_display"]=="yes"?'block':'none'; ?>">
730
 
731
  <h2 class="sfsicls_wechat">
732
+ <?php _e( 'WeChat', SFSI_PLUS_DOMAIN ); ?>
733
  </h2>
734
 
735
  <div class="inr_cont">
742
  </div>
743
  <div class= "sfsi_plus_new_prmium_follw">
744
  <p>
745
+ <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
746
+ <?php _e( "In our Premium Plugin you can also allow users to <b>follow you</b> on WeChat. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=wechat_sharing&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
747
  </p>
748
  </div>
749
  </div>
 
 
 
 
750
  </div>
751
  <!-- VK ICON -->
752
 
755
  <div class="row sfsiplus_whatsapp_section" style="display: <?php echo isset($option1["sfsi_plus_whatsapp_display"])&&$option1["sfsi_plus_whatsapp_display"]=="yes"?'block':'none'; ?>">
756
 
757
  <h2 class="sfsicls_whatsapp">
758
+ <?php _e( 'WhatsApp', SFSI_PLUS_DOMAIN ); ?>
759
  </h2>
760
 
761
  <div class="inr_cont">
764
  </p>
765
  <div class= "sfsi_plus_new_prmium_follw">
766
  <p>
767
+ <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
768
+ <?php _e( "In our Premium Plugin you can define what text will get shared, and also give the icon the feature to send you a WhatsApp message. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=whatsapp_sharing&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
769
  </p>
770
  </div>
771
  </div>
 
 
 
 
772
  </div>
773
  <!-- Whatsapp ICON -->
774
 
776
  <div class="row sfsiplus_weibo_section">
777
 
778
  <h2 class="sfsicls_weibo">
779
+ <?php _e( 'Sina Weibo', SFSI_PLUS_DOMAIN ); ?>
780
  </h2>
781
  <div class="inr_cont">
782
  <p class="sfsiLabel infoLabel">
786
  <input name="sfsi_plus_weiboVisit_option" checked="checked" placeholder="http://" type="checkbox" value="yes" style="display:none"/>
787
 
788
  <label class="sfsiLabel">
789
+ <?php _e( 'Visit my Sina Weibo page at:', SFSI_PLUS_DOMAIN ); ?>
790
  </label>
791
 
792
  <input name="sfsi_plus_weiboVisit_url" type="url" placeholder="" value="<?php echo $option2['sfsi_plus_weiboVisit_url'];?>" class="add" />
793
  </div>
794
  <div class= "sfsi_plus_new_prmium_follw">
795
  <p>
796
+ <b><?php _e( 'New: ', SFSI_PLUS_DOMAIN ); ?></b>
797
+ <?php _e( " In our Premium Plugin you can now give Weibo icon other functions too, e.g. <b>like your website/blog, share your website/blog</b> on Weibo. ", SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=weibo_like_and_share&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
798
  </p>
799
  </div>
800
  </div>
801
 
 
802
  </div>
803
  <!-- Weibo ICON -->
804
 
807
  <!-- Custom icon section start here -->
808
  <div class="plus_custom-links sfsiplus_custom_section">
809
  <?php
810
+ $costom_links = maybe_unserialize($option2['sfsi_plus_CustomIcon_links']);
811
 
812
  $bannerDisplay= "display:none;";
813
  $count = 1;
819
  <div class="row sfsiICON_<?php echo $i; ?> cm_lnk">
820
  <h2 class="custom">
821
  <span class="customstep2-img">
822
+ <img src="<?php echo (!empty($icons[$i])) ? esc_url($icons[$i]) : SFSI_PLUS_PLUGURL.'images/custom.png';?>" id="CImg_<?php echo $new_element; ?>" alt="" style="border-radius:48%" />
823
  </span>
824
  <span class="sfsiCtxt">
825
+ <?php _e( 'Custom', SFSI_PLUS_DOMAIN ); ?>
826
  <?php echo $count; ?>
827
  </span>
828
  </h2>
829
  <div class="inr_cont ">
830
  <p>
831
+ <?php _e( 'Where do you want this icon to link to?', SFSI_PLUS_DOMAIN ); ?>
832
  </p>
833
  <p class="radio_section fb_url sfsiplus_custom_section cus_link " >
834
  <label>
835
+ <?php _e( 'Link:', SFSI_PLUS_DOMAIN ); ?>
836
  </label>
837
+ <input name="sfsi_plus_CustomIcon_links[]" type="text" value="<?php echo (isset($costom_links[$i]) && $costom_links[$i]!='') ? esc_url($costom_links[$i]) : '' ;?>" placeholder="http://" class="add" file-id="<?php echo $i; ?>" />
838
  </p>
839
  </div>
840
  </div>
845
  </div>
846
 
847
  <div class="banner_custom_icon sfsi_plus_new_prmium_follw" style="<?php echo $bannerDisplay;?>">
848
+ <p><b><?php _e( 'New:', SFSI_PLUS_DOMAIN ); ?></b> <?php _e( ' 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). ', SFSI_PLUS_DOMAIN ); ?><a style="cursor:pointer" class="pop-up" data-id="sfsi_plus_quickpay-overlay" onclick="sfsi_plus_open_quick_checkout(event)" class="sfisi_plus_font_bold" target="_blank"><?php _e( 'Go premium now', SFSI_PLUS_DOMAIN ); ?></a><a href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=call_or_sms_feature_custom_icons&utm_medium=banner" class="sfsi_plus_font_inherit" target="_blank" style="font-family: inherit !important;"><?php _e( ' or learn more', SFSI_PLUS_DOMAIN ); ?></a>
849
  </p>
850
  </div>
851
 
852
  <!-- END Custom icon section here -->
 
853
 
854
  <?php sfsi_plus_ask_for_help(2); ?>
855
 
 
856
  <!-- SAVE BUTTON SECTION -->
857
  <div class="save_button tab_2_sav">
858
+ <img src="<?php echo SFSI_PLUS_PLUGURL; ?>images/ajax-loader.gif" class="loader-img" alt="" />
859
 
860
  <?php $nonce = wp_create_nonce("update_plus_step2"); ?>
861
 
862
  <a href="javascript:;" id="sfsi_plus_save2" title="Save" data-nonce="<?php echo $nonce;?>">
863
+ <?php _e( 'Save', SFSI_PLUS_DOMAIN ); ?>
864
  </a>
865
  </div>
866
  <!-- END SAVE BUTTON SECTION -->
867
  <a class="sfsiColbtn closeSec" href="javascript:;">
868
+ <?php _e( 'Collapse area', SFSI_PLUS_DOMAIN ); ?>
869
  </a>
870
 
871
  <label class="closeSec"></label>
views/sfsi_option_view4.php CHANGED
@@ -688,6 +688,7 @@
688
  </label>
689
  <input name="sfsi_plus_instagram_User" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_instagram_User']) && $option4['sfsi_plus_instagram_User']!='') ? $option4['sfsi_plus_instagram_User'] : '' ;?>" />
690
  </div>
 
691
  <div>
692
  <label>
693
  <?php _e( 'Enter Instagram Client Id', SFSI_PLUS_DOMAIN ); ?>
@@ -712,8 +713,9 @@
712
  </label>
713
  <input name="sfsi_plus_instagram_token" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_instagram_token'])) ? $option4['sfsi_plus_instagram_token'] : '';?>"/>
714
  </div>
 
715
  </div>
716
- <div class="sfsi_plus_instagramInstruction">
717
  <p>To complete the process please follow these steps:</p>
718
  <ul>
719
  <li>Go to <a href="https://www.instagram.com/developer" target="_blank">https://www.instagram.com/developer</a></li>
688
  </label>
689
  <input name="sfsi_plus_instagram_User" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_instagram_User']) && $option4['sfsi_plus_instagram_User']!='') ? $option4['sfsi_plus_instagram_User'] : '' ;?>" />
690
  </div>
691
+ <div style="display:none">
692
  <div>
693
  <label>
694
  <?php _e( 'Enter Instagram Client Id', SFSI_PLUS_DOMAIN ); ?>
713
  </label>
714
  <input name="sfsi_plus_instagram_token" class="input_facebook" type="text" value="<?php echo (isset($option4['sfsi_plus_instagram_token'])) ? $option4['sfsi_plus_instagram_token'] : '';?>"/>
715
  </div>
716
+ </div>
717
  </div>
718
+ <div class="sfsi_plus_instagramInstruction" style="display:none">
719
  <p>To complete the process please follow these steps:</p>
720
  <ul>
721
  <li>Go to <a href="https://www.instagram.com/developer" target="_blank">https://www.instagram.com/developer</a></li>
views/sfsi_option_view5.php CHANGED
@@ -1,12 +1,12 @@
1
  <?php
2
 
3
  /* unserialize all saved option for section 5 options */
4
- $icons = (isset($option1['sfsi_custom_files']) && ""!==$option1['sfsi_custom_files']) ? unserialize($option1['sfsi_custom_files']) : array() ;
5
  $option3 = maybe_unserialize(get_option('sfsi_plus_section3_options',false));
6
 
7
  $option5 = maybe_unserialize(get_option('sfsi_plus_section5_options',false));
8
 
9
- $custom_icons_order = unserialize($option5['sfsi_plus_CustomIcons_order']);
10
  $icons_order = array(
11
  $option5['sfsi_plus_rssIcon_order'] =>'rss',
12
  $option5['sfsi_plus_emailIcon_order'] =>'email',
@@ -1097,7 +1097,7 @@
1097
  <div class="clear"> </div>
1098
  <div class="plus_custom_m">
1099
  <?php
1100
- $sfsiMouseOverTexts = unserialize($option5['sfsi_plus_custom_MouseOverTexts']);
1101
  $count=1; for($i=$first_key; $i<=$endkey; $i++) :
1102
  ?>
1103
  <?php if(!empty( $icons[$i])) : ?>
1
  <?php
2
 
3
  /* unserialize all saved option for section 5 options */
4
+ $icons = (isset($option1['sfsi_custom_files']) && ""!==$option1['sfsi_custom_files']) ? maybe_unserialize($option1['sfsi_custom_files']) : array() ;
5
  $option3 = maybe_unserialize(get_option('sfsi_plus_section3_options',false));
6
 
7
  $option5 = maybe_unserialize(get_option('sfsi_plus_section5_options',false));
8
 
9
+ $custom_icons_order = maybe_unserialize($option5['sfsi_plus_CustomIcons_order']);
10
  $icons_order = array(
11
  $option5['sfsi_plus_rssIcon_order'] =>'rss',
12
  $option5['sfsi_plus_emailIcon_order'] =>'email',
1097
  <div class="clear"> </div>
1098
  <div class="plus_custom_m">
1099
  <?php
1100
+ $sfsiMouseOverTexts = maybe_unserialize($option5['sfsi_plus_custom_MouseOverTexts']);
1101
  $count=1; for($i=$first_key; $i<=$endkey; $i++) :
1102
  ?>
1103
  <?php if(!empty( $icons[$i])) : ?>
views/sfsi_option_view7.php CHANGED
@@ -1,8 +1,9 @@
1
  <?php
2
  /* unserialize all saved option for section 7 options */
3
- $option7= maybe_unserialize(get_option('sfsi_plus_section7_options',false));
4
- while(is_string($option7)){
5
- $option7 = unserialize($option7);
 
6
  }
7
 
8
  /**
@@ -76,7 +77,7 @@
76
  <div class="like_pop_box">
77
  <div class="sfsi_plus_Popinner">
78
  <h2>
79
- <?php _e( 'Enjoy the site? Please follow and like us!', SFSI_PLUS_DOMAIN ); ?>
80
  </h2>
81
  <ul class="like_icon plus_sfsi_sample_icons">
82
  <li class="sfsiplus_rss_section">
@@ -353,7 +354,7 @@
353
  <div class="field" style="width:50%">
354
  <select multiple="multiple" name="sfsi_plus_Show_popupOn_PageIDs" id="sfsi_plus_Show_popupOn_PageIDs" style="width:60%;min-height: 150px;">
355
  <?php
356
- $select= (isset($option7['sfsi_plus_Show_popupOn_PageIDs'])) ? unserialize($option7['sfsi_plus_Show_popupOn_PageIDs']) :array();
357
  $get_pages = get_pages( array(
358
  'offset'=> 1,
359
  'hierarchical'=>1,
1
  <?php
2
  /* unserialize all saved option for section 7 options */
3
+ $option7= maybe_unserialize( get_option( 'sfsi_plus_section7_options', false ) );
4
+
5
+ if( is_string( $option7 ) ) {
6
+ $option7 = maybe_unserialize( $option7 );
7
  }
8
 
9
  /**
77
  <div class="like_pop_box">
78
  <div class="sfsi_plus_Popinner">
79
  <h2>
80
+ <?php _e( 'Enjoy the site? Please follow and like us!', SFSI_PLUS_DOMAIN ); ?>
81
  </h2>
82
  <ul class="like_icon plus_sfsi_sample_icons">
83
  <li class="sfsiplus_rss_section">
354
  <div class="field" style="width:50%">
355
  <select multiple="multiple" name="sfsi_plus_Show_popupOn_PageIDs" id="sfsi_plus_Show_popupOn_PageIDs" style="width:60%;min-height: 150px;">
356
  <?php
357
+ $select= (isset($option7['sfsi_plus_Show_popupOn_PageIDs'])) ? maybe_unserialize($option7['sfsi_plus_Show_popupOn_PageIDs']) :array();
358
  $get_pages = get_pages( array(
359
  'offset'=> 1,
360
  'hierarchical'=>1,
views/sfsi_option_view8.php CHANGED
@@ -437,19 +437,19 @@ $option8['sfsi_plus_responsive_icons_end_post'] = (isset($option8['sfsi_plus_re
437
  </p>
438
 
439
  <ul class="sfsiplus_tab_3_icns sfsiplus_shwthmbfraftr" <?php echo ($option8['sfsi_plus_show_item_onposts'] != "yes") ? 'style="display: none";' : ''; ?>>
440
- <li onclick="sfsiplus_togglbtmsection('sfsiplus_toggleonlystndrshrng, .sfsiplus_responsive_hide', 'sfsiplus_toggledsplyitemslctn, .sfsiplus_toggleonlyrspvshrng, .sfsiplus_responsive_show', this);" class="clckbltglcls sfsi_plus_border_left_0" >
441
- <input name="sfsi_plus_display_button_type" <?php echo ($option8['sfsi_plus_display_button_type'] == 'standard_buttons') ? 'checked="true"' : ''; ?> type="radio" value="standard_buttons" class="styled" />
442
  <label class="labelhdng4" style="margin-left: 10px!important;">
443
  <?php _e('Original icons', SFSI_PLUS_DOMAIN); ?>
444
  </label>
445
  </li>
446
- <li onclick="sfsiplus_togglbtmsection('sfsiplus_toggledsplyitemslctn, .sfsiplus_responsive_hide', 'sfsiplus_toggleonlystndrshrng, .sfsiplus_toggleonlyrspvshrng, .sfsiplus_responsive_show', this);" class="clckbltglcls sfsi_plus_border_left_0">
447
- <input name="sfsi_plus_display_button_type" <?php echo ($option8['sfsi_plus_display_button_type'] == 'normal_button') ? 'checked="true"' : ''; ?> type="radio" value="normal_button" class="styled" />
448
  <label class="labelhdng4" style="margin-left: 10px!important;">
449
  <?php _e('Icons I selected the above', SFSI_PLUS_DOMAIN); ?>
450
  </label>
451
- <li onclick="sfsiplus_togglbtmsection('sfsiplus_toggleonlyrspvshrng, .sfsiplus_responsive_show', 'sfsiplus_toggleonlystndrshrng, .sfsiplus_toggledsplyitemslctn, .sfsiplus_responsive_hide', this);" class="clckbltglcls sfsi_plus_border_left_0">
452
- <input name="sfsi_plus_display_button_type" <?php echo ($option8['sfsi_plus_display_button_type'] == 'responsive_button') ? 'checked="true"' : ''; ?> type="radio" value="responsive_button" class="styled" />
453
  <label class="labelhdng4" style="margin-left: 10px!important;">
454
  <?php _e('Responsive icons', SFSI_PLUS_DOMAIN); ?>
455
  </label>
437
  </p>
438
 
439
  <ul class="sfsiplus_tab_3_icns sfsiplus_shwthmbfraftr" <?php echo ($option8['sfsi_plus_show_item_onposts'] != "yes") ? 'style="display: none";' : ''; ?>>
440
+ <li onclick="sfsiplus_togglbtmsection('sfsiplus_toggleonlystndrshrng, .sfsiplus_responsive_hide', 'sfsiplus_toggledsplyitemslctn, .sfsiplus_toggleonlyrspvshrng, .sfsiplus_responsive_show', this);" class="clckbltglcls sfsi_plus_border_left_0 sfsiplus_top_tabs_li">
441
+ <input name="sfsi_plus_display_button_type" <?php echo ($option8['sfsi_plus_display_button_type'] == 'standard_buttons') ? 'checked="true"' : ''; ?> type="radio" value="standard_buttons" class="styled" />
442
  <label class="labelhdng4" style="margin-left: 10px!important;">
443
  <?php _e('Original icons', SFSI_PLUS_DOMAIN); ?>
444
  </label>
445
  </li>
446
+ <li onclick="sfsiplus_togglbtmsection('sfsiplus_toggledsplyitemslctn, .sfsiplus_responsive_hide', 'sfsiplus_toggleonlystndrshrng, .sfsiplus_toggleonlyrspvshrng, .sfsiplus_responsive_show', this);" class="clckbltglcls sfsi_plus_border_left_0 sfsiplus_top_tabs_li">
447
+ <input name="sfsi_plus_display_button_type" <?php echo ($option8['sfsi_plus_display_button_type'] == 'normal_button') ? 'checked="true"' : ''; ?> type="radio" value="normal_button" class="styled" />
448
  <label class="labelhdng4" style="margin-left: 10px!important;">
449
  <?php _e('Icons I selected the above', SFSI_PLUS_DOMAIN); ?>
450
  </label>
451
+ <li onclick="sfsiplus_togglbtmsection('sfsiplus_toggleonlyrspvshrng, .sfsiplus_responsive_show', 'sfsiplus_toggleonlystndrshrng, .sfsiplus_toggledsplyitemslctn, .sfsiplus_responsive_hide', this);" class="clckbltglcls sfsi_plus_border_left_0 sfsiplus_top_tabs_li">
452
+ <input name="sfsi_plus_display_button_type" <?php echo ($option8['sfsi_plus_display_button_type'] == 'responsive_button') ? 'checked="true"' : ''; ?> type="radio" value="responsive_button" class="styled" />
453
  <label class="labelhdng4" style="margin-left: 10px!important;">
454
  <?php _e('Responsive icons', SFSI_PLUS_DOMAIN); ?>
455
  </label>
views/sfsi_options_view.php CHANGED
@@ -78,7 +78,7 @@
78
  <div class="row">
79
  <div class="col-12 col-lg-8 col-xxl-10">
80
  <p class='sfsi-top-header-subheading font-italic'> <?php _e('Simply answer the questions below', SFSI_PLUS_DOMAIN); ?> <span class='sfsi-top-banner-no-decoration'><?php _e('(at least the first 3)', SFSI_PLUS_DOMAIN); ?></span><?php _e((' - that`s it!'), SFSI_PLUS_DOMAIN); ?></p>
81
- <p class=""><?php _e('If you face any issue, please ask in', SFSI_PLUS_DOMAIN); ?> <a target="_blank" href="http://bit.ly/USM_SUPPORT_FORUM" class="sfsi-top-banner-no-decoration text-success"><?php _e('Support Forum', SFSI_PLUS_DOMAIN); ?></a><?php _e('. We\'ll try to respond quickly. Thank you!', SFSI_PLUS_DOMAIN); ?></p>
82
  <div class="d-none d-lg-flex row">
83
  <div class="col-9 col-xxl-10">
84
  <p class="sfsi-top-banner-higligted-text">
78
  <div class="row">
79
  <div class="col-12 col-lg-8 col-xxl-10">
80
  <p class='sfsi-top-header-subheading font-italic'> <?php _e('Simply answer the questions below', SFSI_PLUS_DOMAIN); ?> <span class='sfsi-top-banner-no-decoration'><?php _e('(at least the first 3)', SFSI_PLUS_DOMAIN); ?></span><?php _e((' - that`s it!'), SFSI_PLUS_DOMAIN); ?></p>
81
+ <p class=""><?php _e('If you face any issue, please ask in', SFSI_PLUS_DOMAIN); ?> <a target="_blank" href="https://wordpress.org/support/plugin/ultimate-social-media-plus/" class="sfsi-top-banner-no-decoration text-success"><?php _e('Support Forum', SFSI_PLUS_DOMAIN); ?></a><?php _e('. We\'ll try to respond quickly. Thank you!', SFSI_PLUS_DOMAIN); ?></p>
82
  <div class="d-none d-lg-flex row">
83
  <div class="col-9 col-xxl-10">
84
  <p class="sfsi-top-banner-higligted-text">
views/subviews/que4/animatethem.php CHANGED
@@ -1,182 +1,116 @@
1
- <!--icon Animation section start -->
2
- <div class="sub_row stand sec_new" style="margin-left: 0px;">
3
 
4
- <h3><?php _e( 'Animate them (your main icons)', SFSI_PLUS_DOMAIN ); ?></h3>
5
 
6
- <div id="animationSection" class="radio_section tab_3_option">
7
 
8
- <input name="sfsi_plus_mouseOver" <?php echo ( $option3['sfsi_plus_mouseOver']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
9
- <label>
10
- <?php _e( 'Mouse-Over effects', SFSI_PLUS_DOMAIN ); ?>
11
- </label>
12
 
13
- <div class="col-md-12 rowmarginleft45 mouse-over-effects <?php echo ( $option3['sfsi_plus_mouseOver']=='yes') ? 'show' : 'hide' ;?>">
14
 
15
- <div class="row">
16
-
17
- <input value="same_icons" name="sfsi_plus_mouseOver_effect_type" <?php echo ( $option3['sfsi_plus_mouseOver_effect_type']=='same_icons') ? 'checked=checked' : '' ;?> type="radio" class="styled"/>
18
-
19
- <label><?php _e( 'Same-icon effects', SFSI_PLUS_DOMAIN ); ?></label>
20
-
21
- </div><!-- row closes -->
22
-
23
- <div class="row rowpadding10 same_icons_effects <?php echo ( $option3['sfsi_plus_mouseOver_effect_type']=='same_icons') ? 'show' : 'hide' ;?>">
24
-
25
- <div class="effectContainer bottommargin30">
26
-
27
- <div class="effectName">
28
-
29
- <input class="styled" type="radio" name="sfsi_plus_same_icons_mouseOver_effect" value="fade_in" <?php echo ( $option3['sfsi_plus_mouseOver_effect']=='fade_in') ? 'checked="true"' : '' ;?>>
30
-
31
- <label>
32
- <span><?php _e( 'Fade In', SFSI_PLUS_DOMAIN ); ?></span>
33
- <span><?php _e( '(Icons turn from shadow to full color)', SFSI_PLUS_DOMAIN ); ?></span>
34
- </label>
35
-
36
- </div>
37
-
38
- <div class="effectName">
39
-
40
- <input class="styled" type="radio" name="sfsi_plus_same_icons_mouseOver_effect" value="scale" <?php echo ( $option3['sfsi_plus_mouseOver_effect']=='scale') ? 'checked="true"' : '' ;?>>
41
-
42
- <label>
43
- <span> <?php _e( 'Scale', SFSI_PLUS_DOMAIN ); ?></span>
44
- <span><?php _e( '(Icons become bigger)', SFSI_PLUS_DOMAIN ); ?></span>
45
- </label>
46
-
47
- </div>
48
-
49
- </div>
50
-
51
- <div class="effectContainer bottommargin20">
52
-
53
- <div class="effectName">
54
-
55
- <input class="styled" type="radio" name="sfsi_plus_same_icons_mouseOver_effect" value="combo" <?php echo ( $option3['sfsi_plus_mouseOver_effect']=='combo') ? 'checked="true"' : '' ;?>>
56
-
57
- <label>
58
- <span><?php _e( 'Combo', SFSI_PLUS_DOMAIN ); ?></span>
59
- <span><?php _e( '(Both fade in and scale effects)', SFSI_PLUS_DOMAIN ); ?></span>
60
- </label>
61
-
62
- </div>
63
-
64
- <div disabled class="effectName inactiveSection">
65
-
66
- <input class="styled" type="radio" name="sfsi_plus_same_icons_mouseOver_effect" value="fade_out" <?php echo ( $option3['sfsi_plus_mouseOver_effect']=='fade_out') ? 'checked="true"' : '' ;?>>
67
-
68
- <label>
69
- <span><?php _e( 'Fade Out', SFSI_PLUS_DOMAIN ); ?></span>
70
- <span><?php _e( '(Icons turn from full color to shadow)', SFSI_PLUS_DOMAIN ); ?></span>
71
- </label>
72
-
73
- </div>
74
-
75
- </div>
76
-
77
- <div class="row mouseover-premium-notice zerotoppadding rowmarginleft45">
78
- <label><?php _e( 'Greyed-out options are available in the', SFSI_PLUS_DOMAIN ); ?></label>
79
- <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=same_icon_effects&utm_medium=link"><?php _e( 'Premium Plugin', SFSI_PLUS_DOMAIN ); ?></a>
80
- </div>
81
-
82
- </div><!-- row closes -->
83
-
84
- <div class="row other_icons_effects">
85
-
86
- <input value="other_icons" name="sfsi_plus_mouseOver_effect_type" <?php echo ( $option3['sfsi_plus_mouseOver_effect_type']=='other_icons') ? 'checked=checked' : '' ;?> type="radio" class="styled"/>
87
-
88
- <label><?php _e( 'Show other icons on mouse-over (Only applied for Desktop Icons)', SFSI_PLUS_DOMAIN ); ?></label>
89
-
90
- </div><!-- row closes -->
91
-
92
- <div class="row rowpadding10 rowmarginleft25 other_icons_effects_options <?php echo ( $option3['sfsi_plus_mouseOver_effect_type']=='other_icons') ? 'show' : 'hide' ;?>">
93
-
94
- <div disabled class="col-md-12 inactiveSection other_icons_effects_options_container">
95
-
96
- <?php
97
-
98
- $arrDefaultIcons = unserialize(SFSI_PLUS_ALLICONS);
99
-
100
- $arrActiveStdDesktopIcons = sfsi_plus_get_displayed_std_desktop_icons($option1);
101
-
102
- $arrActiveCustomDesktopicons = sfsi_plus_get_displayed_custom_desktop_icons($option1);
103
-
104
- foreach ($arrDefaultIcons as $key => $iconName):
105
-
106
- sfsi_plus_generate_other_icon_effect_admin_html($iconName,$arrActiveStdDesktopIcons);
107
- endforeach;
108
-
109
-
110
- if(isset($arrActiveCustomDesktopicons) && !empty($arrActiveCustomDesktopicons) && is_array($arrActiveCustomDesktopicons))
111
- {
112
-
113
- $i = 1;
114
-
115
- foreach ($arrActiveCustomDesktopicons as $index => $imgUrl) {
116
-
117
- if(!empty($imgUrl)){
118
-
119
- sfsi_plus_generate_other_icon_effect_admin_html("custom",$arrActiveCustomDesktopicons,$index, $imgUrl,$i);
120
- $i++;
121
- }
122
-
123
- }
124
-
125
- }
126
- ?>
127
-
128
- </div>
129
-
130
- <div disabled class="col-md-12 inactiveSection rowmarginleft15 topmargin10">
131
-
132
- <label><?php _e('Transition effect to those icons',SFSI_PLUS_DOMAIN); ?></label>
133
-
134
- <select name="mouseover_other_icons_transition_effect">
135
-
136
- <option <?php echo 'noeffect'== $mouseover_other_icons_transition_effect? "selected=selected" : ""; ?> value="noeffect"><?php _e('No effect'); ?></option>
137
- <option <?php echo 'flip'== $mouseover_other_icons_transition_effect? "selected=selected" : ""; ?> value="flip"><?php _e('Flip'); ?></option>
138
-
139
- </select>
140
-
141
- </div>
142
-
143
- <div class="row mouseover-premium-notice rowmarginleft45">
144
- <label><?php _e( 'Above options are available in the',SFSI_PLUS_DOMAIN); ?></label>
145
- <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=different_icon_mouseover&utm_medium=link"><?php _e( 'Premium Plugin',SFSI_PLUS_DOMAIN); ?></a>
146
- </div>
147
-
148
- </div><!-- row closes -->
149
-
150
- </div><!-- col-md-12 closes -->
151
-
152
- </div><!-- #animationSection closes -->
153
-
154
- <div class="Shuffle_auto">
155
- <p class="radio_section tab_3_option">
156
- <input name="sfsi_plus_shuffle_icons" <?php echo ( $option3['sfsi_plus_shuffle_icons']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
157
- <label>
158
- <?php _e( 'Shuffle them automatically', SFSI_PLUS_DOMAIN ); ?>
159
- </label>
160
- </p>
161
- <div class="sub_sub_box shuffle_sub" >
162
- <p class="radio_section tab_3_option">
163
- <input name="sfsi_plus_shuffle_Firstload" <?php echo ( $option3['sfsi_plus_shuffle_Firstload']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
164
  <label>
165
- <?php _e( 'When the site is first loaded', SFSI_PLUS_DOMAIN ); ?>
 
166
  </label>
167
- </p>
168
- <p class="radio_section tab_3_option">
169
- <input name="sfsi_plus_shuffle_interval" <?php echo ( $option3['sfsi_plus_shuffle_interval']=='yes') ? 'checked="true"' : '' ;?> type="checkbox" value="yes" class="styled" />
170
  <label>
171
- <?php _e( 'Every', SFSI_PLUS_DOMAIN ); ?>
 
172
  </label>
173
- <input class="smal_inpt" type="text" name="sfsi_plus_shuffle_intervalTime" value="<?php echo ( $option3['sfsi_plus_shuffle_intervalTime']!='') ? $option3['sfsi_plus_shuffle_intervalTime'] : '' ;?>">
 
 
 
 
174
  <label>
175
- <?php _e( 'seconds', SFSI_PLUS_DOMAIN ); ?>
 
176
  </label>
177
- </p>
 
 
 
 
 
 
 
178
  </div>
179
- </div>
180
-
181
- </div>
182
- <!--END icon Animation section start -->
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!--icon Animation section start -->
2
+ <div class="sub_row stand sec_new" style="margin-left: 0px;">
3
 
4
+ <h3><?php _e( 'Animate them (your main icons)', SFSI_PLUS_DOMAIN ); ?></h3>
5
 
6
+ <div id="animationSection" class="radio_section tab_3_option">
7
 
8
+ <input name="sfsi_plus_mouseOver" <?php echo ( isset( $option3['sfsi_plus_mouseOver'] ) && $option3['sfsi_plus_mouseOver'] == 'yes' ) ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" />
9
+ <label><?php _e( 'Mouse-Over effects', SFSI_PLUS_DOMAIN ); ?></label>
 
 
10
 
11
+ <div class="col-md-12 rowmarginleft45 mouse-over-effects <?php echo ( isset( $option3['sfsi_plus_mouseOver'] ) && $option3['sfsi_plus_mouseOver'] == 'yes' ) ? 'show' : 'hide'; ?>">
12
 
13
+ <div class="row">
14
+ <input value="same_icons" name="sfsi_plus_mouseOver_effect_type" <?php echo ( isset( $option3['sfsi_plus_mouseOver_effect_type'] ) && $option3['sfsi_plus_mouseOver_effect_type'] == 'same_icons' ) ? 'checked=checked' : ''; ?> type="radio" class="styled" />
15
+ <label><?php _e( 'Same-icon effects', SFSI_PLUS_DOMAIN ); ?></label>
16
+ </div><!-- row closes -->
17
+ <div class="row rowpadding10 same_icons_effects <?php echo ( isset( $option3['sfsi_plus_mouseOver_effect_type'] ) && $option3['sfsi_plus_mouseOver_effect_type'] == 'same_icons' ) ? 'show' : 'hide'; ?>">
18
+ <div class="effectContainer bottommargin30">
19
+ <div class="effectName">
20
+ <input class="styled" type="radio" name="sfsi_plus_same_icons_mouseOver_effect" value="fade_in" <?php echo ( isset( $option3['sfsi_plus_mouseOver_effect'] ) && $option3['sfsi_plus_mouseOver_effect'] == 'fade_in' ) ? 'checked="true"' : ''; ?> />
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  <label>
22
+ <span><?php _e( 'Fade In', SFSI_PLUS_DOMAIN ); ?></span>
23
+ <span><?php _e( '(Icons turn from shadow to full color)', SFSI_PLUS_DOMAIN ); ?></span>
24
  </label>
25
+ </div>
26
+ <div class="effectName">
27
+ <input class="styled" type="radio" name="sfsi_plus_same_icons_mouseOver_effect" value="scale" <?php echo ( isset( $option3['sfsi_plus_mouseOver_effect'] ) && $option3['sfsi_plus_mouseOver_effect'] == 'scale' ) ? 'checked="true"' : ''; ?>>
28
  <label>
29
+ <span><?php _e( 'Scale', SFSI_PLUS_DOMAIN ); ?></span>
30
+ <span><?php _e( '(Icons become bigger)', SFSI_PLUS_DOMAIN ); ?></span>
31
  </label>
32
+ </div>
33
+ </div>
34
+ <div class="effectContainer bottommargin20">
35
+ <div class="effectName">
36
+ <input class="styled" type="radio" name="sfsi_plus_same_icons_mouseOver_effect" value="combo" <?php echo ( isset( $option3['sfsi_plus_mouseOver_effect'] ) && $option3['sfsi_plus_mouseOver_effect'] == 'combo' ) ? 'checked="true"' : ''; ?> />
37
  <label>
38
+ <span><?php _e( 'Combo', SFSI_PLUS_DOMAIN ); ?></span>
39
+ <span><?php _e( '(Both fade in and scale effects)', SFSI_PLUS_DOMAIN ); ?></span>
40
  </label>
41
+ </div>
42
+ <div disabled class="effectName inactiveSection">
43
+ <input class="styled" type="radio" name="sfsi_plus_same_icons_mouseOver_effect" value="fade_out" <?php echo ( isset( $option3['sfsi_plus_mouseOver_effect'] ) && $option3['sfsi_plus_mouseOver_effect'] == 'fade_out' ) ? 'checked="true"' : ''; ?> />
44
+ <label>
45
+ <span><?php _e( 'Fade Out', SFSI_PLUS_DOMAIN ); ?></span>
46
+ <span><?php _e( '(Icons turn from full color to shadow)', SFSI_PLUS_DOMAIN ); ?></span>
47
+ </label>
48
+ </div>
49
  </div>
50
+ <div class="row mouseover-premium-notice zerotoppadding rowmarginleft45">
51
+ <label><?php _e( 'Greyed-out options are available in the', SFSI_PLUS_DOMAIN ); ?></label>
52
+ <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=same_icon_effects&utm_medium=link"><?php _e( 'Premium Plugin', SFSI_PLUS_DOMAIN ); ?></a>
53
+ </div>
54
+ </div><!-- row closes -->
55
+ <div class="row other_icons_effects">
56
+ <input value="other_icons" name="sfsi_plus_mouseOver_effect_type" <?php echo ( isset( $option3['sfsi_plus_mouseOver_effect_type'] ) && $option3['sfsi_plus_mouseOver_effect_type'] == 'other_icons' ) ? 'checked=checked' : ''; ?> type="radio" class="styled" />
57
+ <label><?php _e( 'Show other icons on mouse-over (Only applied for Desktop Icons)', SFSI_PLUS_DOMAIN ); ?></label>
58
+ </div><!-- row closes -->
59
+ <div class="row rowpadding10 rowmarginleft25 other_icons_effects_options <?php echo ( isset( $option3['sfsi_plus_mouseOver_effect_type'] ) && $option3['sfsi_plus_mouseOver_effect_type'] == 'other_icons' ) ? 'show' : 'hide'; ?>" />
60
+ <div disabled class="col-md-12 inactiveSection other_icons_effects_options_container">
61
+ <?php
62
+ $arrDefaultIcons = maybe_unserialize( SFSI_PLUS_ALLICONS );
63
+ $arrActiveStdDesktopIcons = sfsi_plus_get_displayed_std_desktop_icons( $option1 );
64
+ $arrActiveCustomDesktopicons = sfsi_plus_get_displayed_custom_desktop_icons( $option1 );
65
+
66
+ foreach ($arrDefaultIcons as $key => $iconName ):
67
+ sfsi_plus_generate_other_icon_effect_admin_html( $iconName, $arrActiveStdDesktopIcons );
68
+ endforeach;
69
+
70
+ if( isset( $arrActiveCustomDesktopicons ) && !empty( $arrActiveCustomDesktopicons ) && is_array( $arrActiveCustomDesktopicons ) ) {
71
+
72
+ $i = 1;
73
+ foreach ( $arrActiveCustomDesktopicons as $index => $imgUrl ) {
74
+
75
+ if( !empty( $imgUrl ) ) {
76
+ sfsi_plus_generate_other_icon_effect_admin_html( "custom", $arrActiveCustomDesktopicons,$index, $imgUrl, $i );
77
+ $i++;
78
+ }
79
+ }
80
+ }
81
+ ?>
82
+ </div>
83
+ <div disabled class="col-md-12 inactiveSection rowmarginleft15 topmargin10">
84
+ <label><?php _e('Transition effect to those icons', SFSI_PLUS_DOMAIN ); ?></label>
85
+ <select name="mouseover_other_icons_transition_effect">
86
+ <option value="noeffect"><?php _e( 'No effect', SFSI_PLUS_DOMAIN ); ?></option>
87
+ <option value="flip"><?php _e( 'Flip', SFSI_PLUS_DOMAIN ); ?></option>
88
+ </select>
89
+ </div>
90
+ <div class="row mouseover-premium-notice rowmarginleft45">
91
+ <label><?php _e( 'Above options are available in the', SFSI_PLUS_DOMAIN ); ?></label>
92
+ <a target="_blank" href="https://www.ultimatelysocial.com/usm-premium/?utm_source=usmplus_settings_page&utm_campaign=different_icon_mouseover&utm_medium=link"><?php _e( 'Premium Plugin', SFSI_PLUS_DOMAIN ); ?></a>
93
+ </div>
94
+ </div><!-- row closes -->
95
+ </div><!-- col-md-12 closes -->
96
+ </div><!-- #animationSection closes -->
97
+ <div class="Shuffle_auto">
98
+ <p class="radio_section tab_3_option">
99
+ <input name="sfsi_plus_shuffle_icons" <?php echo ( isset( $option3['sfsi_plus_shuffle_icons'] ) && $option3['sfsi_plus_shuffle_icons'] == 'yes' ) ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" />
100
+ <label><?php _e( 'Shuffle them automatically', SFSI_PLUS_DOMAIN ); ?></label>
101
+ </p>
102
+ <div class="sub_sub_box shuffle_sub <?php echo ( isset( $option3['sfsi_plus_shuffle_icons'] ) && $option3['sfsi_plus_shuffle_icons'] == 'yes' ) ? 'show' : 'hide'; ?>">
103
+ <p class="radio_section tab_3_option">
104
+ <input name="sfsi_plus_shuffle_Firstload" <?php echo ( isset( $option3['sfsi_plus_shuffle_Firstload'] ) && $option3['sfsi_plus_shuffle_Firstload'] == 'yes' ) ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" />
105
+ <label><?php _e( 'When the site is first loaded', SFSI_PLUS_DOMAIN ); ?></label>
106
+ </p>
107
+ <p class="radio_section tab_3_option">
108
+ <input name="sfsi_plus_shuffle_interval" <?php echo ( isset( $option3['sfsi_plus_shuffle_interval'] ) && $option3['sfsi_plus_shuffle_interval'] == 'yes' ) ? 'checked="true"' : ''; ?> type="checkbox" value="yes" class="styled" />
109
+ <label><?php _e( 'Every', SFSI_PLUS_DOMAIN ); ?></label>
110
+ <input class="smal_inpt" type="text" name="sfsi_plus_shuffle_intervalTime" value="<?php echo ( isset( $option3['sfsi_plus_shuffle_intervalTime'] ) && $option3['sfsi_plus_shuffle_intervalTime'] != '' ) ? $option3['sfsi_plus_shuffle_intervalTime'] : ''; ?>" />
111
+ <label><?php _e( 'seconds', SFSI_PLUS_DOMAIN ); ?></label>
112
+ </p>
113
+ </div>
114
+ </div>
115
+ </div>
116
+ <!--END icon Animation section start -->