WP Socializer - Version 3.3.2

Version Description

  • Fix: Follow bar & sharebar not displayed in some cases.
Download this release

Release Info

Developer vaakash
Plugin Icon 128x128 WP Socializer
Version 3.3.2
Comparing to
See all releases

Code changes from version 3.3.1 to 3.3.2

public/css/wp-socializer.css CHANGED
@@ -22,7 +22,6 @@
22
  transition: all 0.5s;
23
  box-sizing: border-box;
24
  z-index: 9999;
25
- display: none;
26
  }
27
  .wpsr-sb-inner:after{
28
  content: '';
@@ -199,7 +198,6 @@
199
  position: fixed;
200
  z-index: 999999;
201
  line-height: 0;
202
- display: none;
203
  }
204
  .sr-fb-tl{
205
  top: 20px;
22
  transition: all 0.5s;
23
  box-sizing: border-box;
24
  z-index: 9999;
 
25
  }
26
  .wpsr-sb-inner:after{
27
  content: '';
198
  position: fixed;
199
  z-index: 999999;
200
  line-height: 0;
 
201
  }
202
  .sr-fb-tl{
203
  top: 20px;
public/css/wp-socializer.min.css CHANGED
@@ -1 +1 @@
1
- .wp-socializer:after{clear:both;content:'';display:block}.wpsr-buttons{display:block;margin:0 0 1.5em 0}.wpsr-buttons .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0;display:inline-block}.wpsr-buttons .wpsr-btn:last-child{margin-right:0}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:9999;display:none}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:9999;width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-btn{margin-bottom:1em;display:block}.wpsr-sb-vl .wpsr-btn:last-child{margin:0}.wpsr-sb-vl-wleft{left:0}.wpsr-sb-vl-wright{right:0}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-vl .socializer *:last-child{margin:0}.wpsr-sb-hl{left:50%;transform:translateX(-50%);position:fixed}.wpsr-sb-hl .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0;display:inline-block}.wpsr-sb-hl .wpsr-btn:last-child{margin:0}.wpsr-sb-hl-wtop{top:0}.wpsr-sb-hl-wbottom{bottom:0}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-sq{padding:10px;text-align:center;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-ns{text-align:center;border:1px solid transparent}.wpsr-sb-wocbtn .wpsr-arrow{color:#fff}.wpsr-sharebar .wpsr-arrow:before{content:'\f0d9'}.wpsr-sharebar::-webkit-scrollbar{width:5px;height:5px}.wpsr-sharebar::-webkit-scrollbar-thumb{background:#999;border-radius:10px}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sb-close{position:absolute;cursor:pointer;display:none;padding:10px}.wpsr-sb-vl .wpsr-sb-close{bottom:-30px;transform:translateX(-50%);left:50%}.wpsr-sb-hl .wpsr-sb-close{right:-22px;transform:translateY(-50%);top:50%}.wpsr-mow.wpsr-sharebar{width:48px;height:48px;border-radius:50%}.wpsr-mow.wpsr-sharebar .wpsr-sb-inner{display:none}.wpsr-mow.wpsr-sharebar .wpsr-arrow:before{content:'\f1e0'}.wpsr-mow.wpsr-sharebar .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;line-height:48px;display:block;padding:0}.wpsr-counter{line-height:2em;text-align:center;font-size:10px}.wpsr-counter .scount{font-size:2em;font-weight:bold}.wpsr-counter .stext{display:block;line-height:1em;color:#888;text-transform:uppercase;font-size:1em;margin-top:-0.15em}.wpsr-counter.wpsrc-hl{line-height:1em;font-size:18px}.wpsr-counter.wpsrc-hl .scount{font-size:1em;margin-right:0.25em}.wpsr-counter.wpsrc-hl .stext{display:inline-block;font-size:0.8em}.socializer span.sr-cicon a{background:none;border:none}.wpsr-followbar{position:fixed;z-index:999999;line-height:0;display:none}.sr-fb-tl{top:20px;left:20px}.sr-fb-tm{top:20px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:20px;right:20px}.sr-fb-rm{top:50%;right:20px;transform:translateY( -50% )}.sr-fb-br{bottom:20px;right:20px}.sr-fb-bm{bottom:20px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:20px;left:20px}.sr-fb-lm{left:20px;top:50%;transform:translateY( -50% )}.sr-fb-tl .wpsr-arrow:before,.sr-fb-bl .wpsr-arrow:before,.sr-fb-lm .wpsr-arrow:before{content:'\f0d9'}.sr-fb-tr .wpsr-arrow:before,.sr-fb-rm .wpsr-arrow:before,.sr-fb-br .wpsr-arrow:before{content:'\f0da'}.sr-fb-bm .wpsr-arrow:before{content:'\f0d7'}.sr-fb-tm .wpsr-arrow:before{content:'\f0d8'}.wpsr-followbar div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-followbar.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-followbar.sr-fb-vl{text-align:center;line-height:1.5}.wpsr-followbar.sr-fb-vl .sr-fb-title{width:5em;text-align:center}.wpsr-fb-close{position:absolute;right:0;padding:10px;cursor:pointer;display:none}.wpsr-followbar:hover .wpsr-fb-close{display:block}.wpsr-mow.wpsr-followbar .sr-fb-title{display:none}.wpsr-mow.wpsr-followbar .sr-followbar{display:none}.wpsr-mow.wpsr-followbar .wpsr-fb-close{display:block}.wpsr-mow.sr-fb-tl .wpsr-arrow:before,.wpsr-mow.sr-fb-bl .wpsr-arrow:before,.wpsr-mow.sr-fb-lm .wpsr-arrow:before{content:'\f0da'}.wpsr-mow.sr-fb-tr .wpsr-arrow:before,.wpsr-mow.sr-fb-rm .wpsr-arrow:before,.wpsr-mow.sr-fb-br .wpsr-arrow:before{content:'\f0d9'}.wpsr-mow.sr-fb-bm .wpsr-arrow:before{content:'\f0d8'}.wpsr-mow.sr-fb-tm .wpsr-arrow:before{content:'\f0d7'}.sr-fb-bm .wpsr-fb-close,.sr-fb-bl .wpsr-fb-close{right:-24px;transform:translateY(-100%)}.wpsr-mow.sr-fb-tl .wpsr-fb-close,.wpsr-mow.sr-fb-lm .wpsr-fb-close{right:-24px;transform:translateY(0%)}.sr-fb-vl.sr-fb-br .wpsr-fb-close{left:0;bottom:0;transform:translateX(-100%)}.sr-fb-hl.sr-fb-br .wpsr-fb-close{top:0;right:0;transform:translateY(-100%)}.wpsr-text-sb{background:#fff;margin:0;padding:0 10px;border-radius:5px;display:inline-block;position:absolute;transform:translate( -50%,-150% );margin-top:-10px;transition:margin-top 0.5s;display:none;animation:wpsr-fadeout 1s;box-shadow:0 3px 6px -3px #000;background-image:linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0))}.wpsr-text-sb:before{position:absolute;content:'';display:block;background-color:inherit;width:10px;height:10px;bottom:-5px;transform:rotate(45deg) translateX(-50%);left:50%;z-index:-1;transform-origin:left;box-shadow:2px 2px 4px -2px #000}.wpsr-text-sb li{list-style:none;float:left;line-height:0}.wpsr-text-sb li a{text-align:center;display:inline-block}.wpsr-text-sb li a:hover{background-image:linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0))}.wpsr-tsb-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.wpsr-tsb-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.wpsr-tsb-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.wpsr-text-sb.wpsr-tsb-active{margin-top:0;transition:margin-top 0.5s;display:block;animation:wpsr-fadein 1s}.wpsr-mobile-sb{position:fixed;bottom:0;left:0;right:0;line-height:0;background:#fff;box-shadow:0 3px 5px 3px #000;transition:margin 1s ease-out;margin-bottom:0}.wpsr-mobile-sb.wpsr-msb-hide{transition:margin 2s ease-out;margin-bottom:-68px}.wpsr-mow.wpsr-buttons{display:none}.wpsr-clearfix:after{display:block;clear:both;content:''}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}.wpsr-btn .fb_iframe_widget{margin-bottom:0}@media only screen and (max-width:800px){.wpsr-sb-hl{bottom:0!important;top:auto!important;left:-1px!important;right:-1px!important;border-radius:0;overflow:auto;transform:none;padding-left:70px}.wpsr-sb-hl .wpsr-sb-inner{width:2000px}.wpsr-sb-hl .wpsr-sb-close{display:block;position:absolute;left:0;top:0;bottom:0;width:50px;border-right:1px solid #ccc;transform:none;padding:0}.wpsr-sb-hl .wpsr-arrow{position:absolute;top:50%;left:50%;margin:-16px}.wpsr-sb-vl{bottom:0!important;top:0!important;left:-1px!important;right:auto!important;margin-left:0!important;border-radius:0;overflow:auto;transform:none;padding-top:70px}.wpsr-sb-vl .wpsr-sb-inner{height:2000px}.wpsr-sb-vl .wpsr-sb-close{display:block;position:absolute;left:0!important;top:0;right:0;border-bottom:1px solid #ccc;margin:0!important;transform:none;height:50px;padding:0}.wpsr-sb-vl .wpsr-arrow{position:absolute;top:50%;left:50%;transform:translate( -50%,-50% )}.wpsr-sb-simple-ns{background:#fff;border:1px solid #dfdfdf}.wpsr-mow.wpsr-sharebar{width:50px;height:50px;padding:0;overflow:hidden;border-radius:0;opacity:0.4}.wpsr-mow.wpsr-sharebar:hover{opacity:1}.wpsr-mow.wpsr-sb-hl .wpsr-sb-close{top:0;right:0}}
1
+ .wp-socializer:after{clear:both;content:'';display:block}.wpsr-buttons{display:block;margin:0 0 1.5em 0}.wpsr-buttons .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0;display:inline-block}.wpsr-buttons .wpsr-btn:last-child{margin-right:0}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:9999}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:9999;width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-btn{margin-bottom:1em;display:block}.wpsr-sb-vl .wpsr-btn:last-child{margin:0}.wpsr-sb-vl-wleft{left:0}.wpsr-sb-vl-wright{right:0}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-vl .socializer *:last-child{margin:0}.wpsr-sb-hl{left:50%;transform:translateX(-50%);position:fixed}.wpsr-sb-hl .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0;display:inline-block}.wpsr-sb-hl .wpsr-btn:last-child{margin:0}.wpsr-sb-hl-wtop{top:0}.wpsr-sb-hl-wbottom{bottom:0}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-sq{padding:10px;text-align:center;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-ns{text-align:center;border:1px solid transparent}.wpsr-sb-wocbtn .wpsr-arrow{color:#fff}.wpsr-sharebar .wpsr-arrow:before{content:'\f0d9'}.wpsr-sharebar::-webkit-scrollbar{width:5px;height:5px}.wpsr-sharebar::-webkit-scrollbar-thumb{background:#999;border-radius:10px}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sb-close{position:absolute;cursor:pointer;display:none;padding:10px}.wpsr-sb-vl .wpsr-sb-close{bottom:-30px;transform:translateX(-50%);left:50%}.wpsr-sb-hl .wpsr-sb-close{right:-22px;transform:translateY(-50%);top:50%}.wpsr-mow.wpsr-sharebar{width:48px;height:48px;border-radius:50%}.wpsr-mow.wpsr-sharebar .wpsr-sb-inner{display:none}.wpsr-mow.wpsr-sharebar .wpsr-arrow:before{content:'\f1e0'}.wpsr-mow.wpsr-sharebar .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;line-height:48px;display:block;padding:0}.wpsr-counter{line-height:2em;text-align:center;font-size:10px}.wpsr-counter .scount{font-size:2em;font-weight:bold}.wpsr-counter .stext{display:block;line-height:1em;color:#888;text-transform:uppercase;font-size:1em;margin-top:-0.15em}.wpsr-counter.wpsrc-hl{line-height:1em;font-size:18px}.wpsr-counter.wpsrc-hl .scount{font-size:1em;margin-right:0.25em}.wpsr-counter.wpsrc-hl .stext{display:inline-block;font-size:0.8em}.socializer span.sr-cicon a{background:none;border:none}.wpsr-followbar{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:20px;left:20px}.sr-fb-tm{top:20px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:20px;right:20px}.sr-fb-rm{top:50%;right:20px;transform:translateY( -50% )}.sr-fb-br{bottom:20px;right:20px}.sr-fb-bm{bottom:20px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:20px;left:20px}.sr-fb-lm{left:20px;top:50%;transform:translateY( -50% )}.sr-fb-tl .wpsr-arrow:before,.sr-fb-bl .wpsr-arrow:before,.sr-fb-lm .wpsr-arrow:before{content:'\f0d9'}.sr-fb-tr .wpsr-arrow:before,.sr-fb-rm .wpsr-arrow:before,.sr-fb-br .wpsr-arrow:before{content:'\f0da'}.sr-fb-bm .wpsr-arrow:before{content:'\f0d7'}.sr-fb-tm .wpsr-arrow:before{content:'\f0d8'}.wpsr-followbar div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-followbar.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-followbar.sr-fb-vl{text-align:center;line-height:1.5}.wpsr-followbar.sr-fb-vl .sr-fb-title{width:5em;text-align:center}.wpsr-fb-close{position:absolute;right:0;padding:10px;cursor:pointer;display:none}.wpsr-followbar:hover .wpsr-fb-close{display:block}.wpsr-mow.wpsr-followbar .sr-fb-title{display:none}.wpsr-mow.wpsr-followbar .sr-followbar{display:none}.wpsr-mow.wpsr-followbar .wpsr-fb-close{display:block}.wpsr-mow.sr-fb-tl .wpsr-arrow:before,.wpsr-mow.sr-fb-bl .wpsr-arrow:before,.wpsr-mow.sr-fb-lm .wpsr-arrow:before{content:'\f0da'}.wpsr-mow.sr-fb-tr .wpsr-arrow:before,.wpsr-mow.sr-fb-rm .wpsr-arrow:before,.wpsr-mow.sr-fb-br .wpsr-arrow:before{content:'\f0d9'}.wpsr-mow.sr-fb-bm .wpsr-arrow:before{content:'\f0d8'}.wpsr-mow.sr-fb-tm .wpsr-arrow:before{content:'\f0d7'}.sr-fb-bm .wpsr-fb-close,.sr-fb-bl .wpsr-fb-close{right:-24px;transform:translateY(-100%)}.wpsr-mow.sr-fb-tl .wpsr-fb-close,.wpsr-mow.sr-fb-lm .wpsr-fb-close{right:-24px;transform:translateY(0%)}.sr-fb-vl.sr-fb-br .wpsr-fb-close{left:0;bottom:0;transform:translateX(-100%)}.sr-fb-hl.sr-fb-br .wpsr-fb-close{top:0;right:0;transform:translateY(-100%)}.wpsr-text-sb{background:#fff;margin:0;padding:0 10px;border-radius:5px;display:inline-block;position:absolute;transform:translate( -50%,-150% );margin-top:-10px;transition:margin-top 0.5s;display:none;animation:wpsr-fadeout 1s;box-shadow:0 3px 6px -3px #000;background-image:linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0))}.wpsr-text-sb:before{position:absolute;content:'';display:block;background-color:inherit;width:10px;height:10px;bottom:-5px;transform:rotate(45deg) translateX(-50%);left:50%;z-index:-1;transform-origin:left;box-shadow:2px 2px 4px -2px #000}.wpsr-text-sb li{list-style:none;float:left;line-height:0}.wpsr-text-sb li a{text-align:center;display:inline-block}.wpsr-text-sb li a:hover{background-image:linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0))}.wpsr-tsb-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.wpsr-tsb-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.wpsr-tsb-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.wpsr-text-sb.wpsr-tsb-active{margin-top:0;transition:margin-top 0.5s;display:block;animation:wpsr-fadein 1s}.wpsr-mobile-sb{position:fixed;bottom:0;left:0;right:0;line-height:0;background:#fff;box-shadow:0 3px 5px 3px #000;transition:margin 1s ease-out;margin-bottom:0}.wpsr-mobile-sb.wpsr-msb-hide{transition:margin 2s ease-out;margin-bottom:-68px}.wpsr-mow.wpsr-buttons{display:none}.wpsr-clearfix:after{display:block;clear:both;content:''}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}.wpsr-btn .fb_iframe_widget{margin-bottom:0}@media only screen and (max-width:800px){.wpsr-sb-hl{bottom:0!important;top:auto!important;left:-1px!important;right:-1px!important;border-radius:0;overflow:auto;transform:none;padding-left:70px}.wpsr-sb-hl .wpsr-sb-inner{width:2000px}.wpsr-sb-hl .wpsr-sb-close{display:block;position:absolute;left:0;top:0;bottom:0;width:50px;border-right:1px solid #ccc;transform:none;padding:0}.wpsr-sb-hl .wpsr-arrow{position:absolute;top:50%;left:50%;margin:-16px}.wpsr-sb-vl{bottom:0!important;top:0!important;left:-1px!important;right:auto!important;margin-left:0!important;border-radius:0;overflow:auto;transform:none;padding-top:70px}.wpsr-sb-vl .wpsr-sb-inner{height:2000px}.wpsr-sb-vl .wpsr-sb-close{display:block;position:absolute;left:0!important;top:0;right:0;border-bottom:1px solid #ccc;margin:0!important;transform:none;height:50px;padding:0}.wpsr-sb-vl .wpsr-arrow{position:absolute;top:50%;left:50%;transform:translate( -50%,-50% )}.wpsr-sb-simple-ns{background:#fff;border:1px solid #dfdfdf}.wpsr-mow.wpsr-sharebar{width:50px;height:50px;padding:0;overflow:hidden;border-radius:0;opacity:0.4}.wpsr-mow.wpsr-sharebar:hover{opacity:1}.wpsr-mow.wpsr-sb-hl .wpsr-sb-close{top:0;right:0}}
public/js/wp-socializer.js CHANGED
@@ -299,15 +299,6 @@ document.addEventListener( 'DOMContentLoaded', function(){
299
  var mowEle = mow[ i ];
300
  mow_resize( mowEle, window.innerWidth );
301
  }
302
-
303
- if ( the_sb ){
304
- the_sb.style.display = 'block';
305
- }
306
-
307
- if( fwb ){
308
- fwb.style.display = 'block';
309
- }
310
-
311
  });
312
  });
