Custom Share Buttons with Floating Sidebar - Version 3.1

Version Description

  • Tested with latest wordpress version 4.7.3
    • Added an option for define to button background color of social share buttons
    • Fixed show/hide buttons related bug
    • Released new addon verson 3.0
Download this release

Release Info

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

Code changes from version 3.0 to 3.1

csbwfs-class.php CHANGED
@@ -117,17 +117,23 @@ function csbwfsGetCookie(cname) {
117
  }
118
 
119
  function csbwfsCheckCookie() {
 
120
  var button_status=csbwfsGetCookie("csbwfs_show_hide_status");
121
  if (button_status != "") {
122
 
123
  } else {
124
  csbwfsSetCookie("csbwfs_show_hide_status", "active",1);
125
  }
 
 
 
 
126
  }
127
 
128
  </script>';
129
 
130
 
 
131
  }
132
 
133
  if(isset($pluginOptionsVal['csbwfs_buttons_active']) && $pluginOptionsVal['csbwfs_buttons_active']==1){
@@ -631,32 +637,32 @@ $ShareTitle= htmlspecialchars(rawurlencode($ShareTitle));
631
 
632
  //get facebook button image
633
  if($pluginOptionsVal['csbwfs_page_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_page_fb_image'];}
634
- else{$fImg=plugins_url('images/fb.png',__FILE__);}
635
  //get twitter button image
636
  if($pluginOptionsVal['csbwfs_page_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_page_tw_image'];}
637
- else{$tImg=plugins_url('images/tw.png',__FILE__);}
638
  //get Linkedin button image
639
  if($pluginOptionsVal['csbwfs_page_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_page_li_image'];}
640
- else{$lImg=plugins_url('images/in.png',__FILE__);}
641
  //get mail button image
642
  if($pluginOptionsVal['csbwfs_page_mail_image']!=''){ $mImg=$pluginOptionsVal['csbwfs_page_mail_image'];}
643
- else{$mImg=plugins_url('images/ml.png',__FILE__);}
644
  //get google plus button image
645
  if($pluginOptionsVal['csbwfs_page_gp_image']!=''){ $gImg=$pluginOptionsVal['csbwfs_page_gp_image'];}
646
- else{$gImg=plugins_url('images/gp.png',__FILE__);}
647
  //get pinterest button image
648
  if($pluginOptionsVal['csbwfs_page_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_page_pin_image'];}
649
- else{$pImg=plugins_url('images/pinit.png',__FILE__);}
650
 
651
  //get youtube button image
652
  if(isset($pluginOptionsVal['csbwfs_page_yt_image']) && $pluginOptionsVal['csbwfs_page_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_page_yt_image'];}
653
- else{$ytImg=plugins_url('images/youtube.png',__FILE__);}
654
  //get reddit plus button image
655
  if(isset($pluginOptionsVal['csbwfs_page_re_image']) && $pluginOptionsVal['csbwfs_page_re_image']!=''){ $reImg=$pluginOptionsVal['csbwfs_page_re_image'];}
656
- else{$reImg=plugins_url('images/reddit.png',__FILE__);}
657
  //get stumbleupon button image
658
  if(isset($pluginOptionsVal['csbwfs_page_st_image']) && $pluginOptionsVal['csbwfs_page_st_image']!=''){ $stImg=$pluginOptionsVal['csbwfs_page_st_image'];}
659
- else{$stImg=plugins_url('images/stumbleupon.png',__FILE__);}
660
 
661
  /* Get All buttons Image Alt/Title */
662
  //get facebook button image alt/title
@@ -686,6 +692,34 @@ else{$reImgAlt='Share On Reddit';}
686
  //get stumbleupon button image alt/title
687
  if(isset($pluginOptionsVal['csbwfs_page_st_title']) && $pluginOptionsVal['csbwfs_page_st_title']!=''){ $stImgAlt=$pluginOptionsVal['csbwfs_page_st_title'];}
688
  else{$stImgAlt='Share On Stumbleupon';}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
689
 
690
  //get email message
691
  if(is_page() || is_single() || is_category() || is_archive()){
@@ -715,7 +749,7 @@ endif;
715
  /* Facebook*/
716
  if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
717
  $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="fb-p" class="csbwfs-fb"><a href="javascript:" onclick="window.open(\'//www.facebook.com/sharer/sharer.php?u='.$shareurl.'\',\'Facebook\',\'width=800,height=300\');return false;"
718
- target="_blank" title="'.$fImgAlt.'">';
719
  if($fImg!=''){
720
  $shareButtonContent .='<img src="'.$fImg.'" alt="'.$fImgAlt.'" width="35" height="35" >';
721
  }else{
@@ -726,7 +760,7 @@ endif;
726
 
727
  /* Twitter */
728
  if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
729
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="tw-p" class="csbwfs-tw"><a href="javascript:" onclick="window.open(\'//twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'&nbsp;&nbsp;\', \'_blank\', \'width=800,height=300\')" title="'.$tImgAlt.'">';
730
  if($tImg!='')
731
  {
732
  $shareButtonContent .='<img src="'.$tImg.'" alt="'.$tImgAlt.'" width="35" height="35" >';
@@ -738,7 +772,7 @@ endif;
738
 
739
  /* Google Plus */
740
  if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
741
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="gp-p" class="csbwfs-gp"><a href="javascript:" onclick="javascript:window.open(\'//plus.google.com/share?url='.$shareurl.'\',\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" title="'.$gImgAlt.'">';
742
  if($gImg!='')
743
  {
744
  $shareButtonContent .='<img src="'.$gImg.'" alt="'.$gImgAlt.'" width="35" height="35" >';
@@ -750,7 +784,7 @@ endif;
750
 
751
  /* Linkedin */
752
  if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
753
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="li-p" class="csbwfs-li"><a href="javascript:" onclick="javascript:window.open(\'//www.linkedin.com/shareArticle?mini=true&url='.$shareurl.'\',\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" title="'.$lImgAlt.'">';
754
  if($lImg!='')
755
  {
756
  $shareButtonContent .='<img src="'.$lImg.'" alt="'.$lImgAlt.'" width="35" height="35" >';
@@ -762,7 +796,7 @@ endif;
762
 
763
  /* Pinterest */
764
  if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
765
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="pin-p" class="csbwfs-pin"><a onclick="window.open(\'//www.pinterest.com/pin/create/button/?url='.$shareurl.'&amp;media='.$pinShareImg.'&amp;description='.$ShareTitle.':'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=620,height=500\');" href="javascript:void(0);" title="'.$pImgAlt.'">';
766
  if($pImg!='')
767
  {
768
  $shareButtonContent .='<img src="'.$pImg.'" alt="'.$pImgAlt.'" width="35" height="35" >';
@@ -773,7 +807,7 @@ $shareButtonContent .='</a></div></div>';
773
  endif;
774
  /* Reddit */
775
  if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
776
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="re-p" class="csbwfs-re"><a onclick="window.open(\'//reddit.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" title="'.$reImgAlt.'">';
777
  if($reImg!='')
778
  {
779
  $shareButtonContent .='<img src="'.$reImg.'" alt="'.$reImgAlt.'" width="35" height="35" >';
@@ -784,7 +818,7 @@ $shareButtonContent .='</a></div></div>';
784
  endif;
785
  /* Stumbleupon */
786
  if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
787
- $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.'">';
788
  if($stImg!='')
789
  {
790
  $shareButtonContent .='<img src="'.$stImg.'" alt="'.$stImgAlt.'" width="35" height="35" >';
@@ -795,7 +829,7 @@ $shareButtonContent .='</a></div></div>';
795
  endif;
796
  /* Youtube */
797
  if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
798
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="yt-p" class="csbwfs-yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" title="'.$ytImgAlt.'">';
799
  if($ytImg!='')
800
  {
801
  $shareButtonContent .='<img src="'.$ytImg.'" alt="'.$ytImgAlt.'" width="35" height="35" >';
@@ -806,7 +840,7 @@ $shareButtonContent .='</a></div></div>';
806
  endif;
807
  /* Email */
808
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
809
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p" class="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'">';
810
  if($mImg!='')
811
  {
812
  $shareButtonContent .='<img src="'.$mImg.'" alt="'.$mImgAlt.'" width="35" height="35" >';
117
  }
118
 
119
  function csbwfsCheckCookie() {
120
+ var hideshowhide = "'.get_option('csbwfs_rmSHBtn').'"
121
  var button_status=csbwfsGetCookie("csbwfs_show_hide_status");
122
  if (button_status != "") {
123
 
124
  } else {
125
  csbwfsSetCookie("csbwfs_show_hide_status", "active",1);
126
  }
127
+ if(hideshowhide=="yes")
128
+ {
129
+ csbwfsSetCookie("csbwfs_show_hide_status", "active",0);
130
+ }
131
  }
132
 
133
  </script>';
134
 
135
 
136
+
137
  }
138
 
139
  if(isset($pluginOptionsVal['csbwfs_buttons_active']) && $pluginOptionsVal['csbwfs_buttons_active']==1){
637
 
638
  //get facebook button image
639
  if($pluginOptionsVal['csbwfs_page_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_page_fb_image'];}
640
+ else{$fImg='';}
641
  //get twitter button image
642
  if($pluginOptionsVal['csbwfs_page_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_page_tw_image'];}
643
+ else{$tImg='';}
644
  //get Linkedin button image
645
  if($pluginOptionsVal['csbwfs_page_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_page_li_image'];}
646
+ else{$lImg='';}
647
  //get mail button image
648
  if($pluginOptionsVal['csbwfs_page_mail_image']!=''){ $mImg=$pluginOptionsVal['csbwfs_page_mail_image'];}
649
+ else{$mImg='';}
650
  //get google plus button image
651
  if($pluginOptionsVal['csbwfs_page_gp_image']!=''){ $gImg=$pluginOptionsVal['csbwfs_page_gp_image'];}
652
+ else{$gImg='';}
653
  //get pinterest button image
654
  if($pluginOptionsVal['csbwfs_page_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_page_pin_image'];}
655
+ else{$pImg='';}
656
 
657
  //get youtube button image
658
  if(isset($pluginOptionsVal['csbwfs_page_yt_image']) && $pluginOptionsVal['csbwfs_page_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_page_yt_image'];}
659
+ else{$ytImg='';}
660
  //get reddit plus button image
661
  if(isset($pluginOptionsVal['csbwfs_page_re_image']) && $pluginOptionsVal['csbwfs_page_re_image']!=''){ $reImg=$pluginOptionsVal['csbwfs_page_re_image'];}
662
+ else{$reImg='';}
663
  //get stumbleupon button image
664
  if(isset($pluginOptionsVal['csbwfs_page_st_image']) && $pluginOptionsVal['csbwfs_page_st_image']!=''){ $stImg=$pluginOptionsVal['csbwfs_page_st_image'];}
665
+ else{$stImg='';}
666
 
667
  /* Get All buttons Image Alt/Title */
668
  //get facebook button image alt/title
692
  //get stumbleupon button image alt/title
693
  if(isset($pluginOptionsVal['csbwfs_page_st_title']) && $pluginOptionsVal['csbwfs_page_st_title']!=''){ $stImgAlt=$pluginOptionsVal['csbwfs_page_st_title'];}
694
  else{$stImgAlt='Share On Stumbleupon';}
695
+
696
+ /* Get All buttons background color */
697
+ //get facebook button image background color
698
+ if($pluginOptionsVal['csbwfs_page_fb_bg']!=''){ $fImgbg=' style="background:'.$pluginOptionsVal['csbwfs_page_fb_bg'].';"';}
699
+ else{$fImgbg='';}
700
+ //get twitter button image background color
701
+ if($pluginOptionsVal['csbwfs_page_tw_bg']!=''){ $tImgbg=' style="background:'.$pluginOptionsVal['csbwfs_page_tw_bg'].';"';}
702
+ else{$tImgbg='';}
703
+ //get Linkedin button image background color
704
+ if($pluginOptionsVal['csbwfs_page_li_bg']!=''){ $lImgbg=' style="background:'.$pluginOptionsVal['csbwfs_page_li_bg'].';"';}
705
+ else{$lImgbg='';}
706
+ //get mail button image background color
707
+ if($pluginOptionsVal['csbwfs_page_mail_bg']!=''){ $mImgbg=' style="background:'.$pluginOptionsVal['csbwfs_page_mail_bg'].';"';}
708
+ else{$mImgbg='';}
709
+ //get google plus button image background color
710
+ if($pluginOptionsVal['csbwfs_page_gp_bg']!=''){ $gImgbg=' style="background:'.$pluginOptionsVal['csbwfs_page_gp_bg'].';"';}
711
+ else{$gImgbg='';}
712
+ //get pinterest button image background color
713
+ if($pluginOptionsVal['csbwfs_page_pin_bg']!=''){ $pImgbg=' style="background:'.$pluginOptionsVal['csbwfs_page_pin_bg'].';"';}
714
+ else{$pImgbg='';}
715
+
716
+ //get youtube button image background color
717
+ if(isset($pluginOptionsVal['csbwfs_page_yt_bg']) && $pluginOptionsVal['csbwfs_page_yt_bg']!=''){ $ytImgbg=' style="background:'.$pluginOptionsVal['csbwfs_page_yt_bg'].';"';}else{$ytImgbg='';}
718
+ //get reddit button image background color
719
+ if(isset($pluginOptionsVal['csbwfs_page_re_bg']) && $pluginOptionsVal['csbwfs_page_re_bg']!=''){ $reImgbg=' style="background:'.$pluginOptionsVal['csbwfs_page_re_bg'].';"';}else{$reImgbg='';}
720
+ //get stumbleupon button image background color
721
+ if(isset($pluginOptionsVal['csbwfs_page_st_bg']) && $pluginOptionsVal['csbwfs_page_st_bg']!=''){ $stImgbg=' style="background:'.$pluginOptionsVal['csbwfs_page_st_bg'].';"';} else{$stImgbg='';}
722
+
723
 
724
  //get email message
725
  if(is_page() || is_single() || is_category() || is_archive()){
749
  /* Facebook*/
750
  if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
751
  $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="fb-p" class="csbwfs-fb"><a href="javascript:" onclick="window.open(\'//www.facebook.com/sharer/sharer.php?u='.$shareurl.'\',\'Facebook\',\'width=800,height=300\');return false;"
752
+ target="_blank" title="'.$fImgAlt.'" '.$fImgbg.'>';
753
  if($fImg!=''){
754
  $shareButtonContent .='<img src="'.$fImg.'" alt="'.$fImgAlt.'" width="35" height="35" >';
755
  }else{
760
 
761
  /* Twitter */
762
  if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
763
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="tw-p" class="csbwfs-tw"><a href="javascript:" onclick="window.open(\'//twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'&nbsp;&nbsp;\', \'_blank\', \'width=800,height=300\')" title="'.$tImgAlt.'" '.$tImgbg.'>';
764
  if($tImg!='')
765
  {
766
  $shareButtonContent .='<img src="'.$tImg.'" alt="'.$tImgAlt.'" width="35" height="35" >';
772
 
773
  /* Google Plus */
774
  if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
775
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="gp-p" class="csbwfs-gp"><a href="javascript:" onclick="javascript:window.open(\'//plus.google.com/share?url='.$shareurl.'\',\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" title="'.$gImgAlt.'" '.$gImgbg.'>';
776
  if($gImg!='')
777
  {
778
  $shareButtonContent .='<img src="'.$gImg.'" alt="'.$gImgAlt.'" width="35" height="35" >';
784
 
785
  /* Linkedin */
786
  if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
787
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="li-p" class="csbwfs-li"><a href="javascript:" onclick="javascript:window.open(\'//www.linkedin.com/shareArticle?mini=true&url='.$shareurl.'\',\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" title="'.$lImgAlt.'" '.$lImgbg.'>';
788
  if($lImg!='')
789
  {
790
  $shareButtonContent .='<img src="'.$lImg.'" alt="'.$lImgAlt.'" width="35" height="35" >';
796
 
797
  /* Pinterest */
798
  if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
799
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="pin-p" class="csbwfs-pin"><a onclick="window.open(\'//www.pinterest.com/pin/create/button/?url='.$shareurl.'&amp;media='.$pinShareImg.'&amp;description='.$ShareTitle.':'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=620,height=500\');" href="javascript:void(0);" title="'.$pImgAlt.'" '.$pImgbg.'>';
800
  if($pImg!='')
801
  {
802
  $shareButtonContent .='<img src="'.$pImg.'" alt="'.$pImgAlt.'" width="35" height="35" >';
807
  endif;
808
  /* Reddit */
809
  if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
810
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="re-p" class="csbwfs-re"><a onclick="window.open(\'//reddit.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" title="'.$reImgAlt.'" '.$reImgbg.'>';
811
  if($reImg!='')
812
  {
813
  $shareButtonContent .='<img src="'.$reImg.'" alt="'.$reImgAlt.'" width="35" height="35" >';
818
  endif;
819
  /* Stumbleupon */
820
  if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
821
+ $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.'>';
822
  if($stImg!='')
823
  {
824
  $shareButtonContent .='<img src="'.$stImg.'" alt="'.$stImgAlt.'" width="35" height="35" >';
829
  endif;
830
  /* Youtube */
831
  if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
832
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="yt-p" class="csbwfs-yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" title="'.$ytImgAlt.'" '.$ytImgbg.'>';
833
  if($ytImg!='')
834
  {
835
  $shareButtonContent .='<img src="'.$ytImg.'" alt="'.$ytImgAlt.'" width="35" height="35" >';
840
  endif;
841
  /* Email */
842
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
843
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p" class="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'" '.$mImgbg.'>';
844
  if($mImg!='')
845
  {
846
  $shareButtonContent .='<img src="'.$mImg.'" alt="'.$mImgAlt.'" width="35" height="35" >';
css/admin-csbwfs.css CHANGED
File without changes
css/csbwfs.css CHANGED
@@ -49,9 +49,9 @@ bottom: 0; height: 45px;
49
  /** Minify Image CSS */
50
  .csbwfs-sbutton a i ,.csbwfs-sbutton-post a i {
51
  display: inline-block;
52
- height: inherit;
53
  position: relative;
54
- width: 32px;
 
55
  background-image: url("../images/minify-social.png");
56
 
57
  }
49
  /** Minify Image CSS */
50
  .csbwfs-sbutton a i ,.csbwfs-sbutton-post a i {
51
  display: inline-block;
 
52
  position: relative;
53
+ width: 30px;
54
+ height:30px;
55
  background-image: url("../images/minify-social.png");
56
 
57
  }
custom-share-buttons-with-floating-sidebar.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.mrwebsolution.in/
5
  Description: It's a very simple plugin for add to social share buttons on your site and you can publish buttons floating sidebar. Even you can edit share buttons if you wish
6
  Author: MR Web Solution
7
  Author URI: http://raghunathgurjar.wordpress.com
8
- Version: 3.0
9
  */
10
 
11
  /* Copyright 2015 custom-share-buttons-with-floating-sidebar (email : raghunath.0087@gmail.com)
@@ -77,6 +77,15 @@ if(!class_exists('Csbwfs_Class'))
77
  register_setting('csbwf_sidebar_options','csbwfs_re_bg');
78
  register_setting('csbwf_sidebar_options','csbwfs_st_bg');
79
  register_setting('csbwf_sidebar_options','csbwfs_yt_bg');
 
 
 
 
 
 
 
 
 
80
  register_setting('csbwf_sidebar_options','csbwfs_fpublishBtn');
81
  register_setting('csbwf_sidebar_options','csbwfs_tpublishBtn');
82
  register_setting('csbwf_sidebar_options','csbwfs_gpublishBtn');
5
  Description: It's a very simple plugin for add to social share buttons on your site and you can publish buttons floating sidebar. Even you can edit share buttons if you wish
6
  Author: MR Web Solution
7
  Author URI: http://raghunathgurjar.wordpress.com
8
+ Version: 3.1
9
  */
10
 
11
  /* Copyright 2015 custom-share-buttons-with-floating-sidebar (email : raghunath.0087@gmail.com)
77
  register_setting('csbwf_sidebar_options','csbwfs_re_bg');
78
  register_setting('csbwf_sidebar_options','csbwfs_st_bg');
79
  register_setting('csbwf_sidebar_options','csbwfs_yt_bg');
80
+ register_setting('csbwf_sidebar_options','csbwfs_page_fb_bg');
81
+ register_setting('csbwf_sidebar_options','csbwfs_page_tw_bg');
82
+ register_setting('csbwf_sidebar_options','csbwfs_page_li_bg');
83
+ register_setting('csbwf_sidebar_options','csbwfs_page_mail_bg');
84
+ register_setting('csbwf_sidebar_options','csbwfs_page_gp_bg');
85
+ register_setting('csbwf_sidebar_options','csbwfs_page_pin_bg');
86
+ register_setting('csbwf_sidebar_options','csbwfs_page_re_bg');
87
+ register_setting('csbwf_sidebar_options','csbwfs_page_st_bg');
88
+ register_setting('csbwf_sidebar_options','csbwfs_page_yt_bg');
89
  register_setting('csbwf_sidebar_options','csbwfs_fpublishBtn');
90
  register_setting('csbwf_sidebar_options','csbwfs_tpublishBtn');
91
  register_setting('csbwf_sidebar_options','csbwfs_gpublishBtn');
images/fb.png CHANGED
File without changes
images/gp.png CHANGED
File without changes
images/hide-b.png CHANGED
File without changes
images/hide-l.png CHANGED
File without changes
images/hide-r.png CHANGED
File without changes
images/hide.png CHANGED
File without changes
images/in.png CHANGED
File without changes
images/minify-social.png CHANGED
File without changes
images/ml.png CHANGED
File without changes
images/overlay.png CHANGED
File without changes
images/pinit.png CHANGED
File without changes
images/reddit-p.png CHANGED
File without changes
images/reddit.png CHANGED
File without changes
images/sharethis-l.png CHANGED
File without changes
images/sharethis-r.png CHANGED
File without changes
images/sharethis.png CHANGED
File without changes
images/sharethis_old.png CHANGED
File without changes
images/show.png CHANGED
File without changes
images/stumbleupon.png CHANGED
File without changes
images/tw.png CHANGED
File without changes
images/youtube.png CHANGED
File without changes
js/csbwfs.js CHANGED
@@ -38,11 +38,13 @@ jQuery(document).ready(function(){
38
  jQuery('#div-csbwfs-share-buttons #csbwfsresetpage').click(function(){
39
  jQuery('#div-csbwfs-share-buttons .inputButtonid').val('');
40
  jQuery('#div-csbwfs-share-buttons .csbwfs_title').val('');
 
41
  })
42
  /** reset floating sidebar settings */
43
  jQuery('#div-csbwfs-sidebar #csbwfs_resetpage').click(function(){
 
44
  jQuery('#div-csbwfs-sidebar .inputButtonid').val('');
45
- jQuery('#div-csbwfs-sidebar .csbwfs_title').val('');
46
  })
47
 
48
  });
38
  jQuery('#div-csbwfs-share-buttons #csbwfsresetpage').click(function(){
39
  jQuery('#div-csbwfs-share-buttons .inputButtonid').val('');
40
  jQuery('#div-csbwfs-share-buttons .csbwfs_title').val('');
41
+ jQuery('#div-csbwfs-share-buttons .color-field').val('');
42
  })
43
  /** reset floating sidebar settings */
44
  jQuery('#div-csbwfs-sidebar #csbwfs_resetpage').click(function(){
45
+ jQuery('#div-csbwfs-sidebar .inputButtonid').val('');
46
  jQuery('#div-csbwfs-sidebar .inputButtonid').val('');
47
+ jQuery('#div-csbwfs-sidebar .color-field').val('');
48
  })
49
 
50
  });
lib/settings.php CHANGED
@@ -167,60 +167,60 @@
167
  <tr><td colspan="2" align="right"><input type="button" id="csbwfsresetpage" value="RESET"></td></tr>
168
  <tr><th><?php echo 'Facebook:';?></th>
169
  <td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg2"><input type="text" id="csbwfs_page_fb_image" name="csbwfs_page_fb_image" value="<?php echo get_option('csbwfs_page_fb_image'); ?>" placeholder="Insert facebook button image path" size="40" class="inputButtonid"/>
170
- <input id="csbwfs_fb_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_fb_title" name="csbwfs_page_fb_title" value="<?php echo get_option('csbwfs_page_fb_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
171
  </td>
172
  </tr>
173
  <tr>
174
  <th><?php echo 'Twitter:';?></th>
175
  <td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg2">
176
  <input type="text" id="csbwfs_page_tw_image" name="csbwfs_page_tw_image" value="<?php echo get_option('csbwfs_page_tw_image'); ?>" placeholder="Insert twitter button image path" size="40" class="inputButtonid"/>
177
- <input id="csbwfs_tw_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_tw_title" name="csbwfs_page_tw_title" value="<?php echo get_option('csbwfs_page_tw_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
178
  </td>
179
  </tr>
180
  <tr><th><?php echo 'Linkedin:';?></th>
181
  <td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg2"><input type="text" id="csbwfs_page_li_image" name="csbwfs_page_li_image" value="<?php echo get_option('csbwfs_page_li_image'); ?>" placeholder="Insert Linkedin button image path" size="40" class="inputButtonid"/>
182
- <input id="csbwfs_li_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_li_title" name="csbwfs_page_li_title" value="<?php echo get_option('csbwfs_page_li_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
183
  </td>
184
  </tr>
185
  <tr>
186
  <th><?php echo 'Pintrest:';?></th>
187
  <td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg2"><input type="text" id="csbwfs_page_pin_image" name="csbwfs_page_pin_image" value="<?php echo get_option('csbwfs_page_pin_image'); ?>" placeholder="Insert pinterest button image path" size="40" class="inputButtonid"/>
188
- <input id="csbwfs_pi_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_pin_title" name="csbwfs_page_pin_title" value="<?php echo get_option('csbwfs_page_pin_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
189
  </td>
190
  </tr>
191
  <tr>
192
  <th><?php echo 'Google Plus:';?></th>
193
  <td class="csbwfsButtonsImg" id="csbwfsButtonsGpImg2">
194
  <input type="text" id="csbwfs_page_gp_image" name="csbwfs_page_gp_image" value="<?php echo get_option('csbwfs_page_gp_image'); ?>" placeholder="Insert google button image path" size="40" class="inputButtonid"/>
195
- <input id="csbwfs_gp_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_gp_title" name="csbwfs_page_gp_title" value="<?php echo get_option('csbwfs_page_gp_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
196
  </td>
197
  </tr>
198
  <tr>
199
  <th><?php echo 'Reddit:';?></th>
200
  <td class="csbwfsButtonsImg" id="csbwfsButtonsReImg2">
201
  <input type="text" id="csbwfs_page_re_image" name="csbwfs_page_re_image" value="<?php echo get_option('csbwfs_page_re_image'); ?>" placeholder="Insert reddit button image path" size="40" class="inputButtonid"/>
202
- <input id="csbwfs_re_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_re_title" name="csbwfs_page_re_title" value="<?php echo get_option('csbwfs_page_re_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
203
  </td>
204
  </tr>
205
  <tr>
206
  <th><?php echo 'Stumbleupon:';?></th>
207
  <td class="csbwfsButtonsImg" id="csbwfsButtonsStImg2">
208
  <input type="text" id="csbwfs_page_st_image" name="csbwfs_page_st_image" value="<?php echo get_option('csbwfs_page_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="40" class="inputButtonid"/>
209
- <input id="csbwfs_st_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_st_title" name="csbwfs_page_st_title" value="<?php echo get_option('csbwfs_page_st_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
210
  </td>
211
  </tr>
212
  <tr>
213
  <th><?php echo 'Mail:';?></th>
214
  <td class="csbwfsButtonsImg" id="csbwfsButtonsMlImg2">
215
  <input type="text" id="csbwfs_page_mail_image" name="csbwfs_page_mail_image" value="<?php echo get_option('csbwfs_page_mail_image'); ?>" placeholder="Insert mail button image path" size="40" class="inputButtonid"/>
216
- <input id="csbwfs_ml_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_mail_title" name="csbwfs_page_mail_title" value="<?php echo get_option('csbwfs_page_mail_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
217
  </td>
218
  </tr>
219
  <tr>
220
  <th><?php echo 'Youtube:';?></th>
221
  <td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg2">
222
  <input type="text" id="csbwfs_page_yt_image" name="csbwfs_page_yt_image" value="<?php echo get_option('csbwfs_page_yt_image'); ?>" placeholder="Insert youtube button image path" size="40" class="inputButtonid"/>
223
- <input id="csbwfs_yt_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_yt_title" name="csbwfs_page_yt_title" value="<?php echo get_option('csbwfs_page_yt_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
224
  </td>
225
  </tr>
226
  </table>
167
  <tr><td colspan="2" align="right"><input type="button" id="csbwfsresetpage" value="RESET"></td></tr>
168
  <tr><th><?php echo 'Facebook:';?></th>
169
  <td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg2"><input type="text" id="csbwfs_page_fb_image" name="csbwfs_page_fb_image" value="<?php echo get_option('csbwfs_page_fb_image'); ?>" placeholder="Insert facebook button image path" size="40" class="inputButtonid"/>
170
+ <input id="csbwfs_fb_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_fb_bg" data-default-color="#305891" class="color-field" name="csbwfs_page_fb_bg" value="<?php echo get_option('csbwfs_page_fb_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_fb_title" name="csbwfs_page_fb_title" value="<?php echo get_option('csbwfs_page_fb_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
171
  </td>
172
  </tr>
173
  <tr>
174
  <th><?php echo 'Twitter:';?></th>
175
  <td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg2">
176
  <input type="text" id="csbwfs_page_tw_image" name="csbwfs_page_tw_image" value="<?php echo get_option('csbwfs_page_tw_image'); ?>" placeholder="Insert twitter button image path" size="40" class="inputButtonid"/>
177
+ <input id="csbwfs_tw_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_tw_bg" data-default-color="#2ca8d2" class="color-field" name="csbwfs_page_tw_bg" value="<?php echo get_option('csbwfs_page_tw_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_tw_title" name="csbwfs_page_tw_title" value="<?php echo get_option('csbwfs_page_tw_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
178
  </td>
179
  </tr>
180
  <tr><th><?php echo 'Linkedin:';?></th>
181
  <td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg2"><input type="text" id="csbwfs_page_li_image" name="csbwfs_page_li_image" value="<?php echo get_option('csbwfs_page_li_image'); ?>" placeholder="Insert Linkedin button image path" size="40" class="inputButtonid"/>
182
+ <input id="csbwfs_li_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_li_bg" data-default-color="#dd4c39" class="color-field" name="csbwfs_page_li_bg" value="<?php echo get_option('csbwfs_page_li_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_li_title" name="csbwfs_page_li_title" value="<?php echo get_option('csbwfs_page_li_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
183
  </td>
184
  </tr>
185
  <tr>
186
  <th><?php echo 'Pintrest:';?></th>
187
  <td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg2"><input type="text" id="csbwfs_page_pin_image" name="csbwfs_page_pin_image" value="<?php echo get_option('csbwfs_page_pin_image'); ?>" placeholder="Insert pinterest button image path" size="40" class="inputButtonid"/>
188
+ <input id="csbwfs_pi_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_pin_bg" data-default-color="#ca2027" class="color-field" name="csbwfs_page_pin_bg" value="<?php echo get_option('csbwfs_page_pin_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_pin_title" name="csbwfs_page_pin_title" value="<?php echo get_option('csbwfs_page_pin_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
189
  </td>
190
  </tr>
191
  <tr>
192
  <th><?php echo 'Google Plus:';?></th>
193
  <td class="csbwfsButtonsImg" id="csbwfsButtonsGpImg2">
194
  <input type="text" id="csbwfs_page_gp_image" name="csbwfs_page_gp_image" value="<?php echo get_option('csbwfs_page_gp_image'); ?>" placeholder="Insert google button image path" size="40" class="inputButtonid"/>
195
+ <input id="csbwfs_gp_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_gp_bg" data-default-color="#dd4c39" class="color-field" name="csbwfs_page_gp_bg" value="<?php echo get_option('csbwfs_page_gp_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_gp_title" name="csbwfs_page_gp_title" value="<?php echo get_option('csbwfs_page_gp_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
196
  </td>
197
  </tr>
198
  <tr>
199
  <th><?php echo 'Reddit:';?></th>
200
  <td class="csbwfsButtonsImg" id="csbwfsButtonsReImg2">
201
  <input type="text" id="csbwfs_page_re_image" name="csbwfs_page_re_image" value="<?php echo get_option('csbwfs_page_re_image'); ?>" placeholder="Insert reddit button image path" size="40" class="inputButtonid"/>
202
+ <input id="csbwfs_re_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_re_bg" data-default-color="#ff1a00" class="color-field" name="csbwfs_page_re_bg" value="<?php echo get_option('csbwfs_page_re_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_re_title" name="csbwfs_page_re_title" value="<?php echo get_option('csbwfs_page_re_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
203
  </td>
204
  </tr>
205
  <tr>
206
  <th><?php echo 'Stumbleupon:';?></th>
207
  <td class="csbwfsButtonsImg" id="csbwfsButtonsStImg2">
208
  <input type="text" id="csbwfs_page_st_image" name="csbwfs_page_st_image" value="<?php echo get_option('csbwfs_page_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="40" class="inputButtonid"/>
209
+ <input id="csbwfs_st_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_st_bg" data-default-color="#eb4924" class="color-field" name="csbwfs_page_st_bg" value="<?php echo get_option('csbwfs_page_st_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_st_title" name="csbwfs_page_st_title" value="<?php echo get_option('csbwfs_page_st_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
210
  </td>
211
  </tr>
212
  <tr>
213
  <th><?php echo 'Mail:';?></th>
214
  <td class="csbwfsButtonsImg" id="csbwfsButtonsMlImg2">
215
  <input type="text" id="csbwfs_page_mail_image" name="csbwfs_page_mail_image" value="<?php echo get_option('csbwfs_page_mail_image'); ?>" placeholder="Insert mail button image path" size="40" class="inputButtonid"/>
216
+ <input id="csbwfs_ml_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_mail_bg" data-default-color="#738a8d" class="color-field" name="csbwfs_page_mail_bg" value="<?php echo get_option('csbwfs_page_mail_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_mail_title" name="csbwfs_page_mail_title" value="<?php echo get_option('csbwfs_page_mail_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
217
  </td>
218
  </tr>
219
  <tr>
220
  <th><?php echo 'Youtube:';?></th>
221
  <td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg2">
222
  <input type="text" id="csbwfs_page_yt_image" name="csbwfs_page_yt_image" value="<?php echo get_option('csbwfs_page_yt_image'); ?>" placeholder="Insert youtube button image path" size="40" class="inputButtonid"/>
223
+ <input id="csbwfs_yt_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_yt_bg" data-default-color="#ffffff" class="color-field" name="csbwfs_page_yt_bg" value="<?php echo get_option('csbwfs_page_yt_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_yt_title" name="csbwfs_page_yt_title" value="<?php echo get_option('csbwfs_page_yt_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
224
  </td>
225
  </tr>
226
  </table>
readme.txt CHANGED
@@ -3,8 +3,8 @@ 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, google+, share, share links,linkedin,Stumbleupon,Reddit,pinterest,floating sidebar,float,floating share buttons,float share buttons
5
  Requires at least: 3.8
6
- Tested up to: 4.7
7
- Stable tag: 3.0
8
 
9
  Social Share Buttons (Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit) & Share Floating Sidebar.
10
 
@@ -148,6 +148,12 @@ Step 3. Go to Settings/"Custom Share Buttons with Floating Sidebar" and configur
148
  9. screenshot-9.png
149
 
150
  == Changelog ==
 
 
 
 
 
 
151
  = 3.0 =
152
  * Tested with latest wordpress version 4.7
153
  * Optimized plugin code
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, google+, share, share links,linkedin,Stumbleupon,Reddit,pinterest,floating sidebar,float,floating share buttons,float share buttons
5
  Requires at least: 3.8
6
+ Tested up to: 4.7.3
7
+ Stable tag: 3.1
8
 
9
  Social Share Buttons (Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit) & Share Floating Sidebar.
10
 
148
  9. screenshot-9.png
149
 
150
  == Changelog ==
151
+ = 3.1 =
152
+ * Tested with latest wordpress version 4.7.3
153
+ * Added an option for define to button background color of social share buttons
154
+ * Fixed show/hide buttons related bug
155
+ * Released new addon verson 3.0
156
+
157
  = 3.0 =
158
  * Tested with latest wordpress version 4.7
159
  * Optimized plugin code