Custom Share Buttons with Floating Sidebar - Version 3.8

Version Description

  • Tested with latest wordpress version 5.3
    • Added Skype button
Download this release

Release Info

Developer india-web-developer
Plugin Icon 128x128 Custom Share Buttons with Floating Sidebar
Version 3.8
Comparing to
See all releases

Code changes from version 3.7 to 3.8

csbwfs-class.php CHANGED
@@ -4,8 +4,6 @@
4
  * @get_csbwf_sidebar_options()
5
  * @get_csbwf_sidebar_content()
6
  * */
7
- ?>
8
- <?php
9
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
10
  // get all options value for "Custom Share Buttons with Floating Sidebar"
11
  function get_csbwf_sidebar_options() {
@@ -412,9 +410,9 @@ $floatingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwf
412
  $floatingSidebarContent .='</a></div></div>';
413
  endif;
414
 
415
- /** Stumbleupon */
416
  if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
417
- $floatingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-st" class="csbwfs-st"><a onclick="window.open(\'//www.stumbleupon.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" '.$stImgbg.' title="'.$stImgAlt.'">';
418
  if($stImg!='')
419
  {
420
  $floatingSidebarContent .='<img src="'.$stImg.'" alt="'.$stImgAlt.'" width="35" height="35" >';
@@ -434,6 +432,12 @@ $floatingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwf
434
  }
435
  $floatingSidebarContent .='</a></div></div>';
436
  endif;
 
 
 
 
 
 
437
  /** Mail*/
438
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
439
  $floatingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-ml" class="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'" '.$mImgbg.' >';
@@ -675,9 +679,9 @@ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="re-p" class="csb
675
  }
676
  $shareButtonContent .='</a></div></div>';
677
  endif;
678
- /* Stumbleupon */
679
  if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
680
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="st-p" class="csbwfs-st"><a onclick="window.open(\'//www.stumbleupon.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" title="'.$stImgAlt.'" '.$stImgbg.'>';
681
  if($stImg!='')
682
  {
683
  $shareButtonContent .='<img src="'.$stImg.'" alt="'.$stImgAlt.'" width="35" height="35" >';
@@ -697,6 +701,12 @@ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="yt-p" class="csb
697
  }
698
  $shareButtonContent .='</a></div></div>';
699
  endif;
 
 
 
 
 
 
700
  /* Email */
701
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
702
  $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p" class="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'" '.$mImgbg.'>';
@@ -748,4 +758,3 @@ global $post;
748
  }
749
  return $finalContent;
750
  }
751
- ?>
4
  * @get_csbwf_sidebar_options()
5
  * @get_csbwf_sidebar_content()
6
  * */
 
 
7
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
8
  // get all options value for "Custom Share Buttons with Floating Sidebar"
9
  function get_csbwf_sidebar_options() {
410
  $floatingSidebarContent .='</a></div></div>';
411
  endif;
412
 
413
+ /** Stumbleupon/Mix */
414
  if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
415
+ $floatingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-st" class="csbwfs-st"><a onclick="window.open(\'//mix.com/mixit?su=submit&url='.$shareurl.'\',\'Mix\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" '.$stImgbg.' title="'.$stImgAlt.'">';
416
  if($stImg!='')
417
  {
418
  $floatingSidebarContent .='<img src="'.$stImg.'" alt="'.$stImgAlt.'" width="35" height="35" >';
432
  }
433
  $floatingSidebarContent .='</a></div></div>';
434
  endif;
435
+ /** Skype */
436
+ if((isset($pluginOptionsVal['csbwfs_skpublishBtn']) && $pluginOptionsVal['csbwfs_skpublishBtn']!='') && (isset($pluginOptionsVal['csbwfs_skPath']) && $pluginOptionsVal['csbwfs_skPath']!='')):
437
+ $floatingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-sk" class="csbwfs-sk"><a href="skype:'.$pluginOptionsVal['csbwfs_skPath'].'" >';
438
+ $floatingSidebarContent .='<i class="csbwfs_skype"></i>';
439
+ $floatingSidebarContent .='</a></div></div>';
440
+ endif;
441
  /** Mail*/
442
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
443
  $floatingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-ml" class="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'" '.$mImgbg.' >';
679
  }
680
  $shareButtonContent .='</a></div></div>';
681
  endif;
682
+ /* Stumbleupon/Mix */
683
  if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
684
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="st-p" class="csbwfs-st"><a onclick="window.open(\'//mix.com/mixit?su=submit&url='.$shareurl.'\',\'Mix\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" title="'.$stImgAlt.'" '.$stImgbg.'>';
685
  if($stImg!='')
686
  {
687
  $shareButtonContent .='<img src="'.$stImg.'" alt="'.$stImgAlt.'" width="35" height="35" >';
701
  }
702
  $shareButtonContent .='</a></div></div>';
703
  endif;
704
+ /** Skype */
705
+ if((isset($pluginOptionsVal['csbwfs_skpublishBtn']) && $pluginOptionsVal['csbwfs_skpublishBtn']!='') && (isset($pluginOptionsVal['csbwfs_skPath']) && $pluginOptionsVal['csbwfs_skPath']!='')):
706
+ $shareButtonContent .='<div class="csbwfs-sbutton-post"><div id="sk-p" class="csbwfs-sk"><a href="skype:'.$pluginOptionsVal['csbwfs_skPath'].'" >';
707
+ $shareButtonContent .='<i class="csbwfs_skype"></i>';
708
+ $shareButtonContent .='</a></div></div>';
709
+ endif;
710
  /* Email */
711
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
712
  $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p" class="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'" '.$mImgbg.'>';
758
  }
