Social Media Share Buttons & Social Sharing Icons - Version 1.7.8

Version Description

  • Added more themed icon banners
Download this release

Release Info

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

Code changes from version 1.7.7 to 1.7.8

libs/controllers/sfsi_buttons_controller.php CHANGED
@@ -881,6 +881,7 @@ add_action('wp_ajax_bannerOption','sfsi_bannerOption');
881
  function sfsi_bannerOption(){
882
  error_reporting(0);
883
 
 
884
  if(get_option("show_new_notification") == "yes"){
885
 
886
  $objThemeCheck = new sfsi_ThemeCheck();
@@ -891,6 +892,7 @@ function sfsi_bannerOption(){
891
 
892
  $matchFound = false;
893
 
 
894
  foreach ($themeDataArr as $themeDataObj) {
895
 
896
  if(isset($themeDataObj->themeName) && strlen($themeDataObj->themeName)>0){
@@ -900,7 +902,8 @@ function sfsi_bannerOption(){
900
  $separateKeywords = $themeDataObj->separateKeywords;
901
  $negativeKeywords = $themeDataObj->negativeKeywords;
902
  $noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords,$separateKeywords);
903
-
 
904
  if($objThemeCheck->sfsi_plus_check_type_of_websiteWithNoBrainerAndSeparateAndNegativeKeywords($themeName,$noBrainerKeywords,$separateKeywords,$noBrainerAndSeparateKeywords,$negativeKeywords,$domainname)==$themeName)
905
  {
906
  $matchFound = true;
@@ -924,11 +927,12 @@ function sfsi_bannerOption(){
924
  echo '<div class="sfsi_new_notification_cat">
925
  <div class="sfsi_new_notification_header_cat">
926
  <h1>New feature: Tailored icons</h1>
927
- <h3>The <a href="https://www.ultimatelysocial.com/tailor-made-icons/?utm_source=usmplus_settings_page&utm_campaign=tailored_icons&utm_medium=banner" target="_blank">Premium Plugin</a> Includes these icons...</h3>
928
  <div class="sfsi_new_notification_cross_cat">X</div>
929
  </div>
 
930
  <div class="sfsi_new_notification_body_link_cat">
931
- <a class ="tailored_icons_img" href="https://www.ultimatelysocial.com/tailor-made-icons/?utm_source=usmplus_settings_page&utm_campaign=tailored_icons&utm_medium=banner" target="_blank">
932
  <div class="sfsi_new_notification_body_cat">
933
  <div class="sfsi_new_notification_image_cat">
934
  <img src="'.SFSI_PLUGURL.'images/WPPlugin_V3.png" id="newImg" />
@@ -936,12 +940,12 @@ function sfsi_bannerOption(){
936
  </div>
937
  </a>
938
  <div class="bottom_text">
939
- <a href="https://www.ultimatelysocial.com/tailor-made-icons/?utm_source=usmplus_settings_page&utm_campaign=tailored_icons&utm_medium=banner">
940
  See more-themed-icons >
941
  </a>
942
  </div>
943
  </div>
944
- </div>';
945
  }
946
 
947
  echo '<script type="text/javascript">
881
  function sfsi_bannerOption(){
882
  error_reporting(0);
883
 
884
+
885
  if(get_option("show_new_notification") == "yes"){
886
 
887
  $objThemeCheck = new sfsi_ThemeCheck();
892
 
893
  $matchFound = false;
894
 
895
+
896
  foreach ($themeDataArr as $themeDataObj) {
897
 
898
  if(isset($themeDataObj->themeName) && strlen($themeDataObj->themeName)>0){
902
  $separateKeywords = $themeDataObj->separateKeywords;
903
  $negativeKeywords = $themeDataObj->negativeKeywords;
904
  $noBrainerAndSeparateKeywords = array_merge($noBrainerKeywords,$separateKeywords);
905
+
906
+
907
  if($objThemeCheck->sfsi_plus_check_type_of_websiteWithNoBrainerAndSeparateAndNegativeKeywords($themeName,$noBrainerKeywords,$separateKeywords,$noBrainerAndSeparateKeywords,$negativeKeywords,$domainname)==$themeName)
908
  {
909
  $matchFound = true;
927
  echo '<div class="sfsi_new_notification_cat">
928
  <div class="sfsi_new_notification_header_cat">
929
  <h1>New feature: Tailored icons</h1>
930
+ <h3>The <a href="https://www.ultimatelysocial.com/themed-icons/?utm_source=any_settings_page&utm_campaign=Themed_icons&utm_medium=banner" target="_blank">Premium Plugin</a> Includes these icons...</h3>
931
  <div class="sfsi_new_notification_cross_cat">X</div>
932
  </div>
933
+
934
  <div class="sfsi_new_notification_body_link_cat">
935
+ <a class ="tailored_icons_img" href="https://www.ultimatelysocial.com/themed-icons/?utm_source=any_settings_page&utm_campaign=Themed_icons&utm_medium=banner" target="_blank">
936
  <div class="sfsi_new_notification_body_cat">
937
  <div class="sfsi_new_notification_image_cat">
938
  <img src="'.SFSI_PLUGURL.'images/WPPlugin_V3.png" id="newImg" />
940
  </div>
941
  </a>
942
  <div class="bottom_text">
943
+ <a href="https://www.ultimatelysocial.com/themed-icons/?utm_source=any_settings_page&utm_campaign=Themed_icons&utm_medium=banner">
944
  See more-themed-icons >
945
  </a>
946
  </div>
947
  </div>
948
+ </div>';
949
  }
950
 
951
  echo '<script type="text/javascript">
libs/controllers/sfsi_class_theme_check.php CHANGED
@@ -26,14 +26,14 @@ class sfsi_ThemeCheck
26
 
27
  public function sfsi_plus_get_themeData(){
28
 
29
- $keywordFile = SFSI_PLUS_DOCROOT."/themedata.csv";
30
  $keywordData = @file_get_contents($keywordFile);
31
  $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
32
  $themeDataArr = array();
33
 
34
  if(isset($keywordEnglish) && count($keywordEnglish)>0){
35
 
36
- unset($keywordEnglish[0]);
37
 
38
  $finalArr = array_filter(array_values($keywordEnglish));
39
 
@@ -64,11 +64,11 @@ class sfsi_ThemeCheck
64
  }
65
 
66
  public function sfsi_plus_get_keywordEnglish(){
67
- $keywordFile = SFSI_PLUS_DOCROOT."/All_english_words_better_list.csv";
68
  $keywordData = @file_get_contents($keywordFile);
69
  $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
70
  $keywordEnglish = array_map('array_filter', $keywordEnglish);
71
- $keywordEnglish = array_filter(array_map(sfsi_plus_returningElement($element), $keywordEnglish));
72
  return $keywordEnglish;
73
  }
74
 
@@ -329,28 +329,29 @@ class sfsi_ThemeCheck
329
 
330
  public function sfsi_plus_bannereHtml($title, $siteLink, $bannerImage, $buttonTitle)
331
  {
332
- echo '<div class="sfsi_plus_new_notification_cat">
333
- <div class="sfsi_plus_new_notification_header_cat">
334
  <h1>'.$title.'</h1>
335
  <h3>The <a href="'.$siteLink.'" target="_blank">Premium Plugin</a> Includes these icons...</h3>
336
- <div class="sfsi_plus_new_notification_cross_cat">X</div>
337
  </div>
338
 
339
- <div class="sfsi_plus_new_notification_body_link_cat">
340
  <a href="'.$siteLink.'" target="_blank">
341
- <div class="sfsi_plus_new_notification_body_cat">
342
- <div class="sfsi_plus_new_notification_image_cat">
343
  <img src="'.$bannerImage.'" id="newImg" />
344
  </div>
345
  </div>
346
  </a>
347
- <div class="sfsiplus_bottom_text">
348
  <a href="'.$siteLink.'">
349
  '.$buttonTitle.' >
350
  </a>
351
  </div>
352
  </div>
353
  </div>';
354
- }
 
355
  }
356
  ?>
26
 
27
  public function sfsi_plus_get_themeData(){
28
 
29
+ $keywordFile = SFSI_DOCROOT."/themedata.csv";
30
  $keywordData = @file_get_contents($keywordFile);
31
  $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
32
  $themeDataArr = array();
33
 
34
  if(isset($keywordEnglish) && count($keywordEnglish)>0){
35
 
36
+ unset($keywordEnglish[0]);
37
 
38
  $finalArr = array_filter(array_values($keywordEnglish));
39
 
64
  }
65
 
66
  public function sfsi_plus_get_keywordEnglish(){
67
+ $keywordFile = SFSI_DOCROOT."/All_english_words_better_list.csv";
68
  $keywordData = @file_get_contents($keywordFile);
69
  $keywordEnglish = array_map("str_getcsv", explode("\n", $keywordData));
70
  $keywordEnglish = array_map('array_filter', $keywordEnglish);
71
+ $keywordEnglish = array_filter(array_map(sfsi_returningElement($element), $keywordEnglish));
72
  return $keywordEnglish;
73
  }
74
 
329
 
330
  public function sfsi_plus_bannereHtml($title, $siteLink, $bannerImage, $buttonTitle)
331
  {
332
+ echo '<div class="sfsi_new_notification_cat">
333
+ <div class="sfsi_new_notification_header_cat">
334
  <h1>'.$title.'</h1>
335
  <h3>The <a href="'.$siteLink.'" target="_blank">Premium Plugin</a> Includes these icons...</h3>
336
+ <div class="sfsi_new_notification_cross_cat">X</div>
337
  </div>
338
 
339
+ <div class="sfsi_new_notification_body_link_cat">
340
  <a href="'.$siteLink.'" target="_blank">
341
+ <div class="sfsi_new_notification_body_cat">
342
+ <div class="sfsi_new_notification_image_cat">
343
  <img src="'.$bannerImage.'" id="newImg" />
344
  </div>
345
  </div>
346
  </a>
347
+ <div class="bottom_text">
348
  <a href="'.$siteLink.'">
349
  '.$buttonTitle.' >
350
  </a>
351
  </div>
352
  </div>
353
  </div>';
354
+ }
355
+
356
  }
357
  ?>
libs/sfsi_install_uninstall.php CHANGED
@@ -12,7 +12,7 @@ function sfsi_update_plugin()
12
  }
13
 
14
  //Install version
15
- update_option("sfsi_pluginVersion", "1.77");
16
 
17
  if(!get_option('sfsi_serverphpVersionnotification'))
18
  {
12
  }
13
 
14
  //Install version
15
+ update_option("sfsi_pluginVersion", "1.78");
16
 
17
  if(!get_option('sfsi_serverphpVersionnotification'))
18
  {
readme.txt CHANGED
@@ -1,9 +1,9 @@
1
- === Social Share Buttons ===
2
  Contributors: socialdude
3
  Tags: social media, share, buttons, social, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 2.8
5
  Tested up to: 4.8.1
6
- Stable tag: 1.7.7
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -267,7 +267,7 @@ You cannot use the same plugin twice, however you can install both the USM as we
267
 
268
  == Changelog ==
269
 
270
- = 1.7.7 =
271
  * Added more themed icon banners
272
 
273
  = 1.7.6 =
@@ -633,5 +633,5 @@ You cannot use the same plugin twice, however you can install both the USM as we
633
 
634
  == Upgrade Notice ==
635
 
636
- = 1.7.7 =
637
  Please upgrade
1
+ === Social Media Share Buttons & Social Sharing Icons (Ultimate Sharing) ===
2
  Contributors: socialdude
3
  Tags: social media, share, buttons, social, icons, share icons, share buttons, sharing icons, sharing buttons, social share, sharing, social sharing
4
  Requires at least: 2.8
5
  Tested up to: 4.8.1
6
+ Stable tag: 1.7.8
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
267
 
268
  == Changelog ==
269
 
270
+ = 1.7.8 =
271
  * Added more themed icon banners
272
 
273
  = 1.7.6 =
633
 
634
  == Upgrade Notice ==
635
 
636
+ = 1.7.8 =
637
  Please upgrade
ultimate_social_media_icons.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://ultimatelysocial.com
5
  Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
6
  Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
- Version: 1.7.7
9
  License: GPLv2 or later
10
  */
11
  global $wpdb;
@@ -35,7 +35,7 @@ register_activation_hook(__FILE__, 'sfsi_activate_plugin' );
35
  register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
36
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
37
 
38
- if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 1.77)
39
  {
40
  add_action("init", "sfsi_update_plugin");
41
  }
5
  Description: Easy to use and 100% FREE social media plugin which adds social media icons to your website with tons of customization features!.
6
  Author: UltimatelySocial
7
  Author URI: http://ultimatelysocial.com
8
+ Version: 1.7.8
9
  License: GPLv2 or later
10
  */
11
  global $wpdb;
35
  register_deactivation_hook(__FILE__, 'sfsi_deactivate_plugin');
36
  register_uninstall_hook(__FILE__, 'sfsi_Unistall_plugin');
37
 
38
+ if(!get_option('sfsi_pluginVersion') || get_option('sfsi_pluginVersion') < 1.78)
39
  {
40
  add_action("init", "sfsi_update_plugin");
41
  }
views/sfsi_options_view.php CHANGED
@@ -13,7 +13,7 @@
13
  <div class="wapper sfsi_mainContainer">
14
 
15
  <!-- Get notification bar-->
16
- <?php if(get_option("show_notification") == "yes") { ?>
17
  <script type="text/javascript">
18
  jQuery(document).ready(function(e) {
19
  jQuery(".sfsi_show_notification").click(function(){
@@ -132,8 +132,8 @@
132
  url: "<?php echo admin_url( 'admin-ajax.php' ); ?>",
133
  type:"post",
134
  data:e,
135
- success:function(e) {
136
- jQuery(".sfsi_notificationBannner").html(e);
137
  }
138
  });
139
  </script>
13
  <div class="wapper sfsi_mainContainer">
14
 
15
  <!-- Get notification bar-->
16
+ <?php if(get_option("show_new_notification") == "yes") { ?>
17
  <script type="text/javascript">
18
  jQuery(document).ready(function(e) {
19
  jQuery(".sfsi_show_notification").click(function(){
132
  url: "<?php echo admin_url( 'admin-ajax.php' ); ?>",
133
  type:"post",
134
  data:e,
135
+ success:function(s) {
136
+ jQuery(".sfsi_notificationBannner").html(s);
137
  }
138
  });
139
  </script>