WP Socializer - Version 7.2

Version Description

Download this release

Release Info

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

Code changes from version 7.1 to 7.2

admin/admin.php CHANGED
@@ -451,7 +451,7 @@ class WPSR_Admin{
451
  echo '<p>Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.</p>';
452
 
453
  echo '<form class="subscribe_form" action="https://aakashweb.us19.list-manage.com/subscribe/post?u=b7023581458d048107298247e&amp;id=ef5ab3c5c4" method="post" name="mc-embedded-subscribe-form" target="_blank" novalidate>
454
- <input type="email" value="' . get_option( 'admin_email' ) . '" name="EMAIL" class="required subscribe_email_box" id="mce-EMAIL" placeholder="Your email address">
455
  <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_b7023581458d048107298247e_ef5ab3c5c4" tabindex="-1" value=""></div>
456
  <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button subscribe_btn">
457
  </form>';
451
  echo '<p>Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.</p>';
452
 
453
  echo '<form class="subscribe_form" action="https://aakashweb.us19.list-manage.com/subscribe/post?u=b7023581458d048107298247e&amp;id=ef5ab3c5c4" method="post" name="mc-embedded-subscribe-form" target="_blank" novalidate>
454
+ <input type="text" value="' . get_option( 'admin_email' ) . '" name="EMAIL" class="required subscribe_email_box" id="mce-EMAIL" placeholder="Your email address">
455
  <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_b7023581458d048107298247e_ef5ab3c5c4" tabindex="-1" value=""></div>
456
  <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button subscribe_btn">
457
  </form>';
admin/pages/general-settings.php CHANGED
@@ -97,6 +97,14 @@ class WPSR_Admin_Settings{
97
  ));
98
  $form->end();
99
 
 
 
 
 
 
 
 
 
100
  $form->build();
101
  $form->section_end();
102
 
97
  ));
98
  $form->end();
99
 
100
+ $form->label( __( 'Comments section ID', 'wpsr' ) );
101
+ $form->field( 'text', array(
102
+ 'name' => 'comments_section',
103
+ 'value' => $values[ 'comments_section' ],
104
+ 'helper' => __( 'The ID of the comments section. This is used by the comments button to navigate.', 'wpsr' )
105
+ ));
106
+ $form->end();
107
+
108
  $form->build();
109
  $form->section_end();
110
 
core/lists.php CHANGED
@@ -148,9 +148,9 @@ class WPSR_Lists{
148
  'name' => 'Comments',
149
  'title' => __('', 'wpsr') . 'Comments',
150
  'icon' => array('fa4'=> 'fa fa-comment', 'fa5' => 'fa fa-comments'),
151
- 'link' => '#{comments-section}',
152
- 'options' => array(),
153
- 'features' => array( 'internal', 'for_tsb' ),
154
  'colors' => array( '#333' ),
155
  ),
156
 
@@ -623,7 +623,7 @@ class WPSR_Lists{
623
  'name' => 'wechat',
624
  'title' => __('', 'wpsr') . 'WeChat',
625
  'icon' => array('fa4'=> 'fa fa-wechat', 'fa5' => 'fab fa-weixin'),
626
- 'link' => 'weixin://dl/chat?text={url}',
627
  'options' => array(),
628
  'features' => array( 'mobile_only', 'for_share', 'for_profile' ),
629
  'colors' => array( '#7BB32E' ),
148
  'name' => 'Comments',
149
  'title' => __('', 'wpsr') . 'Comments',
150
  'icon' => array('fa4'=> 'fa fa-comment', 'fa5' => 'fa fa-comments'),
151
+ 'link' => '{raw-url}#{comments-section}',
152
+ 'options' => array( 'count' ),
153
+ 'features' => array( 'for_share', 'internal', 'for_tsb' ),
154
  'colors' => array( '#333' ),
155
  ),
156
 
623
  'name' => 'wechat',
624
  'title' => __('', 'wpsr') . 'WeChat',
625
  'icon' => array('fa4'=> 'fa fa-wechat', 'fa5' => 'fab fa-weixin'),