759
  return $finalContent;
760
  }
 
css/csbwfs.css CHANGED
@@ -15,7 +15,8 @@
15
  .csbwfs-pin a{background:none repeat scroll 0 0 #ca2027;}
16
  .csbwfs-yt a{background:none repeat scroll 0 0 #d42026;}
17
  .csbwfs-re a{background:none repeat scroll 0 0 #93c3e6;}
18
- .csbwfs-st a{background:none repeat scroll 0 0 #EB4924;}
 
19
  /* Right Position */
20
  #csbwfs-right #csbwfs-re,#csbwfs-right #csbwfs-st,#csbwfs-right #csbwfs-yt,#csbwfs-right #csbwfs-ml,#csbwfs-right #csbwfs-pin,#csbwfs-right #csbwfs-gp,#csbwfs-right #csbwfs-tw,#csbwfs-right #csbwfs-fb,#csbwfs-right #csbwfs-li a {position: absolute; right: 0;}
21
  #csbwfs-right a#csbwfs-hide {padding-right:33px;}
@@ -33,7 +34,7 @@ bottom: 0; height: 45px;
33
  #socialButtonOnPage {width:100%;display:inline-block;float:left;position: relative; }
34
  #socialButtonOnPage .csbwfs-sbutton-post img {width:31px; height:30px;opacity:1; padding-top:1%; margin:0 auto; text-align:center;border:none !important;}
35
  #socialButtonOnPage .csbwfs-sbutton-post img:hover{opacity:1;}
36
- #socialButtonOnPage .sharethis-arrow span:hover{cursor:pointer;}
37
  #socialButtonOnPage .sharethis-arrow span{ color: #FFFFFF;display: inline-block;font-size: 16px;font-style: italic; font-weight: bold;}
38
  /* Left Position */
39
  .leftSocialButtonOnPage .csbwfs-sbutton-post {display:inline-block; padding:5px 1px;}
@@ -135,8 +136,9 @@ i.csbwfs_linkedin {background-position: 92% 4%;}
135
  i.csbwfs_pinterest{background-position: 14% 19%;}
136
  i.csbwfs_youtube {background-position: 32% 4%;}
137
  i.csbwfs_reddit {background-position: 26% 19%;}
138
- i.csbwfs_stumbleupon {background-position: 2% 4%;}
139
- i.csbwfs_mail {background-position: 8% 19%;}
 
140
  #socialButtonOnPage i.csbwfs_facebook {background-position: 68% 5%;}
141
  #socialButtonOnPage i.csbwfs_twitter {background-position: 14% 5%;}
142
  #socialButtonOnPage i.csbwfs_plus {background-position: 80% 5%;}
@@ -144,5 +146,6 @@ i.csbwfs_mail {background-position: 8% 19%;}
144
  #socialButtonOnPage i.csbwfs_pinterest{background-position: 14% 20%;}
145
  #socialButtonOnPage i.csbwfs_youtube {background-position: 32% 5%;}
146
  #socialButtonOnPage i.csbwfs_reddit {background-position: 26% 20%;}
147
- #socialButtonOnPage i.csbwfs_stumbleupon {background-position: 2% 5%;}
148
  #socialButtonOnPage i.csbwfs_mail {background-position: 8% 20%;}
 
15
  .csbwfs-pin a{background:none repeat scroll 0 0 #ca2027;}
16
  .csbwfs-yt a{background:none repeat scroll 0 0 #d42026;}
17
  .csbwfs-re a{background:none repeat scroll 0 0 #93c3e6;}
18
+ .csbwfs-st a{background:none repeat scroll 0 0 #FFF;}
19
+ .csbwfs-sk a{background:none repeat scroll 0 0 #08b0f1;}
20
  /* Right Position */
21
  #csbwfs-right #csbwfs-re,#csbwfs-right #csbwfs-st,#csbwfs-right #csbwfs-yt,#csbwfs-right #csbwfs-ml,#csbwfs-right #csbwfs-pin,#csbwfs-right #csbwfs-gp,#csbwfs-right #csbwfs-tw,#csbwfs-right #csbwfs-fb,#csbwfs-right #csbwfs-li a {position: absolute; right: 0;}
22
  #csbwfs-right a#csbwfs-hide {padding-right:33px;}
34
  #socialButtonOnPage {width:100%;display:inline-block;float:left;position: relative; }
35
  #socialButtonOnPage .csbwfs-sbutton-post img {width:31px; height:30px;opacity:1; padding-top:1%; margin:0 auto; text-align:center;border:none !important;}
36
  #socialButtonOnPage .csbwfs-sbutton-post img:hover{opacity:1;}
37
+ #socialButtonOnPage .sharethis-arrow span:hover44% 19%{cursor:pointer;}
38
  #socialButtonOnPage .sharethis-arrow span{ color: #FFFFFF;display: inline-block;font-size: 16px;font-style: italic; font-weight: bold;}
39
  /* Left Position */
40
  .leftSocialButtonOnPage .csbwfs-sbutton-post {display:inline-block; padding:5px 1px;}
136
  i.csbwfs_pinterest{background-position: 14% 19%;}
137
  i.csbwfs_youtube {background-position: 32% 4%;}
138
  i.csbwfs_reddit {background-position: 26% 19%;}
139
+ i.csbwfs_stumbleupon {background-position: 44% 19%;}
140
+ i.csbwfs_skype {background-position: 38% 20%;}
141
+ i.csbwfs_mail {background-position: 9% 19%;}
142
  #socialButtonOnPage i.csbwfs_facebook {background-position: 68% 5%;}
143
  #socialButtonOnPage i.csbwfs_twitter {background-position: 14% 5%;}
144
  #socialButtonOnPage i.csbwfs_plus {background-position: 80% 5%;}
146
  #socialButtonOnPage i.csbwfs_pinterest{background-position: 14% 20%;}
147
  #socialButtonOnPage i.csbwfs_youtube {background-position: 32% 5%;}
148
  #socialButtonOnPage i.csbwfs_reddit {background-position: 26% 20%;}
149
+ #socialButtonOnPage i.csbwfs_stumbleupon {background-position: 44% 19%;}
150
  #socialButtonOnPage i.csbwfs_mail {background-position: 8% 20%;}
151
+ #socialButtonOnPage i.csbwfs_skype {background-position: 38% 20%;}
custom-share-buttons-with-floating-sidebar.php CHANGED
@@ -5,10 +5,10 @@ Plugin URI: http://www.mrwebsolution.in/
5
  Description: Share buttons with extra features to sharing your website posts/pages on Facebook, Twitter, Instagram, Whatsapp, Pinterest etc.
6
  Author: MR Web Solution
7
  Author URI: http://raghunathgurjar.wordpress.com
8
- Version: 3.7
9
  */
10
 
11
- /* Copyright 2018 custom-share-buttons-with-floating-sidebar (email : raghunath.0087@gmail.com)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License, version 2, as
@@ -23,7 +23,6 @@ Version: 3.7
23
  along with this program; if not, write to the Free Software
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
26
-
27
  //Admin "Custom Share Buttons with Floating Sidebar" Menu Item
28
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
29
  if(!class_exists('Csbwfs_Class'))
@@ -111,6 +110,8 @@ if(!class_exists('Csbwfs_Class'))
111
  register_setting('csbwf_sidebar_options','csbwfs_tpublishBtn');
112
  register_setting('csbwf_sidebar_options','csbwfs_ppublishBtn');
113
  register_setting('csbwf_sidebar_options','csbwfs_ytpublishBtn');
 
 
114
  register_setting('csbwf_sidebar_options','csbwfs_republishBtn');
115
  register_setting('csbwf_sidebar_options','csbwfs_stpublishBtn');
116
  register_setting('csbwf_sidebar_options','csbwfs_ytPath');
@@ -306,4 +307,3 @@ if(class_exists('Csbwfs_Class'))
306
 
307
 
308
  }
309
- ?>
5
  Description: Share buttons with extra features to sharing your website posts/pages on Facebook, Twitter, Instagram, Whatsapp, Pinterest etc.
6
  Author: MR Web Solution
7
  Author URI: http://raghunathgurjar.wordpress.com
8
+ Version: 3.8
9
  */
10
 
11
+ /* Copyright 2018-2019 custom-share-buttons-with-floating-sidebar (email : raghunath.0087@gmail.com)
12
 
13
  This program is free software; you can redistribute it and/or modify
14
  it under the terms of the GNU General Public License, version 2, as
23
  along with this program; if not, write to the Free Software
24
  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
  */
 
26
  //Admin "Custom Share Buttons with Floating Sidebar" Menu Item
27
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
28
  if(!class_exists('Csbwfs_Class'))
110
  register_setting('csbwf_sidebar_options','csbwfs_tpublishBtn');
111
  register_setting('csbwf_sidebar_options','csbwfs_ppublishBtn');
112
  register_setting('csbwf_sidebar_options','csbwfs_ytpublishBtn');
113
+ register_setting('csbwf_sidebar_options','csbwfs_skpublishBtn');
114
+ register_setting('csbwf_sidebar_options','csbwfs_skPath');
115
  register_setting('csbwf_sidebar_options','csbwfs_republishBtn');
116
  register_setting('csbwf_sidebar_options','csbwfs_stpublishBtn');
117
  register_setting('csbwf_sidebar_options','csbwfs_ytPath');
307
 
308
 
309
  }
 
images/minify-social-old.png ADDED
Binary file
images/minify-social.png CHANGED
Binary file
images/raghu.jpg DELETED
Binary file
lib/settings.php CHANGED
@@ -27,12 +27,16 @@
27
  <?php } ?>
28
  <p><input type="checkbox" id="ytBtns" name="csbwfs_ytpublishBtn" value="yes" <?php checked(get_option('csbwfs_ytpublishBtn'),'yes');?>/> <b>Youtube</b></p>
29
  <p id="ytpath"><input type="text" name="csbwfs_ytPath" id="csbwfs_ytPath" value="<?php echo get_option('csbwfs_ytPath');?>" placeholder="http://www.youtube.com" size="40" class="regular-text ltr"><br>add youtube channel url</p>
 
 
30
  <p><label><h3 ><strong><?php _e('Define your custom message:','csbwfs');?></strong></h3></label></p>
31
  <p><label><?php _e('Show:');?></label><input type="text" id="csbwfs_show_btn" name="csbwfs_show_btn" value="<?php echo get_option('csbwfs_show_btn'); ?>" placeholder="Show Buttons" size="40"/></p>
32
  <p><label><?php _e('Hide:');?></label><input type="text" id="csbwfs_hide_btn" name="csbwfs_hide_btn" value="<?php echo get_option('csbwfs_hide_btn'); ?>" placeholder="Hide Buttons" size="40"/></p>
33
  <p><label><?php _e('Message:');?></label><input type="textbox" id="csbwfs_share_msg" name="csbwfs_share_msg" value="<?php echo get_option('csbwfs_share_msg'); ?>" placeholder="Share This With Your Friends" size="40"/></p>
34
  </td>
35
  <td valign="top" style="border-left:1px solid #ccc;padding-left:20px;">
 
 
36
  <p style="font-size:16px;">Watch given below video to view addon features and settings</p>
37
  <iframe width="100%" height="500" src="https://www.youtube.com/embed/QUnxtCe95Ww?rel=0&autoplay=1&start=90" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
38
  <h2><a href="https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/" target="_blank" class="contact-author"><strong>Click Here</strong></a> to download addon.</h2>
27
  <?php } ?>
28
  <p><input type="checkbox" id="ytBtns" name="csbwfs_ytpublishBtn" value="yes" <?php checked(get_option('csbwfs_ytpublishBtn'),'yes');?>/> <b>Youtube</b></p>
29
  <p id="ytpath"><input type="text" name="csbwfs_ytPath" id="csbwfs_ytPath" value="<?php echo get_option('csbwfs_ytPath');?>" placeholder="http://www.youtube.com" size="40" class="regular-text ltr"><br>add youtube channel url</p>
30
+ <p><input type="checkbox" id="skBtns" name="csbwfs_skpublishBtn" value="yes" <?php checked(get_option('csbwfs_skpublishBtn'),'yes');?>/> <b>Skype</b></p>
31
+ <p id="skpath"><input type="text" name="csbwfs_skPath" id="csbwfs_skPath" value="<?php echo get_option('csbwfs_skPath');?>" placeholder="skype_user_id" size="40" class="regular-text ltr"><br>Define skype user id</p>
32
  <p><label><h3 ><strong><?php _e('Define your custom message:','csbwfs');?></strong></h3></label></p>
33
  <p><label><?php _e('Show:');?></label><input type="text" id="csbwfs_show_btn" name="csbwfs_show_btn" value="<?php echo get_option('csbwfs_show_btn'); ?>" placeholder="Show Buttons" size="40"/></p>
34
  <p><label><?php _e('Hide:');?></label><input type="text" id="csbwfs_hide_btn" name="csbwfs_hide_btn" value="<?php echo get_option('csbwfs_hide_btn'); ?>" placeholder="Hide Buttons" size="40"/></p>
35
  <p><label><?php _e('Message:');?></label><input type="textbox" id="csbwfs_share_msg" name="csbwfs_share_msg" value="<?php echo get_option('csbwfs_share_msg'); ?>" placeholder="Share This With Your Friends" size="40"/></p>
36
  </td>
37
  <td valign="top" style="border-left:1px solid #ccc;padding-left:20px;">
38
+ <h2>Shortcode</h2>
39
+ <code>[csbwfs_buttons buttons='fb,tw,li,pi,yt,re,st,ml,sk']</code> <br>(sk-Skype, tw-Twitter, li-Linkedin, pi-Pinterest, yt-Youtube, re-Reddit, st-Stumbleupon/Mix, ml-Mail, sk-Skype)
40
  <p style="font-size:16px;">Watch given below video to view addon features and settings</p>
41
  <iframe width="100%" height="500" src="https://www.youtube.com/embed/QUnxtCe95Ww?rel=0&autoplay=1&start=90" frameborder="0" allow="autoplay; encrypted-media" allowfullscreen></iframe>
42
  <h2><a href="https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/" target="_blank" class="contact-author"><strong>Click Here</strong></a> to download addon.</h2>
lib/shortcode.php CHANGED
@@ -21,11 +21,11 @@ class CsbwfsShortcodeClass {
21
 
22
 
23
  public function csbwfs_shortcode_style_func() {
24
- echo '<style type="text/css">.csbwfs-shortcode a{box-shadow:inherit}.csbwfs-shortcode a i{display:inline-block;position:relative;width:35px;height:36px;background-image:url('.plugin_dir_url( __FILE__ ).'../images/minify-social.png)}.csbwfs-shortcode{display:inline-block;position:relative;width:auto;}i.csbwfs_facebook{background-position:68% 4%}i.csbwfs_twitter{background-position:14% 4%}i.csbwfs_plus{background-position:80% 4%}i.csbwfs_linkedin{background-position:92% 4%}i.csbwfs_pinterest{background-position:14% 19%}i.csbwfs_youtube{background-position:32% 4%}i.csbwfs_reddit{background-position:26% 19%}i.csbwfs_stumbleupon{background-position:2% 4%}i.csbwfs_mail{background-position:8% 19%}</style>';
25
  }
26
 
27
  public static function csbwfs_shortcode_func($atts) {
28
- //[csbwfs_buttons buttons='fb,tw,gp,li,pi,yt,re,st,ml']
29
  $shortcode_html = '';
30
  $btnsordaryy = isset($atts['buttons']) ? explode(',',$atts['buttons']) : array();
31
  $class = isset($atts['class']) ? $atts['class'] : '';
@@ -59,14 +59,18 @@ class CsbwfsShortcodeClass {
59
  $shortcode_html .='<div id="csbwfs-re" class="csbwfs-shortcode"><a onclick="window.open(\'//reddit.com/submit?url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)+\'&jump=close\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);"><i class="csbwfs_reddit"></i></a></div>';
60
  endif;
61
 
62
- /** Stumbleupon */
63
  if($btnsVal=='st'):
64
- $shortcode_html .='<div id="csbwfs-st" class="csbwfs-shortcode"><a onclick="window.open(\'//www.stumbleupon.com/submit?url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)+\'&jump=close\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);"><i class="csbwfs_stumbleupon"></i></a></div>';
65
  endif;
66
  /** YT */
67
  if($btnsVal=='yt'):
68
  $shortcode_html .='<div id="csbwfs-yt" class="csbwfs-shortcode"><a onclick="window.open(\''.get_option('csbwfs_ytPath').'\');" href="javascript:void(0);"><i class="csbwfs_youtube"></i></a></div>';
69
  endif;
 
 
 
 
70
  /** Mail*/
71
  if($btnsVal=='ml'):
72
  $shortcode_html .='<div id="csbwfs-ml" class="csbwfs-shortcode"><a onclick="javascript:window.location=(\'mailto:'.get_bloginfo('admin_email').'\'+\'?subject=\'+encodeURIComponent(document.title)+\'&body=\'+encodeURIComponent(location.href));" href="javascript:void(0);" ><i class="csbwfs_mail"></i></a></div>';
21
 
22
 
23
  public function csbwfs_shortcode_style_func() {
24
+ echo '<style type="text/css">.csbwfs-shortcode a{box-shadow:inherit}.csbwfs-shortcode a i{display:inline-block;position:relative;width:35px;height:36px;background-image:url('.plugin_dir_url( __FILE__ ).'../images/minify-social.png)}.csbwfs-shortcode{display:inline-block;position:relative;width:auto;}.csbwfs-shortcode i.csbwfs_facebook{background-position:68% 4%}.csbwfs-shortcode i.csbwfs_twitter{background-position:14% 4%}.csbwfs-shortcode i.csbwfs_plus{background-position:80% 4%}.csbwfs-shortcode i.csbwfs_linkedin{background-position:92% 4%}.csbwfs-shortcode i.csbwfs_pinterest{background-position:14% 19%}.csbwfs-shortcode i.csbwfs_youtube{background-position:32% 4%}.csbwfs-shortcode i.csbwfs_reddit{background-position:26% 19%}.csbwfs-shortcode i.csbwfs_stumbleupon{background-position:44% 19%}.csbwfs-shortcode i.csbwfs_mail{background-position:8% 19%}.csbwfs-shortcode i.csbwfs_skype {background-position: 38% 19%;}</style>';
25
  }
26
 
27
  public static function csbwfs_shortcode_func($atts) {
28
+ //[csbwfs_buttons buttons='fb,tw,li,pi,yt,re,st,ml']
29
  $shortcode_html = '';
30
  $btnsordaryy = isset($atts['buttons']) ? explode(',',$atts['buttons']) : array();
31
  $class = isset($atts['class']) ? $atts['class'] : '';
59
  $shortcode_html .='<div id="csbwfs-re" class="csbwfs-shortcode"><a onclick="window.open(\'//reddit.com/submit?url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)+\'&jump=close\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);"><i class="csbwfs_reddit"></i></a></div>';
60
  endif;
61
 
62
+ /** Stumbleupon/Mix */
63
  if($btnsVal=='st'):
64
+ $shortcode_html .='<div id="csbwfs-st" class="csbwfs-shortcode"><a onclick="window.open(\'//mix.com/mixit?su=submit&url=\'+encodeURIComponent(location.href)+\'&title=\'+encodeURIComponent(document.title)+\'&jump=close\',\'Mix\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);"><i class="csbwfs_stumbleupon"></i></a></div>';
65
  endif;
66
  /** YT */
67
  if($btnsVal=='yt'):
68
  $shortcode_html .='<div id="csbwfs-yt" class="csbwfs-shortcode"><a onclick="window.open(\''.get_option('csbwfs_ytPath').'\');" href="javascript:void(0);"><i class="csbwfs_youtube"></i></a></div>';
69
  endif;
70
+ /** Skype */
71
+ if($btnsVal=='sk'):
72
+ $shortcode_html .='<div id="csbwfs-sk" class="csbwfs-shortcode"><a href="skype:'.get_option('csbwfs_skPath').'"><i class="csbwfs_skype"></i></a></div>';
73
+ endif;
74
  /** Mail*/
75
  if($btnsVal=='ml'):
76
  $shortcode_html .='<div id="csbwfs-ml" class="csbwfs-shortcode"><a onclick="javascript:window.location=(\'mailto:'.get_bloginfo('admin_email').'\'+\'?subject=\'+encodeURIComponent(document.title)+\'&body=\'+encodeURIComponent(location.href));" href="javascript:void(0);" ><i class="csbwfs_mail"></i></a></div>';
readme.txt CHANGED
@@ -1,10 +1,10 @@
1
  === Custom Share Buttons with Floating Sidebar ===
2
- Contributors:india-web-developer
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
4
- Tags: social share buttons,custom share buttons,facebook, twitter,linkedin,Stumbleupon,Reddit,pinterest,Xing, social share floating sidebar
5
- Requires at least: 4.0
6
- Tested up to: 5.1.1
7
- Stable tag: 3.7
8
 
9
  Share buttons with extra features to sharing your website posts/pages on Facebook, Twitter, Instagram, Whatsapp, Pinterest etc.
10
 
@@ -26,9 +26,9 @@ You can display social share buttons on your website via floating sidebar. Easil
26
 
27
  =Shortcode=
28
 
29
- [csbwfs_buttons buttons='fb,tw,li,pi,yt,re,st,ml']
30
 
31
- fb-facebook,tw-twitter,li-linkedin,pi-pinterest,yt-youtube,re-reddit,st-stumbleupon,ml-mail
32
 
33
 
34
  **[I want upgrade to Pro Version](https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/)**
@@ -165,6 +165,10 @@ Step 3. Go to Settings/"Social Share Buttons(CSBWFS)" and configure the plugin s
165
 
166
  == Changelog ==
167
 
 
 
 
 
168
  = 3.7 =
169
  * Tested with latest wordpress version 5.1.1
170
  * Removed Google+ button
1
  === Custom Share Buttons with Floating Sidebar ===
2
+ Contributors: wpexpertsin, india-web-developer
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
4
+ Tags: social share buttons,custom share buttons,facebook, twitter,linkedin,Stumbleupon/Mix,Reddit,pinterest,Xing, social share floating sidebar
5
+ Requires at least: 5.0
6
+ Tested up to: 5.3
7
+ Stable tag: 3.8
8
 
9
  Share buttons with extra features to sharing your website posts/pages on Facebook, Twitter, Instagram, Whatsapp, Pinterest etc.
10
 
26
 
27
  =Shortcode=
28
 
29
+ [csbwfs_buttons buttons='fb,tw,li,pi,yt,re,st,ml,sk']
30
 
31
+ fb-facebook, tw-twitter, li-linkedin, pi-pinterest, yt-youtube, re-reddit, st-stumbleupon, ml-mail, sk-Skype
32
 
33
 
34
  **[I want upgrade to Pro Version](https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/)**
165
 
166
  == Changelog ==
167
 
168
+ = 3.8 =
169
+ * Tested with latest wordpress version 5.3
170
+ * Added Skype button
171
+
172
  = 3.7 =
173
  * Tested with latest wordpress version 5.1.1
174
  * Removed Google+ button