WP Socializer - Version 7.1

Version Description

Download this release

Release Info

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

Code changes from version 7.0 to 7.1

admin/admin.php CHANGED
@@ -244,6 +244,7 @@ class WPSR_Admin{
244
  echo '<div class="notice notice-success inline is-dismissible save_notice">';
245
  echo '<p>' . __( 'Settings saved successfully ! ', 'wpsr' );
246
  echo '<a href="' . get_site_url() . '" target="_blank">' . __( 'Visit site', 'wpsr' ) . ' <i class="fas fa-arrow-right"></i></a></p>';
 
247
  echo '</div>';
248
  }
249
 
@@ -427,7 +428,7 @@ class WPSR_Admin{
427
  echo '<div id="sidebar">';
428
 
429
  echo '<div class="side_card pro_card">';
430
- echo '<h2>Upgrade to WP Socializer - PRO</h2>';
431
  echo '<ul>';
432
  echo '<li>Create <em>custom icons</em></li>';
433
  echo '<li>Change <em>tweet text</em>, share URL, title for posts</li>';
@@ -469,6 +470,23 @@ class WPSR_Admin{
469
 
470
  }
471
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
472
  }
473
 
474
  WPSR_Admin::init();
244
  echo '<div class="notice notice-success inline is-dismissible save_notice">';
245
  echo '<p>' . __( 'Settings saved successfully ! ', 'wpsr' );
246
  echo '<a href="' . get_site_url() . '" target="_blank">' . __( 'Visit site', 'wpsr' ) . ' <i class="fas fa-arrow-right"></i></a></p>';
247
+ echo '<p class="pro_msg">' . self::pro_msg() . '</p>';
248
  echo '</div>';
249
  }
250
 
428
  echo '<div id="sidebar">';
429
 
430
  echo '<div class="side_card pro_card">';
431
+ echo '<h2 class="pro_shine">Upgrade to WP Socializer - PRO</h2>';
432
  echo '<ul>';
433
  echo '<li>Create <em>custom icons</em></li>';
434
  echo '<li>Change <em>tweet text</em>, share URL, title for posts</li>';
470
 
471
  }
472
 
473
+ public static function pro_msg(){
474
+
475
+ $features = array(
476
+ 'you can Create <strong>Custom Icons</strong>',
477
+ 'you can Change <strong>Tweet Text</strong>, Share URL, Title for posts',
478
+ 'you can Track clicks on Share & Follow Icons with <strong>Google Analytics</strong>',
479
+ 'you can Share Short Links with <strong>Bit.ly</strong>',
480
+ 'there is NO <strong>Plugin branding</strong> ?'
481
+ );
482
+
483
+ $rand_feature_id = array_rand( $features );
484
+ $feature = $features[ $rand_feature_id ];
485
+
486
+ return '<span class="pro_tag">PRO Feature</span> In WP Socializer PRO, ' . $feature . ' <a href="https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=admin&utm_medium=save_msg&utm_campaign=wpsr-pro" target="_blank">Get this feature <i class="fas fa-arrow-right"></i></a>';
487
+
488
+ }
489
+
490
  }
491
 
492
  WPSR_Admin::init();
admin/css/style.css CHANGED
@@ -1224,6 +1224,10 @@ select[name="ft_status"]{
1224
 
1225
 
1226
  /** PRO **/
 
 
 
 
1227
  .pro_card h2 {
1228
  background: #ffd700;
1229
  font-size: 14px;
@@ -1259,6 +1263,42 @@ select[name="ft_status"]{
1259
  border-radius: 3px;
1260
  margin: 0 0 0 3px;
1261
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1262
 
1263
  /** Misc **/
1264
  .page_footer{
1224
 
1225
 
1226
  /** PRO **/
1227
+ .pro_card{
1228
+ background: linear-gradient(0, rgb(255 215 0 / 30%), #ffffff);
1229
+ box-shadow: 0 2px 7px -3px rgb(0 0 0 / 40%);
1230
+ }
1231
  .pro_card h2 {
1232
  background: #ffd700;
1233
  font-size: 14px;
1263
  border-radius: 3px;
1264
  margin: 0 0 0 3px;
1265
  }
1266
+ p.pro_msg{
1267
+ border-top: 1px solid #c3c4c7;
1268
+ padding: 10px 0 5px 0;
1269
+ }
1270
+ .pro_msg strong{
1271
+ color: black;
1272
+ text-decoration: underline;
1273
+ margin: 0 3px;
1274
+ }
1275
+ .pro_msg .pro_tag{
1276
+ font-size: 12px;
1277
+ margin: 0 5px 0 0;
1278
+ padding: 3px 10px;
1279
+ font-weight: bold;
1280
+ }
1281
+ .pro_shine{
1282
+ position: relative;
1283
+ overflow: hidden;
1284
+ }
1285
+ .pro_shine:after {
1286
+ content: "";
1287
+ position: absolute;
1288
+ width: 100%;
1289
+ height: 100%;
1290
+ transform: rotate(30deg);
1291
+ background: linear-gradient( to right, rgb(255 255 255 / 0%) 0%, rgba(255, 255, 255, 0.13) 77%, rgba(255, 255, 255, 0.5) 92%, rgba(255, 255, 255, 0.0) 100% );
1292
+ opacity: 1;
1293
+ top: 0;
1294
+ left: 0;
1295
+ animation: shine 5s 2s 8 ease-in-out;
1296
+ }
1297
+
1298
+ @keyframes shine {
1299
+ 0% {transform:translateX(-100%);}
1300
+ 100% {transform:translateX(100%);}
1301
+ }
1302
 
1303
  /** Misc **/
1304
  .page_footer{
core/templates/floating-sharebar.php CHANGED
@@ -127,6 +127,10 @@ class WPSR_Template_Floating_Sharebar{
127
  $icon_tag->add_data( 'pin-custom', 'true' );
128
  }
129
 
 
 
 
 
130
  if( array_key_exists( 'link_mobile', $props ) ){
131
  $mobile_link = WPSR_Metadata::replace_params( $props[ 'link_mobile' ], $page_info );
132
  $icon_tag->add_data( 'mobile', $mobile_link );
@@ -164,6 +168,7 @@ class WPSR_Template_Floating_Sharebar{
164
  if( $gs[ 'share_menu' ] == 'yes' ){
165
  $menu_metadata = json_encode( WPSR_Metadata::map_metadata_params( $page_info ) );
166
  array_push( $icons_html, '<span class="sr-share-menu"><a href="#" target="_blank" title="More share links" ' . $icon_styles_attr . ' data-metadata="' . esc_attr( $menu_metadata ) . '"><i class="fa fa-plus"></i></a></span>' );
 
167
  }
168
 
169
  // Building the socializer tag
127
  $icon_tag->add_data( 'pin-custom', 'true' );
128
  }
129
 
130
+ if( $id == 'shortlink' ){
131
+ WPSR_Template_Popups::$short_link_usage += 1;
132
+ }
133
+
134
  if( array_key_exists( 'link_mobile', $props ) ){
135
  $mobile_link = WPSR_Metadata::replace_params( $props[ 'link_mobile' ], $page_info );
136
  $icon_tag->add_data( 'mobile', $mobile_link );
168
  if( $gs[ 'share_menu' ] == 'yes' ){
169
  $menu_metadata = json_encode( WPSR_Metadata::map_metadata_params( $page_info ) );
170
  array_push( $icons_html, '<span class="sr-share-menu"><a href="#" target="_blank" title="More share links" ' . $icon_styles_attr . ' data-metadata="' . esc_attr( $menu_metadata ) . '"><i class="fa fa-plus"></i></a></span>' );
171
+ WPSR_Template_Popups::$share_menu_usage += 1;
172
  }
173
 
174
  // Building the socializer tag
core/templates/popups.php CHANGED
@@ -8,6 +8,10 @@ defined( 'ABSPATH' ) || exit;
8
 
9
  class WPSR_Template_Popups{
10
 
 
 
 
 
11
  public static function init(){
12
 
13
  add_action( 'wp_footer', array( __CLASS__, 'output' ) );
@@ -17,14 +21,20 @@ class WPSR_Template_Popups{
17
  public static function output(){
18
 
19
  $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
 
20
 
21
  if( $gs[ 'share_menu' ] == 'yes' ){
22
- self::share_menu();
 
 
 
23
  }
24
 
25
- self::short_link();
26
- }
 
27
 
 
28
 
29
  public static function header( $for, $heading ){
30
 
8
 
9
  class WPSR_Template_Popups{
10
 
11
+ public static $share_menu_usage = 0;
12
+
13
+ public static $short_link_usage = 0;
14
+
15
  public static function init(){
16
 
17
  add_action( 'wp_footer', array( __CLASS__, 'output' ) );
21
  public static function output(){
22
 
23
  $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
24
+ $share_menu_shown = false;
25
 
26
  if( $gs[ 'share_menu' ] == 'yes' ){
27
+ if( self::$share_menu_usage > 0 ){
28
+ self::share_menu();
29
+ $share_menu_shown = true;
30
+ }
31
  }
32
 
33
+ if( self::$short_link_usage > 0 || $share_menu_shown ){
34
+ self::short_link();
35
+ }
36
 
37
+ }
38
 
39
  public static function header( $for, $heading ){
40
 
core/templates/share-icons.php CHANGED
@@ -156,6 +156,10 @@ class WPSR_Template_Share_Icons{
156
  $icon_tag->add_data( 'pin-custom', 'true' );
157
  }
158
 
 
 
 
 
159
  if( array_key_exists( 'link_mobile', $props ) ){
160
  $mobile_link = WPSR_Metadata::replace_params( $props[ 'link_mobile' ], $page_info );
161
  $icon_tag->add_data( 'mobile', $mobile_link );
@@ -193,6 +197,7 @@ class WPSR_Template_Share_Icons{
193
  if( $gs[ 'share_menu' ] == 'yes' ){
194
  $menu_metadata = json_encode( WPSR_Metadata::map_metadata_params( $page_info ) );
195
  array_push( $icons_html, '<span class="sr-share-menu"><a href="#" target="_blank" title="More share links" ' . $icon_styles_attr . ' data-metadata="' . esc_attr( $menu_metadata ) . '"><i class="fa fa-plus"></i></a></span>' );
 
196
  }
197
 
198
  // Building the socializer tag
156
  $icon_tag->add_data( 'pin-custom', 'true' );
157
  }
158
 
159
+ if( $id == 'shortlink' ){
160
+ WPSR_Template_Popups::$short_link_usage += 1;
161
+ }
162
+
163
  if( array_key_exists( 'link_mobile', $props ) ){
164
  $mobile_link = WPSR_Metadata::replace_params( $props[ 'link_mobile' ], $page_info );
165
  $icon_tag->add_data( 'mobile', $mobile_link );
197
  if( $gs[ 'share_menu' ] == 'yes' ){
198
  $menu_metadata = json_encode( WPSR_Metadata::map_metadata_params( $page_info ) );
199
  array_push( $icons_html, '<span class="sr-share-menu"><a href="#" target="_blank" title="More share links" ' . $icon_styles_attr . ' data-metadata="' . esc_attr( $menu_metadata ) . '"><i class="fa fa-plus"></i></a></span>' );
200
+ WPSR_Template_Popups::$share_menu_usage += 1;
201
  }
202
 
203
  // Building the socializer tag
public/css/wp-socializer.css CHANGED
@@ -501,6 +501,7 @@
501
  .wpsr-sm-links > div{
502
  width: 33.33%;
503
  padding: 5px;
 
504
  }
505
  .wpsr-sm-link {
506
  display: flex;
501
  .wpsr-sm-links > div{
502
  width: 33.33%;
503
  padding: 5px;
504
+ box-sizing: border-box;
505
  }
506
  .wpsr-sm-link {
507
  display: flex;
public/css/wp-socializer.min.css CHANGED
@@ -1 +1 @@
1
- .wp-socializer:after{clear:both;content:'';display:block}.wp-socializer.wpsr-share-icons{margin:1em 0}.wpsr-share-icons .wpsr-si-inner{display:flex}.wpsr-share-icons .wpsr-si-inner > *:first-child{margin-left:0}.wpsr-share-icons .wpsr-si-inner > *:last-child{margin-right:0}.wpsr-share-icons .socializer{margin:0 1em}.wpsr-share-icons.wpsr-flex-center{text-align:center}.wpsr-share-icons.wpsr-flex-center .wpsr-si-inner{justify-content:center}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.wpsr-sharebar .socializer{line-height:0}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:99999;max-width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-counter{margin-bottom:1.5em}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{bottom:0;left:0!important;right:0!important;margin:0!important;position:fixed;background:#fff;box-shadow:0 -2px 4px -2px rgba(0,0,0,0.5)}.wpsr-sb-hl .wpsr-sb-inner{display:flex}.wpsr-sb-hl .wpsr-counter{padding:0 1em}.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.wpsr-sb-hl{border-radius:0}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sb-close{position:absolute;cursor:pointer;display:none;padding:10px}.wpsr-sb-close .wpsr-bar-icon{opacity:0.2}.wpsr-sb-close:hover .wpsr-bar-icon{opacity:0.8}.wpsr-sb-vl .wpsr-sb-close{bottom:0;transform:translate(-50%,100%);left:50%}.wpsr-sb-hl .wpsr-sb-close{display:none}.wpsr-sharebar.wpsr-closed{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-sharebar.wpsr-closed .wpsr-sb-inner{display:none}.wpsr-sharebar.wpsr-closed .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;color:#000;display:flex;flex-direction:column;justify-content:center;flex-shrink:0}.wpsr-counter .scount{font-size:2em;font-weight:bold;margin-bottom:0.25em}.wpsr-counter .scount .fa{font-size:.7em;opacity:0.7}.wpsr-counter .stext{display:block;line-height:1em;color:inherit;text-transform:uppercase;font-size:1em;margin-top:-0.15em;opacity:0.5}.wpsr-counter.wpsrc-sz-40px{font-size:12.5px}.wpsr-counter.wpsrc-sz-48px{font-size:15px}.wpsr-counter.wpsrc-sz-64px{font-size:20px}.wpsr-sharebar .wpsr-counter{font-size:8.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-40px{font-size:9.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-48px{font-size:11.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-64px{font-size:15.2px}.socializer span a img{background:none!important;border:none!important;max-width:100%!important}.wpsr-follow-icons{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% )}.wpsr-follow-icons div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-follow-icons.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-follow-icons.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-follow-icons.sr-fb-vl .sr-fb-title{width:5em;text-align:center;line-height:1.5}.wpsr-fb-close{position:absolute;right:0;cursor:pointer;display:none;line-height:0;padding:1em;opacity:0.2}.wpsr-fb-close:hover{opacity:0.8}.wpsr-follow-icons:hover .wpsr-fb-close{display:block}.wpsr-closed.wpsr-follow-icons .sr-fb-title{display:none}.wpsr-closed.wpsr-follow-icons .sr-followbar{display:none}.wpsr-closed.wpsr-follow-icons .wpsr-fb-close{display:block}.sr-fb-bm .wpsr-fb-close,.sr-fb-bl .wpsr-fb-close{right:0;transform:translate(100%,-100%);padding-bottom:0}.sr-fb-vl.sr-fb-br .wpsr-fb-close{left:0;bottom:0;transform:translateX(-100%);padding-bottom:0}.sr-fb-hl.sr-fb-br .wpsr-fb-close{top:0;right:0;transform:translateY(-100%)}.sr-fb-hl.sr-fb-tr .wpsr-fb-close{padding-right:0}.wpsr-closed.sr-fb-tl .wpsr-fb-close,.wpsr-closed.sr-fb-lm .wpsr-fb-close{right:-24px;transform:translateY(0%)}.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));z-index:999}.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-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.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-bar-icon{line-height:0;background:#000;display:inline-block;padding:3px;border-radius:50%;vertical-align:middle;fill:#fff}.wpsr-bar-icon .i-open{display:none}.wpsr-closed .wpsr-bar-icon .i-close{display:none}.wpsr-closed .wpsr-bar-icon .i-open{display:block}.wpsr-closed .wpsr-bar-icon{padding:5px}.wpsr-bg{display:none;position:fixed;z-index:9999;top:0;left:0;right:0;bottom:0;background:rgb(0 0 0 / 20%);padding:0}.wpsr-bg.wpsr-pp-opened{display:block}.wpsr-bg.wpsr-pp-closed{display:none}.wpsr-bg.wpsr-pp-slide-down .wpsr-popup{transform:translateY(0);opacity:1}.wpsr-bg.wpsr-pp-slide-up .wpsr-popup{transform:translateY(-50px);opacity:0.8}.wpsr-pp-inner{margin:0 auto;display:flex;flex-direction:column;justify-content:center;height:100%}.wpsr-popup{display:none;background:#fff;display:flex;flex-wrap:nowrap;flex-direction:column;box-shadow:0 3px 6px rgb(0 0 0 / 16%),0 3px 6px rgb(0 0 0 / 23%);border-radius:10px;max-height:100%;transform:translateY(-50px);opacity:0.8;transition:all 0.25s}.wpsr-pp-head{text-align:center;padding:10px 0;position:relative;border-bottom:1px solid #dfdfdf}.wpsr-pp-head h3{margin:0!important;font-size:20px}.wpsr-pp-content{overflow-y:auto;padding:20px}.wpsr-pp-close{position:absolute;top:50%;right:10px;color:#333;transform:translateY(-50%);padding:10px}.wpsr-pp-close:hover{opacity:0.8}.wpsr-pp-foot{text-align:center;padding:10px 0;font-size:12px;color:#777;border-top:1px solid #dfdfdf}.wpsr-pp-foot a{color:#ff8226;text-decoration:none}.wpsr-pp-foot a:hover{color:#333;text-decoration:underline}#wpsr-share-menu .wpsr-pp-inner{max-width:700px}.wpsr-sm-links{display:flex;flex-wrap:wrap}.wpsr-sm-links > div{width:33.33%;padding:5px}.wpsr-sm-link{display:flex;color:#fff;border-radius:5px;padding:5px;font-size:15px;text-decoration:none;border-bottom:2px solid rgb(0 0 0 / 10%);text-shadow:0 1px 1px rgb(0 0 0 / 30%);background:linear-gradient(rgb(0 0 0 / 1%),rgb(0 0 0 / 5%))}.wpsr-sm-link:hover,.wpsr-sm-link:focus,.wpsr-sm-link:active{text-decoration:none;color:#fff;opacity:0.8}.wpsr-sm-icon{width:24px;margin:0 5px;display:flex;flex-direction:column;align-items:center;justify-content:center}.wpsr-sm-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#wpsr-short-link .wpsr-pp-inner{max-width:500px}#wpsr-short-link .wpsr-pp-content{display:flex;font-size:15px}#wpsr-short-link-url{flex:1;text-align:center}#wpsr-sl-copy-btn{background:#000;text-align:center;display:flex;flex-direction:column;justify-content:center;align-content:center;padding:5px 15px;color:#fff;border-radius:5px;margin-left:10px;text-decoration:none}#wpsr-sl-copy-btn:hover{text-decoration:none}@media screen and (max-width:700px){#wpsr-share-menu .wpsr-pp-inner,#wpsr-short-link .wpsr-pp-inner{max-width:100%}.wpsr-popup{border-radius:0}.wpsr-sm-links > div{width:50%}.wpsr-sm-link{padding:10px}}.socializer .sr-share-menu>a,.socializer .sr-share-menu>a:visited{background-color:#ff6500;color:#fff}.sr-share-menu a i{font-size:0.7em}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-hide{display:none}.wpsr-close{background:red}.sr-custom-html{line-height:1}.socializer .ctext:empty{display:none!important}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}
1
+ .wp-socializer:after{clear:both;content:'';display:block}.wp-socializer.wpsr-share-icons{margin:1em 0}.wpsr-share-icons .wpsr-si-inner{display:flex}.wpsr-share-icons .wpsr-si-inner > *:first-child{margin-left:0}.wpsr-share-icons .wpsr-si-inner > *:last-child{margin-right:0}.wpsr-share-icons .socializer{margin:0 1em}.wpsr-share-icons.wpsr-flex-center{text-align:center}.wpsr-share-icons.wpsr-flex-center .wpsr-si-inner{justify-content:center}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.wpsr-sharebar .socializer{line-height:0}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:99999;max-width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-counter{margin-bottom:1.5em}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{bottom:0;left:0!important;right:0!important;margin:0!important;position:fixed;background:#fff;box-shadow:0 -2px 4px -2px rgba(0,0,0,0.5)}.wpsr-sb-hl .wpsr-sb-inner{display:flex}.wpsr-sb-hl .wpsr-counter{padding:0 1em}.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.wpsr-sb-hl{border-radius:0}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sb-close{position:absolute;cursor:pointer;display:none;padding:10px}.wpsr-sb-close .wpsr-bar-icon{opacity:0.2}.wpsr-sb-close:hover .wpsr-bar-icon{opacity:0.8}.wpsr-sb-vl .wpsr-sb-close{bottom:0;transform:translate(-50%,100%);left:50%}.wpsr-sb-hl .wpsr-sb-close{display:none}.wpsr-sharebar.wpsr-closed{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-sharebar.wpsr-closed .wpsr-sb-inner{display:none}.wpsr-sharebar.wpsr-closed .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;color:#000;display:flex;flex-direction:column;justify-content:center;flex-shrink:0}.wpsr-counter .scount{font-size:2em;font-weight:bold;margin-bottom:0.25em}.wpsr-counter .scount .fa{font-size:.7em;opacity:0.7}.wpsr-counter .stext{display:block;line-height:1em;color:inherit;text-transform:uppercase;font-size:1em;margin-top:-0.15em;opacity:0.5}.wpsr-counter.wpsrc-sz-40px{font-size:12.5px}.wpsr-counter.wpsrc-sz-48px{font-size:15px}.wpsr-counter.wpsrc-sz-64px{font-size:20px}.wpsr-sharebar .wpsr-counter{font-size:8.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-40px{font-size:9.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-48px{font-size:11.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-64px{font-size:15.2px}.socializer span a img{background:none!important;border:none!important;max-width:100%!important}.wpsr-follow-icons{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% )}.wpsr-follow-icons div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-follow-icons.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-follow-icons.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-follow-icons.sr-fb-vl .sr-fb-title{width:5em;text-align:center;line-height:1.5}.wpsr-fb-close{position:absolute;right:0;cursor:pointer;display:none;line-height:0;padding:1em;opacity:0.2}.wpsr-fb-close:hover{opacity:0.8}.wpsr-follow-icons:hover .wpsr-fb-close{display:block}.wpsr-closed.wpsr-follow-icons .sr-fb-title{display:none}.wpsr-closed.wpsr-follow-icons .sr-followbar{display:none}.wpsr-closed.wpsr-follow-icons .wpsr-fb-close{display:block}.sr-fb-bm .wpsr-fb-close,.sr-fb-bl .wpsr-fb-close{right:0;transform:translate(100%,-100%);padding-bottom:0}.sr-fb-vl.sr-fb-br .wpsr-fb-close{left:0;bottom:0;transform:translateX(-100%);padding-bottom:0}.sr-fb-hl.sr-fb-br .wpsr-fb-close{top:0;right:0;transform:translateY(-100%)}.sr-fb-hl.sr-fb-tr .wpsr-fb-close{padding-right:0}.wpsr-closed.sr-fb-tl .wpsr-fb-close,.wpsr-closed.sr-fb-lm .wpsr-fb-close{right:-24px;transform:translateY(0%)}.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));z-index:999}.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-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.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-bar-icon{line-height:0;background:#000;display:inline-block;padding:3px;border-radius:50%;vertical-align:middle;fill:#fff}.wpsr-bar-icon .i-open{display:none}.wpsr-closed .wpsr-bar-icon .i-close{display:none}.wpsr-closed .wpsr-bar-icon .i-open{display:block}.wpsr-closed .wpsr-bar-icon{padding:5px}.wpsr-bg{display:none;position:fixed;z-index:9999;top:0;left:0;right:0;bottom:0;background:rgb(0 0 0 / 20%);padding:0}.wpsr-bg.wpsr-pp-opened{display:block}.wpsr-bg.wpsr-pp-closed{display:none}.wpsr-bg.wpsr-pp-slide-down .wpsr-popup{transform:translateY(0);opacity:1}.wpsr-bg.wpsr-pp-slide-up .wpsr-popup{transform:translateY(-50px);opacity:0.8}.wpsr-pp-inner{margin:0 auto;display:flex;flex-direction:column;justify-content:center;height:100%}.wpsr-popup{display:none;background:#fff;display:flex;flex-wrap:nowrap;flex-direction:column;box-shadow:0 3px 6px rgb(0 0 0 / 16%),0 3px 6px rgb(0 0 0 / 23%);border-radius:10px;max-height:100%;transform:translateY(-50px);opacity:0.8;transition:all 0.25s}.wpsr-pp-head{text-align:center;padding:10px 0;position:relative;border-bottom:1px solid #dfdfdf}.wpsr-pp-head h3{margin:0!important;font-size:20px}.wpsr-pp-content{overflow-y:auto;padding:20px}.wpsr-pp-close{position:absolute;top:50%;right:10px;color:#333;transform:translateY(-50%);padding:10px}.wpsr-pp-close:hover{opacity:0.8}.wpsr-pp-foot{text-align:center;padding:10px 0;font-size:12px;color:#777;border-top:1px solid #dfdfdf}.wpsr-pp-foot a{color:#ff8226;text-decoration:none}.wpsr-pp-foot a:hover{color:#333;text-decoration:underline}#wpsr-share-menu .wpsr-pp-inner{max-width:700px}.wpsr-sm-links{display:flex;flex-wrap:wrap}.wpsr-sm-links > div{width:33.33%;padding:5px;box-sizing:border-box}.wpsr-sm-link{display:flex;color:#fff;border-radius:5px;padding:5px;font-size:15px;text-decoration:none;border-bottom:2px solid rgb(0 0 0 / 10%);text-shadow:0 1px 1px rgb(0 0 0 / 30%);background:linear-gradient(rgb(0 0 0 / 1%),rgb(0 0 0 / 5%))}.wpsr-sm-link:hover,.wpsr-sm-link:focus,.wpsr-sm-link:active{text-decoration:none;color:#fff;opacity:0.8}.wpsr-sm-icon{width:24px;margin:0 5px;display:flex;flex-direction:column;align-items:center;justify-content:center}.wpsr-sm-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#wpsr-short-link .wpsr-pp-inner{max-width:500px}#wpsr-short-link .wpsr-pp-content{display:flex;font-size:15px}#wpsr-short-link-url{flex:1;text-align:center}#wpsr-sl-copy-btn{background:#000;text-align:center;display:flex;flex-direction:column;justify-content:center;align-content:center;padding:5px 15px;color:#fff;border-radius:5px;margin-left:10px;text-decoration:none}#wpsr-sl-copy-btn:hover{text-decoration:none}@media screen and (max-width:700px){#wpsr-share-menu .wpsr-pp-inner,#wpsr-short-link .wpsr-pp-inner{max-width:100%}.wpsr-popup{border-radius:0}.wpsr-sm-links > div{width:50%}.wpsr-sm-link{padding:10px}}.socializer .sr-share-menu>a,.socializer .sr-share-menu>a:visited{background-color:#ff6500;color:#fff}.sr-share-menu a i{font-size:0.7em}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-hide{display:none}.wpsr-close{background:red}.sr-custom-html{line-height:1}.socializer .ctext:empty{display:none!important}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}
public/css/wpsr.min.css CHANGED
@@ -1,4 +1,4 @@
1
- .wp-socializer:after{clear:both;content:'';display:block}.wp-socializer.wpsr-share-icons{margin:1em 0}.wpsr-share-icons .wpsr-si-inner{display:flex}.wpsr-share-icons .wpsr-si-inner > *:first-child{margin-left:0}.wpsr-share-icons .wpsr-si-inner > *:last-child{margin-right:0}.wpsr-share-icons .socializer{margin:0 1em}.wpsr-share-icons.wpsr-flex-center{text-align:center}.wpsr-share-icons.wpsr-flex-center .wpsr-si-inner{justify-content:center}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.wpsr-sharebar .socializer{line-height:0}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:99999;max-width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-counter{margin-bottom:1.5em}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{bottom:0;left:0!important;right:0!important;margin:0!important;position:fixed;background:#fff;box-shadow:0 -2px 4px -2px rgba(0,0,0,0.5)}.wpsr-sb-hl .wpsr-sb-inner{display:flex}.wpsr-sb-hl .wpsr-counter{padding:0 1em}.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.wpsr-sb-hl{border-radius:0}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sb-close{position:absolute;cursor:pointer;display:none;padding:10px}.wpsr-sb-close .wpsr-bar-icon{opacity:0.2}.wpsr-sb-close:hover .wpsr-bar-icon{opacity:0.8}.wpsr-sb-vl .wpsr-sb-close{bottom:0;transform:translate(-50%,100%);left:50%}.wpsr-sb-hl .wpsr-sb-close{display:none}.wpsr-sharebar.wpsr-closed{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-sharebar.wpsr-closed .wpsr-sb-inner{display:none}.wpsr-sharebar.wpsr-closed .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;color:#000;display:flex;flex-direction:column;justify-content:center;flex-shrink:0}.wpsr-counter .scount{font-size:2em;font-weight:bold;margin-bottom:0.25em}.wpsr-counter .scount .fa{font-size:.7em;opacity:0.7}.wpsr-counter .stext{display:block;line-height:1em;color:inherit;text-transform:uppercase;font-size:1em;margin-top:-0.15em;opacity:0.5}.wpsr-counter.wpsrc-sz-40px{font-size:12.5px}.wpsr-counter.wpsrc-sz-48px{font-size:15px}.wpsr-counter.wpsrc-sz-64px{font-size:20px}.wpsr-sharebar .wpsr-counter{font-size:8.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-40px{font-size:9.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-48px{font-size:11.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-64px{font-size:15.2px}.socializer span a img{background:none!important;border:none!important;max-width:100%!important}.wpsr-follow-icons{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% )}.wpsr-follow-icons div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-follow-icons.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-follow-icons.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-follow-icons.sr-fb-vl .sr-fb-title{width:5em;text-align:center;line-height:1.5}.wpsr-fb-close{position:absolute;right:0;cursor:pointer;display:none;line-height:0;padding:1em;opacity:0.2}.wpsr-fb-close:hover{opacity:0.8}.wpsr-follow-icons:hover .wpsr-fb-close{display:block}.wpsr-closed.wpsr-follow-icons .sr-fb-title{display:none}.wpsr-closed.wpsr-follow-icons .sr-followbar{display:none}.wpsr-closed.wpsr-follow-icons .wpsr-fb-close{display:block}.sr-fb-bm .wpsr-fb-close,.sr-fb-bl .wpsr-fb-close{right:0;transform:translate(100%,-100%);padding-bottom:0}.sr-fb-vl.sr-fb-br .wpsr-fb-close{left:0;bottom:0;transform:translateX(-100%);padding-bottom:0}.sr-fb-hl.sr-fb-br .wpsr-fb-close{top:0;right:0;transform:translateY(-100%)}.sr-fb-hl.sr-fb-tr .wpsr-fb-close{padding-right:0}.wpsr-closed.sr-fb-tl .wpsr-fb-close,.wpsr-closed.sr-fb-lm .wpsr-fb-close{right:-24px;transform:translateY(0%)}.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));z-index:999}.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-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.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-bar-icon{line-height:0;background:#000;display:inline-block;padding:3px;border-radius:50%;vertical-align:middle;fill:#fff}.wpsr-bar-icon .i-open{display:none}.wpsr-closed .wpsr-bar-icon .i-close{display:none}.wpsr-closed .wpsr-bar-icon .i-open{display:block}.wpsr-closed .wpsr-bar-icon{padding:5px}.wpsr-bg{display:none;position:fixed;z-index:9999;top:0;left:0;right:0;bottom:0;background:rgb(0 0 0 / 20%);padding:0}.wpsr-bg.wpsr-pp-opened{display:block}.wpsr-bg.wpsr-pp-closed{display:none}.wpsr-bg.wpsr-pp-slide-down .wpsr-popup{transform:translateY(0);opacity:1}.wpsr-bg.wpsr-pp-slide-up .wpsr-popup{transform:translateY(-50px);opacity:0.8}.wpsr-pp-inner{margin:0 auto;display:flex;flex-direction:column;justify-content:center;height:100%}.wpsr-popup{display:none;background:#fff;display:flex;flex-wrap:nowrap;flex-direction:column;box-shadow:0 3px 6px rgb(0 0 0 / 16%),0 3px 6px rgb(0 0 0 / 23%);border-radius:10px;max-height:100%;transform:translateY(-50px);opacity:0.8;transition:all 0.25s}.wpsr-pp-head{text-align:center;padding:10px 0;position:relative;border-bottom:1px solid #dfdfdf}.wpsr-pp-head h3{margin:0!important;font-size:20px}.wpsr-pp-content{overflow-y:auto;padding:20px}.wpsr-pp-close{position:absolute;top:50%;right:10px;color:#333;transform:translateY(-50%);padding:10px}.wpsr-pp-close:hover{opacity:0.8}.wpsr-pp-foot{text-align:center;padding:10px 0;font-size:12px;color:#777;border-top:1px solid #dfdfdf}.wpsr-pp-foot a{color:#ff8226;text-decoration:none}.wpsr-pp-foot a:hover{color:#333;text-decoration:underline}#wpsr-share-menu .wpsr-pp-inner{max-width:700px}.wpsr-sm-links{display:flex;flex-wrap:wrap}.wpsr-sm-links > div{width:33.33%;padding:5px}.wpsr-sm-link{display:flex;color:#fff;border-radius:5px;padding:5px;font-size:15px;text-decoration:none;border-bottom:2px solid rgb(0 0 0 / 10%);text-shadow:0 1px 1px rgb(0 0 0 / 30%);background:linear-gradient(rgb(0 0 0 / 1%),rgb(0 0 0 / 5%))}.wpsr-sm-link:hover,.wpsr-sm-link:focus,.wpsr-sm-link:active{text-decoration:none;color:#fff;opacity:0.8}.wpsr-sm-icon{width:24px;margin:0 5px;display:flex;flex-direction:column;align-items:center;justify-content:center}.wpsr-sm-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#wpsr-short-link .wpsr-pp-inner{max-width:500px}#wpsr-short-link .wpsr-pp-content{display:flex;font-size:15px}#wpsr-short-link-url{flex:1;text-align:center}#wpsr-sl-copy-btn{background:#000;text-align:center;display:flex;flex-direction:column;justify-content:center;align-content:center;padding:5px 15px;color:#fff;border-radius:5px;margin-left:10px;text-decoration:none}#wpsr-sl-copy-btn:hover{text-decoration:none}@media screen and (max-width:700px){#wpsr-share-menu .wpsr-pp-inner,#wpsr-short-link .wpsr-pp-inner{max-width:100%}.wpsr-popup{border-radius:0}.wpsr-sm-links > div{width:50%}.wpsr-sm-link{padding:10px}}.socializer .sr-share-menu>a,.socializer .sr-share-menu>a:visited{background-color:#ff6500;color:#fff}.sr-share-menu a i{font-size:0.7em}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-hide{display:none}.wpsr-close{background:red}.sr-custom-html{line-height:1}.socializer .ctext:empty{display:none!important}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}
2
  /*!
3
  * Socializer - CSS library for social media buttons
4
  * Copyright (c) 2021 Aakash Chakravarthy - www.aakashweb.com
1
+ .wp-socializer:after{clear:both;content:'';display:block}.wp-socializer.wpsr-share-icons{margin:1em 0}.wpsr-share-icons .wpsr-si-inner{display:flex}.wpsr-share-icons .wpsr-si-inner > *:first-child{margin-left:0}.wpsr-share-icons .wpsr-si-inner > *:last-child{margin-right:0}.wpsr-share-icons .socializer{margin:0 1em}.wpsr-share-icons.wpsr-flex-center{text-align:center}.wpsr-share-icons.wpsr-flex-center .wpsr-si-inner{justify-content:center}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.wpsr-sharebar .socializer{line-height:0}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:99999;max-width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-counter{margin-bottom:1.5em}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{bottom:0;left:0!important;right:0!important;margin:0!important;position:fixed;background:#fff;box-shadow:0 -2px 4px -2px rgba(0,0,0,0.5)}.wpsr-sb-hl .wpsr-sb-inner{display:flex}.wpsr-sb-hl .wpsr-counter{padding:0 1em}.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.wpsr-sb-hl{border-radius:0}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sb-close{position:absolute;cursor:pointer;display:none;padding:10px}.wpsr-sb-close .wpsr-bar-icon{opacity:0.2}.wpsr-sb-close:hover .wpsr-bar-icon{opacity:0.8}.wpsr-sb-vl .wpsr-sb-close{bottom:0;transform:translate(-50%,100%);left:50%}.wpsr-sb-hl .wpsr-sb-close{display:none}.wpsr-sharebar.wpsr-closed{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-sharebar.wpsr-closed .wpsr-sb-inner{display:none}.wpsr-sharebar.wpsr-closed .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;color:#000;display:flex;flex-direction:column;justify-content:center;flex-shrink:0}.wpsr-counter .scount{font-size:2em;font-weight:bold;margin-bottom:0.25em}.wpsr-counter .scount .fa{font-size:.7em;opacity:0.7}.wpsr-counter .stext{display:block;line-height:1em;color:inherit;text-transform:uppercase;font-size:1em;margin-top:-0.15em;opacity:0.5}.wpsr-counter.wpsrc-sz-40px{font-size:12.5px}.wpsr-counter.wpsrc-sz-48px{font-size:15px}.wpsr-counter.wpsrc-sz-64px{font-size:20px}.wpsr-sharebar .wpsr-counter{font-size:8.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-40px{font-size:9.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-48px{font-size:11.5px}.wpsr-sharebar .wpsr-counter.wpsrc-sz-64px{font-size:15.2px}.socializer span a img{background:none!important;border:none!important;max-width:100%!important}.wpsr-follow-icons{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% )}.wpsr-follow-icons div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-follow-icons.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-follow-icons.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-follow-icons.sr-fb-vl .sr-fb-title{width:5em;text-align:center;line-height:1.5}.wpsr-fb-close{position:absolute;right:0;cursor:pointer;display:none;line-height:0;padding:1em;opacity:0.2}.wpsr-fb-close:hover{opacity:0.8}.wpsr-follow-icons:hover .wpsr-fb-close{display:block}.wpsr-closed.wpsr-follow-icons .sr-fb-title{display:none}.wpsr-closed.wpsr-follow-icons .sr-followbar{display:none}.wpsr-closed.wpsr-follow-icons .wpsr-fb-close{display:block}.sr-fb-bm .wpsr-fb-close,.sr-fb-bl .wpsr-fb-close{right:0;transform:translate(100%,-100%);padding-bottom:0}.sr-fb-vl.sr-fb-br .wpsr-fb-close{left:0;bottom:0;transform:translateX(-100%);padding-bottom:0}.sr-fb-hl.sr-fb-br .wpsr-fb-close{top:0;right:0;transform:translateY(-100%)}.sr-fb-hl.sr-fb-tr .wpsr-fb-close{padding-right:0}.wpsr-closed.sr-fb-tl .wpsr-fb-close,.wpsr-closed.sr-fb-lm .wpsr-fb-close{right:-24px;transform:translateY(0%)}.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));z-index:999}.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-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.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-bar-icon{line-height:0;background:#000;display:inline-block;padding:3px;border-radius:50%;vertical-align:middle;fill:#fff}.wpsr-bar-icon .i-open{display:none}.wpsr-closed .wpsr-bar-icon .i-close{display:none}.wpsr-closed .wpsr-bar-icon .i-open{display:block}.wpsr-closed .wpsr-bar-icon{padding:5px}.wpsr-bg{display:none;position:fixed;z-index:9999;top:0;left:0;right:0;bottom:0;background:rgb(0 0 0 / 20%);padding:0}.wpsr-bg.wpsr-pp-opened{display:block}.wpsr-bg.wpsr-pp-closed{display:none}.wpsr-bg.wpsr-pp-slide-down .wpsr-popup{transform:translateY(0);opacity:1}.wpsr-bg.wpsr-pp-slide-up .wpsr-popup{transform:translateY(-50px);opacity:0.8}.wpsr-pp-inner{margin:0 auto;display:flex;flex-direction:column;justify-content:center;height:100%}.wpsr-popup{display:none;background:#fff;display:flex;flex-wrap:nowrap;flex-direction:column;box-shadow:0 3px 6px rgb(0 0 0 / 16%),0 3px 6px rgb(0 0 0 / 23%);border-radius:10px;max-height:100%;transform:translateY(-50px);opacity:0.8;transition:all 0.25s}.wpsr-pp-head{text-align:center;padding:10px 0;position:relative;border-bottom:1px solid #dfdfdf}.wpsr-pp-head h3{margin:0!important;font-size:20px}.wpsr-pp-content{overflow-y:auto;padding:20px}.wpsr-pp-close{position:absolute;top:50%;right:10px;color:#333;transform:translateY(-50%);padding:10px}.wpsr-pp-close:hover{opacity:0.8}.wpsr-pp-foot{text-align:center;padding:10px 0;font-size:12px;color:#777;border-top:1px solid #dfdfdf}.wpsr-pp-foot a{color:#ff8226;text-decoration:none}.wpsr-pp-foot a:hover{color:#333;text-decoration:underline}#wpsr-share-menu .wpsr-pp-inner{max-width:700px}.wpsr-sm-links{display:flex;flex-wrap:wrap}.wpsr-sm-links > div{width:33.33%;padding:5px;box-sizing:border-box}.wpsr-sm-link{display:flex;color:#fff;border-radius:5px;padding:5px;font-size:15px;text-decoration:none;border-bottom:2px solid rgb(0 0 0 / 10%);text-shadow:0 1px 1px rgb(0 0 0 / 30%);background:linear-gradient(rgb(0 0 0 / 1%),rgb(0 0 0 / 5%))}.wpsr-sm-link:hover,.wpsr-sm-link:focus,.wpsr-sm-link:active{text-decoration:none;color:#fff;opacity:0.8}.wpsr-sm-icon{width:24px;margin:0 5px;display:flex;flex-direction:column;align-items:center;justify-content:center}.wpsr-sm-text{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#wpsr-short-link .wpsr-pp-inner{max-width:500px}#wpsr-short-link .wpsr-pp-content{display:flex;font-size:15px}#wpsr-short-link-url{flex:1;text-align:center}#wpsr-sl-copy-btn{background:#000;text-align:center;display:flex;flex-direction:column;justify-content:center;align-content:center;padding:5px 15px;color:#fff;border-radius:5px;margin-left:10px;text-decoration:none}#wpsr-sl-copy-btn:hover{text-decoration:none}@media screen and (max-width:700px){#wpsr-share-menu .wpsr-pp-inner,#wpsr-short-link .wpsr-pp-inner{max-width:100%}.wpsr-popup{border-radius:0}.wpsr-sm-links > div{width:50%}.wpsr-sm-link{padding:10px}}.socializer .sr-share-menu>a,.socializer .sr-share-menu>a:visited{background-color:#ff6500;color:#fff}.sr-share-menu a i{font-size:0.7em}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-hide{display:none}.wpsr-close{background:red}.sr-custom-html{line-height:1}.socializer .ctext:empty{display:none!important}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}
2
  /*!
3
  * Socializer - CSS library for social media buttons
4
  * Copyright (c) 2021 Aakash Chakravarthy - www.aakashweb.com
public/js/wp-socializer.js CHANGED
@@ -483,11 +483,11 @@ document.addEventListener( 'DOMContentLoaded', function(){
483
  }
484
  },
485
  process_link: function(link){
486
- var pattern = /(?<=\{).+?(?=\})/g;
487
  var current;
488
  while(current = pattern.exec(link)){
489
- var param_val = this.get_param(current);
490
- link = link.replaceAll('{' + current + '}', encodeURI(param_val));
491
  }
492
  return link;
493
  }
483
  }
484
  },
485
  process_link: function(link){
486
+ var pattern = /\{(.+?)\}/g;
487
  var current;
488
  while(current = pattern.exec(link)){
489
+ var param_val = this.get_param(current[1]);
490
+ link = link.replaceAll('{' + current[1] + '}', encodeURI(param_val));
491
  }
492
  return link;
493
  }
public/js/wp-socializer.min.js CHANGED
@@ -1 +1 @@
1
- function socializer_addbookmark(e){var t=navigator.userAgent.toLowerCase(),s=-1!=t.indexOf("mac"),r="";e.preventDefault(),r=(s?"Command/Cmd":"CTRL")+" + D",alert("Press "+r+" to bookmark this page")}function socializer_shortlink(e,t,s){"function"==typeof e.preventDefault&&e.preventDefault();var r=t?t.getAttribute("href"):s;wpsr_helpers.open_popup("wpsr-short-link"),document.getElementById("wpsr-short-link-url").value=r}window.wpsr_helpers={addClass:function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},popup_window:function(e,t,s,r){var n=screen.width/2-s/2,a=screen.height/2-r/2;return window.open(e,t,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+a+",left="+n)},offset:function(e){var t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},ajax:function(e,t,s,r,n){var a=new XMLHttpRequest;a.props=n,a.open(t,e,!0),"POST"==t&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.onreadystatechange=function(){if(4==a.readyState&&200==a.status)return r(a)},a.send(s)},format_num:function(e){if(e<1e3)return e;for(var t=["k","m","b","t"],s=e,r=0;r<t.length;r++)if(!((e/=1e3)>1e3)){s=Math.round(100*e)/100+t[r];break}return s},is_mobile:function(){return/Mobi|Android/i.test(navigator.userAgent)},open_popup:function(e){var t=document.getElementById(e);if(t){var s=this;this.removeClass(t,"wpsr-pp-closed"),this.addClass(t,"wpsr-pp-opened"),this.removeClass(t,"wpsr-pp-slide-up"),setTimeout(function(){s.addClass(t,"wpsr-pp-slide-down")},10)}},close_popup:function(e){var t=document.getElementById(e);if(t){var s=this;this.removeClass(t,"wpsr-pp-slide-down"),this.addClass(t,"wpsr-pp-slide-up"),setTimeout(function(){s.removeClass(t,"wpsr-pp-opened"),s.addClass(t,"wpsr-pp-closed")},250)}},copy:function(e){var t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}},document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".socializer.sr-popup a");for(f=0;f<e.length;f++){var t=e[f];t.addEventListener("click",function(e){var t=this.getAttribute("href");"#"==t||this.hasAttribute("onclick")||null==t||wpsr_helpers.popup_window(t,"_blank",800,500),e.preventDefault()})}if(wpsr_helpers.is_mobile()){var s=document.querySelectorAll(".socializer a[data-mobile]");for(f=0;f<s.length;f++){var t=s[f],r=t.getAttribute("data-mobile");t.setAttribute("href",r)}}var n=document.querySelector(".wpsr-sharebar");if(n){var a=n.querySelector(".socializer");n.sm_action_call=function(e){wpsr_helpers.removeClass(this,"wpsr-sb-vl"),wpsr_helpers.addClass(this,"wpsr-sb-hl"),wpsr_helpers.removeClass(a,"sr-vertical"),wpsr_helpers.addClass(a,"sr-horizontal"),wpsr_helpers.addClass(a,"sr-fluid")},n.lg_action_call=function(){wpsr_helpers.addClass(this,"wpsr-sb-vl"),wpsr_helpers.removeClass(this,"wpsr-sb-hl"),wpsr_helpers.addClass(a,"sr-vertical"),wpsr_helpers.removeClass(a,"sr-horizontal"),wpsr_helpers.removeClass(a,"sr-fluid")};var o=function(){stick_sb=document.querySelector(".wpsr-sb-vl-scontent"),stick_sb&&(stick=stick_sb.getAttribute("data-stick-to"),stick_ele=document.querySelector(stick),stick_ele&&(stick_offset=wpsr_helpers.offset(stick_ele),stick_sb.style.left=stick_offset.left+"px"))};o(),window.addEventListener("resize",o)}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0};var i={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")},l=function(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(e=document.selection.createRange().text),e},p=function(e,t){tsb.style.left=e+"px",tsb.style.top=t+"px",wpsr_helpers.addClass(tsb,"wpsr-tsb-active")},c=function(){wpsr_helpers.removeClass(tsb,"wpsr-tsb-active")},d=function(){var e=wpsr_tsb.stext,t=parseInt(i.word_count);return e=e.replace(/[^\x00-\x7F]/g,""),0==t?e:e.split(" ").slice(0,t).join(" ")},u=function(e){var t={"{title}":escape(i.ptitle),"{url}":i.purl,"{s-url}":i.psurl,"{twitter-username}":i.ptuname,"{excerpt}":escape(d())};for(var s in t)t.hasOwnProperty(s)&&(e=e.replace(RegExp(s,"g"),t[s]));return e};if(""!=i.cnt_sel)for(var h=i.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),w=document.querySelectorAll(h),f=0;f<w.length;f++){var v=w[f];v.addEventListener("mousedown",function(e){wpsr_tsb.startx=e.pageX,wpsr_tsb.starty=e.pageY}),v.addEventListener("mouseup",function(e){var t=l();""!=t?(tsb_x=(e.pageX+parseInt(wpsr_tsb.startx))/2,tsb_y=Math.min(wpsr_tsb.starty,e.pageY),t!=wpsr_tsb.stext?(p(tsb_x,tsb_y),wpsr_tsb.stext=t):c()):c()})}document.body.addEventListener("mousedown",function(e){c()}),tsb.addEventListener("mousedown",function(e){e.stopPropagation()});for(var _=tsb.querySelectorAll("a"),f=0;f<_.length;f++){_[f].addEventListener("click",function(e){var t=this.getAttribute("data-link");"#"!=t&&(rep_link=u(t),wpsr_helpers.popup_window(rep_link,"_blank",800,500)),e.preventDefault()})}}var m=document.querySelectorAll(".wp-socializer");m.length>0&&["resize","load"].forEach(function(e){window.addEventListener(e,function(){for(var e=0;e<m.length;e++){var t=m[e],s=t.getAttribute("data-lg-action"),r=t.getAttribute("data-sm-action"),n=t.getAttribute("data-sm-width"),a=window.innerWidth<=n?r:s;"close"==a?wpsr_helpers.addClass(t,"wpsr-closed"):wpsr_helpers.removeClass(t,"wpsr-closed"),"hide"==a?wpsr_helpers.addClass(t,"wpsr-hide"):wpsr_helpers.removeClass(t,"wpsr-hide"),"function"==typeof t.sm_action_call&&a==r&&t.sm_action_call(),"function"==typeof t.lg_action_call&&a==s&&t.lg_action_call()}})});var b=document.querySelectorAll(".wpsr-close-btn");if(b.length>0)for(f=0;f<b.length;f++){var g=b[f];g.addEventListener("click",function(){var e=this.parentNode;e.classList.contains("wpsr-closed")?wpsr_helpers.removeClass(e,"wpsr-closed"):wpsr_helpers.addClass(e,"wpsr-closed")})}if("undefined"!=typeof wp_socializer){var y=document.querySelectorAll("[data-wpsrs]");if(y.length>0){var A={},k=wp_socializer.ajax_url+"?action=wpsr_share_count";for(f=0;f<y.length;f++){var C=y[f],x=C.getAttribute("data-wpsrs"),L=C.getAttribute("data-wpsrs-svcs").split(",");x in A||(A[x]=[]);for(j=0;j<L.length;j++)-1===A[x].indexOf(L[j])&&A[x].push(L[j])}var S=function(e){var t=JSON.parse(e.responseText),s=document.querySelectorAll('[data-wpsrs="'+e.props.forURL+'"]');for(f=0;f<s.length;f++){var r=s[f],n=r.getAttribute("data-wpsrs-svcs").split(","),a=0;for(j=0;j<n.length;j++){var o=n[j];o in t&&(a+=parseInt(t[o])||0)}a>0&&(r.innerHTML=wpsr_helpers.format_num(a))}};for(var x in A)A.hasOwnProperty(x)&&(send_data={url:x,services:A[x]},to_send="data="+JSON.stringify(send_data),wpsr_helpers.ajax(k,"POST",to_send,S,{forURL:x}))}}var E=document.querySelectorAll(".wpsr-pp-close");if(E.length>0)for(f=0;f<E.length;f++){var q=E[f];q.addEventListener("click",function(e){e.preventDefault();var t=this.getAttribute("data-id");wpsr_helpers.close_popup(t)})}window.wpsr_share_menu={set_data:function(e){try{this.data=JSON.parse(e)}catch(e){this.data={},console.log(e)}},get_param:function(e){var t={url:document.location.href,title:document.title,"short-url":document.location.href};return this.data=void 0===this.data?t:this.data,e in this.data?this.data[e]:e in t?t[e]:""},process_link:function(e){for(var t,s=/(?<=\{).+?(?=\})/g;t=s.exec(e);){var r=this.get_param(t);e=e.replaceAll("{"+t+"}",encodeURI(r))}return e}};var z=document.querySelectorAll(".sr-share-menu a");if(z.length>0)for(f=0;f<z.length;f++){var T=z[f];T.addEventListener("click",function(){var e=this.getAttribute("data-metadata");wpsr_share_menu.set_data(e),wpsr_helpers.open_popup("wpsr-share-menu")})}var O=document.querySelectorAll(".wpsr-sm-link");if(O.length>0)for(f=0;f<O.length;f++){var D=O[f];D.addEventListener("click",function(e){e.preventDefault();var t=wpsr_helpers.is_mobile()&&this.getAttribute("data-m")?this.getAttribute("data-m"):this.getAttribute("data-d"),s=wpsr_share_menu.process_link(atob(t));if(this.classList.contains("wpsr-sml-shortlink"))return void socializer_shortlink(e,!1,s);0==s.indexOf("http")?wpsr_helpers.popup_window(s,"_blank",800,500):window.location.href=s})}var R=document.getElementById("wpsr-sl-copy-btn");R&&R.addEventListener("click",function(e){e.preventDefault(),wpsr_helpers.copy(document.getElementById("wpsr-short-link-url").value),this.innerText=this.getAttribute("data-d");var t=this;setTimeout(function(){t.innerText=t.getAttribute("data-c")},3e3)})});
1
+ function socializer_addbookmark(e){var t=navigator.userAgent.toLowerCase(),s=-1!=t.indexOf("mac"),r="";e.preventDefault(),r=(s?"Command/Cmd":"CTRL")+" + D",alert("Press "+r+" to bookmark this page")}function socializer_shortlink(e,t,s){"function"==typeof e.preventDefault&&e.preventDefault();var r=t?t.getAttribute("href"):s;wpsr_helpers.open_popup("wpsr-short-link"),document.getElementById("wpsr-short-link-url").value=r}window.wpsr_helpers={addClass:function(e,t){e.classList?e.classList.add(t):e.className+=" "+t},removeClass:function(e,t){e.classList?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")},popup_window:function(e,t,s,r){var n=screen.width/2-s/2,a=screen.height/2-r/2;return window.open(e,t,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+a+",left="+n)},offset:function(e){var t=e.getBoundingClientRect();return{top:t.top+document.body.scrollTop,left:t.left+document.body.scrollLeft}},ajax:function(e,t,s,r,n){var a=new XMLHttpRequest;a.props=n,a.open(t,e,!0),"POST"==t&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.onreadystatechange=function(){if(4==a.readyState&&200==a.status)return r(a)},a.send(s)},format_num:function(e){if(e<1e3)return e;for(var t=["k","m","b","t"],s=e,r=0;r<t.length;r++)if(!((e/=1e3)>1e3)){s=Math.round(100*e)/100+t[r];break}return s},is_mobile:function(){return/Mobi|Android/i.test(navigator.userAgent)},open_popup:function(e){var t=document.getElementById(e);if(t){var s=this;this.removeClass(t,"wpsr-pp-closed"),this.addClass(t,"wpsr-pp-opened"),this.removeClass(t,"wpsr-pp-slide-up"),setTimeout(function(){s.addClass(t,"wpsr-pp-slide-down")},10)}},close_popup:function(e){var t=document.getElementById(e);if(t){var s=this;this.removeClass(t,"wpsr-pp-slide-down"),this.addClass(t,"wpsr-pp-slide-up"),setTimeout(function(){s.removeClass(t,"wpsr-pp-opened"),s.addClass(t,"wpsr-pp-closed")},250)}},copy:function(e){var t=document.createElement("textarea");t.value=e,t.setAttribute("readonly",""),t.style.position="absolute",t.style.left="-9999px",document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}},document.addEventListener("DOMContentLoaded",function(){var e=document.querySelectorAll(".socializer.sr-popup a");for(f=0;f<e.length;f++){var t=e[f];t.addEventListener("click",function(e){var t=this.getAttribute("href");"#"==t||this.hasAttribute("onclick")||null==t||wpsr_helpers.popup_window(t,"_blank",800,500),e.preventDefault()})}if(wpsr_helpers.is_mobile()){var s=document.querySelectorAll(".socializer a[data-mobile]");for(f=0;f<s.length;f++){var t=s[f],r=t.getAttribute("data-mobile");t.setAttribute("href",r)}}var n=document.querySelector(".wpsr-sharebar");if(n){var a=n.querySelector(".socializer");n.sm_action_call=function(e){wpsr_helpers.removeClass(this,"wpsr-sb-vl"),wpsr_helpers.addClass(this,"wpsr-sb-hl"),wpsr_helpers.removeClass(a,"sr-vertical"),wpsr_helpers.addClass(a,"sr-horizontal"),wpsr_helpers.addClass(a,"sr-fluid")},n.lg_action_call=function(){wpsr_helpers.addClass(this,"wpsr-sb-vl"),wpsr_helpers.removeClass(this,"wpsr-sb-hl"),wpsr_helpers.addClass(a,"sr-vertical"),wpsr_helpers.removeClass(a,"sr-horizontal"),wpsr_helpers.removeClass(a,"sr-fluid")};var o=function(){stick_sb=document.querySelector(".wpsr-sb-vl-scontent"),stick_sb&&(stick=stick_sb.getAttribute("data-stick-to"),stick_ele=document.querySelector(stick),stick_ele&&(stick_offset=wpsr_helpers.offset(stick_ele),stick_sb.style.left=stick_offset.left+"px"))};o(),window.addEventListener("resize",o)}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0};var i={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")},l=function(){var e="";return window.getSelection?e=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(e=document.selection.createRange().text),e},p=function(e,t){tsb.style.left=e+"px",tsb.style.top=t+"px",wpsr_helpers.addClass(tsb,"wpsr-tsb-active")},c=function(){wpsr_helpers.removeClass(tsb,"wpsr-tsb-active")},d=function(){var e=wpsr_tsb.stext,t=parseInt(i.word_count);return e=e.replace(/[^\x00-\x7F]/g,""),0==t?e:e.split(" ").slice(0,t).join(" ")},u=function(e){var t={"{title}":escape(i.ptitle),"{url}":i.purl,"{s-url}":i.psurl,"{twitter-username}":i.ptuname,"{excerpt}":escape(d())};for(var s in t)t.hasOwnProperty(s)&&(e=e.replace(RegExp(s,"g"),t[s]));return e};if(""!=i.cnt_sel)for(var h=i.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),w=document.querySelectorAll(h),f=0;f<w.length;f++){var v=w[f];v.addEventListener("mousedown",function(e){wpsr_tsb.startx=e.pageX,wpsr_tsb.starty=e.pageY}),v.addEventListener("mouseup",function(e){var t=l();""!=t?(tsb_x=(e.pageX+parseInt(wpsr_tsb.startx))/2,tsb_y=Math.min(wpsr_tsb.starty,e.pageY),t!=wpsr_tsb.stext?(p(tsb_x,tsb_y),wpsr_tsb.stext=t):c()):c()})}document.body.addEventListener("mousedown",function(e){c()}),tsb.addEventListener("mousedown",function(e){e.stopPropagation()});for(var _=tsb.querySelectorAll("a"),f=0;f<_.length;f++){_[f].addEventListener("click",function(e){var t=this.getAttribute("data-link");"#"!=t&&(rep_link=u(t),wpsr_helpers.popup_window(rep_link,"_blank",800,500)),e.preventDefault()})}}var m=document.querySelectorAll(".wp-socializer");m.length>0&&["resize","load"].forEach(function(e){window.addEventListener(e,function(){for(var e=0;e<m.length;e++){var t=m[e],s=t.getAttribute("data-lg-action"),r=t.getAttribute("data-sm-action"),n=t.getAttribute("data-sm-width"),a=window.innerWidth<=n?r:s;"close"==a?wpsr_helpers.addClass(t,"wpsr-closed"):wpsr_helpers.removeClass(t,"wpsr-closed"),"hide"==a?wpsr_helpers.addClass(t,"wpsr-hide"):wpsr_helpers.removeClass(t,"wpsr-hide"),"function"==typeof t.sm_action_call&&a==r&&t.sm_action_call(),"function"==typeof t.lg_action_call&&a==s&&t.lg_action_call()}})});var b=document.querySelectorAll(".wpsr-close-btn");if(b.length>0)for(f=0;f<b.length;f++){var g=b[f];g.addEventListener("click",function(){var e=this.parentNode;e.classList.contains("wpsr-closed")?wpsr_helpers.removeClass(e,"wpsr-closed"):wpsr_helpers.addClass(e,"wpsr-closed")})}if("undefined"!=typeof wp_socializer){var y=document.querySelectorAll("[data-wpsrs]");if(y.length>0){var A={},k=wp_socializer.ajax_url+"?action=wpsr_share_count";for(f=0;f<y.length;f++){var C=y[f],x=C.getAttribute("data-wpsrs"),L=C.getAttribute("data-wpsrs-svcs").split(",");x in A||(A[x]=[]);for(j=0;j<L.length;j++)-1===A[x].indexOf(L[j])&&A[x].push(L[j])}var S=function(e){var t=JSON.parse(e.responseText),s=document.querySelectorAll('[data-wpsrs="'+e.props.forURL+'"]');for(f=0;f<s.length;f++){var r=s[f],n=r.getAttribute("data-wpsrs-svcs").split(","),a=0;for(j=0;j<n.length;j++){var o=n[j];o in t&&(a+=parseInt(t[o])||0)}a>0&&(r.innerHTML=wpsr_helpers.format_num(a))}};for(var x in A)A.hasOwnProperty(x)&&(send_data={url:x,services:A[x]},to_send="data="+JSON.stringify(send_data),wpsr_helpers.ajax(k,"POST",to_send,S,{forURL:x}))}}var E=document.querySelectorAll(".wpsr-pp-close");if(E.length>0)for(f=0;f<E.length;f++){var q=E[f];q.addEventListener("click",function(e){e.preventDefault();var t=this.getAttribute("data-id");wpsr_helpers.close_popup(t)})}window.wpsr_share_menu={set_data:function(e){try{this.data=JSON.parse(e)}catch(e){this.data={},console.log(e)}},get_param:function(e){var t={url:document.location.href,title:document.title,"short-url":document.location.href};return this.data=void 0===this.data?t:this.data,e in this.data?this.data[e]:e in t?t[e]:""},process_link:function(e){for(var t,s=/\{(.+?)\}/g;t=s.exec(e);){var r=this.get_param(t[1]);e=e.replaceAll("{"+t[1]+"}",encodeURI(r))}return e}};var z=document.querySelectorAll(".sr-share-menu a");if(z.length>0)for(f=0;f<z.length;f++){var T=z[f];T.addEventListener("click",function(){var e=this.getAttribute("data-metadata");wpsr_share_menu.set_data(e),wpsr_helpers.open_popup("wpsr-share-menu")})}var O=document.querySelectorAll(".wpsr-sm-link");if(O.length>0)for(f=0;f<O.length;f++){var D=O[f];D.addEventListener("click",function(e){e.preventDefault();var t=wpsr_helpers.is_mobile()&&this.getAttribute("data-m")?this.getAttribute("data-m"):this.getAttribute("data-d"),s=wpsr_share_menu.process_link(atob(t));if(this.classList.contains("wpsr-sml-shortlink"))return void socializer_shortlink(e,!1,s);0==s.indexOf("http")?wpsr_helpers.popup_window(s,"_blank",800,500):window.location.href=s})}var R=document.getElementById("wpsr-sl-copy-btn");R&&R.addEventListener("click",function(e){e.preventDefault(),wpsr_helpers.copy(document.getElementById("wpsr-short-link-url").value),this.innerText=this.getAttribute("data-d");var t=this;setTimeout(function(){t.innerText=t.getAttribute("data-c")},3e3)})});
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: vaakash
3
  Donate link: https://www.paypal.me/vaakash/6
4
  Tags: social media, share, buttons, social sharing, share buttons, social profile, social widget, icons, sharing icons, sharing buttons, social share, sharing, shortcode, widget, twitter tweets, facebook page, share count, whatsapp icon, whatsapp button, instagram icon, sticky share, floating share bar
5
  Requires at least: 4.6
6
- Tested up to: 5.8.1
7
- Stable tag: 7.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Requires PHP: 5.3
@@ -216,6 +216,11 @@ Please refer [this page](https://www.aakashweb.com/docs/wp-socializer/) for the
216
 
217
  ## Changelog
218
 
 
 
 
 
 
219
  ### 7.0
220
  * New: Share menu popup which lists all the share icons to share.
221
  * New: SMS share icon.
3
  Donate link: https://www.paypal.me/vaakash/6
4
  Tags: social media, share, buttons, social sharing, share buttons, social profile, social widget, icons, sharing icons, sharing buttons, social share, sharing, shortcode, widget, twitter tweets, facebook page, share count, whatsapp icon, whatsapp button, instagram icon, sticky share, floating share bar
5
  Requires at least: 4.6
6
+ Tested up to: 5.8.2
7
+ Stable tag: 7.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Requires PHP: 5.3
216
 
217
  ## Changelog
218
 
219
+ ### 7.1
220
+ * New: Share menu and short link popup HTML will be inserted in the page only when they are needed.
221
+ * Fix: JS syntax error in Safari browser.
222
+ * Fix: Share menu column issue in some themes.
223
+
224
  ### 7.0
225
  * New: Share menu popup which lists all the share icons to share.
226
  * New: SMS share icon.
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: Add various social media sharing features to posts/pages/widgets like social media share icons, floating/sticky share bar, follow my profile icons and more.
6
- * Version: 7.0
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', '7.0' );
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: Add various social media sharing features to posts/pages/widgets like social media share icons, floating/sticky share bar, follow my profile icons and more.
6
+ * Version: 7.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', '7.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' ) );