WP Socializer - Version 3.3.1

Version Description

  • Fix: Remove PHP error logging
  • Fix: Sharebar & followbars were not displayed properly during page load.
  • Fix: Undefined index notice.
  • Fix: Minified JS was not used.
Download this release

Release Info

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

Code changes from version 3.3 to 3.3.1

admin/setup.php CHANGED
@@ -144,6 +144,7 @@ class WPSR_Admin_Setup{
144
  echo '<p>Thank you for using WP Socializer plugin.</p>';
145
  echo '<p>Lets go through the setup process to quickly add attractive share buttons easily to your site.</p>';
146
  echo '<p>It only takes less than 3 minutes to get your WordPress site setup with social sharing features.</p>';
 
147
  echo '</div>';
148
 
149
  }
144
  echo '<p>Thank you for using WP Socializer plugin.</p>';
145
  echo '<p>Lets go through the setup process to quickly add attractive share buttons easily to your site.</p>';
146
  echo '<p>It only takes less than 3 minutes to get your WordPress site setup with social sharing features.</p>';
147
+ echo '<p><em>Note: After setup, you can always go to the main settings page to customize further.</em></p>';
148
  echo '</div>';
149
 
150
  }
core/includes.php CHANGED
@@ -22,7 +22,7 @@ class WPSR_Includes{
22
 
23
  'main_js' => array(
24
  'type' => 'js',
25
- 'link' => WPSR_URL . 'public/js/wp-socializer.js',
26
  'deps' => array(),
27
  'version' => WPSR_VERSION
28
  ),
22
 
23
  'main_js' => array(
24
  'type' => 'js',
25
+ 'link' => WPSR_URL . 'public/js/wp-socializer.min.js',
26
  'deps' => array(),
27
  'version' => WPSR_VERSION
28
  ),
core/templates.php CHANGED
@@ -543,7 +543,7 @@ class wpsr_template_button_handler{
543
 
544
  function __construct( $properties, $type ){
545
 
546
- $this->props = $properties;
547
  $this->type = $type;
548
 
549
  }
543
 
544
  function __construct( $properties, $type ){
545
 
546
+ $this->props = WPSR_Lists::set_defaults( $properties, WPSR_Lists::defaults( 'buttons' ) );
547
  $this->type = $type;
548
 
549
  }
public/css/wp-socializer.css CHANGED
@@ -22,6 +22,7 @@
22
  transition: all 0.5s;
23
  box-sizing: border-box;
24
  z-index: 9999;
 
25
  }
26
  .wpsr-sb-inner:after{
27
  content: '';
@@ -198,6 +199,7 @@
198
  position: fixed;
199
  z-index: 999999;
200
  line-height: 0;
 
201
  }
202
  .sr-fb-tl{
203
  top: 20px;
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
  position: fixed;
200
  z-index: 999999;
201
  line-height: 0;
202
+ display: none;
203
  }
204
  .sr-fb-tl{
205
  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}.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}}
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}}
public/js/wp-socializer.js CHANGED
@@ -80,7 +80,7 @@ document.addEventListener( 'DOMContentLoaded', function(){
80
  }
81
 
82
  // Sharebar
83
- the_sb = document.querySelector( '.wpsr-sharebar' );
84
 
85
  if( the_sb ){
86
 
@@ -265,7 +265,7 @@ document.addEventListener( 'DOMContentLoaded', function(){
265
  }
266
 
267
  // Followbar
268
- fwb = document.querySelector( '.wpsr-followbar' );
269
  if( fwb ){
270
  fb_close_btn = fwb.querySelector( '.wpsr-fb-close' );
271
  fb_close_btn.addEventListener( 'click', function(){
@@ -299,6 +299,15 @@ document.addEventListener( 'DOMContentLoaded', function(){
299
  var mowEle = mow[ i ];
300
  mow_resize( mowEle, window.innerWidth );
301
  }
 
 
 
 
 
 
 
 
 
302
  });
303
  });
304
 
@@ -332,7 +341,7 @@ document.addEventListener( 'DOMContentLoaded', function(){
332
  }
333
 
334
  var ajax_res = function( req ){
335
- console.log( req );
336
  var out = JSON.parse( req.responseText );
337
  var ph = document.querySelectorAll( '[data-wpsrs="' + req.props.forURL + '"]' );
338
 
80
  }
81
 
82
  // Sharebar
83
+ var the_sb = document.querySelector( '.wpsr-sharebar' );
84
 
85
  if( the_sb ){
86
 
265
  }
266
 
267
  // Followbar
268
+ var fwb = document.querySelector( '.wpsr-followbar' );
269
  if( fwb ){
270
  fb_close_btn = fwb.querySelector( '.wpsr-fb-close' );
271
  fb_close_btn.addEventListener( 'click', 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
 
341
  }
342
 
343
  var ajax_res = function( req ){
344
+
345
  var out = JSON.parse( req.responseText );
346
  var ph = document.querySelectorAll( '[data-wpsrs="' + req.props.forURL + '"]' );
347
 
public/js/wp-socializer.min.js CHANGED
@@ -1,25 +1,35 @@
1
  function socializer_addbookmark(t){var e=navigator.userAgent.toLowerCase(),s=e.indexOf("mac")!=-1,r=""
2
  t.preventDefault(),r=(s?"Command/Cmd":"CTRL")+" + D",alert("Press "+r+" to bookmark this page")}function socializer_shortlink(t,e){t.preventDefault(),link=e.getAttribute("href"),"#"!=link&&prompt("Short link",link)}window.wpsr_helpers={addClass:function(t,e){t.classList?t.classList.add(e):t.className+=" "+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},popup:function(t,e,s,r){var n=screen.width/2-s/2,o=screen.height/2-r/2
3
- return window.open(t,e,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+o+",left="+n)}},document.addEventListener("DOMContentLoaded",function(){for(scr_links=document.querySelectorAll(".socializer.sr-popup a"),p=0;p<scr_links.length;p++){var t=scr_links[p]
 
 
 
4
  t.addEventListener("click",function(t){var e=this.getAttribute("href")
5
- "#"==e||this.hasAttribute("onclick")||wpsr_helpers.popup(e,"_blank",800,500),t.preventDefault()})}if(the_sb=document.querySelector(".wpsr-sharebar"),the_sb){var e=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")),the_sb&&window.innerWidth<=800&&wpsr_helpers.addClass(the_sb,"wpsr-mow")}
6
- e(),window.addEventListener("resize",e),sb_close_btn=the_sb.querySelector(".wpsr-sb-close"),sb_close_btn.addEventListener("click",function(){the_sb.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(the_sb,"wpsr-mow"):wpsr_helpers.addClass(the_sb,"wpsr-mow")})}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0}
7
- var s={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")},r=function(){var t=""
8
- return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(t=document.selection.createRange().text),t},n=function(t,e){tsb.style.left=t+"px",tsb.style.top=e+"px",wpsr_helpers.addClass(tsb,"wpsr-tsb-active")},o=function(){wpsr_helpers.removeClass(tsb,"wpsr-tsb-active")},a=function(){var t=wpsr_tsb.stext,e=parseInt(s.word_count)
9
- return 0==e?t:t.split(" ").slice(0,e).join(" ")},i=function(t){var e={"{title}":s.ptitle,"{url}":s.purl,"{s-url}":s.psurl,"{twitter-username}":s.ptuname,"{excerpt}":a()}
10
- for(var r in e)e.hasOwnProperty(r)&&(t=t.replace(RegExp(r,"g"),e[r]))
 
11
  return t}
12
- if(""!=s.cnt_sel)for(var l=s.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),c=document.querySelectorAll(l),p=0;p<c.length;p++){var u=c[p]
13
- u.addEventListener("mousedown",function(t){wpsr_tsb.startx=t.pageX,wpsr_tsb.starty=t.pageY}),u.addEventListener("mouseup",function(t){var e=r()
14
- ""!=e?(tsb_x=(t.pageX+parseInt(wpsr_tsb.startx))/2,tsb_y=Math.min(wpsr_tsb.starty,t.pageY),e!=wpsr_tsb.stext?(n(tsb_x,tsb_y),wpsr_tsb.stext=e):o()):o()})}document.body.addEventListener("mousedown",function(t){o()}),tsb.addEventListener("mousedown",function(t){t.stopPropagation()})
15
- for(var d=tsb.querySelectorAll("a"),p=0;p<d.length;p++){var t=d[p]
16
  t.addEventListener("click",function(t){var e=this.getAttribute("data-link")
17
- "#"!=e&&(rep_link=i(e),wpsr_helpers.popup(rep_link,800,500)),t.preventDefault()})}}if(msb=document.querySelector(".wpsr-mobile-sb"),msb){var w=0
18
  window.addEventListener("scroll",function(){var t=window.pageYOffset||document.documentElement.scrollTop
19
- t>w?wpsr_helpers.addClass(msb,"wpsr-msb-hide"):wpsr_helpers.removeClass(msb,"wpsr-msb-hide"),w=t},!1)}fwb=document.querySelector(".wpsr-followbar"),fwb&&(fb_close_btn=fwb.querySelector(".wpsr-fb-close"),fb_close_btn.addEventListener("click",function(){fwb.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(fwb,"wpsr-mow"):wpsr_helpers.addClass(fwb,"wpsr-mow")})),mow=document.querySelectorAll("[data-minonwidth]")
20
- var b=function(t,e){var s=t.getAttribute("data-minonwidth")
 
21
  s>0&&(e<=s?wpsr_helpers.addClass(t,"wpsr-mow"):wpsr_helpers.removeClass(t,"wpsr-mow"))}
22
- if(mow.length>0&&["resize","load"].forEach(function(t){window.addEventListener(t,function(){for(p=0;p<mow.length;p++){b(mow[p],window.innerWidth)}})}),wpsr_ajax_url){var m=document.querySelectorAll("[data-wpsrs]")
23
- if(m.length>0)for(p=0;p<m.length;p++){var f=m[p],_=f.getAttribute("data-wpsrs"),v=f.getAttribute("data-wpsrs-svcs"),h=wpsr_ajax_url+"?action=wpsr_share_count&id="+_+"&services="+v,g=new XMLHttpRequest
24
- g.open("GET",h,!0),g.onload=function(){if(g.status>=200&&g.status<400){var t=g.responseText
25
- f.innerHTML=t}},g.send()}}})
 
 
 
 
 
1
  function socializer_addbookmark(t){var e=navigator.userAgent.toLowerCase(),s=e.indexOf("mac")!=-1,r=""
2
  t.preventDefault(),r=(s?"Command/Cmd":"CTRL")+" + D",alert("Press "+r+" to bookmark this page")}function socializer_shortlink(t,e){t.preventDefault(),link=e.getAttribute("href"),"#"!=link&&prompt("Short link",link)}window.wpsr_helpers={addClass:function(t,e){t.classList?t.classList.add(e):t.className+=" "+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},popup:function(t,e,s,r){var n=screen.width/2-s/2,o=screen.height/2-r/2
3
+ return window.open(t,e,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+o+",left="+n)},ajax:function(t,e,s,r,n){var o=new XMLHttpRequest
4
+ o.props=n,o.open(e,t,!0),"POST"==e&&o.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),o.onreadystatechange=function(){if(4==o.readyState&&200==o.status)return r(o)},o.send(s)},format_num:function(t){if(t<1e3)return t
5
+ for(var e=["k","m","b","t"],s=t,r=0;r<e.length;r++)if(!((t/=1e3)>1e3)){s=Math.round(100*t)/100+e[r]
6
+ break}return s}},document.addEventListener("DOMContentLoaded",function(){for(scr_links=document.querySelectorAll(".socializer.sr-popup a"),u=0;u<scr_links.length;u++){var t=scr_links[u]
7
  t.addEventListener("click",function(t){var e=this.getAttribute("href")
8
+ "#"==e||this.hasAttribute("onclick")||wpsr_helpers.popup(e,"_blank",800,500),t.preventDefault()})}var e=document.querySelector(".wpsr-sharebar")
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]
17
+ d.addEventListener("mousedown",function(t){wpsr_tsb.startx=t.pageX,wpsr_tsb.starty=t.pageY}),d.addEventListener("mouseup",function(t){var e=n()
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]=[])
31
+ for(j=0;j<k.length;j++)_[y].indexOf(k[j])===-1&&_[y].push(k[j])}var L=function(t){var e=JSON.parse(t.responseText),s=document.querySelectorAll('[data-wpsrs="'+t.props.forURL+'"]')
32
+ for(u=0;u<s.length;u++){var r=s[u],n=r.getAttribute("data-wpsrs-svcs").split(","),o=0
33
+ for(j=0;j<n.length;j++){var a=n[j]
34
+ a in e&&(o+=parseInt(e[a])||0)}r.innerHTML=wpsr_helpers.format_num(o)}}
35
+ for(var y in _)_.hasOwnProperty(y)&&(send_data={url:y,services:_[y]},to_send="data="+JSON.stringify(send_data),wpsr_helpers.ajax(h,"POST",to_send,L,{forURL:y}))}}})
readme.txt CHANGED
@@ -4,7 +4,7 @@ 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
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -229,6 +229,12 @@ Please refer [this page](https://goo.gl/Ge7riC) for the full list of FAQs.
229
 
230
  == Changelog ==
231
 
 
 
 
 
 
 
232
  = 3.3 =
233
  * New: Setup wizard.
234
  * New: Added handmade 87 design templates selectable from admin page.
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
 
230
  == Changelog ==
231
 
232
+ = 3.3.1 =
233
+ * Fix: Remove PHP error logging
234
+ * Fix: Sharebar & followbars were not displayed properly during page load.
235
+ * Fix: Undefined index notice.
236
+ * Fix: Minified JS was not used.
237
+
238
  = 3.3 =
239
  * New: Setup wizard.
240
  * New: Added handmade 87 design templates selectable from admin page.
wpsr.php CHANGED
@@ -3,21 +3,21 @@
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
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' );
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' ) );
17
  define( 'WPSR_BASE_NAME', plugin_basename( __FILE__ ) );
18
  define( 'WPSR_SETUP_VERSION', '1.0' );
19
 
20
- error_reporting(E_ALL);
21
 
22
  final class WP_Socializer{
23
 
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' ) );
17
  define( 'WPSR_BASE_NAME', plugin_basename( __FILE__ ) );
18
  define( 'WPSR_SETUP_VERSION', '1.0' );
19
 
20
+ //error_reporting(E_ALL);
21
 
22
  final class WP_Socializer{
23