626
+ 'link' => 'https://www.addtoany.com/ext/wechat/share/#url={url}&title={title}',
627
  'options' => array(),
628
  'features' => array( 'mobile_only', 'for_share', 'for_profile' ),
629
  'colors' => array( '#7BB32E' ),
core/metadata.php CHANGED
@@ -17,7 +17,6 @@ class WPSR_Metadata{
17
  'title' => '',
18
  'excerpt' => '',
19
  'short_url' => '',
20
- 'comments_count' => '',
21
  'comments_section' => '',
22
  'post_id' => '',
23
  'post_image' => '',
@@ -38,7 +37,9 @@ class WPSR_Metadata{
38
  'rss_url' => get_bloginfo( 'rss2_url' ),
39
  'twitter_username' => ( empty( $gs[ 'twitter_username' ] ) ? '' : '@' . $gs[ 'twitter_username' ] ),
40
  'fb_app_id' => $gs[ 'facebook_app_id' ],
41
- 'fb_app_secret' => $gs[ 'facebook_app_secret' ]
 
 
42
  );
43
 
44
  $metadata = array_merge( $page_info, $misc_info );
@@ -172,7 +173,6 @@ class WPSR_Metadata{
172
  'url' => get_permalink( $id ),
173
  'excerpt' => self::excerpt( $post->post_excerpt, 100 ), // using $post->post_excerpt instead of get_the_excerpt as the_content filter loses shortcode formatting
174
  'short_url' => wp_get_shortlink( $id ),
175
- 'comments_count' => get_comments_number( $id ),
176
  'post_image' => self::post_image( $id )
177
  );
178
  }
@@ -213,6 +213,7 @@ class WPSR_Metadata{
213
  'short-url' => $metadata[ 'short_url' ],
214
  'rss-url' => $metadata[ 'rss_url' ],
215
  'comments-section' => $metadata[ 'comments_section' ],
 
216
 
217
  'twitter-username' => $metadata[ 'twitter_username' ],
218
  'fb-app-id' => $metadata[ 'fb_app_id' ],
17
  'title' => '',
18
  'excerpt' => '',
19
  'short_url' => '',
 
20
  'comments_section' => '',
21
  'post_id' => '',
22
  'post_image' => '',
37
  'rss_url' => get_bloginfo( 'rss2_url' ),
38
  'twitter_username' => ( empty( $gs[ 'twitter_username' ] ) ? '' : '@' . $gs[ 'twitter_username' ] ),
39
  'fb_app_id' => $gs[ 'facebook_app_id' ],
40
+ 'fb_app_secret' => $gs[ 'facebook_app_secret' ],
41
+ 'comments_section' => $gs[ 'comments_section' ],
42
+ 'raw_url' => $page_info[ 'url' ]
43
  );
44
 
45
  $metadata = array_merge( $page_info, $misc_info );
173
  'url' => get_permalink( $id ),
174
  'excerpt' => self::excerpt( $post->post_excerpt, 100 ), // using $post->post_excerpt instead of get_the_excerpt as the_content filter loses shortcode formatting
175
  'short_url' => wp_get_shortlink( $id ),
 
176
  'post_image' => self::post_image( $id )
177
  );
178
  }
213
  'short-url' => $metadata[ 'short_url' ],
214
  'rss-url' => $metadata[ 'rss_url' ],
215
  'comments-section' => $metadata[ 'comments_section' ],
216
+ 'raw-url' => $metadata[ 'raw_url' ],
217
 
218
  'twitter-username' => $metadata[ 'twitter_username' ],
219
  'fb-app-id' => $metadata[ 'fb_app_id' ],
core/options.php CHANGED
@@ -550,6 +550,10 @@ class WPSR_Options{
550
  'default' => '',
551
  'options' => false
552
  ),
 
 
 
 
553
 
554
  // Share counter
555
  'counter_expiration' => array(
550
  'default' => '',
551
  'options' => false
552
  ),
553
+ 'comments_section' => array(
554
+ 'default' => 'comments',
555
+ 'options' => false
556
+ ),
557
 
558
  // Share counter
559
  'counter_expiration' => array(
core/share-counter.php CHANGED
@@ -25,7 +25,11 @@ class WPSR_Share_Counter{
25
  'pinterest' => array(
26
  'name' => 'Pinterest',
27
  'callback' => array( __CLASS__, 'pinterest_count' )
28
- )
 
 
 
 
29
  ));
30
 
31
  }
@@ -325,6 +329,14 @@ class WPSR_Share_Counter{
325
 
326
  }
327
 
 
 
 
 
 
 
 
 
328
  public static function format_count( $num ){
329
 
330
  if( $num < 1000 )
25
  'pinterest' => array(
26
  'name' => 'Pinterest',
27
  'callback' => array( __CLASS__, 'pinterest_count' )
28
+ ),
29
+ 'comments' => array(
30
+ 'name' => 'Comments',
31
+ 'callback' => array( __CLASS__, 'comments_count' )
32
+ ),
33
  ));
34
 
35
  }
329
 
330
  }
331
 
332
+ public static function comments_count( $url ){
333
+
334
+ $post_id = url_to_postid( $url );
335
+
336
+ return get_comments_number( $post_id );
337
+
338
+ }
339
+
340
  public static function format_count( $num ){
341
 
342
  if( $num < 1000 )
core/templates/floating-sharebar.php CHANGED
@@ -91,6 +91,11 @@ class WPSR_Template_Floating_Sharebar{
91
  continue;
92
  }
93
 
 
 
 
 
 
94
  $url = WPSR_Metadata::replace_params( $props[ 'link' ], $page_info );
95
 
96
  $icon = '';
91
  continue;
92
  }
93
 
94
+ // If comments button
95
+ if( $id == 'comments' && !comments_open( $page_info[ 'post_id' ] ) ){
96
+ continue;
97
+ }
98
+
99
  $url = WPSR_Metadata::replace_params( $props[ 'link' ], $page_info );
100
 
101
  $icon = '';
core/templates/popups.php CHANGED
@@ -59,7 +59,7 @@ class WPSR_Template_Popups{
59
  echo $sm_links_wrap->open();
60
 
61
  $social_icons = WPSR_Lists::social_icons();
62
- $exclude_icons = array( 'addtofavorites', 'html' );
63
 
64
  foreach( $social_icons as $id => $props ){
65
 
59
  echo $sm_links_wrap->open();
60
 
61
  $social_icons = WPSR_Lists::social_icons();
62
+ $exclude_icons = apply_filters( 'wpsr_mod_popup_exclude_icons', array( 'addtofavorites', 'comments', 'html' ) );
63
 
64
  foreach( $social_icons as $id => $props ){
65
 
core/templates/share-icons.php CHANGED
@@ -113,6 +113,11 @@ class WPSR_Template_Share_Icons{
113
  continue;
114
  }
115
 
 
 
 
 
 
116
  $icon_link = $props[ 'link' ];
117
  $url = WPSR_Metadata::replace_params( $icon_link, $page_info );
118
 
113
  continue;
114
  }
115
 
116
+ // If comments button
117
+ if( $id == 'comments' && !comments_open( $page_info[ 'post_id' ] ) ){
118
+ continue;
119
+ }
120
+
121
  $icon_link = $props[ 'link' ];
122
  $url = WPSR_Metadata::replace_params( $icon_link, $page_info );
123
 
core/templates/text-sharebar.php CHANGED
@@ -57,6 +57,10 @@ class WPSR_Template_Text_Sharebar{
57
  continue;
58
  }
59
 
 
 
 
 
60
  $sb_info = $sb_sites[ $btn ];
61
  $link = array_key_exists( 'link_tsb', $sb_info ) ? $sb_info[ 'link_tsb' ] : $sb_info[ 'link' ];
62
 
@@ -97,7 +101,8 @@ class WPSR_Template_Text_Sharebar{
97
  'url' => $page_info[ 'url' ],
98
  'title' => $page_info[ 'title' ],
99
  'surl' => $page_info[ 'short_url' ],
100
- 'tuname' => $page_info[ 'twitter_username' ]
 
101
  );
102
 
103
  $wrap_tag->add_style( 'background-color', $opts[ 'bg_color' ] );
57
  continue;
58
  }
59
 
60
+ if( $btn == 'comments' && !comments_open( $page_info[ 'post_id' ] ) ){
61
+ continue;
62
+ }
63
+
64
  $sb_info = $sb_sites[ $btn ];
65
  $link = array_key_exists( 'link_tsb', $sb_info ) ? $sb_info[ 'link_tsb' ] : $sb_info[ 'link' ];
66
 
101
  'url' => $page_info[ 'url' ],
102
  'title' => $page_info[ 'title' ],
103
  'surl' => $page_info[ 'short_url' ],
104
+ 'tuname' => $page_info[ 'twitter_username' ],
105
+ 'comments-section' => $page_info[ 'comments_section' ]
106
  );
107
 
108
  $wrap_tag->add_style( 'background-color', $opts[ 'bg_color' ] );
public/css/wp-socializer.css CHANGED
@@ -406,7 +406,7 @@
406
  .wpsr-bg {
407
  display: none;
408
  position: fixed;
409
- z-index: 9999;
410
  top: 0;
411
  left: 0;
412
  right: 0;
406
  .wpsr-bg {
407
  display: none;
408
  position: fixed;
409
+ z-index: 999999;
410
  top: 0;
411
  left: 0;
412
  right: 0;
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;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}}
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:999999;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;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
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:999999;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
@@ -128,6 +128,11 @@ document.addEventListener( 'DOMContentLoaded', function(){
128
  var link = scr_links[i];
129
  link.addEventListener( 'click', function(e){
130
  var href = this.getAttribute( 'href' );
 
 
 
 
 
131
  if( !( href == '#' || this.hasAttribute( 'onclick' ) || href == null ) ){
132
  wpsr_helpers.popup_window( href, '_blank', 800, 500 );
133
  }
@@ -205,7 +210,9 @@ document.addEventListener( 'DOMContentLoaded', function(){
205
  psurl: tsb.getAttribute( 'data-surl' ),
206
  ptuname: tsb.getAttribute( 'data-tuname' ),
207
  cnt_sel: tsb.getAttribute( 'data-content' ),
208
- word_count: tsb.getAttribute( 'data-tcount' )
 
 
209
  };
210
 
211
  var get_selection_text = function() {
@@ -246,7 +253,9 @@ document.addEventListener( 'DOMContentLoaded', function(){
246
  '{url}': tsb_attr.purl,
247
  '{s-url}': tsb_attr.psurl,
248
  '{twitter-username}': tsb_attr.ptuname,
249
- '{excerpt}': escape(sel_link_text())
 
 
250
  };
251
 
252
  for( var key in to_replace ){
@@ -310,7 +319,14 @@ document.addEventListener( 'DOMContentLoaded', function(){
310
  var atag = atags[i];
311
  atag.addEventListener( 'click', function(e){
312
  var alink = this.getAttribute( 'data-link' );
 
313
 
 
 
 
 
 
 
314
  if( alink != '#' ){
315
  rep_link = replace_link( alink );
316
  wpsr_helpers.popup_window( rep_link, '_blank', 800, 500 );
128
  var link = scr_links[i];
129
  link.addEventListener( 'click', function(e){
130
  var href = this.getAttribute( 'href' );
131
+ var btn_id = this.getAttribute( 'data-id' );
132
+ if( btn_id == 'comments' ){
133
+ this.setAttribute('target', '_self');
134
+ return;
135
+ }
136
  if( !( href == '#' || this.hasAttribute( 'onclick' ) || href == null ) ){
137
  wpsr_helpers.popup_window( href, '_blank', 800, 500 );
138
  }
210
  psurl: tsb.getAttribute( 'data-surl' ),
211
  ptuname: tsb.getAttribute( 'data-tuname' ),
212
  cnt_sel: tsb.getAttribute( 'data-content' ),
213
+ word_count: tsb.getAttribute( 'data-tcount' ),
214
+ comments_section: tsb.getAttribute( 'data-comments-section' ),
215
+ raw_url: tsb.getAttribute( 'data-url' ),
216
  };
217
 
218
  var get_selection_text = function() {
253
  '{url}': tsb_attr.purl,
254
  '{s-url}': tsb_attr.psurl,
255
  '{twitter-username}': tsb_attr.ptuname,
256
+ '{excerpt}': escape(sel_link_text()),
257
+ '{comments-section}': tsb_attr.comments_section,
258
+ '{raw-url}': tsb_attr.raw_url
259
  };
260
 
261
  for( var key in to_replace ){
319
  var atag = atags[i];
320
  atag.addEventListener( 'click', function(e){
321
  var alink = this.getAttribute( 'data-link' );
322
+ var aid = this.getAttribute( 'data-id' );
323
 
324
+ if( aid == 'comments' ){
325
+ this.setAttribute('target', '_self');
326
+ this.setAttribute('href', replace_link( alink ));
327
+ return;
328
+ }
329
+
330
  if( alink != '#' ){
331
  rep_link = replace_link( alink );
332
  wpsr_helpers.popup_window( rep_link, '_blank', 800, 500 );
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[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)})});
1
+ function socializer_addbookmark(t){var e=navigator.userAgent.toLowerCase(),s=-1!=e.indexOf("mac"),r="";t.preventDefault(),r=(s?"Command/Cmd":"CTRL")+" + D",alert("Press "+r+" to bookmark this page")}function socializer_shortlink(t,e,s){"function"==typeof t.preventDefault&&t.preventDefault();var r=e?e.getAttribute("href"):s;wpsr_helpers.open_popup("wpsr-short-link"),document.getElementById("wpsr-short-link-url").value=r}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_window:function(t,e,s,r){var n=screen.width/2-s/2,a=screen.height/2-r/2;return window.open(t,e,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+a+",left="+n)},offset:function(t){var e=t.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},ajax:function(t,e,s,r,n){var a=new XMLHttpRequest;a.props=n,a.open(e,t,!0),"POST"==e&&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(t){if(t<1e3)return t;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];break}return s},is_mobile:function(){return/Mobi|Android/i.test(navigator.userAgent)},open_popup:function(t){var e=document.getElementById(t);if(e){var s=this;this.removeClass(e,"wpsr-pp-closed"),this.addClass(e,"wpsr-pp-opened"),this.removeClass(e,"wpsr-pp-slide-up"),setTimeout(function(){s.addClass(e,"wpsr-pp-slide-down")},10)}},close_popup:function(t){var e=document.getElementById(t);if(e){var s=this;this.removeClass(e,"wpsr-pp-slide-down"),this.addClass(e,"wpsr-pp-slide-up"),setTimeout(function(){s.removeClass(e,"wpsr-pp-opened"),s.addClass(e,"wpsr-pp-closed")},250)}},copy:function(t){var e=document.createElement("textarea");e.value=t,e.setAttribute("readonly",""),e.style.position="absolute",e.style.left="-9999px",document.body.appendChild(e),e.select(),document.execCommand("copy"),document.body.removeChild(e)}},document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll(".socializer.sr-popup a");for(f=0;f<t.length;f++){var e=t[f];e.addEventListener("click",function(t){var e=this.getAttribute("href");if("comments"==this.getAttribute("data-id"))return void this.setAttribute("target","_self");"#"==e||this.hasAttribute("onclick")||null==e||wpsr_helpers.popup_window(e,"_blank",800,500),t.preventDefault()})}if(wpsr_helpers.is_mobile()){var s=document.querySelectorAll(".socializer a[data-mobile]");for(f=0;f<s.length;f++){var e=s[f],r=e.getAttribute("data-mobile");e.setAttribute("href",r)}}var n=document.querySelector(".wpsr-sharebar");if(n){var a=n.querySelector(".socializer");n.sm_action_call=function(t){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"),comments_section:tsb.getAttribute("data-comments-section"),raw_url:tsb.getAttribute("data-url")},l=function(){var t="";return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(t=document.selection.createRange().text),t},p=function(t,e){tsb.style.left=t+"px",tsb.style.top=e+"px",wpsr_helpers.addClass(tsb,"wpsr-tsb-active")},c=function(){wpsr_helpers.removeClass(tsb,"wpsr-tsb-active")},d=function(){var t=wpsr_tsb.stext,e=parseInt(i.word_count);return t=t.replace(/[^\x00-\x7F]/g,""),0==e?t:t.split(" ").slice(0,e).join(" ")},u=function(t){var e={"{title}":escape(i.ptitle),"{url}":i.purl,"{s-url}":i.psurl,"{twitter-username}":i.ptuname,"{excerpt}":escape(d()),"{comments-section}":i.comments_section,"{raw-url}":i.raw_url};for(var s in e)e.hasOwnProperty(s)&&(t=t.replace(RegExp(s,"g"),e[s]));return t};if(""!=i.cnt_sel)for(var h=i.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),w=document.querySelectorAll(h),f=0;f<w.length;f++){var m=w[f];m.addEventListener("mousedown",function(t){wpsr_tsb.startx=t.pageX,wpsr_tsb.starty=t.pageY}),m.addEventListener("mouseup",function(t){var e=l();""!=e?(tsb_x=(t.pageX+parseInt(wpsr_tsb.startx))/2,tsb_y=Math.min(wpsr_tsb.starty,t.pageY),e!=wpsr_tsb.stext?(p(tsb_x,tsb_y),wpsr_tsb.stext=e):c()):c()})}document.body.addEventListener("mousedown",function(t){c()}),tsb.addEventListener("mousedown",function(t){t.stopPropagation()});for(var _=tsb.querySelectorAll("a"),f=0;f<_.length;f++){_[f].addEventListener("click",function(t){var e=this.getAttribute("data-link");if("comments"==this.getAttribute("data-id"))return this.setAttribute("target","_self"),void this.setAttribute("href",u(e));"#"!=e&&(rep_link=u(e),wpsr_helpers.popup_window(rep_link,"_blank",800,500)),t.preventDefault()})}}var v=document.querySelectorAll(".wp-socializer");v.length>0&&["resize","load"].forEach(function(t){window.addEventListener(t,function(){for(var t=0;t<v.length;t++){var e=v[t],s=e.getAttribute("data-lg-action"),r=e.getAttribute("data-sm-action"),n=e.getAttribute("data-sm-width"),a=window.innerWidth<=n?r:s;"close"==a?wpsr_helpers.addClass(e,"wpsr-closed"):wpsr_helpers.removeClass(e,"wpsr-closed"),"hide"==a?wpsr_helpers.addClass(e,"wpsr-hide"):wpsr_helpers.removeClass(e,"wpsr-hide"),"function"==typeof e.sm_action_call&&a==r&&e.sm_action_call(),"function"==typeof e.lg_action_call&&a==s&&e.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 t=this.parentNode;t.classList.contains("wpsr-closed")?wpsr_helpers.removeClass(t,"wpsr-closed"):wpsr_helpers.addClass(t,"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(t){var e=JSON.parse(t.responseText),s=document.querySelectorAll('[data-wpsrs="'+t.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 e&&(a+=parseInt(e[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(t){t.preventDefault();var e=this.getAttribute("data-id");wpsr_helpers.close_popup(e)})}window.wpsr_share_menu={set_data:function(t){try{this.data=JSON.parse(t)}catch(t){this.data={},console.log(t)}},get_param:function(t){var e={url:document.location.href,title:document.title,"short-url":document.location.href};return this.data=void 0===this.data?e:this.data,t in this.data?this.data[t]:t in e?e[t]:""},process_link:function(t){for(var e,s=/\{(.+?)\}/g;e=s.exec(t);){var r=this.get_param(e[1]);t=t.replaceAll("{"+e[1]+"}",encodeURI(r))}return t}};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 t=this.getAttribute("data-metadata");wpsr_share_menu.set_data(t),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(t){t.preventDefault();var e=wpsr_helpers.is_mobile()&&this.getAttribute("data-m")?this.getAttribute("data-m"):this.getAttribute("data-d"),s=wpsr_share_menu.process_link(atob(e));if(this.classList.contains("wpsr-sml-shortlink"))return void socializer_shortlink(t,!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(t){t.preventDefault(),wpsr_helpers.copy(document.getElementById("wpsr-short-link-url").value),this.innerText=this.getAttribute("data-d");var e=this;setTimeout(function(){e.innerText=e.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.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
@@ -33,7 +33,7 @@ WP Socializer is feature rich with which you can display share/follow buttons an
33
 
34
  WP Socializer includes all the popular social network icons you need to add sharing and follow buttons on your website.
35
 
36
- - Facebook, Twitter, Pinterest, WhatsApp, LinkedIn, Instagram, Email, SMS, Phone, Copy link and more
37
  - **More icons** - Add to favorites, Behance, Bitbucket, Blogger, CodePen, Comments, Delicious, DeviantArt, Digg, Dribbble, Facebook messenger, Flickr, Github, Google, Hacker News, Medium, PayPal, PDF, Pocket, Print, Reddit, RSS, Short link, Snapchat, Soundcloud, StackOverflow, Quora, Telegram, Tumblr, Vimeo, VKontakte, wechat, Xing, Yahoo! Mail, Youtube, Weibo, Line, Mix, Odnoklassniki, Renren, Skype, Telephone/call button, Houzz, Etsy, Discord, Patreon, Viber, TikTok
38
 
39
  ### Multiple Icon Shapes, Sizes and Colors to Choose from
@@ -82,6 +82,7 @@ Display individual and total share counts for social networks like Facebook and
82
 
83
  * Facebook like/share count
84
  * Pinterest count
 
85
  * Total count
86
  * Recover share count from http/https
87
 
@@ -216,6 +217,13 @@ Please refer [this page](https://www.aakashweb.com/docs/wp-socializer/) for the
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.
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: 6.0
7
+ Stable tag: 7.2
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Requires PHP: 5.3
33
 
34
  WP Socializer includes all the popular social network icons you need to add sharing and follow buttons on your website.
35
 
36
+ - Facebook, Twitter, Pinterest, WhatsApp, LinkedIn, Instagram, Email, SMS, Phone, Copy link, **Comments button** and more
37
  - **More icons** - Add to favorites, Behance, Bitbucket, Blogger, CodePen, Comments, Delicious, DeviantArt, Digg, Dribbble, Facebook messenger, Flickr, Github, Google, Hacker News, Medium, PayPal, PDF, Pocket, Print, Reddit, RSS, Short link, Snapchat, Soundcloud, StackOverflow, Quora, Telegram, Tumblr, Vimeo, VKontakte, wechat, Xing, Yahoo! Mail, Youtube, Weibo, Line, Mix, Odnoklassniki, Renren, Skype, Telephone/call button, Houzz, Etsy, Discord, Patreon, Viber, TikTok
38
 
39
  ### Multiple Icon Shapes, Sizes and Colors to Choose from
82
 
83
  * Facebook like/share count
84
  * Pinterest count
85
+ * Comments count
86
  * Total count
87
  * Recover share count from http/https
88
 
217
 
218
  ## Changelog
219
 
220
+ ### 7.2
221
+ * New: Comments button for the share icon.
222
+ * New: Comments count is displayed for the comments icon.
223
+ * Fix: WeChat share URL is updated.
224
+ * Fix: Increased share menu popup level.
225
+ * Fix: Minor admin UI fixes.
226
+
227
  ### 7.1
228
  * New: Share menu and short link popup HTML will be inserted in the page only when they are needed.
229
  * Fix: JS syntax error in Safari browser.
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.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' ) );
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.2
7
  * Author: Aakash Chakravarthy
8
  * Author URI: https://www.aakashweb.com
9
  * Text Domain: wpsr
10
  * Domain Path: /languages
11
  */
12
 
13
+ define( 'WPSR_VERSION', '7.2' );
14
  define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );