WP Socializer - Version 3.1

Version Description

  • New: Import/export settings feature.
  • New: Language can now be selected for Facebook, Google plus and LinkedIn buttons.
  • Fix: Conditional display feature was not working in some cases.
  • Fix: Scrollbars weren't displayed in popup window issue.
  • Fix: Enqueue script warning messages.
  • Fix: Deprecated buttons are removed in Sharethis service.
  • Fix: Follow bar aligment issue.
Download this release

Release Info

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

Code changes from version 3.0 to 3.1

admin/admin.php CHANGED
@@ -123,7 +123,7 @@ class WPSR_Admin{
123
  }
124
  echo '</h2>';
125
 
126
- self::donate_button();
127
 
128
  echo '</div>';
129
  }
@@ -175,7 +175,7 @@ class WPSR_Admin{
175
 
176
  self::admin_footer();
177
 
178
- self::admin_sharebar();
179
 
180
  }
181
 
@@ -590,7 +590,7 @@ class WPSR_Admin{
590
  }
591
 
592
  public static function action_links( $links ){
593
- array_unshift( $links, '<a href="' . self::admin_sb_link( 'paypal' ) . '" target="_blank">Donate</a>' );
594
  array_unshift( $links, '<a href="'. esc_url( admin_url( 'admin.php?page=wp_socializer&tab=help') ) .'">Help</a>' );
595
  array_unshift( $links, '<a href="'. esc_url( admin_url( 'admin.php?page=wp_socializer') ) .'">⚙️ Settings</a>' );
596
  return $links;
@@ -613,36 +613,65 @@ class WPSR_Admin{
613
  echo '<div class="welcome_wrap style_ele">
614
  <div class="wc_inner"></div>
615
  <div class="wc_footer">
616
- <button class="button button-primary close_changelog_btn">🏁 ' . __( 'Start using WP Socializer', 'wpsr' ) . '</button>
617
- <a href="' . self::admin_sb_link( 'a2a' ) . '" target="_blank" class="button pull-right">😀 Share the news !</a>
618
  </div></div>';
619
  }
620
 
621
- public static function donate_button(){
622
- echo '<div class="td_btn_wrap"><a href="#">❤️ Donate &amp; Support this plugin <i class="fa fa-caret-down"></i></a>
623
- <ul>
 
 
624
  <li class="donate_text"><div>Thank you for using WP Socializer. Your donation will motivate and make me happy for all the efforts ! You can donate via PayPal.</div></li>
625
- <li><a href="' . self::admin_sb_link( 'paypal' ) . '/5" target="_blank"><span>🙂</span> $5</a></li>
626
- <li><a href="' . self::admin_sb_link( 'paypal' ) . '/7" target="_blank"><span>😉</span> $7</a></li>
627
- <li><a href="' . self::admin_sb_link( 'paypal' ) . '/10" target="_blank"><span>😊</span> $10</a></li>
628
- <li><a href="' . self::admin_sb_link( 'paypal' ) . '/12" target="_blank"><span>😀</span> $12</a></li>
629
- <li><a href="' . self::admin_sb_link( 'paypal' ) . '/15" target="_blank"><span>👍</span> $15</a></li>
630
- <li><a href="' . self::admin_sb_link( 'paypal' ) . '/17" target="_blank"><span>😲</span> $17</a></li>
631
- <li><a href="' . self::admin_sb_link( 'paypal' ) . '/20" target="_blank"><span>🥂</span> $20</a></li>
632
- <li><a href="' . self::admin_sb_link( 'paypal' ) . '/" target="_blank"><span>🤗</span> $xx</a></li>
633
- </ul>
 
 
 
 
 
 
 
 
 
634
  </div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
635
  }
636
 
637
- public static function admin_sharebar(){
638
  echo '<ul class="share_wpsr">
639
- <li><a href="' . self::admin_sb_link( 'facebook' ) . '" title="Share WP Socializer on Facebook" target="_blank"><i class="fa fa-facebook"></i></a></li>
640
- <li><a href="' . self::admin_sb_link( 'twitter' ) . '" title="Tweet about WP Socializer" target="_blank"><i class="fa fa-twitter"></i></a></li>
641
- <li><a href="' . self::admin_sb_link( 'google_plus' ) . '" title="Share WP Socializer on Google Plus" target="_blank"><i class="fa fa-google-plus"></i></a></li>
642
- <li><a href="' . self::admin_sb_link( 'linkedin' ) . '" title="Share WP Socializer on LinkedIn" target="_blank"><i class="fa fa-linkedin"></i></a></li>
643
- <li><a href="' . self::admin_sb_link( 'paypal' ) . '" title="Donate" target="_blank" class="no_pp"><i class="fa fa-paypal"></i></a></li>
644
- <li><a href="' . self::admin_sb_link( 'post_wp' ) . '" title="Share WP Socializer on your website" target="_blank"><i class="fa fa-bullhorn"></i></a></li>
645
- <li><a href="' . self::admin_sb_link( 'a2a' ) . '" title="Share WP Socializer on other sites" target="_blank"><i class="fa fa-share-alt"></i></a></li>
646
  </ul>';
647
  }
648
 
@@ -650,53 +679,15 @@ class WPSR_Admin{
650
  echo '<div class="page_footer">
651
 
652
  <div class="fright">
653
- <p><a href="admin.php?page=wp_socializer&tab=help">' . __( 'Help', 'wpsr' ) . '</a> | <a href="https://www.aakashweb.com/wordpress-plugins/wp-socializer/" target="_blank">' . __( 'Feedback', 'wpsr' ) . '</a> | <a href="https://paypal.me/vaakash" target="_blank">' . __( 'Donate', 'wpsr' ) . '</a></p>
654
- <p><a href="https://www.aakashweb.com/forum/viewforum.php?f=22" target="_blank">' . __( 'Support Forum', 'wpsr' ) . '</a> | <a href="https://www.youtube.com/playlist?list=PLNwJ5cB8SX4yzB3XdvvC5SsCJsAZh5SF6" target="_blank">Help videos</a> | <a href="https://www.aakashweb.com/forum/viewforum.php?f=22" target="_blank">Submit translation</a></p>
655
- <p>⭐ Please <a href="https://wordpress.org/support/plugin/wp-socializer/reviews/" target="_blank">rate 5 stars</a> in WordPress.org if you like WP Socializer</p>
656
  </div>
657
 
658
  <p>' . __( 'Thank you for using WP Socializer plugin', 'wpsr' ) . ' 👍</p>
659
- <p>Created by Aakash Chakravarthy - Follow me on <a href="https://twitter.com/vaakash", target="_blank">Twitter</a>, <a href="https://fb.com/aakashweb" target="_blank">Facebook</a>, <a href="https://www.linkedin.com/in/vaakash/" target="_blank">LinkedIn</a>. Check out <a href="https://www.aakashweb.com/tag/work/" target="_blank">my other works</a>.</p>
660
- <p><img src="' . WPSR_ADMIN_URL . '/images/icons/aakash-web.png" /><a href="https://www.aakashweb.com" target="_blank">www.aakashweb.com</a></p>
661
  </div>';
662
- }
663
-
664
- public static function admin_sb_link( $id ){
665
-
666
- $url = urlencode( 'https://www.aakashweb.com/wordpress-plugins/wp-socializer/' );
667
- $surl = urlencode( 'https://goo.gl/BR1Hls' );
668
-
669
- $title = 'WP Socializer - One of the best social media share plugin for WordPress';
670
- $tweet = 'Check out WP Socializer - one of the best feature rich ⚡️ social media sharing plugin for %23WordPress';
671
- $excerpt = 'Check out WP Socializer - 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';
672
-
673
- if( $id == 'facebook' ){
674
- return "https://www.facebook.com/share.php?u=$url";
675
- }
676
-
677
- if( $id == 'twitter' ){
678
- return "https://twitter.com/home?status=$tweet%20-%20$surl%20@vaakash";
679
- }
680
-
681
- if( $id == 'google_plus' ){
682
- return "https://plus.google.com/share?url=$url";
683
- }
684
-
685
- if( $id == 'linkedin' ){
686
- return "https://www.linkedin.com/shareArticle?mini=true&url=$url&title=$title&summary=$excerpt";
687
- }
688
-
689
- if( $id == 'paypal' ){
690
- return "https://paypal.me/vaakash";
691
- }
692
-
693
- if( $id == 'post_wp' ){
694
- return "press-this.php?u=$url&t=$title&s=$excerpt";
695
- }
696
-
697
- if( $id == 'a2a' ){
698
- return "https://www.addtoany.com/share?url=$url&title=$title";
699
- }
700
 
701
  }
702
 
123
  }
124
  echo '</h2>';
125
 
126
+ self::top_sharebar();
127
 
128
  echo '</div>';
129
  }
175
 
176
  self::admin_footer();
177
 
178
+ self::admin_sidebar();
179
 
180
  }
181
 
590
  }
591
 
592
  public static function action_links( $links ){
593
+ array_unshift( $links, '<a href="https://goo.gl/qMF3iE" target="_blank">Donate</a>' );
594
  array_unshift( $links, '<a href="'. esc_url( admin_url( 'admin.php?page=wp_socializer&tab=help') ) .'">Help</a>' );
595
  array_unshift( $links, '<a href="'. esc_url( admin_url( 'admin.php?page=wp_socializer') ) .'">⚙️ Settings</a>' );
596
  return $links;
613
  echo '<div class="welcome_wrap style_ele">
614
  <div class="wc_inner"></div>
615
  <div class="wc_footer">
616
+ <button class="button button-primary close_changelog_btn"><img src="https://goo.gl/lfUxob" alt="Start" /> ' . __( 'Start using WP Socializer', 'wpsr' ) . '</button>
 
617
  </div></div>';
618
  }
619
 
620
+ public static function top_sharebar(){
621
+ echo '
622
+ <div class="top_sharebar">
623
+
624
+ <div class="td_btn_wrap"><a href="https://goo.gl/qMF3iE" target="_blank">❤️ Donate <i class="fa fa-caret-down"></i></a><ul>
625
  <li class="donate_text"><div>Thank you for using WP Socializer. Your donation will motivate and make me happy for all the efforts ! You can donate via PayPal.</div></li>
626
+ <li><a href="https://paypal.me/vaakash/3" target="_blank"><span>🙂</span> $3</a></li>
627
+ <li><a href="https://paypal.me/vaakash/5" target="_blank"><span>😉</span> $5</a></li>
628
+ <li><a href="https://paypal.me/vaakash/6" target="_blank"><span>😊</span> $6</a></li>
629
+ <li><a href="https://paypal.me/vaakash/7" target="_blank"><span>😀</span> $7</a></li>
630
+ <li><a href="https://paypal.me/vaakash/8" target="_blank"><span>😊</span> $8</a></li>
631
+ <li><a href="https://paypal.me/vaakash/9" target="_blank"><span>😀</span> $9</a></li>
632
+ <li><a href="https://paypal.me/vaakash/10" target="_blank"><span>👍</span> $10</a></li>
633
+ <li><a href="https://goo.gl/qMF3iE" target="_blank"><span>🤗</span> $xx</a></li></ul>
634
+ </div>
635
+
636
+ <div class="a2a_kit a2a_kit_size_32 a2a_default_style admin_sb"><a class="a2a_dd" href="https://www.addtoany.com/share"></a></div>
637
+
638
+ <div class="admin_sb"><a href="https://twitter.com/share" class="twitter-share-button" data-size="large" data-text="Check out WP Socializer - a complete, fully customizable ⚡️ social media sharing plugin for #WordPress" data-url="https://goo.gl/BR1Hls" data-via="vaakash" data-related="vaakash" data-show-count="false">Tweet</a></div>
639
+
640
+ <div class="fb-share-button admin_sb" data-href="https://www.aakashweb.com/wordpress-plugins/wp-socializer/" data-layout="button_count" data-size="large" data-mobile-iframe="true"><a class="fb-xfbml-parse-ignore" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=https%3A%2F%2Fwww.aakashweb.com%2Fwordpress-plugins%2Fwp-socializer%2F&amp;src=sdkpreparse">Share</a></div>
641
+
642
+ <div class="admin_sb share_text">Share &amp; talk about<br/> WP Socializer</div>
643
+
644
  </div>';
645
+
646
+ echo '
647
+ <div id="fb-root"></div>
648
+ <script>(function(d, s, id) {
649
+ var js, fjs = d.getElementsByTagName(s)[0];
650
+ if (d.getElementById(id)) return;
651
+ js = d.createElement(s); js.id = id;
652
+ js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8&appId=106994469342299";
653
+ fjs.parentNode.insertBefore(js, fjs);
654
+ }(document, "script", "facebook-jssdk"));</script>
655
+ <script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
656
+ <script>
657
+ var a2a_config = a2a_config || {};
658
+ a2a_config.linkname = "WP Socializer - a complete, fully customizable social media plugin for WordPress";
659
+ a2a_config.linkurl = "https://www.aakashweb.com/wordpress-plugins/wp-socializer/";
660
+ a2a_config.color_main = "D7E5ED";
661
+ a2a_config.color_border = "AECADB";
662
+ a2a_config.color_link_text = "333333";
663
+ a2a_config.color_link_text_hover = "333333";
664
+ a2a_config.prioritize = ["google_plus", "linkedin", "reddit", "stumbleupon", "hacker_news", "tumblr", "wordpress", "email"];
665
+ </script>
666
+ <script async src="https://static.addtoany.com/menu/page.js"></script>
667
+ ';
668
  }
669
 
670
+ public static function admin_sidebar(){
671
  echo '<ul class="share_wpsr">
672
+ <li><a href="https://goo.gl/A8AFcd" target="_blank"><img src="' . WPSR_ADMIN_URL . '/images/icons/anpn-thumb.svg" alt="Advanced post navigator"/><span>Advanced post navigator WordPress plugin</span></a><div><img src="https://i0.wp.com/oi64.tinypic.com/90vhwj.jpg" /></div></li>
673
+ <li><a href="https://goo.gl/qMF3iE" target="_blank"><span><img src="' . WPSR_ADMIN_URL . '/images/icons/donate.svg" /> Donate &amp; Support via PayPal</span></a></li>
674
+ <li><a href="https://goo.gl/h6FyvZ" target="_blank"><span><img src="' . WPSR_ADMIN_URL . '/images/icons/rate-wpsr.svg" /> Please rate 5 stars if you like <br/>WP Socializer</span></a></li>
 
 
 
 
675
  </ul>';
676
  }