313
 
299
  var mowEle = mow[ i ];
300
  mow_resize( mowEle, window.innerWidth );
301
  }
 
 
 
 
 
 
 
 
 
302
  });
303
  });
304
 
public/js/wp-socializer.min.js CHANGED
@@ -9,8 +9,8 @@ t.addEventListener("click",function(t){var e=this.getAttribute("href")
9
  if(e){var s=function(){vlsb=document.querySelector(".wpsr-sb-vl-scontent"),vlsb&&(stick=vlsb.getAttribute("data-stickto"),stick_ele=document.querySelector(stick),stick_ele&&(vlsb.style.left=stick_ele.offsetLeft+"px")),e&&window.innerWidth<=800&&wpsr_helpers.addClass(e,"wpsr-mow")}
10
  s(),window.addEventListener("resize",s),sb_close_btn=e.querySelector(".wpsr-sb-close"),sb_close_btn.addEventListener("click",function(){e.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(e,"wpsr-mow"):wpsr_helpers.addClass(e,"wpsr-mow")})}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0}
11
  var r={ptitle:tsb.getAttribute("data-title"),purl:tsb.getAttribute("data-url"),psurl:tsb.getAttribute("data-surl"),ptuname:tsb.getAttribute("data-tuname"),cnt_sel:tsb.getAttribute("data-content"),word_count:tsb.getAttribute("data-tcount")},n=function(){var t=""
12
- return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(t=document.selection.createRange().text),t},o=function(t,e){tsb.style.left=t+"px",tsb.style.top=e+"px",wpsr_helpers.addClass(tsb,"wpsr-tsb-active")},a=function(){wpsr_helpers.removeClass(tsb,"wpsr-tsb-active")},l=function(){var t=wpsr_tsb.stext,e=parseInt(r.word_count)
13
- return 0==e?t:t.split(" ").slice(0,e).join(" ")},i=function(t){var e={"{title}":r.ptitle,"{url}":r.purl,"{s-url}":r.psurl,"{twitter-username}":r.ptuname,"{excerpt}":l()}
14
  for(var s in e)e.hasOwnProperty(s)&&(t=t.replace(RegExp(s,"g"),e[s]))
15
  return t}
16
  if(""!=r.cnt_sel)for(var p=r.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),c=document.querySelectorAll(p),u=0;u<c.length;u++){var d=c[u]
@@ -18,13 +18,13 @@ d.addEventListener("mousedown",function(t){wpsr_tsb.startx=t.pageX,wpsr_tsb.star
18
  ""!=e?(tsb_x=(t.pageX+parseInt(wpsr_tsb.startx))/2,tsb_y=Math.min(wpsr_tsb.starty,t.pageY),e!=wpsr_tsb.stext?(o(tsb_x,tsb_y),wpsr_tsb.stext=e):a()):a()})}document.body.addEventListener("mousedown",function(t){a()}),tsb.addEventListener("mousedown",function(t){t.stopPropagation()})
19
  for(var w=tsb.querySelectorAll("a"),u=0;u<w.length;u++){var t=w[u]
20
  t.addEventListener("click",function(t){var e=this.getAttribute("data-link")
21
- "#"!=e&&(rep_link=i(e),wpsr_helpers.popup(rep_link,800,500)),t.preventDefault()})}}if(msb=document.querySelector(".wpsr-mobile-sb"),msb){var b=0
22
  window.addEventListener("scroll",function(){var t=window.pageYOffset||document.documentElement.scrollTop
23
  t>b?wpsr_helpers.addClass(msb,"wpsr-msb-hide"):wpsr_helpers.removeClass(msb,"wpsr-msb-hide"),b=t},!1)}var f=document.querySelector(".wpsr-followbar")
24
  f&&(fb_close_btn=f.querySelector(".wpsr-fb-close"),fb_close_btn.addEventListener("click",function(){f.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(f,"wpsr-mow"):wpsr_helpers.addClass(f,"wpsr-mow")})),mow=document.querySelectorAll("[data-minonwidth]")
25
  var m=function(t,e){var s=t.getAttribute("data-minonwidth")
26
  s>0&&(e<=s?wpsr_helpers.addClass(t,"wpsr-mow"):wpsr_helpers.removeClass(t,"wpsr-mow"))}
