WP Socializer - Version 5.0

Version Description

  • New: Social icons feature is replacing "classic share buttons" feature with easy to setup and powerful features.
  • New: Floating sharebar is replacing the "classic sharebar" feature providing advanced features to setup quick and easy.
  • New: Minor UI changes to the admin page.
  • Fix: 40px size was not working for text sharebar.
  • New: Social share buttons in widgets feature has been removed.
Download this release

Release Info

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

Code changes from version 4.2 to 5.0

admin/admin.php CHANGED
@@ -144,6 +144,7 @@ class WPSR_Admin{
144
  'page_callback' => '',
145
  'feature' => true,
146
  'link' => '',
 
147
  'form' => array(
148
  'id' => '',
149
  'name' => '',
@@ -171,7 +172,8 @@ class WPSR_Admin{
171
  'page_card',
172
  'card_' . $id,
173
  (!$only_features ? 'card_others' : ''),
174
- ($is_feat_active ? 'active' : '')
 
175
  );
176
 
177
  echo '<a class="' . implode(' ', $card_class) . '" href="' . $link . '" style="background-image: url(' . $config['banner'] . ')">';
@@ -375,7 +377,10 @@ class WPSR_Admin{
375
 
376
  echo '<table class="form-table">';
377
  foreach( $input as $r ){
378
- echo '<tr ' . ( isset( $r[2] ) ? $r[2] : '' ) . '>';
 
 
 
379
  echo '<th>' . $r[0] . '</th>';
380
  echo '<td>' . $r[1] . '</td>';
381
  echo '</tr>';
@@ -685,7 +690,9 @@ class WPSR_Admin{
685
  if( in_array( get_current_screen()->id, $pages_display ) ){
686
  if( version_compare( WPSR_VERSION, get_option( 'wpsr_last_changelog' ), '>' ) ){
687
  echo '<div class="notice notice-success is-dismissible">
688
- <p>' . sprintf( __( '<b>WP Socializer</b> is updated to latest version. Please visit the %ssettings%s page to see all the new features and the change log.', 'wpsr' ), '<a href="' . esc_url( admin_url( 'admin.php?page=wp_socializer') ) . '">', '</a>' ) . '</p>
 
 
689
  </div>';
690
  }
691
  }
@@ -695,7 +702,7 @@ class WPSR_Admin{
695
  echo '<div class="admin_links">
696
  <a href="https://www.paypal.me/vaakash/" target="_blank"><i class="fa fa-coffee cdarkred"></i>Buy me a coffee !</a>
697
  <a href="https://wordpress.org/support/plugin/wp-socializer/reviews/?rate=5#new-post" target="_blank"><i class="fa fa-star corange"></i>Rate 5 stars</a>
698
- <a href="https://twitter.com/intent/tweet?hashtags=wordpress&ref_src=twsrc%5Etfw&related=vaakash&text=Check%20out%20WP%20Socializer%2C%20a%20powerful%20social%20media%20share%20icons%2C%20buttons%20plugin%20for%20WordPress&tw_p=tweetbutton&url=https%3A%2F%2Fwww.aakashweb.com%2Fwordpress-plugins%2Fwp-socializer%2F&via=vaakash" target="_blank"><i class="fab fa-twitter ctwitter"></i>Share this plugin</a>
699
  </div>';
700
  }
701
 
@@ -733,7 +740,7 @@ class WPSR_Admin{
733
  </div>';
734
 
735
  echo '<div class="ufw"><a href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/" target="_blank">
736
- <img src="' . WPSR_ADMIN_URL . '/images/icons/ufw.png" class="icon"><span>Ultimate floating widgets</span><div class="banner"><img src="' . WPSR_ADMIN_URL . '/images/banners/ufw.png"/><em>A plugin to float your sidebar widgets. Check it out <i class="fas fa-arrow-right"></i></em></div></a>
737
  </div>';
738
 
739
  }
144
  'page_callback' => '',
145
  'feature' => true,
146
  'link' => '',
147
+ 'class' => '',
148
  'form' => array(
149
  'id' => '',
150
  'name' => '',
172
  'page_card',
173
  'card_' . $id,
174
  (!$only_features ? 'card_others' : ''),
175
+ ($is_feat_active ? 'active' : ''),
176
+ $config['class']
177
  );
178
 
179
  echo '<a class="' . implode(' ', $card_class) . '" href="' . $link . '" style="background-image: url(' . $config['banner'] . ')">';
377
 
378
  echo '<table class="form-table">';
379
  foreach( $input as $r ){
380
+
381
+ $row_class = empty( $r[1] ) ? ' class="sub_head"' : '';
382
+
383
+ echo '<tr ' . ( isset( $r[2] ) ? $r[2] : '' ) . '' . $row_class . '>';
384
  echo '<th>' . $r[0] . '</th>';
385
  echo '<td>' . $r[1] . '</td>';
386
  echo '</tr>';
690
  if( in_array( get_current_screen()->id, $pages_display ) ){
691
  if( version_compare( WPSR_VERSION, get_option( 'wpsr_last_changelog' ), '>' ) ){
692
  echo '<div class="notice notice-success is-dismissible">
693
+ <p>' . __( '<b>WP Socializer</b> is updated to the latest brand new version', 'wpsr') . '</p>
694
+ <p>' . sprintf( __( 'Social icons and floating sharebar features have been updated. Social icons and sharebar is now beautiful and easy to configure. Please visit the %ssettings%s page to configure them.', 'wpsr' ), '<a href="' . esc_url( admin_url( 'admin.php?page=wp_socializer') ) . '">', '</a>' ) . '</p>
695
+ <p><a href="' . esc_url( admin_url( 'admin.php?page=wp_socializer') ) . '" class="button button-primary">' . __( 'Open settings', 'wpsr' ) . '</a></p>
696
  </div>';
697
  }
698
  }
702
  echo '<div class="admin_links">
703
  <a href="https://www.paypal.me/vaakash/" target="_blank"><i class="fa fa-coffee cdarkred"></i>Buy me a coffee !</a>
704
  <a href="https://wordpress.org/support/plugin/wp-socializer/reviews/?rate=5#new-post" target="_blank"><i class="fa fa-star corange"></i>Rate 5 stars</a>
705
+ <a href="https://twitter.com/intent/tweet?hashtags=wordpress&ref_src=twsrc%5Etfw&related=vaakash&text=Check%20out%20WP%20Socializer%2C%20a%20powerful%20social%20media%20share%20icons%2C%20buttons%20plugin%20for%20WordPress&tw_p=tweetbutton&url=https%3A%2F%2Fwww.aakashweb.com%2Fwordpress-plugins%2Fwp-socializer%2F&via=vaakash" target="_blank"><i class="fab fa-twitter ctwitter"></i>Recommend this plugin</a>
706
  </div>';
707
  }
708
 
740
  </div>';
741
 
742
  echo '<div class="ufw"><a href="https://www.aakashweb.com/wordpress-plugins/ultimate-floating-widgets/" target="_blank">
743
+ <span>Ultimate floating widgets</span><div class="banner"><img src="' . WPSR_ADMIN_URL . '/images/banners/ufw.png"/><em>A plugin to float your sidebar widgets. Check it out <i class="fas fa-arrow-down"></i></em></div></a>
744
  </div>';
745
 
746
  }
admin/buttons.php CHANGED
@@ -15,10 +15,11 @@ class wpsr_admin_buttons{
15
  function register( $pages ){
16
 
17
  $pages[ 'buttons' ] = array(
18
- 'name' => 'Share buttons',
19
  'banner' => WPSR_ADMIN_URL . '/images/banners/share-buttons.svg',
20
  'page_callback' => array( $this, 'page' ),
21
  'feature' => true,
 
22
  'form' => array(
23
  'id' => 'button_settings',
24
  'name' => 'button_settings',
@@ -136,9 +137,14 @@ class wpsr_admin_buttons{
136
 
137
  }
138
 
139
-
140
  function page(){
141
-
 
 
 
 
 
 
142
  // Add settings form
143
  WPSR_Admin::settings_form( 'buttons' );
144
 
15
  function register( $pages ){
16
 
17
  $pages[ 'buttons' ] = array(
18
+ 'name' => 'Share buttons (Deprecated)',
19
  'banner' => WPSR_ADMIN_URL . '/images/banners/share-buttons.svg',
20
  'page_callback' => array( $this, 'page' ),
21
  'feature' => true,
22
+ 'class' => 'old_ft',
23
  'form' => array(
24
  'id' => 'button_settings',
25
  'name' => 'button_settings',
137
 
138
  }
139
 
 
140
  function page(){
141
+
142
+ echo '<div class="notice notice-error">
143
+ <p>Classic share buttons feature is now deprecated and will be removed in the next version. It is replaced with a brand new "Social icons" feature.</p>
144
+ <p>Please enable the new social icons in the settings page and migrate your old configuration.</p>
145
+ <p><a href="' . admin_url( 'admin.php?page=wp_socializer&tab=social_icons') . '" class="button button-primary">Open new social icons settings</a></p>
146
+ </div>';
147
+
148
  // Add settings form
149
  WPSR_Admin::settings_form( 'buttons' );
150
 
admin/css/style.css CHANGED
@@ -73,8 +73,6 @@ h1.wpsr_title a i{
73
  position: relative;
74
  box-sizing: border-box;
75
  text-decoration: none;
76
- border-radius: 5px;
77
- overflow: hidden;
78
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
79
  }
80
  .page_card h3{
@@ -93,6 +91,22 @@ h1.wpsr_title a i{
93
  background: #4eb951;
94
  color: #fff;
95
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
96
 
97
 
98
  .page_icon{
@@ -126,24 +140,6 @@ h1.wpsr_title a i{
126
  }
127
 
128
 
129
- .postbox h3 {
130
- font-size: 13px;
131
- text-transform: uppercase;
132
- padding: 8px 12px;
133
- margin: 0;
134
- line-height: 1.4;
135
- cursor: pointer !important;
136
- }
137
- .postbox h3:after{
138
- content: '-';
139
- display: inline-block;
140
- position: absolute;
141
- right: 15px;
142
- top: 8px;
143
- }
144
- .postbox h3.pbclosed:after{
145
- content: '+';
146
- }
147
  .postbox hr{
148
  margin: 15px 0;
149
  border-bottom: none;
@@ -1198,6 +1194,14 @@ select[name="ft_status"]{
1198
  border-radius: 0 5px 5px 0 !important;
1199
  }
1200
 
 
 
 
 
 
 
 
 
1201
  .img_select{
1202
  display: none;
1203
  }
@@ -1339,7 +1343,7 @@ select[name="ft_status"]{
1339
 
1340
  .admin_links{
1341
  position: absolute;
1342
- top: 50%;
1343
  right: 0;
1344
  display: flex;
1345
  transform: translateY(-50%);
@@ -1544,26 +1548,19 @@ select[name="ft_status"]{
1544
 
1545
  .ufw{
1546
  position: fixed;
1547
- right: 50px;
1548
- top: 50%;
1549
- width: 55px;
1550
  text-align: center;
1551
- transform: translateY(-50%);
1552
- }
1553
- .ufw .icon{
1554
- width: 48px;
1555
- height: 48px;
1556
- box-shadow: 0 0 2px 0px #000;
1557
- border-radius: 50%;
1558
- border: 2px solid #fff;
1559
- transition: all 0.2s;
1560
- }
1561
- .ufw:hover .icon{
1562
- transform: scale(1.1) translateY(-10px);
1563
- box-shadow: 0 2px 5px -1px #000;
1564
  }
1565
  .ufw a{
1566
  text-decoration: none;
 
1567
  }
1568
  .ufw a:hover{
1569
  text-decoration: underline;
@@ -1571,9 +1568,9 @@ select[name="ft_status"]{
1571
  .ufw .banner{
1572
  display: none;
1573
  position: fixed;
1574
- right: 85px;
1575
  width: 320px;
1576
- top: -100%;
1577
  border-radius: 10px;
1578
  box-shadow: 0 0 2px 0px #000;
1579
  background: #000;
@@ -1587,15 +1584,6 @@ select[name="ft_status"]{
1587
  .ufw:hover .banner{
1588
  display: block;
1589
  }
1590
- .ufw .banner:after {
1591
- position: absolute;
1592
- border: 10px solid #000;
1593
- content: '';
1594
- right: -20px;
1595
- border-color: transparent transparent transparent #000;
1596
- top: 50%;
1597
- margin-top: -10px;
1598
- }
1599
  .ufw .banner em{
1600
  padding: 5px;
1601
  display: inline-block;
@@ -1635,6 +1623,146 @@ select[name="ft_status"]{
1635
  clear: both;
1636
  }
1637
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1638
  @media screen and (max-width: 1300px) {
1639
  .admin_links{
1640
  position: static;
73
  position: relative;
74
  box-sizing: border-box;
75
  text-decoration: none;
 
 
76
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
77
  }
78
  .page_card h3{
91
  background: #4eb951;
92
  color: #fff;
93
  }
94
+ .page_card.new_ft:before{
95
+ content: 'New';
96
+ position: absolute;
97
+ top: -14px;
98
+ right: -14px;
99
+ background: red;
100
+ padding: 3px 10px;
101
+ color: #fff;
102
+ border-radius: 5px;
103
+ }
104
+ .page_card.old_ft{
105
+ opacity: 0.3;
106
+ }
107
+ .page_card.old_ft:hover{
108
+ opacity: 1;
109
+ }
110
 
111
 
112
  .page_icon{
140
  }
141
 
142
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
143
  .postbox hr{
144
  margin: 15px 0;
145
  border-bottom: none;
1194
  border-radius: 0 5px 5px 0 !important;
1195
  }
1196
 
1197
+ .form-table tr.sub_head {
1198
+ border-bottom: 1px solid #dfdfdf;
1199
+ }
1200
+ .form-table tr.sub_head th {
1201
+ font-weight: normal !important;
1202
+ color: #666;
1203
+ }
1204
+
1205
  .img_select{
1206
  display: none;
1207
  }
1343
 
1344
  .admin_links{
1345
  position: absolute;
1346
+ top: 40px;
1347
  right: 0;
1348
  display: flex;
1349
  transform: translateY(-50%);
1548
 
1549
  .ufw{
1550
  position: fixed;
1551
+ right: 5px;
1552
+ bottom: 0;
 
1553
  text-align: center;
1554
+ background: #71a3e4 url(../images/icons/ufw.png) no-repeat;
1555
+ padding: 10px 10px 10px 35px;
1556
+ border-bottom: 0;
1557
+ border-radius: 5px 5px 0 0;
1558
+ box-shadow: 0 -2px 6px -2px #7e7e7e;
1559
+ z-index: 99999;
 
 
 
 
 
 
 
1560
  }
1561
  .ufw a{
1562
  text-decoration: none;
1563
+ color: #fff;
1564
  }
1565
  .ufw a:hover{
1566
  text-decoration: underline;
1568
  .ufw .banner{
1569
  display: none;
1570
  position: fixed;
1571
+ right: 5px;
1572
  width: 320px;
1573
+ bottom: 50px;
1574
  border-radius: 10px;
1575
  box-shadow: 0 0 2px 0px #000;
1576
  background: #000;
1584
  .ufw:hover .banner{
1585
  display: block;
1586
  }
 
 
 
 
 
 
 
 
 
1587
  .ufw .banner em{
1588
  padding: 5px;
1589
  display: inline-block;
1623
  clear: both;
1624
  }
1625
 
1626
+ /** V5 **/
1627
+ /** SIC - Social icons - Common **/
1628
+ .sic_backdrop{
1629
+ background: rgba(0, 0, 0, 0.1);
1630
+ position: fixed;
1631
+ top: 0;
1632
+ left: 0;
1633
+ right: 0;
1634
+ bottom: 0;
1635
+ z-index: 999;
1636
+ display: none;
1637
+ }
1638
+ .sic_content {
1639
+ background: #fff;
1640
+ margin: 0 auto;
1641
+ width: 50%;
1642
+ height: 60%;
1643
+ display: flex;
1644
+ flex-direction: column;
1645
+ position: absolute;
1646
+ top: 50%;
1647
+ left: 50%;
1648
+ transform: translate(-50%, -50%);
1649
+ box-shadow: 0 2px 5px 0px;
1650
+ }
1651
+ .sic_content header {
1652
+ padding: 20px;
1653
+ border-bottom: 1px solid #dfdfdf;
1654
+ }
1655
+ .sic_content section {
1656
+ overflow: auto;
1657
+ height: 100%;
1658
+ padding: 20px;
1659
+ }
1660
+ .sic_content footer{
1661
+ text-align: right;
1662
+ padding: 20px;
1663
+ border-top: 1px solid #dfdfdf;
1664
+ }
1665
+ .sic_content h3 {
1666
+ margin: 0;
1667
+ padding: 0;
1668
+ }
1669
+ .sic_content .sic_close_btn {
1670
+ position: absolute;
1671
+ top: 10px;
1672
+ right: 10px;
1673
+ padding: 10px;
1674
+ cursor: pointer;
1675
+ }
1676
+ .sic_content .sic_close_btn:hover {
1677
+ opacity: 0.5;
1678
+ }
1679
+ .sic_content .form-table{
1680
+ margin: 0;
1681
+ }
1682
+
1683
+ .sic_list {
1684
+ margin: 0;
1685
+ display: flex;
1686
+ flex-wrap: wrap;
1687
+ }
1688
+ .sic_list li {
1689
+ margin: 0 10px 10px 0;
1690
+ display: flex;
1691
+ padding: 0 5px;
1692
+ color: #fff;
1693
+ }
1694
+ .sic_list li > * {
1695
+ padding: 10px 5px;
1696
+ line-height: 1;
1697
+ }
1698
+ .sic_list li > i{
1699
+ font-size: 15px;
1700
+ }
1701
+ .sic_list li span {
1702
+ border-right: 1px solid rgba(255, 255, 255, 0.3);
1703
+ padding-right: 10px;
1704
+ margin-right: 5px;
1705
+ }
1706
+ .sic_list .sic_action_btn{
1707
+ opacity: 0.5;
1708
+ cursor: pointer;
1709
+ }
1710
+ .sic_list .sic_action_btn:hover{
1711
+ opacity: 1;
1712
+ }
1713
+
1714
+ /** SIP - Social icons - picker **/
1715
+ .sip_filter{
1716
+ margin-bottom: 20px;
1717
+ }
1718
+ .sip_selector .sie_settings_btn, .sip_selector .sie_delete_btn{
1719
+ display: none;
1720
+ }
1721
+ .sip_selector li{
1722
+ cursor: pointer;
1723
+ }
1724
+
1725
+ /** SIE - Social icons - editor **/
1726
+ .sie_editor{
1727
+ padding: 20px 10px 10px 20px;
1728
+ border: 1px dashed #dfdfdf;
1729
+ background: #fff;
1730
+ }
1731
+ .sie_toolbar{
1732
+ padding: 20px;
1733
+ background: #f7f7f7;
1734
+ border: 1px solid #dfdfdf;
1735
+ margin-top: -1px;
1736
+ }
1737
+ .sie_selected li{
1738
+ cursor: move;
1739
+ }
1740
+ .sie_selected li.ui-sortable-placeholder{
1741
+ visibility: visible !important;
1742
+ background-color: #333;
1743
+ }
1744
+ .sie_selected li.ui-sortable-helper {
1745
+ box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.5)
1746
+ }
1747
+ .sie_selected .sip_add_btn{
1748
+ display: none;
1749
+ }
1750
+ .sie_selected:empty {
1751
+ height: 30px;
1752
+ position: relative;
1753
+ margin: 0 10px 10px 0;
1754
+ }
1755
+ .sie_selected:empty:after{
1756
+ content: 'No social icons added';
1757
+ display: block;
1758
+ position: absolute;
1759
+ left: 50%;
1760
+ top: 50%;
1761
+ transform: translate(-50%, -50%);
1762
+ font-size: 15px;
1763
+ font-style: italic;
1764
+ }
1765
+
1766
  @media screen and (max-width: 1300px) {
1767
  .admin_links{
1768
  position: static;
admin/floating_sharebar.php ADDED
@@ -0,0 +1,309 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Floating sharebar settings page
4
+ *
5
+ **/
6
+
7
+ class wpsr_admin_floating_sharebar{
8
+
9
+ function __construct(){
10
+
11
+ add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
12
+
13
+ }
14
+
15
+ function register( $pages ){
16
+
17
+ $pages[ 'floating_sharebar' ] = array(
18
+ 'name' => 'Floating sharebar',
19
+ 'page_callback' => array( $this, 'page' ),
20
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/floating-sharebar-2.svg',
21
+ 'feature' => true,
22
+ 'class' => 'new_ft',
23
+ 'form' => array(
24
+ 'id' => 'floating_sharebar_settings',
25
+ 'name' => 'floating_sharebar_settings',
26
+ 'callback' => array( $this, 'form_fields' ),
27
+ 'validation' => array( $this, 'validation' ),
28
+ )
29
+ );
30
+
31
+ return $pages;
32
+
33
+ }
34
+
35
+ function form_fields( $values ){
36
+
37
+ $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'floating_sharebar' ) );
38
+
39
+ $section0 = array(
40
+ array( __( 'Select to enable or disable floating sharebar feature', 'wpsr' ), WPSR_Admin::field( 'select', array(
41
+ 'name' => 'ft_status',
42
+ 'value' => $values[ 'ft_status' ],
43
+ 'list' => array(
44
+ 'enable' => __( 'Enable floating sharebar', 'wpsr' ),
45
+ 'disable' => __( 'Disable floating sharebar', 'wpsr' )
46
+ ),
47
+ )), 'class="ft_table"' ),
48
+ );
49
+
50
+ WPSR_Admin::build_table( $section0, __( 'Enable/disable floating sharebar', 'wpsr' ), '', false, '1' );
51
+
52
+ $icon_settings = array( 'icon', 'hover_text' );
53
+ WPSR_Icons_Editor::commons( $icon_settings );
54
+
55
+ echo '<div class="feature_wrap">';
56
+
57
+ WPSR_Admin::box_wrap( 'open', __( 'Choose the social icons', 'wpsr' ), __( 'Add social icons to the template, re-arrange them and configure individual icon settings.', 'wpsr' ), '2' );
58
+ WPSR_Icons_Editor::editor( $values[ 'selected_icons' ], 'selected_icons' );
59
+ WPSR_Admin::box_wrap( 'close' );
60
+
61
+ $customization = array(
62
+
63
+ array(__( 'Icon size', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
64
+ 'name' => 'icon_size',
65
+ 'value' => $values['icon_size'],
66
+ 'list' => array(
67
+ '32px' => array( '32px', 'size.svg', '32px' ),
68
+ '40px' => array( '40px', 'size.svg', '40px' ),
69
+ '48px' => array( '48px', 'size.svg', '48px' ),
70
+ '64px' => array( '64px', 'size.svg', '64px' ),
71
+ ),
72
+ ))),
73
+
74
+ array( __( 'Icon shape', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
75
+ 'name' => 'icon_shape',
76
+ 'value' => $values['icon_shape'],
77
+ 'class' => 'setting_shape',
78
+ 'list' => array(
79
+ '' => array( 'Sqaure', 'shape-square.svg', '32px' ),
80
+ 'circle' => array( 'Circle', 'shape-circle.svg', '32px' ),
81
+ 'squircle' => array( 'Squircle', 'shape-squircle.svg', '32px' ),
82
+ 'squircle-2' => array( 'Squircle 2', 'shape-squircle-2.svg', '32px' ),
83
+ 'diamond' => array( 'Diamond*', 'shape-diamond.svg', '32px' ),
84
+ 'ribbon' => array( 'Ribbon*', 'shape-ribbon.svg', '32px' ),
85
+ 'drop' => array( 'Drop*', 'shape-drop.svg', '32px' ),
86
+ ),
87
+ 'helper' => 'Note: Shapes marked * might not react well to certain hover effects and share counter styles.'
88
+ ))),
89
+
90
+ array( __( 'Hover effects', 'wpsr' ), WPSR_Admin::field( 'select', array(
91
+ 'name' => 'hover_effect',
92
+ 'value' => $values['hover_effect'],
93
+ 'list' => array(
94
+ '' => __( 'None', 'wpsr' ),
95
+ 'opacity' => 'Opacity',
96
+ 'rotate' => 'Rotate',
97
+ 'zoom' => 'Zoom',
98
+ 'shrink' => 'Shrink',
99
+ 'float' => 'Float',
100
+ 'sink' => 'Sink',
101
+ 'fade-white' => 'Fade to white',
102
+ 'fade-black' => 'Fade to black'
103
+ ),
104
+ ))),
105
+
106
+ array( __( 'Icon color', 'wpsr' ), WPSR_Admin::field( 'text', array(
107
+ 'name' => 'icon_color',
108
+ 'value' => $values['icon_color'],
109
+ 'class' => 'color_picker',
110
+ 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
111
+ ))),
112
+
113
+ array( __( 'Icon background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
114
+ 'name' => 'icon_bg_color',
115
+ 'value' => $values['icon_bg_color'],
116
+ 'class' => 'color_picker',
117
+ 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
118
+ ))),
119
+
120
+ array( __( 'Space between the icons', 'wpsr' ), WPSR_Admin::field( 'select', array(
121
+ 'name' => 'padding',
122
+ 'value' => $values['padding'],
123
+ 'list' => array(
124
+ '' => 'No',
125
+ 'pad' => 'Yes'
126
+ ),
127
+ 'helper' => __( 'Select to add padding between the icons', 'wpsr' ),
128
+ )), 'data-conditioner data-condr-input=".setting_shape" data-condr-value="" data-condr-action="simple?show:hide" data-condr-events="change"'),
129
+
130
+ array('STYLE', ''),
131
+
132
+ array( __( 'Sharebar style', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
133
+ 'name' => 'style',
134
+ 'value' => $values['style'],
135
+ 'class' => 'setting_sb_style',
136
+ 'list' => array(
137
+ '' => array( 'Simple', 'layout-vertical.svg', '64px' ),
138
+ 'enclosed' => array( 'Enclosed', 'fsb-enclosed.svg', '64px' ),
139
+ ),
140
+ ))),
141
+
142
+ array( __( 'Sharebar background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
143
+ 'name' => 'sb_bg_color',
144
+ 'value' => $values['sb_bg_color'],
145
+ 'class' => 'color_picker',
146
+ )), 'data-conditioner data-condr-input=".setting_sb_style" data-condr-value="enclosed" data-condr-action="simple?show:hide" data-condr-events="change"'),
147
+
148
+ array('POSITION', ''),
149
+
150
+ array( __( 'Position of the sharebar', 'wpsr' ), WPSR_Admin::field( 'select', array(
151
+ 'name' => 'sb_position',
152
+ 'value' => $values['sb_position'],
153
+ 'class' => 'setting_sb_position',
154
+ 'list' => array(
155
+ 'wleft' => 'Left of the page',
156
+ 'wright' => 'Right of the page',
157
+ 'scontent' => 'Stick to the content'
158
+ ),
159
+ ))),
160
+
161
+ array( __( 'ID or class name of the content to stick with', 'wpsr' ), WPSR_Admin::field( 'text', array(
162
+ 'name' => 'stick_element',
163
+ 'value' => $values['stick_element'],
164
+ 'placeholder' => 'Ex: #content',
165
+ 'qtip' => 'https://www.youtube.com/watch?v=GQ1YO0xZ7WA'
166
+ )), 'data-conditioner data-condr-input=".setting_sb_position" data-condr-value="scontent" data-condr-action="simple?show:hide" data-condr-events="change"' ),
167
+
168
+ array( __( 'Offset from the window', 'wpsr' ), WPSR_Admin::field( 'text', array(
169
+ 'name' => 'offset',
170
+ 'value' => $values[ 'offset' ],
171
+ 'class' => '',
172
+ 'helper' => __( 'Example: 20px (or) 10%' )
173
+ ))),
174
+
175
+ array( __( 'Sharebar movement', 'wpsr' ), WPSR_Admin::field( 'select', array(
176
+ 'name' => 'movement',
177
+ 'value' => $values['movement'],
178
+ 'list' => array(
179
+ 'move' => __( 'Move when page scrolls', 'wpsr' ),
180
+ 'static' => __( 'Static, no movement', 'wpsr' )
181
+ ),
182
+ ))),
183
+
184
+ array('SHARE COUNTER', ''),
185
+
186
+ array( __( 'Share counter', 'wpsr' ), WPSR_Admin::field( 'select', array(
187
+ 'name' => 'share_counter',
188
+ 'value' => $values['share_counter'],
189
+ 'class' => 'setting_share_counter',
190
+ 'list' => array(
191
+ '' => 'No share count',
192
+ 'individual' => 'Individual count',
193
+ 'total' => 'Total count only',
194
+ 'total-individual' => 'Both individual and total counts',
195
+ ),
196
+ ))),
197
+
198
+ array( __( 'Share counter style', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
199
+ 'name' => 'sc_style',
200
+ 'value' => $values['sc_style'],
201
+ 'list' => array(
202
+ 'count-1' => array( 'Style 1', 'counter-1.svg', '60px' ),
203
+ 'count-2' => array( 'Style 2', 'counter-2.svg', '70px' ),
204
+ 'count-3' => array( 'Style 3', 'counter-3.svg', '70px' ),
205
+ ),
206
+ 'helper' => __( 'To show count, in the same page under icons list, select an icon and enable gear icon &gt; show count', 'wpsr' )
207
+ )), 'data-conditioner data-condr-input=".setting_share_counter" data-condr-value="individual" data-condr-action="pattern?show:hide" data-condr-events="change"'),
208
+
209
+ array( __( 'Total share count position', 'wpsr' ), WPSR_Admin::field( 'select', array(
210
+ 'name' => 'sc_total_position',
211
+ 'value' => $values['sc_total_position'],
212
+ 'list' => array(
213
+ 'top' => 'Above the icons',
214
+ 'bottom' => 'Below the icons'
215
+ ),
216
+ )), 'data-conditioner data-condr-input=".setting_share_counter" data-condr-value="total" data-condr-action="pattern?show:hide" data-condr-events="change"'),
217
+
218
+ array( __( 'Total share count color', 'wpsr' ), WPSR_Admin::field( 'text', array(
219
+ 'name' => 'sc_total_color',
220
+ 'value' => $values['sc_total_color'],
221
+ 'class' => 'color_picker',
222
+ 'helper' => 'Leave blank to use default color'
223
+ )), 'data-conditioner data-condr-input=".setting_share_counter" data-condr-value="total" data-condr-action="pattern?show:hide" data-condr-events="change"'),
224
+
225
+ array('RESPONSIVENESS', ''),
226
+
227
+ array( __( 'Responsive width', 'wpsr' ), WPSR_Admin::field( 'text', array(
228
+ 'name' => 'responsive_width',
229
+ 'value' => $values[ 'responsive_width' ],
230
+ 'type' => 'number',
231
+ 'class' => 'setting_responsive_width',
232
+ 'helper' => __( 'The screen size below which the sharebar will switch the below responsive mode. Value should be in pixels. Set 0 to disable this.' )
233
+ ))),
234
+
235
+ array( __( 'Responsive action', 'wpsr' ), WPSR_Admin::field( 'select', array(
236
+ 'name' => 'responsive_action',
237
+ 'value' => $values['responsive_action'],
238
+ 'list' => array(
239
+ 'minimize' => 'Minimize the share bar',
240
+ 'hide' => 'Hide the share bar'
241
+ ),
242
+ )), 'data-conditioner data-condr-input=".setting_responsive_width" data-condr-value="0" data-condr-action="simple?hide:show" data-condr-events="keyup change"'),
243
+
244
+ array('MISC', ''),
245
+
246
+ array( __( 'Initial state', 'wpsr' ), WPSR_Admin::field( 'select', array(
247
+ 'name' => 'init_state',
248
+ 'value' => $values['init_state'],
249
+ 'list' => array(
250
+ 'open' => __( 'Opened', 'wpsr' ),
251
+ 'close' => __( 'Closed', 'wpsr' )
252
+ ),
253
+ ))),
254
+
255
+ array( __( 'No of icons in the last to group', 'wpsr' ), WPSR_Admin::field( 'select', array(
256
+ 'name' => 'more_icons',
257
+ 'value' => $values['more_icons'],
258
+ 'list' => array(
259
+ '0' => 'No grouping',
260
+ '1' => '1',
261
+ '2' => '2',
262
+ '3' => '3',
263
+ '4' => '4',
264
+ '5' => '5',
265
+ '6' => '6',
266
+ '7' => '7',
267
+ '8' => '8',
268
+ '9' => '9',
269
+ '10' => '10',
270
+ ),
271
+ 'helper' => __( 'The last icons grouped will be displayed in a "More" icons menu', 'wpsr' )
272
+ ))),
273
+
274
+ );
275
+
276
+ WPSR_Admin::build_table( $customization, __( 'Customization', 'wpsr' ), '', false, '3' );
277
+
278
+ // Location rules
279
+ WPSR_Admin::box_wrap( 'open', __( 'Conditions to display the sharebar', 'wpsr' ), __( 'Choose the below options to select the pages which will display the sharebar.', 'wpsr' ), '4' );
280
+ WPSR_Location_Rules::display_rules( "loc_rules", $values['loc_rules'] );
281
+ WPSR_Admin::box_wrap( 'close' );
282
+
283
+ echo '</div>';
284
+
285
+ }
286
+
287
+
288
+ function page(){
289
+
290
+ WPSR_Admin::settings_form( 'floating_sharebar' );
291
+
292
+ }
293
+
294
+ function validation( $input ){
295
+
296
+ if( $input['ft_status'] == 'enable' ){
297
+ $sb_settings = get_option( 'wpsr_sharebar_settings' );
298
+ $sb_settings[ 'ft_status' ] = 'disable';
299
+ update_option( 'wpsr_sharebar_settings', $sb_settings );
300
+ }
301
+
302
+ return $input;
303
+ }
304
+
305
+ }
306
+
307
+ new wpsr_admin_floating_sharebar();
308
+
309
+ ?>
admin/icons_editor.php ADDED
@@ -0,0 +1,158 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ class WPSR_Icons_Editor{
4
+
5
+ public static function editor( $selected_icons, $form_name = 'selected_icons' ){
6
+
7
+ $social_icons = WPSR_Lists::social_icons();
8
+
9
+ echo '<div class="sie_wrap">';
10
+
11
+ echo '<div class="sie_editor">';
12
+ echo '<ul class="sic_list sie_selected">';
13
+
14
+ $si_selected = array();
15
+ $si_saved = json_decode( base64_decode( $selected_icons ) );
16
+
17
+ foreach( $si_saved as $icon ){
18
+ $id = key( $icon );
19
+ $settings = (array) $icon->$id;
20
+ array_push( $si_selected, array( $id => $settings ) );
21
+ }
22
+
23
+ foreach( $si_saved as $si_icons ){
24
+ foreach( $si_icons as $id => $settings ){
25
+
26
+ if( !array_key_exists( $id, $social_icons ) ){
27
+ continue;
28
+ }
29
+
30
+ $datas = array();
31
+ $props = $social_icons[ $id ];
32
+ array_push( $datas, 'data-id="' . $id . '"' );
33
+
34
+ foreach( $settings as $ics_id => $ics_value ){
35
+ array_push( $datas, 'data-icns_' . $ics_id . '="' . esc_attr( $ics_value ) . '"' );
36
+ }
37
+
38
+ $datas = implode( ' ', $datas );
39
+ echo '<li ' . $datas . ' style="background-color: ' . $props[ 'colors' ][ 0 ] . '">';
40
+ echo '<i class="' . $props[ 'icon' ] . ' item_icon" ></i> ';
41
+ echo '<span>' . $props[ 'name' ] . '</span>';
42
+ echo '<i class="fa fa-trash-alt sic_action_btn sie_delete_btn" title="' . __( 'Delete icon', 'wpsr' ) . '"></i> ';
43
+ echo '<i class="fa fa-cog sic_action_btn sie_settings_btn" title="' . __( 'Icon settings', 'wpsr' ) . '"></i> ';
44
+ echo '</li>';
45
+
46
+ }
47
+ }
48
+
49
+ echo '</ul>';
50
+ echo '</div>';
51
+
52
+ echo '<div class="sie_toolbar">';
53
+ echo '<button class="button button-primary sie_open_picker_btn"><i class="fas fa-plus" title="Add icon"></i> ' . __( 'Add social icon', 'wpsr' ) . '</button>';
54
+ echo '</div>';
55
+
56
+ echo '<input type="hidden" name="' . $form_name . '" class="sie_selected_icons" value="' . $selected_icons . '"/>';
57
+
58
+ echo '</div>';
59
+
60
+ }
61
+
62
+ public static function commons( $allowed_icon_settings ){
63
+
64
+ $social_icons = WPSR_Lists::social_icons();
65
+ $icon_settings = self::icon_settings( $allowed_icon_settings );
66
+
67
+ // Editor - Icon settings
68
+ echo '<div class="sie_icon_settings sic_backdrop">
69
+ <div class="sic_content">
70
+ <header>
71
+ <h3></h3>
72
+ <i class="fa fa-times sic_close_btn"></i>
73
+ </header>';
74
+ echo '<section></section>';
75
+ echo '<footer><button class="button button-primary sie_save_settings_btn">' . __( 'Save icon settings', 'wpsr' ) . '</button></footer>';
76
+ echo '</div>
77
+ </div>';
78
+
79
+ // Picker
80
+ echo '<div class="sip_picker sic_backdrop">
81
+ <div class="sic_content">
82
+ <header>
83
+ <h3>Select an icon to add</h3>
84
+ <i class="fa fa-times sic_close_btn"></i>
85
+ </header>';
86
+
87
+ echo '<section>';
88
+ echo '<input type="search" class="widefat sip_filter" placeholder="Search icon"/>';
89
+ echo '<ul class="sic_list sip_selector">';
90
+
91
+ foreach( $social_icons as $id => $props ){
92
+ $datas = array();
93
+ array_push( $datas, 'data-id="' . $id . '"' );
94
+
95
+ if( !in_array( 'for_share', $props[ 'features' ] ) ){
96
+ continue;
97
+ }
98
+
99
+ foreach( $icon_settings as $is_id => $is_props ){
100
+ array_push( $datas, 'data-icns_' . $is_id . '=""' );
101
+ }
102
+
103
+ $datas = implode( ' ', $datas );
104
+ echo '<li ' . $datas . ' style="background-color: ' . $props[ 'colors' ][ 0 ] . '">';
105
+ echo '<i class="' . $props[ 'icon' ] . ' item_icon" ></i> ';
106
+ echo '<span>' . $props[ 'name' ] . '</span>';
107
+ echo '<i class="fas fa-plus sic_action_btn sip_add_btn" title="' . __( 'Add icon', 'wpsr' ) . '"></i>';
108
+ echo '<i class="fa fa-trash-alt sic_action_btn sie_delete_btn" title="' . __( 'Delete icon', 'wpsr' ) . '"></i> ';
109
+ echo '<i class="fa fa-cog sic_action_btn sie_settings_btn" title="' . __( 'Icon settings', 'wpsr' ) . '"></i> ';
110
+ echo '</li>';
111
+ }
112
+
113
+ echo '</ul>';
114
+ echo '</section>';
115
+
116
+ echo '</div>
117
+ </div>';
118
+
119
+ echo '<script>';
120
+ echo 'var sip_icons = ' . json_encode( $social_icons ) . ';';
121
+ echo 'var sip_icon_settings = ' . json_encode( $icon_settings ) . ';';
122
+ echo '</script>';
123
+
124
+ }
125
+
126
+ public static function icon_settings( $allowed_icon_settings ){
127
+
128
+ $all_icon_settings = array(
129
+ 'icon' => array(
130
+ 'type' => 'text',
131
+ 'helper' => __( 'Custom icon', 'wpsr' ),
132
+ 'placeholder' => __( 'Enter a custom icon URL for this site, starting with <code>http://</code>. You can also use class name of the icon font Example: <code>fa fa-star</code> Leave blank to use default icon', 'wpsr' )
133
+ ),
134
+ 'text' => array(
135
+ 'type' => 'text',
136
+ 'helper' => __( 'Text to show next to icon', 'wpsr' ),
137
+ 'placeholder' => __( 'Enter custom text to appear to next to the icon. Leave blank to show no text.', 'wpsr' )
138
+ ),
139
+ 'hover_text' => array(
140
+ 'type' => 'text',
141
+ 'helper' => __( 'Text to show on hovering the icon', 'wpsr' ),
142
+ 'placeholder' => __( 'Enter custom text to appear when the icon is hovered.', 'wpsr' )
143
+ )
144
+ );
145
+
146
+ foreach( $all_icon_settings as $id => $props ){
147
+ if( !in_array( $id, $allowed_icon_settings ) ){
148
+ unset( $all_icon_settings[ $id ] );
149
+ }
150
+ }
151
+
152
+ return $all_icon_settings;
153
+
154
+ }
155
+
156
+ }
157
+
158
+ ?>
admin/images/banners/floating-sharebar-2.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" viewBox="0 0 52.916665 52.916668"><g><rect width="12.744334" height="51.404762" x="8.0937586" y="4.52425" ry="2.4332221" fill="#fff" stroke="#d9d9d9" stroke-width=".16471642" stroke-linecap="round" stroke-linejoin="round"/><text style="line-height:5.64885426px" x="11.072206" y="12.359738" font-size="3.88055563" font-family="sans-serif" letter-spacing="0" word-spacing="0" stroke-width=".26458332"><tspan x="11.072206" y="12.359738" style="-inkscape-font-specification:'Arial Bold'" font-weight="bold" font-size="5.99722242" font-family="Arial">52</tspan></text><text style="line-height:5.64885426px" x="9.9985113" y="15.266794" font-size="3.88055563" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#b8b8b8" stroke-width=".26458332"><tspan x="9.9985113" y="15.266794" font-size="2.46944451" letter-spacing="-.19050001">SHARES</tspan></text><g transform="translate(-0.75885444,-0.52916667)"><path d="m 11.358729,31.201099 v 1.887738 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.618051 c 0,0.883777 0.711474,1.595252 1.595251,1.595252 h 1.135848 c 0.111964,0 0.221259,-0.01185 0.326596,-0.03359 h 2.413288 0.626319 1.887223 v -1.887738 -0.45062 -3.608049 c 0,-1.045723 -0.841497,-1.887738 -1.887223,-1.887738 h -3.683496 -0.509529 z" fill="#09f" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="m 17.342651,34.16554 c -0.146882,0.06531 -0.304957,0.109328 -0.470818,0.129037 0.169349,-0.101379 0.299198,-0.261971 0.360433,-0.453539 -0.158399,0.094 -0.333749,0.162209 -0.520535,0.199031 -0.149478,-0.15929 -0.362542,-0.25889 -0.598315,-0.25889 -0.45265,0 -0.819652,0.367001 -0.819652,0.819732 0,0.06416 0.0072,0.126688 0.02125,0.186793 -0.681285,-0.03427 -1.285359,-0.360516 -1.68967,-0.856477 -0.07056,0.121004 -0.110952,0.261809 -0.110952,0.412172 0,0.284361 0.144692,0.535303 0.36465,0.682262 -0.134311,-0.0046 -0.260754,-0.04121 -0.371302,-0.102596 -8e-5,0.0031 -8e-5,0.0069 -8e-5,0.0104 0,0.397093 0.282572,0.728326 0.657604,0.803758 -0.06878,0.01872 -0.141206,0.02873 -0.215984,0.02873 -0.05288,0 -0.104221,-0.0054 -0.154263,-0.01479 0.104382,0.325642 0.407068,0.562713 0.765716,0.569291 -0.280543,0.219873 -0.63392,0.350935 -1.018036,0.350935 -0.0661,0 -0.131391,-0.0039 -0.195545,-0.01155 0.362866,0.232697 0.793698,0.368303 1.256568,0.368303 1.507832,0 2.332269,-1.249025 2.332269,-2.332269 0,-0.03551 -7.13e-4,-0.07093 -0.0023,-0.10617 0.160101,-0.115335 0.299116,-0.259776 0.408934,-0.42418 z" fill="#fff" stroke-width=".08110549"/></g><g transform="translate(-0.72557944)"><path d="m 11.325454,41.293426 v 1.887739 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.61805 c 0,0.883777 0.711474,1.595253 1.595251,1.595253 h 1.135848 c 0.111964,0 0.221258,-0.01185 0.326595,-0.03359 h 2.413289 0.626319 1.887223 v -1.887739 -0.45062 -3.608049 c 0,-1.045723 -0.841497,-1.887739 -1.887223,-1.887739 H 13.72272 13.21319 Z" fill="#cb2027" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="m 17.368577,45.144413 c 0,1.096206 -0.888167,1.984373 -1.984373,1.984373 -0.204838,0 -0.401676,-0.03121 -0.58731,-0.08882 0.08081,-0.132025 0.201637,-0.348065 0.246446,-0.520098 0.02401,-0.09282 0.123223,-0.472088 0.123223,-0.472088 0.06481,0.123222 0.253648,0.228043 0.454485,0.228043 0.598513,0 1.029794,-0.550504 1.029794,-1.234633 0,-0.655323 -0.5353,-1.145816 -1.22343,-1.145816 -0.856161,0 -1.311447,0.574509 -1.311447,1.201026 0,0.291255 0.155229,0.653724 0.402476,0.768945 0.0376,0.0176 0.05761,0.0096 0.06641,-0.02641 0.0064,-0.0272 0.04001,-0.162431 0.05521,-0.224843 0.0048,-0.02 0.0024,-0.0376 -0.0136,-0.05681 -0.08082,-0.100019 -0.146428,-0.282453 -0.146428,-0.452886 0,-0.437682 0.331262,-0.860961 0.896168,-0.860961 0.487292,0 0.828956,0.332062 0.828956,0.807351 0,0.536902 -0.271251,0.908971 -0.624117,0.908971 -0.194436,0 -0.340864,-0.16083 -0.293655,-0.358467 0.05601,-0.236045 0.164031,-0.490492 0.164031,-0.660924 0,-0.152029 -0.08162,-0.279253 -0.251248,-0.279253 -0.199237,0 -0.359268,0.205639 -0.359268,0.481691 0,0.176033 0.05921,0.294455 0.05921,0.294455 0,0 -0.196037,0.830557 -0.232044,0.985786 -0.04001,0.171232 -0.02401,0.412877 -0.0072,0.569707 -0.737738,-0.288854 -1.261037,-1.00739 -1.261037,-1.848348 0,-1.096206 0.888167,-1.984373 1.984373,-1.984373 1.096207,0 1.984374,0.888167 1.984374,1.984373 z" fill="#fff" stroke-width=".0080015"/></g><g transform="translate(-0.85921844)"><path d="m 11.459093,19.917237 v 1.887739 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.61805 c 0,0.883777 0.711474,1.595253 1.595251,1.595253 h 1.135848 c 0.111964,0 0.221258,-0.01185 0.326595,-0.03359 h 2.413289 0.626319 1.887223 v -1.887739 -0.45062 -3.608049 c 0,-1.045723 -0.841498,-1.887739 -1.887223,-1.887739 h -3.683496 -0.50953 z" fill="#3e5b98" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="M 16.330206,23.439423 H 15.72033 v -0.399992 c 0,-0.150216 0.09956,-0.18524 0.16968,-0.18524 0.06996,0 0.430385,0 0.430385,0 v -0.660376 l -0.592727,-0.0024 c -0.657983,0 -0.80772,0.492536 -0.80772,0.807728 v 0.440184 h -0.380525 v 0.680488 h 0.380525 c 0,0.873296 0,1.925519 0,1.925519 h 0.800382 c 0,0 0,-1.0626 0,-1.925519 h 0.540074 z" fill="#fff" stroke-width=".07977477"/></g><g transform="translate(0,-0.43296254)"><rect width="40.207054" height="3.8639438" x="25.866831" y="9.4476023" fill="#efefef" stroke-width=".33238029" stroke-linecap="round" stroke-linejoin="round"/><rect width="34.893513" height="2.1166666" x="25.866831" y="16.827724" fill="#efefef" stroke-width=".22917503" stroke-linecap="round" stroke-linejoin="round"/><rect width="23.743216" height="2.1166666" x="25.866831" y="22.239925" fill="#efefef" stroke-width=".18904479" stroke-linecap="round" stroke-linejoin="round"/><rect width="40.207054" height="3.8639438" x="26.401369" y="29.426001" fill="#efefef" stroke-width=".33238029" stroke-linecap="round" stroke-linejoin="round"/><rect width="34.893513" height="2.1166666" x="26.401369" y="36.806122" fill="#efefef" stroke-width=".22917503" stroke-linecap="round" stroke-linejoin="round"/><rect width="23.743216" height="2.1166666" x="26.401369" y="42.218323" fill="#efefef" stroke-width=".18904479" stroke-linecap="round" stroke-linejoin="round"/></g></g></svg>
admin/images/banners/social-icons.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="200" height="200" viewBox="0 0 52.916665 52.916668"><g><rect y="4.1115742" x="5.1593728" height="3.8639438" width="40.207054" fill="#efefef" stroke-width=".33238029" stroke-linecap="round" stroke-linejoin="round"/><rect y="11.491697" x="5.1593728" height="2.1166666" width="34.893513" fill="#efefef" stroke-width=".22917503" stroke-linecap="round" stroke-linejoin="round"/><rect y="16.9039" x="5.1593728" height="2.1166666" width="23.743216" fill="#efefef" stroke-width=".18904479" stroke-linecap="round" stroke-linejoin="round"/><g><g transform="translate(0,-1.0583333)"><g transform="translate(-0.37797619,-6.6901821)"><g transform="matrix(0.80000002,0,0,0.80000002,-12.794494,28.068511)"><circle cx="27.261532" cy="11.216444" r="6.283854" fill="#3e5b98" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="M 28.281191,10.363098 H 27.518846 V 9.8631083 c 0,-0.18777 0.124447,-0.23155 0.2121,-0.23155 0.08745,0 0.537981,0 0.537981,0 V 8.8060889 l -0.740908,-0.003 c -0.822479,0 -1.00965,0.6156697 -1.00965,1.0096594 v 0.5502297 h -0.475657 v 0.85061 h 0.475657 c 0,1.09162 0,2.4069 0,2.4069 h 1.000477 c 0,0 0,-1.32825 0,-2.4069 h 0.675093 z" fill="#fff" stroke-width=".09971847"/></g><g transform="matrix(0.80000002,0,0,0.80000002,-1.2945684,16.071547)"><circle cx="27.49777" cy="26.212648" r="6.283854" fill="#4da7de" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="m 30.464729,24.742235 c -0.19071,0.0848 -0.395953,0.14195 -0.611304,0.16754 0.21988,-0.13163 0.388475,-0.34014 0.467981,-0.58887 -0.205663,0.12205 -0.433335,0.21061 -0.675856,0.25842 -0.19408,-0.20682 -0.47072,-0.33614 -0.776845,-0.33614 -0.587715,0 -1.064226,0.47651 -1.064226,1.06433 0,0.0833 0.0094,0.16449 0.02759,0.24253 -0.884573,-0.0445 -1.668895,-0.46809 -2.193847,-1.11204 -0.09162,0.15711 -0.144059,0.33993 -0.144059,0.53516 0,0.36921 0.187866,0.69503 0.473457,0.88584 -0.174388,-0.006 -0.33856,-0.0535 -0.482093,-0.13321 -1.05e-4,0.004 -1.05e-4,0.009 -1.05e-4,0.0135 0,0.51558 0.366888,0.94565 0.853825,1.04359 -0.0893,0.0243 -0.183339,0.0373 -0.280431,0.0373 -0.06866,0 -0.135319,-0.007 -0.200293,-0.0192 0.135529,0.42281 0.528533,0.73062 0.994197,0.73916 -0.364254,0.28548 -0.823074,0.45565 -1.321806,0.45565 -0.08582,0 -0.170596,-0.005 -0.253893,-0.015 0.471141,0.30213 1.030528,0.4782 1.631512,0.4782 1.957751,0 3.02819,-1.62172 3.02819,-3.02819 0,-0.0461 -9.26e-4,-0.0921 -0.003,-0.13785 0.207874,-0.14975 0.388369,-0.33729 0.530955,-0.55075 z" fill="#fff" stroke-width=".10530637"/></g><g transform="matrix(0.80000002,0,0,0.80000002,10.479387,4.0367859)"><circle cx="27.214287" cy="41.2561" r="6.283854" fill="#cb2027" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><path d="m 29.916819,41.615178 c 0,1.461609 -1.184224,2.645833 -2.645833,2.645833 -0.273118,0 -0.535568,-0.04161 -0.783081,-0.118423 0.107753,-0.176033 0.26885,-0.464087 0.328595,-0.693464 0.03201,-0.123757 0.164298,-0.629452 0.164298,-0.629452 0.08642,0.164297 0.338197,0.304058 0.605981,0.304058 0.798017,0 1.373059,-0.734006 1.373059,-1.646178 0,-0.873765 -0.713734,-1.527756 -1.631241,-1.527756 -1.141549,0 -1.748597,0.766012 -1.748597,1.601369 0,0.38834 0.206972,0.871632 0.536634,1.025261 0.05014,0.02347 0.07681,0.0128 0.08855,-0.03521 0.0085,-0.03627 0.05334,-0.216574 0.07361,-0.29979 0.0064,-0.02667 0.0032,-0.05014 -0.01814,-0.07575 -0.107754,-0.133359 -0.195237,-0.376605 -0.195237,-0.603848 0,-0.583577 0.441683,-1.14795 1.194892,-1.14795 0.649723,0 1.105276,0.44275 1.105276,1.07647 0,0.715869 -0.361669,1.211962 -0.832157,1.211962 -0.259249,0 -0.454486,-0.21444 -0.391541,-0.477957 0.07468,-0.314726 0.218708,-0.65399 0.218708,-0.881233 0,-0.202705 -0.108821,-0.372337 -0.334997,-0.372337 -0.26565,0 -0.479024,0.274185 -0.479024,0.642255 0,0.234711 0.07895,0.392607 0.07895,0.392607 0,0 -0.261383,1.10741 -0.309392,1.314382 -0.05334,0.22831 -0.03201,0.550504 -0.0096,0.75961 -0.983652,-0.385139 -1.681384,-1.343187 -1.681384,-2.464465 0,-1.46161 1.184224,-2.645834 2.645833,-2.645834 1.46161,0 2.645834,1.184224 2.645834,2.645834 z" fill="#fff" stroke-width=".01066868"/></g><g transform="translate(-1.5875,7.1059523)"><g transform="matrix(0.80000002,0,0,0.80000002,23.60461,-3.0691664)"><circle r="6.283854" cy="41.2561" cx="27.214287" fill="#60b82d" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.05879629,0,0,0.05879629,24.975961,38.557113)" fill="#fffdfd"><g><path d="M 90,43.8 C 90,68 70.2,87.6 45.8,87.6 c -7.7,0 -15,-2 -21.4,-5.5 L 0,90 8,66.5 C 4,59.9 1.7,52.1 1.7,43.9 1.6,19.6 21.4,0 45.8,0 70.2,0 90,19.6 90,43.8 Z M 45.8,7 C 25.3,7 8.7,23.5 8.7,43.8 c 0,8.1 2.6,15.5 7.1,21.6 l -4.6,13.7 14.3,-4.5 c 5.9,3.9 12.9,6.1 20.4,6.1 C 66.3,80.7 83,64.2 83,43.8 83,23.4 66.3,7 45.8,7 Z m 22.3,46.9 c -0.3,-0.4 -1,-0.7 -2.1,-1.3 -1.1,-0.5 -6.4,-3.1 -7.4,-3.5 -1,-0.4 -1.7,-0.5 -2.4,0.5 -0.7,1.1 -2.8,3.5 -3.4,4.2 -0.6,0.7 -1.3,0.8 -2.3,0.3 -1.1,-0.5 -4.6,-1.7 -8.7,-5.3 -3.2,-2.8 -5.4,-6.4 -6,-7.4 -0.6,-1.1 -0.1,-1.7 0.5,-2.2 0.5,-0.5 1.1,-1.3 1.6,-1.9 0.5,-0.6 0.7,-1.1 1.1,-1.8 0.4,-0.7 0.2,-1.3 -0.1,-1.9 -0.3,-0.5 -2.4,-5.8 -3.3,-8 -0.9,-2.1 -1.8,-1.8 -2.4,-1.8 -0.6,0 -1.4,-0.1 -2.1,-0.1 -0.7,0 -1.9,0.3 -2.9,1.3 -1,1.1 -3.8,3.7 -3.8,9 0,5.3 3.9,10.4 4.4,11.1 0.5,0.7 7.5,11.9 18.5,16.2 11,4.3 11,2.9 13,2.7 2,-0.2 6.4,-2.6 7.3,-5.1 0.8,-2.4 0.8,-4.5 0.5,-5 z"/></g></g></g></g></g><circle cx="11.532222" cy="25.642454" r="2.5557649" fill="#ff0e00" stroke-width=".26458332" stroke-linejoin="round"/><text style="line-height:1.25" x="10.44644" y="26.895281" font-size="7.76111126" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#fff" stroke-width=".26458332"><tspan x="10.44644" y="26.895281" font-size="3.52777767">5</tspan></text><g transform="matrix(1.1851851,0,0,1.1851851,-0.52146617,0.91694683)"><rect y="31.787796" x="4.3467236" height="7.1437507" width="7.1437507" fill="#0274b3" stroke-width=".19804454" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.19020233,0,0,0.19020233,5.7092139,33.137945)" fill="#fff"><g><path d="m 5.366,2.973 c 0,1.376 -1.035,2.479 -2.699,2.479 H 2.636 C 1.034,5.453 0,4.348 0,2.973 0,1.564 1.067,0.491 2.698,0.491 4.331,0.49 5.336,1.564 5.366,2.973 Z M 0.28,21.766 H 5.052 V 7.413 H 0.28 Z M 16.764,7.077 c -2.531,0 -3.664,1.39 -4.301,2.37 v 0.046 h -0.031 c 0.012,-0.014 0.023,-0.03 0.031,-0.046 V 7.414 H 7.692 c 0.062,1.345 0,14.353 0,14.353 h 4.771 v -8.016 c 0,-0.432 0.029,-0.855 0.157,-1.164 0.346,-0.854 1.132,-1.747 2.446,-1.747 1.729,0 2.42,1.319 2.42,3.247 v 7.68 h 4.771 V 13.538 C 22.258,9.126 19.902,7.077 16.764,7.077 Z"/></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></g></g><g transform="matrix(1.1851851,0,0,1.1851851,2.6535316,0.91694683)"><rect y="31.787796" x="11.490477" height="7.1437507" width="7.1437507" fill="#ef4056" stroke-width=".19804454" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.00826823,0,0,0.00826823,12.897852,33.520265)" fill="#fffbfb"><g><g><path d="M 480,32 H 32 C 14.368,32 0,46.368 0,64 v 176 c 0,132.352 107.648,240 240,240 h 32 C 404.352,480 512,372.352 512,240 V 64 C 512,46.368 497.664,32 480,32 Z m -73.376,182.624 -128,128 C 272.384,348.864 264.192,352 256,352 c -8.192,0 -16.384,-3.136 -22.624,-9.376 l -128,-128 c -12.512,-12.512 -12.512,-32.736 0,-45.248 12.512,-12.512 32.736,-12.512 45.248,0 L 256,274.752 361.376,169.376 c 12.512,-12.512 32.736,-12.512 45.248,0 12.512,12.512 12.512,32.736 0,45.248 z"/></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></g></g><path d="m 39.711676,38.894941 v 1.887739 0.33383 3.214791 c -0.0097,0.07138 -0.01654,0.143949 -0.01654,0.218075 v 0.61805 c 0,0.883777 0.711474,1.595253 1.595251,1.595253 h 1.135848 c 0.111964,0 0.221258,-0.01185 0.326595,-0.03359 h 2.413289 0.626319 1.887223 V 44.84135 44.39073 40.782681 c 0,-1.045723 -0.841498,-1.887739 -1.887223,-1.887739 h -3.683496 -0.50953 z" fill="#e61b2e" stroke-width=".26458332" stroke-linecap="round" stroke-linejoin="round"/><g transform="matrix(0.00803905,0,0,0.00803905,29.112417,40.911642)" fill="#f9ffed"><g><g><path d="M 329.956,399.834 H 182.044 c -9.425,0 -17.067,7.641 -17.067,17.067 0,9.426 7.641,17.067 17.067,17.067 h 147.911 c 9.425,0 17.067,-7.641 17.067,-17.067 0,-9.426 -7.641,-17.067 -17.066,-17.067 z"/></g></g><g><g><path d="M 329.956,346.006 H 182.044 c -9.425,0 -17.067,7.641 -17.067,17.067 0,9.426 7.641,17.067 17.067,17.067 h 147.911 c 9.425,0 17.067,-7.641 17.067,-17.067 0,-9.426 -7.641,-17.067 -17.066,-17.067 z"/></g></g><g><g><g transform="translate(131.64905)"><path d="m 27.257814,35.832563 v 2.001728 0.353988 3.408914 c -0.01029,0.07569 -0.01754,0.152642 -0.01754,0.231244 v 0.655371 c 0,0.937144 0.754436,1.691581 1.691581,1.691581 h 1.204435 c 0.118724,0 0.234619,-0.01257 0.346316,-0.03562 h 2.559014 0.66414 2.001181 v -2.00173 -0.47783 -3.825919 c 0,-1.108869 -0.892311,-2.001728 -2.001181,-2.001728 h -3.90592 -0.540297 z" transform="matrix(124.39281,0,0,124.39281,-3670.7438,-4759.9914)" fill="#6d9f00" stroke-width=".28056005" stroke-linecap="round" stroke-linejoin="round"/><path d="M 472.178,133.907 H 417.875 V 35.132 c 0,-9.425 -7.641,-17.067 -17.067,-17.067 H 111.192 c -9.425,0 -17.067,7.641 -17.067,17.067 v 98.775 H 39.822 C 17.864,133.907 0,151.772 0,173.73 v 171.702 c 0,21.958 17.864,39.822 39.822,39.822 h 54.306 v 91.614 c 0,9.425 7.641,17.067 17.067,17.067 h 289.61 c 9.425,0 17.067,-7.641 17.067,-17.067 v -91.614 h 54.306 C 494.136,385.254 512,367.39 512,345.432 V 173.73 c 0,-21.957 -17.864,-39.823 -39.822,-39.823 z M 128.258,52.199 h 255.483 v 81.708 H 128.258 Z m 255.48,407.602 H 128.262 c 0,-3.335 0,-135.503 0,-139.628 h 255.477 c -10e-4,4.229 -10e-4,136.421 -10e-4,139.628 z m 17.07,-225.679 h -43.443 c -9.425,0 -17.067,-7.641 -17.067,-17.067 0,-9.426 7.641,-17.067 17.067,-17.067 h 43.443 c 9.425,0 17.067,7.641 17.067,17.067 0,9.426 -7.641,17.067 -17.067,17.067 z"/></g></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></g><path d="m 43.933241,42.797734 c -0.0397,-0.127033 -0.03891,-0.372365 -0.01588,-0.372365 0.0667,0 0.06035,0.292969 0.01588,0.372365 z m -0.01349,0.374746 c -0.06114,0.160378 -0.137354,0.343782 -0.225483,0.497808 0.145293,-0.05557 0.309641,-0.136559 0.499396,-0.173875 -0.100832,-0.07622 -0.197694,-0.185786 -0.273913,-0.323933 z m -0.747111,0.990852 c 0,0.0064 0.104798,-0.04287 0.277091,-0.319166 -0.0532,0.05003 -0.231041,0.194517 -0.277091,0.319166 z m 1.285411,-2.128588 h 1.079777 v 2.604169 c 0,0.105595 -0.08495,0.190548 -0.190548,0.190548 h -2.667691 c -0.105595,0 -0.190548,-0.08495 -0.190548,-0.190548 v -3.683946 c 0,-0.105595 0.08495,-0.190548 0.190548,-0.190548 h 1.587909 v 1.079776 c 0,0.104798 0.08575,0.190549 0.190548,0.190549 z m -0.06352,1.364012 c -0.158792,-0.09687 -0.264387,-0.230247 -0.339019,-0.427147 0.03573,-0.146881 0.0921,-0.369982 0.04923,-0.509718 -0.03732,-0.233422 -0.336637,-0.210398 -0.37951,-0.05399 -0.0397,0.145293 -0.0032,0.350132 0.06431,0.611343 -0.0921,0.219133 -0.227864,0.512894 -0.323934,0.681213 -7.91e-4,0 -7.91e-4,6.89e-4 -0.0016,6.89e-4 -0.215162,0.110362 -0.58435,0.353313 -0.432705,0.539889 0.04446,0.05478 0.127032,0.07939 0.1707,0.07939 0.142118,0 0.283442,-0.142913 0.485106,-0.490663 0.204839,-0.06749 0.429528,-0.151647 0.627223,-0.184197 0.172288,0.09368 0.373952,0.154819 0.508131,0.154819 0.231834,0 0.247713,-0.254064 0.156408,-0.344574 -0.11036,-0.107979 -0.431117,-0.07702 -0.58435,-0.05717 z m 1.087715,-1.800687 -0.778074,-0.778075 c -0.03573,-0.03572 -0.08416,-0.05557 -0.134972,-0.05557 h -0.04764 v 1.01626 h 1.016261 v -0.04843 c 0,-0.05002 -0.01985,-0.09846 -0.05557,-0.134177 z m -0.58832,2.026965 c 0.03256,-0.02144 -0.01985,-0.09448 -0.339811,-0.07145 0.294557,0.125445 0.339811,0.07145 0.339811,0.07145 z" fill="#fff" stroke-width=".00793954"/></g></g></g></svg>
admin/images/select_images/fsb-enclosed.svg ADDED
@@ -0,0 +1 @@
 
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?><svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" width="250" height="250" viewBox="0 0 66.145832 66.145835"><g transform="translate(0,-230.85415)"><rect width="66.273781" height="66.145836" y="230.85414" fill="#f0f0f0" stroke-width=".35823661" stroke-linecap="round" stroke-linejoin="round"/><rect width="25.040924" height="64.350441" x="20.03274" y="235.86234" ry="3.5907738" fill="#fff" stroke="#929292" stroke-width=".26458333" stroke-linejoin="round"/></g><g><g transform="rotate(90,28.735639,37.230655)"><rect y="26.458334" x="2.3245535" height="13.229167" width="13.229167" fill="#3e5b98" stroke-width=".26841787" stroke-linecap="round" stroke-linejoin="round"/><rect y="26.458334" x="18.388538" height="13.229167" width="13.229167" fill="#4da7de" stroke-width=".26841787" stroke-linecap="round" stroke-linejoin="round"/><rect y="26.458332" x="34.263538" height="13.229167" width="13.229167" fill="#db483b" stroke-width=".26841787" stroke-linecap="round" stroke-linejoin="round"/><rect y="26.458334" x="49.855057" height="13.229167" width="13.229167" fill="#6d9f00" stroke-width=".26841787" stroke-linecap="round" stroke-linejoin="round"/></g></g></svg>
admin/js/script.js CHANGED
@@ -152,7 +152,6 @@ jQuery(document).ready(function(){
152
  loc_generate_rules();
153
  }
154
 
155
-
156
  var loc_remove_rule = function( btn ){
157
  $rule = btn.parent();
158
  $grp = $rule.parent();
@@ -1077,11 +1076,6 @@ jQuery(document).ready(function(){
1077
  $(this).addClass( 'templ_tab_active' );
1078
  });
1079
 
1080
- $( document ).on( 'click', '.postbox h3', function(){
1081
- $(this).next().fadeToggle( 'fast' );
1082
- $(this).toggleClass( 'pbclosed' );
1083
- });
1084
-
1085
  // Popup editor on click events
1086
  $( document ).on( 'click', '.wpsr_ppe_save', function(){
1087
  mode = $(this).data( 'mode' );
@@ -1191,6 +1185,175 @@ jQuery(document).ready(function(){
1191
  btn.attr( 'href', btn.data( 'link' ) + $(this).val() );
1192
  });
1193
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1194
  // Initinitinitinitinit
1195
  init();
1196
 
152
  loc_generate_rules();
153
  }
154
 
 
155
  var loc_remove_rule = function( btn ){
156
  $rule = btn.parent();
157
  $grp = $rule.parent();
1076
  $(this).addClass( 'templ_tab_active' );
1077
  });
1078
 
 
 
 
 
 
1079
  // Popup editor on click events
1080
  $( document ).on( 'click', '.wpsr_ppe_save', function(){
1081
  mode = $(this).data( 'mode' );
1185
  btn.attr( 'href', btn.data( 'link' ) + $(this).val() );
1186
  });
1187
 
1188
+
1189
+ // V5
1190
+ $( document ).on( 'keyup', '.sip_filter', function(){
1191
+ $list = $( '.sip_selector' );
1192
+ if( $list.length > 0 ){
1193
+ val = $( this ).val();
1194
+
1195
+ $list.children().each(function(){
1196
+ $item = $(this);
1197
+ text = $item.text().toLowerCase();
1198
+ if( text.search( val.toLowerCase() ) == -1 ){
1199
+ $item.hide();
1200
+ }else{
1201
+ $item.show();
1202
+ }
1203
+ });
1204
+ }
1205
+ });
1206
+
1207
+ $( document ).on( 'click', '.sip_selector li', function(){
1208
+ var $sie_list = window.sie_active_editor.find( '.sie_selected' );
1209
+ $(this).clone().appendTo( $sie_list );
1210
+ sie_update_selection();
1211
+ sic_close_popup();
1212
+ });
1213
+
1214
+ $( document ).on( 'click', '.sic_close_btn', function(){
1215
+ sic_close_popup();
1216
+ });
1217
+
1218
+ $( document ).on( 'click', '.sie_open_picker_btn', function( e ){
1219
+ e.preventDefault();
1220
+ window.sie_active_editor = $(this).closest( '.sie_wrap' );
1221
+ $('.sip_picker').fadeIn();
1222
+ });
1223
+
1224
+ $( document ).on( 'click', '.sie_delete_btn', function(){
1225
+ $(this).parent().remove();
1226
+ sie_update_selection();
1227
+ });
1228
+
1229
+ $( document ).on( 'click', '.sie_settings_btn', function(){
1230
+ $icon = $(this).parent();
1231
+ $data = $icon.data();
1232
+ window.sie_current_icon = $icon;
1233
+
1234
+ $popup = $( '.sie_icon_settings' ).show();
1235
+ $popup.find( 'h3' ).text( sip_icons[ $icon.data( 'id' ) ][ 'name' ] + ' icon (Advanced settings)' );
1236
+ $cnt = $( '.sie_icon_settings section' ).empty().append( '<table class="form-table"></table>' );
1237
+ $tbl = $cnt.find( 'table' );
1238
+
1239
+ for( opt in $data ){
1240
+
1241
+ if( opt.search( 'icns' ) != -1 ){
1242
+
1243
+ opt_val = $data[ opt ];
1244
+ the_opt = opt.replace( 'icns_', '' );
1245
+
1246
+ if( typeof sip_icon_settings[ the_opt ] === 'undefined' )
1247
+ continue;
1248
+
1249
+ $wrap = $( '<tr><th></th><td></td></tr>' );
1250
+ $checkbox = $( '<input type="checkbox" value="1" />' );
1251
+ $text = $( '<input type="text" class="widefat" />' );
1252
+
1253
+ helper = sip_icon_settings[ the_opt ][ 'helper' ];
1254
+ type = sip_icon_settings[ the_opt ][ 'type' ];
1255
+ placeholder = ( 'placeholder' in sip_icon_settings[ the_opt ] ) ? sip_icon_settings[ the_opt ][ 'placeholder' ] : '';
1256
+
1257
+ $the_input = $( '<i/>' );
1258
+
1259
+ if( type == 'checkbox' ){
1260
+ if( opt_val == '1' || opt_val == 'true' )
1261
+ $checkbox.attr('checked', 'checked');
1262
+
1263
+ $the_input = $checkbox.attr( 'data-id', the_opt );
1264
+ }
1265
+
1266
+ if( type == 'text' ){
1267
+ $the_input = $text.val( opt_val ).attr( 'data-id', the_opt );
1268
+ }
1269
+
1270
+ $wrap.find( 'th' ).append( helper );
1271
+ $wrap.find( 'td' ).append( $the_input );
1272
+
1273
+ if( placeholder != '' )
1274
+ $wrap.find( 'td' ).append( '<small>' + placeholder + '</small>' );
1275
+
1276
+ $tbl.append( $wrap );
1277
+
1278
+ }
1279
+ }
1280
+ });
1281
+
1282
+ $( document ).on( 'click', '.sie_save_settings_btn', function( e ){
1283
+ e.preventDefault();
1284
+
1285
+ $icon = window.sie_current_icon;
1286
+
1287
+ if( $icon.length ){
1288
+ $popup = $( this ).closest( '.sie_icon_settings' );
1289
+ $inputs = $popup.find( 'tr input' );
1290
+
1291
+ $inputs.each( function(){
1292
+
1293
+ $i = $( this );
1294
+ id = $i.data( 'id' );
1295
+ type = $i.attr( 'type' );
1296
+ value = '';
1297
+
1298
+ if( type == 'checkbox' && $i.is( ':checked' ) )
1299
+ value = '1';
1300
+
1301
+ if( type == 'text' )
1302
+ value = $i.val();
1303
+
1304
+ $icon.data( 'icns_' + id, value );
1305
+
1306
+ });
1307
+
1308
+ }
1309
+
1310
+ sic_close_popup();
1311
+ sie_update_selection();
1312
+
1313
+ });
1314
+
1315
+ $( '.sie_selected' ).sortable({
1316
+ stop: function(){
1317
+ sie_update_selection();
1318
+ }
1319
+ }).disableSelection();
1320
+
1321
+ var sic_close_popup = function(){
1322
+ $( '.sic_backdrop' ).fadeOut();
1323
+ }
1324
+
1325
+ var sie_update_selection = function(){
1326
+
1327
+ $('.sie_selected').each(function(){
1328
+
1329
+ var selected_icons = [];
1330
+ var $selected_icons_input = $(this).closest('.sie_wrap').find('.sie_selected_icons');
1331
+
1332
+ $(this).find('li').each(function(){
1333
+ var id = $(this).data( 'id' );
1334
+ var datas = $(this).data();
1335
+ var icon = {};
1336
+ icon[ id ] = {};
1337
+
1338
+ for( d in datas ){
1339
+ if( d.search( 'icns_' ) != -1 ){
1340
+ setting = d.replace( 'icns_', '' );
1341
+ val = datas[ d ];
1342
+
1343
+ icon[ id ][ setting ] = val;
1344
+ }
1345
+ }
1346
+
1347
+ selected_icons.push( icon );
1348
+ });
1349
+
1350
+ console.log( selected_icons );
1351
+ $selected_icons_input.val( btoa( JSON.stringify( selected_icons ) ) );
1352
+
1353
+ });
1354
+
1355
+ }
1356
+
1357
  // Initinitinitinitinit
1358
  init();
1359
 
admin/sharebar.php CHANGED
@@ -15,10 +15,11 @@ class wpsr_admin_sharebar{
15
  function register( $pages ){
16
 
17
  $pages[ 'sharebar' ] = array(
18
- 'name' => 'Floating sharebar',
19
  'banner' => WPSR_ADMIN_URL . '/images/banners/floating-sharebar.svg',
20
  'page_callback' => array( $this, 'page' ),
21
  'feature' => true,
 
22
  'form' => array(
23
  'id' => 'sharebar_settings',
24
  'name' => 'sharebar_settings',
@@ -228,9 +229,14 @@ class wpsr_admin_sharebar{
228
 
229
  }
230
 
231
-
232
  function page(){
233
-
 
 
 
 
 
 
234
  WPSR_Admin::settings_form( 'sharebar' );
235
 
236
  }
15
  function register( $pages ){
16
 
17
  $pages[ 'sharebar' ] = array(
18
+ 'name' => 'Floating sharebar (Deprecated)',
19
  'banner' => WPSR_ADMIN_URL . '/images/banners/floating-sharebar.svg',
20
  'page_callback' => array( $this, 'page' ),
21
  'feature' => true,
22
+ 'class' => 'old_ft',
23
  'form' => array(
24
  'id' => 'sharebar_settings',
25
  'name' => 'sharebar_settings',
229
 
230
  }
231
 
 
232
  function page(){
233
+
234
+ echo '<div class="notice notice-error">
235
+ <p>Classic sharebar feature is now deprecated and will be removed in the next version. It is replaced with a brand new "Floating sharebar" feature.</p>
236
+ <p>Please enable the new sharebar in the settings page and migrate your old configuration.</p>
237
+ <p><a href="' . admin_url( 'admin.php?page=wp_socializer&tab=floating_sharebar') . '" class="button button-primary">Open new floating sharebar settings</a></p>
238
+ </div>';
239
+
240
  WPSR_Admin::settings_form( 'sharebar' );
241
 
242
  }
admin/social_icons.php ADDED
@@ -0,0 +1,303 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Social icons settings page
4
+ *
5
+ **/
6
+
7
+ class wpsr_admin_social_icons{
8
+
9
+ function __construct(){
10
+
11
+ add_filter( 'wpsr_register_admin_page', array( $this, 'register' ) );
12
+
13
+ }
14
+
15
+ function register( $pages ){
16
+
17
+ $pages[ 'social_icons' ] = array(
18
+ 'name' => 'Social icons',
19
+ 'page_callback' => array( $this, 'page' ),
20
+ 'banner' => WPSR_ADMIN_URL . '/images/banners/social-icons.svg',
21
+ 'feature' => true,
22
+ 'class' => 'new_ft',
23
+ 'form' => array(
24
+ 'id' => 'social_icons_settings',
25
+ 'name' => 'social_icons_settings',
26
+ 'callback' => array( $this, 'form_fields' ),
27
+ 'validation' => array( $this, 'validation' ),
28
+ )
29
+ );
30
+
31
+ return $pages;
32
+
33
+ }
34
+
35
+ function template( $values, $i ){
36
+
37
+ if( !isset( $values[ 'tmpl' ][ $i ] ) ){
38
+ $values[ 'tmpl' ][ $i ] = WPSR_Lists::defaults( 'social_icons_template' );
39
+ if( $i == 2 ){
40
+ $values[ 'tmpl' ][ $i ][ 'selected_icons' ] = 'W10=';
41
+ $values[ 'tmpl' ][ $i ][ 'share_counter' ] = '';
42
+ $values[ 'tmpl' ][ $i ][ 'heading' ] = '';
43
+ }
44
+ }else{
45
+ $values[ 'tmpl' ][ $i ] = WPSR_Lists::set_defaults( $values[ 'tmpl' ][ $i ], WPSR_Lists::defaults( 'social_icons_template' ) );
46
+ }
47
+
48
+ echo '<div class="template_wrap" data-id="' . $i . '">';
49
+
50
+ WPSR_Admin::box_wrap( 'open', __( 'Choose the social icons', 'wpsr' ), __( 'Add social icons to the template, re-arrange them and configure individual icon settings.', 'wpsr' ), '2' );
51
+ WPSR_Icons_Editor::editor( $values[ 'tmpl' ][ $i ][ 'selected_icons' ], 'tmpl[' . $i . '][selected_icons]' );
52
+ WPSR_Admin::box_wrap( 'close' );
53
+
54
+ $customization = array(
55
+
56
+ array( __( 'Icon layout', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
57
+ 'name' => 'tmpl[' . $i . '][layout]',
58
+ 'value' => $values[ 'tmpl' ][ $i ]['layout'],
59
+ 'class' => 'setting_btn_layout' . $i,
60
+ 'list' => array(
61
+ '' => array( 'Normal', 'layout-horizontal.svg', '64px' ),
62
+ 'fluid' => array( 'Full width', 'layout-fluid.svg', '64px' ),
63
+ ),
64
+ ))),
65
+
66
+ array(__( 'Icon size', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
67
+ 'name' => 'tmpl[' . $i . '][icon_size]',
68
+ 'value' => $values[ 'tmpl' ][ $i ]['icon_size'],
69
+ 'list' => array(
70
+ '32px' => array( '32px', 'size.svg', '32px' ),
71
+ '40px' => array( '40px', 'size.svg', '40px' ),
72
+ '48px' => array( '48px', 'size.svg', '48px' ),
73
+ '64px' => array( '64px', 'size.svg', '64px' ),
74
+ ),
75
+ ))),
76
+
77
+ array( __( 'Icon shape', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
78
+ 'name' => 'tmpl[' . $i . '][icon_shape]',
79
+ 'value' => $values[ 'tmpl' ][ $i ]['icon_shape'],
80
+ 'list' => array(
81
+ '' => array( 'Sqaure', 'shape-square.svg', '32px' ),
82
+ 'circle' => array( 'Circle', 'shape-circle.svg', '32px' ),
83
+ 'squircle' => array( 'Squircle', 'shape-squircle.svg', '32px' ),
84
+ 'squircle-2' => array( 'Squircle 2', 'shape-squircle-2.svg', '32px' ),
85
+ 'diamond' => array( 'Diamond*', 'shape-diamond.svg', '32px' ),
86
+ 'ribbon' => array( 'Ribbon*', 'shape-ribbon.svg', '32px' ),
87
+ 'drop' => array( 'Drop*', 'shape-drop.svg', '32px' ),
88
+ ),
89
+ 'helper' => 'Note: Shapes marked * might not react well to certain hover effects and share counter styles.'
90
+ )), 'data-conditioner data-condr-input=".setting_btn_layout' . $i . '" data-condr-value="" data-condr-action="simple?show:hide" data-condr-events="change"'),
91
+
92
+ array( __( 'Hover effects', 'wpsr' ), WPSR_Admin::field( 'select', array(
93
+ 'name' => 'tmpl[' . $i . '][hover_effect]',
94
+ 'value' => $values[ 'tmpl' ][ $i ]['hover_effect'],
95
+ 'list' => array(
96
+ '' => __( 'None', 'wpsr' ),
97
+ 'opacity' => 'Opacity',
98
+ 'rotate' => 'Rotate',
99
+ 'zoom' => 'Zoom',
100
+ 'shrink' => 'Shrink',
101
+ 'float' => 'Float',
102
+ 'sink' => 'Sink',
103
+ 'fade-white' => 'Fade to white',
104
+ 'fade-black' => 'Fade to black'
105
+ ),
106
+ ))),
107
+
108
+ array( __( 'Icon color', 'wpsr' ), WPSR_Admin::field( 'text', array(
109
+ 'name' => 'tmpl[' . $i . '][icon_color]',
110
+ 'value' => $values[ 'tmpl' ][ $i ]['icon_color'],
111
+ 'class' => 'color_picker',
112
+ 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
113
+ ))),
114
+
115
+ array( __( 'Icon background color', 'wpsr' ), WPSR_Admin::field( 'text', array(
116
+ 'name' => 'tmpl[' . $i . '][icon_bg_color]',
117
+ 'value' => $values[ 'tmpl' ][ $i ]['icon_bg_color'],
118
+ 'class' => 'color_picker',
119
+ 'helper' => __( 'Set empty value to use brand color', 'wpsr' )
120
+ ))),
121
+
122
+ array( __( 'Gutters', 'wpsr' ), WPSR_Admin::field( 'select', array(
123
+ 'name' => 'tmpl[' . $i . '][padding]',
124
+ 'value' => $values[ 'tmpl' ][ $i ]['padding'],
125
+ 'list' => array(
126
+ '' => 'No',
127
+ 'pad' => 'Yes'
128
+ ),
129
+ 'helper' => __( 'Select to add space between icons', 'wpsr' ),
130
+ ))),
131
+
132
+ array('SHARE COUNTER', ''),
133
+
134
+ array( __( 'Share counter', 'wpsr' ), WPSR_Admin::field( 'select', array(
135
+ 'name' => 'tmpl[' . $i . '][share_counter]',
136
+ 'value' => $values[ 'tmpl' ][ $i ]['share_counter'],
137
+ 'class' => 'setting_share_counter' . $i,
138
+ 'list' => array(
139
+ '' => 'No share count',
140
+ 'individual' => 'Individual count',
141
+ 'total' => 'Total count only',
142
+ 'total-individual' => 'Both individual and total counts',
143
+ ),
144
+ ))),
145
+
146
+ array( __( 'Share counter style', 'wpsr' ), WPSR_Admin::field( 'image_select', array(
147
+ 'name' => 'tmpl[' . $i . '][sc_style]',
148
+ 'value' => $values[ 'tmpl' ][ $i ]['sc_style'],
149
+ 'list' => array(
150
+ 'count-1' => array( 'Style 1', 'counter-1.svg', '60px' ),
151
+ 'count-2' => array( 'Style 2', 'counter-2.svg', '70px' ),
152
+ 'count-3' => array( 'Style 3', 'counter-3.svg', '70px' ),
153
+ ),
154
+ 'helper' => __( 'To show count, in the same page under icons list, select an icon and enable gear icon &gt; show count', 'wpsr' )
155
+ )), 'data-conditioner data-condr-input=".setting_share_counter' . $i . '" data-condr-value="individual" data-condr-action="pattern?show:hide" data-condr-events="change"'),
156
+
157
+ array( __( 'Total share count position', 'wpsr' ), WPSR_Admin::field( 'select', array(
158
+ 'name' => 'tmpl[' . $i . '][sc_total_position]',
159
+ 'value' => $values[ 'tmpl' ][ $i ]['sc_total_position'],
160
+ 'list' => array(
161
+ 'left' => 'Left to the icons',
162
+ 'right' => 'Right to the icons'
163
+ ),
164
+ )), 'data-conditioner data-condr-input=".setting_share_counter' . $i . '" data-condr-value="total" data-condr-action="pattern?show:hide" data-condr-events="change"'),
165
+
166
+ array('MISC', ''),
167
+
168
+ array( __( 'No of icons in the last to group', 'wpsr' ), WPSR_Admin::field( 'select', array(
169
+ 'name' => 'tmpl[' . $i . '][more_icons]',
170
+ 'value' => $values[ 'tmpl' ][ $i ]['more_icons'],
171
+ 'list' => array(
172
+ '0' => 'No grouping',
173
+ '1' => '1',
174
+ '2' => '2',
175
+ '3' => '3',
176
+ '4' => '4',
177
+ '5' => '5',
178
+ '6' => '6',
179
+ '7' => '7',
180
+ '8' => '8',
181
+ '9' => '9',
182
+ '10' => '10',
183
+ ),
184
+ 'helper' => __( 'The last icons grouped will be displayed in a "More" icons menu', 'wpsr' )
185
+ ))),
186
+
187
+ array( __( 'Center the icons', 'wpsr' ), WPSR_Admin::field( 'select', array(
188
+ 'name' => 'tmpl[' . $i . '][center_icons]',
189
+ 'value' => $values[ 'tmpl' ][ $i ]['center_icons'],
190
+ 'list' => array(
191
+ '' => 'No',
192
+ 'yes' => 'Yes'
193
+ )
194
+ )), 'data-conditioner data-condr-input=".setting_btn_layout' . $i . '" data-condr-value="" data-condr-action="simple?show:hide" data-condr-events="change"'),
195
+
196
+ array( __( 'Heading text', 'wpsr' ), WPSR_Admin::field( 'text', array(
197
+ 'name' => 'tmpl[' . $i . '][heading]',
198
+ 'value' => $values[ 'tmpl' ][ $i ][ 'heading' ],
199
+ 'class' => '',
200
+ 'helper' => __( 'Heading to show above the share buttons. HTML is allowed.' )
201
+ ))),
202
+
203
+ );
204
+
205
+ WPSR_Admin::build_table( $customization, __( 'Customization', 'wpsr' ), '', false, '3' );
206
+
207
+ $positions = array(
208
+ 'above_posts' => __( 'Above posts', 'wpsr' ),
209
+ 'below_posts' => __( 'Below posts', 'wpsr' ),
210
+ 'above_below_posts' => __( 'Both above and below posts', 'wpsr' )
211
+ );
212
+
213
+ // Position rules
214
+ WPSR_Admin::box_wrap( 'open', __( 'Position of template in the page', 'wpsr' ), __( 'Choose the below options to select the position the template in a page.', 'wpsr' ), '4' );
215
+
216
+ echo WPSR_Admin::field( 'radio', array(
217
+ 'name' => 'tmpl[' . $i . '][position]',
218
+ 'list' => $positions,
219
+ 'value' => $values[ 'tmpl' ][ $i ][ 'position' ],
220
+ 'default' => 'above_below_post',
221
+ ));
222
+
223
+ echo '<hr/><p>' . __( 'Select whether to show this template in excerpts', 'wpsr' ) . '</p>';
224
+
225
+ echo WPSR_Admin::field( 'radio', array(
226
+ 'name' => 'tmpl[' . $i . '][in_excerpt]',
227
+ 'list' => array( 'show' => __( 'Show in excerpt', 'wpsr' ), 'hide' => __( 'Hide in excerpt', 'wpsr' ) ),
228
+ 'value' => $values[ 'tmpl' ][ $i ][ 'in_excerpt' ],
229
+ 'default' => 'hide',
230
+ ));
231
+
232
+ WPSR_Admin::box_wrap( 'close' );
233
+
234
+ // Location rules
235
+ WPSR_Admin::box_wrap( 'open', __( 'Conditions to display the template', 'wpsr' ), __( 'Choose the below options to select the pages which will display the template.', 'wpsr' ), '5' );
236
+ WPSR_Location_Rules::display_rules( "tmpl[$i][loc_rules]", $values['tmpl'][$i]['loc_rules'] );
237
+ WPSR_Admin::box_wrap( 'close' );
238
+
239
+ echo '</div>';
240
+
241
+ }
242
+
243
+ function form_fields( $values ){
244
+
245
+ $values = WPSR_Lists::set_defaults( $values, WPSR_Lists::defaults( 'social_icons' ) );
246
+
247
+ $section0 = array(
248
+ array( __( 'Select to enable or disable social icons feature', 'wpsr' ), WPSR_Admin::field( 'select', array(
249
+ 'name' => 'ft_status',
250
+ 'value' => $values[ 'ft_status' ],
251
+ 'list' => array(
252
+ 'enable' => __( 'Enable social icons', 'wpsr' ),
253
+ 'disable' => __( 'Disable social icons', 'wpsr' )
254
+ ),
255
+ )), 'class="ft_table"' ),
256
+ );
257
+
258
+ WPSR_Admin::build_table( $section0, __( 'Enable/disable social icons', 'wpsr' ), '', false, '1' );
259
+
260
+ $icon_settings = array( 'icon', 'text', 'hover_text' );
261
+ WPSR_Icons_Editor::commons( $icon_settings );
262
+
263
+ echo '<div class="feature_wrap">';
264
+
265
+ $template_count = 2;
266
+
267
+ echo '<ul class="template_tab">';
268
+ for( $i = 1; $i <= $template_count; $i++ ){
269
+ echo '<li>Template ' . $i . '</li>';
270
+ }
271
+ echo '</ul>';
272
+
273
+ for( $i=1; $i<=$template_count; $i++ ){
274
+ $this->template( $values, $i );
275
+ }
276
+
277
+ echo '</div>';
278
+
279
+ }
280
+
281
+
282
+ function page(){
283
+
284
+ WPSR_Admin::settings_form( 'social_icons' );
285
+
286
+ }
287
+
288
+ function validation( $input ){
289
+
290
+ if( $input['ft_status'] == 'enable' ){
291
+ $btn_settings = get_option( 'wpsr_button_settings' );
292
+ $btn_settings[ 'ft_status' ] = 'disable';
293
+ update_option( 'wpsr_button_settings', $btn_settings );
294
+ }
295
+
296
+ return $input;
297
+ }
298
+
299
+ }
300
+
301
+ new wpsr_admin_social_icons();
302
+
303
+ ?>
core/import_export.php CHANGED
@@ -16,6 +16,8 @@ class WPSR_Import_Export{
16
 
17
  return apply_filters( 'wpsr_mod_settings_list', array(
18
  'buttons' => 'wpsr_buttons',
 
 
19
  'button_settings' => 'wpsr_button_settings',
20
  'sharebar_settings' => 'wpsr_sharebar_settings',
21
  'followbar_settings' => 'wpsr_followbar_settings',
16
 
17
  return apply_filters( 'wpsr_mod_settings_list', array(
18
  'buttons' => 'wpsr_buttons',
19
+ 'social_icons_settings' => 'wpsr_social_icons_settings',
20
+ 'floating_sharebar_settings' => 'wpsr_floating_sharebar_settings',
21
  'button_settings' => 'wpsr_button_settings',
22
  'sharebar_settings' => 'wpsr_sharebar_settings',
23
  'followbar_settings' => 'wpsr_followbar_settings',
core/lists.php CHANGED
@@ -684,14 +684,14 @@ class WPSR_Lists{
684
  }
685
 
686
  public static function defaults( $page ){
687
-
688
  if( $page == 'buttons' ){
689
  return array(
690
- 'ft_status' => 'enable',
691
  'tmpl' => array()
692
  );
693
  }
694
-
695
  if( $page == 'sharebar' ){
696
  return array(
697
  'ft_status' => 'disable',
@@ -716,7 +716,7 @@ class WPSR_Lists{
716
  )
717
  );
718
  }
719
-
720
  if( $page == 'followbar' ){
721
  return array(
722
  'ft_status' => 'disable',
@@ -740,7 +740,7 @@ class WPSR_Lists{
740
  )
741
  );
742
  }
743
-
744
  if( $page == 'text_sharebar' ){
745
  return array(
746
  'ft_status' => 'disable',
@@ -757,7 +757,7 @@ class WPSR_Lists{
757
  )
758
  );
759
  }
760
-
761
  if( $page == 'mobile_sharebar' ){
762
  return array(
763
  'ft_status' => 'disable',
@@ -774,7 +774,7 @@ class WPSR_Lists{
774
  )
775
  );
776
  }
777
-
778
  if( $page == 'buttons_template' ){
779
  return array(
780
  'content' => 'eyIxIjp7InByb3BlcnRpZXMiOnt9LCJidXR0b25zIjpbXX19',
@@ -788,13 +788,78 @@ class WPSR_Lists{
788
  'min_on_width' => '0'
789
  );
790
  }
791
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
792
  if( $page == 'gsettings_twitter' ){
793
  return array(
794
  'twitter_username' => ''
795
  );
796
  }
797
-
798
  if( $page == 'gsettings_facebook' ){
799
  return array(
800
  'facebook_app_id' => '',
@@ -802,31 +867,31 @@ class WPSR_Lists{
802
  'facebook_lang' => 'en_US'
803
  );
804
  }
805
-
806
  if( $page == 'gsettings_googleplus' ){
807
  return array(
808
  'googleplus_lang' => 'en-US'
809
  );
810
  }
811
-
812
  if( $page == 'gsettings_linkedin' ){
813
  return array(
814
  'linkedin_lang' => 'en_US'
815
  );
816
  }
817
-
818
  if( $page == 'gsettings_sharethis' ){
819
  return array(
820
  'st_prop_id' => ''
821
  );
822
  }
823
-
824
  if( $page == 'gsettings_socialbuttons' ){
825
  return array(
826
  'sb_comment_sec' => '#comments'
827
  );
828
  }
829
-
830
  if( $page == 'gsettings_misc' ){
831
  return array(
832
  'font_icon' => 'fa4',
@@ -834,9 +899,9 @@ class WPSR_Lists{
834
  'skip_res_load' => ''
835
  );
836
  }
837
-
838
  return array();
839
-
840
  }
841
 
842
  public static function public_icons( $icon ){
684
  }
685
 
686
  public static function defaults( $page ){
687
+
688
  if( $page == 'buttons' ){
689
  return array(
690
+ 'ft_status' => 'disable',
691
  'tmpl' => array()
692
  );
693
  }
694
+
695
  if( $page == 'sharebar' ){
696
  return array(
697
  'ft_status' => 'disable',
716
  )
717
  );
718
  }
719
+
720
  if( $page == 'followbar' ){
721
  return array(
722
  'ft_status' => 'disable',
740
  )
741
  );
742
  }
743
+
744
  if( $page == 'text_sharebar' ){
745
  return array(
746
  'ft_status' => 'disable',
757
  )
758
  );
759
  }
760
+
761
  if( $page == 'mobile_sharebar' ){
762
  return array(
763
  'ft_status' => 'disable',
774
  )
775
  );
776
  }
777
+
778
  if( $page == 'buttons_template' ){
779
  return array(
780
  'content' => 'eyIxIjp7InByb3BlcnRpZXMiOnt9LCJidXR0b25zIjpbXX19',
788
  'min_on_width' => '0'
789
  );
790
  }
791
+
792
+ if( $page == 'social_icons' ){
793
+ return array(
794
+ 'ft_status' => 'enable',
795
+ 'tmpl' => array()
796
+ );
797
+ }
798
+
799
+ if( $page == 'social_icons_template' ){
800
+ return array(
801
+ 'selected_icons' => 'W3siZmFjZWJvb2siOnsiaG92ZXJfdGV4dCI6IiIsInRleHQiOiIiLCJpY29uIjoiIn19LHsidHdpdHRlciI6eyJpY29uIjoiIiwidGV4dCI6IiIsImhvdmVyX3RleHQiOiIifX0seyJsaW5rZWRpbiI6eyJpY29uIjoiIiwidGV4dCI6IiIsImhvdmVyX3RleHQiOiIifX0seyJwaW50ZXJlc3QiOnsiaWNvbiI6IiIsInRleHQiOiIiLCJob3Zlcl90ZXh0IjoiIn19LHsicHJpbnQiOnsiaWNvbiI6IiIsInRleHQiOiIiLCJob3Zlcl90ZXh0IjoiIn19LHsicGRmIjp7Imljb24iOiIiLCJ0ZXh0IjoiIiwiaG92ZXJfdGV4dCI6IiJ9fV0=',
802
+ 'layout' => '',
803
+ 'icon_size' => '32px',
804
+ 'icon_shape' => 'circle',
805
+ 'hover_effect' => 'opacity',
806
+ 'icon_color' => '#ffffff',
807
+ 'icon_bg_color' => '',
808
+ 'padding' => 'pad',
809
+ 'share_counter' => 'total-individual',
810
+ 'sc_style' => 'count-1',
811
+ 'sc_total_position' => 'left',
812
+ 'more_icons' => '0',
813
+ 'center_icons' => '',
814
+ 'heading' => '<h3>Share and Enjoy !</h3>',
815
+ 'loc_rules' => array(
816
+ 'type' => 'show_all',
817
+ 'rule' => 'W10=',
818
+ 'devices' => 'all'
819
+ ),
820
+ 'position' => 'below_posts',
821
+ 'in_excerpt' => 'hide'
822
+ );
823
+ }
824
+
825
+ if( $page == 'floating_sharebar' ){
826
+ return array(
827
+ 'ft_status' => 'disable',
828
+ 'selected_icons' => 'W3siZmFjZWJvb2siOnsiaG92ZXJfdGV4dCI6IiIsImljb24iOiIifX0seyJ0d2l0dGVyIjp7ImhvdmVyX3RleHQiOiIiLCJpY29uIjoiIn19LHsibGlua2VkaW4iOnsiaG92ZXJfdGV4dCI6IiIsImljb24iOiIifX0seyJlbWFpbCI6eyJob3Zlcl90ZXh0IjoiIiwiaWNvbiI6IiJ9fSx7InBkZiI6eyJob3Zlcl90ZXh0IjoiIiwiaWNvbiI6IiJ9fSx7IndoYXRzYXBwIjp7ImhvdmVyX3RleHQiOiIiLCJpY29uIjoiIn19XQ==',
829
+ 'icon_size' => '40px',
830
+ 'icon_shape' => '',
831
+ 'hover_effect' => 'opacity',
832
+ 'icon_color' => '#ffffff',
833
+ 'icon_bg_color' => '',
834
+ 'padding' => '',
835
+ 'style' => '',
836
+ 'sb_bg_color' => '#1e73be',
837
+ 'sb_position' => 'wleft',
838
+ 'stick_element' => '.entry',
839
+ 'offset' => '10px',
840
+ 'movement' => 'move',
841
+ 'share_counter' => 'total-individual',
842
+ 'sc_style' => 'count-1',
843
+ 'sc_total_position' => 'top',
844
+ 'sc_total_color' => '#000000',
845
+ 'responsive_width' => '600',
846
+ 'responsive_action' => 'hide',
847
+ 'init_state' => 'open',
848
+ 'more_icons' => '0',
849
+ 'loc_rules' => array(
850
+ 'type' => 'show_all',
851
+ 'rule' => 'W10=',
852
+ 'devices' => 'desktop_only'
853
+ )
854
+ );
855
+ }
856
+
857
  if( $page == 'gsettings_twitter' ){
858
  return array(
859
  'twitter_username' => ''
860
  );
861
  }
862
+
863
  if( $page == 'gsettings_facebook' ){
864
  return array(
865
  'facebook_app_id' => '',
867
  'facebook_lang' => 'en_US'
868
  );
869
  }
870
+
871
  if( $page == 'gsettings_googleplus' ){
872
  return array(
873
  'googleplus_lang' => 'en-US'
874
  );
875
  }
876
+
877
  if( $page == 'gsettings_linkedin' ){
878
  return array(
879
  'linkedin_lang' => 'en_US'
880
  );
881
  }
882
+
883
  if( $page == 'gsettings_sharethis' ){
884
  return array(
885
  'st_prop_id' => ''
886
  );
887
  }
888
+
889
  if( $page == 'gsettings_socialbuttons' ){
890
  return array(
891
  'sb_comment_sec' => '#comments'
892
  );
893
  }
894
+
895
  if( $page == 'gsettings_misc' ){
896
  return array(
897
  'font_icon' => 'fa4',
899
  'skip_res_load' => ''
900
  );
901
  }
902
+
903
  return array();
904
+
905
  }
906
 
907
  public static function public_icons( $icon ){
core/metadata.php CHANGED
@@ -169,6 +169,49 @@ class WPSR_Metadata{
169
 
170
  }
171
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
172
  }
173
 
174
  WPSR_Metadata::init();
169
 
170
  }
171
 
172
+ public static function process_url( $url, $pinfo ){
173
+
174
+ $g_settings = get_option( 'wpsr_general_settings' );
175
+ $g_settings = WPSR_Lists::set_defaults( $g_settings, WPSR_Lists::defaults( 'gsettings_twitter' ) );
176
+ $t_username = ( $g_settings[ 'twitter_username' ] != '' ) ? '@' . $g_settings[ 'twitter_username' ] : '';
177
+
178
+ $pinfo = wp_parse_args( $pinfo, array(
179
+ 'url' => '',
180
+ 'title' => '',
181
+ 'excerpt' => '',
182
+ 'short_url' => '',
183
+ 'rss_url' => '',
184
+ 'post_image' => ''
185
+ ));
186
+
187
+ $search = array(
188
+ '{url}',
189
+ '{title}',
190
+ '{excerpt}',
191
+ '{s-url}',
192
+ '{rss-url}',
193
+ '{image}',
194
+ '{twitter-username}',
195
+ '{title-plain}',
196
+ '{excerpt-plain}'
197
+ );
198
+
199
+ $replace = array(
200
+ $pinfo[ 'url' ],
201
+ urlencode( $pinfo[ 'title' ] ),
202
+ urlencode( $pinfo[ 'excerpt' ] ),
203
+ $pinfo[ 'short_url' ],
204
+ $pinfo[ 'rss_url' ],
205
+ $pinfo[ 'post_image' ],
206
+ $t_username,
207
+ $pinfo[ 'title' ],
208
+ $pinfo[ 'excerpt' ]
209
+ );
210
+
211
+ return str_replace( $search, $replace, $url );
212
+
213
+ }
214
+
215
  }
216
 
217
  WPSR_Metadata::init();
core/templates.php CHANGED
@@ -22,8 +22,8 @@ class WPSR_Template_Buttons{
22
  if($btn_settings[ 'ft_status' ] != 'disable'){
23
  foreach( $btn_templates as $tmpl ){
24
 
25
- $content_obj = new wpsr_template_button_handler( $tmpl, 'content' );
26
- $excerpt_obj = new wpsr_template_button_handler( $tmpl, 'excerpt' );
27
 
28
  add_filter( 'the_content', array( $content_obj, 'print_template' ), 10 );
29
  add_filter( 'the_excerpt', array( $excerpt_obj, 'print_template' ), 10 );
@@ -32,7 +32,7 @@ class WPSR_Template_Buttons{
32
  }
33
  }
34
 
35
- public static function html( $template, $page_info = array(), $min_on_width = '0' ){
36
 
37
  $decoded = base64_decode( $template );
38
  $rows = json_decode( $decoded );
@@ -46,7 +46,7 @@ class WPSR_Template_Buttons{
46
  'buttons' => ''
47
  );
48
 
49
- $min_on_width = ( $min_on_width > 0 ) ? ' data-minonwidth="' . $min_on_width . '" ' : '';
50
 
51
  // Apply filters on the template rows
52
  $rows = apply_filters( 'wpsr_mod_buttons_template', $rows );
@@ -54,7 +54,7 @@ class WPSR_Template_Buttons{
54
 
55
  foreach( $rows as $row ){
56
  if( count( $row->buttons ) > 0 ){
57
- $html .= '<div class="wp-socializer wpsr-buttons wpsr-row-' . $row_id . '"' . $min_on_width . '>';
58
  foreach( $row->buttons as $button ){
59
  $btn_id = key( ( array )$button );
60
  array_push( $row_buttons, $btn_id );
@@ -188,7 +188,7 @@ class WPSR_Template_Sharebar{
188
 
189
  $classes = implode( ' ', $classes );
190
  $styles = implode( ';', $styles );
191
- $min_on_width = ( $opts[ 'min_on_width' ] > 0 ) ? ' data-minonwidth="' . $opts[ 'min_on_width' ] . '" ' : '';
192
 
193
  // Apply filters
194
  $rows = apply_filters( 'wpsr_mod_sharebar_template', $rows );
@@ -377,7 +377,7 @@ class WPSR_Template_Followbar{
377
  $close_icon = WPSR_Lists::public_icons( 'fb_close' );
378
 
379
  if( $floating ){
380
- $min_on_width = ( $opts[ 'min_on_width' ] > 0 ) ? ' data-minonwidth="' . $opts[ 'min_on_width' ] . '" ' : '';
381
  $title = ( $opts[ 'title' ] != '' ) ? '<div class="sr-fb-title">' . $opts[ 'title' ] . '</div>' : '';
382
  $close_btn = '<div class="wpsr-fb-close" title="Open or close followbar"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
383
  $orientation = ( $opts[ 'orientation' ] == 'horizontal' ) ? 'sr-fb-hl' : 'sr-fb-vl';
@@ -501,7 +501,7 @@ class WPSR_Template_Mobile_Sharebar{
501
  }
502
 
503
  $sb_info = $sb_sites[ $id ];
504
- $link = self::get_url( $sb_info[ 'link' ], $page_info );
505
  $onclick = array_key_exists( 'onclick', $sb_info ) ? 'onclick="' . esc_attr( $sb_info[ 'onclick' ] ) . '"' : '';
506
 
507
  $html .= '<span class="sr-' . $id . '"><a rel="nofollow" target="_blank" href="' . esc_attr( $link ) . '" title="' . esc_attr( $sb_info[ 'title' ] ) . '" style="' . $style . '" ' . $onclick . '><i class="' . esc_attr( $sb_info[ 'icon' ] ) . '" tar></i></a></span>';
@@ -520,39 +520,394 @@ class WPSR_Template_Mobile_Sharebar{
520
 
521
  }
522
 
523
- public static function get_url( $url, $pinfo ){
524
-
525
- $g_settings = get_option( 'wpsr_general_settings' );
526
- $g_settings = WPSR_Lists::set_defaults( $g_settings, WPSR_Lists::defaults( 'gsettings_twitter' ) );
527
- $t_username = ( $g_settings[ 'twitter_username' ] != '' ) ? '@' . $g_settings[ 'twitter_username' ] : '';
528
-
529
- $search = array(
530
- '{url}',
531
- '{title}',
532
- '{excerpt}',
533
- '{s-url}',
534
- '{rss-url}',
535
- '{image}',
536
- '{twitter-username}',
537
- '{title-plain}',
538
- '{excerpt-plain}'
539
- );
540
 
541
- $replace = array(
542
- $pinfo[ 'url' ],
543
- $pinfo[ 'title' ],
544
- $pinfo[ 'excerpt' ],
545
- $pinfo[ 'short_url' ],
546
- $pinfo[ 'rss_url' ],
547
- $pinfo[ 'post_image' ],
548
- $t_username,
549
- $pinfo[ 'title' ],
550
- $pinfo[ 'excerpt' ]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
551
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
552
 
553
- return str_replace( $search, $replace, $url );
 
 
 
 
 
554
  }
555
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
556
  }
557
 
558
  WPSR_Template_Buttons::init();
@@ -560,17 +915,25 @@ WPSR_Template_Sharebar::init();
560
  WPSR_Template_Followbar::init();
561
  WPSR_Template_Text_Sharebar::init();
562
  WPSR_Template_Mobile_Sharebar::init();
 
 
563
 
564
  class wpsr_template_button_handler{
565
 
566
  private $props;
567
  private $type;
568
 
569
- function __construct( $properties, $type ){
570
 
571
- $this->props = WPSR_Lists::set_defaults( $properties, WPSR_Lists::defaults( 'buttons_template' ) );
572
  $this->type = $type;
573
-
 
 
 
 
 
 
 
574
  }
575
 
576
  function print_template( $content ){
@@ -592,7 +955,11 @@ class wpsr_template_button_handler{
592
 
593
  if( ( $this->type == 'content' && $call_from_excerpt != 1 ) || ( $this->type == 'excerpt' && $rule_in_excerpt == 1 ) ){
594
 
595
- $gen_out = WPSR_Template_Buttons::html( $this->props[ 'content' ], array(), $this->props[ 'min_on_width' ] );
 
 
 
 
596
 
597
  if( !empty( $gen_out[ 'html' ] ) ){
598
 
22
  if($btn_settings[ 'ft_status' ] != 'disable'){
23
  foreach( $btn_templates as $tmpl ){
24
 
25
+ $content_obj = new wpsr_template_button_handler( $tmpl, 'content', 'buttons' );
26
+ $excerpt_obj = new wpsr_template_button_handler( $tmpl, 'excerpt', 'buttons' );
27
 
28
  add_filter( 'the_content', array( $content_obj, 'print_template' ), 10 );
29
  add_filter( 'the_excerpt', array( $excerpt_obj, 'print_template' ), 10 );
32
  }
33
  }
34
 
35
+ public static function html( $template, $page_info = array(), $resp_width = '0' ){
36
 
37
  $decoded = base64_decode( $template );
38
  $rows = json_decode( $decoded );
46
  'buttons' => ''
47
  );
48
 
49
+ $resp_width = ( $resp_width > 0 ) ? ' data-respwidth="' . $resp_width . '" data-respclass="wpsr-mow" ' : '';
50
 
51
  // Apply filters on the template rows
52
  $rows = apply_filters( 'wpsr_mod_buttons_template', $rows );
54
 
55
  foreach( $rows as $row ){
56
  if( count( $row->buttons ) > 0 ){
57
+ $html .= '<div class="wp-socializer wpsr-buttons wpsr-row-' . $row_id . '"' . $resp_width . '>';
58
  foreach( $row->buttons as $button ){
59
  $btn_id = key( ( array )$button );
60
  array_push( $row_buttons, $btn_id );
188
 
189
  $classes = implode( ' ', $classes );
190
  $styles = implode( ';', $styles );
191
+ $min_on_width = ( $opts[ 'min_on_width' ] > 0 ) ? ' data-respwidth="' . $opts[ 'min_on_width' ] . '" data-respclass="wpsr-mow" ' : '';
192
 
193
  // Apply filters
194
  $rows = apply_filters( 'wpsr_mod_sharebar_template', $rows );
377
  $close_icon = WPSR_Lists::public_icons( 'fb_close' );
378
 
379
  if( $floating ){
380
+ $min_on_width = ( $opts[ 'min_on_width' ] > 0 ) ? ' data-respwidth="' . $opts[ 'min_on_width' ] . '" data-respclass="wpsr-mow" ' : '';
381
  $title = ( $opts[ 'title' ] != '' ) ? '<div class="sr-fb-title">' . $opts[ 'title' ] . '</div>' : '';
382
  $close_btn = '<div class="wpsr-fb-close" title="Open or close followbar"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
383
  $orientation = ( $opts[ 'orientation' ] == 'horizontal' ) ? 'sr-fb-hl' : 'sr-fb-vl';
501
  }
502
 
503
  $sb_info = $sb_sites[ $id ];
504
+ $link = WPSR_Metadata::process_url( $sb_info[ 'link' ], $page_info );
505
  $onclick = array_key_exists( 'onclick', $sb_info ) ? 'onclick="' . esc_attr( $sb_info[ 'onclick' ] ) . '"' : '';
506
 
507
  $html .= '<span class="sr-' . $id . '"><a rel="nofollow" target="_blank" href="' . esc_attr( $link ) . '" title="' . esc_attr( $sb_info[ 'title' ] ) . '" style="' . $style . '" ' . $onclick . '><i class="' . esc_attr( $sb_info[ 'icon' ] ) . '" tar></i></a></span>';
520
 
521
  }
522
 
523
+ }
524
+
525
+ class WPSR_Template_Social_Icons{
526
+
527
+ public static function init(){
528
+
529
+ add_action( 'init', array( __CLASS__, 'output' ) );
530
+
531
+ }
532
+
533
+ public static function output(){
534
+
535
+ $si_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_social_icons_settings' ), WPSR_Lists::defaults( 'social_icons' ) );
536
+ $si_templates = $si_settings[ 'tmpl' ];
 
 
 
537
 
538
+ if( empty( $si_templates ) ){
539
+ $default_tmpl = WPSR_Lists::defaults( 'social_icons' );
540
+ array_push( $si_templates, $default_tmpl );
541
+ }
542
+
543
+ if($si_settings[ 'ft_status' ] != 'disable'){
544
+ foreach( $si_templates as $tmpl ){
545
+
546
+ $content_obj = new wpsr_template_button_handler( $tmpl, 'content', 'social_icons' );
547
+ $excerpt_obj = new wpsr_template_button_handler( $tmpl, 'excerpt', 'social_icons' );
548
+
549
+ add_filter( 'the_content', array( $content_obj, 'print_template' ), 10 );
550
+ add_filter( 'the_excerpt', array( $excerpt_obj, 'print_template' ), 10 );
551
+
552
+ }
553
+ }
554
+
555
+ }
556
+
557
+ public static function html( $tmpl ){
558
+
559
+ $social_icons = WPSR_Lists::social_icons();
560
+ $page_info = WPSR_Metadata::metadata();
561
+ $counter_services = WPSR_Share_Counter::counter_services();
562
+ $selected_icons = json_decode( base64_decode( $tmpl[ 'selected_icons' ] ) );
563
+
564
+ $classes = array( 'socializer', 'sr-popup' );
565
+
566
+ if( $tmpl[ 'layout' ] != '' ){
567
+ array_push( $classes, 'sr-' . $tmpl[ 'layout' ] );
568
+ }
569
+
570
+ if( $tmpl[ 'icon_size' ] != '' ){
571
+ array_push( $classes, 'sr-' . $tmpl[ 'icon_size' ] );
572
+ }
573
+
574
+ if( $tmpl[ 'icon_shape' ] != '' && $tmpl[ 'layout' ] == '' ){
575
+ array_push( $classes, 'sr-' . $tmpl[ 'icon_shape' ] );
576
+ }
577
+
578
+ if( $tmpl[ 'hover_effect' ] != '' ){
579
+ array_push( $classes, 'sr-' . $tmpl[ 'hover_effect' ] );
580
+ }
581
+
582
+ if( $tmpl[ 'padding' ] != '' ){
583
+ array_push( $classes, 'sr-' . $tmpl[ 'padding' ] );
584
+ }
585
+
586
+ $styles = array();
587
+ if ( $tmpl[ 'icon_bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $tmpl[ 'icon_bg_color' ] );
588
+ if ( $tmpl[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $tmpl[ 'icon_color' ] );
589
+ $style = join( ';', $styles );
590
+ $style = ( $style != '' ) ? ' style="' . $style . '"' : '';
591
+
592
+ $icons_html = array();
593
+
594
+ $counters_selected = array();
595
+
596
+ foreach( $selected_icons as $icon ){
597
+
598
+ $id = key( $icon );
599
+ $props = $social_icons[ $id ];
600
+ $icon_classes = array( 'sr-' . $id );
601
+
602
+ if( !array_key_exists( $id, $social_icons ) ){
603
+ continue;
604
+ }
605
+
606
+ $settings = WPSR_Lists::set_defaults( (array) $icon->$id, array(
607
+ 'icon' => '',
608
+ 'text' => '',
609
+ 'hover_text' => ''
610
+ ));
611
+
612
+ $url = WPSR_Metadata::process_url( $props[ 'link' ], $page_info );
613
+ $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
614
+
615
+ $text = '';
616
+ if( $settings[ 'text' ] != '' ){
617
+ $text = '<span class="text">' . $settings[ 'text' ] . '</span>';
618
+ array_push( $icon_classes, 'sr-text-in' );
619
+ }
620
+
621
+ $icon = '';
622
+ if( $settings[ 'icon' ] == '' ){
623
+ $icon = '<i class="' . esc_attr( $props[ 'icon' ] ) . '"></i>';
624
+ }else{
625
+ $icon_val = $settings[ 'icon' ];
626
+ if (strpos( $settings[ 'icon' ], 'http' ) === 0) {
627
+ $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $id ) . '" height="50%" />';
628
+ }else{
629
+ $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
630
+ }
631
+ }
632
+
633
+ $title = '';
634
+ if( $settings[ 'hover_text' ] == '' ){
635
+ $title = $props[ 'title' ];
636
+ }else{
637
+ $title = $settings[ 'hover_text' ];
638
+ }
639
+
640
+ $count_tag = '';
641
+ if( ( $tmpl[ 'share_counter' ] == 'individual' || $tmpl[ 'share_counter' ] == 'total-individual' ) && array_key_exists( $id, $counter_services) ){
642
+ $count_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $id );
643
+ $count_tag = '<span class="ctext">' . $count_holder . '</span>';
644
+ array_push( $classes, 'sr-' . $tmpl[ 'sc_style' ] );
645
+ if( $tmpl[ 'sc_style' ] != 'count-1' ){
646
+ array_push( $icon_classes, 'sr-text-in' );
647
+ }
648
+ }
649
+ array_push( $counters_selected, $id );
650
+
651
+ $ihtml = '<span class="' . implode( ' ', $icon_classes ) . '"><a rel="nofollow" href="' . esc_attr( $url ) . '" target="_blank" ' . $onclick . ' title="' . esc_attr( $title ) . '" ' . $style . '>' . $icon . $text . $count_tag . '</a></span>';
652
+ array_push( $icons_html, $ihtml );
653
+
654
+ }
655
+
656
+ if( intval( $tmpl[ 'more_icons' ] ) > 0 ){
657
+ $more_count = intval( $tmpl[ 'more_icons' ] );
658
+ $more_icons = array_slice( $icons_html, -$more_count, $more_count );
659
+ $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>';
660
+ $icons_html = array_slice( $icons_html, 0, -$more_count );
661
+ array_push( $icons_html, $more_html );
662
+ }
663
+
664
+ $all_icons_html = '<div class="' . implode( " ", $classes ) . '">' . implode( "\n", $icons_html ) . '</div>';
665
+
666
+ $all_icons_btn = '<div class="wpsr-btn">' . $all_icons_html . '</div>';
667
+ $row_html = $all_icons_btn;
668
+
669
+ $wrap_classes = '';
670
+ $html = '';
671
+
672
+ if( $tmpl[ 'share_counter' ] == 'total' || $tmpl[ 'share_counter' ] == 'total-individual' ){
673
+ $total_counter = WPSR_Services::output( 'share_counter', array(
674
+ 'text' => 'Shares',
675
+ 'counter_color' => '#000',
676
+ 'add_services' => $counters_selected,
677
+ 'orientation' => 'vl',
678
+ 'size' => $tmpl[ 'icon_size' ]
679
+ ), $page_info);
680
+
681
+ $total_counter_html = $total_counter[ 'html' ];
682
+
683
+ if( $tmpl[ 'sc_total_position' ] == 'left' ){
684
+ $row_html = '<div class="wpsr-btn">' . $total_counter_html . '</div>';
685
+ $row_html .= $all_icons_btn;
686
+ }else{
687
+ $row_html = $all_icons_btn;
688
+ $row_html .= '<div class="wpsr-btn">' . $total_counter_html . '</div>';
689
+ }
690
+
691
+ if( $tmpl[ 'layout' ] == 'fluid' ){
692
+ $wrap_classes = 'wpsr-flex';
693
+ }
694
+
695
+ }
696
+
697
+ if( $tmpl[ 'layout' ] == '' && $tmpl[ 'center_icons' ] == 'yes' ){
698
+ $wrap_classes = 'wpsr-flex-center';
699
+ }
700
+
701
+ if( trim( $tmpl[ 'heading' ] ) != '' ){
702
+ $html .= '<div class="wp-socializer wpsr-buttons ' . $wrap_classes . '">';
703
+ $html .= $tmpl[ 'heading' ];
704
+ $html .= '</div>';
705
+ }
706
+
707
+ $html .= '<div class="wp-socializer wpsr-buttons ' . $wrap_classes . '">';
708
+ $html .= $row_html;
709
+ $html .= '</div>';
710
+
711
+ return array(
712
+ 'html' => $html
713
  );
714
+
715
+ }
716
+
717
+ }
718
+
719
+ class WPSR_Template_Floating_Sharebar{
720
+
721
+ public static function init(){
722
+
723
+ add_action( 'wp_footer', array( __CLASS__, 'output' ) );
724
+
725
+ }
726
+
727
+ public static function output(){
728
+
729
+ $fsb_settings = WPSR_Lists::set_defaults( get_option( 'wpsr_floating_sharebar_settings' ), WPSR_Lists::defaults( 'floating_sharebar' ) );
730
+ $loc_rules_answer = WPSR_Location_Rules::check_rule( $fsb_settings[ 'loc_rules' ] );
731
 
732
+ if( $fsb_settings[ 'ft_status' ] != 'disable' && $loc_rules_answer ){
733
+ $gen_html = self::html( $fsb_settings );
734
+ echo $gen_html;
735
+ do_action( 'wpsr_do_floating_sharebar_print_template_end' );
736
+ }
737
+
738
  }
739
+
740
+ public static function html( $o ){
741
+
742
+ $social_icons = WPSR_Lists::social_icons();
743
+ $page_info = WPSR_Metadata::metadata();
744
+ $counter_services = WPSR_Share_Counter::counter_services();
745
+ $selected_icons = json_decode( base64_decode( $o[ 'selected_icons' ] ) );
746
+
747
+ $classes = array( 'socializer', 'sr-popup', 'sr-vertical' );
748
+
749
+ if( $o[ 'icon_size' ] != '' ){
750
+ array_push( $classes, 'sr-' . $o[ 'icon_size' ] );
751
+ }
752
+
753
+ if( $o[ 'icon_shape' ] != '' ){
754
+ array_push( $classes, 'sr-' . $o[ 'icon_shape' ] );
755
+ array_push( $classes, 'sr-pad' );
756
+ }
757
+
758
+ if( $o[ 'hover_effect' ] != '' ){
759
+ array_push( $classes, 'sr-' . $o[ 'hover_effect' ] );
760
+ }
761
+
762
+ if( $o[ 'padding' ] != '' && $o[ 'icon_shape' ] == '' ){
763
+ array_push( $classes, 'sr-' . $o[ 'padding' ] );
764
+ }
765
+
766
+ $styles = array();
767
+ if ( $o[ 'icon_bg_color' ] != '' ) array_push( $styles, 'background-color: ' . $o[ 'icon_bg_color' ] );
768
+ if ( $o[ 'icon_color' ] != '' ) array_push( $styles, 'color: ' . $o[ 'icon_color' ] );
769
+ $style = join( ';', $styles );
770
+ $style = ( $style != '' ) ? ' style="' . $style . '"' : '';
771
+
772
+ $icons_html = array();
773
+
774
+ $counters_selected = array();
775
+
776
+ foreach( $selected_icons as $icon ){
777
+
778
+ $id = key( $icon );
779
+ $props = $social_icons[ $id ];
780
+ $icon_classes = array( 'sr-' . $id );
781
+
782
+ if( !array_key_exists( $id, $social_icons ) ){
783
+ continue;
784
+ }
785
+
786
+ $settings = WPSR_Lists::set_defaults( (array) $icon->$id, array(
787
+ 'icon' => '',
788
+ 'text' => '',
789
+ 'hover_text' => ''
790
+ ));
791
+
792
+ $url = WPSR_Metadata::process_url( $props[ 'link' ], $page_info );
793
+ $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
794
+
795
+ $icon = '';
796
+ if( $settings[ 'icon' ] == '' ){
797
+ $icon = '<i class="' . esc_attr( $props[ 'icon' ] ) . '"></i>';
798
+ }else{
799
+ $icon_val = $settings[ 'icon' ];
800
+ if (strpos( $settings[ 'icon' ], 'http' ) === 0) {
801
+ $icon = '<img src="' . esc_attr( $icon_val ) . '" alt="' . esc_attr( $id ) . '" height="50%" />';
802
+ }else{
803
+ $icon = '<i class="' . esc_attr( $icon_val ) . '"></i>';
804
+ }
805
+ }
806
+
807
+ $title = '';
808
+ if( $settings[ 'hover_text' ] == '' ){
809
+ $title = $props[ 'title' ];
810
+ }else{
811
+ $title = $settings[ 'hover_text' ];
812
+ }
813
+
814
+ $count_tag = '';
815
+ if( ( $o[ 'share_counter' ] == 'individual' || $o[ 'share_counter' ] == 'total-individual' ) && array_key_exists( $id, $counter_services) ){
816
+ $count_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $id );
817
+ $count_tag = '<span class="ctext">' . $count_holder . '</span>';
818
+ array_push( $classes, 'sr-' . $o[ 'sc_style' ] );
819
+ if( $o[ 'sc_style' ] != 'count-1' ){
820
+ array_push( $icon_classes, 'sr-text-in' );
821
+ }
822
+ }
823
+ array_push( $counters_selected, $id );
824
+
825
+ $ihtml = '<span class="' . implode( ' ', $icon_classes ) . '"><a rel="nofollow" href="' . esc_attr( $url ) . '" target="_blank" ' . $onclick . ' title="' . esc_attr( $title ) . '" ' . $style . '>' . $icon . $count_tag . '</a></span>';
826
+ array_push( $icons_html, $ihtml );
827
+
828
+ }
829
+
830
+ if( intval( $o[ 'more_icons' ] ) > 0 ){
831
+ $more_count = intval( $o[ 'more_icons' ] );
832
+ $more_icons = array_slice( $icons_html, -$more_count, $more_count );
833
+ $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>';
834
+ $icons_html = array_slice( $icons_html, 0, -$more_count );
835
+ array_push( $icons_html, $more_html );
836
+ }
837
+
838
+ $all_icons_html = '<div class="' . implode( " ", $classes ) . '">' . implode( "\n", $icons_html ) . '</div>';
839
+
840
+ $all_icons_btn = '<div class="wpsr-btn">' . $all_icons_html . '</div>';
841
+ $row_html = $all_icons_btn;
842
+ $html = '';
843
+
844
+ if( $o[ 'share_counter' ] == 'total' || $o[ 'share_counter' ] == 'total-individual' ){
845
+ $total_counter = WPSR_Services::output( 'share_counter', array(
846
+ 'text' => 'Shares',
847
+ 'counter_color' => $o['sc_total_color'],
848
+ 'add_services' => $counters_selected,
849
+ 'orientation' => 'vl',
850
+ 'size' => $o[ 'icon_size' ]
851
+ ), $page_info);
852
+
853
+ $total_counter_html = $total_counter[ 'html' ];
854
+
855
+ if( $o[ 'sc_total_position' ] == 'top' ){
856
+ $row_html = '<div class="wpsr-btn">' . $total_counter_html . '</div>';
857
+ $row_html .= $all_icons_btn;
858
+ }else{
859
+ $row_html = $all_icons_btn;
860
+ $row_html .= '<div class="wpsr-btn">' . $total_counter_html . '</div>';
861
+ }
862
+
863
+ }
864
+
865
+ $wrap_classes = array( 'wp-socializer wpsr-sharebar wpsr-sb-vl' );
866
+ $wrap_styles = array();
867
+
868
+ array_push( $wrap_classes, 'wpsr-sb-vl-' . $o[ 'sb_position' ] );
869
+ array_push( $wrap_classes, 'wpsr-sb-vl-' . $o[ 'movement' ] );
870
+
871
+ if( $o[ 'style' ] == 'enclosed' ){
872
+ array_push( $wrap_classes, 'wpsr-sb-simple' );
873
+ }
874
+
875
+ if( $o[ 'init_state' ] == 'close' ){
876
+ array_push( $wrap_classes, 'wpsr-mow' );
877
+ }
878
+
879
+ array_push( $wrap_classes, 'wpsr-sb-mobmode-' . ( $o[ 'sb_position' ] == 'wleft' || $o[ 'sb_position' ] == 'scontent' ? 'left' : 'right' ) );
880
+
881
+ array_push( $wrap_styles, ( $o[ 'sb_position' ] == 'wleft' ? 'left' : ( $o[ 'sb_position' ] == 'scontent' ) ? 'margin-left' : 'right' ) . ':' . $o[ 'offset' ] );
882
+
883
+ if($o['style'] == 'enclosed'){
884
+ array_push( $wrap_styles, 'background-color: ' . $o[ 'sb_bg_color' ] );
885
+ }
886
+
887
+ $wrap_classes = implode( ' ', $wrap_classes );
888
+ $wrap_styles = implode( ';', $wrap_styles );
889
+
890
+ $open_icon = WPSR_Lists::public_icons( 'sb_open' );
891
+ $close_icon = WPSR_Lists::public_icons( 'sb_close' );
892
+
893
+ $resp_attr = '';
894
+ if( $o[ 'responsive_width' ] != '0' ){
895
+ $resp_action = $o[ 'responsive_action' ] == 'minimize' ? 'wpsr-mow' : 'wpsr-how';
896
+ $resp_attr = 'data-respwidth="' . $o[ 'responsive_width' ] . '" data-respclass="' . $resp_action . '"';
897
+ }
898
+
899
+ $html .= '<div class="' . $wrap_classes . '" style="' . $wrap_styles . '" data-stickto="' . $o['stick_element'] . '" ' . $resp_attr . '>';
900
+ $html .= '<div class="wpsr-sb-inner">';
901
+ $html .= $row_html;
902
+ $html .= '</div>';
903
+ $html .= '<div class="wpsr-sb-close" title="Open or close sharebar"><span class="wpsr-bar-icon">' . $open_icon . $close_icon . '</span></div>';
904
+ $html .= '</div>';
905
+
906
+ return $html;
907
+
908
+ }
909
+
910
+
911
  }
912
 
913
  WPSR_Template_Buttons::init();
915
  WPSR_Template_Followbar::init();
916
  WPSR_Template_Text_Sharebar::init();
917
  WPSR_Template_Mobile_Sharebar::init();
918
+ WPSR_Template_Social_Icons::init();
919
+ WPSR_Template_Floating_Sharebar::init();
920
 
921
  class wpsr_template_button_handler{
922
 
923
  private $props;
924
  private $type;
925
 
926
+ function __construct( $properties, $type, $for ){
927
 
 
928
  $this->type = $type;
929
+ $this->for = $for;
930
+
931
+ if( $this->for == 'buttons' ){
932
+ $this->props = WPSR_Lists::set_defaults( $properties, WPSR_Lists::defaults( 'buttons_template' ) );
933
+ }else{
934
+ $this->props = WPSR_Lists::set_defaults( $properties, WPSR_Lists::defaults( 'social_icons_template' ) );
935
+ }
936
+
937
  }
938
 
939
  function print_template( $content ){
955
 
956
  if( ( $this->type == 'content' && $call_from_excerpt != 1 ) || ( $this->type == 'excerpt' && $rule_in_excerpt == 1 ) ){
957
 
958
+ if( $this->for == 'buttons' ){
959
+ $gen_out = WPSR_Template_Buttons::html( $this->props[ 'content' ], array(), $this->props[ 'min_on_width' ] );
960
+ }else{
961
+ $gen_out = WPSR_Template_Social_Icons::html( $this->props );
962
+ }
963
 
964
  if( !empty( $gen_out[ 'html' ] ) ){
965
 
core/widgets.php CHANGED
@@ -380,6 +380,6 @@ class wpsr_widget_buttons{
380
 
381
  }
382
 
383
- new wpsr_widget_buttons();
384
 
385
  ?>
380
 
381
  }
382
 
383
+ // new wpsr_widget_buttons();
384
 
385
  ?>
public/css/wp-socializer.css CHANGED
@@ -12,7 +12,6 @@
12
  margin: 0 1em 0 0;
13
  padding: 0;
14
  line-height: 0;
15
- display: inline-block;
16
  }
17
  .wpsr-buttons .wpsr-btn:last-child {
18
  margin-right: 0;
@@ -62,7 +61,6 @@
62
  margin: 0 1em 0 0;
63
  padding: 0;
64
  line-height: 0;
65
- display: inline-block;
66
  }
67
  .wpsr-sb-hl .wpsr-btn:last-child{
68
  margin: 0;
@@ -97,7 +95,6 @@
97
  width: 5px;
98
  height: 5px;
99
  }
100
-
101
  .wpsr-sharebar::-webkit-scrollbar-thumb{
102
  background: #aaa;
103
  border-radius: 10px;
@@ -106,6 +103,9 @@
106
  display: block;
107
  }
108
 
 
 
 
109
 
110
  .wpsr-sb-close{
111
  position: absolute;
@@ -130,7 +130,7 @@
130
  top: 50%;
131
  }
132
 
133
- /** When Sharebar is hidden **/
134
  .wpsr-mow.wpsr-sharebar{
135
  width: 48px;
136
  height: 48px;
@@ -158,6 +158,7 @@
158
  line-height: 2em;
159
  text-align: center;
160
  font-size: 10px;
 
161
  }
162
  .wpsr-counter .scount{
163
  font-size: 2em;
@@ -166,10 +167,11 @@
166
  .wpsr-counter .stext{
167
  display: block;
168
  line-height: 1em;
169
- color: #888;
170
  text-transform: uppercase;
171
  font-size: 1em;
172
  margin-top: -0.15em;
 
173
  }
174
 
175
  .wpsr-counter.wpsrc-hl{
@@ -185,6 +187,29 @@
185
  font-size: 0.8em;
186
  }
187
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  .socializer span.sr-cicon a{
189
  background: none;
190
  border: none;
@@ -352,6 +377,12 @@
352
  line-height: 32px;
353
  font-size: 16px;
354
  }
 
 
 
 
 
 
355
  .wpsr-tsb-48px a{
356
  width: 48px;
357
  height: 48px;
@@ -422,6 +453,13 @@
422
  clear: both;
423
  content: '';
424
  }
 
 
 
 
 
 
 
425
 
426
  .wpsr-btn .fb_iframe_widget {
427
  margin-bottom: 0;
12
  margin: 0 1em 0 0;
13
  padding: 0;
14
  line-height: 0;
 
15
  }
16
  .wpsr-buttons .wpsr-btn:last-child {
17
  margin-right: 0;
61
  margin: 0 1em 0 0;
62
  padding: 0;
63
  line-height: 0;
 
64
  }
65
  .wpsr-sb-hl .wpsr-btn:last-child{
66
  margin: 0;
95
  width: 5px;
96
  height: 5px;
97
  }
 
98
  .wpsr-sharebar::-webkit-scrollbar-thumb{
99
  background: #aaa;
100
  border-radius: 10px;
103
  display: block;
104
  }
105
 
106
+ .wpsr-sharebar.wpsr-how{
107
+ display: none;
108
+ }
109
 
110
  .wpsr-sb-close{
111
  position: absolute;
130
  top: 50%;
131
  }
132
 
133
+ /** When Sharebar is minimized **/
134
  .wpsr-mow.wpsr-sharebar{
135
  width: 48px;
136
  height: 48px;
158
  line-height: 2em;
159
  text-align: center;
160
  font-size: 10px;
161
+ color: #000;
162
  }
163
  .wpsr-counter .scount{
164
  font-size: 2em;
167
  .wpsr-counter .stext{
168
  display: block;
169
  line-height: 1em;
170
+ color: inherit;
171
  text-transform: uppercase;
172
  font-size: 1em;
173
  margin-top: -0.15em;
174
+ opacity: 0.5;
175
  }
176
 
177
  .wpsr-counter.wpsrc-hl{
187
  font-size: 0.8em;
188
  }
189
 
190
+ .wpsr-counter.wpsrc-sz-40px{
191
+ font-size: 12.5px;
192
+ }
193
+ .wpsr-counter.wpsrc-sz-48px{
194
+ font-size: 15px;
195
+ }
196
+ .wpsr-counter.wpsrc-sz-64px{
197
+ font-size: 20px;
198
+ }
199
+
200
+ .wpsr-sharebar .wpsr-counter{
201
+ font-size: 8.5px;
202
+ }
203
+ .wpsr-sharebar .wpsr-counter.wpsrc-sz-40px{
204
+ font-size: 9.5px;
205
+ }
206
+ .wpsr-sharebar .wpsr-counter.wpsrc-sz-48px{
207
+ font-size: 11.5px;
208
+ }
209
+ .wpsr-sharebar .wpsr-counter.wpsrc-sz-64px{
210
+ font-size: 15.2px;
211
+ }
212
+
213
  .socializer span.sr-cicon a{
214
  background: none;
215
  border: none;
377
  line-height: 32px;
378
  font-size: 16px;
379
  }
380
+ .wpsr-tsb-40px a{
381
+ width: 40px;
382
+ height: 40px;
383
+ line-height: 40px;
384
+ font-size: 20px;
385
+ }
386
  .wpsr-tsb-48px a{
387
  width: 48px;
388
  height: 48px;
453
  clear: both;
454
  content: '';
455
  }
456
+ .wpsr-flex{
457
+ display: flex;
458
+ }
459
+ .wpsr-flex-center{
460
+ display: flex;
461
+ justify-content: center;
462
+ }
463
 
464
  .wpsr-btn .fb_iframe_widget {
465
  margin-bottom: 0;
public/css/wp-socializer.min.css CHANGED
@@ -1 +1 @@
1
- .wp-socializer:after{clear:both;content:'';display:block}.wpsr-buttons{display:block;margin:0 0 1.5em 0}.wpsr-buttons .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0;display:inline-block}.wpsr-buttons .wpsr-btn:last-child{margin-right:0}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.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-btn{margin-bottom:1em;display:block}.wpsr-sb-vl .wpsr-btn:last-child{margin:0}.wpsr-sb-vl-wleft{left:0}.wpsr-sb-vl-wright{right:0}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{left:50%;transform:translateX(-50%);position:fixed}.wpsr-sb-hl .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0;display:inline-block}.wpsr-sb-hl .wpsr-btn:last-child{margin:0}.wpsr-sb-hl-wtop{top:0}.wpsr-sb-hl-wbottom{bottom:0}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-sq{padding:10px;text-align:center;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-ns{text-align:center;border:1px solid transparent}.wpsr-sharebar::-webkit-scrollbar{width:5px;height:5px}.wpsr-sharebar::-webkit-scrollbar-thumb{background:#aaa;border-radius:10px}.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{right:0;transform:translate(100%,-50%);top:50%}.wpsr-mow.wpsr-sharebar{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-mow.wpsr-sharebar .wpsr-sb-inner{display:none}.wpsr-mow.wpsr-sharebar .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;line-height:48px;display:block;padding:0}.wpsr-counter{line-height:2em;text-align:center;font-size:10px}.wpsr-counter .scount{font-size:2em;font-weight:bold}.wpsr-counter .stext{display:block;line-height:1em;color:#888;text-transform:uppercase;font-size:1em;margin-top:-0.15em}.wpsr-counter.wpsrc-hl{line-height:1em;font-size:18px}.wpsr-counter.wpsrc-hl .scount{font-size:1em;margin-right:0.25em}.wpsr-counter.wpsrc-hl .stext{display:inline-block;font-size:0.8em}.socializer span.sr-cicon a{background:none;border:none}.wpsr-followbar{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:20px;left:20px}.sr-fb-tm{top:20px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:20px;right:20px}.sr-fb-rm{top:50%;right:20px;transform:translateY( -50% )}.sr-fb-br{bottom:20px;right:20px}.sr-fb-bm{bottom:20px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:20px;left:20px}.sr-fb-lm{left:20px;top:50%;transform:translateY( -50% )}.wpsr-followbar div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-followbar.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-followbar.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-followbar.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-followbar:hover .wpsr-fb-close{display:block}.wpsr-mow.wpsr-followbar .sr-fb-title{display:none}.wpsr-mow.wpsr-followbar .sr-followbar{display:none}.wpsr-mow.wpsr-followbar .wpsr-fb-close{display:block}.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-mow.sr-fb-tl .wpsr-fb-close,.wpsr-mow.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-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.wpsr-tsb-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.wpsr-text-sb.wpsr-tsb-active{margin-top:0;transition:margin-top 0.5s;display:block;animation:wpsr-fadein 1s}.wpsr-mobile-sb{position:fixed;bottom:0;left:0;right:0;line-height:0;background:#fff;box-shadow:0 3px 5px 3px #000;transition:margin 1s ease-out;margin-bottom:0;z-index:99999}.wpsr-mobile-sb.wpsr-msb-hide{transition:margin 2s ease-out;margin-bottom:-68px}.wpsr-mow.wpsr-buttons{display:none}.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-mow .wpsr-bar-icon .i-close{display:none}.wpsr-mow .wpsr-bar-icon .i-open{display:block}.wpsr-mow .wpsr-bar-icon{padding:5px}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-btn .fb_iframe_widget{margin-bottom:0}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}@media only screen and (max-width:800px){.wpsr-sb-hl{bottom:0!important;top:auto!important;left:-1px!important;right:-1px!important;border-radius:0;overflow:auto;transform:none;padding-left:60px;max-height:84px}.wpsr-sb-hl .wpsr-sb-inner{width:100%;padding:10px}.wpsr-sb-hl .wpsr-sb-close{display:block;position:absolute;left:0;top:0;bottom:0;width:50px;transform:none;padding:0}.wpsr-sb-vl{bottom:0!important;top:0!important;left:-1px!important;right:auto!important;margin-left:0!important;border-radius:0;overflow:auto;transform:none;padding-top:60px}.wpsr-sb-vl .wpsr-sb-close{display:block;position:absolute;left:0!important;top:0;right:0;margin:0!important;transform:none;height:50px;padding:0}.wpsr-sb-vl.wpsr-sb-mobmode-right{right:0!important;left:auto!important}.wpsr-sb-simple-ns{background:#fff;border:1px solid #dfdfdf}.wpsr-mow.wpsr-sharebar{width:50px;height:50px;padding:0;overflow:hidden;border-radius:0}.wpsr-sharebar .wpsr-bar-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}}
1
+ .wp-socializer:after{clear:both;content:'';display:block}.wpsr-buttons{display:block;margin:0 0 1.5em 0}.wpsr-buttons .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0}.wpsr-buttons .wpsr-btn:last-child{margin-right:0}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.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-btn{margin-bottom:1em;display:block}.wpsr-sb-vl .wpsr-btn:last-child{margin:0}.wpsr-sb-vl-wleft{left:0}.wpsr-sb-vl-wright{right:0}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{left:50%;transform:translateX(-50%);position:fixed}.wpsr-sb-hl .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0}.wpsr-sb-hl .wpsr-btn:last-child{margin:0}.wpsr-sb-hl-wtop{top:0}.wpsr-sb-hl-wbottom{bottom:0}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-sq{padding:10px;text-align:center;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-ns{text-align:center;border:1px solid transparent}.wpsr-sharebar::-webkit-scrollbar{width:5px;height:5px}.wpsr-sharebar::-webkit-scrollbar-thumb{background:#aaa;border-radius:10px}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sharebar.wpsr-how{display:none}.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{right:0;transform:translate(100%,-50%);top:50%}.wpsr-mow.wpsr-sharebar{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-mow.wpsr-sharebar .wpsr-sb-inner{display:none}.wpsr-mow.wpsr-sharebar .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;line-height:48px;display:block;padding:0}.wpsr-counter{line-height:2em;text-align:center;font-size:10px;color:#000}.wpsr-counter .scount{font-size:2em;font-weight:bold}.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-hl{line-height:1em;font-size:18px}.wpsr-counter.wpsrc-hl .scount{font-size:1em;margin-right:0.25em}.wpsr-counter.wpsrc-hl .stext{display:inline-block;font-size:0.8em}.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-followbar{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:20px;left:20px}.sr-fb-tm{top:20px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:20px;right:20px}.sr-fb-rm{top:50%;right:20px;transform:translateY( -50% )}.sr-fb-br{bottom:20px;right:20px}.sr-fb-bm{bottom:20px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:20px;left:20px}.sr-fb-lm{left:20px;top:50%;transform:translateY( -50% )}.wpsr-followbar div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-followbar.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-followbar.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-followbar.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-followbar:hover .wpsr-fb-close{display:block}.wpsr-mow.wpsr-followbar .sr-fb-title{display:none}.wpsr-mow.wpsr-followbar .sr-followbar{display:none}.wpsr-mow.wpsr-followbar .wpsr-fb-close{display:block}.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-mow.sr-fb-tl .wpsr-fb-close,.wpsr-mow.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-mobile-sb{position:fixed;bottom:0;left:0;right:0;line-height:0;background:#fff;box-shadow:0 3px 5px 3px #000;transition:margin 1s ease-out;margin-bottom:0;z-index:99999}.wpsr-mobile-sb.wpsr-msb-hide{transition:margin 2s ease-out;margin-bottom:-68px}.wpsr-mow.wpsr-buttons{display:none}.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-mow .wpsr-bar-icon .i-close{display:none}.wpsr-mow .wpsr-bar-icon .i-open{display:block}.wpsr-mow .wpsr-bar-icon{padding:5px}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-flex{display:flex}.wpsr-flex-center{display:flex;justify-content:center}.wpsr-btn .fb_iframe_widget{margin-bottom:0}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}@media only screen and (max-width:800px){.wpsr-sb-hl{bottom:0!important;top:auto!important;left:-1px!important;right:-1px!important;border-radius:0;overflow:auto;transform:none;padding-left:60px;max-height:84px}.wpsr-sb-hl .wpsr-sb-inner{width:100%;padding:10px}.wpsr-sb-hl .wpsr-sb-close{display:block;position:absolute;left:0;top:0;bottom:0;width:50px;transform:none;padding:0}.wpsr-sb-vl{bottom:0!important;top:0!important;left:-1px!important;right:auto!important;margin-left:0!important;border-radius:0;overflow:auto;transform:none;padding-top:60px}.wpsr-sb-vl .wpsr-sb-close{display:block;position:absolute;left:0!important;top:0;right:0;margin:0!important;transform:none;height:50px;padding:0}.wpsr-sb-vl.wpsr-sb-mobmode-right{right:0!important;left:auto!important}.wpsr-sb-simple-ns{background:#fff;border:1px solid #dfdfdf}.wpsr-mow.wpsr-sharebar{width:50px;height:50px;padding:0;overflow:hidden;border-radius:0}.wpsr-sharebar .wpsr-bar-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}}
public/css/wpsr.min.css CHANGED
@@ -1,6 +1,6 @@
1
- .wp-socializer:after{clear:both;content:'';display:block}.wpsr-buttons{display:block;margin:0 0 1.5em 0}.wpsr-buttons .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0;display:inline-block}.wpsr-buttons .wpsr-btn:last-child{margin-right:0}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.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-btn{margin-bottom:1em;display:block}.wpsr-sb-vl .wpsr-btn:last-child{margin:0}.wpsr-sb-vl-wleft{left:0}.wpsr-sb-vl-wright{right:0}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{left:50%;transform:translateX(-50%);position:fixed}.wpsr-sb-hl .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0;display:inline-block}.wpsr-sb-hl .wpsr-btn:last-child{margin:0}.wpsr-sb-hl-wtop{top:0}.wpsr-sb-hl-wbottom{bottom:0}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-sq{padding:10px;text-align:center;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-ns{text-align:center;border:1px solid transparent}.wpsr-sharebar::-webkit-scrollbar{width:5px;height:5px}.wpsr-sharebar::-webkit-scrollbar-thumb{background:#aaa;border-radius:10px}.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{right:0;transform:translate(100%,-50%);top:50%}.wpsr-mow.wpsr-sharebar{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-mow.wpsr-sharebar .wpsr-sb-inner{display:none}.wpsr-mow.wpsr-sharebar .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;line-height:48px;display:block;padding:0}.wpsr-counter{line-height:2em;text-align:center;font-size:10px}.wpsr-counter .scount{font-size:2em;font-weight:bold}.wpsr-counter .stext{display:block;line-height:1em;color:#888;text-transform:uppercase;font-size:1em;margin-top:-0.15em}.wpsr-counter.wpsrc-hl{line-height:1em;font-size:18px}.wpsr-counter.wpsrc-hl .scount{font-size:1em;margin-right:0.25em}.wpsr-counter.wpsrc-hl .stext{display:inline-block;font-size:0.8em}.socializer span.sr-cicon a{background:none;border:none}.wpsr-followbar{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:20px;left:20px}.sr-fb-tm{top:20px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:20px;right:20px}.sr-fb-rm{top:50%;right:20px;transform:translateY( -50% )}.sr-fb-br{bottom:20px;right:20px}.sr-fb-bm{bottom:20px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:20px;left:20px}.sr-fb-lm{left:20px;top:50%;transform:translateY( -50% )}.wpsr-followbar div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-followbar.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-followbar.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-followbar.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-followbar:hover .wpsr-fb-close{display:block}.wpsr-mow.wpsr-followbar .sr-fb-title{display:none}.wpsr-mow.wpsr-followbar .sr-followbar{display:none}.wpsr-mow.wpsr-followbar .wpsr-fb-close{display:block}.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-mow.sr-fb-tl .wpsr-fb-close,.wpsr-mow.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-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.wpsr-tsb-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.wpsr-text-sb.wpsr-tsb-active{margin-top:0;transition:margin-top 0.5s;display:block;animation:wpsr-fadein 1s}.wpsr-mobile-sb{position:fixed;bottom:0;left:0;right:0;line-height:0;background:#fff;box-shadow:0 3px 5px 3px #000;transition:margin 1s ease-out;margin-bottom:0;z-index:99999}.wpsr-mobile-sb.wpsr-msb-hide{transition:margin 2s ease-out;margin-bottom:-68px}.wpsr-mow.wpsr-buttons{display:none}.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-mow .wpsr-bar-icon .i-close{display:none}.wpsr-mow .wpsr-bar-icon .i-open{display:block}.wpsr-mow .wpsr-bar-icon{padding:5px}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-btn .fb_iframe_widget{margin-bottom:0}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}@media only screen and (max-width:800px){.wpsr-sb-hl{bottom:0!important;top:auto!important;left:-1px!important;right:-1px!important;border-radius:0;overflow:auto;transform:none;padding-left:60px;max-height:84px}.wpsr-sb-hl .wpsr-sb-inner{width:100%;padding:10px}.wpsr-sb-hl .wpsr-sb-close{display:block;position:absolute;left:0;top:0;bottom:0;width:50px;transform:none;padding:0}.wpsr-sb-vl{bottom:0!important;top:0!important;left:-1px!important;right:auto!important;margin-left:0!important;border-radius:0;overflow:auto;transform:none;padding-top:60px}.wpsr-sb-vl .wpsr-sb-close{display:block;position:absolute;left:0!important;top:0;right:0;margin:0!important;transform:none;height:50px;padding:0}.wpsr-sb-vl.wpsr-sb-mobmode-right{right:0!important;left:auto!important}.wpsr-sb-simple-ns{background:#fff;border:1px solid #dfdfdf}.wpsr-mow.wpsr-sharebar{width:50px;height:50px;padding:0;overflow:hidden;border-radius:0}.wpsr-sharebar .wpsr-bar-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}}
2
  /*!
3
  * Socializer - CSS library for social media buttons
4
- * Copyright (c) 2016 Aakash Chakravarthy - www.aakashweb.com
5
  * MIT license
6
- */.socializer{padding:0;margin:0;display:inline-block}.socializer>*{float:left;list-style:none;padding:0;margin:0;display:inline-block;position:relative}.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-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:#3e5b98;border-color:#3e5b98;background-color:#3e5b98}.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:#0d3c5f;border-color:#0d3c5f;background-color:#0d3c5f}.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-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-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:#4da7de;border-color:#4da7de;background-color:#4da7de}.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:#cc181e;border-color:#cc181e;background-color:#cc181e}.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-out a{vertical-align:middle}.sr-text-out .text{font-size:12px;margin-left:.5em;vertical-align:middle}.sr-text-below{text-align:center}.sr-text-below .text{display:block;font-size:12px;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}.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{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50% 50% 0 50%}.sr-drop a>*{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.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:table;width:100%;table-layout:fixed}.sr-fluid>*{display:table-cell;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}.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-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}.wpsr-buttons{display:block;margin:0 0 1.5em 0}.wpsr-buttons .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0}.wpsr-buttons .wpsr-btn:last-child{margin-right:0}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:99999}.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-btn{margin-bottom:1em;display:block}.wpsr-sb-vl .wpsr-btn:last-child{margin:0}.wpsr-sb-vl-wleft{left:0}.wpsr-sb-vl-wright{right:0}.wpsr-sb-vl-static{position:absolute}.wpsr-sb-hl{left:50%;transform:translateX(-50%);position:fixed}.wpsr-sb-hl .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0}.wpsr-sb-hl .wpsr-btn:last-child{margin:0}.wpsr-sb-hl-wtop{top:0}.wpsr-sb-hl-wbottom{bottom:0}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-sq{padding:10px;text-align:center;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-ns{text-align:center;border:1px solid transparent}.wpsr-sharebar::-webkit-scrollbar{width:5px;height:5px}.wpsr-sharebar::-webkit-scrollbar-thumb{background:#aaa;border-radius:10px}.wpsr-sharebar:hover .wpsr-sb-close{display:block}.wpsr-sharebar.wpsr-how{display:none}.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{right:0;transform:translate(100%,-50%);top:50%}.wpsr-mow.wpsr-sharebar{width:48px;height:48px;border-radius:50%;background:none!important;border:none!important;box-shadow:none!important}.wpsr-mow.wpsr-sharebar .wpsr-sb-inner{display:none}.wpsr-mow.wpsr-sharebar .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;line-height:48px;display:block;padding:0}.wpsr-counter{line-height:2em;text-align:center;font-size:10px;color:#000}.wpsr-counter .scount{font-size:2em;font-weight:bold}.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-hl{line-height:1em;font-size:18px}.wpsr-counter.wpsrc-hl .scount{font-size:1em;margin-right:0.25em}.wpsr-counter.wpsrc-hl .stext{display:inline-block;font-size:0.8em}.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-followbar{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:20px;left:20px}.sr-fb-tm{top:20px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:20px;right:20px}.sr-fb-rm{top:50%;right:20px;transform:translateY( -50% )}.sr-fb-br{bottom:20px;right:20px}.sr-fb-bm{bottom:20px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:20px;left:20px}.sr-fb-lm{left:20px;top:50%;transform:translateY( -50% )}.wpsr-followbar div.sr-fb-title{font-size:0.8em;margin:0 0 0.8em 0}.wpsr-followbar.sr-fb-hl .sr-fb-title{position:absolute;bottom:0;transform:translateX(-100%);left:-1em;top:50%;margin:0}.wpsr-followbar.sr-fb-vl{text-align:center;line-height:1.5q}.wpsr-followbar.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-followbar:hover .wpsr-fb-close{display:block}.wpsr-mow.wpsr-followbar .sr-fb-title{display:none}.wpsr-mow.wpsr-followbar .sr-followbar{display:none}.wpsr-mow.wpsr-followbar .wpsr-fb-close{display:block}.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-mow.sr-fb-tl .wpsr-fb-close,.wpsr-mow.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-mobile-sb{position:fixed;bottom:0;left:0;right:0;line-height:0;background:#fff;box-shadow:0 3px 5px 3px #000;transition:margin 1s ease-out;margin-bottom:0;z-index:99999}.wpsr-mobile-sb.wpsr-msb-hide{transition:margin 2s ease-out;margin-bottom:-68px}.wpsr-mow.wpsr-buttons{display:none}.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-mow .wpsr-bar-icon .i-close{display:none}.wpsr-mow .wpsr-bar-icon .i-open{display:block}.wpsr-mow .wpsr-bar-icon{padding:5px}.wpsr-clearfix:after{display:block;clear:both;content:''}.wpsr-flex{display:flex}.wpsr-flex-center{display:flex;justify-content:center}.wpsr-btn .fb_iframe_widget{margin-bottom:0}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}@media only screen and (max-width:800px){.wpsr-sb-hl{bottom:0!important;top:auto!important;left:-1px!important;right:-1px!important;border-radius:0;overflow:auto;transform:none;padding-left:60px;max-height:84px}.wpsr-sb-hl .wpsr-sb-inner{width:100%;padding:10px}.wpsr-sb-hl .wpsr-sb-close{display:block;position:absolute;left:0;top:0;bottom:0;width:50px;transform:none;padding:0}.wpsr-sb-vl{bottom:0!important;top:0!important;left:-1px!important;right:auto!important;margin-left:0!important;border-radius:0;overflow:auto;transform:none;padding-top:60px}.wpsr-sb-vl .wpsr-sb-close{display:block;position:absolute;left:0!important;top:0;right:0;margin:0!important;transform:none;height:50px;padding:0}.wpsr-sb-vl.wpsr-sb-mobmode-right{right:0!important;left:auto!important}.wpsr-sb-simple-ns{background:#fff;border:1px solid #dfdfdf}.wpsr-mow.wpsr-sharebar{width:50px;height:50px;padding:0;overflow:hidden;border-radius:0}.wpsr-sharebar .wpsr-bar-icon{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}}
2
  /*!
3
  * Socializer - CSS library for social media buttons
4
+ * Copyright (c) 2020 Aakash Chakravarthy - www.aakashweb.com
5
  * MIT license
6
+ */.socializer{padding:0;margin:0;display:inline-block}.socializer>*{float:left;list-style:none;padding:0;margin:0;display:inline-block;position:relative}.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-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:#3e5b98;border-color:#3e5b98;background-color:#3e5b98}.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:#0d3c5f;border-color:#0d3c5f;background-color:#0d3c5f}.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-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-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:#4da7de;border-color:#4da7de;background-color:#4da7de}.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:#cc181e;border-color:#cc181e;background-color:#cc181e}.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-out a{vertical-align:middle}.sr-text-out .text{font-size:12px;margin-left:.5em;vertical-align:middle}.sr-text-below{text-align:center}.sr-text-below .text{display:block;font-size:12px;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{-webkit-transform:rotate(45deg);transform:rotate(45deg);border-radius:50% 50% 0 50%}.sr-drop a>*{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}.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:table;width:100%;table-layout:fixed}.sr-fluid>*{display:table-cell;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}.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-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
@@ -96,9 +96,6 @@ document.addEventListener( 'DOMContentLoaded', function(){
96
  }
97
  }
98
 
99
- if( the_sb && window.innerWidth <= 800 ){
100
- wpsr_helpers.addClass( the_sb, hide_class );
101
- }
102
  }
103
 
104
  sb_resize();
@@ -278,26 +275,27 @@ document.addEventListener( 'DOMContentLoaded', function(){
278
  }
279
 
280
  // Features with minimize on width enabled
281
- mow = document.querySelectorAll( '[data-minonwidth]' );
282
 
283
- var mow_resize = function( ele, window_width ){
284
- var min_on_width = ele.getAttribute( 'data-minonwidth' );
285
- if( min_on_width > 0 ){
286
- if( window_width <= min_on_width ){
287
- wpsr_helpers.addClass( ele, 'wpsr-mow' );
 
288
  }else{
289
- wpsr_helpers.removeClass( ele, 'wpsr-mow' );
290
  }
291
  }
292
  }
293
 
294
- if( mow.length > 0 ){
295
 
296
  [ 'resize', 'load' ].forEach(function( the_event ){
297
  window.addEventListener( the_event, function(){
298
- for( i = 0; i < mow.length; i++ ){
299
- var mowEle = mow[ i ];
300
- mow_resize( mowEle, window.innerWidth );
301
  }
302
  });
303
  });
96
  }
97
  }
98
 
 
 
 
99
  }
100
 
101
  sb_resize();
275
  }
276
 
277
  // Features with minimize on width enabled
278
+ rspw = document.querySelectorAll( '[data-respwidth]' );
279
 
280
+ var resp_resize = function( ele, window_width ){
281
+ var resp_width = ele.getAttribute( 'data-respwidth' );
282
+ if( resp_width > 0 ){
283
+ var resp_class = ele.getAttribute( 'data-respclass' );
284
+ if( window_width <= resp_width ){
285
+ wpsr_helpers.addClass( ele, resp_class );
286
  }else{
287
+ wpsr_helpers.removeClass( ele, resp_class );
288
  }
289
  }
290
  }
291
 
292
+ if( rspw.length > 0 ){
293
 
294
  [ 'resize', 'load' ].forEach(function( the_event ){
295
  window.addEventListener( the_event, function(){
296
+ for( i = 0; i < rspw.length; i++ ){
297
+ var rspwEle = rspw[ i ];
298
+ resp_resize( rspwEle, window.innerWidth );
299
  }
300
  });
301
  });
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 n=screen.width/2-s/2,a=screen.height/2-r/2;return window.open(t,e,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+a+",left="+n)},ajax:function(t,e,s,r,n){var a=new XMLHttpRequest;a.props=n,a.open(e,t,!0),"POST"==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.onreadystatechange=function(){if(4==a.readyState&&200==a.status)return r(a)},a.send(s)},format_num:function(t){if(t<1e3)return t;for(var e=["k","m","b","t"],s=t,r=0;r<e.length;r++)if(!((t/=1e3)>1e3)){s=Math.round(100*t)/100+e[r];break}return s}},document.addEventListener("DOMContentLoaded",function(){for(scr_links=document.querySelectorAll(".socializer.sr-popup a"),u=0;u<scr_links.length;u++){var t=scr_links[u];t.addEventListener("click",function(t){var e=this.getAttribute("href");"#"==e||this.hasAttribute("onclick")||wpsr_helpers.popup(e,"_blank",800,500),t.preventDefault()})}var e=document.querySelector(".wpsr-sharebar");if(e){var s=function(){vlsb=document.querySelector(".wpsr-sb-vl-scontent"),vlsb&&(stick=vlsb.getAttribute("data-stickto"),stick_ele=document.querySelector(stick),stick_ele&&(vlsb.style.left=stick_ele.offsetLeft+"px")),e&&window.innerWidth<=800&&wpsr_helpers.addClass(e,"wpsr-mow")};s(),window.addEventListener("resize",s),sb_close_btn=e.querySelector(".wpsr-sb-close"),sb_close_btn.addEventListener("click",function(){e.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(e,"wpsr-mow"):wpsr_helpers.addClass(e,"wpsr-mow")})}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0};var r={ptitle:tsb.getAttribute("data-title"),purl:tsb.getAttribute("data-url"),psurl:tsb.getAttribute("data-surl"),ptuname:tsb.getAttribute("data-tuname"),cnt_sel:tsb.getAttribute("data-content"),word_count:tsb.getAttribute("data-tcount")},n=function(){var t="";return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(t=document.selection.createRange().text),t},a=function(t,e){tsb.style.left=t+"px",tsb.style.top=e+"px",wpsr_helpers.addClass(tsb,"wpsr-tsb-active")},o=function(){wpsr_helpers.removeClass(tsb,"wpsr-tsb-active")},i=function(){var t=wpsr_tsb.stext,e=parseInt(r.word_count);return 0==e?t:t.split(" ").slice(0,e).join(" ")},l=function(t){var e={"{title}":escape(r.ptitle),"{url}":r.purl,"{s-url}":r.psurl,"{twitter-username}":r.ptuname,"{excerpt}":escape(i())};for(var s in e)e.hasOwnProperty(s)&&(t=t.replace(RegExp(s,"g"),e[s]));return t};if(""!=r.cnt_sel)for(var p=r.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),c=document.querySelectorAll(p),u=0;u<c.length;u++){var d=c[u];d.addEventListener("mousedown",function(t){wpsr_tsb.startx=t.pageX,wpsr_tsb.starty=t.pageY}),d.addEventListener("mouseup",function(t){var e=n();""!=e?(tsb_x=(t.pageX+parseInt(wpsr_tsb.startx))/2,tsb_y=Math.min(wpsr_tsb.starty,t.pageY),e!=wpsr_tsb.stext?(a(tsb_x,tsb_y),wpsr_tsb.stext=e):o()):o()})}document.body.addEventListener("mousedown",function(t){o()}),tsb.addEventListener("mousedown",function(t){t.stopPropagation()});for(var w=tsb.querySelectorAll("a"),u=0;u<w.length;u++){var t=w[u];t.addEventListener("click",function(t){var e=this.getAttribute("data-link");"#"!=e&&(rep_link=l(e),wpsr_helpers.popup(rep_link,800,500)),t.preventDefault()})}}if(msb=document.querySelector(".wpsr-mobile-sb"),msb&&msb.classList.contains("wpsr-mobile-hos")){var b=0;window.addEventListener("scroll",function(){var t=window.pageYOffset||document.documentElement.scrollTop;t>b?wpsr_helpers.addClass(msb,"wpsr-msb-hide"):wpsr_helpers.removeClass(msb,"wpsr-msb-hide"),b=t},!1)}var m=document.querySelector(".wpsr-followbar");m&&(fb_close_btn=m.querySelector(".wpsr-fb-close"),fb_close_btn.addEventListener("click",function(){m.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(m,"wpsr-mow"):wpsr_helpers.addClass(m,"wpsr-mow")})),mow=document.querySelectorAll("[data-minonwidth]");var f=function(t,e){var s=t.getAttribute("data-minonwidth");s>0&&(e<=s?wpsr_helpers.addClass(t,"wpsr-mow"):wpsr_helpers.removeClass(t,"wpsr-mow"))};if(mow.length>0&&["resize","load"].forEach(function(t){window.addEventListener(t,function(){for(u=0;u<mow.length;u++){var t=mow[u];f(t,window.innerWidth)}})}),wpsr_ajax_url){var v=document.querySelectorAll("[data-wpsrs]");if(v.length>0){var _={},h=wpsr_ajax_url+"?action=wpsr_share_count";for(u=0;u<v.length;u++){var g=v[u],y=g.getAttribute("data-wpsrs"),k=g.getAttribute("data-wpsrs-svcs").split(",");y in _||(_[y]=[]);for(j=0;j<k.length;j++)-1===_[y].indexOf(k[j])&&_[y].push(k[j])}var L=function(t){var e=JSON.parse(t.responseText),s=document.querySelectorAll('[data-wpsrs="'+t.props.forURL+'"]');for(u=0;u<s.length;u++){var r=s[u],n=r.getAttribute("data-wpsrs-svcs").split(","),a=0;for(j=0;j<n.length;j++){var o=n[j];o in e&&(a+=parseInt(e[o])||0)}r.innerHTML=wpsr_helpers.format_num(a)}};for(var y in _)_.hasOwnProperty(y)&&(send_data={url:y,services:_[y]},to_send="data="+JSON.stringify(send_data),wpsr_helpers.ajax(h,"POST",to_send,L,{forURL:y}))}}});
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 n=screen.width/2-s/2,a=screen.height/2-r/2;return window.open(t,e,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+a+",left="+n)},ajax:function(t,e,s,r,n){var a=new XMLHttpRequest;a.props=n,a.open(e,t,!0),"POST"==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),a.onreadystatechange=function(){if(4==a.readyState&&200==a.status)return r(a)},a.send(s)},format_num:function(t){if(t<1e3)return t;for(var e=["k","m","b","t"],s=t,r=0;r<e.length;r++)if(!((t/=1e3)>1e3)){s=Math.round(100*t)/100+e[r];break}return s}},document.addEventListener("DOMContentLoaded",function(){for(scr_links=document.querySelectorAll(".socializer.sr-popup a"),u=0;u<scr_links.length;u++){var t=scr_links[u];t.addEventListener("click",function(t){var e=this.getAttribute("href");"#"==e||this.hasAttribute("onclick")||wpsr_helpers.popup(e,"_blank",800,500),t.preventDefault()})}var e=document.querySelector(".wpsr-sharebar");if(e){var s=function(){vlsb=document.querySelector(".wpsr-sb-vl-scontent"),vlsb&&(stick=vlsb.getAttribute("data-stickto"),stick_ele=document.querySelector(stick),stick_ele&&(vlsb.style.left=stick_ele.offsetLeft+"px"))};s(),window.addEventListener("resize",s),sb_close_btn=e.querySelector(".wpsr-sb-close"),sb_close_btn.addEventListener("click",function(){e.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(e,"wpsr-mow"):wpsr_helpers.addClass(e,"wpsr-mow")})}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0};var r={ptitle:tsb.getAttribute("data-title"),purl:tsb.getAttribute("data-url"),psurl:tsb.getAttribute("data-surl"),ptuname:tsb.getAttribute("data-tuname"),cnt_sel:tsb.getAttribute("data-content"),word_count:tsb.getAttribute("data-tcount")},n=function(){var t="";return window.getSelection?t=window.getSelection().toString():document.selection&&"Control"!=document.selection.type&&(t=document.selection.createRange().text),t},a=function(t,e){tsb.style.left=t+"px",tsb.style.top=e+"px",wpsr_helpers.addClass(tsb,"wpsr-tsb-active")},o=function(){wpsr_helpers.removeClass(tsb,"wpsr-tsb-active")},i=function(){var t=wpsr_tsb.stext,e=parseInt(r.word_count);return 0==e?t:t.split(" ").slice(0,e).join(" ")},l=function(t){var e={"{title}":escape(r.ptitle),"{url}":r.purl,"{s-url}":r.psurl,"{twitter-username}":r.ptuname,"{excerpt}":escape(i())};for(var s in e)e.hasOwnProperty(s)&&(t=t.replace(RegExp(s,"g"),e[s]));return t};if(""!=r.cnt_sel)for(var p=r.cnt_sel.replace(/[\[\]<>"'\/\\=&%]/g,""),c=document.querySelectorAll(p),u=0;u<c.length;u++){var d=c[u];d.addEventListener("mousedown",function(t){wpsr_tsb.startx=t.pageX,wpsr_tsb.starty=t.pageY}),d.addEventListener("mouseup",function(t){var e=n();""!=e?(tsb_x=(t.pageX+parseInt(wpsr_tsb.startx))/2,tsb_y=Math.min(wpsr_tsb.starty,t.pageY),e!=wpsr_tsb.stext?(a(tsb_x,tsb_y),wpsr_tsb.stext=e):o()):o()})}document.body.addEventListener("mousedown",function(t){o()}),tsb.addEventListener("mousedown",function(t){t.stopPropagation()});for(var w=tsb.querySelectorAll("a"),u=0;u<w.length;u++){var t=w[u];t.addEventListener("click",function(t){var e=this.getAttribute("data-link");"#"!=e&&(rep_link=l(e),wpsr_helpers.popup(rep_link,800,500)),t.preventDefault()})}}if(msb=document.querySelector(".wpsr-mobile-sb"),msb&&msb.classList.contains("wpsr-mobile-hos")){var b=0;window.addEventListener("scroll",function(){var t=window.pageYOffset||document.documentElement.scrollTop;t>b?wpsr_helpers.addClass(msb,"wpsr-msb-hide"):wpsr_helpers.removeClass(msb,"wpsr-msb-hide"),b=t},!1)}var f=document.querySelector(".wpsr-followbar");f&&(fb_close_btn=f.querySelector(".wpsr-fb-close"),fb_close_btn.addEventListener("click",function(){f.classList.contains("wpsr-mow")?wpsr_helpers.removeClass(f,"wpsr-mow"):wpsr_helpers.addClass(f,"wpsr-mow")})),rspw=document.querySelectorAll("[data-respwidth]");var v=function(t,e){var s=t.getAttribute("data-respwidth");if(s>0){var r=t.getAttribute("data-respclass");e<=s?wpsr_helpers.addClass(t,r):wpsr_helpers.removeClass(t,r)}};if(rspw.length>0&&["resize","load"].forEach(function(t){window.addEventListener(t,function(){for(u=0;u<rspw.length;u++){var t=rspw[u];v(t,window.innerWidth)}})}),wpsr_ajax_url){var m=document.querySelectorAll("[data-wpsrs]");if(m.length>0){var _={},h=wpsr_ajax_url+"?action=wpsr_share_count";for(u=0;u<m.length;u++){var g=m[u],y=g.getAttribute("data-wpsrs"),k=g.getAttribute("data-wpsrs-svcs").split(",");y in _||(_[y]=[]);for(j=0;j<k.length;j++)-1===_[y].indexOf(k[j])&&_[y].push(k[j])}var L=function(t){var e=JSON.parse(t.responseText),s=document.querySelectorAll('[data-wpsrs="'+t.props.forURL+'"]');for(u=0;u<s.length;u++){var r=s[u],n=r.getAttribute("data-wpsrs-svcs").split(","),a=0;for(j=0;j<n.length;j++){var o=n[j];o in e&&(a+=parseInt(e[o])||0)}r.innerHTML=wpsr_helpers.format_num(a)}};for(var y in _)_.hasOwnProperty(y)&&(send_data={url:y,services:_[y]},to_send="data="+JSON.stringify(send_data),wpsr_helpers.ajax(h,"POST",to_send,L,{forURL:y}))}}});
readme.txt CHANGED
@@ -4,53 +4,40 @@ Donate link: https://www.paypal.me/vaakash/6
4
  Tags: sharing, social media icons, share icons, share buttons, follow buttons, widgets, floating share buttons, profile buttons, mobile sharebar, profile icons, social bar, share counter, excerpt, shortcode, linkedin, pinterest, pocket, reddit, sharethis, addthis, whatsapp, tweet, vkontakte, socializer, wp socializer, weibo, line, mix, odnoklassniki, renren, skype
5
  Requires at least: 4.6
6
  Tested up to: 5.3.2
7
- Stable tag: 4.2
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
 
10
 
11
- ONE plugin to insert beautiful Social media share buttons, Floating sharebar, Follow us icons, Mobile sharebar, Widgets with TONS of customization easily
12
 
13
  == Description ==
14
 
15
- WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with **TONS** of customization.
16
 
17
  = Key features =
18
 
19
  * **Drag & drop** social icons, buttons builder.
20
- * Add icons easily using the **setup wizard**.
21
  * Display the icons, buttons only on the required posts, pages using the advanced **conditional rules builder system**.
22
  * Insert **50 social share icons** which are highly scalable.
23
- * Insert **8 native social button** widgets ( i.e Facebook, Twitter etc. +6 )
24
- * Insert both **vertical and horizontal floating sharebars**.
25
  * Insert **51 follow me icons** in floating bar and widgets.
26
  * Insert **text sharebar** with 11 social network support.
27
  * Add **mobile sharebar** which supports icons of 50 networks.
28
  * Has inbuilt system to **display share counts**.
29
  * Has support for **shortcodes**.
30
- * Has support for native **social network sidebar widgets**.
31
-
32
- = Hand picked modern & beautiful designs =
33
-
34
- * 58+ social media icons design collections.
35
- * 87+ design templates to choose during the setup in the below categories.
36
- * 6 Only native social buttons collection.
37
- * 11 combination of icons with text and share counter.
38
- * 19 just icons design collection.
39
- * 27 icons with share counter collection.
40
- * 5 full width button collections.
41
- * 15 icons with text collection.
42
- * 5 just text buttons collection.
43
 
44
  [youtube https://www.youtube.com/watch?v=50aJq223TB0]
45
 
46
- = Highly optimized for faster page loads =
47
 
48
  WP Socializer **loads webpages faster** since scripts required by buttons are loaded only once and also when necessary. This increases the page load faster even when multiple buttons are used in the same page.
49
 
50
 
51
- = Mobile ready with retina icons =
52
 
53
- WP Socializer is 100% mobile ready with all the required options required for **targetting mobile audience**.
54
 
55
  * It has the social networks to share with mobile apps like WhatsApp, Facebook messenger, Telegram, WeChat
56
  * Dedicated mobile sharebar.
@@ -60,12 +47,15 @@ WP Socializer is 100% mobile ready with all the required options required for **
60
 
61
  = Create your own design for your website =
62
 
63
- With WP Socializer, you can create your own design for the social button and icons which are placed before and after posts and pages. There is no restriction to specific set of themes. With the advanced share buttons builder system, you can easily customize your website social media features.
64
 
 
 
 
65
 
66
  = Share counters =
67
 
68
- WP Socializer supports share counter. Share counter can be either displayed individually over icons or as a total count like in popular news sites. Share counter is supported for below networks,
69
 
70
  * Facebook like counts
71
  * LinkedIn share counts
@@ -81,45 +71,13 @@ Social buttons can be placed conditionally by creating rules which allows it to
81
  * Hide in all pages
82
  * Show in selected pages
83
  * Hide in selected pages
 
 
84
 
85
- Show/hide on,
86
-
87
- * Single posts, pages
88
- * Home, front & 404 pages.
89
- * Category, date & tag archives
90
- * Category, tags attached to posts.
91
- * Post formats
92
- * Custom post types.
93
-
94
- Show/hide based on:
95
-
96
- * Desktop devices
97
- * Mobile devices
98
- * Desktop & mobile devices
99
-
100
-
101
- = Supported social media icons =
102
-
103
- 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.
104
-
105
- Social share icon designs:
106
-
107
- * Square
108
- * Circle
109
- * Squircle
110
- * Squircle 2
111
- * Diamond
112
- * Drop
113
- * Ribbon
114
 
 
115
 
116
- = Native social media buttons =
117
-
118
- With WP Socializer plugin, you can add the native share buttons provided by leading social media websites. Buttons settings can be changed inside the admin page itself. All kinds of native social buttons from the below providers can be created.
119
-
120
- * Facebook, Twitter
121
- * Reddit, LinkedIn, Sharethis
122
- * Pinterest & Pocket
123
 
124
 
125
  = Sidebar widgets =
@@ -128,44 +86,18 @@ WP Socializer can also be used to insert widgets to WordPress sidebar. Below lis
128
 
129
  * Twitter timeline
130
  * Facebook page & messenger widget
131
- * Google+ Badge
132
- * Follow us buttons with text
133
- * Social buttons/icons to share the current post/page.
134
 
135
 
136
- = Support for shortcodes =
137
-
138
- There is also support for shortcodes with which social media buttons can be placed anywhere in posts and even in themes directly. The list of social buttons which can be inserted can be seen below.
139
-
140
- * Facebook, Twitter
141
- * Reddit, LinkedIn
142
- * Sharethis, Pinterest
143
- * Pocket & 50 social media icons
144
-
145
-
146
- = Follow us icons and selected text sharebar =
147
-
148
- There is also support for follow us / profile icons which can placed in widget or near the sides of the window. In addition to this, popups can also be added to share selected text which allows visitors to share the quoted text.
149
-
150
-
151
- = Setup wizard =
152
-
153
- WP Socializer has a built-in setup wizard with which it takes only ~3mins to add social icons and buttons to your site.
154
-
155
-
156
- = Custom social buttons =
157
 
158
- If you find that any of the social buttons are missing, they can also be added via the "custom HTML" feature built into the plugin.
159
 
160
 
161
  = More links =
162
 
163
- * [FAQs](https://goo.gl/Ge7riC)
164
  * [Support Forum](http://bit.ly/wpsrForumNew)
165
- * [Homepage](https://goo.gl/u8Zf09)
166
- * [Donate](https://goo.gl/qMF3iE)
167
- * [Submit translation](http://bit.ly/wpsrForumNew)
168
- * [YouTube demo videos](https://goo.gl/4jZJji)
169
 
170
 
171
  == Installation ==
@@ -178,13 +110,13 @@ If you find that any of the social buttons are missing, they can also be added v
178
 
179
  == Frequently Asked Questions ==
180
 
181
- = Why are the share buttons not aligned properly ? =
182
 
183
- Share buttons are aligned using CSS. This alignment can sometimes be disturbed by the active theme used. This can be corrected by CSS. Please refer [this image](https://goo.gl/Ge7riC#css-classes) for the list of CSS classes used by plugin to modify it or else please post your issue in the [support forum](http://bit.ly/wpsrForumNew) I'll try my best to give a quick CSS fix for the misalignment.
184
 
185
- = Share buttons are not displayed in the page ! =
186
 
187
- Share buttons or other feature may be hidden if the option "Hide in all pages" option is selected in "Conditions to display" section. Please select "Show in all pages" option to display the buttons. If the buttons are still not displayed, please raise an issue in the Support forum.
188
 
189
  = How to disable a feature in specific page alone ? =
190
 
@@ -205,24 +137,26 @@ Please refer [this page](https://goo.gl/Ge7riC) for the full list of FAQs.
205
  == Screenshots ==
206
 
207
  1. WP Socializer admin home page.
208
- 2. Native social icon, buttons, share counters, icons styles in action
209
- 3. WP Socializer in action with a dark theme
210
- 4. Vertical sharebar
211
- 5. Horizontal sharebar
212
- 6. Sharebar with custom background color and design
213
- 7. Follow us icons floating to the sides.
214
- 8. Mobile sharebar in different themes
215
- 9. Social media share widgets.
216
- 10. Selected text sharebar with green theme selected.
217
- 11. Conditional display UI.
218
- 12. Administration page 1
219
- 13. Administration page 2
220
- 14. Setup wizard, page 1
221
 
222
 
223
 
224
  == Changelog ==
225
 
 
 
 
 
 
 
 
226
  = 4.2 =
227
  * New: Added Etsy button for follow bar.
228
  * Fix: Sharebar and mobile sharebar are hidden by other elements on page sometimes.
@@ -294,57 +228,6 @@ Please refer [this page](https://goo.gl/Ge7riC) for the full list of FAQs.
294
  * New: Added new options for Floating sharebar, mobile sharebar
295
  * New: Enhanced existing developer APIs and added new filters.
296
 
297
- = 3.3.4 =
298
- * Fix: Google plus widget does not work for pages.
299
- * Fix: Admin UI tweaks to ease the customization of options.
300
-
301
- = 3.3.3 =
302
- * New: Twitch profile icon in social buttons.
303
- * New: Updated YouTube icon in social buttons.
304
- * Fix: Admin UI buttons alignment issue.
305
-
306
- = 3.3.2 =
307
- * Fix: Follow bar & sharebar not displayed in some cases.
308
-
309
- = 3.3.1 =
310
- * Fix: Remove PHP error logging
311
- * Fix: Sharebar & followbars were not displayed properly during page load.
312
- * Fix: Undefined index notice.
313
- * Fix: Minified JS was not used.
314
-
315
- = 3.3 =
316
- * New: Setup wizard.
317
- * New: Added handmade 87 design templates selectable from admin page.
318
- * Fix: Lots and lots of tweaks to social icons, counter in terms of design and functionality.
319
- * Fix: Lots and lots of enhancement to admin UI to ease the usage.
320
-
321
- = 3.2 =
322
- * New: Hide on mobile devices.
323
- * New: Minimize/Hide sharebars on smaller screens.
324
- * New: Support for post format conditional display.
325
- * New: Collapse button for follow bar.
326
- * New: Sharethis is upgraded to the latest version.
327
- * New: Widgets Admin settings page.
328
- * Fix: Home page/front page conditional location rules were not working.
329
- * Fix: Post image was not mentioned in Pinterest button.
330
- * Fix: Script tags will be removed sometimes while editing the Custom HTML button.
331
- * Fix: Added default hover setting to social buttons template.
332
- * Fix: Lots of admin UI tweaks and enhancements.
333
-
334
- = 3.1 =
335
- * New: Import/export settings feature.
336
- * New: Language can now be selected for Facebook, Google plus and LinkedIn buttons.
337
- * Fix: Conditional display feature was not working in some cases.
338
- * Fix: Scrollbars weren't displayed in popup window issue.
339
- * Fix: Enqueue script warning messages.
340
- * Fix: Deprecated buttons are removed in Sharethis service.
341
- * Fix: Follow bar aligment issue.
342
-
343
- = 3.0 =
344
- * New: Plugin completely re-written from scratch
345
- * New: administration interface
346
- * New: Support for modern buttons, icons
347
-
348
 
349
 
350
  == Upgrade Notice ==
4
  Tags: sharing, social media icons, share icons, share buttons, follow buttons, widgets, floating share buttons, profile buttons, mobile sharebar, profile icons, social bar, share counter, excerpt, shortcode, linkedin, pinterest, pocket, reddit, sharethis, addthis, whatsapp, tweet, vkontakte, socializer, wp socializer, weibo, line, mix, odnoklassniki, renren, skype
5
  Requires at least: 4.6
6
  Tested up to: 5.3.2
7
+ Stable tag: 5.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
+ Requires PHP: 5.3
11
 
12
+ BEAUTIFUL - POWERFUL - EASY social media share buttons, sharebar, follow icons, text and mobile sharebar
13
 
14
  == Description ==
15
 
16
+ WP Socializer is a complete social media plugin to add social media icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with **TONS** of customization.
17
 
18
  = Key features =
19
 
20
  * **Drag & drop** social icons, buttons builder.
 
21
  * Display the icons, buttons only on the required posts, pages using the advanced **conditional rules builder system**.
22
  * Insert **50 social share icons** which are highly scalable.
 
 
23
  * Insert **51 follow me icons** in floating bar and widgets.
24
  * Insert **text sharebar** with 11 social network support.
25
  * Add **mobile sharebar** which supports icons of 50 networks.
26
  * Has inbuilt system to **display share counts**.
27
  * Has support for **shortcodes**.
28
+ * Has support for native **social media sidebar widgets**.
29
+ * Extensive options with **no restrictions** to customize.
 
 
 
 
 
 
 
 
 
 
 
30
 
31
  [youtube https://www.youtube.com/watch?v=50aJq223TB0]
32
 
33
+ = Faster page loads =
34
 
35
  WP Socializer **loads webpages faster** since scripts required by buttons are loaded only once and also when necessary. This increases the page load faster even when multiple buttons are used in the same page.
36
 
37
 
38
+ = Mobile ready with responsiveness =
39
 
40
+ WP Socializer is 100% mobile ready and looks beautiful in any device with options to set the responsiveness to mobile devices.
41
 
42
  * It has the social networks to share with mobile apps like WhatsApp, Facebook messenger, Telegram, WeChat
43
  * Dedicated mobile sharebar.
47
 
48
  = Create your own design for your website =
49
 
50
+ With WP Socializer, you can create your own design for the social icons which are placed before and after posts and pages. With the advanced social icons builder system, you can easily customize your website social media features. You can select custom icon color, background color, size, and icon designs. Below icons designs are available out of the box.
51
 
52
+ * Square, Circle
53
+ * Squircle, Squircle type 2
54
+ * Diamond, Drop & Ribbon
55
 
56
  = Share counters =
57
 
58
+ WP Socializer supports share counter can be either displayed individually over icons or as a total count like in popular news sites. Share counter is supported for below networks,
59
 
60
  * Facebook like counts
61
  * LinkedIn share counts
71
  * Hide in all pages
72
  * Show in selected pages
73
  * Hide in selected pages
74
+ * Show/hide on specific pages Single posts, pages, home, front, 404 pages, category, date, tag archives, post formats and custom post types.
75
+ * Show/hide on desktop, mobile devices.
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
 
78
+ = Follow us icons and selected text sharebar =
79
 
80
+ There is also support for follow us / profile icons which can placed in widget or near the sides of the window. In addition to this, popups can also be added to share selected text which allows visitors to share the quoted text.
 
 
 
 
 
 
81
 
82
 
83
  = Sidebar widgets =
86
 
87
  * Twitter timeline
88
  * Facebook page & messenger widget
89
+ * Follow us buttons
 
 
90
 
91
 
92
+ = Supported social media icons =
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
93
 
94
+ 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.
95
 
96
 
97
  = More links =
98
 
 
99
  * [Support Forum](http://bit.ly/wpsrForumNew)
100
+ * [Homepage](https://www.aakashweb.com/wordpress-plugins/wp-socializer/)
 
 
 
101
 
102
 
103
  == Installation ==
110
 
111
  == Frequently Asked Questions ==
112
 
113
+ = Why are the share icons not aligned properly ? =
114
 
115
+ Share icons are aligned using CSS. This alignment can sometimes be disturbed by the active theme used. This can be corrected by CSS. Please refer [this image](https://goo.gl/Ge7riC#css-classes) for the list of CSS classes used by plugin to modify it or else please post your issue in the [support forum](http://bit.ly/wpsrForumNew) I'll try my best to give a quick CSS fix for the misalignment.
116
 
117
+ = Social icons are not displayed in the page ! =
118
 
119
+ Social icons or other feature may be hidden if the option "Hide in all pages" option is selected in "Conditions to display" section. Please select "Show in all pages" option to display the buttons. If the buttons are still not displayed, please raise an issue in the Support forum.
120
 
121
  = How to disable a feature in specific page alone ? =
122
 
137
  == Screenshots ==
138
 
139
  1. WP Socializer admin home page.
140
+ 2. Social icons in action.
141
+ 3. Floating sharebar in action.
142
+ 4. Follow us icons in action.
143
+ 5. Mobile sharebar in action.
144
+ 6. Text sharebar in action.
145
+ 7. Different type of social media widgets in action.
146
+ 8. Social icons admin settings page .
147
+ 9. Powerful options to conditionally display the social media features.
 
 
 
 
 
148
 
149
 
150
 
151
  == Changelog ==
152
 
153
+ = 5.0 =
154
+ * New: Social icons feature is replacing "classic share buttons" feature with easy to setup and powerful features.
155
+ * New: Floating sharebar is replacing the "classic sharebar" feature providing advanced features to setup quick and easy.
156
+ * New: Minor UI changes to the admin page.
157
+ * Fix: 40px size was not working for text sharebar.
158
+ * New: Social share buttons in widgets feature has been removed.
159
+
160
  = 4.2 =
161
  * New: Added Etsy button for follow bar.
162
  * Fix: Sharebar and mobile sharebar are hidden by other elements on page sometimes.
228
  * New: Added new options for Floating sharebar, mobile sharebar
229
  * New: Enhanced existing developer APIs and added new filters.
230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
 
232
 
233
  == Upgrade Notice ==
services/share_counter.php CHANGED
@@ -14,7 +14,8 @@ class wpsr_service_share_counter{
14
  'text' => 'Shares',
15
  'counter_color' => '#000',
16
  'add_services' => array(),
17
- 'orientation' => 'vl'
 
18
  );
19
 
20
  }
@@ -49,8 +50,19 @@ class wpsr_service_share_counter{
49
 
50
  $total_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $settings[ 'add_services' ] );
51
 
52
- $html .= '<div class="wpsr-counter ' . ( ( $settings[ 'orientation' ] == 'hl' ) ? 'wpsrc-hl' : '' ) . '">';
53
- $html .= '<span class="scount" style="color:' . esc_attr( $settings[ 'counter_color' ] ) . '">' . $total_holder . '</span>';
 
 
 
 
 
 
 
 
 
 
 
54
  $html .= '<small class="stext">' . $settings[ 'text' ] . '</small>';
55
  $html .= '</div>';
56
 
14
  'text' => 'Shares',
15
  'counter_color' => '#000',
16
  'add_services' => array(),
17
+ 'orientation' => 'vl',
18
+ 'size' => '32px'
19
  );
20
 
21
  }
50
 
51
  $total_holder = WPSR_Share_Counter::placeholder( $page_info[ 'url' ], $settings[ 'add_services' ] );
52
 
53
+ $classes = array( 'wpsr-counter', 'wpsrc-sz-' . $settings[ 'size' ] );
54
+
55
+ if( $settings[ 'orientation' ] == 'hl' ){
56
+ array_push( $classes, 'wpsrc-hl' );
57
+ }
58
+
59
+ $style = '';
60
+ if( $settings[ 'counter_color' ] != '' ){
61
+ $style = 'style="color:' . $settings['counter_color'] . '"';
62
+ }
63
+
64
+ $html .= '<div class="' . implode( ' ', $classes ) . '" ' . $style . '>';
65
+ $html .= '<span class="scount">' . $total_holder . '</span>';
66
  $html .= '<small class="stext">' . $settings[ 'text' ] . '</small>';
67
  $html .= '</div>';
68
 
services/social_icons.php CHANGED
@@ -109,7 +109,7 @@ class wpsr_service_social_icons{
109
  continue;
110
 
111
  $temp_url = ( $opts[ 'custom_url' ] == '' ) ? $props[ 'link' ] : urldecode( $opts[ 'custom_url' ] );
112
- $url = $this->get_url( $temp_url, $page_info );
113
 
114
  $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
115
 
@@ -572,48 +572,6 @@ echo json_encode( $a );
572
  echo '</div>';
573
  }
574
 
575
- function get_url( $url, $pinfo ){
576
-
577
- $g_settings = get_option( 'wpsr_general_settings' );
578
- $g_settings = WPSR_Lists::set_defaults( $g_settings, WPSR_Lists::defaults( 'gsettings_twitter' ) );
579
- $t_username = ( $g_settings[ 'twitter_username' ] != '' ) ? '@' . $g_settings[ 'twitter_username' ] : '';
580
-
581
- $pinfo = wp_parse_args( $pinfo, array(
582
- 'url' => '',
583
- 'title' => '',
584
- 'excerpt' => '',
585
- 'short_url' => '',
586
- 'rss_url' => '',
587
- 'post_image' => ''
588
- ));
589
-
590
- $search = array(
591
- '{url}',
592
- '{title}',
593
- '{excerpt}',
594
- '{s-url}',
595
- '{rss-url}',
596
- '{image}',
597
- '{twitter-username}',
598
- '{title-plain}',
599
- '{excerpt-plain}'
600
- );
601
-
602
- $replace = array(
603
- $pinfo[ 'url' ],
604
- urlencode( $pinfo[ 'title' ] ),
605
- urlencode( $pinfo[ 'excerpt' ] ),
606
- $pinfo[ 'short_url' ],
607
- $pinfo[ 'rss_url' ],
608
- $pinfo[ 'post_image' ],
609
- $t_username,
610
- $pinfo[ 'title' ],
611
- $pinfo[ 'excerpt' ]
612
- );
613
-
614
- return str_replace( $search, $replace, $url );
615
- }
616
-
617
  function validation( $values ){
618
 
619
  return $values;
109
  continue;
110
 
111
  $temp_url = ( $opts[ 'custom_url' ] == '' ) ? $props[ 'link' ] : urldecode( $opts[ 'custom_url' ] );
112
+ $url = WPSR_Metadata::process_url( $temp_url, $page_info );
113
 
114
  $onclick = isset( $props[ 'onclick' ] ) ? 'onclick="' . $props[ 'onclick' ] . '"' : '';
115
 
572
  echo '</div>';
573
  }
574
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
575
  function validation( $values ){
576
 
577
  return $values;
wpsr.php CHANGED
@@ -3,14 +3,14 @@
3
  * Plugin Name: WP Socializer
4
  * Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
  * Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
6
- * Version: 4.2
7
  * Author: Aakash Chakravarthy
8
  * Author URI: https://www.aakashweb.com
9
  * Text Domain: wpsr
10
  * Domain Path: /languages
11
  */
12
 
13
- define( 'WPSR_VERSION', '4.2' );
14
  define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
@@ -57,16 +57,18 @@ final class WP_Socializer{
57
 
58
  // Admin
59
  include_once( WPSR_PATH . 'admin/admin.php' );
60
- include_once( WPSR_PATH . 'admin/buttons.php' );
61
- include_once( WPSR_PATH . 'admin/sharebar.php' );
62
  include_once( WPSR_PATH . 'admin/followbar.php' );
63
  include_once( WPSR_PATH . 'admin/text_sharebar.php' );
64
  include_once( WPSR_PATH . 'admin/mobile_sharebar.php' );
65
  include_once( WPSR_PATH . 'admin/widgets.php' );
 
 
66
  include_once( WPSR_PATH . 'admin/import_export.php' );
67
  include_once( WPSR_PATH . 'admin/general_settings.php' );
68
  include_once( WPSR_PATH . 'admin/buttons_picker.php' );
69
- include_once( WPSR_PATH . 'admin/setup.php' );
70
 
71
  }
72
 
3
  * Plugin Name: WP Socializer
4
  * Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
  * Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
6
+ * Version: 5.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', '5.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' ) );
57
 
58
  // Admin
59
  include_once( WPSR_PATH . 'admin/admin.php' );
60
+ include_once( WPSR_PATH . 'admin/social_icons.php' );
61
+ include_once( WPSR_PATH . 'admin/floating_sharebar.php' );
62
  include_once( WPSR_PATH . 'admin/followbar.php' );
63
  include_once( WPSR_PATH . 'admin/text_sharebar.php' );
64
  include_once( WPSR_PATH . 'admin/mobile_sharebar.php' );
65
  include_once( WPSR_PATH . 'admin/widgets.php' );
66
+ include_once( WPSR_PATH . 'admin/buttons.php' );
67
+ include_once( WPSR_PATH . 'admin/sharebar.php' );
68
  include_once( WPSR_PATH . 'admin/import_export.php' );
69
  include_once( WPSR_PATH . 'admin/general_settings.php' );
70
  include_once( WPSR_PATH . 'admin/buttons_picker.php' );
71
+ include_once( WPSR_PATH . 'admin/icons_editor.php' );
72
 
73
  }
74