WP Socializer - Version 7.0

Version Description

Download this release

Release Info

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

Code changes from version 6.5 to 7.0

admin/admin.php CHANGED
@@ -92,6 +92,9 @@ class WPSR_Admin{
92
  add_submenu_page( 'wp_socializer', 'WP Socializer - ' . $config[ 'name' ], $config[ 'name' ], 'manage_options', 'wp_socializer&tab="' . $id . '"', array( __CLASS__, 'admin_page' ) );
93
  }
94
  }
 
 
 
95
  }
96
 
97
  public static function admin_page(){
@@ -379,6 +382,8 @@ class WPSR_Admin{
379
 
380
  public static function action_links( $links ){
381
  array_unshift( $links, '<a href="'. esc_url( admin_url( 'admin.php?page=wp_socializer') ) .'">Settings</a>' );
 
 
382
  return $links;
383
  }
384
 
@@ -399,8 +404,9 @@ class WPSR_Admin{
399
 
400
  public static function admin_links(){
401
  echo '<ul class="admin_links">';
402
- echo '<li><a href="https://www.paypal.me/vaakash/6" class="button" target="_blank">☕ Buy me a Coffee</a></li>';
403
  echo '<li><a href="https://wordpress.org/support/plugin/wp-socializer/reviews/?rate=5#new-post" class="button" target="_blank">⭐ Rate &amp; Review</a></li>';
 
 
404
  echo '</ul>';
405
  }
406
 
@@ -420,6 +426,25 @@ class WPSR_Admin{
420
 
421
  echo '<div id="sidebar">';
422
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
423
  echo '<div class="side_card">';
424
  echo '<h2><i class="fas fa-info-circle"></i> WordPress news</h2>';
425
  echo '<p>Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.</p>';
@@ -429,38 +454,6 @@ class WPSR_Admin{
429
  <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_b7023581458d048107298247e_ef5ab3c5c4" tabindex="-1" value=""></div>
430
  <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button subscribe_btn">
431
  </form>';
432
-
433
- echo '<p>';
434
- echo '<a href="https://twitter.com/intent/follow?screen_name=aakashweb" target="_blank" class="button twitter_btn"><span class="dashicons dashicons-twitter"></span> Follow us on Twitter</a>';
435
- echo '<a href="https://www.facebook.com/aakashweb/" target="_blank" class="button facebook_btn"><span class="dashicons dashicons-facebook-alt"></span> on Facebook</a>';
436
- echo '</p>';
437
-
438
- echo '</div>';
439
-
440
- echo '<div class="side_card">';
441
- echo '<h2><i class="fas fa-heart"></i> More plugins from us</h2>';
442
-
443
- echo '<div class="promo_slides">';
444
- echo '<div class="promo_slide">';
445
- echo '<a class="side_banner" href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/?utm_source=wp-socializer&utm_medium=sidebar&utm_campaign=ufw-pro" target="_blank"><img src="' . WPSR_ADMIN_URL . '/images/banners/ultimate-floating-widgets.png" /></a>';
446
- echo '</div>';
447
-
448
- echo '<div class="promo_slide">';
449
- echo '<a class="side_banner" href="https://www.aakashweb.com/wordpress-plugins/announcer/?utm_source=wp-socializer&utm_medium=sidebar&utm_campaign=announcer-pro" target="_blank"><img src="' . WPSR_ADMIN_URL . '/images/banners/announcer.png" /></a>';
450
- echo '</div>';
451
-
452
- echo '<div class="promo_slide">';
453
- echo '<a class="side_banner" href="https://www.aakashweb.com/wordpress-plugins/super-rss-reader/?utm_source=wp-socializer&utm_medium=sidebar&utm_campaign=srr-pro" target="_blank"><img src="' . WPSR_ADMIN_URL . '/images/banners/super-rss-reader.png" /></a>';
454
- echo '</div>';
455
- echo '</div>';
456
-
457
- echo '<p><a href="#" onclick="wpsr_next_promo_slide(-1, event)" class="promo_btn"><span class="dashicons dashicons-arrow-left-alt2"></span> Prev</a><a href="#" onclick="wpsr_next_promo_slide(1, event)" class="promo_btn fright">Next <span class="dashicons dashicons-arrow-right-alt2"></span></a></p>';
458
- echo '</div>';
459
-
460
- echo '<div class="side_card">';
461
- echo '<h2><i class="fas fa-life-ring"></i> Help &amp; Support</h2>';
462
- echo '<p>Got any issue or not sure how to achieve what you are looking for with the plugin or have any idea or missing feature ? Let me know. Please post a topic in the forum for an answer.</p>';
463
- echo '<a class="cta_link" href="https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/" target="_blank">Visit the support forum <i class="fas fa-arrow-right"></i></a>';
464
  echo '</div>';
465
 
466
  echo '</div>';
92
  add_submenu_page( 'wp_socializer', 'WP Socializer - ' . $config[ 'name' ], $config[ 'name' ], 'manage_options', 'wp_socializer&tab="' . $id . '"', array( __CLASS__, 'admin_page' ) );
93
  }
94
  }
95
+
96
+ add_submenu_page( 'wp_socializer', 'WP Socializer - Upgrade', '<span style="color: gold">Upgrade to PRO</span>', 'manage_options', 'https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=admin&utm_medium=menu&utm_campaign=wpsr-pro', null );
97
+
98
  }
99
 
100
  public static function admin_page(){
382
 
383
  public static function action_links( $links ){
384
  array_unshift( $links, '<a href="'. esc_url( admin_url( 'admin.php?page=wp_socializer') ) .'">Settings</a>' );
385
+ array_unshift( $links, '<a href="https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=admin&utm_medium=action_link&utm_campaign=wpsr-pro" target="_blank"><b>' . __( 'Upgrade to PRO', 'wp-socializer' ) . '</b></a>' );
386
+
387
  return $links;
388
  }
389
 
404
 
405
  public static function admin_links(){
406
  echo '<ul class="admin_links">';
 
407
  echo '<li><a href="https://wordpress.org/support/plugin/wp-socializer/reviews/?rate=5#new-post" class="button" target="_blank">⭐ Rate &amp; Review</a></li>';
408
+ echo '<li><a href="https://twitter.com/intent/follow?screen_name=aakashweb" class="button" target="_blank" title="Follow us Twitter"><i class="fab fa-twitter"></i></a></li>';
409
+ echo '<li><a href="https://www.facebook.com/aakashweb/" class="button" target="_blank" title="Follow us Facebook"><i class="fab fa-facebook"></i></a></li>';
410
  echo '</ul>';
411
  }
412
 
426
 
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>';
434
+ echo '<li>Track clicks on share & follow icons with <em>Google Analytics</em></li>';
435
+ echo '<li>Share short links with <em>Bit.ly</em></li>';
436
+ echo '<li>No branding.</li>';
437
+ echo '</ul>';
438
+ echo '<a class="button button-primary upgrade_btn" href="https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=admin&utm_medium=sidebar&utm_campaign=wpsr-pro" target="_blank">Upgrade to PRO &nbsp;<i class="fas fa-angle-right"></i></a>';
439
+ echo '</div>';
440
+
441
+ echo '<div class="side_card">';
442
+ echo '<h2><i class="fas fa-life-ring"></i> Help &amp; Support</h2>';
443
+ echo '<p>Got any issue or not sure how to achieve what you are looking for with the plugin or have any idea or missing feature ? Let me know. Please post a topic in the forum for an answer.</p>';
444
+ echo '<a class="cta_link" href="https://www.aakashweb.com/docs/wp-socializer/" target="_blank">Documentation & FAQ <i class="fas fa-arrow-right"></i></a>';
445
+ echo '<a class="cta_link" href="https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/" target="_blank">Visit the support forum <i class="fas fa-arrow-right"></i></a>';
446
+ echo '</div>';
447
+
448
  echo '<div class="side_card">';
449
  echo '<h2><i class="fas fa-info-circle"></i> WordPress news</h2>';
450
  echo '<p>Get updates on the WordPress plugins, tips and tricks to enhance your WordPress experience. No spam.</p>';
454
  <div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_b7023581458d048107298247e_ef5ab3c5c4" tabindex="-1" value=""></div>
455
  <input type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe" class="button subscribe_btn">
456
  </form>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
457
  echo '</div>';
458
 
459
  echo '</div>';
admin/css/ipopup.css CHANGED
@@ -1,6 +1,6 @@
1
  #wpsr_ipopup_wrap {
2
  position: fixed;
3
- z-index: 99999;
4
  top: 0;
5
  left: 0;
6
  right: 0;
1
  #wpsr_ipopup_wrap {
2
  position: fixed;
3
+ z-index: 9999999;
4
  top: 0;
5
  left: 0;
6
  right: 0;
admin/css/style.css CHANGED
@@ -634,6 +634,11 @@ select[name="ft_status"]{
634
  #wpsr_pp_editor{
635
  padding: 0 15px 50px 15px;
636
  }
 
 
 
 
 
637
 
638
  .fb_selected h4 {
639
  color: #fff;
@@ -641,6 +646,8 @@ select[name="ft_status"]{
641
  margin: 0;
642
  cursor: pointer;
643
  font-size: 15px;
 
 
644
  }
645
  .fb_selected h4:hover{
646
  opacity: 0.7;
@@ -670,13 +677,14 @@ select[name="ft_status"]{
670
  margin-right: 10px;
671
  }
672
  .fb_selected li {
673
- border: 1px solid #ccc;
674
  background: #fff;
675
  margin-bottom: 15px;
676
  }
677
  .fb_selected li > div {
678
  padding: 10px;
679
  display: none;
 
680
  }
681
  .fb_selected li > div:after {
682
  content: ' ';
@@ -685,11 +693,14 @@ select[name="ft_status"]{
685
  }
686
  .fb_selected li.ui-sortable-placeholder{
687
  height: 40px;
688
- border: 2px dashed #ccc;
689
  }
690
  .fb_selected li.not_set{
691
  border: 5px solid red;
692
  }
 
 
 
693
  .fb_preview li {
694
  width: 48px;
695
  height: 48px;
@@ -699,8 +710,11 @@ select[name="ft_status"]{
699
  float: left;
700
  margin: 0 10px 0 0;
701
  cursor: no-drop;
702
- border-radius: 3px;
703
  position: relative;
 
 
 
704
  }
705
  .fb_preview:after {content: ' ';display: block;clear: both;}
706
  .fb_preview span {
@@ -727,11 +741,10 @@ select[name="ft_status"]{
727
  bottom: 0;
728
  left: 0;
729
  right: 0;
730
- background: #f1f1f1;
731
  margin: 0;
732
- padding: 10px;
733
- border-top: 1px solid #ccc;
734
- box-shadow: 0 -2px 3px -3px;
735
  z-index: 9999;
736
  }
737
 
@@ -748,7 +761,10 @@ select[name="ft_status"]{
748
  cursor: move;
749
  position: relative;
750
  background: #333;
751
- border-radius: 3px;
 
 
 
752
  }
753
  .ssb_selected_list li:hover{
754
  opacity: 0.8;
@@ -834,10 +850,12 @@ select[name="ft_status"]{
834
  display: flex;
835
  margin: 0 0 20px 0;
836
  padding: 0 0 20px 0;
 
837
  }
838
  .field_wrap:last-child {
839
  margin-bottom: 0;
840
  padding-bottom: 0;
 
841
  }
842
  .field_wrap > div {
843
  flex: 1;
@@ -1001,7 +1019,7 @@ select[name="ft_status"]{
1001
  position: relative;
1002
  }
1003
  .admin_links > li {
1004
- padding: 5px 10px;
1005
  margin: 0;
1006
  }
1007
  .admin_links > li a {
@@ -1086,6 +1104,15 @@ select[name="ft_status"]{
1086
  padding: 10px;
1087
  line-height: 1.5;
1088
  }
 
 
 
 
 
 
 
 
 
1089
 
1090
  .style_ele ul{
1091
  list-style: disc;
@@ -1194,26 +1221,44 @@ select[name="ft_status"]{
1194
  width: 16px;
1195
  margin: 7px 3px 0 0;
1196
  }
1197
- .promo_slides > .promo_slide{
1198
- display: none;
 
 
 
 
 
 
1199
  }
1200
- .promo_slides > .promo_slide:first-child{
1201
- display: block;
1202
  }
1203
- .promo_btn{
1204
- text-decoration: none;
 
 
 
1205
  }
1206
- .twitter_btn.button{
1207
- background: #1b95e0;
1208
- color: #fff;
1209
- border-color: transparent;
 
 
 
1210
  }
1211
- .facebook_btn.button{
1212
- background: #4080ff;
1213
- color: #fff;
1214
- border-color: transparent;
 
 
 
 
 
 
 
1215
  }
1216
-
1217
 
1218
  /** Misc **/
1219
  .page_footer{
@@ -1270,6 +1315,9 @@ select[name="ft_status"]{
1270
  .fright{
1271
  float: right;
1272
  }
 
 
 
1273
  .lbl_margin{
1274
  margin: 0 10px 0;
1275
  }
@@ -1360,6 +1408,8 @@ select[name="ft_status"]{
1360
  color: #fff;
1361
  border-radius: 5px;
1362
  box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.5);
 
 
1363
  }
1364
  .sic_list li > * {
1365
  padding: 10px 5px;
@@ -1375,6 +1425,7 @@ select[name="ft_status"]{
1375
  }
1376
  .sic_list li:hover {
1377
  box-shadow: 0 2px 6px 0px rgba(0, 0, 0, 0.5);
 
1378
  }
1379
  .sic_list .sic_action_btn{
1380
  opacity: 0.5;
634
  #wpsr_pp_editor{
635
  padding: 0 15px 50px 15px;
636
  }
637
+ #wpsr_pp_editor h2{
638
+ border-bottom: 1px solid #c3c4c7;
639
+ padding: 10px 0 20px 20px;
640
+ margin: 10px -15px 10px -15px;
641
+ }
642
 
643
  .fb_selected h4 {
644
  color: #fff;
646
  margin: 0;
647
  cursor: pointer;
648
  font-size: 15px;
649
+ text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
650
+ background: linear-gradient(rgb(0 0 0 / 1%), rgb(0 0 0 / 5%));
651
  }
652
  .fb_selected h4:hover{
653
  opacity: 0.7;
677
  margin-right: 10px;
678
  }
679
  .fb_selected li {
680
+ border: 1px solid #c3c4c7;
681
  background: #fff;
682
  margin-bottom: 15px;
683
  }
684
  .fb_selected li > div {
685
  padding: 10px;
686
  display: none;
687
+ background-color: #fafafa;
688
  }
689
  .fb_selected li > div:after {
690
  content: ' ';
693
  }
694
  .fb_selected li.ui-sortable-placeholder{
695
  height: 40px;
696
+ border: 2px dashed #c3c4c7;
697
  }
698
  .fb_selected li.not_set{
699
  border: 5px solid red;
700
  }
701
+ .fb_preview {
702
+ margin-bottom: 30px;
703
+ }
704
  .fb_preview li {
705
  width: 48px;
706
  height: 48px;
710
  float: left;
711
  margin: 0 10px 0 0;
712
  cursor: no-drop;
713
+ border-radius: 5px;
714
  position: relative;
715
+ box-shadow: 0 2px 4px -2px rgb(0 0 0 / 50%);
716
+ text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
717
+ background: linear-gradient(rgb(0 0 0 / 1%), rgb(0 0 0 / 5%));
718
  }
719
  .fb_preview:after {content: ' ';display: block;clear: both;}
720
  .fb_preview span {
741
  bottom: 0;
742
  left: 0;
743
  right: 0;
744
+ background: #fff;
745
  margin: 0;
746
+ padding: 15px;
747
+ border-top: 1px solid #c3c4c7;
 
748
  z-index: 9999;
749
  }
750
 
761
  cursor: move;
762
  position: relative;
763
  background: #333;
764
+ border-radius: 5px;
765
+ box-shadow: 0 2px 4px -2px rgb(0 0 0 / 50%);
766
+ text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
767
+ background: linear-gradient(rgb(0 0 0 / 1%), rgb(0 0 0 / 5%));
768
  }
769
  .ssb_selected_list li:hover{
770
  opacity: 0.8;
850
  display: flex;
851
  margin: 0 0 20px 0;
852
  padding: 0 0 20px 0;
853
+ border-bottom: 1px solid #eee;
854
  }
855
  .field_wrap:last-child {
856
  margin-bottom: 0;
857
  padding-bottom: 0;
858
+ border-bottom: none;
859
  }
860
  .field_wrap > div {
861
  flex: 1;
1019
  position: relative;
1020
  }
1021
  .admin_links > li {
1022
+ padding: 5px;
1023
  margin: 0;
1024
  }
1025
  .admin_links > li a {
1104
  padding: 10px;
1105
  line-height: 1.5;
1106
  }
1107
+ .intro_popup hr {
1108
+ margin: 10px 0;
1109
+ }
1110
+ .intro_popup .w_pro_list li b:first-child {
1111
+ background: #fff3b0;
1112
+ color: #444;
1113
+ font-weight: 500;
1114
+ font-style: italic;
1115
+ }
1116
 
1117
  .style_ele ul{
1118
  list-style: disc;
1221
  width: 16px;
1222
  margin: 7px 3px 0 0;
1223
  }
1224
+
1225
+
1226
+ /** PRO **/
1227
+ .pro_card h2 {
1228
+ background: #ffd700;
1229
+ font-size: 14px;
1230
+ font-weight: bold;
1231
+ text-align: center;
1232
  }
1233
+ .pro_card .upgrade_btn{
1234
+ box-shadow: 0 2px 9px -7px #000;
1235
  }
1236
+ .pro_card li {
1237
+ font-size: 14px;
1238
+ margin: 0 0 15px 25px;
1239
+ position: relative;
1240
+ line-height: 1.5;
1241
  }
1242
+ .pro_card li:before{
1243
+ font-family: "Font Awesome 5 Free";
1244
+ content: '\f067';
1245
+ font-weight: 900;
1246
+ position: absolute;
1247
+ left: -25px;
1248
+ color: #4eb951;
1249
  }
1250
+ .pro_card em {
1251
+ font-weight: 400;
1252
+ border-bottom: 1px dotted;
1253
+ }
1254
+ .pro_tag{
1255
+ font-size: 10px;
1256
+ background: gold;
1257
+ padding: 0 3px;
1258
+ color: #333;
1259
+ border-radius: 3px;
1260
+ margin: 0 0 0 3px;
1261
  }
 
1262
 
1263
  /** Misc **/
1264
  .page_footer{
1315
  .fright{
1316
  float: right;
1317
  }
1318
+ .float_left{
1319
+ float: left;
1320
+ }
1321
  .lbl_margin{
1322
  margin: 0 10px 0;
1323
  }
1408
  color: #fff;
1409
  border-radius: 5px;
1410
  box-shadow: 0 2px 4px -2px rgba(0, 0, 0, 0.5);
1411
+ text-shadow: 0 1px 2px rgb(0 0 0 / 30%);
1412
+ background: linear-gradient(rgb(0 0 0 / 1%), rgb(0 0 0 / 5%));
1413
  }
1414
  .sic_list li > * {
1415
  padding: 10px 5px;
1425
  }
1426
  .sic_list li:hover {
1427
  box-shadow: 0 2px 6px 0px rgba(0, 0, 0, 0.5);
1428
+ background: linear-gradient(rgb(0 0 0 / 8%), rgb(0 0 0 / 16%));
1429
  }
1430
  .sic_list .sic_action_btn{
1431
  opacity: 0.5;
admin/css/style_post_settings.css ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .wpsr_field_wrap {
2
+ display: flex;
3
+ margin: 0 0 20px 0;
4
+ padding: 0 0 10px 0;
5
+ }
6
+ .wpsr_field_wrap:last-child {
7
+ margin-bottom: 0;
8
+ padding-bottom: 0;
9
+ }
10
+ .wpsr_field_wrap > div {
11
+ flex: 1;
12
+ }
13
+ .wpsr_field_label {
14
+ display: block;
15
+ margin: 0 20px 0 0;
16
+ width: 25%;
17
+ flex-shrink: 0;
18
+ line-height: 1.5;
19
+ }
20
+ .wpsr_field_val{
21
+ margin-right: 10px;
22
+ width: 100%;
23
+ }
24
+ .wpsr_field_val_wrap{
25
+ display: flex;
26
+ }
27
+ .wpsr_field_wrap .wpsr_ancr_desc {
28
+ margin: 10px 0;
29
+ font-style: italic;
30
+ color: #777;
31
+ }
32
+ .wpsr_field_wrap .wpsr_field_before_text{
33
+ display: block;
34
+ margin: 0 0 5px 0;
35
+ }
36
+ .wpsr_field_wrap .wpsr_field_after_text{
37
+ display: inline-block;
38
+ margin-left: 5px;
39
+ }
40
+ .wpsr_field_val_wrap+.wpsr_ancr_desc {
41
+ margin-bottom: 0;
42
+ }
43
+
44
+ .wpsr_ps_wrap {
45
+ display: flex;
46
+ padding: 10px 0;
47
+ }
48
+ .wpsr_ps_head{
49
+ margin: 0 0 25px 0;
50
+ font-weight: 600;
51
+ }
52
+
53
+ /* Tabs */
54
+ .wpsr_ps_tab_wrap {
55
+ flex: 1;
56
+ padding: 10px 0;
57
+ }
58
+ .wpsr_ps_tab_list_wrap {
59
+ width: 200px;
60
+ margin-right: 20px;
61
+ border-right: 1px solid #c3c4c7;
62
+ padding-right: 0;
63
+ }
64
+ .wpsr_ps_tab_list li {
65
+ margin: 0 -1px -1px 0;
66
+ }
67
+ .wpsr_ps_tab_list a {
68
+ display: block;
69
+ padding: 15px;
70
+ margin: 0;
71
+ text-decoration: none;
72
+ border: 1px solid #c3c4c7;
73
+ border-left: 4px solid #fff;
74
+ }
75
+ .wpsr_ps_tab_list li.active a {
76
+ background: #f0f0f1;
77
+ border-left-color: inherit;
78
+ }
79
+ .wpsr_ps_tab_list .dashicons {
80
+ margin: 0 10px 0 0;
81
+ }
82
+ .wpsr_ps_tab_wrap > div {
83
+ display: none;
84
+ }
85
+ .wpsr_ps_tab_wrap > div.active {
86
+ display: block;
87
+ }
88
+
89
+ .wpsr_ps_wrap .notice{
90
+ margin: 0 0 30px 0;
91
+ }
admin/css/style_widgets.css CHANGED
@@ -34,6 +34,13 @@
34
  .wpsr_widget_wrap footer .wpsr_version{
35
  color: #444;
36
  }
 
 
 
 
 
 
 
37
 
38
  #available-widgets .wpsr_widget_highlight .widget-top{
39
  outline: 2px solid red;
@@ -45,6 +52,10 @@ div[id*="wpsr"] .widget-title h3{
45
  background-repeat: no-repeat;
46
  }
47
 
 
 
 
 
48
  .fb_preview li {
49
  width: 48px;
50
  height: 48px;
@@ -52,7 +63,7 @@ div[id*="wpsr"] .widget-title h3{
52
  text-align: center;
53
  line-height: 48px;
54
  float: left;
55
- margin: 0 10px 0 0;
56
  font-size: 20px;
57
  border-radius: 3px;
58
  }
34
  .wpsr_widget_wrap footer .wpsr_version{
35
  color: #444;
36
  }
37
+ .wp-block .wpsr_widget_wrap footer{
38
+ border: 1px solid #c3c4c7;
39
+ margin: 20px 0 0 0;
40
+ font-size: 14px;
41
+ border-radius: 5px;
42
+ }
43
+
44
 
45
  #available-widgets .wpsr_widget_highlight .widget-top{
46
  outline: 2px solid red;
52
  background-repeat: no-repeat;
53
  }
54
 
55
+ .fb_preview {
56
+ padding: 0 !important;
57
+ list-style: none !important;
58
+ }
59
  .fb_preview li {
60
  width: 48px;
61
  height: 48px;
63
  text-align: center;
64
  line-height: 48px;
65
  float: left;
66
+ margin: 0 10px 0 0 !important;
67
  font-size: 20px;
68
  border-radius: 3px;
69
  }
admin/form.php CHANGED
@@ -51,21 +51,22 @@ class WPSR_Form{
51
  }
52
  }
53
 
54
- function build(){
55
 
56
  $this->end();
 
57
 
58
  foreach( $this->fields as $field_wrap ){
59
- $class = !isset( $field_wrap[ 'wrap_class' ] ) ? 'class="field_wrap"' : ' class="field_wrap ' . $field_wrap[ 'wrap_class' ] . '" ';
60
  $attr = !isset( $field_wrap[ 'wrap_attr' ] ) ? '' : $field_wrap[ 'wrap_attr' ];
61
 
62
  echo '<div ' . $class . ' ' . $attr . '>';
63
- echo '<label class="field_label">' . $field_wrap[ 'label' ] . '</label>';
64
  echo '<div>';
65
- echo '<div class="field_val_wrap">';
66
  if( isset($field_wrap[ 'fields' ] ) ){
67
  foreach( $field_wrap[ 'fields' ] as $field ){
68
- echo '<div class="field_val">';
69
  echo self::field_html( $field[ 'field_type' ], $field[ 'field_prop' ] );
70
  echo '</div>';
71
  }
@@ -125,6 +126,8 @@ class WPSR_Form{
125
  'placeholder' => '',
126
  'rows' => '',
127
  'cols' => '',
 
 
128
  'helper' => '',
129
  'tooltip' => '',
130
  'before_text' => '',
@@ -151,11 +154,11 @@ class WPSR_Form{
151
 
152
  if( $field_type == 'text' ){
153
  $type = empty( $type ) ? 'text' : $type;
154
- $field_html .= "<input type='$type' $class_attr $id_attr name='$name' value='$value' placeholder='$placeholder' " . ( $required ? "required='$required'" : "" ) . " $custom />";
155
  }
156
 
157
  if( $field_type == 'select' ){
158
- $field_html .= "<select name='$name' $class_attr $id_attr $custom>";
159
  foreach( $list as $k => $v ){
160
  $field_html .= "<option value='$k' " . selected( $value, $k, false ) . ">$v</option>";
161
  }
@@ -196,7 +199,7 @@ class WPSR_Form{
196
  }
197
 
198
  if( $field_type == 'textarea' ){
199
- $field_html .= "<textarea $id_attr name='$name' $class_attr placeholder='$placeholder' rows='$rows' cols='$cols' $custom>$value</textarea>";
200
  }
201
 
202
  if( !empty( $after_text ) ){
51
  }
52
  }
53
 
54
+ function build( $prefix_class = '' ){
55
 
56
  $this->end();
57
+ $pc = !empty( $prefix_class ) ? $prefix_class . '_' : '';
58
 
59
  foreach( $this->fields as $field_wrap ){
60
+ $class = !isset( $field_wrap[ 'wrap_class' ] ) ? ( 'class="' . $pc . 'field_wrap"' ) : ( ' class="' . $pc . 'field_wrap ' . $field_wrap[ 'wrap_class' ] . '" ' );
61
  $attr = !isset( $field_wrap[ 'wrap_attr' ] ) ? '' : $field_wrap[ 'wrap_attr' ];
62
 
63
  echo '<div ' . $class . ' ' . $attr . '>';
64
+ echo '<label class="' . $pc . 'field_label">' . $field_wrap[ 'label' ] . '</label>';
65
  echo '<div>';
66
+ echo '<div class="' . $pc . 'field_val_wrap">';
67
  if( isset($field_wrap[ 'fields' ] ) ){
68
  foreach( $field_wrap[ 'fields' ] as $field ){
69
+ echo '<div class="' . $pc . 'field_val">';
70
  echo self::field_html( $field[ 'field_type' ], $field[ 'field_prop' ] );
71
  echo '</div>';
72
  }
126
  'placeholder' => '',
127
  'rows' => '',
128
  'cols' => '',
129
+ 'readonly' => '',
130
+ 'disabled' => '',
131
  'helper' => '',
132
  'tooltip' => '',
133
  'before_text' => '',
154
 
155
  if( $field_type == 'text' ){
156
  $type = empty( $type ) ? 'text' : $type;
157
+ $field_html .= "<input type='$type' $class_attr $id_attr name='$name' value='$value' $readonly placeholder='$placeholder' " . ( $required ? "required='$required'" : "" ) . " $custom />";
158
  }
159
 
160
  if( $field_type == 'select' ){
161
+ $field_html .= "<select name='$name' $class_attr $id_attr $custom $disabled>";
162
  foreach( $list as $k => $v ){
163
  $field_html .= "<option value='$k' " . selected( $value, $k, false ) . ">$v</option>";
164
  }
199
  }
200
 
201
  if( $field_type == 'textarea' ){
202
+ $field_html .= "<textarea $id_attr name='$name' $class_attr placeholder='$placeholder' rows='$rows' cols='$cols' $readonly $custom>$value</textarea>";
203
  }
204
 
205
  if( !empty( $after_text ) ){
admin/icons-editor.php CHANGED
@@ -38,7 +38,7 @@ class WPSR_Icons_Editor{
38
  }
39
 
40
  $datas = implode( ' ', $datas );
41
- echo '<li ' . $datas . ' style="background-color: ' . $props[ 'colors' ][ 0 ] . '">';
42
  echo '<i class="' . $props[ 'icon' ] . ' item_icon" ></i> ';
43
  echo '<span>' . $props[ 'name' ] . '</span>';
44
  echo '<i class="fa fa-times sic_action_btn sie_delete_btn" title="' . __( 'Delete icon', 'wpsr' ) . '"></i> ';
@@ -113,7 +113,7 @@ class WPSR_Icons_Editor{
113
  }
114
 
115
  $datas = implode( ' ', $datas );
116
- echo '<li ' . $datas . ' style="background-color: ' . $props[ 'colors' ][ 0 ] . '">';
117
  echo '<i class="' . $props[ 'icon' ] . ' item_icon" ></i> ';
118
  echo '<span>' . $props[ 'name' ] . '</span>';
119
  echo '<i class="fas fa-plus sic_action_btn sip_add_btn" title="' . __( 'Add icon', 'wpsr' ) . '"></i>';
@@ -125,6 +125,8 @@ class WPSR_Icons_Editor{
125
  echo '</ul>';
126
  echo '</section>';
127
 
 
 
128
  echo '</div>
129
  </div>';
130
 
38
  }
39
 
40
  $datas = implode( ' ', $datas );
41
+ echo '<li ' . $datas . ' style="background-color: ' . $props[ 'colors' ][ 0 ] . '" title="' . esc_attr( $props[ 'name' ] ) . '">';
42
  echo '<i class="' . $props[ 'icon' ] . ' item_icon" ></i> ';
43
  echo '<span>' . $props[ 'name' ] . '</span>';
44
  echo '<i class="fa fa-times sic_action_btn sie_delete_btn" title="' . __( 'Delete icon', 'wpsr' ) . '"></i> ';
113
  }
114
 
115
  $datas = implode( ' ', $datas );
116
+ echo '<li ' . $datas . ' style="background-color: ' . $props[ 'colors' ][ 0 ] . '" title="' . esc_attr( $props[ 'name' ] ) . '">';
117
  echo '<i class="' . $props[ 'icon' ] . ' item_icon" ></i> ';
118
  echo '<span>' . $props[ 'name' ] . '</span>';
119
  echo '<i class="fas fa-plus sic_action_btn sip_add_btn" title="' . __( 'Add icon', 'wpsr' ) . '"></i>';
125
  echo '</ul>';
126
  echo '</section>';
127
 
128
+ echo '<footer style="text-align: left"><a class="button" href="https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=admin&utm_medium=custom_icons&utm_campaign=wpsr-pro" target="_blank">Create custom icon <span class="pro_tag">PRO</span></a></footer>';
129
+
130
  echo '</div>
131
  </div>';
132
 
admin/images/banners/announcer.png DELETED
Binary file
admin/images/banners/super-rss-reader.png DELETED
Binary file
admin/images/banners/ultimate-floating-widgets.png DELETED
Binary file
admin/js/script.js CHANGED
@@ -50,8 +50,6 @@ jQuery(document).ready(function(){
50
 
51
  wpsr_init_image_selects();
52
 
53
- wpsr_promo_slide(1);
54
-
55
  }
56
 
57
  var loc_generate_rules = function(){
@@ -529,6 +527,10 @@ jQuery(document).ready(function(){
529
  window.parent.document.getElementById( cnt_id ).value = cnt_val;
530
  window.parent.document.getElementById( prev_id ).innerHTML = prev_val;
531
 
 
 
 
 
532
  if( window.parent.wpsr_ipopup_close && close_popup ){
533
  window.parent.wpsr_ipopup_close();
534
  }
@@ -862,29 +864,4 @@ function wpsr_init_image_selects(){
862
  $li.attr( 'data-init', 'true' );
863
  }
864
  });
865
- }
866
-
867
- var promo_slide_index = 1;
868
-
869
- function wpsr_next_promo_slide(n, event) {
870
- event.preventDefault();
871
- wpsr_promo_slide(promo_slide_index += n);
872
- }
873
-
874
- function wpsr_promo_slide(n) {
875
- var slides = document.getElementsByClassName('promo_slide');
876
- if(slides.length == 0){
877
- return;
878
- }
879
- var i;
880
- if (n > slides.length) {
881
- promo_slide_index = 1
882
- }
883
- if (n < 1) {
884
- promo_slide_index = slides.length
885
- }
886
- for (i = 0; i < slides.length; i++) {
887
- slides[i].style.display = 'none';
888
- }
889
- slides[promo_slide_index - 1].style.display = 'block';
890
  }
50
 
51
  wpsr_init_image_selects();
52
 
 
 
53
  }
54
 
55
  var loc_generate_rules = function(){
527
  window.parent.document.getElementById( cnt_id ).value = cnt_val;
528
  window.parent.document.getElementById( prev_id ).innerHTML = prev_val;
529
 
530
+ if(typeof window.parent.jQuery !== 'undefined'){
531
+ window.parent.jQuery('#' + cnt_id).trigger('change');
532
+ }
533
+
534
  if( window.parent.wpsr_ipopup_close && close_popup ){
535
  window.parent.wpsr_ipopup_close();
536
  }
864
  $li.attr( 'data-init', 'true' );
865
  }
866
  });
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
867
  }
admin/js/script_post_settings.js ADDED
@@ -0,0 +1,36 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ (function($){
2
+ jQuery(document).ready(function(){
3
+
4
+ var init = function(){
5
+ tabs();
6
+ }
7
+
8
+ var tabs = function(){
9
+
10
+ $('.wpsr_ps_tab_list li:first-child').addClass('active');
11
+ $('.wpsr_ps_tab_wrap > div:first-child').addClass('active');
12
+
13
+ $('.wpsr_ps_tab_list a').click(function(e){
14
+
15
+ e.preventDefault();
16
+
17
+ var id = $(this).attr('href').substr(1);
18
+
19
+ var $tab_list = $(this).closest('.wpsr_ps_tab_list_wrap');
20
+ var $tab_wrap = $tab_list.next('.wpsr_ps_tab_wrap');
21
+
22
+ $tab_wrap.children('div').removeClass('active');
23
+ $tab = $tab_wrap.find('[data-wpsr-tab="' + id + '"]');
24
+ $tab.addClass('active');
25
+
26
+ $tab_list.find('li').removeClass('active');
27
+ $(this).parent().addClass('active');
28
+
29
+ });
30
+
31
+ }
32
+
33
+ init();
34
+
35
+ });
36
+ })( jQuery );
admin/pages/follow-icons.php CHANGED
@@ -268,6 +268,7 @@ class WPSR_Admin_Follow_Icons{
268
  $sb_sites = WPSR_Lists::social_icons();
269
  echo '<script>window.social_icons = ' . json_encode( $sb_sites ) . ';</script>';
270
  echo '<script>window.li_template = \'' . self::li_template() . '\';</script>';
 
271
 
272
  echo '<div id="wpsr_pp_editor">';
273
  echo '<h2>WP Socializer - Follow icons editor</h2>';
@@ -301,10 +302,10 @@ class WPSR_Admin_Follow_Icons{
301
  echo '<li>For Phone use profile URL as <code>tel:YOUR_PHONE_NUMBER</code></li>';
302
  echo '</ul>';
303
 
304
- echo '<p class="wpsr_ppe_footer" align="center"><button class="button button-primary wpsr_ppe_save" data-mode="followbar" data-cnt-id="' . esc_attr( $_GET[ 'cnt_id' ] ) . '" data-prev-id="' . esc_attr( $_GET[ 'prev_id' ] ) . '">Apply settings</button> <button class="button wpsr_ppe_cancel">Cancel</button></p>';
305
 
306
  echo '</div>';
307
-
308
  iframe_footer();
309
  die( 0 );
310
 
@@ -337,7 +338,7 @@ class WPSR_Admin_Follow_Icons{
337
  $prop = $sb_sites[ $id ];
338
 
339
  $editor .= self::li_template( $id, $prop[ 'name' ], $prop[ 'icon' ], $prop[ 'colors' ][0], $btn_obj->$id->url, $btn_obj->$id->icon, $btn_obj->$id->text );
340
- $prev .= '<li style="background-color:' . $prop[ 'colors' ][0] . '"><i class="' . $prop[ 'icon' ] . '"></i></li>';
341
  }
342
 
343
  if( $prev == '' )
@@ -359,7 +360,7 @@ class WPSR_Admin_Follow_Icons{
359
  $label_hover_text = __( 'Button hover text', 'wpsr' );
360
  $label_icon_url = __( 'Icon image URL (optional)', 'wpsr' );
361
 
362
- return '<li data-id="' . $id . '"><h4 style="background-color: ' . $color . '"><i class="' . $icon . ' item_icon"></i>' . $name . '<a href="#" class="fb_item_control fb_item_remove">' . __( 'Delete', 'wpsr' ) . '</a></h4><div><label><span>' . $label_url . '</span><input type="text" class="widefat fb_item_url" placeholder="Enter profile URL" value="' . $url . '" /></label><label><span>' . $label_hover_text . '</span><input type="text" class="widefat fb_btn_text" placeholder="Enter custom text to show for button" title="' . $title . '" value="' . urldecode( $text ) . '"/></label><label><span>' . $label_icon_url . '</span><input type="text" class="widefat fb_icon_url" placeholder="Enter custom Icon URL." title="' . $title . '" value="' . $iurl . '"/></label></div></li>';
363
 
364
  }
365
 
268
  $sb_sites = WPSR_Lists::social_icons();
269
  echo '<script>window.social_icons = ' . json_encode( $sb_sites ) . ';</script>';
270
  echo '<script>window.li_template = \'' . self::li_template() . '\';</script>';
271
+ echo '<style>body{background: #fff;}</style>';
272
 
273
  echo '<div id="wpsr_pp_editor">';
274
  echo '<h2>WP Socializer - Follow icons editor</h2>';
302
  echo '<li>For Phone use profile URL as <code>tel:YOUR_PHONE_NUMBER</code></li>';
303
  echo '</ul>';
304
 
305
+ echo '<p class="wpsr_ppe_footer" align="right"><a href="https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=admin&utm_medium=custom_icons&utm_campaign=wpsr-pro" class="button float_left" target="_blank">Add custom icon <span class="pro_tag">PRO</span></a> <button class="button wpsr_ppe_cancel">Cancel</button> &nbsp; <button class="button button-primary wpsr_ppe_save" data-mode="followbar" data-cnt-id="' . esc_attr( $_GET[ 'cnt_id' ] ) . '" data-prev-id="' . esc_attr( $_GET[ 'prev_id' ] ) . '">Apply settings</button></p>';
306
 
307
  echo '</div>';
308
+
309
  iframe_footer();
310
  die( 0 );
311
 
338
  $prop = $sb_sites[ $id ];
339
 
340
  $editor .= self::li_template( $id, $prop[ 'name' ], $prop[ 'icon' ], $prop[ 'colors' ][0], $btn_obj->$id->url, $btn_obj->$id->icon, $btn_obj->$id->text );
341
+ $prev .= '<li title="' . esc_attr( $prop[ 'name' ] ) . '" style="background-color:' . esc_attr( $prop[ 'colors' ][0] ) . '"><i class="' . esc_attr( $prop[ 'icon' ] ) . '"></i></li>';
342
  }
343
 
344
  if( $prev == '' )
360
  $label_hover_text = __( 'Button hover text', 'wpsr' );
361
  $label_icon_url = __( 'Icon image URL (optional)', 'wpsr' );
362
 
363
+ return '<li data-id="' . $id . '"><h4 style="background-color: ' . $color . '" title="' . esc_attr( $name ) . '"><i class="' . $icon . ' item_icon"></i>' . $name . '<a href="#" class="fb_item_control fb_item_remove">' . __( 'Delete', 'wpsr' ) . '</a></h4><div><label><span>' . $label_url . '</span><input type="text" class="widefat fb_item_url" placeholder="Enter profile URL" value="' . $url . '" /></label><label><span>' . $label_hover_text . '</span><input type="text" class="widefat fb_btn_text" placeholder="Enter custom text to show for button" title="' . $title . '" value="' . urldecode( $text ) . '"/></label><label><span>' . $label_icon_url . '</span><input type="text" class="widefat fb_icon_url" placeholder="Enter custom Icon URL." title="' . $title . '" value="' . $iurl . '"/></label></div></li>';
364
 
365
  }
366
 
admin/pages/general-settings.php CHANGED
@@ -57,6 +57,15 @@ class WPSR_Admin_Settings{
57
  // Share icons settings
58
  $form->section_start( __( 'Share icons settings', 'wpsr' ) );
59
 
 
 
 
 
 
 
 
 
 
60
  $form->label( __( 'Facebook App ID', 'wpsr' ) );
61
  $form->field( 'text', array(
62
  'name' => 'facebook_app_id',
57
  // Share icons settings
58
  $form->section_start( __( 'Share icons settings', 'wpsr' ) );
59
 
60
+ $form->label( __( 'Show share menu', 'wpsr' ) );
61
+ $form->field( 'select', array(
62
+ 'type' => 'number',
63
+ 'name' => 'share_menu',
64
+ 'value' => $values[ 'share_menu' ],
65
+ 'list' => $options[ 'share_menu' ]
66
+ ));
67
+ $form->end();
68
+
69
  $form->label( __( 'Facebook App ID', 'wpsr' ) );
70
  $form->field( 'text', array(
71
  'name' => 'facebook_app_id',
admin/pages/text-sharebar.php CHANGED
@@ -86,6 +86,11 @@ class WPSR_Admin_Text_Sharebar{
86
  echo '<ul class="ssb_selected_list clearfix">';
87
  if( count( $tsb_btns ) > 0 ){
88
  foreach( $tsb_btns as $tsb_item ){
 
 
 
 
 
89
  $sb_info = $sb_sites[ $tsb_item ];
90
  echo '<li title="' . $sb_info[ 'name' ] . '" data-id="' . $tsb_item . '" style="background-color:' . $sb_info['colors'][0] . '"><i class="' . $sb_info[ 'icon' ] . '"></i> <span class="ssb_remove" title="' . __( 'Delete button', 'wpsr' ) . '">x</span></li>';
91
  }
86
  echo '<ul class="ssb_selected_list clearfix">';
87
  if( count( $tsb_btns ) > 0 ){
88
  foreach( $tsb_btns as $tsb_item ){
89
+
90
+ if( !array_key_exists( $tsb_item, $sb_sites ) ){
91
+ continue;
92
+ }
93
+
94
  $sb_info = $sb_sites[ $tsb_item ];
95
  echo '<li title="' . $sb_info[ 'name' ] . '" data-id="' . $tsb_item . '" style="background-color:' . $sb_info['colors'][0] . '"><i class="' . $sb_info[ 'icon' ] . '"></i> <span class="ssb_remove" title="' . __( 'Delete button', 'wpsr' ) . '">x</span></li>';
96
  }
admin/post-settings.php ADDED
@@ -0,0 +1,217 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ defined( 'ABSPATH' ) || exit;
4
+
5
+ class WPSR_Post_Settings{
6
+
7
+ public static function init(){
8
+
9
+ add_action( 'admin_enqueue_scripts', array( __CLASS__, 'enqueue_scripts' ), 10, 1 );
10
+
11
+ add_action( 'add_meta_boxes', array( __CLASS__, 'add_meta_boxes' ) );
12
+
13
+ add_action( 'save_post', array( __CLASS__, 'save_post' ), 10, 2 );
14
+
15
+ }
16
+
17
+ public static function supported_post_types(){
18
+ return array( 'post', 'page' );
19
+ }
20
+
21
+ public static function enqueue_scripts( $hook ){
22
+
23
+ global $post;
24
+
25
+ $post_types = self::supported_post_types();
26
+
27
+ if ( !($hook == 'post.php' || $hook == 'post-new.php') || !in_array( $post->post_type, $post_types ) ) {
28
+ return;
29
+ }
30
+
31
+ wp_enqueue_style( 'wpsr_ps_css', WPSR_ADMIN_URL . 'css/style_post_settings.css', array(), WPSR_VERSION );
32
+
33
+ wp_enqueue_script( 'wpsr_ps_js', WPSR_ADMIN_URL . 'js/script_post_settings.js', array( 'jquery' ), WPSR_VERSION );
34
+
35
+ }
36
+
37
+ public static function add_meta_boxes(){
38
+
39
+ $post_types = self::supported_post_types();
40
+
41
+ foreach( $post_types as $post_type ){
42
+ add_meta_box( 'wpsr_post_settings', 'WP Socializer', array( __CLASS__, 'post_settings' ), $post_type, 'normal', 'default' );
43
+ }
44
+
45
+ }
46
+
47
+ public static function post_settings( $post ){
48
+
49
+ $options = WPSR_Options::options( 'post_settings' );
50
+ $values = WPSR_Lists::post_settings( $post );
51
+ $form = new WPSR_Form();
52
+
53
+ echo '<div class="wpsr_ps_wrap">';
54
+
55
+ echo '<div class="wpsr_ps_tab_list_wrap">';
56
+ echo '<ul class="wpsr_ps_tab_list">';
57
+ echo '<li><a href="#features" class="active" data-wpsr-tab-id="features"><span class="dashicons dashicons-share"></span> ' . __( 'Features', 'wp-socializer' ) . '</a></li>';
58
+ echo '<li><a href="#sharing-information" data-wpsr-tab-id="sharing-information"><span class="dashicons dashicons-info"></span> ' . __( 'Sharing information', 'wp-socializer' ) . '</a></li>';
59
+ echo '</ul>';
60
+ echo '</div>';
61
+
62
+ echo '<div class="wpsr_ps_tab_wrap">';
63
+ self::tab_features( $form, $values, $options );
64
+ self::tab_sharing_information( $form, $values, $options );
65
+ echo '</div>';
66
+
67
+ echo '</div>';
68
+
69
+ wp_nonce_field( 'wpsr_post_settings_nonce', '_wpsr_ps_nonce' );
70
+
71
+ }
72
+
73
+ public static function tab_features( $form, $values, $options ){
74
+
75
+ echo '<div data-wpsr-tab="features">';
76
+
77
+ echo '<p class="wpsr_ps_head">' . __( 'Disable below social features on this post in specific if they are enabled.', 'wp-socializer' ) . '</p>';
78
+
79
+ $form->label( __( 'Share icons', 'wpsr' ) );
80
+ $form->field( 'select', array(
81
+ 'type' => 'number',
82
+ 'name' => 'wpsr_disable_share_icons',
83
+ 'value' => $values[ 'wpsr_disable_share_icons' ],
84
+ 'list' => $options[ 'wpsr_disable_share_icons' ]
85
+ ));
86
+ $form->end();
87
+
88
+ $form->label( __( 'Floating sharebar', 'wpsr' ) );
89
+ $form->field( 'select', array(
90
+ 'type' => 'number',
91
+ 'name' => 'wpsr_disable_floating_sharebar',
92
+ 'value' => $values[ 'wpsr_disable_floating_sharebar' ],
93
+ 'list' => $options[ 'wpsr_disable_floating_sharebar' ]
94
+ ));
95
+ $form->end();
96
+
97
+ $form->label( __( 'Follow icons', 'wpsr' ) );
98
+ $form->field( 'select', array(
99
+ 'type' => 'number',
100
+ 'name' => 'wpsr_disable_follow_icons',
101
+ 'value' => $values[ 'wpsr_disable_follow_icons' ],
102
+ 'list' => $options[ 'wpsr_disable_follow_icons' ]
103
+ ));
104
+ $form->end();
105
+
106
+ $form->label( __( 'Text sharebar', 'wpsr' ) );
107
+ $form->field( 'select', array(
108
+ 'type' => 'number',
109
+ 'name' => 'wpsr_disable_text_sharebar',
110
+ 'value' => $values[ 'wpsr_disable_text_sharebar' ],
111
+ 'list' => $options[ 'wpsr_disable_text_sharebar' ]
112
+ ));
113
+ $form->end();
114
+
115
+ $form->build( 'wpsr' );
116
+
117
+ echo '</div>';
118
+
119
+ }
120
+
121
+ public static function tab_sharing_information( $form, $values, $options ){
122
+
123
+ global $post;
124
+
125
+ echo '<div data-wpsr-tab="sharing-information">';
126
+
127
+ echo '<div class="notice notice-success inline"><p>Do you know you can change the <b>tweet text</b>, <b>share URL</b>, <b>title</b> and more which are sent for sharing ? You can with WP Socializer - PRO version. Below are the sample options.</p>
128
+ <p><a href="https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=admin&utm_medium=post_settings&utm_campaign=wpsr-pro" target="_blank" class="button button-primary">Upgrade to WP Socializer - PRO</a></p>
129
+ </div>';
130
+
131
+ $form->label( __( 'Twitter tweet text', 'wpsr' ) );
132
+ $form->field( 'textarea', array(
133
+ 'value' => '{title} - {url} {twitter-username}',
134
+ 'class' => 'widefat',
135
+ 'readonly' => 'readonly'
136
+ ));
137
+ $form->end();
138
+
139
+ $form->label( __( 'Share URL for this post', 'wpsr' ) );
140
+ $form->field( 'text', array(
141
+ 'value' => get_the_permalink(),
142
+ 'class' => 'widefat',
143
+ 'readonly' => 'readonly',
144
+ 'helper' => 'Set a different URL to share for this post'
145
+ ));
146
+ $form->end();
147
+
148
+ $form->label( __( 'Share title for this post', 'wpsr' ) );
149
+ $form->field( 'text', array(
150
+ 'value' => $post->post_title,
151
+ 'class' => 'widefat',
152
+ 'readonly' => 'readonly',
153
+ 'helper' => 'Set a different title to share for this post',
154
+ ));
155
+ $form->end();
156
+
157
+ $form->label( __( 'Share short URL for this post', 'wpsr' ) );
158
+ $form->field( 'text', array(
159
+ 'value' => wp_get_shortlink( $post->ID ),
160
+ 'class' => 'widefat',
161
+ 'readonly' => 'readonly',
162
+ 'helper' => 'Set a different short URL to share for this post'
163
+ ));
164
+ $form->end();
165
+
166
+ $form->label( __( 'Always use Short URL to share this post instead of full URL', 'wpsr' ) );
167
+ $form->field( 'select', array(
168
+ 'type' => 'number',
169
+ 'value' => 'no',
170
+ 'disabled' => 'disabled',
171
+ 'list' => array(
172
+ 'no' => 'No',
173
+ 'yes' => 'Yes'
174
+ )
175
+ ));
176
+ $form->end();
177
+
178
+ $form->build( 'wpsr' );
179
+
180
+ echo '</div>';
181
+
182
+ }
183
+
184
+ public static function save_post( $post_id, $post ){
185
+
186
+ if ( !isset( $_POST[ '_wpsr_ps_nonce' ] ) || !wp_verify_nonce( $_POST[ '_wpsr_ps_nonce' ], 'wpsr_post_settings_nonce' ) ) {
187
+ return $post_id;
188
+ }
189
+
190
+ $post_type = get_post_type_object( $post->post_type );
191
+
192
+ if ( !current_user_can( $post_type->cap->edit_post, $post_id ) ) {
193
+ return $post_id;
194
+ }
195
+
196
+ if ( defined( 'DOING_AUTOSAVE') && DOING_AUTOSAVE ) {
197
+ return $post_id;
198
+ }
199
+
200
+ $settings = WPSR_Options::post_settings();
201
+ $new_settings = array();
202
+
203
+ foreach( $settings as $name => $options ){
204
+ if( isset( $_POST[ $name ] ) ) {
205
+ $new_settings[ $name ] = sanitize_text_field( $_POST[ $name ] );
206
+ }
207
+ }
208
+
209
+ update_post_meta( $post_id, 'wpsr_post_settings', $new_settings );
210
+
211
+ }
212
+
213
+ }
214
+
215
+ WPSR_Post_Settings::init();
216
+
217
+ ?>
core/html-tag.php ADDED
@@ -0,0 +1,91 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Generates the HTML tag
4
+ *
5
+ */
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_HTML_Tag{
10
+
11
+ public $tag = null;
12
+
13
+ public $style = array();
14
+
15
+ public $class = array();
16
+
17
+ public $data = array();
18
+
19
+ public $attrs = array();
20
+
21
+ public function __construct( $tag, $default_class = '', $default_style = array() ){
22
+ $this->tag = $tag;
23
+ if( !empty( $default_class ) ){
24
+ $this->class = explode( ' ', $default_class );
25
+ }
26
+ if( !empty( $default_style ) ){
27
+ $this->style = $default_style;
28
+ }
29
+ }
30
+
31
+ public function add_class( $class ){
32
+ array_push( $this->class, $class );
33
+ }
34
+
35
+ public function add_style( $prop, $val ){
36
+ $this->style[ $prop ] = $val;
37
+ }
38
+
39
+ public function add_data( $name, $val ){
40
+ $this->data[ $name ] = $val;
41
+ }
42
+
43
+ public function add_attr( $name, $val ){
44
+ $this->attrs[ $name ] = $val;
45
+ }
46
+
47
+ public function open(){
48
+ $all_attrs = array();
49
+
50
+ if( !empty( $this->class ) ){
51
+ $all_attrs[ 'class' ] = implode( ' ', $this->class );
52
+ }
53
+
54
+ if( !empty( $this->data ) ){
55
+ foreach( $this->data as $name => $val ){
56
+ $all_attrs[ 'data-' . $name ] = $val;
57
+ }
58
+ }
59
+
60
+ $all_attrs[ 'style' ] = self::build_style( $this->style );
61
+
62
+ $all_attrs = array_merge( $all_attrs, $this->attrs );
63
+
64
+ $attr_string = '';
65
+ foreach( $all_attrs as $name => $val ){
66
+ if( empty( $val ) ){
67
+ continue;
68
+ }
69
+ $attr_string .= $name . '="' . esc_attr( $val ) . '"';
70
+ }
71
+
72
+ return '<' . $this->tag . ' ' . $attr_string . '>';
73
+ }
74
+
75
+ public function close(){
76
+ return '</' . $this->tag . '>';
77
+ }
78
+
79
+ public static function build_style( $styles ){
80
+ $style = '';
81
+ if( !empty( $styles ) ){
82
+ foreach( $styles as $prop => $val ){
83
+ $style .= $prop . ':' . $val . ';';
84
+ }
85
+ }
86
+ return $style;
87
+ }
88
+
89
+ }
90
+
91
+ ?>
core/includes.php CHANGED
@@ -56,13 +56,6 @@ class WPSR_Includes{
56
  'deps' => array(),
57
  'version' => WPSR_VERSION
58
  ),
59
-
60
- 'ajax_url' => array(
61
- 'type' => 'js',
62
- 'code' => '<script>var wpsr_ajax_url = "' . esc_attr( admin_url( 'admin-ajax.php' ) ) . '";</script>',
63
- 'deps' => array(),
64
- 'version' => WPSR_VERSION
65
- ),
66
 
67
  'fa_icons' => array(
68
  'type' => 'css',
@@ -225,6 +218,12 @@ class WPSR_Includes{
225
  }
226
  }
227
 
 
 
 
 
 
 
228
  }
229
 
230
  public static function preview_print_includes(){
56
  'deps' => array(),
57
  'version' => WPSR_VERSION
58
  ),
 
 
 
 
 
 
 
59
 
60
  'fa_icons' => array(
61
  'type' => 'css',
218
  }
219
  }
220
 
221
+ $inline_vars = apply_filters( 'wpsr_mod_inline_vars', array(
222
+ 'ajax_url' => admin_url( 'admin-ajax.php' )
223
+ ));
224
+
225
+ wp_localize_script( 'wpsr_main_js', 'wp_socializer', $inline_vars );
226
+
227
  }
228
 
229
  public static function preview_print_includes(){
core/lists.php CHANGED
@@ -208,7 +208,7 @@ class WPSR_Lists{
208
  'name' => 'Email',
209
  'title' => __('Email this ', 'wpsr') . '',
210
  'icon' => array('fa4'=> 'fa fa-envelope', 'fa5' => 'fa fa-envelope'),
211
- 'link' => 'mailto:?subject={title-plain}&body={excerpt-plain}%20-%20{url}',
212
  'link_tsb' => 'mailto:?to=&subject={title}&body={excerpt}%20-%20{url}',
213
  'options' => array(),
214
  'features' => array( 'for_share', 'for_profile', 'for_tsb' ),
@@ -478,6 +478,16 @@ class WPSR_Lists{
478
  'colors' => array( '#333' ),
479
  ),
480
 
 
 
 
 
 
 
 
 
 
 
481
  'snapchat' => array(
482
  'name' => 'Snapchat',
483
  'title' => __('', 'wpsr') . 'Snapchat',
@@ -723,6 +733,19 @@ class WPSR_Lists{
723
 
724
  }
725
 
 
 
 
 
 
 
 
 
 
 
 
 
 
726
  }
727
 
728
  WPSR_Lists::init();
208
  'name' => 'Email',
209
  'title' => __('Email this ', 'wpsr') . '',
210
  'icon' => array('fa4'=> 'fa fa-envelope', 'fa5' => 'fa fa-envelope'),
211
+ 'link' => 'mailto:?subject={title}&body={excerpt}%20-%20{url}',
212
  'link_tsb' => 'mailto:?to=&subject={title}&body={excerpt}%20-%20{url}',
213
  'options' => array(),
214
  'features' => array( 'for_share', 'for_profile', 'for_tsb' ),
478
  'colors' => array( '#333' ),
479
  ),
480
 
481
+ 'sms' => array(
482
+ 'name' => 'SMS',
483
+ 'title' => __('Share via ', 'wpsr') . 'SMS',
484
+ 'icon' => array('fa4'=> 'fa fa-sms', 'fa5' => 'fa fa-sms'),
485
+ 'link' => 'sms:?&body={title}%20{url}',
486
+ 'options' => array(),
487
+ 'features' => array( 'for_share' ),
488
+ 'colors' => array( '#35d54f' ),
489
+ ),
490
+
491
  'snapchat' => array(
492
  'name' => 'Snapchat',
493
  'title' => __('', 'wpsr') . 'Snapchat',
733
 
734
  }
735
 
736
+ public static function post_settings( $post ){
737
+
738
+ $defaults = WPSR_Options::default_values( 'post_settings' );
739
+ $current_settings = array();
740
+
741
+ if( is_object( $post ) ){
742
+ $current_settings = get_post_meta( $post->ID, 'wpsr_post_settings', true );
743
+ }
744
+
745
+ return WPSR_Lists::set_defaults( $current_settings, $defaults );
746
+
747
+ }
748
+
749
  }
750
 
751
  WPSR_Lists::init();
core/metadata.php CHANGED
@@ -29,7 +29,7 @@ class WPSR_Metadata{
29
 
30
  }
31
 
32
- public static function metadata(){
33
 
34
  $page_info = self::page_info();
35
  $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
@@ -43,12 +43,18 @@ class WPSR_Metadata{
43
 
44
  $metadata = array_merge( $page_info, $misc_info );
45
  $metadata = WPSR_Lists::set_defaults( $metadata, self::$defaults );
46
- $metadata = apply_filters( 'wpsr_mod_metadata', $metadata );
47
 
48
  return $metadata;
49
 
50
  }
51
 
 
 
 
 
 
 
 
52
  public static function page_info(){
53
 
54
  global $post;
@@ -114,7 +120,7 @@ class WPSR_Metadata{
114
  'url' => get_month_link( get_query_var( 'year' ), get_query_var( 'monthnum' ) )
115
  );
116
 
117
- }elseif( is_year ){
118
 
119
  $d = array(
120
  'title' => wp_title( '', false ),
@@ -196,31 +202,43 @@ class WPSR_Metadata{
196
 
197
  }
198
 
199
- public static function replace_params( $text, $metadata = array() ){
200
 
201
- $metadata = wp_parse_args( $metadata, self::$defaults);
 
 
 
 
202
 
203
- $all_params = array(
204
- '{url}' => $metadata[ 'url' ],
205
- '{title}' => urlencode( $metadata[ 'title' ] ),
206
- '{excerpt}' => urlencode( $metadata[ 'excerpt' ] ),
207
- '{title-plain}' => $metadata[ 'title' ],
208
- '{excerpt-plain}' => $metadata[ 'excerpt' ],
209
- '{image}' => $metadata[ 'post_image' ],
210
-
211
- '{short-url}' => $metadata[ 'short_url' ],
212
- '{rss-url}' => $metadata[ 'rss_url' ],
213
- '{comments-section}' => $metadata[ 'comments_section' ],
214
 
215
- '{twitter-username}' => $metadata[ 'twitter_username' ],
216
- '{fb-app-id}' => $metadata[ 'fb_app_id' ],
217
- '{fb-app-secret}' => $metadata[ 'fb_app_secret' ]
218
  );
219
 
220
- $params = array_keys( $all_params );
221
- $param_values = array_values( $all_params );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
222
 
223
- return str_ireplace( $params, $param_values, $text );
224
 
225
  }
226
 
29
 
30
  }
31
 
32
+ public static function metadata_raw(){
33
 
34
  $page_info = self::page_info();
35
  $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
43
 
44
  $metadata = array_merge( $page_info, $misc_info );
45
  $metadata = WPSR_Lists::set_defaults( $metadata, self::$defaults );
 
46
 
47
  return $metadata;
48
 
49
  }
50
 
51
+ public static function metadata(){
52
+
53
+ $metadata = self::metadata_raw();
54
+ return apply_filters( 'wpsr_mod_metadata', $metadata );
55
+
56
+ }
57
+
58
  public static function page_info(){
59
 
60
  global $post;
120
  'url' => get_month_link( get_query_var( 'year' ), get_query_var( 'monthnum' ) )
121
  );
122
 
123
+ }elseif( is_year() ){
124
 
125
  $d = array(
126
  'title' => wp_title( '', false ),
202
 
203
  }
204
 
205
+ public static function map_metadata_params( $metadata ){
206
 
207
+ $params = array(
208
+ 'url' => $metadata[ 'url' ],
209
+ 'title' => $metadata[ 'title' ],
210
+ 'excerpt' => $metadata[ 'excerpt' ],
211
+ 'image' => $metadata[ 'post_image' ],
212
 
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' ],
219
+ 'fb-app-secret' => $metadata[ 'fb_app_secret' ]
220
  );
221
 
222
+ return apply_filters( 'wpsr_mod_metadata_params_map', $params );
223
+
224
+ }
225
+
226
+ public static function replace_params( $text, $metadata = array() ){
227
+
228
+ $metadata = wp_parse_args( $metadata, self::$defaults);
229
+ $params_raw = self::map_metadata_params( $metadata );
230
+ $param_tags = array();
231
+ $param_values = array();
232
+
233
+ foreach( $params_raw as $param => $value ){
234
+ if( in_array( $param, array( 'url', 'title', 'excerpt' ) ) ){
235
+ $value = rawurlencode( $value );
236
+ }
237
+ array_push( $param_tags, '{' . $param . '}' );
238
+ array_push( $param_values, $value );
239
+ }
240
 
241
+ return str_ireplace( $param_tags, $param_values, $text );
242
 
243
  }
244
 
core/options.php CHANGED
@@ -527,6 +527,13 @@ class WPSR_Options{
527
  return array(
528
 
529
  // Share icons
 
 
 
 
 
 
 
530
  'facebook_app_id' => array(
531
  'default' => '',
532
  'options' => false
@@ -575,6 +582,43 @@ class WPSR_Options{
575
 
576
  }
577
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
578
  }
579
 
580
  ?>
527
  return array(
528
 
529
  // Share icons
530
+ 'share_menu' => array(
531
+ 'default' => 'yes',
532
+ 'options' => array(
533
+ 'no' => __( 'No', 'wpsr' ),
534
+ 'yes' => __( 'Yes', 'wpsr' )
535
+ )
536
+ ),
537
  'facebook_app_id' => array(
538
  'default' => '',
539
  'options' => false
582
 
583
  }
584
 
585
+ public static function post_settings(){
586
+
587
+ return array(
588
+
589
+ 'wpsr_disable_share_icons' => array(
590
+ 'default' => 'no',
591
+ 'options' => array(
592
+ 'no' => __( 'No', 'wpsr' ),
593
+ 'yes' => __( 'Yes', 'wpsr' )
594
+ )
595
+ ),
596
+ 'wpsr_disable_floating_sharebar' => array(
597
+ 'default' => 'no',
598
+ 'options' => array(
599
+ 'no' => __( 'No', 'wpsr' ),
600
+ 'yes' => __( 'Yes', 'wpsr' )
601
+ )
602
+ ),
603
+ 'wpsr_disable_follow_icons' => array(
604
+ 'default' => 'no',
605
+ 'options' => array(
606
+ 'no' => __( 'No', 'wpsr' ),
607
+ 'yes' => __( 'Yes', 'wpsr' )
608
+ )
609
+ ),
610
+ 'wpsr_disable_text_sharebar' => array(
611
+ 'default' => 'no',
612
+ 'options' => array(
613
+ 'no' => __( 'No', 'wpsr' ),
614
+ 'yes' => __( 'Yes', 'wpsr' )
615
+ )
616
+ ),
617
+
618
+ );
619
+
620
+ }
621
+
622
  }
623
 
624
  ?>
core/share-counter.php CHANGED
@@ -196,10 +196,11 @@ class WPSR_Share_Counter{
196
 
197
  }
198
 
199
- public static function placeholder( $url, $services, $class='ctext' ){
200
 
201
  $services = (array) $services;
202
  $share_icon = '<i class="fa fa-share-alt" aria-hidden="true"></i>';
 
203
 
204
  // Always get share count from ajax in if caching plugin is enabled
205
  if( ( defined( 'WP_CACHE' ) && WP_CACHE ) || !self::is_cached( $url, $services ) ){
@@ -257,7 +258,7 @@ class WPSR_Share_Counter{
257
  $settings = WPSR_Lists::set_defaults( $settings, $default_values );
258
  $html = '';
259
 
260
- $total_holder = self::placeholder( $page_info[ 'url' ], $settings[ 'add_services' ], 'scount' );
261
 
262
  $classes = array( 'wpsr-counter', 'wpsrc-sz-' . $settings[ 'size' ] );
263
 
196
 
197
  }
198
 
199
+ public static function placeholder( $page_info, $services, $class='ctext' ){
200
 
201
  $services = (array) $services;
202
  $share_icon = '<i class="fa fa-share-alt" aria-hidden="true"></i>';
203
+ $url = array_key_exists( '_original_url', $page_info ) ? $page_info[ '_original_url' ] : $page_info[ 'url' ];
204
 
205
  // Always get share count from ajax in if caching plugin is enabled
206
  if( ( defined( 'WP_CACHE' ) && WP_CACHE ) || !self::is_cached( $url, $services ) ){
258
  $settings = WPSR_Lists::set_defaults( $settings, $default_values );
259
  $html = '';
260
 
261
+ $total_holder = self::placeholder( $page_info, $settings[ 'add_services' ], 'scount' );
262
 
263
  $classes = array( 'wpsr-counter', 'wpsrc-sz-' . $settings[ 'size' ] );
264
 
core/templates/floating-sharebar.php CHANGED
@@ -16,6 +16,16 @@ class WPSR_Template_Floating_Sharebar{
16
 
17
  public static function output(){
18
 
 
 
 
 
 
 
 
 
 
 
19
  $fsb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_floating_sharebar_settings' ), WPSR_Options::default_values( 'floating_sharebar' ) );
20
  $loc_rules_answer = WPSR_Location_Rules::check_rule( $fsb_settings[ 'loc_rules' ] );
21
 
@@ -36,45 +46,37 @@ class WPSR_Template_Floating_Sharebar{
36
  $counter_services = WPSR_Share_Counter::counter_services();
37
  $selected_icons = json_decode( base64_decode( $o[ 'selected_icons' ] ) );
38
 
39
- $classes = array( 'socializer', 'sr-popup', 'sr-vertical' );
40
 
41
- if( $o[ 'icon_size' ] != '' ){
42
- array_push( $classes, 'sr-' . $o[ 'icon_size' ] );
43
- }
44
 
45
- if( $o[ 'icon_shape' ] != '' ){
46
- array_push( $classes, 'sr-' . $o[ 'icon_shape' ] );
47
- array_push( $classes, 'sr-pad' );
 
48
  }
49
 
50
- if( $o[ 'hover_effect' ] != '' ){
51
- array_push( $classes, 'sr-' . $o[ 'hover_effect' ] );
52
  }
53
 
54
- if( $o[ 'padding' ] != '' && $o[ 'icon_shape' ] == '' ){
55
- array_push( $classes, 'sr-' . $o[ 'padding' ] );
56
- }
57
-
58
- $styles = array();
59
- if ( $o[ 'icon_bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $o[ 'icon_bg_color' ] );
60
- if ( $o[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $o[ 'icon_color' ] );
61
- $style = join( ';', $styles );
62
- $style = ( $style != '' ) ? ' style="' . $style . '"' : '';
63
-
64
- $icons_html = array();
65
-
66
- $counters_selected = array();
67
 
68
  foreach( $selected_icons as $icon ){
69
 
70
  $id = key( $icon );
71
- $props = $social_icons[ $id ];
72
- $icon_classes = array( 'sr-' . $id );
73
 
74
  if( !array_key_exists( $id, $social_icons ) ){
75
  continue;
76
  }
77
 
 
 
 
 
 
78
  $settings = WPSR_Lists::set_defaults( (array) $icon->$id, array(
79
  'icon' => '',
80
  'text' => '',
@@ -90,7 +92,6 @@ class WPSR_Template_Floating_Sharebar{
90
  }
91
 
92
  $url = WPSR_Metadata::replace_params( $props[ 'link' ], $page_info );
93
- $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
94
 
95
  $icon = '';
96
  if( $settings[ 'icon' ] == '' ){
@@ -98,7 +99,7 @@ class WPSR_Template_Floating_Sharebar{
98
  }else{
99
  $icon_val = $settings[ 'icon' ];
100
  if (strpos( $settings[ 'icon' ], 'http' ) === 0) {
101
- $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $id ) . '" height="50%" />';
102
  }else{
103
  $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
104
  }
@@ -113,26 +114,41 @@ class WPSR_Template_Floating_Sharebar{
113
 
114
  $count_tag = '';
115
  if( ( $o[ 'share_counter' ] == 'individual' || $o[ 'share_counter' ] == 'total-individual' ) && array_key_exists( $id, $counter_services) ){
116
- $count_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $id, 'ctext' );
117
  $count_tag = $count_holder;
118
- array_push( $classes, 'sr-' . $o[ 'sc_style' ] );
119
  if( $o[ 'sc_style' ] != 'count-1' ){
120
- array_push( $icon_classes, 'sr-text-in' );
121
  }
122
  }
123
  array_push( $counters_selected, $id );
124
 
125
- $data_attr = '';
126
  if( $id == 'pinterest' ){
127
- $data_attr = '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
- $data_attr .= ' data-mobile="' . $mobile_link . '"';
 
 
 
 
 
 
 
 
 
 
 
 
 
133
  }
134
 
135
- $ihtml = '<span class="' . implode( ' ', $icon_classes ) . '"><a rel="nofollow" href="' . esc_attr( $url ) . '" target="_blank" ' . $onclick . ' title="' . esc_attr( $title ) . '" ' . $style . ' ' . $data_attr . '>' . $icon . $count_tag . '</a></span>';
 
 
 
136
  array_push( $icons_html, $ihtml );
137
 
138
  }
@@ -140,12 +156,35 @@ class WPSR_Template_Floating_Sharebar{
140
  if( intval( $o[ 'more_icons' ] ) > 0 ){
141
  $more_count = intval( $o[ 'more_icons' ] );
142
  $more_icons = array_slice( $icons_html, -$more_count, $more_count );
143
- $more_html = '<span class="sr-more"><a href="#" target="_blank" title="More sites" ' . $style . '><i class="fa fa-share-alt"></i></a><ul class="socializer">' . implode( "\n", $more_icons ) . '</ul></span>';
144
  $icons_html = array_slice( $icons_html, 0, -$more_count );
145
  array_push( $icons_html, $more_html );
146
  }
147
 
148
- $all_icons_html = '<div class="' . implode( " ", $classes ) . '">' . implode( "\n", $icons_html ) . '</div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
149
  $row_html = $all_icons_html;
150
  $html = '';
151
 
@@ -167,46 +206,40 @@ class WPSR_Template_Floating_Sharebar{
167
 
168
  }
169
 
170
- $wrap_classes = array( 'wp-socializer wpsr-sharebar wpsr-sb-vl wpsr-hide' );
171
- $wrap_styles = array();
172
-
173
- array_push( $wrap_classes, 'wpsr-sb-vl-' . $o[ 'sb_position' ] );
174
- array_push( $wrap_classes, 'wpsr-sb-vl-' . $o[ 'movement' ] );
175
 
176
  if( $o[ 'style' ] == 'enclosed' ){
177
- array_push( $wrap_classes, 'wpsr-sb-simple' );
178
  }
179
 
180
- array_push( $wrap_styles, ( $o[ 'sb_position' ] == 'wleft' ? 'left' : ( $o[ 'sb_position' ] == 'scontent' ? 'margin-left' : 'right' ) ) . ':' . $o[ 'offset' ] );
 
 
181
 
182
- if($o['style'] == 'enclosed'){
183
- array_push( $wrap_styles, 'background-color: ' . $o[ 'sb_bg_color' ] );
184
  }
185
 
186
- $wrap_classes = implode( ' ', $wrap_classes );
187
- $wrap_styles = implode( ';', $wrap_styles );
 
 
 
 
 
188
 
189
  $open_icon = WPSR_Lists::public_icons( 'sb_open' );
190
  $close_icon = WPSR_Lists::public_icons( 'sb_close' );
191
 
192
- $data_attrs = array(
193
- 'stick-to' => esc_attr( $o[ 'stick_element' ] ),
194
- 'lg-action' => esc_attr( $o[ 'lg_screen_action' ] ),
195
- 'sm-action' => esc_attr( $o[ 'sm_screen_action' ] ),
196
- 'sm-width' => esc_attr( $o[ 'sm_screen_width' ] ),
197
- );
198
- $data = '';
199
- foreach( $data_attrs as $id => $val ){
200
- if( empty( $val ) ) continue;
201
- $data .= 'data-' . $id . '="' . $val . '" ';
202
- }
203
-
204
- $html .= '<div class="' . $wrap_classes . '" style="' . $wrap_styles . '" ' . $data . '>';
205
  $html .= '<div class="wpsr-sb-inner">';
206
  $html .= $row_html;
207
  $html .= '</div>';
208
  $html .= '<div class="wpsr-sb-close wpsr-close-btn" title="Open or close sharebar"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
209
- $html .= '</div>';
210
 
211
  return $html;
212
 
16
 
17
  public static function output(){
18
 
19
+ if( is_admin() ){
20
+ return;
21
+ }
22
+
23
+ global $post;
24
+ $post_settings = WPSR_Lists::post_settings( $post );
25
+ if( $post_settings[ 'wpsr_disable_floating_sharebar' ] == 'yes' ){
26
+ return;
27
+ }
28
+
29
  $fsb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_floating_sharebar_settings' ), WPSR_Options::default_values( 'floating_sharebar' ) );
30
  $loc_rules_answer = WPSR_Location_Rules::check_rule( $fsb_settings[ 'loc_rules' ] );
31
 
46
  $counter_services = WPSR_Share_Counter::counter_services();
47
  $selected_icons = json_decode( base64_decode( $o[ 'selected_icons' ] ) );
48
 
49
+ $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
50
 
51
+ $scr_tag = new WPSR_HTML_Tag( 'div', 'socializer sr-popup sr-vertical' );
52
+ $icons_html = array();
53
+ $counters_selected = array();
54
 
55
+ // Icon default styles
56
+ $icon_styles = array();
57
+ if ( $o[ 'icon_bg_color' ] != '' ){
58
+ $icon_styles[ 'background-color' ] = $o[ 'icon_bg_color' ];
59
  }
60
 
61
+ if ( $o[ 'icon_color' ] != '' ){
62
+ $icon_styles[ 'color' ] = $o[ 'icon_color' ];
63
  }
64
 
65
+ $icon_styles_attr = 'style="' . WPSR_HTML_Tag::build_style( $icon_styles ) . '"';
 
 
 
 
 
 
 
 
 
 
 
 
66
 
67
  foreach( $selected_icons as $icon ){
68
 
69
  $id = key( $icon );
 
 
70
 
71
  if( !array_key_exists( $id, $social_icons ) ){
72
  continue;
73
  }
74
 
75
+ $props = $social_icons[ $id ];
76
+
77
+ $icon_wrap_tag = new WPSR_HTML_Tag( 'span', 'sr-' . $id );
78
+ $icon_tag = new WPSR_HTML_Tag( 'a', '', $icon_styles );
79
+
80
  $settings = WPSR_Lists::set_defaults( (array) $icon->$id, array(
81
  'icon' => '',
82
  'text' => '',
92
  }
93
 
94
  $url = WPSR_Metadata::replace_params( $props[ 'link' ], $page_info );
 
95
 
96
  $icon = '';
97
  if( $settings[ 'icon' ] == '' ){
99
  }else{
100
  $icon_val = $settings[ 'icon' ];
101
  if (strpos( $settings[ 'icon' ], 'http' ) === 0) {
102
+ $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $props[ 'name' ] ) . '" />';
103
  }else{
104
  $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
105
  }
114
 
115
  $count_tag = '';
116
  if( ( $o[ 'share_counter' ] == 'individual' || $o[ 'share_counter' ] == 'total-individual' ) && array_key_exists( $id, $counter_services) ){
117
+ $count_holder = WPSR_Share_Counter::placeholder( $page_info, $id, 'ctext' );
118
  $count_tag = $count_holder;
119
+ $scr_tag->add_class( 'sr-' . $o[ 'sc_style' ] );
120
  if( $o[ 'sc_style' ] != 'count-1' ){
121
+ $icon_wrap_tag->add_class( 'sr-text-in' );
122
  }
123
  }
124
  array_push( $counters_selected, $id );
125
 
 
126
  if( $id == 'pinterest' ){
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 );
133
+ }
134
+
135
+ $icon_tag->add_data( 'id', $id );
136
+
137
+ $icon_tag->attrs = array(
138
+ 'rel' => 'nofollow',
139
+ 'href' => $url,
140
+ 'target' => '_blank',
141
+ 'title' => $title,
142
+ );
143
+
144
+ if( isset( $props[ 'onclick' ] ) ){
145
+ $icon_tag->add_attr( 'onclick', $props[ 'onclick' ] );
146
  }
147
 
148
+ $ihtml = $icon_wrap_tag->open();
149
+ $ihtml .= $icon_tag->open() . $icon . $count_tag . $icon_tag->close();
150
+ $ihtml .= $icon_wrap_tag->close();
151
+
152
  array_push( $icons_html, $ihtml );
153
 
154
  }
156
  if( intval( $o[ 'more_icons' ] ) > 0 ){
157
  $more_count = intval( $o[ 'more_icons' ] );
158
  $more_icons = array_slice( $icons_html, -$more_count, $more_count );
159
+ $more_html = '<span class="sr-more"><a href="#" target="_blank" title="More sites" ' . $icon_styles_attr . '><i class="fa fa-share-alt"></i></a><ul class="socializer">' . implode( "\n", $more_icons ) . '</ul></span>';
160
  $icons_html = array_slice( $icons_html, 0, -$more_count );
161
  array_push( $icons_html, $more_html );
162
  }
163
 
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
170
+ if( $o[ 'icon_size' ] != '' ){
171
+ $scr_tag->add_class( 'sr-' . $o[ 'icon_size' ] );
172
+ }
173
+
174
+ if( $o[ 'icon_shape' ] != '' ){
175
+ $scr_tag->add_class( 'sr-' . $o[ 'icon_shape' ] );
176
+ $scr_tag->add_class( 'sr-pad' );
177
+ }
178
+
179
+ if( $o[ 'hover_effect' ] != '' ){
180
+ $scr_tag->add_class( 'sr-' . $o[ 'hover_effect' ] );
181
+ }
182
+
183
+ if( $o[ 'padding' ] != '' && $o[ 'icon_shape' ] == '' ){
184
+ $scr_tag->add_class( 'sr-' . $o[ 'padding' ] );
185
+ }
186
+
187
+ $all_icons_html = $scr_tag->open() . implode( "\n", $icons_html ) . $scr_tag->close();
188
  $row_html = $all_icons_html;
189
  $html = '';
190
 
206
 
207
  }
208
 
209
+ // Wrap classes
210
+ $wrap_tag = new WPSR_HTML_Tag( 'div', 'wp-socializer wpsr-sharebar wpsr-sb-vl wpsr-hide' );
211
+ $wrap_tag->add_class( 'wpsr-sb-vl-' . $o[ 'sb_position' ] );
212
+ $wrap_tag->add_class( 'wpsr-sb-vl-' . $o[ 'movement' ] );
 
213
 
214
  if( $o[ 'style' ] == 'enclosed' ){
215
+ $wrap_tag->add_class( 'wpsr-sb-simple' );
216
  }
217
 
218
+ // Wrap styles
219
+ $pos_style = ( $o[ 'sb_position' ] == 'wleft' ) ? 'left' : ( ( $o[ 'sb_position' ] == 'scontent' ) ? 'margin-left' : 'right' );
220
+ $wrap_tag->add_style( $pos_style, $o[ 'offset' ] );
221
 
222
+ if( $o['style'] == 'enclosed' ){
223
+ $wrap_tag->add_style( 'background-color', $o[ 'sb_bg_color' ] );
224
  }
225
 
226
+ // Wrap data attributes
227
+ $wrap_tag->data = array(
228
+ 'stick-to' => $o[ 'stick_element' ],
229
+ 'lg-action' => $o[ 'lg_screen_action' ],
230
+ 'sm-action' => $o[ 'sm_screen_action' ],
231
+ 'sm-width' => $o[ 'sm_screen_width' ],
232
+ );
233
 
234
  $open_icon = WPSR_Lists::public_icons( 'sb_open' );
235
  $close_icon = WPSR_Lists::public_icons( 'sb_close' );
236
 
237
+ $html .= $wrap_tag->open();
 
 
 
 
 
 
 
 
 
 
 
 
238
  $html .= '<div class="wpsr-sb-inner">';
239
  $html .= $row_html;
240
  $html .= '</div>';
241
  $html .= '<div class="wpsr-sb-close wpsr-close-btn" title="Open or close sharebar"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
242
+ $html .= $wrap_tag->close();
243
 
244
  return $html;
245
 
core/templates/follow-icons.php CHANGED
@@ -16,6 +16,16 @@ class WPSR_Template_Follow_Icons{
16
 
17
  public static function output(){
18
 
 
 
 
 
 
 
 
 
 
 
19
  $fb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_followbar_settings' ), WPSR_Options::default_values( 'follow_icons' ) );
20
  $loc_rules_answer = WPSR_Location_Rules::check_rule( $fb_settings[ 'loc_rules' ] );
21
 
@@ -40,81 +50,90 @@ class WPSR_Template_Follow_Icons{
40
  return '';
41
  }
42
 
43
- $styles = array();
44
- if ( $opts[ 'bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $opts[ 'bg_color' ] . ';border-color: ' . $opts[ 'bg_color' ] );
45
- if ( $opts[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $opts[ 'icon_color' ] );
46
- $style = join( ';', $styles );
47
-
 
 
 
 
 
48
  foreach( $btns as $btn_obj ){
49
 
50
  $btn_obj = apply_filters( 'wpsr_mod_followbar_button', $btn_obj );
51
-
52
  $id = key( (array) $btn_obj );
53
-
54
- if(!array_key_exists($id, $sb_sites)){
 
 
 
55
  continue;
56
  }
57
-
58
  $prop = $sb_sites[ $id ];
59
-
60
- $cicon = '';
61
- if ( $btn_obj->$id->icon != '' ){
62
- $cicon = 'sr-cicon';
63
- }
64
-
65
- $iclasses = array( 'sr-' . $id, $cicon );
66
- $onclick = array_key_exists( 'onclick', $prop ) ? 'onclick="' . esc_attr( $prop[ 'onclick' ] ) . '"' : '';
67
- $title = ( ( $btn_obj->$id->text == '' ) ? $prop[ 'name' ] : urldecode( $btn_obj->$id->text ) );
68
-
69
- $html .= '<span class="' . esc_attr( join( ' ', $iclasses ) ) . '">';
70
- $html .= '<a rel="nofollow" href="' . esc_attr( $btn_obj->$id->url ) . '" target="_blank" title="' . esc_attr( $title ) . '" style="' . esc_attr( $style ) . '" ' . $onclick . '>';
71
-
72
  if( $btn_obj->$id->icon == '' ){
73
- $html .= '<i class="' . esc_attr( $prop[ 'icon' ] ) . '"></i>';
74
  }else{
75
- $html .= '<img src="' . esc_attr( $btn_obj->$id->icon ) . '" alt="' . esc_attr( $prop[ 'name' ] ) . '" />';
 
 
 
 
 
76
  }
77
 
78
- $html .= '</a>';
 
 
 
 
 
 
 
 
 
79
 
80
- $html .= '</span>';
 
 
 
 
81
 
82
  }
83
 
84
- $classes = array( 'socializer', 'sr-followbar', 'sr-' . $opts[ 'size' ] );
85
-
86
- if( $opts[ 'shape' ] != '' ) array_push( $classes, 'sr-' . $opts[ 'shape' ] );
87
- if( $opts[ 'hover' ] != '' ) array_push( $classes, 'sr-' . $opts[ 'hover' ] );
88
- if( $opts[ 'pad' ] != '' ) array_push( $classes, 'sr-' . $opts[ 'pad' ] );
89
- if( $opts[ 'orientation' ] == 'vertical' ) array_push( $classes, 'sr-vertical' );
90
- if( $opts[ 'open_popup' ] == '' ) array_push( $classes, 'sr-popup' );
91
- if( !$floating ) array_push( $classes, 'sr-multiline' );
92
-
93
- $classes = join( ' ', $classes );
94
 
95
- $html = '<div class="' . $classes . '">' . $html . '</div>';
 
 
 
 
 
96
 
97
- $open_icon = WPSR_Lists::public_icons( 'fb_open' );
98
- $close_icon = WPSR_Lists::public_icons( 'fb_close' );
99
 
100
  if( $floating ){
101
  $title = ( $opts[ 'title' ] != '' ) ? '<div class="sr-fb-title">' . $opts[ 'title' ] . '</div>' : '';
 
 
102
  $close_btn = '<div class="wpsr-fb-close wpsr-close-btn" title="Open or close follow icons"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
103
  $orientation = ( $opts[ 'orientation' ] == 'horizontal' ) ? 'sr-fb-hl' : 'sr-fb-vl';
104
- $fb_classes = array( 'wp-socializer wpsr-follow-icons', 'sr-fb-' . $opts[ 'position' ], $orientation );
105
-
106
- $data_attrs = array(
107
- 'lg-action' => esc_attr( $opts[ 'lg_screen_action' ] ),
108
- 'sm-action' => esc_attr( $opts[ 'sm_screen_action' ] ),
109
- 'sm-width' => esc_attr( $opts[ 'sm_screen_width' ] ),
 
 
110
  );
111
- $data = '';
112
- foreach( $data_attrs as $id => $val ){
113
- if( empty( $val ) ) continue;
114
- $data .= 'data-' . $id . '="' . $val . '" ';
115
- }
116
 
117
- $html = '<div class="' . esc_attr( join( ' ', $fb_classes ) ) . '" ' . $data . '>' . $title . $html . $close_btn . '</div>';
118
  }
119
 
120
  if( !$floating && isset( $opts[ 'profile_text' ] ) && trim( $opts[ 'profile_text' ] ) != '' ){
16
 
17
  public static function output(){
18
 
19
+ if( is_admin() ){
20
+ return;
21
+ }
22
+
23
+ global $post;
24
+ $post_settings = WPSR_Lists::post_settings( $post );
25
+ if( $post_settings[ 'wpsr_disable_follow_icons' ] == 'yes' ){
26
+ return;
27
+ }
28
+
29
  $fb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_followbar_settings' ), WPSR_Options::default_values( 'follow_icons' ) );
30
  $loc_rules_answer = WPSR_Location_Rules::check_rule( $fb_settings[ 'loc_rules' ] );
31
 
50
  return '';
51
  }
52
 
53
+ $icon_styles = array();
54
+ if ( $opts[ 'bg_color' ] != '' ){
55
+ $icon_styles[ 'background-color' ] = $opts[ 'bg_color' ];
56
+ $icon_styles[ 'border-color' ] = $opts[ 'bg_color' ];
57
+ }
58
+
59
+ if ( $opts[ 'icon_color' ] != '' ){
60
+ $icon_styles[ 'color' ] = $opts[ 'icon_color' ];
61
+ }
62
+
63
  foreach( $btns as $btn_obj ){
64
 
65
  $btn_obj = apply_filters( 'wpsr_mod_followbar_button', $btn_obj );
 
66
  $id = key( (array) $btn_obj );
67
+
68
+ $icon_wrap_tag = new WPSR_HTML_Tag( 'span', 'sr-' . $id );
69
+ $icon_tag = new WPSR_HTML_Tag( 'a', '', $icon_styles );
70
+
71
+ if( !array_key_exists( $id, $sb_sites ) ){
72
  continue;
73
  }
74
+
75
  $prop = $sb_sites[ $id ];
76
+
77
+ $icon = '';
 
 
 
 
 
 
 
 
 
 
 
78
  if( $btn_obj->$id->icon == '' ){
79
+ $icon = '<i class="' . esc_attr( $prop[ 'icon' ] ) . '"></i>';
80
  }else{
81
+ $settings_icon = $btn_obj->$id->icon;
82
+ if (strpos( $settings_icon, 'http' ) === 0) {
83
+ $icon = '<img src="' . esc_attr( $settings_icon ) . '" alt="' . esc_attr( $prop[ 'name' ] ) . '" />';
84
+ }else{
85
+ $icon = '<i class="' . esc_attr( $settings_icon ) . '"></i>';
86
+ }
87
  }
88
 
89
+ $icon_tag->attrs = array(
90
+ 'rel' => 'nofollow',
91
+ 'href' => $btn_obj->$id->url,
92
+ 'target' => '_blank',
93
+ 'title' => ( ( $btn_obj->$id->text == '' ) ? $prop[ 'name' ] : urldecode( $btn_obj->$id->text ) )
94
+ );
95
+
96
+ if( array_key_exists( 'onclick', $prop ) ){
97
+ $icon_tag->add_attr( 'onclick', $prop[ 'onclick' ] );
98
+ }
99
 
100
+ $icon_tag->add_data( 'id', $id );
101
+
102
+ $html .= $icon_wrap_tag->open();
103
+ $html .= $icon_tag->open() . $icon . $icon_tag->close();
104
+ $html .= $icon_wrap_tag->close();
105
 
106
  }
107
 
108
+ // Socializer tag
109
+ $scr_tag = new WPSR_HTML_Tag( 'div', 'socializer sr-followbar sr-' . $opts[ 'size' ] );
 
 
 
 
 
 
 
 
110
 
111
+ if( $opts[ 'shape' ] != '' ) $scr_tag->add_class( 'sr-' . $opts[ 'shape' ] );
112
+ if( $opts[ 'hover' ] != '' ) $scr_tag->add_class( 'sr-' . $opts[ 'hover' ] );
113
+ if( $opts[ 'pad' ] != '' ) $scr_tag->add_class( 'sr-' . $opts[ 'pad' ] );
114
+ if( $opts[ 'orientation' ] == 'vertical' ) $scr_tag->add_class( 'sr-vertical' );
115
+ if( $opts[ 'open_popup' ] == '' ) $scr_tag->add_class( 'sr-popup' );
116
+ if( !$floating ) $scr_tag->add_class( 'sr-multiline' );
117
 
118
+ $html = $scr_tag->open() . $html . $scr_tag->close();
 
119
 
120
  if( $floating ){
121
  $title = ( $opts[ 'title' ] != '' ) ? '<div class="sr-fb-title">' . $opts[ 'title' ] . '</div>' : '';
122
+ $open_icon = WPSR_Lists::public_icons( 'fb_open' );
123
+ $close_icon = WPSR_Lists::public_icons( 'fb_close' );
124
  $close_btn = '<div class="wpsr-fb-close wpsr-close-btn" title="Open or close follow icons"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
125
  $orientation = ( $opts[ 'orientation' ] == 'horizontal' ) ? 'sr-fb-hl' : 'sr-fb-vl';
126
+
127
+ // Wrap tag
128
+ $wrap_tag = new WPSR_HTML_Tag( 'div', 'wp-socializer wpsr-follow-icons sr-fb-' . $opts[ 'position' ] );
129
+ $wrap_tag->add_class( $orientation );
130
+ $wrap_tag->data = array(
131
+ 'lg-action' => $opts[ 'lg_screen_action' ],
132
+ 'sm-action' => $opts[ 'sm_screen_action' ],
133
+ 'sm-width' => $opts[ 'sm_screen_width' ],
134
  );
 
 
 
 
 
135
 
136
+ $html = $wrap_tag->open() . $title . $html . $close_btn . $wrap_tag->close();
137
  }
138
 
139
  if( !$floating && isset( $opts[ 'profile_text' ] ) && trim( $opts[ 'profile_text' ] ) != '' ){
core/templates/popups.php ADDED
@@ -0,0 +1,119 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Share menu
4
+ *
5
+ **/
6
+
7
+ defined( 'ABSPATH' ) || exit;
8
+
9
+ class WPSR_Template_Popups{
10
+
11
+ public static function init(){
12
+
13
+ add_action( 'wp_footer', array( __CLASS__, 'output' ) );
14
+
15
+ }
16
+
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
+
31
+ echo '<div class="wpsr-pp-head">
32
+ <h3>' . $heading . '</h3>
33
+ <a href="#" class="wpsr-pp-close" data-id="' . $for . '" title="' . __( 'Close', 'wpsr' ) . '"><i class="fas fa-times"></i></a>
34
+ </div>';
35
+
36
+ }
37
+
38
+ public static function share_menu(){
39
+
40
+ echo '<div id="wpsr-share-menu" class="wpsr-bg wpsr-pp-closed">';
41
+ echo '<div class="wpsr-pp-inner">';
42
+ echo '<div class="wpsr-popup">';
43
+ self::header( 'wpsr-share-menu', __( 'Share', 'wp-socializer' ) );
44
+
45
+ // Build share menu links wrap
46
+ $sm_links_wrap = new WPSR_HTML_Tag( 'div', 'wpsr-sm-links' );
47
+
48
+ echo '<div class="wpsr-pp-content">';
49
+ echo $sm_links_wrap->open();
50
+
51
+ $social_icons = WPSR_Lists::social_icons();
52
+ $exclude_icons = array( 'addtofavorites', 'html' );
53
+
54
+ foreach( $social_icons as $id => $props ){
55
+
56
+ if( !in_array( 'for_share', $props[ 'features' ] ) ){
57
+ continue;
58
+ }
59
+
60
+ if( in_array( $id, $exclude_icons ) ){
61
+ continue;
62
+ }
63
+
64
+ $classes = array( 'wpsr-sm-link', 'wpsr-sml-' . $id );
65
+ $classes = implode( ' ', $classes );
66
+
67
+ $link = base64_encode( $props[ 'link' ] );
68
+ $data_attr = ' data-d="' . esc_attr( $link ) . '"';
69
+
70
+ if( array_key_exists( 'link_mobile', $props ) ){
71
+ $mobile_link = base64_encode( $props[ 'link_mobile' ] );
72
+ $data_attr .= ' data-m="' . esc_attr( $mobile_link ) . '"';
73
+ }
74
+
75
+ $title = esc_attr( $props[ 'title' ] );
76
+
77
+ $icon = '<span class="wpsr-sm-icon"><i class="' . esc_attr( $props[ 'icon' ] ) . '"></i></span>';
78
+ $text = '<span class="wpsr-sm-text">' . $props[ 'name' ] . '</span>';
79
+
80
+ echo '<div><a href="#" rel="nofollow" title="' . $title . '" class="' . esc_attr( $classes ) . '" ' . $data_attr . ' style="background-color: ' . $props[ 'colors' ][ 0 ] . '">' . $icon . $text . '</a></div>';
81
+ }
82
+ echo $sm_links_wrap->close();
83
+
84
+ echo '</div>'; // Content
85
+
86
+ self::footer();
87
+ echo '</div>';
88
+ echo '</div>';
89
+ echo '</div>';
90
+
91
+ }
92
+
93
+ public static function short_link(){
94
+
95
+ echo '<div id="wpsr-short-link" class="wpsr-bg wpsr-pp-closed">';
96
+ echo '<div class="wpsr-pp-inner">';
97
+ echo '<div class="wpsr-popup">';
98
+ self::header( 'wpsr-short-link', __( 'Copy short link', 'wp-socializer' ) );
99
+ echo '<div class="wpsr-pp-content">';
100
+ $copy_text = __( 'Copy link', 'wp-socializer' );
101
+ $copied_text = __( 'Copied !', 'wp-socializer' );
102
+ echo '<input type="text" id="wpsr-short-link-url" readonly /><a href="#" id="wpsr-sl-copy-btn" data-c="' . $copy_text . '" data-d="' . $copied_text . '">' . $copy_text . '</a>';
103
+ echo '</div>';
104
+ self::footer();
105
+ echo '</div>';
106
+ echo '</div>';
107
+ echo '</div>';
108
+
109
+ }
110
+
111
+ public static function footer(){
112
+ echo '<div class="wpsr-pp-foot">Powered by <a href="https://www.aakashweb.com/wordpress-plugins/wp-socializer/" target="_blank" rel="nofollow noopener">WP Socializer</a></div>';
113
+ }
114
+
115
+ }
116
+
117
+ WPSR_Template_Popups::init();
118
+
119
+ ?>
core/templates/share-icons.php CHANGED
@@ -16,6 +16,10 @@ class WPSR_Template_Share_Icons{
16
 
17
  public static function output(){
18
 
 
 
 
 
19
  $si_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_social_icons_settings' ), array(
20
  'ft_status' => 'disable',
21
  'tmpl' => array()
@@ -43,6 +47,14 @@ class WPSR_Template_Share_Icons{
43
 
44
  public static function html( $tmpl, $default_page_info = array() ){
45
 
 
 
 
 
 
 
 
 
46
  $social_icons = WPSR_Lists::social_icons();
47
  $page_info = WPSR_Metadata::metadata();
48
  $page_info = WPSR_Lists::set_defaults( $default_page_info, $page_info );
@@ -50,43 +62,29 @@ class WPSR_Template_Share_Icons{
50
  $counter_services = WPSR_Share_Counter::counter_services();
51
  $selected_icons = json_decode( base64_decode( $tmpl[ 'selected_icons' ] ) );
52
 
53
- $classes = array( 'socializer', 'sr-popup' );
54
-
55
- if( $tmpl[ 'layout' ] != '' ){
56
- array_push( $classes, 'sr-' . $tmpl[ 'layout' ] );
57
  }
58
 
59
- if( $tmpl[ 'icon_size' ] != '' ){
60
- array_push( $classes, 'sr-' . $tmpl[ 'icon_size' ] );
61
- }
62
 
63
- if( $tmpl[ 'icon_shape' ] != '' && $tmpl[ 'layout' ] == '' ){
64
- array_push( $classes, 'sr-' . $tmpl[ 'icon_shape' ] );
65
- }
66
 
67
- if( $tmpl[ 'hover_effect' ] != '' ){
68
- array_push( $classes, 'sr-' . $tmpl[ 'hover_effect' ] );
 
 
69
  }
70
 
71
- if( $tmpl[ 'padding' ] != '' ){
72
- array_push( $classes, 'sr-' . $tmpl[ 'padding' ] );
73
  }
74
 
75
- $styles = array();
76
- if ( $tmpl[ 'icon_bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $tmpl[ 'icon_bg_color' ] );
77
- if ( $tmpl[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $tmpl[ 'icon_color' ] );
78
- $style = join( ';', $styles );
79
- $style = ( $style != '' ) ? ' style="' . $style . '"' : '';
80
-
81
- $icons_html = array();
82
-
83
- $counters_selected = array();
84
-
85
- if( empty( $selected_icons ) ){
86
- return array(
87
- 'html' => ''
88
- );
89
- }
90
 
91
  foreach( $selected_icons as $icon ){
92
 
@@ -97,11 +95,9 @@ class WPSR_Template_Share_Icons{
97
  }
98
 
99
  $props = $social_icons[ $id ];
100
- $icon_classes = array( 'sr-' . $id );
101
 
102
- if( !array_key_exists( $id, $social_icons ) ){
103
- continue;
104
- }
105
 
106
  $settings = WPSR_Lists::set_defaults( (array) $icon->$id, array(
107
  'icon' => '',
@@ -119,12 +115,11 @@ class WPSR_Template_Share_Icons{
119
 
120
  $icon_link = $props[ 'link' ];
121
  $url = WPSR_Metadata::replace_params( $icon_link, $page_info );
122
- $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
123
 
124
  $text = '';
125
  if( $settings[ 'text' ] != '' ){
126
  $text = '<span class="text">' . $settings[ 'text' ] . '</span>';
127
- array_push( $icon_classes, 'sr-text-in' );
128
  }
129
 
130
  $icon = '';
@@ -133,7 +128,7 @@ class WPSR_Template_Share_Icons{
133
  }else{
134
  $icon_val = $settings[ 'icon' ];
135
  if (strpos( $settings[ 'icon' ], 'http' ) === 0) {
136
- $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $id ) . '" height="50%" />';
137
  }else{
138
  $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
139
  }
@@ -148,26 +143,41 @@ class WPSR_Template_Share_Icons{
148
 
149
  $count_tag = '';
150
  if( ( $tmpl[ 'share_counter' ] == 'individual' || $tmpl[ 'share_counter' ] == 'total-individual' ) && array_key_exists( $id, $counter_services) ){
151
- $count_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $id, 'ctext' );
152
  $count_tag = $count_holder;
153
- array_push( $classes, 'sr-' . $tmpl[ 'sc_style' ] );
154
  if( $tmpl[ 'sc_style' ] != 'count-1' ){
155
- array_push( $icon_classes, 'sr-text-in' );
156
  }
157
  }
158
  array_push( $counters_selected, $id );
159
 
160
- $data_attr = '';
161
  if( $id == 'pinterest' ){
162
- $data_attr = 'data-pin-custom="true"';
163
  }
164
 
165
  if( array_key_exists( 'link_mobile', $props ) ){
166
  $mobile_link = WPSR_Metadata::replace_params( $props[ 'link_mobile' ], $page_info );
167
- $data_attr .= ' data-mobile="' . $mobile_link . '"';
 
 
 
 
 
 
 
 
 
 
 
 
 
168
  }
169
 
170
- $ihtml = '<span class="' . implode( ' ', $icon_classes ) . '"><a rel="nofollow" href="' . esc_attr( $url ) . '" target="_blank" ' . $onclick . ' title="' . esc_attr( $title ) . '" ' . $style . ' ' . $data_attr . '>' . $icon . $text . $count_tag . '</a></span>';
 
 
 
171
  array_push( $icons_html, $ihtml );
172
 
173
  }
@@ -175,15 +185,39 @@ class WPSR_Template_Share_Icons{
175
  if( intval( $tmpl[ 'more_icons' ] ) > 0 ){
176
  $more_count = intval( $tmpl[ 'more_icons' ] );
177
  $more_icons = array_slice( $icons_html, -$more_count, $more_count );
178
- $more_html = '<span class="sr-more"><a href="#" target="_blank" title="More sites" ' . $style . '><i class="fa fa-share-alt"></i></a><ul class="socializer">' . implode( "\n", $more_icons ) . '</ul></span>';
179
  $icons_html = array_slice( $icons_html, 0, -$more_count );
180
  array_push( $icons_html, $more_html );
181
  }
182
 
183
- $all_icons_html = '<div class="' . implode( " ", $classes ) . '">' . implode( "\n", $icons_html ) . '</div>';
184
- $row_html = $all_icons_html;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
185
 
186
- $wrap_classes = '';
 
 
 
 
 
187
  $html = '';
188
 
189
  if( $tmpl[ 'share_counter' ] == 'total' || $tmpl[ 'share_counter' ] == 'total-individual' ){
@@ -204,29 +238,29 @@ class WPSR_Template_Share_Icons{
204
 
205
  }
206
 
 
 
 
207
  if( $tmpl[ 'layout' ] == '' && $tmpl[ 'center_icons' ] == 'yes' ){
208
- $wrap_classes = 'wpsr-flex-center';
209
  }
210
 
211
- $data_attrs = array(
212
- 'lg-action' => esc_attr( $tmpl[ 'lg_screen_action' ] ),
213
- 'sm-action' => esc_attr( $tmpl[ 'sm_screen_action' ] ),
214
- 'sm-width' => esc_attr( $tmpl[ 'sm_screen_width' ] ),
215
  );
216
- $data = '';
217
- foreach( $data_attrs as $id => $val ){
218
- if( empty( $val ) ) continue;
219
- $data .= 'data-' . $id . '="' . $val . '" ';
220
- }
221
 
222
  if( trim( $tmpl[ 'custom_html_above' ] ) != '' ){
223
  $html .= $tmpl[ 'custom_html_above' ];
224
  }
225
 
226
- $html .= '<div class="wp-socializer wpsr-share-icons ' . $wrap_classes . '" ' . $data . '>';
227
  if( trim( $tmpl[ 'heading' ] ) != '' ) $html .= $tmpl[ 'heading' ];
228
  $html .= '<div class="wpsr-si-inner">' . $row_html . '</div>';
229
- $html .= '</div>';
230
 
231
  if( trim( $tmpl[ 'custom_html_below' ] ) != '' ){
232
  $html .= $tmpl[ 'custom_html_below' ];
16
 
17
  public static function output(){
18
 
19
+ if( is_admin() ){
20
+ return;
21
+ }
22
+
23
  $si_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_social_icons_settings' ), array(
24
  'ft_status' => 'disable',
25
  'tmpl' => array()
47
 
48
  public static function html( $tmpl, $default_page_info = array() ){
49
 
50
+ global $post;
51
+ $post_settings = WPSR_Lists::post_settings( $post );
52
+ if( $post_settings[ 'wpsr_disable_share_icons' ] == 'yes' ){
53
+ return array(
54
+ 'html' => ''
55
+ );
56
+ }
57
+
58
  $social_icons = WPSR_Lists::social_icons();
59
  $page_info = WPSR_Metadata::metadata();
60
  $page_info = WPSR_Lists::set_defaults( $default_page_info, $page_info );
62
  $counter_services = WPSR_Share_Counter::counter_services();
63
  $selected_icons = json_decode( base64_decode( $tmpl[ 'selected_icons' ] ) );
64
 
65
+ if( empty( $selected_icons ) ){
66
+ return array(
67
+ 'html' => ''
68
+ );
69
  }
70
 
71
+ $gs = WPSR_Lists::set_defaults( get_option( 'wpsr_general_settings' ), WPSR_Options::default_values( 'general_settings' ) );
 
 
72
 
73
+ $scr_tag = new WPSR_HTML_Tag( 'div', 'socializer sr-popup' );
74
+ $icons_html = array();
75
+ $counters_selected = array();
76
 
77
+ // Icon default styles
78
+ $icon_styles = array();
79
+ if ( $tmpl[ 'icon_bg_color' ] != '' ){
80
+ $icon_styles[ 'background-color' ] = $tmpl[ 'icon_bg_color' ];
81
  }
82
 
83
+ if ( $tmpl[ 'icon_color' ] != '' ){
84
+ $icon_styles[ 'color' ] = $tmpl[ 'icon_color' ];
85
  }
86
 
87
+ $icon_styles_attr = 'style="' . WPSR_HTML_Tag::build_style( $icon_styles ) . '"';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
88
 
89
  foreach( $selected_icons as $icon ){
90
 
95
  }
96
 
97
  $props = $social_icons[ $id ];
 
98
 
99
+ $icon_wrap_tag = new WPSR_HTML_Tag( 'span', 'sr-' . $id );
100
+ $icon_tag = new WPSR_HTML_Tag( 'a', '', $icon_styles );
 
101
 
102
  $settings = WPSR_Lists::set_defaults( (array) $icon->$id, array(
103
  'icon' => '',
115
 
116
  $icon_link = $props[ 'link' ];
117
  $url = WPSR_Metadata::replace_params( $icon_link, $page_info );
 
118
 
119
  $text = '';
120
  if( $settings[ 'text' ] != '' ){
121
  $text = '<span class="text">' . $settings[ 'text' ] . '</span>';
122
+ $icon_wrap_tag->add_class( 'sr-text-in' );
123
  }
124
 
125
  $icon = '';
128
  }else{
129
  $icon_val = $settings[ 'icon' ];
130
  if (strpos( $settings[ 'icon' ], 'http' ) === 0) {
131
+ $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $props[ 'name' ] ) . '" />';
132
  }else{
133
  $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
134
  }
143
 
144
  $count_tag = '';
145
  if( ( $tmpl[ 'share_counter' ] == 'individual' || $tmpl[ 'share_counter' ] == 'total-individual' ) && array_key_exists( $id, $counter_services) ){
146
+ $count_holder = WPSR_Share_Counter::placeholder( $page_info, $id, 'ctext' );
147
  $count_tag = $count_holder;
148
+ $scr_tag->add_class( 'sr-' . $tmpl[ 'sc_style' ] );
149
  if( $tmpl[ 'sc_style' ] != 'count-1' ){
150
+ $icon_wrap_tag->add_class( 'sr-text-in' );
151
  }
152
  }
153
  array_push( $counters_selected, $id );
154
 
 
155
  if( $id == 'pinterest' ){
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 );
162
+ }
163
+
164
+ $icon_tag->add_data( 'id', $id );
165
+
166
+ $icon_tag->attrs = array(
167
+ 'rel' => 'nofollow',
168
+ 'href' => $url,
169
+ 'target' => '_blank',
170
+ 'title' => $title,
171
+ );
172
+
173
+ if( isset( $props[ 'onclick' ] ) ){
174
+ $icon_tag->add_attr( 'onclick', $props[ 'onclick' ] );
175
  }
176
 
177
+ $ihtml = $icon_wrap_tag->open();
178
+ $ihtml .= $icon_tag->open() . $icon . $text . $count_tag . $icon_tag->close();
179
+ $ihtml .= $icon_wrap_tag->close();
180
+
181
  array_push( $icons_html, $ihtml );
182
 
183
  }
185
  if( intval( $tmpl[ 'more_icons' ] ) > 0 ){
186
  $more_count = intval( $tmpl[ 'more_icons' ] );
187
  $more_icons = array_slice( $icons_html, -$more_count, $more_count );
188
+ $more_html = '<span class="sr-more"><a href="#" target="_blank" title="More sites" ' . $icon_styles_attr . '><i class="fa fa-share-alt"></i></a><ul class="socializer">' . implode( "\n", $more_icons ) . '</ul></span>';
189
  $icons_html = array_slice( $icons_html, 0, -$more_count );
190
  array_push( $icons_html, $more_html );
191
  }
192
 
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
199
+ if( $tmpl[ 'layout' ] != '' ){
200
+ $scr_tag->add_class( 'sr-' . $tmpl[ 'layout' ] );
201
+ }
202
+
203
+ if( $tmpl[ 'icon_size' ] != '' ){
204
+ $scr_tag->add_class( 'sr-' . $tmpl[ 'icon_size' ] );
205
+ }
206
+
207
+ if( $tmpl[ 'icon_shape' ] != '' && $tmpl[ 'layout' ] == '' ){
208
+ $scr_tag->add_class( 'sr-' . $tmpl[ 'icon_shape' ] );
209
+ }
210
+
211
+ if( $tmpl[ 'hover_effect' ] != '' ){
212
+ $scr_tag->add_class( 'sr-' . $tmpl[ 'hover_effect' ] );
213
+ }
214
 
215
+ if( $tmpl[ 'padding' ] != '' ){
216
+ $scr_tag->add_class( 'sr-' . $tmpl[ 'padding' ] );
217
+ }
218
+
219
+ $all_icons_html = $scr_tag->open() . implode( "\n", $icons_html ) . $scr_tag->close();
220
+ $row_html = $all_icons_html;
221
  $html = '';
222
 
223
  if( $tmpl[ 'share_counter' ] == 'total' || $tmpl[ 'share_counter' ] == 'total-individual' ){
238
 
239
  }
240
 
241
+ // Wrap tag
242
+ $wrap_tag = new WPSR_HTML_Tag( 'div', 'wp-socializer wpsr-share-icons' );
243
+
244
  if( $tmpl[ 'layout' ] == '' && $tmpl[ 'center_icons' ] == 'yes' ){
245
+ $wrap_tag->add_class( 'wpsr-flex-center' );
246
  }
247
 
248
+ $wrap_tag->data = array(
249
+ 'lg-action' => $tmpl[ 'lg_screen_action' ],
250
+ 'sm-action' => $tmpl[ 'sm_screen_action' ],
251
+ 'sm-width' => $tmpl[ 'sm_screen_width' ],
252
  );
253
+
254
+ $wrap_tag = apply_filters( 'wpsr_mod_html_tag', $wrap_tag, 'share_icons', $page_info );
 
 
 
255
 
256
  if( trim( $tmpl[ 'custom_html_above' ] ) != '' ){
257
  $html .= $tmpl[ 'custom_html_above' ];
258
  }
259
 
260
+ $html .= $wrap_tag->open();
261
  if( trim( $tmpl[ 'heading' ] ) != '' ) $html .= $tmpl[ 'heading' ];
262
  $html .= '<div class="wpsr-si-inner">' . $row_html . '</div>';
263
+ $html .= $wrap_tag->close();
264
 
265
  if( trim( $tmpl[ 'custom_html_below' ] ) != '' ){
266
  $html .= $tmpl[ 'custom_html_below' ];
core/templates/text-sharebar.php CHANGED
@@ -16,6 +16,16 @@ class WPSR_Template_Text_Sharebar{
16
 
17
  public static function output(){
18
 
 
 
 
 
 
 
 
 
 
 
19
  $tsb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_text_sharebar_settings' ), WPSR_Options::default_values( 'text_sharebar' ) );
20
  $loc_rules_answer = WPSR_Location_Rules::check_rule( $tsb_settings[ 'loc_rules' ] );
21
 
@@ -42,14 +52,59 @@ class WPSR_Template_Text_Sharebar{
42
  }
43
 
44
  foreach( $btns as $btn ){
 
 
 
 
 
45
  $sb_info = $sb_sites[ $btn ];
46
  $link = array_key_exists( 'link_tsb', $sb_info ) ? $sb_info[ 'link_tsb' ] : $sb_info[ 'link' ];
47
- $onclick = array_key_exists( 'onclick', $sb_info ) ? 'onclick="' . esc_attr( $sb_info[ 'onclick' ] ) . '"' : '';
48
-
49
- $html .= '<li><a href="#" title="' . esc_attr( $sb_info[ 'title' ] ) . '" data-link="' . esc_attr( $link ) . '" style="color: ' . esc_attr( $opts[ 'icon_color' ] ) . '" ' . $onclick . '><i class="' . esc_attr( $sb_info[ 'icon' ] ) . '"></i></a></li>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
50
  }
51
-
52
- $html = '<ul class="wpsr-text-sb wpsr-tsb-' . esc_attr( $opts[ 'size' ] ) . ' wpsr-clearfix" data-content="' . esc_attr( $opts[ 'content' ] ) . '" data-tcount="' . esc_attr( $opts[ 'text_count' ] ) . '" style="background-color: ' . esc_attr( $opts[ 'bg_color' ] ) . '" data-url="' . esc_attr( $page_info[ 'url' ] ) . '" data-title="' . esc_attr( $page_info[ 'title' ] ) . '" data-surl="' . esc_attr( $page_info[ 'short_url' ] ) . '" data-tuname="' . esc_attr( $page_info[ 'twitter_username' ] ) . '">' . $html . '</ul>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
54
  return $html;
55
 
16
 
17
  public static function output(){
18
 
19
+ if( is_admin() ){
20
+ return;
21
+ }
22
+
23
+ global $post;
24
+ $post_settings = WPSR_Lists::post_settings( $post );
25
+ if( $post_settings[ 'wpsr_disable_text_sharebar' ] == 'yes' ){
26
+ return;
27
+ }
28
+
29
  $tsb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_text_sharebar_settings' ), WPSR_Options::default_values( 'text_sharebar' ) );
30
  $loc_rules_answer = WPSR_Location_Rules::check_rule( $tsb_settings[ 'loc_rules' ] );
31
 
52
  }
53
 
54
  foreach( $btns as $btn ){
55
+
56
+ if( !array_key_exists( $btn, $sb_sites ) ){
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
+
63
+ $icon = '';
64
+ if( strpos( $sb_info[ 'icon' ], 'http' ) === 0 ){
65
+ $icon = '<img src="' . $sb_info[ 'icon' ] . '" alt="' . esc_attr( $sb_info[ 'name' ] ) . '"/>';
66
+ }else{
67
+ $icon = '<i class="' . esc_attr( $sb_info[ 'icon' ] ) . '"></i>';
68
+ }
69
+
70
+ $icon_tag = new WPSR_HTML_Tag( 'a' );
71
+ $icon_tag->attrs = array(
72
+ 'href' => '#',
73
+ 'target' => '_blank',
74
+ 'title' => $sb_info[ 'title' ],
75
+ );
76
+
77
+ if( isset( $sb_info[ 'onclick' ] ) ){
78
+ $icon_tag->add_attr( 'onclick', $sb_info[ 'onclick' ] );
79
+ }
80
+
81
+ $icon_tag->data = array(
82
+ 'link' => $link,
83
+ 'id' => $btn
84
+ );
85
+
86
+ $icon_tag->add_style( 'color', $opts[ 'icon_color' ] );
87
+
88
+ $html .= '<li>' . $icon_tag->open() . $icon . $icon_tag->close() . '</li>';
89
  }
90
+
91
+ // Wrap tag
92
+ $wrap_tag = new WPSR_HTML_Tag( 'ul', 'wpsr-text-sb wpsr-tsb-' . esc_attr( $opts[ 'size' ] ) . ' wpsr-clearfix' );
93
+
94
+ $wrap_tag->data = array(
95
+ 'content' => $opts[ 'content' ],
96
+ 'tcount' => $opts[ 'text_count' ],
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' ] );
104
+
105
+ $wrap_tag = apply_filters( 'wpsr_mod_data_attributes', $wrap_tag, 'text_sharebar', $page_info );
106
+
107
+ $html = $wrap_tag->open() . $html . $wrap_tag->close();
108
 
109
  return $html;
110
 
public/css/wp-socializer.css CHANGED
@@ -184,9 +184,10 @@
184
  font-size: 15.2px;
185
  }
186
 
187
- .socializer span.sr-cicon a{
188
- background: none;
189
- border: none;
 
190
  }
191
 
192
  /* Follow icons */
@@ -377,7 +378,6 @@
377
  }
378
 
379
 
380
-
381
  /* Collapse icon */
382
  .wpsr-bar-icon{
383
  line-height: 0;
@@ -401,6 +401,190 @@
401
  padding: 5px;
402
  }
403
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
  /* Misc */
405
  .wpsr-clearfix:after{
406
  display: block;
184
  font-size: 15.2px;
185
  }
186
 
187
+ .socializer span a img{
188
+ background: none !important;
189
+ border: none !important;
190
+ max-width: 100% !important;
191
  }
192
 
193
  /* Follow icons */
378
  }
379
 
380
 
 
381
  /* Collapse icon */
382
  .wpsr-bar-icon{
383
  line-height: 0;
401
  padding: 5px;
402
  }
403
 
404
+
405
+ /* Popup */
406
+ .wpsr-bg {
407
+ display: none;
408
+ position: fixed;
409
+ z-index: 9999;
410
+ top: 0;
411
+ left: 0;
412
+ right: 0;
413
+ bottom: 0;
414
+ background: rgb(0 0 0 / 20%);
415
+ padding: 0;
416
+ }
417
+ .wpsr-bg.wpsr-pp-opened{
418
+ display: block;
419
+ }
420
+ .wpsr-bg.wpsr-pp-closed{
421
+ display: none;
422
+ }
423
+ .wpsr-bg.wpsr-pp-slide-down .wpsr-popup{
424
+ transform: translateY(0);
425
+ opacity: 1;
426
+ }
427
+ .wpsr-bg.wpsr-pp-slide-up .wpsr-popup{
428
+ transform: translateY(-50px);
429
+ opacity: 0.8;
430
+ }
431
+ .wpsr-pp-inner{
432
+ margin: 0 auto;
433
+ display: flex;
434
+ flex-direction: column;
435
+ justify-content: center;
436
+ height: 100%;
437
+ }
438
+ .wpsr-popup {
439
+ display: none;
440
+ background: #fff;
441
+ display: flex;
442
+ flex-wrap: nowrap;
443
+ flex-direction: column;
444
+ box-shadow: 0 3px 6px rgb(0 0 0 / 16%), 0 3px 6px rgb(0 0 0 / 23%);
445
+ border-radius: 10px;
446
+ max-height: 100%;
447
+ transform: translateY(-50px);
448
+ opacity: 0.8;
449
+ transition: all 0.25s;
450
+ }
451
+ .wpsr-pp-head {
452
+ text-align: center;
453
+ padding: 10px 0;
454
+ position: relative;
455
+ border-bottom: 1px solid #dfdfdf;
456
+ }
457
+ .wpsr-pp-head h3{
458
+ margin: 0 !important;
459
+ font-size: 20px;
460
+ }
461
+ .wpsr-pp-content{
462
+ overflow-y: auto;
463
+ padding: 20px;
464
+ }
465
+ .wpsr-pp-close {
466
+ position: absolute;
467
+ top: 50%;
468
+ right: 10px;
469
+ color: #333;
470
+ transform: translateY(-50%);
471
+ padding: 10px;
472
+ }
473
+ .wpsr-pp-close:hover{
474
+ opacity: 0.8;
475
+ }
476
+ .wpsr-pp-foot{
477
+ text-align: center;
478
+ padding: 10px 0;
479
+ font-size: 12px;
480
+ color: #777;
481
+ border-top: 1px solid #dfdfdf;
482
+ }
483
+ .wpsr-pp-foot a{
484
+ color: #ff8226;
485
+ text-decoration: none;
486
+ }
487
+ .wpsr-pp-foot a:hover{
488
+ color: #333;
489
+ text-decoration: underline;
490
+ }
491
+
492
+
493
+ /* Share menu elements */
494
+ #wpsr-share-menu .wpsr-pp-inner{
495
+ max-width: 700px;
496
+ }
497
+ .wpsr-sm-links{
498
+ display: flex;
499
+ flex-wrap: wrap;
500
+ }
501
+ .wpsr-sm-links > div{
502
+ width: 33.33%;
503
+ padding: 5px;
504
+ }
505
+ .wpsr-sm-link {
506
+ display: flex;
507
+ color: #fff;
508
+ border-radius: 5px;
509
+ padding: 5px;
510
+ font-size: 15px;
511
+ text-decoration: none;
512
+ border-bottom: 2px solid rgb(0 0 0 / 10%);
513
+ text-shadow: 0 1px 1px rgb(0 0 0 / 30%);
514
+ background: linear-gradient(rgb(0 0 0 / 1%), rgb(0 0 0 / 5%));
515
+ }
516
+ .wpsr-sm-link:hover, .wpsr-sm-link:focus, .wpsr-sm-link:active{
517
+ text-decoration: none;
518
+ color: #fff;
519
+ opacity: 0.8;
520
+ }
521
+ .wpsr-sm-icon{
522
+ width: 24px;
523
+ margin: 0 5px;
524
+ display: flex;
525
+ flex-direction: column;
526
+ align-items: center;
527
+ justify-content: center;
528
+ }
529
+ .wpsr-sm-text{
530
+ overflow: hidden;
531
+ text-overflow: ellipsis;
532
+ white-space: nowrap;
533
+ }
534
+
535
+ /* Copy short link */
536
+ #wpsr-short-link .wpsr-pp-inner{
537
+ max-width: 500px;
538
+ }
539
+ #wpsr-short-link .wpsr-pp-content{
540
+ display: flex;
541
+ font-size: 15px;
542
+ }
543
+ #wpsr-short-link-url{
544
+ flex: 1;
545
+ text-align: center;
546
+ }
547
+ #wpsr-sl-copy-btn {
548
+ background: #000000;
549
+ text-align: center;
550
+ display: flex;
551
+ flex-direction: column;
552
+ justify-content: center;
553
+ align-content: center;
554
+ padding: 5px 15px;
555
+ color: #fff;
556
+ border-radius: 5px;
557
+ margin-left: 10px;
558
+ text-decoration: none;
559
+ }
560
+ #wpsr-sl-copy-btn:hover{
561
+ text-decoration: none;
562
+ }
563
+
564
+ @media screen and (max-width:700px){
565
+ #wpsr-share-menu .wpsr-pp-inner, #wpsr-short-link .wpsr-pp-inner{
566
+ max-width: 100%;
567
+ }
568
+ .wpsr-popup{
569
+ border-radius: 0;
570
+ }
571
+ .wpsr-sm-links > div{
572
+ width: 50%;
573
+ }
574
+ .wpsr-sm-link{
575
+ padding: 10px;
576
+ }
577
+ }
578
+
579
+ /* Share menu button */
580
+ .socializer .sr-share-menu>a, .socializer .sr-share-menu>a:visited{
581
+ background-color: #ff6500;
582
+ color: #fff;
583
+ }
584
+ .sr-share-menu a i {
585
+ font-size: 0.7em;
586
+ }
587
+
588
  /* Misc */
589
  .wpsr-clearfix:after{
590
  display: block;
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.sr-cicon a{background:none;border:none}.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-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}.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,6 +1,6 @@
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.sr-cicon a{background:none;border:none}.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-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
5
  * MIT license
6
- */.socializer{padding:0;margin:0;display:inline-flex;flex-wrap:wrap}.socializer>*{list-style:none;padding:0;margin:0;display:inline-block;position:relative;line-height:0}.socializer a{font-family:sans-serif!important;display:inline-block;border:0;text-align:center;text-decoration:none;width:16px;height:16px;line-height:18px;font-size:8px;border-style:solid;box-sizing:content-box;transition:all .5s;-webkit-transition:all .2s;transition-timing-function:ease-out;-webkit-transition-timing-function:ease-out}.socializer a>*{display:inline-block;vertical-align:middle;padding:0;margin:0}.socializer:after{content:'';clear:both;display:block}.sr-32px{min-height:32px}.sr-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.sr-32px.sr-font-sm a{font-size:10.6666666667px}.sr-32px.sr-font-lg a{font-size:21.3333333333px}.sr-40px{min-height:40px}.sr-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.sr-40px.sr-font-sm a{font-size:13.3333333333px}.sr-40px.sr-font-lg a{font-size:26.6666666667px}.sr-48px{min-height:48px}.sr-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.sr-48px.sr-font-sm a{font-size:16px}.sr-48px.sr-font-lg a{font-size:32px}.sr-64px{min-height:64px}.sr-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.sr-64px.sr-font-sm a{font-size:21.3333333333px}.sr-64px.sr-font-lg a{font-size:42.6666666667px}.socializer .sr-addtofavorites a,.socializer .sr-addtofavorites a:visited{color:#f9a600;border-color:#f9a600;background-color:#f9a600}.socializer .sr-behance a,.socializer .sr-behance a:visited{color:#1769ff;border-color:#1769ff;background-color:#1769ff}.socializer .sr-bitbucket a,.socializer .sr-bitbucket a:visited{color:#205081;border-color:#205081;background-color:#205081}.socializer .sr-blogger a,.socializer .sr-blogger a:visited{color:#ff6501;border-color:#ff6501;background-color:#ff6501}.socializer .sr-codepen a,.socializer .sr-codepen a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-comments a,.socializer .sr-comments a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-delicious a,.socializer .sr-delicious a:visited{color:#3274d1;border-color:#3274d1;background-color:#3274d1}.socializer .sr-deviantart a,.socializer .sr-deviantart a:visited{color:#475c4d;border-color:#475c4d;background-color:#475c4d}.socializer .sr-digg a,.socializer .sr-digg a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-discord a,.socializer .sr-discord a:visited{color:#7289da;border-color:#7289da;background-color:#7289da}.socializer .sr-dribbble a,.socializer .sr-dribbble a:visited{color:#ea4c89;border-color:#ea4c89;background-color:#ea4c89}.socializer .sr-email a,.socializer .sr-email a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-etsy a,.socializer .sr-etsy a:visited{color:#f1641e;border-color:#f1641e;background-color:#f1641e}.socializer .sr-facebook a,.socializer .sr-facebook a:visited{color:#1977f3;border-color:#1977f3;background-color:#1977f3}.socializer .sr-fbmessenger a,.socializer .sr-fbmessenger a:visited{color:#2998ff;border-color:#2998ff;background-color:#2998ff}.socializer .sr-flickr a,.socializer .sr-flickr a:visited{color:#1c9be9;border-color:#1c9be9;background-color:#1c9be9}.socializer .sr-github a,.socializer .sr-github a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-google a,.socializer .sr-google a:visited{color:#3a7cec;border-color:#3a7cec;background-color:#3a7cec}.socializer .sr-googleplus a,.socializer .sr-googleplus a:visited{color:#db483b;border-color:#db483b;background-color:#db483b}.socializer .sr-hackernews a,.socializer .sr-hackernews a:visited{color:#ff6500;border-color:#ff6500;background-color:#ff6500}.socializer .sr-houzz a,.socializer .sr-houzz a:visited{color:#4dbc15;border-color:#4dbc15;background-color:#4dbc15}.socializer .sr-instagram a,.socializer .sr-instagram a:visited{color:#e23367;border-color:#e23367;background-color:#e23367}.socializer .sr-line a,.socializer .sr-line a:visited{color:#00c300;border-color:#00c300;background-color:#00c300}.socializer .sr-linkedin a,.socializer .sr-linkedin a:visited{color:#0274b3;border-color:#0274b3;background-color:#0274b3}.socializer .sr-medium a,.socializer .sr-medium a:visited{color:#02b875;border-color:#02b875;background-color:#02b875}.socializer .sr-mix a,.socializer .sr-mix a:visited{color:#ff8226;border-color:#ff8226;background-color:#ff8226}.socializer .sr-odnoklassniki a,.socializer .sr-odnoklassniki a:visited{color:#f2720c;border-color:#f2720c;background-color:#f2720c}.socializer .sr-patreon a,.socializer .sr-patreon a:visited{color:#e85b46;border-color:#e85b46;background-color:#e85b46}.socializer .sr-paypal a,.socializer .sr-paypal a:visited{color:#0070ba;border-color:#0070ba;background-color:#0070ba}.socializer .sr-pdf a,.socializer .sr-pdf a:visited{color:#e61b2e;border-color:#e61b2e;background-color:#e61b2e}.socializer .sr-phone a,.socializer .sr-phone a:visited{color:#1a73e8;border-color:#1a73e8;background-color:#1a73e8}.socializer .sr-pinterest a,.socializer .sr-pinterest a:visited{color:#cb2027;border-color:#cb2027;background-color:#cb2027}.socializer .sr-pocket a,.socializer .sr-pocket a:visited{color:#ef4056;border-color:#ef4056;background-color:#ef4056}.socializer .sr-print a,.socializer .sr-print a:visited{color:#6d9f00;border-color:#6d9f00;background-color:#6d9f00}.socializer .sr-reddit a,.socializer .sr-reddit a:visited{color:#ff5600;border-color:#ff5600;background-color:#ff5600}.socializer .sr-renren a,.socializer .sr-renren a:visited{color:#005eac;border-color:#005eac;background-color:#005eac}.socializer .sr-rss a,.socializer .sr-rss a:visited{color:#ff7b0a;border-color:#ff7b0a;background-color:#ff7b0a}.socializer .sr-shortlink a,.socializer .sr-shortlink a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-skype a,.socializer .sr-skype a:visited{color:#00aff0;border-color:#00aff0;background-color:#00aff0}.socializer .sr-snapchat a,.socializer .sr-snapchat a:visited{color:#fffc00;border-color:#fffc00;background-color:#fffc00}.socializer .sr-soundcloud a,.socializer .sr-soundcloud a:visited{color:#f50;border-color:#f50;background-color:#f50}.socializer .sr-stackoverflow a,.socializer .sr-stackoverflow a:visited{color:#f48024;border-color:#f48024;background-color:#f48024}.socializer .sr-stumbleupon a,.socializer .sr-stumbleupon a:visited{color:#eb4823;border-color:#eb4823;background-color:#eb4823}.socializer .sr-quora a,.socializer .sr-quora a:visited{color:#b92b27;border-color:#b92b27;background-color:#b92b27}.socializer .sr-telegram a,.socializer .sr-telegram a:visited{color:#179cde;border-color:#179cde;background-color:#179cde}.socializer .sr-tiktok a,.socializer .sr-tiktok a:visited{color:#010101;border-color:#010101;background-color:#010101}.socializer .sr-tumblr a,.socializer .sr-tumblr a:visited{color:#314358;border-color:#314358;background-color:#314358}.socializer .sr-twitch a,.socializer .sr-twitch a:visited{color:#4b367c;border-color:#4b367c;background-color:#4b367c}.socializer .sr-twitter a,.socializer .sr-twitter a:visited{color:#1da1f2;border-color:#1da1f2;background-color:#1da1f2}.socializer .sr-viber a,.socializer .sr-viber a:visited{color:#574e92;border-color:#574e92;background-color:#574e92}.socializer .sr-vimeo a,.socializer .sr-vimeo a:visited{color:#00adef;border-color:#00adef;background-color:#00adef}.socializer .sr-vkontakte a,.socializer .sr-vkontakte a:visited{color:#4c75a3;border-color:#4c75a3;background-color:#4c75a3}.socializer .sr-wechat a,.socializer .sr-wechat a:visited{color:#7bb32e;border-color:#7bb32e;background-color:#7bb32e}.socializer .sr-weibo a,.socializer .sr-weibo a:visited{color:#e6162d;border-color:#e6162d;background-color:#e6162d}.socializer .sr-whatsapp a,.socializer .sr-whatsapp a:visited{color:#60b82d;border-color:#60b82d;background-color:#60b82d}.socializer .sr-xing a,.socializer .sr-xing a:visited{color:#006567;border-color:#006567;background-color:#006567}.socializer .sr-yahoomail a,.socializer .sr-yahoomail a:visited{color:#4a00a1;border-color:#4a00a1;background-color:#4a00a1}.socializer .sr-youtube a,.socializer .sr-youtube a:visited{color:red;border-color:red;background-color:red}.socializer .sr-more>a,.socializer .sr-more>a:visited{color:green;border-color:green;background-color:green}.sr-text-in a{width:auto;padding:0 1em;overflow:hidden}.sr-text-in a>*{padding-right:.5em}.sr-text-in a>:last-child{padding-right:0}.sr-text-in .text{font-size:.8em}.sr-text-out a{vertical-align:middle}.sr-text-out .text{font-size:.8em;margin-left:.5em;vertical-align:middle}.sr-text-below{text-align:center}.sr-text-below .text{display:block;font-size:.8em;margin-top:.5em}.sr-text-hover .text{display:none;position:absolute;background:#000;color:#fff;font-size:12px;width:100px;top:-3em;border-radius:5px;text-align:center;line-height:2em;margin-left:-25%;z-index:9999}.sr-text-hover .text:before{position:absolute;content:'';border:.5em solid red;bottom:-1em;left:1em;width:0;height:0;border-color:#000 transparent transparent transparent}.sr-text-hover:hover>.text{display:block}.sr-bdr-sm.socializer a{border-width:1px}.sr-bdr-md.socializer a{border-width:2px}.sr-bdr-lg.socializer a{border-width:3px}.sr-bdr-none.socializer a{border-width:0}.sr-bdr-white.socializer a,.sr-bdr-white.socializer a:visited{border-color:#fff}.sr-bdr-dark.socializer a,.sr-bdr-dark.socializer a:visited{border-color:#000}.sr-bdr-grey.socializer a,.sr-bdr-grey.socializer a:visited{border-color:#ccc}.sr-bg-white.socializer a,.sr-bg-white.socializer a:visited{background-color:#fff}.sr-bg-dark.socializer a,.sr-bg-dark.socializer a:visited{background-color:#333}.sr-bg-grey.socializer a,.sr-bg-grey.socializer a:visited{background-color:#ccc}.sr-bg-none.socializer a,.sr-bg-none.socializer a:visited{background-color:transparent}.sr-icon-white.socializer a,.sr-icon-white.socializer a:visited{color:#fff}.sr-icon-dark.socializer a,.sr-icon-dark.socializer a:visited{color:#333}.sr-icon-grey.socializer a,.sr-icon-grey.socializer a:visited{color:#ccc}.sr-sw-1.socializer a{box-shadow:0 0 .2em rgba(0,0,0,.3)}.sr-sw-2.socializer a{box-shadow:inset 0 -.1em .1em rgba(0,0,0,.3)}.sr-sw-3.socializer a{box-shadow:0 -.1em .1em rgba(0,0,0,.3)}.sr-sw-icon-1.socializer a i{text-shadow:0 1px 1px rgba(0,0,0,.5)}.sr-count-1 span.ctext{background:#ff5722;position:absolute;top:-.6em;right:-.6em;border-radius:1em;font-size:.6em;line-height:1;padding:.3em .5em;z-index:99;color:#fff;box-shadow:0 1px 3px -1px #000}.sr-count-2 span.ctext{font-size:.8em;margin:0;padding:.5em;font-weight:700;line-height:.8em;background:rgba(0,0,0,.3);border-radius:1em}.sr-count-3 span.ctext{font-size:.8em;margin:0;font-weight:700;line-height:.8em;border-left:1px solid;padding:0 0 0 .8em}.sr-vertical.sr-count-2 a{height:auto}.sr-vertical.sr-count-2 span.ctext{display:block;font-size:.6em;border-radius:0;padding:.5em}.sr-vertical.sr-count-3 a{height:auto}.sr-vertical.sr-count-3 span.ctext{display:block;font-size:.6em;border-radius:0;border-top:1px solid;padding:.5em;border-left:0}.sr-bb-1 .sr-text-in{margin-right:3.5em}.sr-bb-1 a{position:relative;overflow:visible}.sr-bb-1 span.ctext{font-size:.8em;font-weight:700;background:#fff;border-radius:3px;color:#333;position:absolute;width:3em;top:0;bottom:0;padding:0;right:-3.5em;border:1px solid #dfdfdf}.sr-vertical.sr-bb-1 span.ctext{display:block;position:static;width:100%;margin:0;font-size:.7em;line-height:1;padding:.3em 0;margin-top:-.3em}.sr-circle a{border-radius:50%}.sr-circle .sr-text-in a,.sr-circle.sr-text-in a{border-radius:1em}.sr-squircle .sr-text-in a,.sr-squircle a,.sr-squircle.sr-text-in a{border-radius:.5em}.sr-squircle-2 .sr-text-in a,.sr-squircle-2 a,.sr-squircle-2.sr-text-in a{border-radius:0 .5em 0 .5em}.sr-diamond a{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sr-diamond a>*{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sr-drop a{border-radius:50% 50% 0 50%}.sr-ribbon a:after{content:'';display:block;position:absolute;left:0;right:0;border-style:solid;border-color:inherit;border-bottom-color:transparent;border-width:0 1em .5em 1em}.sr-fluid{display:flex;width:100%;flex-wrap:nowrap}.sr-fluid>*{float:none;width:100%}.sr-fluid a{width:100%;box-sizing:border-box;overflow:hidden;padding:0 .5em}.sr-fluid.sr-pad{border-spacing:.25em}.sr-fluid .sr-text-in a>*,.sr-fluid.sr-text-in a>*{margin-right:.5em}.sr-fluid .sr-text-in a>:last-child,.sr-fluid.sr-text-in a>:last-child{margin-right:0}.sr-fluid .sr-text-in a:last-child,.sr-fluid.sr-text-in a:last-child{margin:0}.sr-fluid.sr-squircle a{border-radius:.5em}.sr-fluid.sr-squircle-2 a{border-radius:0 .5em 0 .5em}.sr-fluid .sr-more li{display:block;width:100%}.sr-vertical{width:16px;flex-direction:column}.sr-vertical.sr-32px{width:32px}.sr-vertical.sr-32px>*{width:32px}.sr-vertical.sr-40px{width:40px}.sr-vertical.sr-40px>*{width:40px}.sr-vertical.sr-48px{width:48px}.sr-vertical.sr-48px>*{width:48px}.sr-vertical.sr-64px{width:64px}.sr-vertical.sr-64px>*{width:64px}.sr-vertical.sr-pad>*{margin:0 0 .5em 0}.sr-vertical .sr-text-in{line-height:1}.sr-vertical .sr-text-in a{padding:0;width:inherit}.sr-vertical .sr-text-in a>*{padding:0}.sr-vertical .sr-text-in .text{display:none}.sr-opacity a:hover{opacity:.5}.sr-opacity a:active{opacity:.8}.sr-rotate a:hover{-webkit-transform:rotate(15deg);transform:rotate(15deg)}.sr-rotate a:active{-webkit-transform:rotate(0);transform:rotate(0)}.sr-zoom a:hover{-webkit-transform:scale(1.1);transform:scale(1.1);z-index:9999}.sr-zoom a:active{-webkit-transform:scale(.9);transform:scale(.9)}.sr-shrink a:hover{-webkit-transform:scale(.9);transform:scale(.9)}.sr-shrink a:active{-webkit-transform:scale(.7);transform:scale(.7)}.sr-float a:hover{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.sr-float a:active{-webkit-transform:translateY(0);transform:translateY(0)}.sr-sink a:hover{-webkit-transform:translateY(5px);transform:translateY(5px)}.sr-sink a:active{-webkit-transform:translateY(0);transform:translateY(0)}.sr-fade-white a:hover{color:#000;background-color:#fff}.sr-fade-white a:active{opacity:.2}.sr-fade-black a:hover{color:#fff;background-color:#000}.sr-fade-black a:active{opacity:.2}.sr-fade-dark a:hover{filter:brightness(.8)}.sr-fade-dark a:active{filter:brightness(.5)}.sr-pad>*{margin-right:.5em}.sr-multiline>*{margin-bottom:.5em}.sr-no-icon i{display:none}.socializer.sr-pad>:last-child{margin:0}.sr-more .socializer{background:#fff;padding:.5em;position:absolute;display:none;box-shadow:0 2px 6px -2px;z-index:9999}.sr-more .socializer:before{content:'';display:inline-block;position:absolute;border:.25em solid;border-color:transparent transparent #fff transparent;top:-.5em;left:.5em}.sr-more .socializer:after{content:'';clear:both;display:block}.sr-more .socializer>*{margin:0 0 .5em 0}.sr-more .socializer>:last-child{margin-bottom:0}.sr-more:hover .socializer{display:block}.sr-sharebar{position:fixed;z-index:9999}.sr-sb-vl{top:50%;transform:translateY(-50%)}.sr-sb-left{left:30px}.sr-sb-right{right:30px}.sr-sb-hl{left:50%;transform:translateX(-50%)}.sr-sb-top{top:30px}.sr-sb-bottom{bottom:30px}.sr-sb-white{background:#fff;box-shadow:0 1px 4px -2px;padding:10px}.sr-sb-dark{background:#333;box-shadow:0 1px 4px -2px;padding:10px}.sr-sb-dark .text{color:#fff}
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
5
  * MIT license
6
+ */.socializer{padding:0;margin:0;display:inline-flex;flex-wrap:wrap}.socializer>*{list-style:none;padding:0;margin:0;display:inline-block;position:relative;line-height:0}.socializer a{font-family:sans-serif!important;display:inline-block;border:0;text-align:center;text-decoration:none;width:16px;height:16px;line-height:18px;font-size:8px;border-style:solid;box-sizing:content-box;transition:all .5s;-webkit-transition:all .2s;transition-timing-function:ease-out;-webkit-transition-timing-function:ease-out}.socializer a>*{display:inline-block;vertical-align:middle;padding:0;margin:0}.socializer:after{content:'';clear:both;display:block}.sr-32px{min-height:32px}.sr-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.sr-32px.sr-font-sm a{font-size:10.6666666667px}.sr-32px.sr-font-lg a{font-size:21.3333333333px}.sr-40px{min-height:40px}.sr-40px a{width:40px;height:40px;line-height:40px;font-size:20px}.sr-40px.sr-font-sm a{font-size:13.3333333333px}.sr-40px.sr-font-lg a{font-size:26.6666666667px}.sr-48px{min-height:48px}.sr-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.sr-48px.sr-font-sm a{font-size:16px}.sr-48px.sr-font-lg a{font-size:32px}.sr-64px{min-height:64px}.sr-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.sr-64px.sr-font-sm a{font-size:21.3333333333px}.sr-64px.sr-font-lg a{font-size:42.6666666667px}.socializer .sr-addtofavorites a,.socializer .sr-addtofavorites a:visited{color:#f9a600;border-color:#f9a600;background-color:#f9a600}.socializer .sr-behance a,.socializer .sr-behance a:visited{color:#1769ff;border-color:#1769ff;background-color:#1769ff}.socializer .sr-bitbucket a,.socializer .sr-bitbucket a:visited{color:#205081;border-color:#205081;background-color:#205081}.socializer .sr-blogger a,.socializer .sr-blogger a:visited{color:#ff6501;border-color:#ff6501;background-color:#ff6501}.socializer .sr-codepen a,.socializer .sr-codepen a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-comments a,.socializer .sr-comments a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-delicious a,.socializer .sr-delicious a:visited{color:#3274d1;border-color:#3274d1;background-color:#3274d1}.socializer .sr-deviantart a,.socializer .sr-deviantart a:visited{color:#475c4d;border-color:#475c4d;background-color:#475c4d}.socializer .sr-digg a,.socializer .sr-digg a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-discord a,.socializer .sr-discord a:visited{color:#7289da;border-color:#7289da;background-color:#7289da}.socializer .sr-dribbble a,.socializer .sr-dribbble a:visited{color:#ea4c89;border-color:#ea4c89;background-color:#ea4c89}.socializer .sr-email a,.socializer .sr-email a:visited{color:#000;border-color:#000;background-color:#000}.socializer .sr-etsy a,.socializer .sr-etsy a:visited{color:#f1641e;border-color:#f1641e;background-color:#f1641e}.socializer .sr-facebook a,.socializer .sr-facebook a:visited{color:#1977f3;border-color:#1977f3;background-color:#1977f3}.socializer .sr-fbmessenger a,.socializer .sr-fbmessenger a:visited{color:#2998ff;border-color:#2998ff;background-color:#2998ff}.socializer .sr-flickr a,.socializer .sr-flickr a:visited{color:#1c9be9;border-color:#1c9be9;background-color:#1c9be9}.socializer .sr-github a,.socializer .sr-github a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-google a,.socializer .sr-google a:visited{color:#3a7cec;border-color:#3a7cec;background-color:#3a7cec}.socializer .sr-googleplus a,.socializer .sr-googleplus a:visited{color:#db483b;border-color:#db483b;background-color:#db483b}.socializer .sr-hackernews a,.socializer .sr-hackernews a:visited{color:#ff6500;border-color:#ff6500;background-color:#ff6500}.socializer .sr-houzz a,.socializer .sr-houzz a:visited{color:#4dbc15;border-color:#4dbc15;background-color:#4dbc15}.socializer .sr-instagram a,.socializer .sr-instagram a:visited{color:#e23367;border-color:#e23367;background-color:#e23367}.socializer .sr-line a,.socializer .sr-line a:visited{color:#00c300;border-color:#00c300;background-color:#00c300}.socializer .sr-linkedin a,.socializer .sr-linkedin a:visited{color:#0274b3;border-color:#0274b3;background-color:#0274b3}.socializer .sr-medium a,.socializer .sr-medium a:visited{color:#02b875;border-color:#02b875;background-color:#02b875}.socializer .sr-mix a,.socializer .sr-mix a:visited{color:#ff8226;border-color:#ff8226;background-color:#ff8226}.socializer .sr-odnoklassniki a,.socializer .sr-odnoklassniki a:visited{color:#f2720c;border-color:#f2720c;background-color:#f2720c}.socializer .sr-patreon a,.socializer .sr-patreon a:visited{color:#e85b46;border-color:#e85b46;background-color:#e85b46}.socializer .sr-paypal a,.socializer .sr-paypal a:visited{color:#0070ba;border-color:#0070ba;background-color:#0070ba}.socializer .sr-pdf a,.socializer .sr-pdf a:visited{color:#e61b2e;border-color:#e61b2e;background-color:#e61b2e}.socializer .sr-phone a,.socializer .sr-phone a:visited{color:#1a73e8;border-color:#1a73e8;background-color:#1a73e8}.socializer .sr-pinterest a,.socializer .sr-pinterest a:visited{color:#cb2027;border-color:#cb2027;background-color:#cb2027}.socializer .sr-pocket a,.socializer .sr-pocket a:visited{color:#ef4056;border-color:#ef4056;background-color:#ef4056}.socializer .sr-print a,.socializer .sr-print a:visited{color:#6d9f00;border-color:#6d9f00;background-color:#6d9f00}.socializer .sr-reddit a,.socializer .sr-reddit a:visited{color:#ff5600;border-color:#ff5600;background-color:#ff5600}.socializer .sr-renren a,.socializer .sr-renren a:visited{color:#005eac;border-color:#005eac;background-color:#005eac}.socializer .sr-rss a,.socializer .sr-rss a:visited{color:#ff7b0a;border-color:#ff7b0a;background-color:#ff7b0a}.socializer .sr-shortlink a,.socializer .sr-shortlink a:visited{color:#333;border-color:#333;background-color:#333}.socializer .sr-skype a,.socializer .sr-skype a:visited{color:#00aff0;border-color:#00aff0;background-color:#00aff0}.socializer .sr-sms a,.socializer .sr-sms a:visited{color:#35d54f;border-color:#35d54f;background-color:#35d54f}.socializer .sr-snapchat a,.socializer .sr-snapchat a:visited{color:#fffc00;border-color:#fffc00;background-color:#fffc00}.socializer .sr-soundcloud a,.socializer .sr-soundcloud a:visited{color:#f50;border-color:#f50;background-color:#f50}.socializer .sr-stackoverflow a,.socializer .sr-stackoverflow a:visited{color:#f48024;border-color:#f48024;background-color:#f48024}.socializer .sr-stumbleupon a,.socializer .sr-stumbleupon a:visited{color:#eb4823;border-color:#eb4823;background-color:#eb4823}.socializer .sr-quora a,.socializer .sr-quora a:visited{color:#b92b27;border-color:#b92b27;background-color:#b92b27}.socializer .sr-telegram a,.socializer .sr-telegram a:visited{color:#179cde;border-color:#179cde;background-color:#179cde}.socializer .sr-tiktok a,.socializer .sr-tiktok a:visited{color:#010101;border-color:#010101;background-color:#010101}.socializer .sr-tumblr a,.socializer .sr-tumblr a:visited{color:#314358;border-color:#314358;background-color:#314358}.socializer .sr-twitch a,.socializer .sr-twitch a:visited{color:#4b367c;border-color:#4b367c;background-color:#4b367c}.socializer .sr-twitter a,.socializer .sr-twitter a:visited{color:#1da1f2;border-color:#1da1f2;background-color:#1da1f2}.socializer .sr-viber a,.socializer .sr-viber a:visited{color:#574e92;border-color:#574e92;background-color:#574e92}.socializer .sr-vimeo a,.socializer .sr-vimeo a:visited{color:#00adef;border-color:#00adef;background-color:#00adef}.socializer .sr-vkontakte a,.socializer .sr-vkontakte a:visited{color:#4c75a3;border-color:#4c75a3;background-color:#4c75a3}.socializer .sr-wechat a,.socializer .sr-wechat a:visited{color:#7bb32e;border-color:#7bb32e;background-color:#7bb32e}.socializer .sr-weibo a,.socializer .sr-weibo a:visited{color:#e6162d;border-color:#e6162d;background-color:#e6162d}.socializer .sr-whatsapp a,.socializer .sr-whatsapp a:visited{color:#60b82d;border-color:#60b82d;background-color:#60b82d}.socializer .sr-xing a,.socializer .sr-xing a:visited{color:#006567;border-color:#006567;background-color:#006567}.socializer .sr-yahoomail a,.socializer .sr-yahoomail a:visited{color:#4a00a1;border-color:#4a00a1;background-color:#4a00a1}.socializer .sr-youtube a,.socializer .sr-youtube a:visited{color:red;border-color:red;background-color:red}.socializer .sr-more>a,.socializer .sr-more>a:visited{color:green;border-color:green;background-color:green}.sr-text-in a{width:auto;padding:0 1em;overflow:hidden}.sr-text-in a>*{padding-right:.5em}.sr-text-in a>:last-child{padding-right:0}.sr-text-in .text{font-size:.8em}.sr-text-out a{vertical-align:middle}.sr-text-out .text{font-size:.8em;margin-left:.5em;vertical-align:middle}.sr-text-below{text-align:center}.sr-text-below .text{display:block;font-size:.8em;margin-top:.5em}.sr-text-hover .text{display:none;position:absolute;background:#000;color:#fff;font-size:12px;width:100px;top:-3em;border-radius:5px;text-align:center;line-height:2em;margin-left:-25%;z-index:9999}.sr-text-hover .text:before{position:absolute;content:'';border:.5em solid red;bottom:-1em;left:1em;width:0;height:0;border-color:#000 transparent transparent transparent}.sr-text-hover:hover>.text{display:block}.sr-bdr-sm.socializer a{border-width:1px}.sr-bdr-md.socializer a{border-width:2px}.sr-bdr-lg.socializer a{border-width:3px}.sr-bdr-none.socializer a{border-width:0}.sr-bdr-white.socializer a,.sr-bdr-white.socializer a:visited{border-color:#fff}.sr-bdr-dark.socializer a,.sr-bdr-dark.socializer a:visited{border-color:#000}.sr-bdr-grey.socializer a,.sr-bdr-grey.socializer a:visited{border-color:#ccc}.sr-bg-white.socializer a,.sr-bg-white.socializer a:visited{background-color:#fff}.sr-bg-dark.socializer a,.sr-bg-dark.socializer a:visited{background-color:#333}.sr-bg-grey.socializer a,.sr-bg-grey.socializer a:visited{background-color:#ccc}.sr-bg-none.socializer a,.sr-bg-none.socializer a:visited{background-color:transparent}.sr-icon-white.socializer a,.sr-icon-white.socializer a:visited{color:#fff}.sr-icon-dark.socializer a,.sr-icon-dark.socializer a:visited{color:#333}.sr-icon-grey.socializer a,.sr-icon-grey.socializer a:visited{color:#ccc}.sr-sw-1.socializer a{box-shadow:0 0 .2em rgba(0,0,0,.3)}.sr-sw-2.socializer a{box-shadow:inset 0 -.1em .1em rgba(0,0,0,.3)}.sr-sw-3.socializer a{box-shadow:0 -.1em .1em rgba(0,0,0,.3)}.sr-sw-icon-1.socializer a i{text-shadow:0 1px 1px rgba(0,0,0,.5)}.sr-count-1 span.ctext{background:#ff5722;position:absolute;top:-.6em;right:-.6em;border-radius:1em;font-size:.6em;line-height:1;padding:.3em .5em;z-index:99;color:#fff;box-shadow:0 1px 3px -1px #000}.sr-count-2 span.ctext{font-size:.8em;margin:0;padding:.5em;font-weight:700;line-height:.8em;background:rgba(0,0,0,.3);border-radius:1em}.sr-count-3 span.ctext{font-size:.8em;margin:0;font-weight:700;line-height:.8em;border-left:1px solid;padding:0 0 0 .8em}.sr-vertical.sr-count-2 a{height:auto}.sr-vertical.sr-count-2 span.ctext{display:block;font-size:.6em;border-radius:0;padding:.5em}.sr-vertical.sr-count-3 a{height:auto}.sr-vertical.sr-count-3 span.ctext{display:block;font-size:.6em;border-radius:0;border-top:1px solid;padding:.5em;border-left:0}.sr-bb-1 .sr-text-in{margin-right:3.5em}.sr-bb-1 a{position:relative;overflow:visible}.sr-bb-1 span.ctext{font-size:.8em;font-weight:700;background:#fff;border-radius:3px;color:#333;position:absolute;width:3em;top:0;bottom:0;padding:0;right:-3.5em;border:1px solid #dfdfdf}.sr-vertical.sr-bb-1 span.ctext{display:block;position:static;width:100%;margin:0;font-size:.7em;line-height:1;padding:.3em 0;margin-top:-.3em}.sr-circle a{border-radius:50%}.sr-circle .sr-text-in a,.sr-circle.sr-text-in a{border-radius:1em}.sr-squircle .sr-text-in a,.sr-squircle a,.sr-squircle.sr-text-in a{border-radius:.5em}.sr-squircle-2 .sr-text-in a,.sr-squircle-2 a,.sr-squircle-2.sr-text-in a{border-radius:0 .5em 0 .5em}.sr-diamond a{-webkit-transform:rotate(45deg);transform:rotate(45deg)}.sr-diamond a>*{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.sr-drop a{border-radius:50% 50% 0 50%}.sr-ribbon a:after{content:'';display:block;position:absolute;left:0;right:0;border-style:solid;border-color:inherit;border-bottom-color:transparent;border-width:0 1em .5em 1em}.sr-fluid{display:flex;width:100%;flex-wrap:nowrap}.sr-fluid>*{float:none;width:100%}.sr-fluid a{width:100%;box-sizing:border-box;overflow:hidden;padding:0 .5em}.sr-fluid.sr-pad{border-spacing:.25em}.sr-fluid .sr-text-in a>*,.sr-fluid.sr-text-in a>*{margin-right:.5em}.sr-fluid .sr-text-in a>:last-child,.sr-fluid.sr-text-in a>:last-child{margin-right:0}.sr-fluid .sr-text-in a:last-child,.sr-fluid.sr-text-in a:last-child{margin:0}.sr-fluid.sr-squircle a{border-radius:.5em}.sr-fluid.sr-squircle-2 a{border-radius:0 .5em 0 .5em}.sr-fluid .sr-more li{display:block;width:100%}.sr-vertical{width:16px;flex-direction:column}.sr-vertical.sr-32px{width:32px}.sr-vertical.sr-32px>*{width:32px}.sr-vertical.sr-40px{width:40px}.sr-vertical.sr-40px>*{width:40px}.sr-vertical.sr-48px{width:48px}.sr-vertical.sr-48px>*{width:48px}.sr-vertical.sr-64px{width:64px}.sr-vertical.sr-64px>*{width:64px}.sr-vertical.sr-pad>*{margin:0 0 .5em 0}.sr-vertical .sr-text-in{line-height:1}.sr-vertical .sr-text-in a{padding:0;width:inherit}.sr-vertical .sr-text-in a>*{padding:0}.sr-vertical .sr-text-in .text{display:none}.sr-opacity a:hover{opacity:.5}.sr-opacity a:active{opacity:.8}.sr-rotate a:hover{-webkit-transform:rotate(15deg);transform:rotate(15deg)}.sr-rotate a:active{-webkit-transform:rotate(0);transform:rotate(0)}.sr-zoom a:hover{-webkit-transform:scale(1.1);transform:scale(1.1);z-index:9999}.sr-zoom a:active{-webkit-transform:scale(.9);transform:scale(.9)}.sr-shrink a:hover{-webkit-transform:scale(.9);transform:scale(.9)}.sr-shrink a:active{-webkit-transform:scale(.7);transform:scale(.7)}.sr-float a:hover{-webkit-transform:translateY(-5px);transform:translateY(-5px)}.sr-float a:active{-webkit-transform:translateY(0);transform:translateY(0)}.sr-sink a:hover{-webkit-transform:translateY(5px);transform:translateY(5px)}.sr-sink a:active{-webkit-transform:translateY(0);transform:translateY(0)}.sr-fade-white a:hover{color:#000;background-color:#fff}.sr-fade-white a:active{opacity:.2}.sr-fade-black a:hover{color:#fff;background-color:#000}.sr-fade-black a:active{opacity:.2}.sr-fade-dark a:hover{filter:brightness(.8)}.sr-fade-dark a:active{filter:brightness(.5)}.sr-pad>*{margin-right:.5em}.sr-multiline>*{margin-bottom:.5em}.sr-no-icon i{display:none}.socializer.sr-pad>:last-child{margin:0}.sr-more .socializer{background:#fff;padding:.5em;position:absolute;display:none;box-shadow:0 2px 6px -2px;z-index:9999}.sr-more .socializer:before{content:'';display:inline-block;position:absolute;border:.25em solid;border-color:transparent transparent #fff transparent;top:-.5em;left:.5em}.sr-more .socializer:after{content:'';clear:both;display:block}.sr-more .socializer>*{margin:0 0 .5em 0}.sr-more .socializer>:last-child{margin-bottom:0}.sr-more:hover .socializer{display:block}.sr-sharebar{position:fixed;z-index:9999}.sr-sb-vl{top:50%;transform:translateY(-50%)}.sr-sb-left{left:30px}.sr-sb-right{right:30px}.sr-sb-hl{left:50%;transform:translateX(-50%)}.sr-sb-top{top:30px}.sr-sb-bottom{bottom:30px}.sr-sb-white{background:#fff;box-shadow:0 1px 4px -2px;padding:10px}.sr-sb-dark{background:#333;box-shadow:0 1px 4px -2px;padding:10px}.sr-sb-dark .text{color:#fff}
public/js/wp-socializer.js CHANGED
@@ -13,7 +13,7 @@ window.wpsr_helpers = {
13
  ele.className = ele.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
14
  },
15
 
16
- popup: function( url, target, w, h ){
17
  var left = ( screen.width/2 )-( w/2 );
18
  var top = ( screen.height/2 )-( h/2 );
19
  return window.open( url, target, 'toolbar=no,location=no,menubar=no,scrollbars=yes,width='+w+',height='+h+',top='+top+',left='+left );
@@ -71,6 +71,46 @@ window.wpsr_helpers = {
71
 
72
  is_mobile: function(){
73
  return /Mobi|Android/i.test(navigator.userAgent);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
74
  }
75
 
76
  };
@@ -89,7 +129,7 @@ document.addEventListener( 'DOMContentLoaded', function(){
89
  link.addEventListener( 'click', function(e){
90
  var href = this.getAttribute( 'href' );
91
  if( !( href == '#' || this.hasAttribute( 'onclick' ) || href == null ) ){
92
- wpsr_helpers.popup( href, '_blank', 800, 500 );
93
  }
94
  e.preventDefault();
95
  });
@@ -273,7 +313,7 @@ document.addEventListener( 'DOMContentLoaded', function(){
273
 
274
  if( alink != '#' ){
275
  rep_link = replace_link( alink );
276
- wpsr_helpers.popup( rep_link, 800, 500 );
277
  }
278
 
279
  e.preventDefault();
@@ -341,14 +381,14 @@ document.addEventListener( 'DOMContentLoaded', function(){
341
  }
342
 
343
  // Ajax share count
344
- if( wpsr_ajax_url ){
345
 
346
  var share_count = document.querySelectorAll( '[data-wpsrs]' );
347
 
348
  if( share_count.length > 0 ){
349
 
350
  var data = {};
351
- var ajax_url = wpsr_ajax_url + '?action=wpsr_share_count';
352
 
353
  for( i = 0; i < share_count.length; i++ ){
354
  var sEle = share_count[ i ];
@@ -406,6 +446,102 @@ document.addEventListener( 'DOMContentLoaded', function(){
406
 
407
  }
408
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
409
  });
410
 
411
  function socializer_addbookmark( e ){
@@ -416,9 +552,11 @@ function socializer_addbookmark( e ){
416
  alert('Press ' + str + ' to bookmark this page');
417
  }
418
 
419
- function socializer_shortlink( e, t ){
420
- e.preventDefault();
421
- link = t.getAttribute( 'href' );
422
- if( link != '#' )
423
- prompt( 'Short link', link );
 
 
424
  }
13
  ele.className = ele.className.replace(new RegExp('(^|\\b)' + className.split(' ').join('|') + '(\\b|$)', 'gi'), ' ');
14
  },
15
 
16
+ popup_window: function( url, target, w, h ){
17
  var left = ( screen.width/2 )-( w/2 );
18
  var top = ( screen.height/2 )-( h/2 );
19
  return window.open( url, target, 'toolbar=no,location=no,menubar=no,scrollbars=yes,width='+w+',height='+h+',top='+top+',left='+left );
71
 
72
  is_mobile: function(){
73
  return /Mobi|Android/i.test(navigator.userAgent);
74
+ },
75
+
76
+ open_popup: function(id){
77
+ var pp_overlay = document.getElementById(id);
78
+ if( !pp_overlay ){
79
+ return;
80
+ }
81
+ var that = this;
82
+ this.removeClass(pp_overlay, 'wpsr-pp-closed');
83
+ this.addClass(pp_overlay, 'wpsr-pp-opened');
84
+ this.removeClass(pp_overlay, 'wpsr-pp-slide-up');
85
+ setTimeout(function(){
86
+ that.addClass(pp_overlay, 'wpsr-pp-slide-down');
87
+ }, 10);
88
+ },
89
+
90
+ close_popup: function(id){
91
+ var pp_overlay = document.getElementById(id);
92
+ if( !pp_overlay ){
93
+ return;
94
+ }
95
+ var that = this;
96
+ this.removeClass(pp_overlay, 'wpsr-pp-slide-down');
97
+ this.addClass(pp_overlay, 'wpsr-pp-slide-up');
98
+ setTimeout(function(){
99
+ that.removeClass(pp_overlay, 'wpsr-pp-opened');
100
+ that.addClass(pp_overlay, 'wpsr-pp-closed');
101
+ }, 250);
102
+ },
103
+
104
+ copy: function(str){
105
+ var el = document.createElement('textarea');
106
+ el.value = str;
107
+ el.setAttribute('readonly', '');
108
+ el.style.position = 'absolute';
109
+ el.style.left = '-9999px';
110
+ document.body.appendChild(el);
111
+ el.select();
112
+ document.execCommand('copy');
113
+ document.body.removeChild(el);
114
  }
115
 
116
  };
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
  }
134
  e.preventDefault();
135
  });
313
 
314
  if( alink != '#' ){
315
  rep_link = replace_link( alink );
316
+ wpsr_helpers.popup_window( rep_link, '_blank', 800, 500 );
317
  }
318
 
319
  e.preventDefault();
381
  }
382
 
383
  // Ajax share count
384
+ if( typeof wp_socializer !== 'undefined' ){
385
 
386
  var share_count = document.querySelectorAll( '[data-wpsrs]' );
387
 
388
  if( share_count.length > 0 ){
389
 
390
  var data = {};
391
+ var ajax_url = wp_socializer.ajax_url + '?action=wpsr_share_count';
392
 
393
  for( i = 0; i < share_count.length; i++ ){
394
  var sEle = share_count[ i ];
446
 
447
  }
448
 
449
+ // Popup events
450
+ var pp_close_btns = document.querySelectorAll('.wpsr-pp-close');
451
+ if( pp_close_btns.length > 0 ){
452
+ for( i = 0; i < pp_close_btns.length; i++ ){
453
+ var pp_close_btn = pp_close_btns[i];
454
+ pp_close_btn.addEventListener( 'click', function(e){
455
+ e.preventDefault();
456
+ var id = this.getAttribute('data-id');
457
+ wpsr_helpers.close_popup(id);
458
+ });
459
+ }
460
+ }
461
+
462
+ // Share menu
463
+ window.wpsr_share_menu = {
464
+ set_data: function(metadata){
465
+ try{
466
+ this.data = JSON.parse(metadata);
467
+ }catch(e){
468
+ this.data = {};
469
+ console.log(e);
470
+ }
471
+ },
472
+ get_param: function(param){
473
+ var defaults = {
474
+ 'url': document.location.href,
475
+ 'title': document.title,
476
+ 'short-url': document.location.href
477
+ };
478
+ this.data = (typeof this.data === 'undefined') ? defaults : this.data;
479
+ if(param in this.data){
480
+ return this.data[param];
481
+ }else{
482
+ return (param in defaults) ? defaults[param] : '';
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
+ }
494
+ }
495
+
496
+ var sm_btns = document.querySelectorAll('.sr-share-menu a');
497
+ if( sm_btns.length > 0 ){
498
+ for( i = 0; i < sm_btns.length; i++ ){
499
+ var sm_btn = sm_btns[i];
500
+ sm_btn.addEventListener( 'click', function(){
501
+ var metadata = this.getAttribute( 'data-metadata' );
502
+ wpsr_share_menu.set_data(metadata);
503
+ wpsr_helpers.open_popup('wpsr-share-menu');
504
+ });
505
+ }
506
+ }
507
+
508
+ var sm_links = document.querySelectorAll('.wpsr-sm-link');
509
+ if( sm_links.length > 0 ){
510
+ for( i = 0; i < sm_links.length; i++ ){
511
+ var sm_link = sm_links[i];
512
+ sm_link.addEventListener( 'click', function(e){
513
+ e.preventDefault();
514
+
515
+ var link_raw = (wpsr_helpers.is_mobile() && this.getAttribute('data-m')) ? this.getAttribute('data-m') : this.getAttribute('data-d');
516
+ var link = wpsr_share_menu.process_link(atob(link_raw));
517
+
518
+ if(this.classList.contains('wpsr-sml-shortlink')){
519
+ socializer_shortlink(e, false, link);
520
+ return;
521
+ }
522
+
523
+ if(link.indexOf('http') == 0){
524
+ wpsr_helpers.popup_window(link, '_blank', 800, 500);
525
+ }else{
526
+ window.location.href = link;
527
+ }
528
+ });
529
+ }
530
+ }
531
+
532
+ var sl_copy_btn = document.getElementById('wpsr-sl-copy-btn');
533
+ if( sl_copy_btn ){
534
+ sl_copy_btn.addEventListener( 'click', function(e){
535
+ e.preventDefault();
536
+ wpsr_helpers.copy(document.getElementById('wpsr-short-link-url').value);
537
+ this.innerText = this.getAttribute('data-d');
538
+ var that = this;
539
+ setTimeout(function(){
540
+ that.innerText = that.getAttribute('data-c');
541
+ }, 3000);
542
+ });
543
+ }
544
+
545
  });
546
 
547
  function socializer_addbookmark( e ){
552
  alert('Press ' + str + ' to bookmark this page');
553
  }
554
 
555
+ function socializer_shortlink(e, link_ele, link_raw){
556
+ if( typeof e.preventDefault === 'function' ){
557
+ e.preventDefault();
558
+ }
559
+ var link = link_ele ? link_ele.getAttribute( 'href' ) : link_raw;
560
+ wpsr_helpers.open_popup('wpsr-short-link');
561
+ document.getElementById('wpsr-short-link-url').value = link;
562
  }
public/js/wp-socializer.min.js CHANGED
@@ -1 +1 @@
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){t.preventDefault(),link=e.getAttribute("href"),"#"!=link&&prompt("Short link",link)}window.wpsr_helpers={addClass:function(t,e){t.classList?t.classList.add(e):t.className+=" "+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},popup:function(t,e,s,r){var a=screen.width/2-s/2,n=screen.height/2-r/2;return window.open(t,e,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+n+",left="+a)},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,a){var n=new XMLHttpRequest;n.props=a,n.open(e,t,!0),"POST"==e&&n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),n.onreadystatechange=function(){if(4==n.readyState&&200==n.status)return r(n)},n.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)}},document.addEventListener("DOMContentLoaded",function(){var t=document.querySelectorAll(".socializer.sr-popup a");for(_=0;_<t.length;_++){var e=t[_];e.addEventListener("click",function(t){var e=this.getAttribute("href");"#"==e||this.hasAttribute("onclick")||null==e||wpsr_helpers.popup(e,"_blank",800,500),t.preventDefault()})}if(wpsr_helpers.is_mobile()){var s=document.querySelectorAll(".socializer a[data-mobile]");for(_=0;_<s.length;_++){var e=s[_],r=e.getAttribute("data-mobile");e.setAttribute("href",r)}}var a=document.querySelector(".wpsr-sharebar");if(a){var n=a.querySelector(".socializer");a.sm_action_call=function(t){wpsr_helpers.removeClass(this,"wpsr-sb-vl"),wpsr_helpers.addClass(this,"wpsr-sb-hl"),wpsr_helpers.removeClass(n,"sr-vertical"),wpsr_helpers.addClass(n,"sr-horizontal"),wpsr_helpers.addClass(n,"sr-fluid")},a.lg_action_call=function(){wpsr_helpers.addClass(this,"wpsr-sb-vl"),wpsr_helpers.removeClass(this,"wpsr-sb-hl"),wpsr_helpers.addClass(n,"sr-vertical"),wpsr_helpers.removeClass(n,"sr-horizontal"),wpsr_helpers.removeClass(n,"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 l={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")},i=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")},u=function(){var t=wpsr_tsb.stext,e=parseInt(l.word_count);return t=t.replace(/[^\x00-\x7F]/g,""),0==e?t:t.split(" ").slice(0,e).join(" ")},d=function(t){var e={"{title}":escape(l.ptitle),"{url}":l.purl,"{s-url}":l.psurl,"{twitter-username}":l.ptuname,"{excerpt}":escape(u())};for(var s in e)e.hasOwnProperty(s)&&(t=t.replace(RegExp(s,"g"),e[s]));return t};if(""!=l.cnt_sel)for(var w=l.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),f=document.querySelectorAll(w),_=0;_<f.length;_++){var h=f[_];h.addEventListener("mousedown",function(t){wpsr_tsb.startx=t.pageX,wpsr_tsb.starty=t.pageY}),h.addEventListener("mouseup",function(t){var e=i();""!=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 b=tsb.querySelectorAll("a"),_=0;_<b.length;_++){b[_].addEventListener("click",function(t){var e=this.getAttribute("data-link");"#"!=e&&(rep_link=d(e),wpsr_helpers.popup(rep_link,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"),a=e.getAttribute("data-sm-width"),n=window.innerWidth<=a?r:s;"close"==n?wpsr_helpers.addClass(e,"wpsr-closed"):wpsr_helpers.removeClass(e,"wpsr-closed"),"hide"==n?wpsr_helpers.addClass(e,"wpsr-hide"):wpsr_helpers.removeClass(e,"wpsr-hide"),"function"==typeof e.sm_action_call&&n==r&&e.sm_action_call(),"function"==typeof e.lg_action_call&&n==s&&e.lg_action_call()}})});var m=document.querySelectorAll(".wpsr-close-btn");if(m.length>0)for(_=0;_<m.length;_++){var g=m[_];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(wpsr_ajax_url){var y=document.querySelectorAll("[data-wpsrs]");if(y.length>0){var k={},A=wpsr_ajax_url+"?action=wpsr_share_count";for(_=0;_<y.length;_++){var C=y[_],x=C.getAttribute("data-wpsrs"),L=C.getAttribute("data-wpsrs-svcs").split(",");x in k||(k[x]=[]);for(j=0;j<L.length;j++)-1===k[x].indexOf(L[j])&&k[x].push(L[j])}var S=function(t){var e=JSON.parse(t.responseText),s=document.querySelectorAll('[data-wpsrs="'+t.props.forURL+'"]');for(_=0;_<s.length;_++){var r=s[_],a=r.getAttribute("data-wpsrs-svcs").split(","),n=0;for(j=0;j<a.length;j++){var o=a[j];o in e&&(n+=parseInt(e[o])||0)}n>0&&(r.innerHTML=wpsr_helpers.format_num(n))}};for(var x in k)k.hasOwnProperty(x)&&(send_data={url:x,services:k[x]},to_send="data="+JSON.stringify(send_data),wpsr_helpers.ajax(A,"POST",to_send,S,{forURL:x}))}}});
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)})});
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.7.2
7
- Stable tag: 6.5
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
  Requires PHP: 5.3
@@ -19,60 +19,121 @@ Plugin is really fast, simple and easy to use. It works excellently on mobile de
19
 
20
  It supports all the latest and popular social media platforms (50+) like Facebook, Twitter, Instagram, WhatsApp, LinkedIn and much more. It also displays share count for Facebook and Pinterest.
21
 
22
- ### What makes WP Socializer stand out from others ?
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
- * Totally free !
25
  * Beautiful, powerful yet easy to use.
26
  * Lightweight and very fast. Does not affect website performance.
27
- * Mobile ready, responsive and has app linking.
28
- * Works with any theme.
29
- * Add social icons anywhere using **Shortcodes**
30
- * Lots of icon styles, effects and change icons to any color you want.
31
- * Display share count.
32
- * Recover old share count.
33
- * Support for widgets.
34
- * Add your own icon/image !
35
- * Create rules on where to display the icons.
36
  * GDPR complaint.
37
  * Works with Gutenberg.
38
  * Works with Woocommerce.
39
  * Works with custom post types.
 
40
  * No registration required and completely local.
41
  * Friendly support.
42
  * No-nonsense !
43
 
44
- ### Features
 
 
 
 
 
 
 
45
 
46
- * Social sharing icons for posts and pages (50+ platforms)
47
- * Sticky/floating share bar.
48
- * Mobile share bar.
49
- * Follow my profile icons (25+ icons - Sticky).
50
- * Selected text share bar aka tooltip.
51
- *
52
- * Shortcode to create social sharing icons.
53
- * Shortcode to add social profile icons.
54
- * Shortcode to create social share links.
55
- *
56
- * Widget for Social profile icons.
57
- * Widget for Facebook page.
58
- * Widget for Twitter tweets.
59
 
60
- ### Supported social media share and follow me icons
 
 
 
61
 
62
- You can add social media sharing icons and follow my profile icons for the below platforms.
63
 
64
- Add to favorites, Behance, Bitbucket, Blogger, CodePen, Comments, Delicious, DeviantArt, Digg, Dribbble, Email, Facebook, Facebook messenger, Flickr, Github, Google, Hacker News, Instagram, LinkedIn, Medium, PayPal, PDF, Pinterest, Pocket, Print, Reddit, RSS, Short link, Snapchat, Soundcloud, StackOverflow, Quora, Telegram, Tumblr, Twitter, Vimeo, VKontakte, wechat, WhatsApp, Xing, Yahoo! Mail, Youtube, Weibo, Line, Mix, Odnoklassniki, Renren, Skype, Telephone/call button, Houzz, Etsy, Discord, Patreon, Viber, TikTok
 
 
65
 
66
- ### Supported icon styles
67
 
68
- You can select any of the following styles for the social sharing icons.
 
 
 
 
 
69
 
70
- Square, Circle, Squircle, Squircle type 2, Diamond, Drop & Ribbon
71
 
72
  ### Plugin links
73
  * [Live demo](https://wpdemos.aakashweb.com/blog/wp-socializer/)
74
  * [Support Forum](https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/)
75
- * [Documentation](https://www.aakashweb.com/docs/)
76
  * [Homepage](https://www.aakashweb.com/wordpress-plugins/wp-socializer/)
77
 
78
 
@@ -136,7 +197,7 @@ Please select "Hide in all pages" option under "conditions to display the templa
136
  Custom share buttons can be added using the "Custom HTML" service. Paste your button generation script in the text box and use that custom HTML button in the template.
137
 
138
 
139
- Please refer [this page](https://www.aakashweb.com/docs/) for the full list of FAQs.
140
 
141
 
142
 
@@ -154,6 +215,14 @@ Please refer [this page](https://www.aakashweb.com/docs/) for the full list of F
154
 
155
 
156
  ## Changelog
 
 
 
 
 
 
 
 
157
  ### 6.5
158
  * New: Simplified and cleaned up the admin UI.
159
  * New: Refined share icons layout.
@@ -167,7 +236,7 @@ Please refer [this page](https://www.aakashweb.com/docs/) for the full list of F
167
 
168
  ### 6.4
169
  * New: Added TikTok icon in follow me icons.
170
- * Fix: "Unparenthesized" error when using PHP 8.
171
  * Fix: Follow icons editor does not load when the icons have `~` in the URL.
172
  * Fix: Updated fontawesome to the latest version.
173
 
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
19
 
20
  It supports all the latest and popular social media platforms (50+) like Facebook, Twitter, Instagram, WhatsApp, LinkedIn and much more. It also displays share count for Facebook and Pinterest.
21
 
22
+ ### Insert Share and Follow Me Buttons Anywhere
23
+
24
+ WP Socializer is feature rich with which you can display share/follow buttons anywhere. This allows you to encourage visitors to share and follow your content.
25
+
26
+ * Inline - Share icons
27
+ * Floating share bar (stick to content, window, scroll)
28
+ * Follow icons
29
+ * Text share bar
30
+ * Shortcodes
31
+
32
+ ### 55+ Popular Social Network Icons Out-of-the Box
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
40
+
41
+ Customize the social icons with a variety of options. This helps you match the style of your website and look good.
42
+
43
+ * 2 layouts
44
+ * 4 icon sizes
45
+ * 7 icon shapes
46
+ * 7 hover effects
47
+ * Pick any icon color
48
+ * Pick any background color
49
+ * Alignment options
50
+ * Custom text, hover text, icon image
51
+
52
+ ### Popular Widgets Ready to Use
53
+
54
+ Encourage visitors to follow your social profile by displaying widgets like Facebook page, Twitter feed and Follow me icons on your sidebar - all out of the box. You don't need to have separate plugins now.
55
+
56
+ * Facebook page timeline
57
+ * Twitter feed
58
+ * Follow me icons
59
+
60
+ ### Responsive and Works on any device
61
+
62
+ You can configure simple rules to decide how the social icons should behave on smaller and wider screens easily.
63
+
64
+ * Automatically move floating sharebar to the bottom of the screens
65
+ * Show/Hide inline share icons in smaller devices
66
+ * Show/hide follow icons in smaller devices
67
+ * Custom responsive width
68
+
69
+ ### Insert share icons on specific pages
70
+
71
+ Sometimes you might not need to display sharing icons in all the pages of your website. With WP Socializer you can create rules to decide where the icons should be shown.
72
+
73
+ * Show on all pages
74
+ * Show on specific pages
75
+ * Hide on specific pages
76
+ * Show/hide on specific custom post types
77
+ * Hide on home page
78
+
79
+ ### Share counter
80
+
81
+ Display individual and total share counts for social networks like Facebook and Pinterest.
82
+
83
+ * Facebook like/share count
84
+ * Pinterest count
85
+ * Total count
86
+ * Recover share count from http/https
87
+
88
+ ### ⚡ More features
89
 
 
90
  * Beautiful, powerful yet easy to use.
91
  * Lightweight and very fast. Does not affect website performance.
 
 
 
 
 
 
 
 
 
92
  * GDPR complaint.
93
  * Works with Gutenberg.
94
  * Works with Woocommerce.
95
  * Works with custom post types.
96
+ * Works with any theme.
97
  * No registration required and completely local.
98
  * Friendly support.
99
  * No-nonsense !
100
 
101
+ ### 💎 PRO version
102
+
103
+ [**Create Custom Icons**](https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=readme&utm_medium=custom-icons&utm_campaign=wpsr-pro) - You can create and add custom icons for any new social network to share or add a icon to follow your social profile URL.
104
+
105
+ * Pick any color for the icon.
106
+ * Custom icon image, fontawesome icon
107
+ * Use the icon in all the features
108
+ * Use in shortcodes
109
 
110
+ [**Customize Share URL, Title, Tweet Text**](https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=readme&utm_medium=sharing-information&utm_campaign=wpsr-pro) - If you want to change share URL or set a different tweet text for a post, then you can do that with WP Socializer PRO. This allows you to customize what information is shared for each post.
 
 
 
 
 
 
 
 
 
 
 
 
111
 
112
+ * Twitter tweet text
113
+ * Share URL
114
+ * Share title
115
+ * Short URL
116
 
117
+ [**Share Short Links with Bit.ly**](https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=readme&utm_medium=bitly&utm_campaign=wpsr-pro) - By default the full URL of the post will be used for sharing. Now, using Bit.ly your users can share short links of your posts and pages.
118
 
119
+ * Share short links
120
+ * Set custom short link
121
+ * Track clicks on Bit.ly dashboard.
122
 
123
+ [**Tracking Clicks with Google Analytics**](https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=readme&utm_medium=google-analytics&utm_campaign=wpsr-pro) - With WP Socializer PRO, you can track clicks happening on the share icons, follow icons using Google Analytics. You can see how users are interacting with your share icons directly on Google Analytics dashboard.
124
 
125
+ * Track clicks on all features
126
+ * Supports Universal Analytics
127
+ * Supports Google Analytics 4
128
+ * Supports Google Tag manager
129
+
130
+ [**Check out WP Socializer - PRO**](https://www.aakashweb.com/wordpress-plugins/wp-socializer/?utm_source=readme&utm_medium=get&utm_campaign=wpsr-pro)
131
 
 
132
 
133
  ### Plugin links
134
  * [Live demo](https://wpdemos.aakashweb.com/blog/wp-socializer/)
135
  * [Support Forum](https://www.aakashweb.com/forum/discuss/wordpress-plugins/wp-socializer/)
136
+ * [Documentation](https://www.aakashweb.com/docs/wp-socializer/)
137
  * [Homepage](https://www.aakashweb.com/wordpress-plugins/wp-socializer/)
138
 
139
 
197
  Custom share buttons can be added using the "Custom HTML" service. Paste your button generation script in the text box and use that custom HTML button in the template.
198
 
199
 
200
+ Please refer [this page](https://www.aakashweb.com/docs/wp-socializer/) for the full list of FAQs.
201
 
202
 
203
 
215
 
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.
222
+ * New: Post level settings to disable a feature.
223
+ * New: Support for WordPress 5.8 widgets.
224
+ * Fix: Rewrite HTML generator to support extensibility.
225
+
226
  ### 6.5
227
  * New: Simplified and cleaned up the admin UI.
228
  * New: Refined share icons layout.
236
 
237
  ### 6.4
238
  * New: Added TikTok icon in follow me icons.
239
+ * Fix: "Un-parenthesized" error when using PHP 8.
240
  * Fix: Follow icons editor does not load when the icons have `~` in the URL.
241
  * Fix: Updated fontawesome to the latest version.
242
 
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: 6.5
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', '6.5' );
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' ) );
@@ -36,6 +36,7 @@ final class WP_Socializer{
36
  include_once( WPSR_PATH . 'core/metadata.php' );
37
  include_once( WPSR_PATH . 'core/location-rules.php' );
38
  include_once( WPSR_PATH . 'core/includes.php' );
 
39
  include_once( WPSR_PATH . 'core/share-counter.php' );
40
  include_once( WPSR_PATH . 'core/shortcodes.php' );
41
  include_once( WPSR_PATH . 'core/widgets.php' );
@@ -46,6 +47,7 @@ final class WP_Socializer{
46
  include_once( WPSR_PATH . 'core/templates/floating-sharebar.php' );
47
  include_once( WPSR_PATH . 'core/templates/follow-icons.php' );
48
  include_once( WPSR_PATH . 'core/templates/text-sharebar.php' );
 
49
 
50
  // Widgets
51
  include_once( WPSR_PATH . 'core/widgets/follow-icons.php' );
@@ -57,6 +59,7 @@ final class WP_Socializer{
57
  include_once( WPSR_PATH . 'admin/form.php' );
58
  include_once( WPSR_PATH . 'admin/icons-editor.php' );
59
  include_once( WPSR_PATH . 'admin/widgets.php' );
 
60
  include_once( WPSR_PATH . 'admin/tools.php' );
61
 
62
  // Admin pages
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' ) );
36
  include_once( WPSR_PATH . 'core/metadata.php' );
37
  include_once( WPSR_PATH . 'core/location-rules.php' );
38
  include_once( WPSR_PATH . 'core/includes.php' );
39
+ include_once( WPSR_PATH . 'core/html-tag.php' );
40
  include_once( WPSR_PATH . 'core/share-counter.php' );
41
  include_once( WPSR_PATH . 'core/shortcodes.php' );
42
  include_once( WPSR_PATH . 'core/widgets.php' );
47
  include_once( WPSR_PATH . 'core/templates/floating-sharebar.php' );
48
  include_once( WPSR_PATH . 'core/templates/follow-icons.php' );
49
  include_once( WPSR_PATH . 'core/templates/text-sharebar.php' );
50
+ include_once( WPSR_PATH . 'core/templates/popups.php' );
51
 
52
  // Widgets
53
  include_once( WPSR_PATH . 'core/widgets/follow-icons.php' );
59
  include_once( WPSR_PATH . 'admin/form.php' );
60
  include_once( WPSR_PATH . 'admin/icons-editor.php' );
61
  include_once( WPSR_PATH . 'admin/widgets.php' );
62
+ include_once( WPSR_PATH . 'admin/post-settings.php' );
63
  include_once( WPSR_PATH . 'admin/tools.php' );
64
 
65
  // Admin pages