27
- if(mow.length>0&&["resize","load"].forEach(function(t){window.addEventListener(t,function(){for(u=0;u<mow.length;u++){m(mow[u],window.innerWidth)}e&&(e.style.display="block"),f&&(f.style.display="block")})}),wpsr_ajax_url){var v=document.querySelectorAll("[data-wpsrs]")
28
  if(v.length>0){var _={},h=wpsr_ajax_url+"?action=wpsr_share_count"
29
  for(u=0;u<v.length;u++){var g=v[u],y=g.getAttribute("data-wpsrs"),k=g.getAttribute("data-wpsrs-svcs").split(",")
30
  y in _||(_[y]=[])
9
  if(e){var s=function(){vlsb=document.querySelector(".wpsr-sb-vl-scontent"),vlsb&&(stick=vlsb.getAttribute("data-stickto"),stick_ele=document.querySelector(stick),stick_ele&&(vlsb.style.left=stick_ele.offsetLeft+"px")),e&&window.innerWidth<=800&&wpsr_helpers.addClass(e,"wpsr-mow")}
10
  s(),window.addEventListener("resize",s),sb_close_btn=e.querySelector(".wpsr-sb-close"),sb_close_btn.addEventListener("click",function(){e.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(e,"wpsr-mow"):wpsr_helpers.addClass(e,"wpsr-mow")})}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0}
11
  var r={ptitle:tsb.getAttribute("data-title"),purl:tsb.getAttribute("data-url"),psurl:tsb.getAttribute("data-surl"),ptuname:tsb.getAttribute("data-tuname"),cnt_sel:tsb.getAttribute("data-content"),word_count:tsb.getAttribute("data-tcount")},n=function(){var t=""
12
+ return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(t=document.selection.createRange().text),t},o=function(t,e){tsb.style.left=t+"px",tsb.style.top=e+"px",wpsr_helpers.addClass(tsb,"wpsr-tsb-active")},a=function(){wpsr_helpers.removeClass(tsb,"wpsr-tsb-active")},i=function(){var t=wpsr_tsb.stext,e=parseInt(r.word_count)
13
+ return 0==e?t:t.split(" ").slice(0,e).join(" ")},l=function(t){var e={"{title}":r.ptitle,"{url}":r.purl,"{s-url}":r.psurl,"{twitter-username}":r.ptuname,"{excerpt}":i()}
14
  for(var s in e)e.hasOwnProperty(s)&&(t=t.replace(RegExp(s,"g"),e[s]))
15
  return t}
16
  if(""!=r.cnt_sel)for(var p=r.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),c=document.querySelectorAll(p),u=0;u<c.length;u++){var d=c[u]
18
  ""!=e?(tsb_x=(t.pageX+parseInt(wpsr_tsb.startx))/2,tsb_y=Math.min(wpsr_tsb.starty,t.pageY),e!=wpsr_tsb.stext?(o(tsb_x,tsb_y),wpsr_tsb.stext=e):a()):a()})}document.body.addEventListener("mousedown",function(t){a()}),tsb.addEventListener("mousedown",function(t){t.stopPropagation()})