677
 
679
  echo '<div class="page_footer">
680
 
681
  <div class="fright">
682
+ <p><a href="https://goo.gl/BXkcjA" target="_blank">' . __( 'Support Forum', 'wpsr' ) . '</a> | <a href="https://goo.gl/u8Zf09" target="_blank">' . __( 'Feedback', 'wpsr' ) . '</a></p>
683
+ <p><a href="https://goo.gl/4jZJji" target="_blank">Help videos</a></p>
684
+ <p><a href="https://goo.gl/BXkcjA" target="_blank">Submit translation</a></p>
685
  </div>
686
 
687
  <p>' . __( 'Thank you for using WP Socializer plugin', 'wpsr' ) . ' 👍</p>
688
+ <p>Created by Aakash Chakravarthy - Follow me on <a href="https://twitter.com/vaakash", target="_blank">Twitter</a>, <a href="https://fb.com/aakashweb" target="_blank">Facebook</a>, <a href="https://www.linkedin.com/in/vaakash/" target="_blank">LinkedIn</a>. Check out <a href="https://goo.gl/OAxx4l" target="_blank">my other works</a>.</p>
689
+ <p><img src="' . WPSR_ADMIN_URL . '/images/icons/aakash-web.png" /><a href="https://goo.gl/aHKnsM" target="_blank">www.aakashweb.com</a></p>
690
  </div>';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
691
 
692
  }
693
 
admin/css/style.css CHANGED
@@ -1002,6 +1002,7 @@ h1.wpsr_title .title-count{
1002
  box-shadow: 0 0 8px -1px #000;
1003
  border: 3px solid orange;
1004
  display: none;
 
1005
  }
