Social Share Icons & Social Share Buttons - Version 2.8.8

Version Description

  • Optimized code for setting value for "adding_plustags" which caused issues on some sites
Download this release

Release Info

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

Code changes from version 2.8.7 to 2.8.8

js/custom-form-min.js CHANGED
@@ -1 +1 @@
1
- var checkboxHeight="18";var radioHeight="20.5";var selectWidth="";document.write('<style type="text/css">input.styled { display: none; } select.styled { position: relative; width: '+selectWidth+"px; opacity: 0; filter: alpha(opacity=0); z-index: 5; } .disabled { opacity: 0.5; filter: alpha(opacity=50); }</style>");var Custom={init:function(){var e=document.getElementsByTagName("input"),t=Array(),n,r,i;for(a=0;a<e.length;a++){if((e[a].type=="checkbox"||e[a].type=="radio")&&e[a].className=="styled"){t[a]=document.createElement("span");t[a].className=e[a].type;if(e[a].checked==true){if(e[a].type=="checkbox"){position="0 -"+checkboxHeight*2+"px";t[a].style.backgroundPosition=position}else{position="0 -"+radioHeight*2+"px";t[a].style.backgroundPosition=position}}e[a].parentNode.insertBefore(t[a],e[a]);e[a].onchange=Custom.clear;if(!e[a].getAttribute("disabled")){t[a].onclick=Custom.pushed;t[a].onclick=Custom.check}else{t[a].className=t[a].className+=" disabled"}}}e=document.getElementsByTagName("select");for(a=0;a<e.length;a++){if(e[a].className=="styled"){r=e[a].getElementsByTagName("option");i=r[0].childNodes[0].nodeValue;n=document.createTextNode(i);for(b=0;b<r.length;b++){if(r[b].selected==true){n=document.createTextNode(r[b].childNodes[0].nodeValue)}}t[a]=document.createElement("span");t[a].className="select";t[a].id="select"+e[a].name;t[a].appendChild(n);e[a].parentNode.insertBefore(t[a],e[a]);if(!e[a].getAttribute("disabled")){e[a].onchange=Custom.choose}else{e[a].previousSibling.className=e[a].previousSibling.className+=" disabled"}}}document.onmouseup=Custom.clear},pushed:function(){element=this.nextSibling;if(element.checked==true&&element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight*3+"px"}else if(element.checked==true&&element.type=="radio"){this.style.backgroundPosition="0 -"+radioHeight*3+"px"}else if(element.checked!=true&&element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight+"px"}else{this.style.backgroundPosition="0 -"+radioHeight+"px"}},check:function(){element=this.nextSibling;if(element.checked==true&&element.type=="checkbox"){this.style.backgroundPosition="0 0";element.checked=false}else{if(element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight*2+"px"}else{this.style.backgroundPosition="0 -"+radioHeight*2+"px";group=this.nextSibling.name;inputs=document.getElementsByTagName("input");for(a=0;a<inputs.length;a++){if(inputs[a].name==group&&inputs[a]!=this.nextSibling){inputs[a].previousSibling.style.backgroundPosition="0 0"}}}element.checked=true}},clear:function(){inputs=document.getElementsByTagName("input");for(var e=0;e<inputs.length;e++){if(inputs[e].type=="checkbox"&&inputs[e].checked==true&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 -"+checkboxHeight*2+"px"}else if(inputs[e].type=="checkbox"&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 0"}else if(inputs[e].type=="radio"&&inputs[e].checked==true&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 -"+radioHeight*2+"px"}else if(inputs[e].type=="radio"&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 0"}}},choose:function(){option=this.getElementsByTagName("option");for(d=0;d<option.length;d++){if(option[d].selected==true){document.getElementById("select"+this.name).childNodes[0].nodeValue=option[d].childNodes[0].nodeValue}}}};window.onload=Custom.init
1
+ var checkboxHeight="18";var radioHeight="20.5";var selectWidth="";document.write('<style type="text/css">input.styled { display: none; } select.styled { position: relative; width: '+selectWidth+"px; opacity: 0; filter: alpha(opacity=0); z-index: 5; } .disabled { opacity: 0.5; filter: alpha(opacity=50); }</style>");var Custom={init:function(){var e=document.getElementsByTagName("input"),t=Array(),n,r,i;for(a=0;a<e.length;a++){if((e[a].type=="checkbox"||e[a].type=="radio")&&e[a].className=="styled"){t[a]=document.createElement("span");t[a].className=e[a].type;if(e[a].checked==true){if(e[a].type=="checkbox"){position="0 -"+checkboxHeight*2+"px";t[a].style.backgroundPosition=position}else{position="0 -"+radioHeight*2+"px";t[a].style.backgroundPosition=position}}e[a].parentNode.insertBefore(t[a],e[a]);e[a].onchange=Custom.clear;if(!e[a].getAttribute("disabled")){t[a].onclick=Custom.pushed;t[a].onclick=Custom.check}else{t[a].className=t[a].className+=" disabled"}}}e=document.getElementsByTagName("select");for(a=0;a<e.length;a++){if(e[a].className=="styled"){r=e[a].getElementsByTagName("option");i=r[0].childNodes[0].nodeValue;n=document.createTextNode(i);for(b=0;b<r.length;b++){if(r[b].selected==true){n=document.createTextNode(r[b].childNodes[0].nodeValue)}}t[a]=document.createElement("span");t[a].className="select";t[a].id="select"+e[a].name;t[a].appendChild(n);e[a].parentNode.insertBefore(t[a],e[a]);if(!e[a].getAttribute("disabled")){e[a].onchange=Custom.choose}else{e[a].previousSibling.className=e[a].previousSibling.className+=" disabled"}}}document.onmouseup=Custom.clear},pushed:function(){element=this.nextSibling;if(element.checked==true&&element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight*3+"px"}else if(element.checked==true&&element.type=="radio"){this.style.backgroundPosition="0 -"+radioHeight*3+"px"}else if(element.checked!=true&&element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight+"px"}else{this.style.backgroundPosition="0 -"+radioHeight+"px"}},check:function(){element=this.nextSibling;if(element.checked==true&&element.type=="checkbox"){this.style.backgroundPosition="0 0";element.checked=false}else{if(element.type=="checkbox"){this.style.backgroundPosition="0 -"+checkboxHeight*2+"px"}else{this.style.backgroundPosition="0 -"+radioHeight*2+"px";group=this.nextSibling.name;inputs=document.getElementsByTagName("input");for(a=0;a<inputs.length;a++){if(inputs[a].name==group&&inputs[a]!=this.nextSibling){inputs[a].previousSibling.style.backgroundPosition="0 0"}}}element.checked=true}},clear:function(){inputs=document.getElementsByTagName("input");for(var e=0;e<inputs.length;e++){if(inputs[e].type=="checkbox"&&inputs[e].checked==true&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 -"+checkboxHeight*2+"px"}else if(inputs[e].type=="checkbox"&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 0"}else if(inputs[e].type=="radio"&&inputs[e].checked==true&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 -"+radioHeight*2+"px"}else if(inputs[e].type=="radio"&&inputs[e].className=="styled"){inputs[e].previousSibling.style.backgroundPosition="0 0"}}},choose:function(){option=this.getElementsByTagName("option");for(d=0;d<option.length;d++){if(option[d].selected==true){document.getElementById("select"+this.name).childNodes[0].nodeValue=option[d].childNodes[0].nodeValue}}}};var prev_onload = window.onload;if('function' === typeof prev_onload){prev_onload(),Custom.init(); }else{Custom.init();}
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: socialsharepro
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: 4.9.4
6
- Stable tag: 2.8.7
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -444,6 +444,9 @@ The premium plugin offrs many more social buttons from other social media platfo
444
 
445
  == Changelog ==
446
 
 
 
 
447
  = 2.8.7 =
448
  * Various instructions optimized
449
 
@@ -751,5 +754,5 @@ The premium plugin offrs many more social buttons from other social media platfo
751
 
752
  == Upgrade Notice ==
753
 
754
- = 2.8.7 =
755
  * Please update
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: 4.9.4
6
+ Stable tag: 2.8.8
7
  License: GPLv2
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
444
 
445
  == Changelog ==
446
 
447
+ = 2.8.8 =
448
+ * Optimized code for setting value for "adding_plustags" which caused issues on some sites
449
+
450
  = 2.8.7 =
451
  * Various instructions optimized
452
 
754
 
755
  == Upgrade Notice ==
756
 
757
+ = 2.8.8 =
758
  * 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: 2.8.7
11
  License: GPLv2
12
  */
13
 
@@ -93,7 +93,7 @@ register_deactivation_hook(__FILE__, 'sfsi_plus_deactivate_plugin');
93
  //register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
94
 
95
  /*Plugin version setup*/
96
- if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.87)
97
  {
98
  add_action("init", "sfsi_plus_update_plugin");
99
  }
@@ -134,31 +134,36 @@ function DISPLAY_ULTIMATE_PLUS($args = null, $content = null)
134
  return __('Kindly go to setting page and check the option "Place them manually"', SFSI_PLUS_DOMAIN);
135
  }
136
  }
137
- //adding some meta tags for facebook news feed {Monad}
138
  function sfsi_plus_checkmetas()
139
  {
 
 
140
  if ( ! function_exists( 'get_plugins' ) )
141
  {
142
  require_once ABSPATH . 'wp-admin/includes/plugin.php';
143
  }
 
144
  $all_plugins = get_plugins();
145
- foreach($all_plugins as $key => $plugin)
146
- {
147
- if(is_plugin_active($key))
148
- {
 
149
  if(preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Name']) || preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Description']))
150
  {
151
- update_option("adding_plustags", "no");
152
  break;
153
  }
154
- else
155
- {
156
- update_option("adding_plustags", "yes");
157
- }
158
- }
159
- }
160
  }