19
  for(var w=tsb.querySelectorAll("a"),u=0;u<w.length;u++){var t=w[u]
20
  t.addEventListener("click",function(t){var e=this.getAttribute("data-link")
21
+ "#"!=e&&(rep_link=l(e),wpsr_helpers.popup(rep_link,800,500)),t.preventDefault()})}}if(msb=document.querySelector(".wpsr-mobile-sb"),msb){var b=0
22
  window.addEventListener("scroll",function(){var t=window.pageYOffset||document.documentElement.scrollTop
23
  t>b?wpsr_helpers.addClass(msb,"wpsr-msb-hide"):wpsr_helpers.removeClass(msb,"wpsr-msb-hide"),b=t},!1)}var f=document.querySelector(".wpsr-followbar")
24
  f&&(fb_close_btn=f.querySelector(".wpsr-fb-close"),fb_close_btn.addEventListener("click",function(){f.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(f,"wpsr-mow"):wpsr_helpers.addClass(f,"wpsr-mow")})),mow=document.querySelectorAll("[data-minonwidth]")
25
  var m=function(t,e){var s=t.getAttribute("data-minonwidth")
26
  s>0&&(e<=s?wpsr_helpers.addClass(t,"wpsr-mow"):wpsr_helpers.removeClass(t,"wpsr-mow"))}