1006
  .wc_inner{
1007
  position: absolute;
@@ -1021,6 +1022,7 @@ h1.wpsr_title .title-count{
1021
  right: 0;
1022
  border-top: 1px solid #dfdfdf;
1023
  background: #f0f0f0;
 
1024
  }
1025
 
1026
  .help_sec{
@@ -1116,18 +1118,30 @@ h1.wpsr_title .title-count{
1116
  background: #7d7d7d;
1117
  }
1118
 
1119
- #head_wrap .td_btn_wrap{
1120
  position: absolute;
1121
  right: 0;
1122
  top: 10px;
 
 
 
 
 
 
 
 
 
1123
  background: #FF9800;
1124
  padding: 5px 10px;
1125
- border-radius: 3px;
1126
- box-shadow: 0 1px 0px rgba(0, 0, 0, 0.31);
 
 
1127
  }
1128
  .td_btn_wrap > a {
1129
  text-decoration: none;
1130
  color: #fff;
 
1131
  }
1132
  .td_btn_wrap:hover > ul{
1133
  display: block;
@@ -1142,7 +1156,7 @@ h1.wpsr_title .title-count{
1142
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.46);
1143
  z-index: 999;
1144
  margin-top: 0;
1145
- left: 0;
1146
  display: none;
1147
  }
1148
  .td_btn_wrap li {
@@ -1171,26 +1185,60 @@ h1.wpsr_title .title-count{
1171
  }
1172
  .donate_text > div{
1173
  padding: 5px 10px;
 
 
 
 
 
 
 
 
 
1174
  }
1175
-
1176
 
1177
  .share_wpsr {
1178
- position: fixed;
1179
- right: 15px;
1180
  margin: 0;
1181
- transform: translateY(-50%);
1182
- top: 50%;
 
 
 
 
 
1183
  }
1184
  .share_wpsr a {
1185
- font-size: 22px;
1186
- color: #000;
1187
- opacity: 0.5;
1188
  }
1189
- .share_wpsr a:hover{
1190
- opacity: 1;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1191
  }
1192
  .share_wpsr li {
1193
- margin: 0 0 20px 0;
 
 
 
 
 
 
 
 
1194
  }
1195
 
1196
  .yt_help_icon{
@@ -1236,4 +1284,7 @@ h1.wpsr_title .title-count{
1236
  .main_form_footer{
1237
  position: static;
1238
  }
 
 
 
1239
  }
1002
  box-shadow: 0 0 8px -1px #000;
1003
  border: 3px solid orange;
1004
  display: none;
1005
+ z-index: 999;
1006
  }
1007
  .wc_inner{
1008
  position: absolute;
1022
  right: 0;
1023
  border-top: 1px solid #dfdfdf;
1024
  background: #f0f0f0;
1025
+ text-align: center;
1026
  }
1027
 
1028
  .help_sec{
1118
  background: #7d7d7d;
1119
  }
1120
 
1121
+ .top_sharebar{
1122
  position: absolute;
1123
  right: 0;
1124
  top: 10px;
1125
+ width: 500px;
1126
+ }
1127
+ .top_sharebar > *{
1128
+ vertical-align: middle;
1129
+ margin-left: 5px;
1130
+ float: right;
1131
+ }
1132
+
1133
+ .td_btn_wrap{
1134
  background: #FF9800;
1135
  padding: 5px 10px;
1136
+ border-radius: 5px;
1137
+ box-shadow: 0 1px 0px rgba(0, 0, 0, 0.2);
1138
+ display: inline;
1139
+ position: relative;
1140
  }
1141
  .td_btn_wrap > a {
1142
  text-decoration: none;
1143
  color: #fff;
1144
+ font-weight: bold;
1145
  }
1146
  .td_btn_wrap:hover > ul{
1147
  display: block;
1156
  box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.46);
1157
  z-index: 999;
1158
  margin-top: 0;
1159
+ left: -100px;
1160
  display: none;
1161
  }
1162
  .td_btn_wrap li {
1185
  }
1186
  .donate_text > div{
1187
  padding: 5px 10px;
1188
+ text-align: left;
1189
+ }
1190
+ .admin_sb{
1191
+ opacity: 0;
1192
+ }
1193
+ .a2a_svg {
1194
+ height: 29px !important;
1195
+ line-height: 29px !important;
1196
+ width: 29px !important;
1197
  }
 
1198
 
1199
  .share_wpsr {
1200
+ position: absolute;
1201
+ left: 88%;
1202
  margin: 0;
1203
+ top: 130px;
1204
+ width: 80px;
1205
+ }
1206
+ .share_wpsr span {
1207
+ display: block;
1208
+ font-size: 10px;
1209
+ text-align: center;
1210
  }
1211
  .share_wpsr a {
1212
+ text-decoration: none;
 
 
1213
  }
1214
+ .share_wpsr li div {
1215
+ position: absolute;
1216
+ background: #000;
1217
+ right: 100%;
1218
+ margin-right: 20px;
1219
+ top: 0;
1220
+ padding: 5px;
1221
+ color: #fff;
1222
+ border-radius: 3px;
1223
+ display: none;
1224
+ width: 400px;
1225
+ }
1226
+ .share_wpsr li:hover div {
1227
+ display: block;
1228
+ }
1229
+ .share_wpsr li div img{
1230
+ width: 100%;
1231
  }
1232
  .share_wpsr li {
1233
+ position: relative;
1234
+ margin-bottom: 15px;
1235
+ }
1236
+ .share_text{
1237
+ font-size: 10px;
1238
+ text-align: right;
1239
+ line-height: 1.5;
1240
+ margin-right: 5px;
1241
+ color: #838383;
1242
  }
1243
 
1244
  .yt_help_icon{
1284
  .main_form_footer{
1285
  position: static;
1286
  }
1287
+ .share_wpsr, .top_sharebar{
1288
+ display: none;
1289
+ }
1290
  }
admin/images/icons/anpn-thumb.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 21.166666 21.166667"><g transform="translate(0 -275.833)"><rect width="20.484" height="20.484" x=".341" y="276.175" rx="1.21" ry="0" fill="#e60042" stroke="#000" stroke-width=".682" stroke-miterlimit="13.7"/><path d="M4.91 280.864l4.31-2.272.034 4.21-4.076-1.805zM15.89 280.804l-4.308-2.272-.034 4.21 4.076-1.804z" fill="#fff" stroke="#fff" stroke-width=".265"/><text style="line-height:6.61458254px" x="10.513" y="288.447" font-size="10.583" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#fff" stroke-width=".265"><tspan x="10.513" y="288.447" style="text-align:center" font-size="3.881" text-anchor="middle">POST</tspan></text><text style="line-height:6.61458302px" x="10.904" y="293.266" font-size="10.583" font-family="sans-serif" letter-spacing="0" word-spacing="0" fill="#fff" stroke-width=".265"><tspan x="10.904" y="293.266" style="-inkscape-font-specification:'Roboto Condensed, Bold Condensed';text-align:center" font-weight="bold" font-stretch="condensed" font-size="3.528" font-family="Roboto Condensed" text-anchor="middle">NAVIGATOR</tspan></text></g></svg>
admin/images/icons/donate.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg height="75" viewBox="0 0 75 75" width="75" xmlns="http://www.w3.org/2000/svg"><path d="M22.093 31.824c-1.26-1.262-3.305-1.262-4.564 0L15.45 33.9l-.002-.002-4.566 4.564c-1.26 1.262-3.305 1.264-4.564 0l5.574 5.576c1.26 1.262 3.305 1.26 4.564-.002l2.074-2.074h.002l4.566-4.566c1.26-1.26 3.305-1.26 4.566.002l-5.573-5.574z" fill="#F26606"/><path d="M31.913 26.585c-1.262-1.26-3.305-1.26-4.566.002L25.27 28.66l-3.17 3.172 5.567 5.566 5.254-5.236c1.26-1.262 3.306-1.262 4.565-.002l-5.572-5.575z" fill="#1BC1A9"/><path d="M34.837 29.51l-2.924-2.925c-1.262-1.26-3.305-1.26-4.566.002l-1.877 1.877c.506.652 1.057 1.3 1.674 1.916 1.36 1.36 2.832 2.44 4.305 3.248l1.472-1.467c.764-.765 1.816-1.058 2.81-.895-.256-.582-.55-1.17-.895-1.754z" fill="#0CAFAF"/><path d="M52.907 31.824c1.26-1.262 3.303-1.262 4.564-.002l2.077 2.078.002-.002 4.565 4.564c1.26 1.262 3.305 1.262 4.564 0l-5.575 5.574c-1.26 1.262-3.305 1.262-4.564 0l.675.678-7.316-7.316c-1.263-1.262-3.308-1.262-4.567 0l5.574-5.574z" fill="#F26606"/><path d="M43.09 26.587c1.26-1.262 3.304-1.262 4.563-.002l2.076 2.076 3.17 3.17-5.567 5.567-5.254-5.238c-1.263-1.26-3.306-1.26-4.565 0l5.574-5.573z" fill="#1BC1A9"/><path d="M40.163 29.51l2.926-2.923c1.26-1.262 3.304-1.262 4.563-.002l1.877 1.88c-.508.653-1.057 1.298-1.674 1.915-1.36 1.36-2.832 2.44-4.305 3.248l-1.472-1.47c-.766-.763-1.816-1.058-2.81-.894.256-.58.55-1.167.895-1.755z" fill="#0CAFAF"/><path d="M35.45 15.602c-4.63-4.75-10.623-6.415-13.388-3.72-.96.938-1.395 2.284-1.37 3.834 2.906.12 6.503 1.89 9.522 4.99 3.02 3.097 4.702 6.738 4.747 9.647 1.55.062 2.906-.336 3.867-1.273 2.764-2.697 1.252-8.73-3.377-13.478z" fill="#EAB818"/><path d="M21.132 13.228c-.352.766-.527 1.64-.5 2.61 2.908.083 6.527 1.81 9.586 4.87 3.06 3.06 4.787 6.678 4.87 9.586.968.027 1.845-.15 2.608-.5 1.363-3.057-.365-8.096-4.418-12.148s-9.09-5.78-12.146-4.418z" fill="#ED9015"/><path d="M22.653 11.44c.078-.05.162-.097.244-.142-.082.045-.166.092-.244.14zM20.68 14.875c-.028.26-.042.527-.04.8-.002-.273.01-.54.04-.8zM20.987 13.542c.082-.215.176-.422.285-.62-.11.2-.203.406-.285.62zM21.415 12.68c.15-.235.318-.46.514-.66-.197.202-.365.425-.515.66zM20.7 14.662c.043-.314.113-.617.205-.906-.092.288-.16.59-.205.906zM23.52 11.013c.07-.025.138-.06.21-.082-.073.025-.14.058-.21.083zM40.27 25.113l-.015-.002c.004.056.006.112.006.167 0-.055.01-.108.01-.164zM25.813 10.67v-.013c-.057-.002-.107.008-.164.008.052 0 .11.002.163.004zM21.995 11.955l-.03.023c-.003.002-.003.004-.005.006.01-.01.023-.018.035-.03zM24.638 10.724c.07-.01.145-.012.215-.02-.07.008-.145.01-.215.02zM40.2 26.29c.012-.07.014-.146.02-.216-.006.07-.01.144-.02.215zM39.913 27.408c.025-.07.06-.14.082-.21-.023.07-.057.14-.082.21zM38.94 28.966c.004-.002.004-.004.006-.004.01-.01.016-.023.025-.033-.01.01-.018.025-.03.036zM39.487 28.27c.05-.077.096-.16.14-.24-.046.08-.09.163-.14.24zM38.905 28.996c-.2.197-.424.365-.658.516.234-.15.457-.32.658-.516zM37.17 30.02c-.288.09-.59.16-.905.206.314-.045.617-.115.906-.205zM35.25 30.287c.276.002.542-.014.8-.04-.258.026-.526.042-.8.04zM38.003 29.654c-.197.11-.404.203-.62.283.216-.08.423-.174.62-.283zM30.218 20.708c-3.055-3.057-6.668-4.783-9.574-4.867.088 2.905 1.814 6.517 4.87 9.573 3.054 3.055 6.667 4.78 9.57 4.87-.083-2.907-1.81-6.52-4.866-9.575z" fill="#F26606"/><path d="M23.93 16.54c.78 2.103 2.19 4.312 4.167 6.288 1.98 1.98 4.188 3.39 6.29 4.168-.782-2.102-2.19-4.31-4.17-6.287-1.976-1.98-4.185-3.39-6.286-4.17z" fill="#DB4D07"/><g><path d="M39.612 15.537c4.69-4.688 10.703-6.277 13.436-3.547.947.95 1.363 2.3 1.32 3.85-2.91.082-6.527 1.81-9.586 4.87-3.06 3.058-4.787 6.677-4.87 9.585-1.55.043-2.9-.375-3.847-1.322-2.73-2.73-1.144-8.745 3.547-13.436z" fill="#EAB818"/><path d="M53.868 13.228c.35.766.527 1.643.5 2.61-2.91.083-6.527 1.81-9.586 4.87-3.06 3.06-4.787 6.678-4.87 9.586-.968.027-1.845-.15-2.608-.5-1.365-3.057.365-8.096 4.418-12.148s9.09-5.78 12.146-4.418z" fill="#ED9015"/><path d="M52.347 11.44c-.08-.05-.162-.097-.244-.144.082.047.164.092.244.145zM54.32 14.876c.028.258.042.523.04.8.002-.274-.01-.542-.04-.8zM54.01 13.542c-.08-.215-.173-.422-.282-.62.11.2.203.406.283.62zM53.585 12.68c-.15-.237-.318-.46-.514-.66.195.202.365.423.515.66zM54.3 14.662c-.045-.314-.113-.617-.207-.906.094.286.162.59.207.906zM51.48 11.013c-.07-.027-.136-.06-.208-.082.073.025.14.056.21.083zM34.73 25.113l.013-.002c-.002.056-.002.112-.002.167 0-.055-.01-.108-.01-.164zM49.187 10.667v-.01c.057-.002.107.008.164.008l-.163.002zM53.005 11.955c.008.008.02.014.03.023 0 .002.003.006.005.006-.012-.01-.025-.018-.035-.03zM50.362 10.724c-.07-.01-.143-.014-.215-.02.073.006.145.01.215.02zM34.8 26.29c-.012-.07-.014-.146-.02-.218.006.072.01.146.02.217zM35.087 27.408c-.025-.07-.06-.14-.082-.213.023.074.057.142.082.213zM36.06 28.966l-.008-.006c-.008-.01-.014-.02-.02-.03.006.01.016.025.028.036zM35.515 28.27c-.053-.077-.098-.157-.145-.24.047.08.094.163.145.24zM36.095 28.996c.2.197.424.365.658.516-.234-.15-.457-.32-.658-.516zM37.83 30.02c.288.09.59.16.905.208-.316-.047-.617-.117-.906-.21zM39.75 30.287c-.276.002-.542-.014-.802-.04.26.026.526.042.8.04zM36.997 29.654c.195.11.404.205.62.283-.216-.078-.425-.174-.62-.283zM44.782 20.708c3.055-3.057 6.668-4.783 9.574-4.87-.086 2.907-1.814 6.52-4.87 9.575-3.054 3.055-6.667 4.78-9.573 4.867.086-2.904 1.813-6.517 4.87-9.572z" fill="#F26606"/><path d="M51.07 16.54c-.778 2.103-2.192 4.312-4.167 6.288-1.98 1.98-4.188 3.387-6.29 4.168.782-2.102 2.19-4.31 4.17-6.287 1.976-1.978 4.185-3.39 6.286-4.17z" fill="#DB4D07"/></g><path d="M41.48 28.183c0 2.2-1.784 3.98-3.98 3.98-2.198 0-3.978-1.78-3.978-3.978v-12.01c0-2.197 1.78-3.977 3.977-3.98 2.196 0 3.98 1.782 3.978 3.98v12.008z" fill="#EAB818"/><path d="M37.5 16.306c-2.198-.002-3.978 1.78-3.978 3.98v7.9c0 2.196 1.78 3.978 3.977 3.976 2.196 0 3.98-1.78 3.98-3.98l-.003-7.897c.002-2.2-1.78-3.98-3.978-3.98z" fill="#ED9015"/><g><path fill="#E83862" d="M11.056 23.246h52.887V34.21H11.056z"/><path fill="#BC2A54" d="M11.056 27.083h52.887v7.127H11.056z"/><path fill="#EAB818" d="M30.966 23.246h13.068V34.21H30.966z"/><path fill="#ED9015" d="M30.966 26.996h13.068v7.215H30.966z"/></g><g><path fill="#BC2A54" d="M16.16 34.21h42.68v30.197H16.16z"/><path fill="#AA1F4D" d="M16.16 34.21l42.68 30.198V34.21"/></g><g fill="#E83862"><circle cx="23.5" cy="40.705" r="2.151"/><circle cx="32.832" cy="40.705" r="2.151"/><circle cx="42.166" cy="40.705" r="2.151"/><circle cx="51.5" cy="40.705" r="2.151"/></g><g fill="#E83862"><circle cx="28.166" cy="48.591" r="2.151"/><circle cx="37.5" cy="48.591" r="2.151"/><circle cx="46.832" cy="48.591" r="2.151"/></g><g fill="#E83862"><circle cx="23.5" cy="56.48" r="2.151"/><circle cx="32.832" cy="56.48" r="2.151"/><circle cx="42.166" cy="56.48" r="2.151"/><circle cx="51.5" cy="56.48" r="2.151"/></g><path fill="#EAB818" d="M33.417 34.21h8.166v30.197h-8.166z"/><path fill="#F26606" d="M41.583 52.2V34.21h-8.166v12.21"/></svg>
admin/images/icons/rate-wpsr.svg ADDED
@@ -0,0 +1 @@
 
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="69.263" height="13.468" viewBox="0 0 18.32591 3.5633998"><g fill="#ffb610"><path d="M1.4 1.308L1.842 0l.423 1.315 1.4.013-1.138.803.42 1.317-1.126-.82-1.14.802.442-1.31L0 1.298z"/><path d="M5.064 1.337L5.51.03l.42 1.314 1.4.013-1.137.803.42 1.316-1.126-.82-1.14.802.442-1.31-1.125-.82zM8.73 1.367l.444-1.31.423 1.316 1.4.013-1.14.803.42 1.315-1.125-.82-1.14.802.443-1.31-1.125-.82z"/><path d="M12.394 1.396L12.84.088l.422 1.315 1.4.012-1.14.803.42 1.316-1.125-.82-1.14.802.443-1.31-1.124-.82z"/><path d="M16.06 1.425l.444-1.308.423 1.315 1.4.012-1.14.803.422 1.316-1.127-.818-1.14.8.442-1.31-1.124-.82z"/></g></svg>
admin/import_export.php ADDED
@@ -0,0 +1,70 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Import/export admin page
4
+ *
5
+ **/
6
+
7
+ class wpsr_admin_import_export{
8
+
9
+ function __construct(){
10
+
11
+ WPSR_Admin::add_tab( 'import_export', array(
12
+ 'name' => __( 'Import/Export', 'wpsr' ),
13
+ 'page_callback' => array( $this, 'page' ),
14
+ 'form' => array(
15
+ 'id' => 'import_export',
16
+ 'name' => 'import_export',
17
+ 'callback' => ''
18
+ )
19
+ ));
20
+
21
+ }
22
+
23
+ function page(){
24
+
25
+ echo '<div class="notice notice-success inline hidden"><p>' . __( 'Successfull imported data !', 'wpsr' ) . '</p></div>';
26
+ echo '<div class="notice notice-error inline hidden"><p>' . __( 'Failed to import data, please re-import the data !', 'wpsr' ) . '</p></div>';
27
+
28
+ echo '<form id="import_form">';
29
+
30
+ $section1 = array(
31
+ array( __( 'Import data', 'wpsr' ), WPSR_Admin::field( 'textarea', array(
32
+ 'name' => 'import_data',
33
+ 'value' => '',
34
+ 'helper' => __( 'Paste the exported data into the text box above.', 'wpsr' ),
35
+ 'rows' => '3',
36
+ 'cols' => '100'
37
+ )))
38
+ );
39
+
40
+ WPSR_Admin::build_table( $section1, __( 'Import data', 'wpsr' ), __( 'Import the already exported WP Socializer data using the field below. Please note that importing will <b>overwrite</b> all the existing buttons created and the settings.', 'wpsr' ) );
41
+
42
+ wp_nonce_field( 'wpsr_import_nonce' );
43
+
44
+ echo '<p align="right"><input type="submit" class="import_form_submit button button-primary" value="' . __( 'Import', 'wpsr' ) . '" /></p>';
45
+ echo '</form>';
46
+
47
+ $section2 = array(
48
+ array( __( 'Export data', 'wpsr' ), WPSR_Admin::field( 'textarea', array(
49
+ 'name' => 'export_data',
50
+ 'value' => WPSR_Import_Export::export(),
51
+ 'helper' => __( 'Copy the data above, save it and import it later', 'wpsr' ),
52
+ 'rows' => '3',
53
+ 'cols' => '100',
54
+ 'custom' => 'onClick="this.select();"'
55
+ )))
56
+ );
57
+
58
+ WPSR_Admin::build_table( $section2, __( 'Export', 'wpsr' ) );
59
+
60
+ }
61
+
62
+ function validation( $input ){
63
+ return $input;
64
+ }
65
+
66
+ }
67
+
68
+ new wpsr_admin_import_export();
69
+
70
+ ?>
admin/js/script.js CHANGED
@@ -1012,6 +1012,31 @@ jQuery(document).ready(function(){
1012
  $( '.htip' ).remove();
1013
  });
1014
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1015
  //Button selector events
1016
  $(document).on( 'click', '.sbox_inner li', function(){
1017
  $wrap = $(this).closest( '.sbox_wrap' );
@@ -1094,9 +1119,8 @@ jQuery(document).ready(function(){
1094
  changelog_hide();
1095
  });
1096
 
1097
- $( document ).on( 'click', '.share_wpsr a:not(".no_pp")', function(e){
1098
- e.preventDefault();
1099
- wpsr_open_popup( $(this).attr( 'href' ), 'Share WP Socializer', 800, 400 );
1100
  });
1101
 
1102
  // Initinitinitinitinit
1012
  $( '.htip' ).remove();
1013
  });
1014
 
1015
+ // Import data
1016
+ $( document ).on( 'submit', '#import_form', function( e ){
1017
+ e.preventDefault();
1018
+
1019
+ var import_val = $(this).find( '[name="import_data"]' ).val();
1020
+
1021
+ $.ajax({
1022
+ url: wpsr.ajaxurl,
1023
+ method: 'POST',
1024
+ data: {
1025
+ action: 'wpsr_import_ajax',
1026
+ import_data: import_val,
1027
+ _wpnonce: $(this).find( '[name="_wpnonce"]' ).val(),
1028
+ }
1029
+
1030
+ }).done(function(d){
1031
+ if( d.search( /import_success/g ) != -1 ){
1032
+ $( '.notice-success' ).fadeIn();
1033
+ }
1034
+ if( d.search( /import_failed|auth_error/g ) != -1 ){
1035
+ $( '.notice-error' ).fadeIn();
1036
+ }
1037
+ });
1038
+ });
1039
+
1040
  //Button selector events
1041
  $(document).on( 'click', '.sbox_inner li', function(){
1042
  $wrap = $(this).closest( '.sbox_wrap' );
1119
  changelog_hide();
1120
  });
1121
 
1122
+ $(window).load(function(){
1123
+ $( '.admin_sb' ).delay( 500 ).fadeTo( 'fast', 1 );
 
1124
  });
1125
 
1126
  // Initinitinitinitinit
core/import_export.php ADDED
@@ -0,0 +1,101 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Gives the page details for the services
4
+ *
5
+ */
6
+
7
+ class WPSR_Import_Export{
8
+
9
+ public static function init(){
10
+
11
+ add_action( 'wp_ajax_wpsr_import_ajax', array( __CLASS__, 'import_ajax' ) );
12
+
13
+ }
14
+
15
+ public static function settings_list(){
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',
22
+ 'text_sharebar_settings' => 'wpsr_text_sharebar_settings',
23
+ 'mobile_sharebar_settings' => 'wpsr_mobile_sharebar_settings',
24
+ 'general_settings' => 'wpsr_general_settings'
25
+ ));
26
+
27
+ }
28
+
29
+ public static function export(){
30
+
31
+ $settings = self::settings_list();
32
+ $exports = array();
33
+
34
+ foreach( $settings as $id => $name ){
35
+ $val = get_option( $name );
36
+ if( $val ){
37
+ $exports[ $id ] = $val;
38
+ }
39
+ }
40
+
41
+ $export_json = wp_json_encode( $exports );
42
+ return $export_json;
43
+
44
+ }
45
+
46
+ public static function import( $data = '' ){
47
+
48
+ $settings = self::settings_list();
49
+ $imports = array();
50
+ $success_count = 0;
51
+
52
+ if( trim( $data ) == '' )
53
+ return false;
54
+
55
+ try{
56
+ $imports = json_decode( $data, true );
57
+ }catch( Exception $e ){
58
+ return false;
59
+ }
60
+
61
+ foreach( $imports as $id => $import_val ){
62
+ if( array_key_exists( $id, $settings ) ){
63
+ $name = $settings[ $id ];
64
+ update_option( $name, $import_val );
65
+ $success_count++;
66
+ }
67
+ }
68
+
69
+ if( $success_count > 0 ){
70
+ return true;
71
+ }else{
72
+ return false;
73
+ }
74
+
75
+ }
76
+
77
+ public static function import_ajax(){
78
+
79
+ if( !check_ajax_referer( 'wpsr_import_nonce', '_wpnonce', false ) ){
80
+ echo 'auth_error';
81
+ die( 0 );
82
+ }
83
+
84
+ $data = stripslashes( $_POST[ 'import_data' ] );
85
+ $import_res = self::import( $data );
86
+
87
+ if( $import_res ){
88
+ echo 'import_success';
89
+ }else{
90
+ echo 'import_failed';
91
+ }
92
+
93
+ die( 0 );
94
+
95
+ }
96
+
97
+ }
98
+
99
+ WPSR_Import_Export::init();
100
+
101
+ ?>
core/includes.php CHANGED
@@ -45,26 +45,36 @@ class WPSR_Includes{
45
 
46
  self::$all_includes[ $inc_id ] = $inc_info;
47
 
48
- $deps = array();
49
- if( isset( $inc_info[ 'deps' ] ) ){
50
- $deps = $inc_info[ 'deps' ];
51
- }
52
-
53
- if( $inc_info[ 'type' ] == 'js' ){
54
- if( isset( $inc_info[ 'link' ] ) ){
55
- wp_register_script( 'wpsr_' . $inc_id, $inc_info[ 'link' ], $deps );
56
- }
57
- }elseif( $inc_info[ 'type' ] == 'css' ){
58
- if( isset( $inc_info[ 'link' ] ) ){
59
- wp_register_style( 'wpsr_' . $inc_id, $inc_info[ 'link' ], $deps );
60
- }
61
- }
62
  }
63
  }
64
  }
65
 
66
  }
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  public static function list_all(){
69
 
70
  return apply_filters( 'wpsr_mod_includes_list', self::$all_includes );
@@ -132,12 +142,15 @@ class WPSR_Includes{
132
  // Forcefully include all CSS includes
133
  $includes = self::list_all();
134
 
 
 
 
135
  foreach( $includes as $inc_id => $inc_info ){
136
 
137
  if( $inc_info[ 'type' ] == 'css' ){
138
 
139
  if( isset( $inc_info[ 'link' ] ) ){
140
- wp_enqueue_style( 'wpsr_' . $inc_id, $inc_info[ 'link' ] );
141
  }
142
 
143
  if( isset( $inc_info[ 'code' ] ) ){
45
 
46
  self::$all_includes[ $inc_id ] = $inc_info;
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  }
49
  }
50
  }
51
 
52
  }
53
 
54
+ public static function do_wp_register(){
55
+
56
+ $includes = self::list_all();
57
+
58
+ foreach( $includes as $inc_id => $inc_info ){
59
+
60
+ $deps = array();
61
+ if( isset( $inc_info[ 'deps' ] ) ){
62
+ $deps = $inc_info[ 'deps' ];
63
+ }
64
+
65
+ if( $inc_info[ 'type' ] == 'js' ){
66
+ if( isset( $inc_info[ 'link' ] ) ){
67
+ wp_register_script( 'wpsr_' . $inc_id, $inc_info[ 'link' ], $deps );
68
+ }
69
+ }elseif( $inc_info[ 'type' ] == 'css' ){
70
+ if( isset( $inc_info[ 'link' ] ) ){
71
+ wp_register_style( 'wpsr_' . $inc_id, $inc_info[ 'link' ], $deps );
72
+ }
73
+ }
74
+
75
+ }
76
+ }
77
+
78
  public static function list_all(){
79
 
80
  return apply_filters( 'wpsr_mod_includes_list', self::$all_includes );
142
  // Forcefully include all CSS includes
143
  $includes = self::list_all();
144
 
145
+ // Register all the includes including JS and CSS
146
+ self::do_wp_register();
147
+
148
  foreach( $includes as $inc_id => $inc_info ){
149
 
150
  if( $inc_info[ 'type' ] == 'css' ){
151
 
152
  if( isset( $inc_info[ 'link' ] ) ){
153
+ wp_enqueue_style( 'wpsr_' . $inc_id );
154
  }
155
 
156
  if( isset( $inc_info[ 'code' ] ) ){
core/lists.php CHANGED
@@ -503,18 +503,6 @@ class WPSR_Lists{
503
  'fbsend' => array(
504
  'name' => 'Facebook Send'
505
  ),
506
- 'fbsub' => array(
507
- 'name' => 'Facebook Subscribe'
508
- ),
509
- 'foursquaresave' => array(
510
- 'name' => 'Foursquare Save'
511
- ),
512
- 'foursquarefollow' => array(
513
- 'name' => 'Foursquare Follow'
514
- ),
515
- 'instagram' => array(
516
- 'name' => 'Instagram Badge'
517
- ),
518
  'plusone' => array(
519
  'name' => 'Google +1'
520
  ),
@@ -548,135 +536,33 @@ class WPSR_Lists{
548
  'googleplus' => array(
549
  'name' => 'Google +'
550
  ),
551
- 'adfty' => array(
552
- 'name' => 'Adfty'
553
- ),
554
- 'allvoices' => array(
555
- 'name' => 'Allvoices'
556
- ),
557
- 'amazon_wishlist' => array(
558
- 'name' => 'Amazon Wishlist'
559
- ),
560
- 'arto' => array(
561
- 'name' => 'Arto'
562
- ),
563
- 'att' => array(
564
- 'name' => 'AT&T'
565
- ),
566
- 'baidu' => array(
567
- 'name' => 'Baidu'
568
- ),
569
- 'blinklist' => array(
570
- 'name' => 'Blinklist'
571
- ),
572
- 'blip' => array(
573
- 'name' => 'Blip'
574
- ),
575
- 'blogmarks' => array(
576
- 'name' => 'Blogmarks'
577
- ),
578
  'blogger' => array(
579
  'name' => 'Blogger'
580
  ),
581
- 'buddymarks' => array(
582
- 'name' => 'BuddyMarks'
583
- ),
584
  'buffer' => array(
585
  'name' => 'Buffer'
586
  ),
587
- 'care2' => array(
588
- 'name' => 'Care2'
589
- ),
590
- 'chiq' => array(
591
- 'name' => 'chiq'
592
- ),
593
- 'citeulike' => array(
594
- 'name' => 'CiteULike'
595
- ),
596
- 'corkboard' => array(
597
- 'name' => 'Corkboard'
598
- ),
599
- 'dealsplus' => array(
600
- 'name' => 'Dealspl.us'
601
- ),
602
  'delicious' => array(
603
  'name' => 'Delicious'
604
  ),
605
  'digg' => array(
606
  'name' => 'Digg'
607
  ),
608
- 'diigo' => array(
609
- 'name' => 'Diigo'
610
- ),
611
- 'dzone' => array(
612
- 'name' => 'DZone'
613
- ),
614
- 'edmodo' => array(
615
- 'name' => 'Edmodo'
616
- ),
617
- 'embed_ly' => array(
618
- 'name' => 'Embed.ly'
619
- ),
620
  'evernote' => array(
621
  'name' => 'Evernote'
622
  ),
623
- 'fark' => array(
624
- 'name' => 'Fark'
625
- ),
626
- 'fashiolista' => array(
627
- 'name' => 'Fashiolista'
628
- ),
629
  'flipboard' => array(
630
  'name' => 'Flipboard'
631
  ),
632
- 'folkd' => array(
633
- 'name' => 'folkd.com'
634
- ),
635
- 'foodlve' => array(
636
- 'name' => 'FoodLve'
637
- ),
638
- 'fresqui' => array(
639
- 'name' => 'Fresqui'
640
- ),
641
- 'friendfeed' => array(
642
- 'name' => 'FriendFeed'
643
- ),
644
- 'funp' => array(
645
- 'name' => 'Funp'
646
- ),
647
- 'fwisp' => array(
648
- 'name' => 'fwisp'
649
- ),
650
  'google' => array(
651
  'name' => 'Google'
652
  ),
653
  'google_bmarks' => array(
654
  'name' => 'Bookmarks'
655
  ),
656
- 'google_reader' => array(
657
- 'name' => 'Google Reader'
658
- ),
659
- 'google_translate' => array(
660
- 'name' => 'Google Translate'
661
- ),
662
- 'hatena' => array(
663
- 'name' => 'Hatena'
664
- ),
665
  'instapaper' => array(
666
  'name' => 'Instapaper'
667
  ),
668
- 'jumptags' => array(
669
- 'name' => 'Jumptags'
670
- ),
671
- 'kaboodle' => array(
672
- 'name' => 'Kaboodle'
673
- ),
674
- 'kik' => array(
675
- 'name' => 'Kik'
676
- ),
677
- 'linkagogo' => array(
678
- 'name' => 'linkaGoGo'
679
- ),
680
  'livejournal' => array(
681
  'name' => 'LiveJournal'
682
  ),
@@ -686,112 +572,59 @@ class WPSR_Lists{
686
  'meneame' => array(
687
  'name' => 'Meneame'
688
  ),
689
- 'messenger' => array(
690
- 'name' => 'Messenger'
691
- ),
692
- 'mister_wong' => array(
693
- 'name' => 'Mr Wong'
694
- ),
695
- 'moshare' => array(
696
- 'name' => 'moShare'
697
- ),
698
- 'myspace' => array(
699
- 'name' => 'MySpace'
700
- ),
701
- 'n4g' => array(
702
- 'name' => 'N4G'
703
- ),
704
- 'netlog' => array(
705
- 'name' => 'Netlog'
706
- ),
707
- 'netvouz' => array(
708
- 'name' => 'Netvouz'
709
- ),
710
- 'newsvine' => array(
711
- 'name' => 'Newsvine'
712
- ),
713
- 'nujij' => array(
714
- 'name' => 'NUjij'
715
- ),
716
  'odnoklassniki' => array(
717
  'name' => 'Odnoklassniki'
718
  ),
719
- 'oknotizie' => array(
720
- 'name' => 'Oknotizie'
721
- ),
722
  'pocket' => array(
723
  'name' => 'Pocket'
724
  ),
725
  'print' => array(
726
  'name' => 'Print'
727
  ),
728
- 'raise_your_voice' => array(
729
- 'name' => 'Raise Your Voice'
730
- ),
731
  'reddit' => array(
732
  'name' => 'Reddit'
733
  ),
734
- 'segnalo' => array(
735
- 'name' => 'Segnalo'
736
- ),
737
- 'sina' => array(
738
- 'name' => 'Sina'
739
- ),
740
- 'sonico' => array(
741
- 'name' => 'Sonico'
742
- ),
743
- 'startaid' => array(
744
- 'name' => 'Startaid'
745
- ),
746
- 'startlap' => array(
747
- 'name' => 'Startlap'
748
- ),
749
  'stumbleupon' => array(
750
  'name' => 'StumbleUpon'
751
  ),
752
- 'stumpedia' => array(
753
- 'name' => 'Stumpedia'
754
- ),
755
- 'typepad' => array(
756
- 'name' => 'TypePad'
757
- ),
758
  'tumblr' => array(
759
  'name' => 'Tumblr'
760
  ),
761
- 'viadeo' => array(
762
- 'name' => 'Viadeo'
763
- ),
764
- 'virb' => array(
765
- 'name' => 'Virb'
766
- ),
767
  'vkontakte' => array(
768
  'name' => 'Vkontakte'
769
  ),
770
- 'voxopolis' => array(
771
- 'name' => 'VOXopolis'
772
- ),
773
  'whatsapp' => array(
774
  'name' => 'WhatsApp'
775
  ),
776
- 'weheartit' => array(
777
- 'name' => 'We Heart It'
778
- ),
779
- 'wordpress' => array(
780
- 'name' => 'WordPress'
781
- ),
782
- 'xerpi' => array(
783
- 'name' => 'Xerpi'
784
- ),
785
  'xing' => array(
786
  'name' => 'Xing'
787
  ),
788
- 'yammer' => array(
789
- 'name' => 'Yammer'
790
- )
791
  ));
792
 
793
  }
794
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
795
  public static function defaults( $page ){
796
 
797
  if( $page == 'buttons' ){
@@ -888,6 +721,24 @@ class WPSR_Lists{
888
  );
889
  }
890
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
891
  if( $page == 'gsettings_sharethis' ){
892
  return array(
893
  'st_pub_key' => ''
503
  'fbsend' => array(
504
  'name' => 'Facebook Send'
505
  ),
 
 
 
 
 
 
 
 
 
 
 
 
506
  'plusone' => array(
507
  'name' => 'Google +1'
508
  ),
536
  'googleplus' => array(
537
  'name' => 'Google +'
538
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
539
  'blogger' => array(
540
  'name' => 'Blogger'
541
  ),
 
 
 
542
  'buffer' => array(
543
  'name' => 'Buffer'
544
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
545
  'delicious' => array(
546
  'name' => 'Delicious'
547
  ),
548
  'digg' => array(
549
  'name' => 'Digg'
550
  ),
 
 
 
 
 
 
 
 
 
 
 
 
551
  'evernote' => array(
552
  'name' => 'Evernote'
553
  ),
 
 
 
 
 
 
554
  'flipboard' => array(
555
  'name' => 'Flipboard'
556
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
557
  'google' => array(
558
  'name' => 'Google'
559
  ),
560
  'google_bmarks' => array(
561
  'name' => 'Bookmarks'
562
  ),
 
 
 
 
 
 
 
 
 
563
  'instapaper' => array(
564
  'name' => 'Instapaper'
565
  ),
 
 
 
 
 
 
 
 
 
 
 
 
566
  'livejournal' => array(
567
  'name' => 'LiveJournal'
568
  ),
572
  'meneame' => array(
573
  'name' => 'Meneame'
574
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
575
  'odnoklassniki' => array(
576
  'name' => 'Odnoklassniki'
577
  ),
 
 
 
578
  'pocket' => array(
579
  'name' => 'Pocket'
580
  ),
581
  'print' => array(
582
  'name' => 'Print'
583
  ),
 
 
 
584
  'reddit' => array(
585
  'name' => 'Reddit'
586
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
587
  'stumbleupon' => array(
588
  'name' => 'StumbleUpon'
589
  ),
 
 
 
 
 
 
590
  'tumblr' => array(
591
  'name' => 'Tumblr'
592
  ),
 
 
 
 
 
 
593
  'vkontakte' => array(
594
  'name' => 'Vkontakte'
595
  ),
 
 
 
596
  'whatsapp' => array(
597
  'name' => 'WhatsApp'
598
  ),
 
 
 
 
 
 
 
 
 
599
  'xing' => array(
600
  'name' => 'Xing'
601
  ),
 
 
 
602
  ));
603
 
604
  }
605
 
606
+ public static function lang_codes( $for = '' ){
607
+
608
+ if( $for == 'google_plus' ){
609
+ return apply_filters( 'wpsr_mod_googleplus_lang', array(
610
+ 'af' => 'Afrikaans', 'am' => 'Amharic', 'ar' => 'Arabic', 'eu' => 'Basque', 'bn' => 'Bengali', 'bg' => 'Bulgarian', 'ca' => 'Catalan', 'zh-HK' => 'Chinese (Hong Kong)', 'zh-CN' => 'Chinese (Simplified)', 'zh-TW' => 'Chinese (Traditional)', 'hr' => 'Croatian', 'cs' => 'Czech', 'da' => 'Danish', 'nl' => 'Dutch', 'en-GB' => 'English (UK)', 'en-US' => 'English (US)', 'et' => 'Estonian', 'fil' => 'Filipino', 'fi' => 'Finnish', 'fr' => 'French', 'fr-CA' => 'French (Canadian)', '' => '', 'gl' => 'Galician', 'de' => 'German', 'el' => 'Greek', 'gu' => 'Gujarati', 'iw' => 'Hebrew', 'hi' => 'Hindi', 'hu' => 'Hungarian', 'is' => 'Icelandic', 'id' => 'Indonesian', 'it' => 'Italian', 'ja' => 'Japanese', 'kn' => 'Kannada', 'ko' => 'Korean', 'lv' => 'Latvian', 'lt' => 'Lithuanian', 'ms' => 'Malay', 'ml' => 'Malayalam', 'mr' => 'Marathi', 'no' => 'Norwegian', 'fa' => 'Persian', 'pl' => 'Polish', '' => '', 'pt-BR' => 'Portuguese (Brazil)', 'pt-PT' => 'Portuguese (Portugal)', 'ro' => 'Romanian', 'ru' => 'Russian', 'sr' => 'Serbian', 'sk' => 'Slovak', 'sl' => 'Slovenian', 'es' => 'Spanish', 'es-419' => 'Spanish (Latin America)', 'sw' => 'Swahili', 'sv' => 'Swedish', 'ta' => 'Tamil', 'te' => 'Telugu', 'th' => 'Thai', 'tr' => 'Turkish', 'uk' => 'Ukrainian', 'ur' => 'Urdu', 'vi' => 'Vietnamese', 'zu' => 'Zulu'
611
+ ));
612
+ }
613
+
614
+ if( $for == 'facebook' ){
615
+ return apply_filters( 'wpsr_mod_facebook_lang', array(
616
+ 'af_ZA' => 'Afrikaans', 'ak_GH' => 'Akan', 'am_ET' => 'Amharic', 'ar_AR' => 'Arabic', 'as_IN' => 'Assamese', 'ay_BO' => 'Aymara', 'az_AZ' => 'Azerbaijani', 'be_BY' => 'Belarusian', 'bg_BG' => 'Bulgarian', 'bn_IN' => 'Bengali', 'bp_IN' => 'Bhojpuri', 'br_FR' => 'Breton', 'bs_BA' => 'Bosnian', 'ca_ES' => 'Catalan', 'cb_IQ' => 'Sorani Kurdish', 'ck_US' => 'Cherokee', 'co_FR' => 'Corsican', 'cs_CZ' => 'Czech', 'cx_PH' => 'Cebuano', 'cy_GB' => 'Welsh', 'da_DK' => 'Danish', 'de_DE' => 'German', 'el_GR' => 'Greek', 'en_GB' => 'English (UK)', 'en_PI' => 'English (Pirate)', 'en_UD' => 'English (Upside Down)', 'en_US' => 'English (US)', 'eo_EO' => 'Esperanto', 'es_ES' => 'Spanish (Spain)', 'es_LA' => 'Spanish', 'es_MX' => 'Spanish (Mexico)', 'et_EE' => 'Estonian', 'eu_ES' => 'Basque', 'fa_IR' => 'Persian', 'fb_LT' => 'Leet Speak', 'ff_NG' => 'Fula', 'fi_FI' => 'Finnish', 'fo_FO' => 'Faroese', 'fr_CA' => 'French (Canada)', 'fr_FR' => 'French (France)', 'fy_NL' => 'Frisian', 'ga_IE' => 'Irish', 'gl_ES' => 'Galician', 'gn_PY' => 'Guarani', 'gu_IN' => 'Gujarati', 'gx_GR' => 'Classical Greek', 'ha_NG' => 'Hausa', 'he_IL' => 'Hebrew', 'hi_IN' => 'Hindi', 'hr_HR' => 'Croatian', 'ht_HT' => 'Haitian Creole', 'hu_HU' => 'Hungarian', 'hy_AM' => 'Armenian', 'id_ID' => 'Indonesian', 'ig_NG' => 'Igbo', 'is_IS' => 'Icelandic', 'it_IT' => 'Italian', 'ja_JP' => 'Japanese', 'ja_KS' => 'Japanese (Kansai)', 'jv_ID' => 'Javanese', 'ka_GE' => 'Georgian', 'kk_KZ' => 'Kazakh', 'km_KH' => 'Khmer', 'kn_IN' => 'Kannada', 'ko_KR' => 'Korean', 'ks_IN' => 'Kashmiri', 'ku_TR' => 'Kurdish (Kurmanji)', 'ky_KG' => 'Kyrgyz', 'la_VA' => 'Latin', 'lg_UG' => 'Ganda', 'li_NL' => 'Limburgish', 'ln_CD' => 'Lingala', 'lo_LA' => 'Lao', 'lt_LT' => 'Lithuanian', 'lv_LV' => 'Latvian', 'mg_MG' => 'Malagasy', 'mi_NZ' => 'Māori', 'mk_MK' => 'Macedonian', 'ml_IN' => 'Malayalam', 'mn_MN' => 'Mongolian', 'mr_IN' => 'Marathi', 'ms_MY' => 'Malay', 'mt_MT' => 'Maltese', 'my_MM' => 'Burmese', 'nb_NO' => 'Norwegian (bokmal)', 'nd_ZW' => 'Northern Ndebele', 'ne_NP' => 'Nepali', 'nl_BE' => 'Dutch (België)', 'nl_NL' => 'Dutch', 'nn_NO' => 'Norwegian (nynorsk)', 'nr_ZA' => 'Southern Ndebele', 'ns_ZA' => 'Northern Sotho', 'ny_MW' => 'Chewa', 'or_IN' => 'Oriya', 'pa_IN' => 'Punjabi', 'pl_PL' => 'Polish', 'ps_AF' => 'Pashto', 'pt_BR' => 'Portuguese (Brazil)', 'pt_PT' => 'Portuguese (Portugal)', 'qc_GT' => 'Quiché', 'qu_PE' => 'Quechua', 'qz_MM' => 'Burmese (Zawgyi)', 'rm_CH' => 'Romansh', 'ro_RO' => 'Romanian', 'ru_RU' => 'Russian', 'rw_RW' => 'Kinyarwanda', 'sa_IN' => 'Sanskrit', 'sc_IT' => 'Sardinian', 'se_NO' => 'Northern Sámi', 'si_LK' => 'Sinhala', 'sk_SK' => 'Slovak', 'sl_SI' => 'Slovenian', 'sn_ZW' => 'Shona', 'so_SO' => 'Somali', 'sq_AL' => 'Albanian', 'sr_RS' => 'Serbian', 'ss_SZ' => 'Swazi', 'st_ZA' => 'Southern Sotho', 'sv_SE' => 'Swedish', 'sw_KE' => 'Swahili', 'sy_SY' => 'Syriac', 'sz_PL' => 'Silesian', 'ta_IN' => 'Tamil', 'te_IN' => 'Telugu', 'tg_TJ' => 'Tajik', 'th_TH' => 'Thai', 'tk_TM' => 'Turkmen', 'tl_PH' => 'Filipino', 'tl_ST' => 'Klingon', 'tn_BW' => 'Tswana', 'tr_TR' => 'Turkish', 'ts_ZA' => 'Tsonga', 'tt_RU' => 'Tatar', 'tz_MA' => 'Tamazight', 'uk_UA' => 'Ukrainian', 'ur_PK' => 'Urdu', 'uz_UZ' => 'Uzbek', 've_ZA' => 'Venda', 'vi_VN' => 'Vietnamese', 'wo_SN' => 'Wolof', 'xh_ZA' => 'Xhosa', 'yi_DE' => 'Yiddish', 'yo_NG' => 'Yoruba', 'zh_CN' => 'Simplified Chinese (China)', 'zh_HK' => 'Traditional Chinese (Hong Kong)', 'zh_TW' => 'Traditional Chinese (Taiwan)', 'zu_ZA' => 'Zulu', 'zz_TR' => 'Zazaki'
617
+ ));
618
+ }
619
+
620
+ if( $for == 'linkedin' ){
621
+ return apply_filters( 'wpsr_mod_linkedin_lang', array(
622
+ 'en_US' => 'English', 'ar_AE' => 'Arabic', 'zh_CN' => 'Chinese - Simplified', 'zh_TW' => 'Chinese - Traditional ', 'cs_CZ' => 'Czech', 'da_DK' => 'Danish', 'nl_NL' => 'Dutch', 'fr_FR' => 'French', 'de_DE' => 'German', 'in_ID' => 'Indonesian', 'it_IT' => 'Italian', 'ja_JP' => 'Japanese', 'ko_KR' => 'Korean', 'ms_MY' => 'Malay', 'no_NO' => 'Norwegian', 'pl_PL' => 'Polish', 'pt_BR' => 'Portuguese', 'ro_RO' => 'Romanian', 'ru_RU' => 'Russian', 'es_ES' => 'Spanish', 'sv_SE' => 'Swedish', 'tl_PH' => 'Tagalog', 'th_TH' => 'Thai', 'tr_TR' => 'Turkish'
623
+ ));
624
+ }
625
+
626
+ }
627
+
628
  public static function defaults( $page ){
629
 
630
  if( $page == 'buttons' ){
721
  );
722
  }
723
 
724
+ if( $page == 'gsettings_facebook' ){
725
+ return array(
726
+ 'facebook_lang' => 'en_US'
727
+ );
728
+ }
729
+
730
+ if( $page == 'gsettings_googleplus' ){
731
+ return array(
732
+ 'googleplus_lang' => 'en-US'
733
+ );
734
+ }
735
+
736
+ if( $page == 'gsettings_linkedin' ){
737
+ return array(
738
+ 'linkedin_lang' => 'en_US'
739
+ );
740
+ }
741
+
742
  if( $page == 'gsettings_sharethis' ){
743
  return array(
744
  'st_pub_key' => ''
core/location_rules.php CHANGED
@@ -308,6 +308,11 @@ class WPSR_Location_Rules{
308
  else return $rule;
309
  }
310
 
 
 
 
 
 
311
 
312
  public static function rule_is_single( $mode, $ids = '' ){
313
 
@@ -325,7 +330,7 @@ class WPSR_Location_Rules{
325
  }
326
 
327
  }elseif( $mode == 2 ){ // Rule check
328
- return is_single( $ids );
329
  }
330
 
331
  }
@@ -349,7 +354,7 @@ class WPSR_Location_Rules{
349
  return $list;
350
 
351
  }elseif( $mode == 2 ){ // Rule check
352
- return is_page( $ids );
353
  }
354
 
355
  }
@@ -361,7 +366,10 @@ class WPSR_Location_Rules{
361
  return get_post_types( array( 'public' => true ) );
362
 
363
  }elseif( $mode == 2 ){ // Rule check
364
- return is_page( $ids );
 
 
 
365
  }
366
 
367
  }
@@ -392,7 +400,7 @@ class WPSR_Location_Rules{
392
  }
393
 
394
  }elseif( $mode == 2 ){ // Rule check
395
- return is_category( $ids );
396
  }
397
 
398
  }
@@ -415,7 +423,7 @@ class WPSR_Location_Rules{
415
  }
416
 
417
  }elseif( $mode == 2 ){ // Rule check
418
- return is_tag( $ids );
419
  }
420
 
421
  }
@@ -446,7 +454,7 @@ class WPSR_Location_Rules{
446
  }
447
 
448
  }elseif( $mode == 2 ){ // Rule check
449
- return has_category( $ids );
450
  }
451
 
452
  }
@@ -468,7 +476,7 @@ class WPSR_Location_Rules{
468
  }
469
 
470
  }elseif( $mode == 2 ){ // Rule check
471
- return has_tag( $ids );
472
  }
473
 
474
  }
308
  else return $rule;
309
  }
310
 
311
+ public static function array_it( $ids ){
312
+
313
+ return array_filter( array_map( 'trim', explode( ',', $ids ) ) );
314
+
315
+ }
316
 
317
  public static function rule_is_single( $mode, $ids = '' ){
318
 
330
  }
331
 
332
  }elseif( $mode == 2 ){ // Rule check
333
+ return is_single( self::array_it( $ids ) );
334
  }
335
 
336
  }
354
  return $list;
355
 
356
  }elseif( $mode == 2 ){ // Rule check
357
+ return is_page( self::array_it( $ids ) );
358
  }
359
 
360
  }
366
  return get_post_types( array( 'public' => true ) );
367
 
368
  }elseif( $mode == 2 ){ // Rule check
369
+
370
+ $post_types = self::array_it( $ids );
371
+ return in_array( get_post_type(), $post_types );
372
+
373
  }
374
 
375
  }
400
  }
401
 
402
  }elseif( $mode == 2 ){ // Rule check
403
+ return is_category( self::array_it( $ids ) );
404
  }
405
 
406
  }
423
  }
424
 
425
  }elseif( $mode == 2 ){ // Rule check
426
+ return is_tag( self::array_it( $ids ) );
427
  }
428
 
429
  }
454
  }
455
 
456
  }elseif( $mode == 2 ){ // Rule check
457
+ return has_category( self::array_it( $ids ) );
458
  }
459
 
460
  }
476
  }
477
 
478
  }elseif( $mode == 2 ){ // Rule check
479
+ return has_tag( self::array_it( $ids ) );
480
  }
481
 
482
  }
core/templates.php CHANGED
@@ -364,7 +364,7 @@ class WPSR_Template_Followbar{
364
 
365
  if( $floating ){
366
  $title = ( $opts[ 'title' ] != '' ) ? '<div class="sr-fb-title">' . $opts[ 'title' ] . '</div>' : '';
367
- $orientation = ( $opts[ 'orientation' ] == 'horizontal' ) ? 'sr-fb-hl' : '';
368
  $fb_classes = array( 'wpsr-followbar', 'sr-fb-' . $opts[ 'position' ], $orientation );
369
  $html = '<div class="' . esc_attr( join( ' ', $fb_classes ) ) . '">' . $title . $html . '</div>';
370
  }
364
 
365
  if( $floating ){
366
  $title = ( $opts[ 'title' ] != '' ) ? '<div class="sr-fb-title">' . $opts[ 'title' ] . '</div>' : '';
367
+ $orientation = ( $opts[ 'orientation' ] == 'horizontal' ) ? 'sr-fb-hl' : 'sr-fb-vl';
368
  $fb_classes = array( 'wpsr-followbar', 'sr-fb-' . $opts[ 'position' ], $orientation );
369
  $html = '<div class="' . esc_attr( join( ' ', $fb_classes ) ) . '">' . $title . $html . '</div>';
370
  }
public/css/wp-socializer.css CHANGED
@@ -227,6 +227,14 @@
227
  top: 50%;
228
  margin: 0;
229
  }
 
 
 
 
 
 
 
 
230
 
231
  .wpsr-text-sb{
232
  background: #fff;
227
  top: 50%;
228
  margin: 0;
229
  }
230
+ .wpsr-followbar.sr-fb-vl{
231
+ text-align: center;
232
+ line-height: 1.5;
233
+ }
234
+ .wpsr-followbar.sr-fb-vl .sr-fb-title{
235
+ width: 5em;
236
+ text-align: center;
237
+ }
238
 
239
  .wpsr-text-sb{
240
  background: #fff;
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-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:9999}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:9999;width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-btn{margin-bottom:0.5em;display:inline-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-icon{display:inline-block;background:url( 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAYAAADaInAlAAAFXUlEQVR4Xu2aTcgVVRzG3/tqYVlhaGlWZOFCEhQNF/bluxHETasgwkVEUAqiVkpJBJktQjdBmxZt2oQgfmItXPj2BRF9G7QoKKFUSBfhRvq4r7/ncuYy73Bnzn/uPf/xhXcOPMzcOeee5//8zzPnzjlzO2NtmdUZ6Mxq9a34sdYAs9wErQFaA7hkYCW9vgk2hN4nOb4GfnZhK3Q6NTU1kL/T6TTC34TGVBweM8A6gjsD5heCvBIM8V2q4Af1w+CvA2cY7Gn8XLvCtQ3Ald9Tm0ffHgb4hkDXlgT7JdfXewjJ+mSgK/kxgCf/vcRxAlz11lli/j6/VWdqAywlsD8jA3wn9X95mIDBN/GTHA/+NWg6Be4K2lLntjJlaF8DTqGtx8/RxG9qVGOwdOfrDqwqD1D5W40+zU1JgImf3KTm30yQh8AtuWBT57Y0D+jeDA6hq8/ftAEWE91LYGshCcWgL3FhCfjfPKqGhojv8XPcmk9C8avUX6J+CUjJ/wI874I5Bb5GDICmgfxNGeAeRO8Bz4GbDGO1kzbvGNqZmiC+Nj+JScWvAX4b7C4J1tUAaK/kT2EAOXoFEJGWT/m75n4+vwKeATfmEvAZ5/vBI+BVcEOo+4fjW2CfaWRphMBp/Pm7lrqh+OnDzB+Jcx71H4AnK9q5GQD9Uf5RDbAFYQeApmuVi+BF8C3YC54Gc3PiT4eB/zR3TdPywxpL8AUwP3ghcAs4oOla/XF+kfNSfupPU78f9PnDz0KfP+GD30JCOg5k8qriYgB0mfhHMcBTqPqwRFmX6+O5upNh4L+KJMNcjUAzP21PhoFPxh8JdDn1HwMdYyW5AdBr5h/WAAr6HNB6sqzIBEfCwP8Qy0Kdev2ugXMEX8lPmyNh4JPyR2LV/oHW+IuMmpIaAM3rwQl0m/iHNcAyxMWWSBO0+cSYhFrNEGjiR5wLfyTY89Rna3yLrqQG6Ha757M1vol8yH2A++j89wjBE+FOsMRRqw0GMPGjTXdi0+UPCO+uQZrUAOSmFv+wM4D0/QJiv3Ha69cT9WSNhJiaItTMj8jk/BVBPkSddvr0cGspqQ1Qi38UA2hXSw93+Yc9CdYy8F+gJUhWtOzTWz+tApIU7WrV5UdsMv6IiGXBBA8axCY1gPjCT6RMGOUfxQDi2gQOAr1WVTkLtNP3E9DGx/Pg5lwS9JJHRvgod03TpZZKWgZ+Di4YktZrgtBN4CAievycn+U8yk+bPj/fmcZPnZk/EucC6o+CiUi75AYIuViAtqPoqeQf1QCZtuyJU1u4+aIXOhqQbSC///01n7URpCfml0G2Pfof59o1038CzAWhPX7ETOPneo+f4zbqzPy0rcVfEag2v94H2i8pKy4GCCaI8qcyQGywtCmxC2wHt8UaU6/ZQzNLkhI2RXZx3I5gEz/tkvEjQrNemancDJAlD92l/E0ZIItF0+KOgNsrRvcydXqISvkyRj8RJn7aXSYxi0FK/mfR8x7I74wqBe4GCLPBQP6mDZCN+WpOvo/c3p6vg038JCe211F3htrIFw4XZsFGDBBMsBFzH87PgtfLANoo0YZJVbmDyuIzRd2ED2xPEkz8xWeKJORjY6voR0/oekPZ2AyQxY72VUB/COnxXy8DiFv78vpf4KCil0KPJkp4mQkq+UmMJ79WHseA/hL2mKfOQX2Hlc8xjlfHx8dN/B7TlP6VMwluLQT5N58fBz96Jgbxa8EkAz2Qn+uu/J7aPPr2MIDi1P8I3gATQC+PtHP4OvjVQ0SxTwzQ5+e8y6D3+Dk2wt+ExlQcXgZIFV/bj3MGWgM4J3imd98aYKaPkHN8rQGcEzzTu78GECWwMOl+C0QAAAAASUVORK5CYII=' ) no-repeat;width:32px;height:32px;overflow:hidden;transform:scale( 0.5 );background-position-x:-64px}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-sq{padding:10px;text-align:center;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-ns{text-align:center;border:1px solid transparent}.wpsr-sb-wocbtn .wpsr-icon{background-position-x:-96px}.wpsr-sharebar::-webkit-scrollbar{width:5px;height:5px}.wpsr-sharebar::-webkit-scrollbar-thumb{background:#999;border-radius:10px}.wpsr-sb-close{position:absolute;cursor:pointer}.wpsr-sb-vl .wpsr-sb-close{bottom:-36px;transform:translateX(-50%);left:50%}.wpsr-sb-hl .wpsr-sb-close{right:-36px;transform:translateY(-50%);top:50%}.wpsr-sb-hide{width:48px;height:48px;border-radius:50%}.wpsr-sb-hide .wpsr-sb-inner{display:none}.wpsr-sb-hide .wpsr-icon{background-position-x:0}.wpsr-sb-hide.wpsr-sb-wocbtn .wpsr-icon{background-position-x:-32px}.wpsr-sb-hide .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;padding-top:8px}.wpsr-counter{line-height:2em;text-align:center}.wpsr-counter .scount{font-size:2em;font-weight:bold}.wpsr-counter .stext{display:block;line-height:1em;color:#888}.socializer span.sr-cicon a{background:none;border:none}.wpsr-followbar{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:10px;left:10px}.sr-fb-tm{top:10px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:10px;right:10px}.sr-fb-rm{top:50%;right:10px;transform:translateY( -50% )}.sr-fb-br{bottom:10px;right:10px}.sr-fb-bm{bottom:10px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:10px;left:10px}.sr-fb-lm{left:10px;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-text-sb{background:#fff;margin:0;padding:0 10px;border-radius:5px;display:inline-block;position:absolute;transform:translate( -50%,-150% );margin-top:-10px;transition:margin-top 0.5s;display:none;animation:wpsr-fadeout 1s;box-shadow:0 3px 6px -3px #000;background-image:linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0))}.wpsr-text-sb:before{position:absolute;content:'';display:block;background-color:inherit;width:10px;height:10px;bottom:-5px;transform:rotate(45deg) translateX(-50%);left:50%;z-index:-1;transform-origin:left;box-shadow:2px 2px 4px -2px #000}.wpsr-text-sb li{list-style:none;float:left;line-height:0}.wpsr-text-sb li a{text-align:center;display:inline-block}.wpsr-text-sb li a:hover{background-image:linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0))}.wpsr-tsb-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.wpsr-tsb-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.wpsr-tsb-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.wpsr-text-sb.wpsr-tsb-active{margin-top:0;transition:margin-top 0.5s;display:block;animation:wpsr-fadein 1s}.wpsr-mobile-sb{position:fixed;bottom:0;left:0;right:0;line-height:0;background:#fff;box-shadow:0 3px 5px 3px #000;transition:margin 1s ease-out;margin-bottom:0}.wpsr-mobile-sb.wpsr-msb-hide{transition:margin 2s ease-out;margin-bottom:-68px}.wpsr-clearfix:after{display:block;clear:both;content:''}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}.wpsr-btn .fb_iframe_widget{margin-bottom:0}@media only screen and (max-width:800px){.wpsr-sb-hl{bottom:0!important;top:auto!important;left:-1px!important;right:-1px!important;border-radius:0;overflow:auto;transform:none;padding-left:70px}.wpsr-sb-hl .wpsr-sb-inner{width:2000px}.wpsr-sb-hl .wpsr-sb-close{display:block;position:absolute;left:0;top:0;bottom:0;width:50px;border-right:1px solid #ccc;transform:none}.wpsr-sb-hl .wpsr-icon{position:absolute;top:50%;left:50%;margin:-16px}.wpsr-sb-vl{bottom:0!important;top:0!important;left:-1px!important;right:auto!important;margin-left:0!important;border-radius:0;overflow:auto;transform:none;padding-top:70px}.wpsr-sb-vl .wpsr-sb-inner{height:2000px}.wpsr-sb-vl .wpsr-sb-close{display:block;position:absolute;left:0!important;top:0;right:0;border-bottom:1px solid #ccc;margin:0!important;transform:none;height:50px}.wpsr-sb-vl .wpsr-icon{position:absolute;top:50%;left:50%;margin:-16px}.wpsr-sb-hide{width:50px;height:50px;padding:0;overflow:hidden;border-radius:0;opacity:0.4}.wpsr-sb-hide:hover{opacity:1}.wpsr-sb-hl.wpsr-sb-hide .wpsr-sb-close{top:0;right:0}}
1
+ .wp-socializer:after{clear:both;content:'';display:block}.wpsr-buttons{display:block;margin:0 0 1.5em 0}.wpsr-buttons .wpsr-btn{float:left;margin:0 1em 0 0;padding:0;line-height:0;display:inline-block}.wpsr-sharebar{transition:all 0.5s;box-sizing:border-box;z-index:9999}.wpsr-sb-inner:after{content:'';display:block;clear:both}.wpsr-sb-vl{z-index:9999;width:82px;top:50%;transform:translateY(-50%);position:fixed}.wpsr-sb-vl .wpsr-btn{margin-bottom:0.5em;display:inline-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-icon{display:inline-block;background:url( 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAIAAAAAgCAYAAADaInAlAAAFXUlEQVR4Xu2aTcgVVRzG3/tqYVlhaGlWZOFCEhQNF/bluxHETasgwkVEUAqiVkpJBJktQjdBmxZt2oQgfmItXPj2BRF9G7QoKKFUSBfhRvq4r7/ncuYy73Bnzn/uPf/xhXcOPMzcOeee5//8zzPnzjlzO2NtmdUZ6Mxq9a34sdYAs9wErQFaA7hkYCW9vgk2hN4nOb4GfnZhK3Q6NTU1kL/T6TTC34TGVBweM8A6gjsD5heCvBIM8V2q4Af1w+CvA2cY7Gn8XLvCtQ3Ald9Tm0ffHgb4hkDXlgT7JdfXewjJ+mSgK/kxgCf/vcRxAlz11lli/j6/VWdqAywlsD8jA3wn9X95mIDBN/GTHA/+NWg6Be4K2lLntjJlaF8DTqGtx8/RxG9qVGOwdOfrDqwqD1D5W40+zU1JgImf3KTm30yQh8AtuWBT57Y0D+jeDA6hq8/ftAEWE91LYGshCcWgL3FhCfjfPKqGhojv8XPcmk9C8avUX6J+CUjJ/wI874I5Bb5GDICmgfxNGeAeRO8Bz4GbDGO1kzbvGNqZmiC+Nj+JScWvAX4b7C4J1tUAaK/kT2EAOXoFEJGWT/m75n4+vwKeATfmEvAZ5/vBI+BVcEOo+4fjW2CfaWRphMBp/Pm7lrqh+OnDzB+Jcx71H4AnK9q5GQD9Uf5RDbAFYQeApmuVi+BF8C3YC54Gc3PiT4eB/zR3TdPywxpL8AUwP3ghcAs4oOla/XF+kfNSfupPU78f9PnDz0KfP+GD30JCOg5k8qriYgB0mfhHMcBTqPqwRFmX6+O5upNh4L+KJMNcjUAzP21PhoFPxh8JdDn1HwMdYyW5AdBr5h/WAAr6HNB6sqzIBEfCwP8Qy0Kdev2ugXMEX8lPmyNh4JPyR2LV/oHW+IuMmpIaAM3rwQl0m/iHNcAyxMWWSBO0+cSYhFrNEGjiR5wLfyTY89Rna3yLrqQG6Ha757M1vol8yH2A++j89wjBE+FOsMRRqw0GMPGjTXdi0+UPCO+uQZrUAOSmFv+wM4D0/QJiv3Ha69cT9WSNhJiaItTMj8jk/BVBPkSddvr0cGspqQ1Qi38UA2hXSw93+Yc9CdYy8F+gJUhWtOzTWz+tApIU7WrV5UdsMv6IiGXBBA8axCY1gPjCT6RMGOUfxQDi2gQOAr1WVTkLtNP3E9DGx/Pg5lwS9JJHRvgod03TpZZKWgZ+Di4YktZrgtBN4CAievycn+U8yk+bPj/fmcZPnZk/EucC6o+CiUi75AYIuViAtqPoqeQf1QCZtuyJU1u4+aIXOhqQbSC///01n7URpCfml0G2Pfof59o1038CzAWhPX7ETOPneo+f4zbqzPy0rcVfEag2v94H2i8pKy4GCCaI8qcyQGywtCmxC2wHt8UaU6/ZQzNLkhI2RXZx3I5gEz/tkvEjQrNemancDJAlD92l/E0ZIItF0+KOgNsrRvcydXqISvkyRj8RJn7aXSYxi0FK/mfR8x7I74wqBe4GCLPBQP6mDZCN+WpOvo/c3p6vg038JCe211F3htrIFw4XZsFGDBBMsBFzH87PgtfLANoo0YZJVbmDyuIzRd2ED2xPEkz8xWeKJORjY6voR0/oekPZ2AyQxY72VUB/COnxXy8DiFv78vpf4KCil0KPJkp4mQkq+UmMJ79WHseA/hL2mKfOQX2Hlc8xjlfHx8dN/B7TlP6VMwluLQT5N58fBz96Jgbxa8EkAz2Qn+uu/J7aPPr2MIDi1P8I3gATQC+PtHP4OvjVQ0SxTwzQ5+e8y6D3+Dk2wt+ExlQcXgZIFV/bj3MGWgM4J3imd98aYKaPkHN8rQGcEzzTu78GECWwMOl+C0QAAAAASUVORK5CYII=' ) no-repeat;width:32px;height:32px;overflow:hidden;transform:scale( 0.5 );background-position-x:-64px}.wpsr-sb-simple{padding:10px;text-align:center;border-radius:10px;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-sq{padding:10px;text-align:center;box-shadow:0 0 5px 0 rgba(0,0,0,0.2);border:1px solid transparent}.wpsr-sb-simple-ns{text-align:center;border:1px solid transparent}.wpsr-sb-wocbtn .wpsr-icon{background-position-x:-96px}.wpsr-sharebar::-webkit-scrollbar{width:5px;height:5px}.wpsr-sharebar::-webkit-scrollbar-thumb{background:#999;border-radius:10px}.wpsr-sb-close{position:absolute;cursor:pointer}.wpsr-sb-vl .wpsr-sb-close{bottom:-36px;transform:translateX(-50%);left:50%}.wpsr-sb-hl .wpsr-sb-close{right:-36px;transform:translateY(-50%);top:50%}.wpsr-sb-hide{width:48px;height:48px;border-radius:50%}.wpsr-sb-hide .wpsr-sb-inner{display:none}.wpsr-sb-hide .wpsr-icon{background-position-x:0}.wpsr-sb-hide.wpsr-sb-wocbtn .wpsr-icon{background-position-x:-32px}.wpsr-sb-hide .wpsr-sb-close{top:0;margin-top:0;transform:none;right:0;left:0;bottom:0;padding-top:8px}.wpsr-counter{line-height:2em;text-align:center}.wpsr-counter .scount{font-size:2em;font-weight:bold}.wpsr-counter .stext{display:block;line-height:1em;color:#888}.socializer span.sr-cicon a{background:none;border:none}.wpsr-followbar{position:fixed;z-index:999999;line-height:0}.sr-fb-tl{top:10px;left:10px}.sr-fb-tm{top:10px;left:50%;transform:translateX( -50% )}.sr-fb-tr{top:10px;right:10px}.sr-fb-rm{top:50%;right:10px;transform:translateY( -50% )}.sr-fb-br{bottom:10px;right:10px}.sr-fb-bm{bottom:10px;left:50%;transform:translateX( -50% )}.sr-fb-bl{bottom:10px;left:10px}.sr-fb-lm{left:10px;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.5}.wpsr-followbar.sr-fb-vl .sr-fb-title{width:5em;text-align:center}.wpsr-text-sb{background:#fff;margin:0;padding:0 10px;border-radius:5px;display:inline-block;position:absolute;transform:translate( -50%,-150% );margin-top:-10px;transition:margin-top 0.5s;display:none;animation:wpsr-fadeout 1s;box-shadow:0 3px 6px -3px #000;background-image:linear-gradient(rgba(0,0,0,0.1),rgba(0,0,0,0))}.wpsr-text-sb:before{position:absolute;content:'';display:block;background-color:inherit;width:10px;height:10px;bottom:-5px;transform:rotate(45deg) translateX(-50%);left:50%;z-index:-1;transform-origin:left;box-shadow:2px 2px 4px -2px #000}.wpsr-text-sb li{list-style:none;float:left;line-height:0}.wpsr-text-sb li a{text-align:center;display:inline-block}.wpsr-text-sb li a:hover{background-image:linear-gradient(rgba(0,0,0,0.4),rgba(0,0,0,0))}.wpsr-tsb-32px a{width:32px;height:32px;line-height:32px;font-size:16px}.wpsr-tsb-48px a{width:48px;height:48px;line-height:48px;font-size:24px}.wpsr-tsb-64px a{width:64px;height:64px;line-height:64px;font-size:32px}.wpsr-text-sb.wpsr-tsb-active{margin-top:0;transition:margin-top 0.5s;display:block;animation:wpsr-fadein 1s}.wpsr-mobile-sb{position:fixed;bottom:0;left:0;right:0;line-height:0;background:#fff;box-shadow:0 3px 5px 3px #000;transition:margin 1s ease-out;margin-bottom:0}.wpsr-mobile-sb.wpsr-msb-hide{transition:margin 2s ease-out;margin-bottom:-68px}.wpsr-clearfix:after{display:block;clear:both;content:''}@keyframes wpsr-fadein{0%{opacity:0}100%{opacity:1}}@keyframes wpsr-fadeout{0%{opacity:1}100%{opacity:0}}.wpsr-btn .fb_iframe_widget{margin-bottom:0}@media only screen and (max-width:800px){.wpsr-sb-hl{bottom:0!important;top:auto!important;left:-1px!important;right:-1px!important;border-radius:0;overflow:auto;transform:none;padding-left:70px}.wpsr-sb-hl .wpsr-sb-inner{width:2000px}.wpsr-sb-hl .wpsr-sb-close{display:block;position:absolute;left:0;top:0;bottom:0;width:50px;border-right:1px solid #ccc;transform:none}.wpsr-sb-hl .wpsr-icon{position:absolute;top:50%;left:50%;margin:-16px}.wpsr-sb-vl{bottom:0!important;top:0!important;left:-1px!important;right:auto!important;margin-left:0!important;border-radius:0;overflow:auto;transform:none;padding-top:70px}.wpsr-sb-vl .wpsr-sb-inner{height:2000px}.wpsr-sb-vl .wpsr-sb-close{display:block;position:absolute;left:0!important;top:0;right:0;border-bottom:1px solid #ccc;margin:0!important;transform:none;height:50px}.wpsr-sb-vl .wpsr-icon{position:absolute;top:50%;left:50%;margin:-16px}.wpsr-sb-hide{width:50px;height:50px;padding:0;overflow:hidden;border-radius:0;opacity:0.4}.wpsr-sb-hide:hover{opacity:1}.wpsr-sb-hl.wpsr-sb-hide .wpsr-sb-close{top:0;right:0}}
public/js/wp-socializer.js CHANGED
@@ -16,7 +16,7 @@ window.wpsr_helpers = {
16
  popup: function( url, target, w, h ){
17
  var left = ( screen.width/2 )-( w/2 );
18
  var top = ( screen.height/2 )-( h/2 );
19
- return window.open( url, target, 'toolbar=no,location=no,menubar=no,width='+w+',height='+h+',top='+top+',left='+left );
20
  }
21
 
22
  };
16
  popup: function( url, target, w, h ){
17
  var left = ( screen.width/2 )-( w/2 );
18
  var top = ( screen.height/2 )-( h/2 );
19
+ return window.open( url, target, 'toolbar=no,location=no,menubar=no,scrollbars=yes,width='+w+',height='+h+',top='+top+',left='+left );
20
  }
21
 
22
  };
public/js/wp-socializer.min.js CHANGED
@@ -1,6 +1,6 @@
1
  function socializer_addbookmark(t){var e=navigator.userAgent.toLowerCase(),s=e.indexOf("mac")!=-1,r=""
2
  t.preventDefault(),r=(s?"Command/Cmd":"CTRL")+" + D",alert("Press "+r+" to bookmark this page")}function socializer_shortlink(t,e){t.preventDefault(),link=e.getAttribute("href"),"#"!=link&&prompt("Short link",link)}window.wpsr_helpers={addClass:function(t,e){t.classList?t.classList.add(e):t.className+=" "+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},popup:function(t,e,s,r){var n=screen.width/2-s/2,o=screen.height/2-r/2
3
- return window.open(t,e,"toolbar=no,location=no,menubar=no,width="+s+",height="+r+",top="+o+",left="+n)}},document.addEventListener("DOMContentLoaded",function(){for(scr_links=document.querySelectorAll(".socializer.sr-popup a"),p=0;p<scr_links.length;p++){var t=scr_links[p]
4
  t.addEventListener("click",function(t){var e=this.getAttribute("href")
5
  "#"==e||this.hasAttribute("onclick")||wpsr_helpers.popup(e,"_blank",800,500),t.preventDefault()})}if(the_sb=document.querySelector(".wpsr-sharebar"),the_sb){var e=function(){vlsb=document.querySelector(".wpsr-sb-vl-scontent"),vlsb&&(stick=vlsb.getAttribute("data-stickto"),stick_ele=document.querySelector(stick),stick_ele&&(vlsb.style.left=stick_ele.offsetLeft+"px")),the_sb&&window.innerWidth<=800&&wpsr_helpers.addClass(the_sb,"wpsr-sb-hide")}
6
  e(),window.addEventListener("resize",e),sb_close_btn=the_sb.querySelector(".wpsr-sb-close"),sb_close_btn.addEventListener("click",function(){the_sb.classList.contains("wpsr-sb-hide")?wpsr_helpers.removeClass(the_sb,"wpsr-sb-hide"):wpsr_helpers.addClass(the_sb,"wpsr-sb-hide")})}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0}
1
  function socializer_addbookmark(t){var e=navigator.userAgent.toLowerCase(),s=e.indexOf("mac")!=-1,r=""
2
  t.preventDefault(),r=(s?"Command/Cmd":"CTRL")+" + D",alert("Press "+r+" to bookmark this page")}function socializer_shortlink(t,e){t.preventDefault(),link=e.getAttribute("href"),"#"!=link&&prompt("Short link",link)}window.wpsr_helpers={addClass:function(t,e){t.classList?t.classList.add(e):t.className+=" "+e},removeClass:function(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},popup:function(t,e,s,r){var n=screen.width/2-s/2,o=screen.height/2-r/2
3
+ return window.open(t,e,"toolbar=no,location=no,menubar=no,scrollbars=yes,width="+s+",height="+r+",top="+o+",left="+n)}},document.addEventListener("DOMContentLoaded",function(){for(scr_links=document.querySelectorAll(".socializer.sr-popup a"),p=0;p<scr_links.length;p++){var t=scr_links[p]
4
  t.addEventListener("click",function(t){var e=this.getAttribute("href")
5
  "#"==e||this.hasAttribute("onclick")||wpsr_helpers.popup(e,"_blank",800,500),t.preventDefault()})}if(the_sb=document.querySelector(".wpsr-sharebar"),the_sb){var e=function(){vlsb=document.querySelector(".wpsr-sb-vl-scontent"),vlsb&&(stick=vlsb.getAttribute("data-stickto"),stick_ele=document.querySelector(stick),stick_ele&&(vlsb.style.left=stick_ele.offsetLeft+"px")),the_sb&&window.innerWidth<=800&&wpsr_helpers.addClass(the_sb,"wpsr-sb-hide")}
6
  e(),window.addEventListener("resize",e),sb_close_btn=the_sb.querySelector(".wpsr-sb-close"),sb_close_btn.addEventListener("click",function(){the_sb.classList.contains("wpsr-sb-hide")?wpsr_helpers.removeClass(the_sb,"wpsr-sb-hide"):wpsr_helpers.addClass(the_sb,"wpsr-sb-hide")})}if(tsb=document.querySelector(".wpsr-text-sb"),tsb){window.wpsr_tsb={stext:"",startx:0,starty:0}
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === WP Socializer ===
2
  Contributors: vaakash
3
- Donate link: https://paypal.me/vaakash
4
  Tags: social, share, media, sharing, follow, profile, button, buttons, icons, links, count, counter, bookmark, widget, sidebar, post, posts, page, sharebar, promotion, marketing, plugin, follow buttons, share buttons, floating share buttons, profile buttons, mobile, mobile sharebar, profile icons, social plugins, share bar, social bar, share counter, vertical, horizontal, content, excerpt, description, widgets, shortcode, images, facebook, twitter, google, linkedin, pinterest, pocket, reddit, sharethis, stumbleupon, favorites, addthis, whatsapp, tweet, vkontakte, popup, socializer, messenger, wp socializer, cache, quote
5
  Requires at least: 4.6
6
  Tested up to: 4.7.3
7
- Stable tag: 3.0
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -12,13 +12,13 @@ Add attractive fully customizable social media share buttons, floating sharebar,
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 complete control and customization.
16
 
17
  It powers a drag & drop admin interface to create buttons with customization and options to selectively display buttons in the desired post and pages.
18
 
19
- [youtube https://www.youtube.com/watch?v=50aJq223TB0]
20
-
21
- [Live working Demo of the plugin](http://www.aakashweb.com/demos/wp-socializer/)
22
 
23
  = Native social media buttons =
24
 
@@ -56,16 +56,19 @@ It powers a drag & drop admin interface to create buttons with customization and
56
 
57
  > There is also support for shortcodes with which social media buttons can be placed anywhere in posts and even in themes directly.
58
 
 
 
 
59
 
60
  = More links =
61
 
62
- * [FAQs](https://www.aakashweb.com/docs/wp-socializer-docs/wp-socializer-faq/)
63
- * [Support Forum](https://www.aakashweb.com/forum/)
64
- * [Homepage](https://www.aakashweb.com/wordpress-plugins/wp-socializer/)
65
- * [Donate](https://paypal.me/vaakash)
66
- * [Submit translation](https://www.aakashweb.com/forum/viewforum.php?f=22)
67
- * [YouTube demo videos](https://www.youtube.com/playlist?list=PLNwJ5cB8SX4yzB3XdvvC5SsCJsAZh5SF6)
68
- * [Live Demo](http://www.aakashweb.com/demos/wp-socializer/)
69
 
70
 
71
 
@@ -81,7 +84,7 @@ It powers a drag & drop admin interface to create buttons with customization and
81
 
82
  = Why are the share buttons not aligned properly ? =
83
 
84
- 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://www.aakashweb.com/docs/wp-socializer-docs/wp-socializer-faq/#css-classes) for the list of CSS classes used by plugin to modify it or else please post your issue in the [support forum](https://www.aakashweb.com/forum/) I'll try my best to give a quick CSS fix for the misalignment.
85
 
86
  = Share buttons are not displayed in the page ! =
87
 
@@ -99,7 +102,7 @@ Please select "Hide in all pages" option under "conditions to display the templa
99
 
100
  Custom share buttons can be added using the "Custom HTML" service. Paste your button generation script in the text box and use that custom HTML button in the template.
101
 
102
- Please refer [this page](https://www.aakashweb.com/docs/wp-socializer-docs/wp-socializer-faq/) for the full list of FAQs.
103
 
104
 
105
 
@@ -122,14 +125,23 @@ Please refer [this page](https://www.aakashweb.com/docs/wp-socializer-docs/wp-so
122
 
123
  == Changelog ==
124
 
 
 
 
 
 
 
 
 
 
125
  = 3.0 =
126
- * Plugin completely re-written from scratch
127
- * New administration interface
128
- * Support for modern buttons, icons
129
 
130
 
131
 
132
  == Upgrade Notice ==
133
 
134
  WP Socializer v3 is re-written from scratch with attractive lot more features.Please upgrade to the latest version ( 3.0+ ) to experience all the new features.
135
- Please watch [this video](https://www.youtube.com/playlist?list=PLNwJ5cB8SX4yzB3XdvvC5SsCJsAZh5SF6) for more details.
1
  === WP Socializer ===
2
  Contributors: vaakash
3
+ Donate link: https://goo.gl/qMF3iE
4
  Tags: social, share, media, sharing, follow, profile, button, buttons, icons, links, count, counter, bookmark, widget, sidebar, post, posts, page, sharebar, promotion, marketing, plugin, follow buttons, share buttons, floating share buttons, profile buttons, mobile, mobile sharebar, profile icons, social plugins, share bar, social bar, share counter, vertical, horizontal, content, excerpt, description, widgets, shortcode, images, facebook, twitter, google, linkedin, pinterest, pocket, reddit, sharethis, stumbleupon, favorites, addthis, whatsapp, tweet, vkontakte, popup, socializer, messenger, wp socializer, cache, quote
5
  Requires at least: 4.6
6
  Tested up to: 4.7.3
7
+ Stable tag: 3.1
8
  License: GPLv2 or later
9
  License URI: https://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ [youtube https://www.youtube.com/watch?v=50aJq223TB0]
16
+
17
  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.
18
 
19
  It powers a drag & drop admin interface to create buttons with customization and options to selectively display buttons in the desired post and pages.
20
 
21
+ [Live working Demo of the plugin](https://goo.gl/i2ZqUL)
 
 
22
 
23
  = Native social media buttons =
24
 
56
 
57
  > There is also support for shortcodes with which social media buttons can be placed anywhere in posts and even in themes directly.
58
 
59
+ = Add social buttons in themes easily =
60
+
61
+ > Social buttons can be placed directly in themes easily. Please refer the youtube playlist below to check out how it can be done.
62
 
63
  = More links =
64
 
65
+ * [FAQs](https://goo.gl/Ge7riC)
66
+ * [Support Forum](https://goo.gl/BXkcjA)
67
+ * [Homepage](https://goo.gl/u8Zf09)
68
+ * [Donate](https://goo.gl/qMF3iE)
69
+ * [Submit translation](https://goo.gl/BXkcjA)
70
+ * [YouTube demo videos](https://goo.gl/4jZJji)
71
+ * [Live Demo](https://goo.gl/i2ZqUL)
72
 
73
 
74
 
84
 
85
  = Why are the share buttons not aligned properly ? =
86
 
87
+ 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](https://goo.gl/BXkcjA) I'll try my best to give a quick CSS fix for the misalignment.
88
 
89
  = Share buttons are not displayed in the page ! =
90
 
102
 
103
  Custom share buttons can be added using the "Custom HTML" service. Paste your button generation script in the text box and use that custom HTML button in the template.
104
 
105
+ Please refer [this page](https://goo.gl/Ge7riC) for the full list of FAQs.
106
 
107
 
108
 
125
 
126
  == Changelog ==
127
 
128
+ = 3.1 =
129
+ * New: Import/export settings feature.
130
+ * New: Language can now be selected for Facebook, Google plus and LinkedIn buttons.
131
+ * Fix: Conditional display feature was not working in some cases.
132
+ * Fix: Scrollbars weren't displayed in popup window issue.
133
+ * Fix: Enqueue script warning messages.
134
+ * Fix: Deprecated buttons are removed in Sharethis service.
135
+ * Fix: Follow bar aligment issue.
136
+
137
  = 3.0 =
138
+ * New: Plugin completely re-written from scratch
139
+ * New: administration interface
140
+ * New: Support for modern buttons, icons
141
 
142
 
143
 
144
  == Upgrade Notice ==
145
 
146
  WP Socializer v3 is re-written from scratch with attractive lot more features.Please upgrade to the latest version ( 3.0+ ) to experience all the new features.
147
+ Please watch [this video](https://goo.gl/4jZJji) for more details.
services/facebook.php CHANGED
@@ -63,6 +63,9 @@ class wpsr_service_facebook{
63
 
64
  function includes(){
65
 
 
 
 
66
  $includes = array(
67
  'facebook_main_js' => array(
68
  'type' => 'js',
@@ -71,7 +74,7 @@ class wpsr_service_facebook{
71
  var js, fjs = d.getElementsByTagName(s)[0];
72
  if (d.getElementById(id)) return;
73
  js = d.createElement(s); js.id = id;
74
- js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
75
  fjs.parentNode.insertBefore(js, fjs);
76
  }(document, "script", "facebook-jssdk"));</script>'
77
  )
@@ -185,7 +188,18 @@ class wpsr_service_facebook{
185
  }
186
 
187
  function general_settings( $values ){
 
 
 
 
 
 
 
 
 
 
188
 
 
189
 
190
  }
191
 
63
 
64
  function includes(){
65
 
66
+ $gs = wp_parse_args( get_option( 'wpsr_general_settings' ), WPSR_Lists::defaults( 'gsettings_facebook' ) );
67
+ $lang_code = $gs[ 'facebook_lang' ];
68
+
69
  $includes = array(
70
  'facebook_main_js' => array(
71
  'type' => 'js',
74
  var js, fjs = d.getElementsByTagName(s)[0];
75
  if (d.getElementById(id)) return;
76
  js = d.createElement(s); js.id = id;
77
+ js.src = "//connect.facebook.net/' . $lang_code . '/sdk.js#xfbml=1&version=v2.8";
78
  fjs.parentNode.insertBefore(js, fjs);
79
  }(document, "script", "facebook-jssdk"));</script>'
80
  )
188
  }
189
 
190
  function general_settings( $values ){
191
+
192
+ $values = wp_parse_args( $values, WPSR_Lists::defaults( 'gsettings_facebook' ) );
193
+
194
+ $section1 = array(
195
+ array( __( 'Facebook SDK language', 'wpsr' ), WPSR_Admin::field( 'select', array(
196
+ 'name' => 'facebook_lang',
197
+ 'value' => $values['facebook_lang'],
198
+ 'list' => WPSR_Lists::lang_codes( 'facebook' )
199
+ ))),
200
+ );
201
 
202
+ WPSR_Admin::build_table( $section1, 'Facebook settings');
203
 
204
  }
205
 
services/google_plus.php CHANGED
@@ -47,10 +47,18 @@ class wpsr_service_google_plus{
47
 
48
  function includes(){
49
 
 
 
 
 
 
 
 
 
50
  $includes = array(
51
  'google_plus_main_js' => array(
52
  'type' => 'js',
53
- 'code' => '<script src="https://apis.google.com/js/platform.js" async defer></script>'
54
  )
55
  );
56
 
@@ -108,7 +116,19 @@ class wpsr_service_google_plus{
108
  }
109
 
110
  function general_settings( $values ){
111
-
 
 
 
 
 
 
 
 
 
 
 
 
112
  }
113
 
114
  function general_settings_validation( $values ){
47
 
48
  function includes(){
49
 
50
+ $gs = wp_parse_args( get_option( 'wpsr_general_settings' ), WPSR_Lists::defaults( 'gsettings_googleplus' ) );
51
+ $lang_code = $gs[ 'googleplus_lang' ];
52
+
53
+ $lang_var = '';
54
+ if( $lang_code != 'en-US' ){
55
+ $lang_var = '{lang: "' . $lang_code . '"}';
56
+ }
57
+
58
  $includes = array(
59
  'google_plus_main_js' => array(
60
  'type' => 'js',
61
+ 'code' => '<script src="https://apis.google.com/js/platform.js" async defer>' . $lang_var . '</script>'
62
  )
63
  );
64
 
116
  }
117
 
118
  function general_settings( $values ){
119
+
120
+ $values = wp_parse_args( $values, WPSR_Lists::defaults( 'gsettings_googleplus' ) );
121
+
122
+ $section1 = array(
123
+ array( __( 'Google Plus language', 'wpsr' ), WPSR_Admin::field( 'select', array(
124
+ 'name' => 'googleplus_lang',
125
+ 'value' => $values['googleplus_lang'],
126
+ 'list' => WPSR_Lists::lang_codes( 'google_plus' )
127
+ ))),
128
+ );
129
+
130
+ WPSR_Admin::build_table( $section1, 'Google Plus settings');
131
+
132
  }
133
 
134
  function general_settings_validation( $values ){
services/linkedin.php CHANGED
@@ -42,10 +42,13 @@ class wpsr_service_linkedin{
42
 
43
  function includes(){
44
 
 
 
 
45
  $includes = array(
46
  'linkedin_main_js' => array(
47
  'type' => 'js',
48
- 'code' => '<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>'
49
  )
50
  );
51
 
@@ -81,7 +84,19 @@ class wpsr_service_linkedin{
81
 
82
 
83
  function general_settings( $values ){
84
-
 
 
 
 
 
 
 
 
 
 
 
 
85
  }
86
 
87
  function general_settings_validation( $values ){
42
 
43
  function includes(){
44
 
45
+ $gs = wp_parse_args( get_option( 'wpsr_general_settings' ), WPSR_Lists::defaults( 'gsettings_linkedin' ) );
46
+ $lang_code = $gs[ 'linkedin_lang' ];
47
+
48
  $includes = array(
49
  'linkedin_main_js' => array(
50
  'type' => 'js',
51
+ 'code' => '<script src="//platform.linkedin.com/in.js" type="text/javascript">lang: ' . $lang_code . '</script>'
52
  )
53
  );
54
 
84
 
85
 
86
  function general_settings( $values ){
87
+
88
+ $values = wp_parse_args( $values, WPSR_Lists::defaults( 'gsettings_linkedin' ) );
89
+
90
+ $section1 = array(
91
+ array( __( 'LinkedIn language', 'wpsr' ), WPSR_Admin::field( 'select', array(
92
+ 'name' => 'linkedin_lang',
93
+ 'value' => $values['linkedin_lang'],
94
+ 'list' => WPSR_Lists::lang_codes( 'linkedin' )
95
+ ))),
96
+ );
97
+
98
+ WPSR_Admin::build_table( $section1, 'LinkedIn settings');
99
+
100
  }
101
 
102
  function general_settings_validation( $values ){
services/sharethis.php CHANGED
@@ -45,7 +45,9 @@ class wpsr_service_sharethis{
45
  }
46
 
47
  foreach( $saved as $site ){
48
- $html .= '<span class="st_' . $site . $type . '" displayText="' . esc_attr( $this->sites[ $site ][ 'name' ] ) . '" st_url="' . esc_attr( $page_info[ 'url' ] ) . '" st_title="' . esc_attr( $page_info[ 'title' ] ) . '"></span>';
 
 
49
  }
50
 
51
  $out['html'] = $html;
45
  }
46
 
47
  foreach( $saved as $site ){
48
+ if( array_key_exists( $site, $this->sites ) ){
49
+ $html .= '<span class="st_' . $site . $type . '" displayText="' . esc_attr( $this->sites[ $site ][ 'name' ] ) . '" st_url="' . esc_attr( $page_info[ 'url' ] ) . '" st_title="' . esc_attr( $page_info[ 'title' ] ) . '"></span>';
50
+ }
51
  }
52
 
53
  $out['html'] = $html;
wpsr.php CHANGED
@@ -3,20 +3,20 @@
3
  * Plugin Name: WP Socializer
4
  * Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
  * Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
6
- * Version: 3.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', '3.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' ) );
17
  define( 'WPSR_BASE_NAME', plugin_basename( __FILE__ ) );
18
 
19
- # error_reporting(E_ALL);
20
 
21
  final class WP_Socializer{
22
 
@@ -41,6 +41,7 @@ final class WP_Socializer{
41
  include_once( WPSR_PATH . 'core/includes.php' );
42
  include_once( WPSR_PATH . 'core/share_counter.php' );
43
  include_once( WPSR_PATH . 'core/widgets.php' );
 
44
 
45
  // Services
46
  include_once( WPSR_PATH . 'services/twitter.php' );
@@ -64,6 +65,7 @@ final class WP_Socializer{
64
  include_once( WPSR_PATH . 'admin/text_sharebar.php' );
65
  include_once( WPSR_PATH . 'admin/mobile_sharebar.php' );
66
  include_once( WPSR_PATH . 'admin/general_settings.php' );
 
67
  include_once( WPSR_PATH . 'admin/help.php' );
68
 
69
  }
3
  * Plugin Name: WP Socializer
4
  * Plugin URI: https://www.aakashweb.com/wordpress-plugins/wp-socializer/
5
  * Description: WP Socializer is an all in one complete social media plugin to add native social media buttons, icons, floating sharebar, follow us buttons, profile icons, mobile sharebar and selected text share popups easily with complete control and customization.
6
+ * Version: 3.1
7
  * Author: Aakash Chakravarthy
8
  * Author URI: https://www.aakashweb.com
9
  * Text Domain: wpsr
10
  * Domain Path: /languages
11
  */
12
 
13
+ define( 'WPSR_VERSION', '3.1' );
14
  define( 'WPSR_PATH', plugin_dir_path( __FILE__ ) ); // All have trailing slash
15
  define( 'WPSR_URL', plugin_dir_url( __FILE__ ) );
16
  define( 'WPSR_ADMIN_URL', trailingslashit( plugin_dir_url( __FILE__ ) . 'admin' ) );
17
  define( 'WPSR_BASE_NAME', plugin_basename( __FILE__ ) );
18
 
19
+ //error_reporting(E_ALL);
20
 
21
  final class WP_Socializer{
22
 
41
  include_once( WPSR_PATH . 'core/includes.php' );
42
  include_once( WPSR_PATH . 'core/share_counter.php' );
43
  include_once( WPSR_PATH . 'core/widgets.php' );
44
+ include_once( WPSR_PATH . 'core/import_export.php' );
45
 
46
  // Services
47
  include_once( WPSR_PATH . 'services/twitter.php' );
65
  include_once( WPSR_PATH . 'admin/text_sharebar.php' );
66
  include_once( WPSR_PATH . 'admin/mobile_sharebar.php' );
67
  include_once( WPSR_PATH . 'admin/general_settings.php' );
68
+ include_once( WPSR_PATH . 'admin/import_export.php' );
69
  include_once( WPSR_PATH . 'admin/help.php' );
70
 
71
  }