161
- if ( ! is_admin() )
 
162
  {
163
  sfsi_plus_checkmetas();
164
  }
@@ -717,6 +722,8 @@ function sfsi_plus_admin_notice()
717
 
718
  }
719
 
 
 
720
  if(get_option("sfsi_plus_show_Setting_mobile_notification") == "yes")
721
  {
722
  $sfsi_plus_install_date = strtotime(get_option('sfsi_plus_installDate'));
@@ -869,7 +876,7 @@ function sfsi_plus_action_links ( $mylinks )
869
  unset ($mylinks['edit']);
870
 
871
  array_unshift($mylinks, $linkProVersion);
872
- array_unshift($mylinks, $linkQuestion);
873
 
874
  return $mylinks;
875
  }
7
  Text Domain: ultimate-social-media-plus
8
  Domain Path: /languages
9
  Author URI: http://socialshare.pro/
10
+ Version: 2.8.8
11
  License: GPLv2
12
  */
13
 
93
  //register_uninstall_hook(__FILE__, 'sfsi_plus_Unistall_plugin');
94
 
95
  /*Plugin version setup*/
96
+ if(!get_option('sfsi_plus_pluginVersion') || get_option('sfsi_plus_pluginVersion') < 2.88)
97
  {
98
  add_action("init", "sfsi_plus_update_plugin");
99
  }
134
  return __('Kindly go to setting page and check the option "Place them manually"', SFSI_PLUS_DOMAIN);
135
  }
136
  }
137
+ //adding some meta tags for facebook news feed
138
  function sfsi_plus_checkmetas()
139
  {
140
+ $adding_plustags = "yes";
141
+
142
  if ( ! function_exists( 'get_plugins' ) )
143
  {
144
  require_once ABSPATH . 'wp-admin/includes/plugin.php';
145
  }
146
+
147
  $all_plugins = get_plugins();
148
+
149
+ foreach($all_plugins as $key => $plugin):
150
+
151
+ if(is_plugin_active($key)):
152
+
153
  if(preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Name']) || preg_match("/(seo|search engine optimization|meta tag|open graph|opengraph|og tag|ogtag)/im", $plugin['Description']))
154
  {
155
+ $adding_plustags = "no";
156
  break;
157
  }
158
+
159
+ endif;
160
+
161
+ endforeach;
162
+
163
+ update_option('adding_plustags',$adding_plustags);
164
  }
165
+
166
+ if ( is_admin() )
167
  {
168
  sfsi_plus_checkmetas();
169
  }
722
 
723
  }
724
 
725
+
726
+
727
  if(get_option("sfsi_plus_show_Setting_mobile_notification") == "yes")
728
  {
729
  $sfsi_plus_install_date = strtotime(get_option('sfsi_plus_installDate'));
876
  unset ($mylinks['edit']);
877
 
878
  array_unshift($mylinks, $linkProVersion);
879
+ array_unshift($mylinks, $linkQuestion);
880
 
881
  return $mylinks;
882
  }