27
+ if(mow.length>0&&["resize","load"].forEach(function(t){window.addEventListener(t,function(){for(u=0;u<mow.length;u++){m(mow[u],window.innerWidth)}})}),wpsr_ajax_url){var v=document.querySelectorAll("[data-wpsrs]")
28
  if(v.length>0){var _={},h=wpsr_ajax_url+"?action=wpsr_share_count"
29
  for(u=0;u<v.length;u++){var g=v[u],y=g.getAttribute("data-wpsrs"),k=g.getAttribute("data-wpsrs-svcs").split(",")
30
  y in _||(_[y]=[])
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: vaakash
3
  Donate link: https://goo.gl/qMF3iE
4
  Tags: social media, share buttons, sharing, share, social, facebook, twitter, sharebar, bookmark, widgets, counter, sidebar, post, posts, page, promotion, marketing, plugin, follow buttons, floating share buttons, profile buttons, mobile, mobile sharebar, profile icons, share bar, social bar, share counter, excerpt, shortcode, google, linkedin, pinterest, pocket, reddit, sharethis, stumbleupon, favorites, addthis, whatsapp, tweet, vkontakte, popup, socializer, messenger, wp socializer
5
  Requires at least: 4.6
6
- Tested up to: 4.8
7
- Stable tag: 3.3.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -229,6 +229,9 @@ Please refer [this page](https://goo.gl/Ge7riC) for the full list of FAQs.
229
 
230
  == Changelog ==
231
 
 
 
 
232
  = 3.3.1 =
233
  * Fix: Remove PHP error logging
234
  * Fix: Sharebar & followbars were not displayed properly during page load.
3
  Donate link: https://goo.gl/qMF3iE
4
  Tags: social media, share buttons, sharing, share, social, facebook, twitter, sharebar, bookmark, widgets, counter, sidebar, post, posts, page, promotion, marketing, plugin, follow buttons, floating share buttons, profile buttons, mobile, mobile sharebar, profile icons, share bar, social bar, share counter, excerpt, shortcode, google, linkedin, pinterest, pocket, reddit, sharethis, stumbleupon, favorites, addthis, whatsapp, tweet, vkontakte, popup, socializer, messenger, wp socializer
5
  Requires at least: 4.6
6
+ Tested up to: 4.8.1
7
+ Stable tag: 3.3.2
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
229
 
230
  == Changelog ==
231
 
232
+ = 3.3.2 =
233
+ * Fix: Follow bar & sharebar not displayed in some cases.
234
+
235
  = 3.3.1 =
236
  * Fix: Remove PHP error logging
237
  * Fix: Sharebar & followbars were not displayed properly during page load.
wpsr.php CHANGED
@@ -3,14 +3,14 @@
3
  * Plugin Name: WP Socializer
4
  * Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
  * Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
6
- * Version: 3.3.1
7
  * Author: Aakash Chakravarthy
8
  * Author URI: https://www.aakashweb.com
9
  * Text Domain: wpsr
10
  * Domain Path: /languages
11
  */
12
 
13
- define( 'WPSR_VERSION', '3.3.1' );
14
  define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
3
  * Plugin Name: WP Socializer
4
  * Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
  * Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
6
+ * Version: 3.3.2
7
  * Author: Aakash Chakravarthy
8
  * Author URI: https://www.aakashweb.com
9
  * Text Domain: wpsr
10
  * Domain Path: /languages
11
  */
12
 
13
+ define( 'WPSR_VERSION', '3.3.2' );
14
  define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );