Custom Share Buttons with Floating Sidebar - Version 2.0

Version Description

  • Fixed pinterest share image issue
    • Fixed youtube buttons url issue
    • modify layout of plugin settings page
    • Added options for define the buttons image alt text
    • Released Pro Version 1.6
Download this release

Release Info

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

Code changes from version 1.8 to 2.0

csbwfs-class.php CHANGED
@@ -108,162 +108,93 @@ function csbwf_sidebar_load_inline_js()
108
  animateHeight="49";
109
  defaultAnimateHeight= animateHeight-2;';
110
  if($pluginOptionsVal['csbwfs_delayTimeBtn']!='0'):
111
- $jscnt.='jQuery("#delaydiv").hide();
112
  setTimeout(function(){
113
- jQuery("#delaydiv").fadeIn();}, '.$pluginOptionsVal['csbwfs_delayTimeBtn'].');';
114
  endif;
115
 
116
  if($pluginOptionsVal['csbwfs_position']=='right' || $pluginOptionsVal['csbwfs_position']=='left'){
117
 
118
  if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
119
- $jscnt.='jQuery("div#tw a").hover(function(){
120
- jQuery("div#tw a").animate({width:animateWidth});
121
  },function(){
122
- jQuery("div#tw a").stop( true, true ).animate({width:defaultAnimateWidth});
123
  });';
124
  endif;
125
 
126
  if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
127
- $jscnt.='jQuery("div#fb a").hover(function(){
128
- jQuery("div#fb a").animate({width:animateWidth});
129
  },function(){
130
- jQuery("div#fb a").stop( true, true ).animate({width:defaultAnimateWidth});
131
  });';
132
  endif;
133
 
134
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
135
- $jscnt.='jQuery("div#ml a").hover(function(){
136
- jQuery("div#ml a").animate({width:animateWidth});
137
  },function(){
138
- jQuery("div#ml a").stop( true, true ).animate({width:defaultAnimateWidth});
139
  });';
140
  endif;
141
 
142
  if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
143
- $jscnt.='jQuery("div#gp a").hover(function(){
144
- jQuery("div#gp a").animate({width:animateWidth});
145
  },function(){
146
- jQuery("div#gp a").stop( true, true ).animate({width:defaultAnimateWidth});
147
  });';
148
  endif;
149
 
150
  if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
151
- $jscnt.='jQuery("div#li a").hover(function(){
152
- jQuery("div#li a").animate({width:animateWidth});
153
  },function(){
154
- jQuery("div#li a").stop( true, true ).animate({width:defaultAnimateWidth});
155
  });';
156
  endif;
157
 
158
  if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
159
- $jscnt.='jQuery("div#pin a").hover(function(){
160
- jQuery("div#pin a").animate({width:animateWidth});
161
  },function(){
162
- jQuery("div#pin a").stop( true, true ).animate({width:defaultAnimateWidth});
163
  });';
164
  endif;
165
 
166
  if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
167
- $jscnt.='jQuery("div#yt a").hover(function(){
168
- jQuery("div#yt a").animate({width:animateWidth});
169
  },function(){
170
- jQuery("div#yt a").stop( true, true ).animate({width:defaultAnimateWidth});
171
  });';
172
  endif;
173
  if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
174
- $jscnt.='jQuery("div#re a").hover(function(){
175
- jQuery("div#re a").animate({width:animateWidth});
176
  },function(){
177
- jQuery("div#re a").stop( true, true ).animate({width:defaultAnimateWidth});
178
  });';
179
  endif;
180
 
181
  if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
182
- $jscnt.='jQuery("div#st a").hover(function(){
183
- jQuery("div#st a").animate({width:animateWidth});
184
  },function(){
185
- jQuery("div#st a").stop( true, true ).animate({width:defaultAnimateWidth});
186
  });';
187
  endif;
188
 
189
  }else
190
  {
191
- if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
192
- $jscnt.='jQuery("div#tw a").hover(function(){
193
- jQuery("div#tw a").animate({height:animateHeight});
194
- },function(){
195
- jQuery("div#tw a").stop( true, true ).animate({height:defaultAnimateHeight});
196
- });';
197
- endif;
198
-
199
- if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
200
- $jscnt.='jQuery("div#fb a").hover(function(){
201
- jQuery("div#fb a").animate({height:animateHeight});
202
- },function(){
203
- jQuery("div#fb a").stop( true, true ).animate({height:defaultAnimateHeight});
204
- });';
205
- endif;
206
-
207
- if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
208
- $jscnt.='jQuery("div#ml a").hover(function(){
209
- jQuery("div#ml a").animate({height:animateHeight});
210
- },function(){
211
- jQuery("div#ml a").stop( true, true ).animate({height:defaultAnimateHeight});
212
- });';
213
- endif;
214
-
215
- if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
216
- $jscnt.='jQuery("div#gp a").hover(function(){
217
- jQuery("div#gp a").animate({height:animateHeight});
218
- },function(){
219
- jQuery("div#gp a").stop( true, true ).animate({height:defaultAnimateHeight});
220
- });';
221
- endif;
222
-
223
- if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
224
- $jscnt.='jQuery("div#li a").hover(function(){
225
- jQuery("div#li a").animate({height:animateHeight});
226
- },function(){
227
- jQuery("div#li a").stop( true, true ).animate({height:defaultAnimateHeight});
228
- });';
229
- endif;
230
-
231
- if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
232
- $jscnt.='jQuery("div#pin a").hover(function(){
233
- jQuery("div#pin a").animate({height:animateHeight});
234
- },function(){
235
- jQuery("div#pin a").stop( true, true ).animate({height:defaultAnimateHeight});
236
- });';
237
- endif;
238
-
239
- if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
240
- $jscnt.='jQuery("div#yt a").hover(function(){
241
- jQuery("div#yt a").animate({height:animateHeight});
242
- },function(){
243
- jQuery("div#yt a").stop( true, true ).animate({height:defaultAnimateHeight});
244
- });';
245
- endif;
246
- if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
247
- $jscnt.='jQuery("div#re a").hover(function(){
248
- jQuery("div#re a").animate({height:animateHeight});
249
- },function(){
250
- jQuery("div#re a").stop( true, true ).animate({height:defaultAnimateHeight});
251
- });';
252
- endif;
253
-
254
- if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
255
- $jscnt.='jQuery("div#st a").hover(function(){
256
- jQuery("div#st a").animate({height:animateHeight});
257
- },function(){
258
- jQuery("div#st a").stop( true, true ).animate({height:defaultAnimateHeight});
259
- });';
260
- endif;
261
 
262
  }
263
 
264
  $jscnt.='jQuery("div.csbwfs-show").hide();
265
  jQuery("div.csbwfs-show a").click(function(){
266
- jQuery("div#social-inner").show(500);
267
  jQuery("div.csbwfs-show").hide(500);
268
  jQuery("div.csbwfs-hide").show(500);
269
  csbwfsSetCookie("csbwfs_show_hide_status","active","1");
@@ -272,7 +203,7 @@ if($pluginOptionsVal['csbwfs_position']=='right' || $pluginOptionsVal['csbwfs_po
272
  jQuery("div.csbwfs-hide a").click(function(){
273
  jQuery("div.csbwfs-show").show(500);
274
  jQuery("div.csbwfs-hide").hide(500);
275
- jQuery("div#social-inner").hide(500);
276
  csbwfsSetCookie("csbwfs_show_hide_status","in_active","1");
277
  });';
278
 
@@ -280,9 +211,9 @@ if($pluginOptionsVal['csbwfs_position']=='right' || $pluginOptionsVal['csbwfs_po
280
  if (button_status =="in_active") {
281
  jQuery("div.csbwfs-show").show();
282
  jQuery("div.csbwfs-hide").hide();
283
- jQuery("div#social-inner").hide();
284
  } else {
285
- jQuery("div#social-inner").show();
286
  jQuery("div.csbwfs-show").hide();
287
  jQuery("div.csbwfs-hide").show();
288
  }';
@@ -401,6 +332,36 @@ if(isset($pluginOptionsVal['csbwfs_re_image']) && $pluginOptionsVal['csbwfs_re_i
401
  //get stumbleupon button image
402
  if(isset($pluginOptionsVal['csbwfs_st_image']) && $pluginOptionsVal['csbwfs_st_image']!=''){ $stImg=$pluginOptionsVal['csbwfs_st_image'];}
403
  else{$stImg=plugins_url('images/stumbleupon.png',__FILE__);}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
404
 
405
  //get email message
406
  if(is_page() || is_single() || is_category() || is_archive()){
@@ -423,60 +384,42 @@ if($pluginOptionsVal['csbwfs_top_margin']!=''){
423
 
424
  //Sidebar Position
425
  if($pluginOptionsVal['csbwfs_position']=='right'){
426
- $style=' style="top:'.$margin.';right:-5px;"';
427
- $idName=' id="csbwfs-right"';
428
- $showImg='hide.png';
429
- $hideImg='show.png';
430
-
431
  }else if($pluginOptionsVal['csbwfs_position']=='bottom'){
432
- $style=' style="bottom:0;"';
433
- $idName=' id="csbwfs-bottom"';
434
- $showImg='hide.png';
435
- $hideImg='show.png';
436
-
437
- }
438
  else
439
  {
440
- $idName=' id="csbwfs-left"';
441
- $style=' style="top:'.$margin.';left:0;"';
442
- $showImg='show.png';
443
- $hideImg='hide.png';
444
- }
445
-
446
-
447
-
448
  /* Get All buttons background color */
449
-
450
  //get facebook button image background color
451
  if($pluginOptionsVal['csbwfs_fb_bg']!=''){ $fImgbg=' style="background:'.$pluginOptionsVal['csbwfs_fb_bg'].';"';}
452
- else{$fImgbg='';}
453
  //get twitter button image background color
454
  if($pluginOptionsVal['csbwfs_tw_bg']!=''){ $tImgbg=' style="background:'.$pluginOptionsVal['csbwfs_tw_bg'].';"';}
455
- else{$tImgbg='';}
456
  //get linkdin button image background color
457
  if($pluginOptionsVal['csbwfs_li_bg']!=''){ $lImgbg=' style="background:'.$pluginOptionsVal['csbwfs_li_bg'].';"';}
458
- else{$lImgbg='';}
459
  //get mail button image background color
460
  if($pluginOptionsVal['csbwfs_mail_bg']!=''){ $mImgbg=' style="background:'.$pluginOptionsVal['csbwfs_mail_bg'].';"';}
461
- else{$mImgbg='';}
462
  //get google plus button image background color
463
  if($pluginOptionsVal['csbwfs_gp_bg']!=''){ $gImgbg=' style="background:'.$pluginOptionsVal['csbwfs_gp_bg'].';"';}
464
- else{$gImgbg='';}
465
  //get pinterest button image background color
466
- if($pluginOptionsVal['csbwfs_pin_bg']!=''){ $pImgbg=' style="background:'.$pluginOptionsVal['csbwfs_pin_bg'].';"';}
467
- else{$pImgbg='';}
468
-
469
  //get youtube button image background color
470
- if(isset($pluginOptionsVal['csbwfs_yt_bg']) && $pluginOptionsVal['csbwfs_yt_bg']!=''){ $ytImgbg=' style="background:'.$pluginOptionsVal['csbwfs_yt_bg'].';"';}
471
- else{$ytImgbg='';}
472
  //get reddit button image background color
473
- if(isset($pluginOptionsVal['csbwfs_re_bg']) && $pluginOptionsVal['csbwfs_re_bg']!=''){ $reImgbg=' style="background:'.$pluginOptionsVal['csbwfs_re_bg'].';"';}
474
- else{$reImgbg='';}
475
  //get stumbleupon button image background color
476
- if(isset($pluginOptionsVal['csbwfs_st_bg']) && $pluginOptionsVal['csbwfs_st_bg']!=''){ $stImgbg=' style="background:'.$pluginOptionsVal['csbwfs_st_bg'].';"';}
477
- else{$stImgbg='';}
478
  /** Message */
479
-
480
  if($pluginOptionsVal['csbwfs_show_btn']!=''){ $showbtn=$pluginOptionsVal['csbwfs_show_btn'];}
481
  else{$showbtn='Show Buttons';}
482
  //get show/hide button message
@@ -492,63 +435,63 @@ $isActiveHideShowBtn='yes';
492
  else:
493
  $isActiveHideShowBtn='no';
494
  endif;
495
- $flitingSidebarContent='<div id="delaydiv"><div class="csbwfs-social-widget" '.$idName.' title="'.$sharemsg.'" '.$style.'>';
496
 
497
  if($isActiveHideShowBtn!='yes') :
498
- $flitingSidebarContent .= '<div class="csbwfs-show"><a href="javascript:" alt="'.$showbtn.'" id="csbwfs-show"><img src="'.plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$showImg).'" title="'.$showbtn.'"></a></div>';
499
  endif;
500
 
501
- $flitingSidebarContent .= '<div id="social-inner">';
502
 
503
  /** FB */
504
  if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
505
- $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="fb"><a href="https://www.facebook.com/sharer/sharer.php?u='.$shareurl.'" onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;" target="_blank" alt="Share on Facebook" '.$fImgbg.'> <img src="'.$fImg.'"></a></div></div>';
506
  endif;
507
 
508
  /** TW */
509
  if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
510
- $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="tw"><a href="javascript:" onclick="window.open(\'http://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'\',\'_blank\',\'width=800,height=300\')" alt="Twitter" '.$tImgbg.'><img src="'.$tImg.'"></a></div></div>';
511
  endif;
512
 
513
  /** GP */
514
  if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
515
- $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="gp"><a href="https://plus.google.com/share?url='.$shareurl.'" onclick="javascript:window.open(this.href,\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" alt="Google Plus" '.$gImgbg.'><img src="'.$gImg.'"></a></div></div>';
516
  endif;
517
 
518
  /** LI */
519
  if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
520
- $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="li"><a href="https://www.linkedin.com/cws/share?mini=true&url='. $shareurl.'" onclick="javascript:window.open(this.href,\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" alt="Google Plus" '.$lImgbg.'><img src="'.$lImg.'"></a></div></div>';
521
  endif;
522
 
523
  /** PIN */
524
  if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
525
- $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="pin"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&amp;media='.$pinShareImg.'&amp;description='.$ShareTitle.' :'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=800,height=500\');" href="javascript:void(0);" '.$pImgbg.'><img src="'.$pImg.'"></a></div></div>';
526
  endif;
527
 
528
  /** YT */
529
  if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
530
- $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" '.$ytImgbg.'><img src="'.$ytImg.'"></a></div></div>';
531
  endif;
532
 
533
  /** Reddit */
534
  if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
535
- $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="re"><a onclick="window.open(\'http://reddit.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" '.$reImgbg.'><img src="'.$reImg.'"></a></div></div>';
536
  endif;
537
 
538
  /** Stumbleupon */
539
  if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
540
- $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="st"><a onclick="window.open(\'http://www.stumbleupon.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" '.$stImgbg.'><img src="'. $stImg.'"></a></div></div>';
541
  endif;
542
 
543
  /** Mail*/
544
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
545
- $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="ml"><a href="mailto:'.$mailMsg.'" alt="Email" '.$mImgbg.'><img src="'.$mImg.'"></a></div></div>';
546
  endif;
547
 
548
  $flitingSidebarContent .='</div>'; //End social-inner
549
 
550
  if($isActiveHideShowBtn!='yes') :
551
- $flitingSidebarContent .='<div class="csbwfs-hide"><a href="javascript:" alt="'.$hidebtn.'" id="csbwfs-hide"><img src="'.plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$hideImg).'" title="'.$hidebtn.'"></a></div>';
552
  endif;
553
 
554
  $flitingSidebarContent .='</div></div>'; //End social-inner
@@ -560,8 +503,11 @@ $flitingSidebarContent .='</div></div>'; //End social-inner
560
  if(isset($pluginOptionsVal['csbwfs_hide_home'])){$hideOnHome=$pluginOptionsVal['csbwfs_hide_home']; }else{ $hideOnHome='';}
561
 
562
  if((is_home() && $hideOnHome=='yes' ) || (is_front_page() && $hideOnHome=='yes' )):
563
- $flitingSidebarContent='';
564
- endif;
 
 
 
565
 
566
  print $flitingSidebarContent;
567
 
@@ -580,6 +526,13 @@ function csbfs_the_content_filter( $content ) {
580
  global $post;
581
  $pluginOptionsVal=get_csbwf_sidebar_options();
582
 
 
 
 
 
 
 
 
583
  if(is_category())
584
  {
585
  $category_id = get_query_var('cat');
@@ -588,6 +541,12 @@ if(is_category())
588
  $ShareTitle=$cats[0]->name;
589
  }elseif(is_page() || is_single())
590
  {
 
 
 
 
 
 
591
  $shareurl=get_permalink($post->ID);
592
  $ShareTitle=$post->post_title;
593
  }
@@ -630,7 +589,42 @@ if($pluginOptionsVal['csbwfs_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_p
630
  //get youtube button image
631
  if(isset($pluginOptionsVal['csbwfs_yt_image']) && $pluginOptionsVal['csbwfs_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_yt_image'];}
632
  else{$ytImg=plugins_url('images/youtube-p.png',__FILE__);}
633
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
634
  //get email message
635
  if(is_page() || is_single() || is_category() || is_archive()){
636
 
@@ -652,43 +646,49 @@ else:
652
  $btnText='Share This!';
653
  endif;
654
 
655
- $shareButtonContent='<div id="socialButtonOnPage" class="'.$btnPosition.'SocialButtonOnPage"><div class="sharethis-arrow"><span>'.$btnText.'</span></div>';
656
  /* Facebook*/
657
  if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
658
  $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="fb-p"><a href="https://www.facebook.com/sharer/sharer.php?u='.$shareurl.'" onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;"
659
- target="_blank" alt="Share on Facebook"> <img src="'.$fImg.'"></a></div></div>';
660
  endif;
661
 
662
  /* Twitter */
663
  if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
664
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="tw-p"><a href="javascript:" onclick="window.open(\'http://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'&nbsp;&nbsp;\', \'_blank\', \'width=800,height=300\')" alt="Twitter"><img src="'.$tImg.'"></a></div></div>';
665
  endif;
666
 
667
  /* Google Plus */
668
  if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
669
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="gp-p"><a href="https://plus.google.com/share?url='.$shareurl.'" onclick="javascript:window.open(this.href,\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" alt="Google Plus">
670
- <img src="'.$gImg.'"></a></div>
671
  </div>';
672
  endif;
673
 
674
  /* Linkedin */
675
  if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
676
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="li-p"><a href="https://www.linkedin.com/cws/share?url='.$shareurl.'" onclick="javascript:window.open(this.href,\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" alt="Google Plus"><img src="'.$lImg.'"></a></div></div>';
677
  endif;
678
 
679
  /* Pinterest */
680
  if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
681
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="pin-p"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&amp;media='.plugins_url('images/mrweb-logo.jpg',__FILE__).'&amp;description='.$ShareTitle.':'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=620,height=500\');" href="javascript:void(0);" style="width: 45px;"><img src="'.$pImg.'"></a></div></div>';
682
  endif;
683
 
684
  /* Youtube */
685
  if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
686
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="yt-p"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&amp;media=http://www.mrwebsolution.in/wp-content/themes/mrweb/images/logo.png&amp;description='.$ShareTitle.':'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=620,height=500\');" href="javascript:void(0);" style="width: 45px;"><img src="'.$ytImg.'"></a></div></div>';
 
 
 
 
 
 
 
 
687
  endif;
688
-
689
  /* Email */
690
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
691
- $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p"><a href="mailto:'.$mailMsg.'" alt="Email"><img src="'.$mImg.'"></a></div></div>';
692
  endif;
693
  $shareButtonContent.='</div>';
694
 
@@ -710,12 +710,17 @@ $shareButtonContent.='</div>';
710
  if(is_archive() && $pluginOptionsVal['csbwfs_page_hide_archive']!='yes'):
711
  $shareButtonContent='';
712
  endif;
 
 
 
 
713
 
 
714
  if($shareButtonContent!=''):
715
- return $content.$shareButtonContent;
716
- else:
717
  return $content;
718
- endif;
719
  }
720
 
721
  /*
108
  animateHeight="49";
109
  defaultAnimateHeight= animateHeight-2;';
110
  if($pluginOptionsVal['csbwfs_delayTimeBtn']!='0'):
111
+ $jscnt.='jQuery("#csbwfs-delaydiv").hide();
112
  setTimeout(function(){
113
+ jQuery("#csbwfs-delaydiv").fadeIn();}, '.$pluginOptionsVal['csbwfs_delayTimeBtn'].');';
114
  endif;
115
 
116
  if($pluginOptionsVal['csbwfs_position']=='right' || $pluginOptionsVal['csbwfs_position']=='left'){
117
 
118
  if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
119
+ $jscnt.='jQuery("div#csbwfs-tw a").hover(function(){
120
+ jQuery("div#csbwfs-tw a").animate({width:animateWidth});
121
  },function(){
122
+ jQuery("div#csbwfs-tw a").stop( true, true ).animate({width:defaultAnimateWidth});
123
  });';
124
  endif;
125
 
126
  if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
127
+ $jscnt.='jQuery("div#csbwfs-fb a").hover(function(){
128
+ jQuery("div#csbwfs-fb a").animate({width:animateWidth});
129
  },function(){
130
+ jQuery("div#csbwfs-fb a").stop( true, true ).animate({width:defaultAnimateWidth});
131
  });';
132
  endif;
133
 
134
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
135
+ $jscnt.='jQuery("div#csbwfs-ml a").hover(function(){
136
+ jQuery("div#csbwfs-ml a").animate({width:animateWidth});
137
  },function(){
138
+ jQuery("div#csbwfs-ml a").stop( true, true ).animate({width:defaultAnimateWidth});
139
  });';
140
  endif;
141
 
142
  if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
143
+ $jscnt.='jQuery("div#csbwfs-gp a").hover(function(){
144
+ jQuery("div#csbwfs-gp a").animate({width:animateWidth});
145
  },function(){
146
+ jQuery("div#csbwfs-gp a").stop( true, true ).animate({width:defaultAnimateWidth});
147
  });';
148
  endif;
149
 
150
  if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
151
+ $jscnt.='jQuery("div#csbwfs-li a").hover(function(){
152
+ jQuery("div#csbwfs-li a").animate({width:animateWidth});
153
  },function(){
154
+ jQuery("div#csbwfs-li a").stop( true, true ).animate({width:defaultAnimateWidth});
155
  });';
156
  endif;
157
 
158
  if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
159
+ $jscnt.='jQuery("div#csbwfs-pin a").hover(function(){
160
+ jQuery("div#csbwfs-pin a").animate({width:animateWidth});
161
  },function(){
162
+ jQuery("div#csbwfs-pin a").stop( true, true ).animate({width:defaultAnimateWidth});
163
  });';
164
  endif;
165
 
166
  if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
167
+ $jscnt.='jQuery("div#csbwfs-yt a").hover(function(){
168
+ jQuery("div#csbwfs-yt a").animate({width:animateWidth});
169
  },function(){
170
+ jQuery("div#csbwfs-yt a").stop( true, true ).animate({width:defaultAnimateWidth});
171
  });';
172
  endif;
173
  if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
174
+ $jscnt.='jQuery("div#csbwfs-re a").hover(function(){
175
+ jQuery("div#csbwfs-re a").animate({width:animateWidth});
176
  },function(){
177
+ jQuery("div#csbwfs-re a").stop( true, true ).animate({width:defaultAnimateWidth});
178
  });';
179
  endif;
180
 
181
  if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
182
+ $jscnt.='jQuery("div#csbwfs-st a").hover(function(){
183
+ jQuery("div#csbwfs-st a").animate({width:animateWidth});
184
  },function(){
185
+ jQuery("div#csbwfs-st a").stop( true, true ).animate({width:defaultAnimateWidth});
186
  });';
187
  endif;
188
 
189
  }else
190
  {
191
+ //silent
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
192
 
193
  }
194
 
195
  $jscnt.='jQuery("div.csbwfs-show").hide();
196
  jQuery("div.csbwfs-show a").click(function(){
197
+ jQuery("div#csbwfs-social-inner").show(500);
198
  jQuery("div.csbwfs-show").hide(500);
199
  jQuery("div.csbwfs-hide").show(500);
200
  csbwfsSetCookie("csbwfs_show_hide_status","active","1");
203
  jQuery("div.csbwfs-hide a").click(function(){
204
  jQuery("div.csbwfs-show").show(500);
205
  jQuery("div.csbwfs-hide").hide(500);
206
+ jQuery("div#csbwfs-social-inner").hide(500);
207
  csbwfsSetCookie("csbwfs_show_hide_status","in_active","1");
208
  });';
209
 
211
  if (button_status =="in_active") {
212
  jQuery("div.csbwfs-show").show();
213
  jQuery("div.csbwfs-hide").hide();
214
+ jQuery("div#csbwfs-social-inner").hide();
215
  } else {
216
+ jQuery("div#csbwfs-social-inner").show();
217
  jQuery("div.csbwfs-show").hide();
218
  jQuery("div.csbwfs-hide").show();
219
  }';
332
  //get stumbleupon button image
333
  if(isset($pluginOptionsVal['csbwfs_st_image']) && $pluginOptionsVal['csbwfs_st_image']!=''){ $stImg=$pluginOptionsVal['csbwfs_st_image'];}
334
  else{$stImg=plugins_url('images/stumbleupon.png',__FILE__);}
335
+
336
+
337
+ /* Get All buttons Image Alt/Title */
338
+ //get facebook button image alt/title
339
+ if($pluginOptionsVal['csbwfs_fb_title']!=''){ $fImgAlt=$pluginOptionsVal['csbwfs_fb_title'];}
340
+ else{$fImgAlt='Share On Facebook';}
341
+ //get twitter button image alt/title
342
+ if($pluginOptionsVal['csbwfs_tw_title']!=''){ $tImgAlt=$pluginOptionsVal['csbwfs_tw_title'];}
343
+ else{$tImgAlt='Share On Twitter';}
344
+ //get linkdin button image alt/title
345
+ if($pluginOptionsVal['csbwfs_li_title']!=''){ $lImgAlt=$pluginOptionsVal['csbwfs_li_title'];}
346
+ else{$lImgAlt='Share On Linkdin';}
347
+ //get mail button image alt/title
348
+ if($pluginOptionsVal['csbwfs_mail_title']!=''){ $mImgAlt=$pluginOptionsVal['csbwfs_mail_title'];}
349
+ else{$mImgAlt='Contact us';}
350
+ //get google plus button image alt/title
351
+ if($pluginOptionsVal['csbwfs_gp_title']!=''){ $gImgAlt=$pluginOptionsVal['csbwfs_gp_title'];}
352
+ else{$gImgAlt='Share On Google Plus';}
353
+ //get pinterest button image alt/title
354
+ if($pluginOptionsVal['csbwfs_pin_title']!=''){ $pImgAlt=$pluginOptionsVal['csbwfs_pin_title'];}
355
+ else{$pImgAlt='Share On Pinterest';}
356
+ //get youtube button image alt/title
357
+ if(isset($pluginOptionsVal['csbwfs_yt_title']) && $pluginOptionsVal['csbwfs_yt_title']!=''){ $ytImgAlt=$pluginOptionsVal['csbwfs_yt_title'];}
358
+ else{$ytImgAlt='Share On Youtube';}
359
+ //get reddit plus button image alt/title
360
+ if(isset($pluginOptionsVal['csbwfs_re_title']) && $pluginOptionsVal['csbwfs_re_title']!=''){ $reImgAlt=$pluginOptionsVal['csbwfs_re_title'];}
361
+ else{$reImgAlt='Share On Reddit';}
362
+ //get stumbleupon button image alt/title
363
+ if(isset($pluginOptionsVal['csbwfs_st_title']) && $pluginOptionsVal['csbwfs_st_title']!=''){ $stImgAlt=$pluginOptionsVal['csbwfs_st_title'];}
364
+ else{$stImgAlt='Share On Stumbleupon';}
365
 
366
  //get email message
367
  if(is_page() || is_single() || is_category() || is_archive()){
384
 
385
  //Sidebar Position
386
  if($pluginOptionsVal['csbwfs_position']=='right'){
387
+ $style=' style="top:'.$margin.';right:-5px;"'; $idName=' id="csbwfs-right"'; $showImg='hide-r.png'; $hideImg='show.png';
 
 
 
 
388
  }else if($pluginOptionsVal['csbwfs_position']=='bottom'){
389
+ $style=' style="bottom:0;"'; $idName=' id="csbwfs-bottom"'; $showImg='hide-b.png'; $hideImg='show.png';
390
+ }
 
 
 
 
391
  else
392
  {
393
+ $idName=' id="csbwfs-left"'; $style=' style="top:'.$margin.';left:0;"'; $showImg='hide-l.png';$hideImg='hide.png';
394
+ }
 
 
 
 
 
 
395
  /* Get All buttons background color */
 
396
  //get facebook button image background color
397
  if($pluginOptionsVal['csbwfs_fb_bg']!=''){ $fImgbg=' style="background:'.$pluginOptionsVal['csbwfs_fb_bg'].';"';}
398
+ else{$fImgbg='';}
399
  //get twitter button image background color
400
  if($pluginOptionsVal['csbwfs_tw_bg']!=''){ $tImgbg=' style="background:'.$pluginOptionsVal['csbwfs_tw_bg'].';"';}
401
+ else{$tImgbg='';}
402
  //get linkdin button image background color
403
  if($pluginOptionsVal['csbwfs_li_bg']!=''){ $lImgbg=' style="background:'.$pluginOptionsVal['csbwfs_li_bg'].';"';}
404
+ else{$lImgbg='';}
405
  //get mail button image background color
406
  if($pluginOptionsVal['csbwfs_mail_bg']!=''){ $mImgbg=' style="background:'.$pluginOptionsVal['csbwfs_mail_bg'].';"';}
407
+ else{$mImgbg='';}
408
  //get google plus button image background color
409
  if($pluginOptionsVal['csbwfs_gp_bg']!=''){ $gImgbg=' style="background:'.$pluginOptionsVal['csbwfs_gp_bg'].';"';}
410
+ else{$gImgbg='';}
411
  //get pinterest button image background color
412
+ if($pluginOptionsVal['csbwfs_pin_bg']!=''){ $pImgbg=' style="background:'.$pluginOptionsVal['csbwfs_pin_bg'].';"';}
413
+ else{$pImgbg='';}
414
+
415
  //get youtube button image background color
416
+ if(isset($pluginOptionsVal['csbwfs_yt_bg']) && $pluginOptionsVal['csbwfs_yt_bg']!=''){ $ytImgbg=' style="background:'.$pluginOptionsVal['csbwfs_yt_bg'].';"';}else{$ytImgbg='';}
 
417
  //get reddit button image background color
418
+ if(isset($pluginOptionsVal['csbwfs_re_bg']) && $pluginOptionsVal['csbwfs_re_bg']!=''){ $reImgbg=' style="background:'.$pluginOptionsVal['csbwfs_re_bg'].';"';}else{$reImgbg='';}
 
419
  //get stumbleupon button image background color
420
+ if(isset($pluginOptionsVal['csbwfs_st_bg']) && $pluginOptionsVal['csbwfs_st_bg']!=''){ $stImgbg=' style="background:'.$pluginOptionsVal['csbwfs_st_bg'].';"';} else{$stImgbg='';}
421
+
422
  /** Message */
 
423
  if($pluginOptionsVal['csbwfs_show_btn']!=''){ $showbtn=$pluginOptionsVal['csbwfs_show_btn'];}
424
  else{$showbtn='Show Buttons';}
425
  //get show/hide button message
435
  else:
436
  $isActiveHideShowBtn='no';
437
  endif;
438
+ $flitingSidebarContent='<div id="csbwfs-delaydiv"><div class="csbwfs-social-widget" '.$idName.' title="'.$sharemsg.'" '.$style.'>';
439
 
440
  if($isActiveHideShowBtn!='yes') :
441
+ $flitingSidebarContent .= '<div class="csbwfs-show"><a href="javascript:" title="'.$showbtn.'" id="csbwfs-show"><img src="'.plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$showImg).'" alt="'.$showbtn.'"></a></div>';
442
  endif;
443
 
444
+ $flitingSidebarContent .= '<div id="csbwfs-social-inner">';
445
 
446
  /** FB */
447
  if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
448
+ $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-fb"><a href="https://www.facebook.com/sharer/sharer.php?u='.$shareurl.'" onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;" target="_blank" title="'.$fImgAlt.'" '.$fImgbg.'><img src="'.$fImg.'" alt="'.$fImgAlt.'"></a></div></div>';
449
  endif;
450
 
451
  /** TW */
452
  if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
453
+ $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-tw"><a href="javascript:" onclick="window.open(\'http://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'\',\'_blank\',\'width=800,height=300\')" title="'.$tImgAlt.'" '.$tImgbg.'><img src="'.$tImg.'" alt="'.$tImgAlt.'"></a></div></div>';
454
  endif;
455
 
456
  /** GP */
457
  if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
458
+ $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-gp"><a href="https://plus.google.com/share?url='.$shareurl.'" onclick="javascript:window.open(this.href,\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" title="'.$gImgAlt.'" '.$gImgbg.'><img src="'.$gImg.'" alt="'.$gImgAlt.'"></a></div></div>';
459
  endif;
460
 
461
  /** LI */
462
  if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
463
+ $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-li"><a href="https://www.linkedin.com/cws/share?mini=true&url='. $shareurl.'" onclick="javascript:window.open(this.href,\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" title="'.$lImgAlt.'" '.$lImgbg.'><img src="'.$lImg.'" alt="'.$lImgAlt.'"></a></div></div>';
464
  endif;
465
 
466
  /** PIN */
467
  if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
468
+ $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-pin"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&amp;media='.$pinShareImg.'&amp;description='.$ShareTitle.' :'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=800,height=500\');" href="javascript:void(0);" '.$pImgbg.' title="'.$pImgAlt.'"><img src="'.$pImg.'" alt="'.$pImgAlt.'"></a></div></div>';
469
  endif;
470
 
471
  /** YT */
472
  if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
473
+ $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" '.$ytImgbg.' title="'.$ytImgAlt.'"><img src="'.$ytImg.'" alt="'.$ytImgAlt.'"></a></div></div>';
474
  endif;
475
 
476
  /** Reddit */
477
  if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
478
+ $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-re"><a onclick="window.open(\'http://reddit.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" '.$reImgbg.' title="'.$reImgAlt.'"><img src="'.$reImg.'" alt="'.$reImgAlt.'"></a></div></div>';
479
  endif;
480
 
481
  /** Stumbleupon */
482
  if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
483
+ $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-st"><a onclick="window.open(\'http://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.'"><img src="'. $stImg.'" alt="'.$stImgAlt.'"></a></div></div>';
484
  endif;
485
 
486
  /** Mail*/
487
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
488
+ $flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'" '.$mImgbg.' ><img src="'.$mImg.'" alt="'.$mImgAlt.'"></a></div></div>';
489
  endif;
490
 
491
  $flitingSidebarContent .='</div>'; //End social-inner
492
 
493
  if($isActiveHideShowBtn!='yes') :
494
+ $flitingSidebarContent .='<div class="csbwfs-hide"><a href="javascript:" title="'.$hidebtn.'" id="csbwfs-hide"><img src="'.plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$hideImg).'" alt="'.$hidebtn.'"></a></div>';
495
  endif;
496
 
497
  $flitingSidebarContent .='</div></div>'; //End social-inner
503
  if(isset($pluginOptionsVal['csbwfs_hide_home'])){$hideOnHome=$pluginOptionsVal['csbwfs_hide_home']; }else{ $hideOnHome='';}
504
 
505
  if((is_home() && $hideOnHome=='yes' ) || (is_front_page() && $hideOnHome=='yes' )):
506
+ $flitingSidebarContent='';
507
+ endif;
508
+ /** hide on 404 pages */
509
+ if(is_404()):$flitingSidebarContent='';endif;
510
+
511
 
512
  print $flitingSidebarContent;
513
 
526
  global $post;
527
  $pluginOptionsVal=get_csbwf_sidebar_options();
528
 
529
+ /*Default Pinit Share image */
530
+ if(isset($pluginOptionsVal['csbwfs_defaultfeaturedshrimg']) && $pluginOptionsVal['csbwfs_defaultfeaturedshrimg']!=''){
531
+ $pinShareImg=$pluginOptionsVal['csbwfs_defaultfeaturedshrimg'];
532
+ }else{
533
+ $pinShareImg=plugins_url('images/mrweb-logo.jpg',__FILE__);
534
+ }
535
+
536
  if(is_category())
537
  {
538
  $category_id = get_query_var('cat');
541
  $ShareTitle=$cats[0]->name;
542
  }elseif(is_page() || is_single())
543
  {
544
+ if ( has_post_thumbnail() )
545
+ {
546
+ $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
547
+
548
+ $pinShareImg= $large_image_url[0] ;
549
+ }
550
  $shareurl=get_permalink($post->ID);
551
  $ShareTitle=$post->post_title;
552
  }
589
  //get youtube button image
590
  if(isset($pluginOptionsVal['csbwfs_yt_image']) && $pluginOptionsVal['csbwfs_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_yt_image'];}
591
  else{$ytImg=plugins_url('images/youtube-p.png',__FILE__);}
592
+ //get reddit plus button image
593
+ if(isset($pluginOptionsVal['csbwfs_re_image']) && $pluginOptionsVal['csbwfs_re_image']!=''){ $reImg=$pluginOptionsVal['csbwfs_re_image'];}
594
+ else{$reImg=plugins_url('images/reddit.png',__FILE__);}
595
+ //get stumbleupon button image
596
+ if(isset($pluginOptionsVal['csbwfs_st_image']) && $pluginOptionsVal['csbwfs_st_image']!=''){ $stImg=$pluginOptionsVal['csbwfs_st_image'];}
597
+ else{$stImg=plugins_url('images/stumbleupon.png',__FILE__);}
598
+
599
+ /* Get All buttons Image Alt/Title */
600
+ //get facebook button image alt/title
601
+ if($pluginOptionsVal['csbwfs_page_fb_title']!=''){ $fImgAlt=$pluginOptionsVal['csbwfs_page_fb_title'];}
602
+ else{$fImgAlt='Share On Facebook';}
603
+ //get twitter button image alt/title
604
+ if($pluginOptionsVal['csbwfs_page_tw_title']!=''){ $tImgAlt=$pluginOptionsVal['csbwfs_page_tw_title'];}
605
+ else{$tImgAlt='Share On Twitter';}
606
+ //get linkdin button image alt/title
607
+ if($pluginOptionsVal['csbwfs_page_li_title']!=''){ $lImgAlt=$pluginOptionsVal['csbwfs_page_li_title'];}
608
+ else{$lImgAlt='Share On Linkdin';}
609
+ //get mail button image alt/title
610
+ if($pluginOptionsVal['csbwfs_page_mail_title']!=''){ $mImgAlt=$pluginOptionsVal['csbwfs_page_mail_title'];}
611
+ else{$mImgAlt='Contact us';}
612
+ //get google plus button image alt/title
613
+ if($pluginOptionsVal['csbwfs_page_gp_title']!=''){ $gImgAlt=$pluginOptionsVal['csbwfs_page_gp_title'];}
614
+ else{$gImgAlt='Share On Google Plus';}
615
+ //get pinterest button image alt/title
616
+ if($pluginOptionsVal['csbwfs_page_pin_title']!=''){ $pImgAlt=$pluginOptionsVal['csbwfs_page_pin_title'];}
617
+ else{$pImgAlt='Share On Pinterest';}
618
+ //get youtube button image alt/title
619
+ if(isset($pluginOptionsVal['csbwfs_page_yt_title']) && $pluginOptionsVal['csbwfs_page_yt_title']!=''){ $ytImgAlt=$pluginOptionsVal['csbwfs_page_yt_title'];}
620
+ else{$ytImgAlt='Share On Youtube';}
621
+ //get reddit plus button image alt/title
622
+ if(isset($pluginOptionsVal['csbwfs_page_re_title']) && $pluginOptionsVal['csbwfs_page_re_title']!=''){ $reImgAlt=$pluginOptionsVal['csbwfs_page_re_title'];}
623
+ else{$reImgAlt='Share On Reddit';}
624
+ //get stumbleupon button image alt/title
625
+ if(isset($pluginOptionsVal['csbwfs_page_st_title']) && $pluginOptionsVal['csbwfs_page_st_title']!=''){ $stImgAlt=$pluginOptionsVal['csbwfs_page_st_title'];}
626
+ else{$stImgAlt='Share On Stumbleupon';}
627
+
628
  //get email message
629
  if(is_page() || is_single() || is_category() || is_archive()){
630
 
646
  $btnText='Share This!';
647
  endif;
648
 
649
+ $shareButtonContent='<div id="socialButtonOnPage" class="'.$btnPosition.'SocialButtonOnPage"><div class="sharethis-arrow" title="'.$btnText.'"><span>'.$btnText.'</span></div>';
650
  /* Facebook*/
651
  if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
652
  $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="fb-p"><a href="https://www.facebook.com/sharer/sharer.php?u='.$shareurl.'" onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;"
653
+ target="_blank" title="'.$fImgAlt.'"> <img src="'.$fImg.'" alt="'.$fImgAlt.'"></a></div></div>';
654
  endif;
655
 
656
  /* Twitter */
657
  if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
658
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="tw-p"><a href="javascript:" onclick="window.open(\'http://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'&nbsp;&nbsp;\', \'_blank\', \'width=800,height=300\')" title="'.$tImgAlt.'"><img src="'.$tImg.'" alt="'.$tImgAlt.'"></a></div></div>';
659
  endif;
660
 
661
  /* Google Plus */
662
  if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
663
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="gp-p"><a href="https://plus.google.com/share?url='.$shareurl.'" onclick="javascript:window.open(this.href,\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" title="'.$gImgAlt.'"> <img src="'.$gImg.'" alt="'.$gImgAlt.'"></a></div>
 
664
  </div>';
665
  endif;
666
 
667
  /* Linkedin */
668
  if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
669
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="li-p"><a href="https://www.linkedin.com/cws/share?url='.$shareurl.'" onclick="javascript:window.open(this.href,\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" title="'.$lImgAlt.'"><img src="'.$lImg.'" alt="'.$lImgAlt.'"></a></div></div>';
670
  endif;
671
 
672
  /* Pinterest */
673
  if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
674
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="pin-p"><a onclick="window.open(\'http://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.'"><img src="'.$pImg.'" alt="'.$pImgAlt.'"></a></div></div>';
675
  endif;
676
 
677
  /* Youtube */
678
  if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
679
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="yt-p"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" title="'.$ytImgAlt.'"><img src="'.$ytImg.'" alt="'.$ytImgAlt.'"></a></div></div>';
680
+ endif;
681
+ /* Stumbleen */
682
+ if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
683
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="st-p"><a onclick="window.open(\'http://www.stumbleupon.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" title="'.$stImgAlt.'"><img src="'.$stImg.'" alt="'.$stImgAlt.'"></a></div></div>';
684
+ endif;
685
+ /* Reddit */
686
+ if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
687
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="re-p"><a onclick="window.open(\'http://reddit.com/submit?url='.$shareurl.'&amp;title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" title="'.$reImgAlt.'"><img src="'.$reImg.'" alt="'.$reImgAlt.'"></a></div></div>';
688
  endif;
 
689
  /* Email */
690
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
691
+ $shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'"><img src="'.$mImg.'" alt="'.$mImgAlt.'"></a></div></div>';
692
  endif;
693
  $shareButtonContent.='</div>';
694
 
710
  if(is_archive() && $pluginOptionsVal['csbwfs_page_hide_archive']!='yes'):
711
  $shareButtonContent='';
712
  endif;
713
+ /** hide on 404 pages */
714
+ if(is_404()):
715
+ $shareButtonContent='';
716
+ endif;
717
 
718
+ /** Buttons position on content */
719
  if($shareButtonContent!=''):
720
+ return $content.$shareButtonContent;
721
+ else:
722
  return $content;
723
+ endif;
724
  }
725
 
726
  /*
css/admin-csbwfs.css CHANGED
@@ -1,4 +1,4 @@
1
  /* Custom share Buttons With Floating Sidebar (C)
2
  * Author: Raghunath Gurjar
3
  * */
4
- #csbwf-tab-menu {width:100%; padding:1%;background: none repeat scroll 0 0 #ccc;}#csbwf-tab-menu a {background: none repeat scroll 0 0 #DCA808; border: 0 none;color: #FFFFFF;display: inline-block;font-size: 16px;font-weight: bold;padding: 12px 20px;opacity:0.5;}#csbwf-tab-menu a:hover{cursor:pointer;background: none repeat scroll 0 0 #DCA808;opacity:1;}#csbwf-tab-menu a.active{ background: none repeat scroll 0 0 #DCA808;opacity:1;}#csbwf-sidebar-admin-form .submit-btn {width: 100%; display: inline-block; padding-top: 10px; margin-top: 10px; border-top: 1px dashed #DCA808;}#csbwf-sidebar-admin-form .submit-btn .button-primary{cursor:pointer;height:35px;}#csbwf-sidebar-admin-form .csbwfs-setting p label {min-width:75px;display:inline-block;}#div-csbwfs-support img {width:auto; height:auto;}#csbwf-sidebar-admin-form ul {list-style:inside}#csbwf-sidebar-admin-form #div-csbwfs-support .contact-author{ background: none repeat scroll 0 0 #DC22FF;border: 0 none;color: #FFFFFF;display: inline-block;font-size: 12px; font-weight: bold;padding: 2px 5px;text-decoration: none;}
1
  /* Custom share Buttons With Floating Sidebar (C)
2
  * Author: Raghunath Gurjar
3
  * */
4
+ #csbwf-tab-menu {width:100%; padding:1%;background: none repeat scroll 0 0 #ccc;}#csbwf-tab-menu a {background: none repeat scroll 0 0 #DCA808; border: 0 none;color: #FFFFFF;display: inline-block;font-size: 16px;font-weight: bold;padding: 12px 20px;opacity:0.5;}#csbwf-tab-menu a:hover{cursor:pointer;background: none repeat scroll 0 0 #DCA808;opacity:1;}#csbwf-tab-menu a.active{ background: none repeat scroll 0 0 #DCA808;opacity:1;}#csbwf-sidebar-admin-form .submit-btn {width: 100%; display: inline-block; padding-top: 10px; margin-top: 10px; border-top: 1px dashed #DCA808;}#csbwf-sidebar-admin-form .submit-btn .button-primary{cursor:pointer;height:35px;}#csbwf-sidebar-admin-form .csbwfs-setting p label {min-width:75px;display:inline-block;}#div-csbwfs-support img {width:10%; height:auto;}#csbwf-sidebar-admin-form ul {list-style:inside}#csbwf-sidebar-admin-form .contact-author{ background: none repeat scroll 0 0 #305891;border: 0 none;color: #FFFFFF;cursor:pointer;display: inline-block;font-size: 12px; font-weight: bold;padding: 2px 5px;text-decoration: none;}
css/csbwfs.css CHANGED
@@ -3,121 +3,42 @@
3
  * */
4
  .sbutton img {opacity:0.7;}
5
  .sbutton img:hover{opacity:1;}
6
- .csbwfs-social-widget {
7
- position: fixed;
8
- width: 50px;
9
- z-index: 99999;
10
- }
11
-
12
- .csbwfs-social-widget .csbwfs-sbutton {background: none;float: right;height: 41px;margin: 0;padding: 0;position: relative;width: 50px;}
13
- .csbwfs-sbutton img{padding:5px;}
14
-
15
- #tw a{background:none repeat scroll 0 0 #2CA8D2; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1)}
16
-
17
- #fb a{background:none repeat scroll 0 0 #305891; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1);outline:none;}
18
-
19
- #ml a{background:none repeat scroll 0 0 #738A8D; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1);outline:none;}
20
-
21
- #gp a{background:none repeat scroll 0 0 #DD4C39; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
22
-
23
- #li a{background:none repeat scroll 0 0 #007BB6; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
24
-
25
- #pin a{background:none repeat scroll 0 0 #ca2027; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
26
- #yt a{background:none repeat scroll 0 0 #ffffff; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
27
- #re a{background:none repeat scroll 0 0 #FF1A00; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
28
- #st a{background:none repeat scroll 0 0 #EB4924; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
29
-
30
-
31
-
32
- #csbwfs-right #fb a {
33
- position: absolute;
34
- right: 0;
35
-
36
- }
37
- #csbwfs-right #tw a {
38
- position: absolute;
39
- right: 0;
40
-
41
- }
42
- #csbwfs-right #gp a {
43
- position: absolute;
44
- right: 0;
45
-
46
- }
47
-
48
- #csbwfs-right #li a {
49
- position: absolute;
50
- right: 0;
51
-
52
- }
53
- #csbwfs-right #pin a {
54
- position: absolute;
55
- right: 0;
56
-
57
- }
58
- #csbwfs-right #ml a {
59
- position: absolute;
60
- right: 0;
61
-
62
- }
63
- #csbwfs-right #yt a {
64
- position: absolute;
65
- right: 0;
66
-
67
- }
68
- #csbwfs-right #re a {
69
- position: absolute;
70
- right: 0;
71
-
72
- }
73
- #csbwfs-right #st a {
74
- position: absolute;
75
- right: 0;
76
-
77
- }
78
- #csbwfs-right a#hide {padding-right:33px;}
79
- #csbwfs-right a#show {float:right;}
80
-
81
  /* Bottom Position */
82
- #csbwfs-bottom #re a, #csbwfs-bottom #st a ,#csbwfs-bottom #yt a , #csbwfs-bottom #ml a,#csbwfs-bottom #pin a,#csbwfs-bottom #gp a ,#csbwfs-bottom #tw a,#csbwfs-bottom #fb a {
83
- bottom: 0; height: 45px; border-radius: 3px 3px 0px 0px;
84
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
85
  }
86
-
87
  #csbwfs-bottom {width:100%;margin:0 auto; text-align:center; bottom: 0 !important; }
88
  #csbwfs-bottom .csbwfs-hide{display:none !important;}
89
- #csbwfs-bottom .csbwfs-sbutton{
90
- background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
91
- display: inline-block;
92
- float: none;
93
- margin: 0 auto;
94
- position: relative;
95
- width: 47px;
96
-
97
- }
98
- #csbwfs-bottom .csbwfs-sbutton img {width: 31px;
99
- height: 30px;
100
- opacity: 0.7;
101
- }
102
  #csbwfs-bottom .csbwfs-sbutton img:hover{opacity:1;}
103
- /* Share buttons CSS */
104
- /* Custom Share Buttons Style*/
105
  #socialButtonOnPage {width:100%;display:inline-block;float:left; }
106
  #socialButtonOnPage .csbwfs-sbutton-post img {width:31px; height:30px;opacity:0.7; border-radius:3px 3px 3px 3px;box-shadow:0 1px 4px rgba(0, 0, 0, 0.2);}
107
  #socialButtonOnPage .csbwfs-sbutton-post img:hover{opacity:1;}
108
  #socialButtonOnPage .sharethis-arrow span:hover{cursor:pointer;}
109
-
110
- #socialButtonOnPage .sharethis-arrow span{ color: #FFFFFF;
111
- display: inline-block;
112
- font-size: 16px;
113
- font-style: italic;
114
- font-weight: bold;}
115
-
116
  /* Left Position */
117
  .leftSocialButtonOnPage .csbwfs-sbutton-post {float:left; padding:5px 1px;}
118
  .leftSocialButtonOnPage .sharethis-arrow{float:left;padding:5px 10px 5px 1px;background:url("../images/sharethis-l.png") no-repeat scroll 0 0 #ffffff;height: 29px;padding: 0 10px 0 0;margin-top:5px;width: 120px; }
119
  .leftSocialButtonOnPage .sharethis-arrow span{ padding-left: 12px;}
120
-
121
  /* Right Position */
122
  .rightSocialButtonOnPage .csbwfs-sbutton-post {float:right; padding:5px 1px;}
123
  .rightSocialButtonOnPage .sharethis-arrow{float:right;padding:5px 1px 5px 10px;background:url("../images/sharethis-r.png") no-repeat scroll 0 0 #ffffff;height: 29px;padding: 0 0 0 10px;margin-top:5px;width: 120px; margin-left:5px;}
3
  * */
4
  .sbutton img {opacity:0.7;}
5
  .sbutton img:hover{opacity:1;}
6
+ .csbwfs-social-widget {position: fixed;width: 50px;z-index: 99999;}
7
+ .csbwfs-social-widget .csbwfs-sbutton {background: none;float: right;height: 41px;margin: 0;padding: 0;position: relative;width: 50px;}
8
+ .csbwfs-sbutton img{padding:5px;}
9
+ .csbwfs-sbutton a {text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1)}
10
+ #csbwfs-tw a{background:none repeat scroll 0 0 #2CA8D2; }
11
+ #csbwfs-fb a{background:none repeat scroll 0 0 #305891;}
12
+ #csbwfs-ml a{background:none repeat scroll 0 0 #738A8D;}
13
+ #csbwfs-gp a{background:none repeat scroll 0 0 #DD4C39; }
14
+ #csbwfs-li a{background:none repeat scroll 0 0 #007BB6;}
15
+ #csbwfs-pin a{background:none repeat scroll 0 0 #ca2027;}
16
+ #csbwfs-yt a{background:none repeat scroll 0 0 #ffffff;}
17
+ #csbwfs-re a{background:none repeat scroll 0 0 #FF1A00;}
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;}
22
+ #csbwfs-right a#csbwfs-show {float:right;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
  /* Bottom Position */
24
+ #csbwfs-bottom #re a, #csbwfs-bottom #st a ,#csbwfs-bottom #yt a , #csbwfs-bottom #ml a,#csbwfs-bottom #pin a,#csbwfs-bottom #gp a ,#csbwfs-bottom #tw a,#csbwfs-bottom #fb a ,#csbwfs-bottom #fb a {
25
+ bottom: 0; height: 45px;
 
26
  }
 
27
  #csbwfs-bottom {width:100%;margin:0 auto; text-align:center; bottom: 0 !important; }
28
  #csbwfs-bottom .csbwfs-hide{display:none !important;}
29
+ #csbwfs-bottom .csbwfs-sbutton{background: none repeat scroll 0 0 rgba(0, 0, 0, 0);display: inline-block;float: none; margin: 0 auto;position: relative;width: 45px;}
30
+ #csbwfs-bottom .csbwfs-sbutton img {width: 31px;height: 30px;opacity: 0.7;}
 
 
 
 
 
 
 
 
 
 
 
31
  #csbwfs-bottom .csbwfs-sbutton img:hover{opacity:1;}
32
+ /* Custom Share Buttons*/
 
33
  #socialButtonOnPage {width:100%;display:inline-block;float:left; }
34
  #socialButtonOnPage .csbwfs-sbutton-post img {width:31px; height:30px;opacity:0.7; border-radius:3px 3px 3px 3px;box-shadow:0 1px 4px rgba(0, 0, 0, 0.2);}
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 {float:left; padding:5px 1px;}
40
  .leftSocialButtonOnPage .sharethis-arrow{float:left;padding:5px 10px 5px 1px;background:url("../images/sharethis-l.png") no-repeat scroll 0 0 #ffffff;height: 29px;padding: 0 10px 0 0;margin-top:5px;width: 120px; }
41
  .leftSocialButtonOnPage .sharethis-arrow span{ padding-left: 12px;}
 
42
  /* Right Position */
43
  .rightSocialButtonOnPage .csbwfs-sbutton-post {float:right; padding:5px 1px;}
44
  .rightSocialButtonOnPage .sharethis-arrow{float:right;padding:5px 1px 5px 10px;background:url("../images/sharethis-r.png") no-repeat scroll 0 0 #ffffff;height: 29px;padding: 0 0 0 10px;margin-top:5px;width: 120px; margin-left:5px;}
custom-share-buttons-with-floating-sidebar.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.mrwebsolution.in/
5
  Description: "custom-share-buttons-with-floating-sidebar" is the very simple plugin for add to social share buttons with float sidebar. Even you can change the share buttons images if you wish
6
  Author: Raghunath
7
  Author URI: http://raghunathgurjar.wordpress.com
8
- Version: 1.8
9
  */
10
 
11
  /* Copyright YEAR PLUGIN_AUTHOR_NAME (email : raghunath.0087@gmail.com)
@@ -77,16 +77,32 @@ function csbwf_sidebar_init(){
77
  register_setting('csbwf_sidebar_options','csbwfs_mailMessage');
78
  register_setting('csbwf_sidebar_options','csbwfs_top_margin');
79
  register_setting('csbwf_sidebar_options','csbwfs_delayTimeBtn');
80
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
81
  //Options for post/pages
82
  register_setting('csbwf_sidebar_options','csbwfs_buttons_active');
83
  register_setting('csbwf_sidebar_options','csbwfs_page_hide_home');
84
  register_setting('csbwf_sidebar_options','csbwfs_page_hide_post');
85
  register_setting('csbwf_sidebar_options','csbwfs_page_hide_page');
86
  register_setting('csbwf_sidebar_options','csbwfs_page_hide_archive');
87
-
88
  register_setting('csbwf_sidebar_options','csbwfs_hide_home');
89
-
90
  register_setting('csbwf_sidebar_options','csbwfs_page_fb_image');
91
  register_setting('csbwf_sidebar_options','csbwfs_page_tw_image');
92
  register_setting('csbwf_sidebar_options','csbwfs_page_li_image');
@@ -97,7 +113,6 @@ function csbwf_sidebar_init(){
97
  register_setting('csbwf_sidebar_options','csbwfs_page_st_image');
98
  register_setting('csbwf_sidebar_options','csbwfs_page_yt_image');
99
  /** message content */
100
-
101
  register_setting('csbwf_sidebar_options','csbwfs_show_btn');
102
  register_setting('csbwf_sidebar_options','csbwfs_hide_btn');
103
  register_setting('csbwf_sidebar_options','csbwfs_share_msg');
@@ -118,43 +133,36 @@ if(!function_exists('csbwfs_add_settings_link')):
118
  return $links;
119
  }
120
  endif;
121
- $plugin = plugin_basename( __FILE__ );
122
- add_filter( "plugin_action_links_$plugin", 'csbwfs_add_settings_link' );
123
 
124
- add_action('admin_footer','add_csbwfs_admin_style_script');
125
 
 
126
  if(!function_exists('add_csbwfs_admin_style_script')):
127
  function add_csbwfs_admin_style_script()
128
  {
 
 
 
 
 
 
 
 
 
 
129
  wp_register_style( 'csbwf_admin_style', plugins_url( 'css/admin-csbwfs.css',__FILE__ ) );
130
  wp_enqueue_style( 'csbwf_admin_style' );
 
 
 
 
 
 
 
 
 
131
 
132
- echo $script='<script type="text/javascript">
133
- /* Custom Share Buttons With Floting Sidebar admin js*/
134
- jQuery(document).ready(function(){
135
- jQuery(".csbwfs-tab").hide();
136
- jQuery("#div-csbwfs-general").show();
137
- jQuery(".csbwf-tab-links").click(function(){
138
- var divid=jQuery(this).attr("id");
139
- jQuery(".csbwf-tab-links").removeClass("active");
140
- jQuery(".csbwfs-tab").hide();
141
- jQuery("#"+divid).addClass("active");
142
- jQuery("#div-"+divid).fadeIn();
143
- });
144
- jQuery("#publish5").click(function(){
145
- if(jQuery("#publish5").prop("checked"))
146
- {jQuery("#mailmsg").show();}else{jQuery("#mailmsg").hide();}
147
- });
148
-
149
- jQuery("#ytBtns").click(function(){
150
- if(jQuery("#ytBtns").prop("checked"))
151
- {jQuery("#ytpath").show();}else{jQuery("#ytpath").hide();}
152
- });
153
- })
154
- </script>';
155
-
156
- }
157
- endif;
158
  /** Display the Options form for CSBWFS */
159
  if(!function_exists('csbwf_sidebar_admin_option_page')):
160
  function csbwf_sidebar_admin_option_page(){ ?>
@@ -174,7 +182,7 @@ function csbwf_sidebar_admin_option_page(){ ?>
174
  <h2>General Settings</h2>
175
  <p><label>Enable:</label><input type="checkbox" id="csbwfs_active" name="csbwfs_active" value='1' <?php if(get_option('csbwfs_active')!=''){ echo ' checked="checked"'; }?>/></p>
176
  <p><h3><strong><?php _e('Social Share Button Publish Options:','csbwfs');?></strong></h3></p>
177
- <p><input type="checkbox" id="publish1" value="yes" name="csbwfs_fpublishBtn" <?php if(get_option('csbwfs_fpublishBtn')=='yes'){echo 'checked="checked"';}?>/>Facebook Button</p>
178
  <p><input type="checkbox" id="publish2" name="csbwfs_tpublishBtn" value="yes" <?php if(get_option('csbwfs_tpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Twitter Button</b></p>
179
  <p><input type="checkbox" id="publish3" name="csbwfs_gpublishBtn" value="yes" <?php if(get_option('csbwfs_gpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Google Button</b></p>
180
  <p><input type="checkbox" id="publish4" name="csbwfs_lpublishBtn" value="yes" <?php if(get_option('csbwfs_lpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Linkdin Button</b></p>
@@ -221,66 +229,53 @@ function csbwf_sidebar_admin_option_page(){ ?>
221
  <tr><th>&nbsp;</th><td><input type="checkbox" id="csbwfs_hide_home" value="yes" name="csbwfs_hide_home" <?php if(get_option('csbwfs_hide_home')!='yes'){echo '';}else{echo 'checked="checked"';}?>/> <strong>Hide Sidebar On Home Page </strong></td></tr>
222
  <tr><td colspan="2"><strong><h4>Social Share Button Images 36X34 (Optional) :</h4></strong></td></tr>
223
  <tr>
224
- <th><?php echo 'Facebook:';?></th>
225
- <td>
226
-
227
- <input type="textbox" id="csbwfs_fb_image" name="csbwfs_fb_image" value="<?php echo get_option('csbwfs_fb_image'); ?>" placeholder="Insert facebook button image path" size="30"/> <input type="textbox" id="csbwfs_fb_bg" name="csbwfs_fb_bg" value="<?php echo get_option('csbwfs_fb_bg'); ?>" placeholder="BG color:#000000" size="20"/>
228
- </td>
229
  </tr>
230
- <tr>
231
- <th><?php echo 'Twitter:';?></th>
232
- <td>
233
-
234
- <input type="textbox" id="csbwfs_tw_image" name="csbwfs_tw_image" value="<?php echo get_option('csbwfs_tw_image'); ?>" placeholder="Insert twitter button image path" size="30"/><input type="textbox" id="csbwfs_tw_bg" name="csbwfs_tw_bg" value="<?php echo get_option('csbwfs_tw_bg'); ?>" placeholder="BG color:#000000" size="20"/>
235
  </td>
236
  </tr>
237
  <tr>
238
  <th><?php echo 'Linkdin:';?></th>
239
- <td>
240
-
241
- <input type="textbox" id="csbwfs_li_image" name="csbwfs_li_image" value="<?php echo get_option('csbwfs_li_image'); ?>" placeholder="Insert linkdin button image path" size="30"/><input type="textbox" id="csbwfs_li_bg" name="csbwfs_li_bg" value="<?php echo get_option('csbwfs_li_bg'); ?>" placeholder="BG color:#000000" size="20"/>
242
  </td>
243
  </tr>
244
- <tr>
245
- <th><?php echo 'Pintrest:';?></th>
246
- <td>
247
-
248
- <input type="textbox" id="csbwfs_pin_image" name="csbwfs_pin_image" value="<?php echo get_option('csbwfs_pin_image'); ?>" placeholder="Insert pinterest button image path" size="30"/><input type="textbox" id="csbwfs_pin_bg" name="csbwfs_pin_bg" value="<?php echo get_option('csbwfs_pin_bg'); ?>" placeholder="BG color:#000000" size="20"/>
249
  </td>
250
  </tr>
251
- <tr>
252
- <th><?php echo 'Google:';?></th>
253
- <td>
254
-
255
- <input type="textbox" id="csbwfs_gp_image" name="csbwfs_gp_image" value="<?php echo get_option('csbwfs_gp_image'); ?>" placeholder="Insert google button image path" size="30"/><input type="textbox" id="csbwfs_gp_image" name="csbwfs_gp_bg" value="<?php echo get_option('csbwfs_gp_bg'); ?>" placeholder="BG color:#000000" size="20"/>
256
  </td>
257
  </tr>
258
- <tr>
259
- <th><?php echo 'Mail:';?></th>
260
- <td>
261
- <input type="textbox" id="csbwfs_mail_image" name="csbwfs_mail_image" value="<?php echo get_option('csbwfs_mail_image'); ?>" placeholder="Insert mail button image path" size="30"/> <input type="textbox" id="csbwfs_mail_bg" name="csbwfs_mail_bg" value="<?php echo get_option('csbwfs_mail_bg'); ?>" placeholder="BG color:#000000" size="20"/>
262
  </td>
263
  </tr>
264
- <tr>
265
- <th><?php echo 'Youtube:';?></th>
266
- <td>
267
- <input type="textbox" id="csbwfs_yt_image" name="csbwfs_yt_image" value="<?php echo get_option('csbwfs_yt_image'); ?>" placeholder="Insert youtube button image path" size="30"/> <input type="textbox" id="csbwfs_yt_bg" name="csbwfs_yt_bg" value="<?php echo get_option('csbwfs_yt_bg'); ?>" placeholder="BG color:#FFFFFF" size="20"/>
268
  </td>
269
  </tr>
270
- <tr>
271
- <th><?php echo 'Reddit:';?></th>
272
- <td>
273
- <input type="textbox" id="csbwfs_re_image" name="csbwfs_re_image" value="<?php echo get_option('csbwfs_re_image'); ?>" placeholder="Insert reddit button image path" size="30"/> <input type="textbox" id="csbwfs_re_bg" name="csbwfs_re_bg" value="<?php echo get_option('csbwfs_re_bg'); ?>" placeholder="BG color:#FF1A00" size="20"/>
274
  </td>
275
  </tr>
276
- <tr>
277
- <th><?php echo 'Stumbleupon:';?></th>
278
- <td>
279
- <input type="textbox" id="csbwfs_st_image" name="csbwfs_st_image" value="<?php echo get_option('csbwfs_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="30"/> <input type="textbox" id="csbwfs_st_bg" name="csbwfs_st_bg" value="<?php echo get_option('csbwfs_st_bg'); ?>" placeholder="BG color:#EB4924" size="20"/>
280
  </td>
281
- </tr>
282
-
283
-
284
  <tr><td colspan="2"><h3><strong>Style(Optional):</strong></h3></td></tr>
285
 
286
  <tr>
@@ -315,7 +310,6 @@ function csbwf_sidebar_admin_option_page(){ ?>
315
  </select>
316
  </td>
317
  </tr>
318
-
319
  <tr>
320
  <th nowrap><?php echo 'Share Button Text:';?></th>
321
  <td>
@@ -326,66 +320,64 @@ function csbwf_sidebar_admin_option_page(){ ?>
326
  </td></tr>
327
 
328
  <tr><td colspan="2"><strong><h4>Social Share Button Images 31X30 (Optional) :</h4></strong></td></tr>
329
- <tr>
330
- <th><?php echo 'Facebook:';?></th>
331
- <td>
332
-
333
- <input type="textbox" 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"/>
334
  </td>
335
  </tr>
336
  <tr>
337
  <th><?php echo 'Twitter:';?></th>
338
- <td>
339
-
340
- <input type="textbox" 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"/>
341
  </td>
342
  </tr>
343
- <tr>
344
- <th><?php echo 'Linkdin:';?></th>
345
- <td>
346
-
347
- <input type="textbox" id="csbwfs_page_li_image" name="csbwfs_page_li_image" value="<?php echo get_option('csbwfs_page_li_image'); ?>" placeholder="Insert linkdin button image path" size="40"/>
348
  </td>
349
  </tr>
350
  <tr>
351
  <th><?php echo 'Pintrest:';?></th>
352
- <td>
353
-
354
- <input type="textbox" 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"/>
355
  </td>
356
  </tr>
357
  <tr>
358
- <th><?php echo 'Google:';?></th>
359
- <td>
360
-
361
- <input type="textbox" 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"/>
362
  </td>
363
  </tr>
364
  <tr>
365
- <th><?php echo 'Mail:';?></th>
366
- <td>
367
- <input type="textbox" 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"/>
 
368
  </td>
369
  </tr>
370
  <tr>
371
- <th><?php echo 'Youtube:';?></th>
372
- <td>
373
- <input type="textbox" 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"/>
 
374
  </td>
375
  </tr>
376
  <tr>
377
- <th><?php echo 'Reddit:';?></th>
378
- <td>
379
- <input type="textbox" 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"/>
 
380
  </td>
381
  </tr>
382
  <tr>
383
- <th><?php echo 'Stumbleupon:';?></th>
384
- <td>
385
- <input type="textbox" 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"/>
 
386
  </td>
387
  </tr>
388
-
389
  </table>
390
 
391
  </div>
@@ -401,7 +393,7 @@ function csbwf_sidebar_admin_option_page(){ ?>
401
  <p><strong>My Other Plugins:</strong><br>
402
  <ul>
403
  <li><a href="https://wordpress.org/plugins/protect-wp-admin/" target="_blank">Protect WP-Admin</a></li>
404
- <li><a href="https://wordpress.org/plugins/simple-testimonial-rutator/" target="_blank">Simple Testimonial Rutator</a></li>
405
  <li><a href="https://wordpress.org/plugins/wp-easy-recipe/" target="_blank">WP Easy Recipe</a></li>
406
  <li><a href="https://wordpress.org/plugins/wp-social-buttons/" target="_blank">WP Social Buttons</a></li>
407
  <li><a href="https://wordpress.org/plugins/wp-youtube-gallery/" target="_blank">WP Youtube Gallery</a></li>
@@ -413,16 +405,22 @@ function csbwf_sidebar_admin_option_page(){ ?>
413
  <h2>GO PRO</h2>
414
  <p>We have released an add-on for Custom Share Buttons With Floating Sidebar which not only demonstrates the flexibility of CSBWFS, but also adds some important features:</p>
415
  <ol>
416
- <li> * Responsive Floating Sidebar</li>
417
- <li> * Hide Floating Sidebar On Home/Post/Page/Category</li>
418
- <li> * Responsive Lightbox Contact Form (for Mail Icon)</li>
419
- <li> * Advance Feature For Choose To Pinterest Share Image</li>
420
- <li> * Option for Show/Hide sidebar on any specific page/post</li>
421
- <li> * Option (OG Tags) for define facebook share content (image,content)</li>
422
- <li> * Faster support</li>
 
 
 
 
 
 
423
  </ol>
424
- <p><a href="http://www.gurukulalwar.com" target="_blank" style="display: block; font-size: 16px; font-weight: bold; text-decoration: none; text-align: center; width: 105px; padding: 1px; background: none repeat scroll 0px 0px red; color: rgb(255, 255, 255);">Live Demo</a></p>
425
- <p><a style="display: block; font-size: 16px; font-weight: bold; text-decoration: none; text-align: center; width: 105px; padding: 1px; background: none repeat scroll 0px 0px red; color: rgb(255, 255, 255);" href="http://www.mrwebsolution.in/wordpress-plugins/custom-share-buttons-with-floating-sidebar/">Buy Now</a></p>
426
  <p> <a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact To Author</a></p>
427
 
428
  </div>
@@ -455,7 +453,6 @@ if( function_exists('register_uninstall_hook') )
455
 
456
  //Delete all Custom Tweets options after delete the plugin from admin
457
  function csbwf_sidebar_uninstall(){
458
-
459
  delete_option('csbwfs_active');
460
  delete_option('csbbuttons_active');
461
  delete_option('csbwfs_position');
@@ -494,6 +491,15 @@ function csbwf_sidebar_uninstall(){
494
  delete_option('csbwfs_page_hide_home');
495
  delete_option('csbwfs_page_hide_post');
496
  delete_option('csbwfs_page_hide_page');
 
 
 
 
 
 
 
 
 
497
  delete_option('csbwfs_page_fb_image');
498
  delete_option('csbwfs_page_tw_image');
499
  delete_option('csbwfs_page_li_image');
5
  Description: "custom-share-buttons-with-floating-sidebar" is the very simple plugin for add to social share buttons with float sidebar. Even you can change the share buttons images if you wish
6
  Author: Raghunath
7
  Author URI: http://raghunathgurjar.wordpress.com
8
+ Version: 2.0
9
  */
10
 
11
  /* Copyright YEAR PLUGIN_AUTHOR_NAME (email : raghunath.0087@gmail.com)
77
  register_setting('csbwf_sidebar_options','csbwfs_mailMessage');
78
  register_setting('csbwf_sidebar_options','csbwfs_top_margin');
79
  register_setting('csbwf_sidebar_options','csbwfs_delayTimeBtn');
80
+ /** Image Alt */
81
+ register_setting('csbwf_sidebar_options','csbwfs_fb_title');
82
+ register_setting('csbwf_sidebar_options','csbwfs_tw_title');
83
+ register_setting('csbwf_sidebar_options','csbwfs_li_title');
84
+ register_setting('csbwf_sidebar_options','csbwfs_pin_title');
85
+ register_setting('csbwf_sidebar_options','csbwfs_gp_title');
86
+ register_setting('csbwf_sidebar_options','csbwfs_mail_title');
87
+ register_setting('csbwf_sidebar_options','csbwfs_yt_title');
88
+ register_setting('csbwf_sidebar_options','csbwfs_re_title');
89
+ register_setting('csbwf_sidebar_options','csbwfs_st_title');
90
+ register_setting('csbwf_sidebar_options','csbwfs_page_fb_title');
91
+ register_setting('csbwf_sidebar_options','csbwfs_page_tw_title');
92
+ register_setting('csbwf_sidebar_options','csbwfs_page_li_title');
93
+ register_setting('csbwf_sidebar_options','csbwfs_page_pin_title');
94
+ register_setting('csbwf_sidebar_options','csbwfs_page_gp_title');
95
+ register_setting('csbwf_sidebar_options','csbwfs_page_mail_title');
96
+ register_setting('csbwf_sidebar_options','csbwfs_page_yt_title');
97
+ register_setting('csbwf_sidebar_options','csbwfs_page_re_title');
98
+ register_setting('csbwf_sidebar_options','csbwfs_page_st_title');
99
  //Options for post/pages
100
  register_setting('csbwf_sidebar_options','csbwfs_buttons_active');
101
  register_setting('csbwf_sidebar_options','csbwfs_page_hide_home');
102
  register_setting('csbwf_sidebar_options','csbwfs_page_hide_post');
103
  register_setting('csbwf_sidebar_options','csbwfs_page_hide_page');
104
  register_setting('csbwf_sidebar_options','csbwfs_page_hide_archive');
 
105
  register_setting('csbwf_sidebar_options','csbwfs_hide_home');
 
106
  register_setting('csbwf_sidebar_options','csbwfs_page_fb_image');
107
  register_setting('csbwf_sidebar_options','csbwfs_page_tw_image');
108
  register_setting('csbwf_sidebar_options','csbwfs_page_li_image');
113
  register_setting('csbwf_sidebar_options','csbwfs_page_st_image');
114
  register_setting('csbwf_sidebar_options','csbwfs_page_yt_image');
115
  /** message content */
 
116
  register_setting('csbwf_sidebar_options','csbwfs_show_btn');
117
  register_setting('csbwf_sidebar_options','csbwfs_hide_btn');
118
  register_setting('csbwf_sidebar_options','csbwfs_share_msg');
133
  return $links;
134
  }
135
  endif;
136
+ $plugin = plugin_basename( __FILE__ );
137
+ add_filter( "plugin_action_links_$plugin", 'csbwfs_add_settings_link' );
138
 
 
139
 
140
+ if (isset($_GET['page']) && $_GET['page'] == 'csbwfs-settings') {
141
  if(!function_exists('add_csbwfs_admin_style_script')):
142
  function add_csbwfs_admin_style_script()
143
  {
144
+ wp_enqueue_style( 'wp-color-picker' );
145
+ wp_enqueue_script('media-upload');
146
+ wp_enqueue_script('thickbox');
147
+ wp_register_script('csbwfs-image-upload', plugins_url('/js/csbwfs.js',__FILE__ ), array('jquery','media-upload','thickbox','wp-color-picker'));
148
+ wp_enqueue_script('csbwfs-image-upload');
149
+
150
+ }
151
+ endif;
152
+
153
+ function csbwfs_admin_styles() {
154
  wp_register_style( 'csbwf_admin_style', plugins_url( 'css/admin-csbwfs.css',__FILE__ ) );
155
  wp_enqueue_style( 'csbwf_admin_style' );
156
+ wp_enqueue_style( 'wp-color-picker' );
157
+ wp_enqueue_style('thickbox');
158
+ }
159
+
160
+ // better use get_current_screen(); or the global $current_screen
161
+
162
+ add_action('admin_print_styles', 'csbwfs_admin_styles');
163
+ add_action('admin_footer','add_csbwfs_admin_style_script');
164
+ }
165
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
166
  /** Display the Options form for CSBWFS */
167
  if(!function_exists('csbwf_sidebar_admin_option_page')):
168
  function csbwf_sidebar_admin_option_page(){ ?>
182
  <h2>General Settings</h2>
183
  <p><label>Enable:</label><input type="checkbox" id="csbwfs_active" name="csbwfs_active" value='1' <?php if(get_option('csbwfs_active')!=''){ echo ' checked="checked"'; }?>/></p>
184
  <p><h3><strong><?php _e('Social Share Button Publish Options:','csbwfs');?></strong></h3></p>
185
+ <p><input type="checkbox" id="publish1" value="yes" name="csbwfs_fpublishBtn" <?php if(get_option('csbwfs_fpublishBtn')=='yes'){echo 'checked="checked"';}?>/><b>Facebook Button</b></p>
186
  <p><input type="checkbox" id="publish2" name="csbwfs_tpublishBtn" value="yes" <?php if(get_option('csbwfs_tpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Twitter Button</b></p>
187
  <p><input type="checkbox" id="publish3" name="csbwfs_gpublishBtn" value="yes" <?php if(get_option('csbwfs_gpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Google Button</b></p>
188
  <p><input type="checkbox" id="publish4" name="csbwfs_lpublishBtn" value="yes" <?php if(get_option('csbwfs_lpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Linkdin Button</b></p>
229
  <tr><th>&nbsp;</th><td><input type="checkbox" id="csbwfs_hide_home" value="yes" name="csbwfs_hide_home" <?php if(get_option('csbwfs_hide_home')!='yes'){echo '';}else{echo 'checked="checked"';}?>/> <strong>Hide Sidebar On Home Page </strong></td></tr>
230
  <tr><td colspan="2"><strong><h4>Social Share Button Images 36X34 (Optional) :</h4></strong></td></tr>
231
  <tr>
232
+ <th><?php echo 'Facebook:';?></th>
233
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg">
234
+ <input type="text" id="csbwfs_fb_image" name="csbwfs_fb_image" value="<?php echo get_option('csbwfs_fb_image'); ?>" placeholder="Insert facebook button image path" size="30" class="inputButtonid"/> <input id="csbwfs_fb_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_fb_bg" data-default-color="#305891" class="color-field" name="csbwfs_fb_bg" value="<?php echo get_option('csbwfs_fb_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_fb_title" name="csbwfs_fb_title" value="<?php echo get_option('csbwfs_fb_title'); ?>" placeholder="Share on facebook" size="20"/>
235
+ </td>
 
236
  </tr>
237
+ <tr><th><?php echo 'Twitter:';?></th>
238
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg">
239
+ <input type="text" id="csbwfs_tw_image" name="csbwfs_tw_image" value="<?php echo get_option('csbwfs_tw_image'); ?>" placeholder="Insert twitter button image path" size="30" class="inputButtonid"/><input id="csbwfs_tw_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_tw_bg" name="csbwfs_tw_bg" value="<?php echo get_option('csbwfs_tw_bg'); ?>" data-default-color="#2ca8d2" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_tw_title" name="csbwfs_tw_title" value="<?php echo get_option('csbwfs_tw_title'); ?>" placeholder="Share on twitter" size="20"/>
 
 
240
  </td>
241
  </tr>
242
  <tr>
243
  <th><?php echo 'Linkdin:';?></th>
244
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg">
245
+ <input type="text" id="csbwfs_li_image" name="csbwfs_li_image" value="<?php echo get_option('csbwfs_li_image'); ?>" placeholder="Insert linkdin button image path" class="inputButtonid" size="30" class="buttonimg"/><input id="csbwfs_li_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_li_bg" name="csbwfs_li_bg" value="<?php echo get_option('csbwfs_li_bg'); ?>" data-default-color="#dd4c39" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_li_title" name="csbwfs_li_title" value="<?php echo get_option('csbwfs_li_title'); ?>" placeholder="Share on linkdin" size="20"/>
 
246
  </td>
247
  </tr>
248
+ <tr><th><?php echo 'Pintrest:';?></th>
249
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg">
250
+ <input type="text" id="csbwfs_pin_image" name="csbwfs_pin_image" value="<?php echo get_option('csbwfs_pin_image'); ?>" class="inputButtonid" placeholder="Insert pinterest button image path" size="30" class="buttonimg"/><input id="csbwfs_pin_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_pin_bg" name="csbwfs_pin_bg" value="<?php echo get_option('csbwfs_pin_bg'); ?>" data-default-color="#ca2027" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_pin_title" name="csbwfs_pin_title" value="<?php echo get_option('csbwfs_pin_title'); ?>" placeholder="Share on pintrest" size="20"/>
 
 
251
  </td>
252
  </tr>
253
+ <tr><th><?php echo 'Google Plus:';?></th>
254
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsGoImg">
255
+ <input type="text" id="csbwfs_gp_image" name="csbwfs_gp_image" value="<?php echo get_option('csbwfs_gp_image'); ?>" placeholder="Insert google button image path" size="30" class="inputButtonid"/><input id="csbwfs_gp_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_gp_image" name="csbwfs_gp_bg" value="<?php echo get_option('csbwfs_gp_bg'); ?>" data-default-color="#dd4c39" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_gp_title" name="csbwfs_gp_title" value="<?php echo get_option('csbwfs_gp_title'); ?>" placeholder="Share on google" size="20"/>
 
 
256
  </td>
257
  </tr>
258
+ <tr><th><?php echo 'Reddit:';?></th>
259
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsReImg">
260
+ <input type="text" id="csbwfs_re_image" name="csbwfs_re_image" value="<?php echo get_option('csbwfs_re_image'); ?>" placeholder="Insert reddit button image path" size="30" class="inputButtonid"/><input id="csbwfs_re_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_re_bg" name="csbwfs_re_bg" value="<?php echo get_option('csbwfs_re_bg'); ?>" data-default-color="#ff1a00" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_re_title" name="csbwfs_re_title" value="<?php echo get_option('csbwfs_re_title'); ?>" placeholder="Share on reddit" size="20"/>
 
261
  </td>
262
  </tr>
263
+ <tr><th><?php echo 'Stumbleupon:';?></th>
264
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsStImg">
265
+ <input type="text" id="csbwfs_st_image" name="csbwfs_st_image" value="<?php echo get_option('csbwfs_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="30" class="inputButtonid"/><input id="csbwfs_st_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_st_bg" name="csbwfs_st_bg" value="<?php echo get_option('csbwfs_st_bg'); ?>" data-default-color="#eb4924" class="color-field" size="20"/>
266
+ &nbsp;&nbsp;<input type="text" id="csbwfs_st_title" name="csbwfs_st_title" value="<?php echo get_option('csbwfs_st_title'); ?>" placeholder="Share on stumbleupon" size="20"/>
267
  </td>
268
  </tr>
269
+ <tr><th><?php echo 'Mail:';?></th>
270
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsMaImg">
271
+ <input type="text" id="csbwfs_mail_image" name="csbwfs_mail_image" value="<?php echo get_option('csbwfs_mail_image'); ?>" placeholder="Insert mail button image path" size="30" class="inputButtonid"/><input id="csbwfs_mail_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_mail_bg" name="csbwfs_mail_bg" value="<?php echo get_option('csbwfs_mail_bg'); ?>" data-default-color="#738a8d" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_mail_title" name="csbwfs_mail_title" value="<?php echo get_option('csbwfs_mail_title'); ?>" placeholder="Send contact request" size="20"/>
 
272
  </td>
273
  </tr>
274
+ <tr><th><?php echo 'Youtube:';?></th>
275
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg">
276
+ <input type="text" id="csbwfs_yt_image" name="csbwfs_yt_image" value="<?php echo get_option('csbwfs_yt_image'); ?>" placeholder="Insert youtube button image path" size="30" class="inputButtonid"/><input id="csbwfs_yt_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_yt_bg" name="csbwfs_yt_bg" value="<?php echo get_option('csbwfs_yt_bg'); ?>" data-default-color="#ffffff" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_yt_title" name="csbwfs_yt_title" value="<?php echo get_option('csbwfs_yt_title'); ?>" placeholder="Youtube" size="20"/>
 
277
  </td>
278
+ </tr>
 
 
279
  <tr><td colspan="2"><h3><strong>Style(Optional):</strong></h3></td></tr>
280
 
281
  <tr>
310
  </select>
311
  </td>
312
  </tr>
 
313
  <tr>
314
  <th nowrap><?php echo 'Share Button Text:';?></th>
315
  <td>
320
  </td></tr>
321
 
322
  <tr><td colspan="2"><strong><h4>Social Share Button Images 31X30 (Optional) :</h4></strong></td></tr>
323
+ <tr><th><?php echo 'Facebook:';?></th>
324
+ <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"/>
325
+ <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"/>
 
 
326
  </td>
327
  </tr>
328
  <tr>
329
  <th><?php echo 'Twitter:';?></th>
330
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg2">
331
+ <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"/>
332
+ <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"/>
333
  </td>
334
  </tr>
335
+ <tr><th><?php echo 'Linkdin:';?></th>
336
+ <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 linkdin button image path" size="40" class="inputButtonid"/>
337
+ <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"/>
 
 
338
  </td>
339
  </tr>
340
  <tr>
341
  <th><?php echo 'Pintrest:';?></th>
342
+ <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"/>
343
+ <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"/>
 
344
  </td>
345
  </tr>
346
  <tr>
347
+ <th><?php echo 'Google Plus:';?></th>
348
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsGpImg2">
349
+ <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"/>
350
+ <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"/>
351
  </td>
352
  </tr>
353
  <tr>
354
+ <th><?php echo 'Reddit:';?></th>
355
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsReImg2">
356
+ <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"/>
357
+ <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"/>
358
  </td>
359
  </tr>
360
  <tr>
361
+ <th><?php echo 'Stumbleupon:';?></th>
362
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsStImg2">
363
+ <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"/>
364
+ <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"/>
365
  </td>
366
  </tr>
367
  <tr>
368
+ <th><?php echo 'Mail:';?></th>
369
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsMlImg2">
370
+ <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"/>
371
+ <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"/>
372
  </td>
373
  </tr>
374
  <tr>
375
+ <th><?php echo 'Youtube:';?></th>
376
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg2">
377
+ <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"/>
378
+ <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"/>
379
  </td>
380
  </tr>
 
381
  </table>
382
 
383
  </div>
393
  <p><strong>My Other Plugins:</strong><br>
394
  <ul>
395
  <li><a href="https://wordpress.org/plugins/protect-wp-admin/" target="_blank">Protect WP-Admin</a></li>
396
+ <li><a href="https://wordpress.org/plugins/wp-testimonial/" target="_blank">WP Testimonial</a></li>
397
  <li><a href="https://wordpress.org/plugins/wp-easy-recipe/" target="_blank">WP Easy Recipe</a></li>
398
  <li><a href="https://wordpress.org/plugins/wp-social-buttons/" target="_blank">WP Social Buttons</a></li>
399
  <li><a href="https://wordpress.org/plugins/wp-youtube-gallery/" target="_blank">WP Youtube Gallery</a></li>
405
  <h2>GO PRO</h2>
406
  <p>We have released an add-on for Custom Share Buttons With Floating Sidebar which not only demonstrates the flexibility of CSBWFS, but also adds some important features:</p>
407
  <ol>
408
+ <li>Responsive Floating Sidebar</li>
409
+ <li>Hide Floating Sidebar On Home/Post/Page/Category</li>
410
+ <li>Option for Show/Hide sidebar on any specific page/post</li>
411
+ <li>Responsive Lightbox Contact Form (for Mail Icon)</li>
412
+ <li>Option for add to “Contact Form 7″ Shortcode into lightbox</li>
413
+ <li>Advance Feature For Choose To Pinterest Share Image</li>
414
+ <li>Option (OG Tags) for define facebook share content (image,content)</li>
415
+ <li>Option for add to social site official page URL for all social buttons</li>
416
+ <li>Extra Button (Google Translate Button , Instagram Button, Whatsapp Button)</li>
417
+ <li>Option for display to number of share (Twitter,Facebook,LinkedIn,StumbleUpon,Google Plus,Pinterest and Reddit)</li>
418
+ <li>Option for change to any button image and their title,background colour and url (You can use any button as your own custom button)</li>
419
+ <li>4 Extra Custom Buttons</li>
420
+ <li>Faster support</li>
421
  </ol>
422
+ <p><a href="http://csbwfs.mrwebsolution.in/" target="_blank" class="contact-author">Live Demo</a></p>
423
+ <p><a class="contact-author" href="http://csbwfs.mrwebsolution.in/">Buy Now</a></p>
424
  <p> <a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact To Author</a></p>
425
 
426
  </div>
453
 
454
  //Delete all Custom Tweets options after delete the plugin from admin
455
  function csbwf_sidebar_uninstall(){
 
456
  delete_option('csbwfs_active');
457
  delete_option('csbbuttons_active');
458
  delete_option('csbwfs_position');
491
  delete_option('csbwfs_page_hide_home');
492
  delete_option('csbwfs_page_hide_post');
493
  delete_option('csbwfs_page_hide_page');
494
+ delete_option('csbwfs_fb_title');
495
+ delete_option('csbwfs_tw_title');
496
+ delete_option('csbwfs_li_title');
497
+ delete_option('csbwfs_pin_title');
498
+ delete_option('csbwfs_gp_title');
499
+ delete_option('csbwfs_mail_title');
500
+ delete_option('csbwfs_yt_title');
501
+ delete_option('csbwfs_re_title');
502
+ delete_option('csbwfs_st_title');
503
  delete_option('csbwfs_page_fb_image');
504
  delete_option('csbwfs_page_tw_image');
505
  delete_option('csbwfs_page_li_image');
images/hide-b.png ADDED
Binary file
images/hide-l.png ADDED
Binary file
images/hide-r.png ADDED
Binary file
js/csbwfs.js ADDED
@@ -0,0 +1,44 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Custom Share Buttons With Floting Sidebar admin js*/
2
+ jQuery(document).ready(function(){
3
+ jQuery(".csbwfs-tab").hide();
4
+ jQuery("#div-csbwfs-general").show();
5
+ jQuery(".csbwf-tab-links").click(function(){
6
+ var divid=jQuery(this).attr("id");
7
+ jQuery(".csbwf-tab-links").removeClass("active");
8
+ jQuery(".csbwfs-tab").hide();
9
+ jQuery("#"+divid).addClass("active");
10
+ jQuery("#div-"+divid).fadeIn();
11
+ });
12
+ jQuery("#publish5").click(function(){
13
+ if(jQuery("#publish5").prop("checked"))
14
+ {jQuery("#mailmsg").show();}else{jQuery("#mailmsg").hide();}
15
+ });
16
+
17
+ jQuery("#ytBtns").click(function(){
18
+ if(jQuery("#ytBtns").prop("checked"))
19
+ {jQuery("#ytpath").show();}else{jQuery("#ytpath").hide();}
20
+ });
21
+ /* add image upload image button */
22
+ jQuery(".cswbfsUploadBtn").click(function() {
23
+ var tdbuttonid = jQuery(this).parent("td").attr("id");
24
+ //alert(tdbuttonid);
25
+ inputfieldId = jQuery("#"+tdbuttonid+" .inputButtonid").attr("id");
26
+ //alert(inputfieldId);
27
+ formfield = jQuery("#"+inputfieldId).attr("name");
28
+ tb_show( "", "media-upload.php?type=image&amp;TB_iframe=true" );
29
+ return false;
30
+ });
31
+ window.send_to_editor = function(html) {
32
+ imgurl = jQuery("img",html).attr("src");
33
+ jQuery("#"+inputfieldId).val(imgurl);
34
+ tb_remove();
35
+ }
36
+ });
37
+ (function( ) {
38
+
39
+ // Add Color Picker to all inputs that have 'color-field' class
40
+ jQuery(function() {
41
+ jQuery('.color-field').wpColorPicker();
42
+ });
43
+
44
+ })( jQuery );
readme.txt CHANGED
@@ -1,22 +1,31 @@
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=WN785E5V492L4
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.0
6
- Tested up to: 4.1.1
7
- Stable tag: 1.8
8
 
9
- Add Social Share Buttons Using Floating Sidebar On Your Site (Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit)
10
 
11
  == Description ==
12
 
13
- "custom-share-buttons-with-floating-sidebar" is the very simple plugin for share your site with your friends through social sites (Facebook,Twitter,Linkedin,Pinterest,Google+,Stumbleupon,Reddit).You can add a floating sidebar with all social buttons and Even you can change the share buttons images from admin if you wish!.
14
-
15
- There are not added any external JS files in this plugin so it's does not effect on your site speed as well.
 
 
 
 
 
16
 
17
- **[Upgrade to Pro Version-Server1](http://csbwfs.mrwebsolution.in/social-share-buttons-with-floating-sidebar-pro)**
18
 
19
- **[Upgrade to Pro Version-Server2](https://raghunathgurjar.wordpress.com/csbwfs-pro/)**
 
 
 
 
20
 
21
  = Features =
22
 
@@ -38,22 +47,29 @@ We have also released an add-on for Custom Share Buttons With Floating Sidebar w
38
 
39
  * Responsive Floating Sidebar
40
  * Hide Floating Sidebar On Home/Post/Page/Category
 
41
  * Responsive Lightbox Contact Form (for Mail Icon)
42
- * Option for add to Contact Form 7 shortcode in lightbox
43
- * Advance Feature For Choose To Pinterest Share Image
44
- * Option for Show/Hide sidebar on any specific page/post
45
  * Option (OG Tags) for define facebook share content (image,content)
46
- * Option for add to social site official page URL for all social buttons
47
  * Extra Buttons (Google Translate,Instagram, Whatsapp)
 
48
  * Faster support
49
 
 
50
  **[Live Demo](http://csbwfs.mrwebsolution.in)**
51
 
52
  **[Addon Documentation](http://csbwfs.mrwebsolution.in/documentation)**
53
 
54
- **[Upgrade to Pro Version-Server1](http://csbwfs.mrwebsolution.in/social-share-buttons-with-floating-sidebar-pro)**
55
 
56
- **[Upgrade to Pro Version-Server2](https://raghunathgurjar.wordpress.com/csbwfs-pro/)**
 
 
 
 
 
57
 
58
  == Installation ==
59
 
@@ -90,7 +106,7 @@ Step 3. Go to Settings/"Custom Share Buttons with Floating Sidebar" and configur
90
 
91
  7.Is this mobile friendly OR is this responsive plugin?
92
 
93
- No,this is not a responsibe plugin but you can use our csbwfs addon, Our CSBWFS ADDON is responsive with some new extra features.Please visit on this [site](http://csbwfs.mrwebsolution.in/social-share-buttons-with-floating-sidebar-pro) for check full details about addon.
94
 
95
  8.Is there any demo site where your plugins have been used?
96
 
@@ -110,6 +126,20 @@ No,this is not a responsibe plugin but you can use our csbwfs addon, Our CSBWFS
110
 
111
  == Changelog ==
112
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
113
  = 1.8 =
114
  * Released Pro Version 1.1
115
  * Added new bottom position option for floating sidebar
@@ -120,14 +150,12 @@ No,this is not a responsibe plugin but you can use our csbwfs addon, Our CSBWFS
120
  * Added an option disable floating sidebar on home page
121
  * Fixed share url issue on home page
122
 
123
-
124
  = 1.6 =
125
  * Added new option for disable floating sidebar for mobile site
126
  * Added two new Stumbleupon and Reddit buttons
127
  * Added options for define Pinterest Share images
128
  * Fixed show/hide button issue
129
 
130
-
131
  = 1.5 =
132
  * Make plugin settings page more stylish
133
  * Added a new option for remove show/hide buttions
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, google+, share, share links,linkedin,Stumbleupon,Reddit,pinterest,floating sidebar,float,floating share buttons,float share buttons
5
+ Requires at least: 3.3
6
+ Tested up to: 4.3
7
+ Stable tag: 2.0
8
 
9
+ Add Social Share Buttons(Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit) Using Floating Sidebar
10
 
11
  == Description ==
12
 
13
+ = “custom-share-buttons-with-floating-sidebar = , it is plugin for social networks. It is very simple plugin for share your site with your friends through social sites,The plugin supports 7 social networking.
14
+ Your users share via their accounts on popular social networks such as Facebook, Twitter, Linkedin, Pinterest, Google+, Stumbleupon, Reddit.
15
+
16
+ With this plugin, you give users the tools to share your content, product details and other information with their own networks.
17
+
18
+ More than 22 billion shares are viewed each and every day on the internet, with sharing becoming an increasingly important part of every website owner’s marketing strategies.
19
+
20
+ Let your users share via their accounts on popular social networks. Install this free plugin to enable Social Sharing on your WordPress site and start driving high quality referrals to your website.
21
 
22
+ It is lightweight plugin. There are not added any external JS files in this plugin so it’s does not effect on your site speed as well.
23
 
24
+ You can add a social share floating sidebar with all social share buttons and Even you can change the share buttons images and their style from admin if you wish!.
25
+
26
+ **[Upgrade to Pro Version - Server1](http://csbwfs.mrwebsolution.in/pro)**
27
+
28
+ **[Upgrade to Pro Version - Server2](https://raghunathgurjar.wordpress.com/csbwfs-pro/)**
29
 
30
  = Features =
31
 
47
 
48
  * Responsive Floating Sidebar
49
  * Hide Floating Sidebar On Home/Post/Page/Category
50
+ * Option for Show/Hide sidebar on any specific page/post
51
  * Responsive Lightbox Contact Form (for Mail Icon)
52
+ * Option for add to Contact Form 7 Shortcode into lightbox
53
+ * Advance Feature For Choose To Pinterest Share Image
 
54
  * Option (OG Tags) for define facebook share content (image,content)
55
+ * Option for add to external social site official page URL for all social buttons
56
  * Extra Buttons (Google Translate,Instagram, Whatsapp)
57
+ * Option for display to number of share (Twitter,Facebook,LinkedIn,StumbleUpon,Google Plus,Pinterest and Reddit)
58
  * Faster support
59
 
60
+
61
  **[Live Demo](http://csbwfs.mrwebsolution.in)**
62
 
63
  **[Addon Documentation](http://csbwfs.mrwebsolution.in/documentation)**
64
 
65
+ **[Upgrade to Pro Version - Server1 ](http://csbwfs.mrwebsolution.in/pro)**
66
 
67
+ **[Upgrade to Pro Version - Server2 ](https://raghunathgurjar.wordpress.com/csbwfs-pro/)**
68
+
69
+ For any query contact to plugin author on **[raghunath.0087@gmail.com](mailto:raghunath.0087@gmail.com)**
70
+
71
+ We have released new version for Magento Site
72
+ **[Go Pro Magento Version](http://www.magentocommerce.com/magento-connect/social-share-buttons-pro.html)**
73
 
74
  == Installation ==
75
 
106
 
107
  7.Is this mobile friendly OR is this responsive plugin?
108
 
109
+ No,this is not a responsibe plugin but you can use our csbwfs addon, Our CSBWFS ADDON is responsive with some new extra features.Please visit on this [site](http://csbwfs.mrwebsolution.in/pro) for check full details about addon.
110
 
111
  8.Is there any demo site where your plugins have been used?
112
 
126
 
127
  == Changelog ==
128
 
129
+ = 2.0 =
130
+ * Fixed pinterest share image issue
131
+ * Fixed youtube buttons url issue
132
+ * modify layout of plugin settings page
133
+ * Added options for define the buttons image alt text
134
+ * Released Pro Version 1.6
135
+
136
+ = 1.9 =
137
+ * Released Pro Version 1.3
138
+ * Fixed all suggested issues by users
139
+ * Fixed css conflict issues
140
+ * Added Stumbleupon and Reddit buttons to social share buttons
141
+ * Minify CSS
142
+
143
  = 1.8 =
144
  * Released Pro Version 1.1
145
  * Added new bottom position option for floating sidebar
150
  * Added an option disable floating sidebar on home page
151
  * Fixed share url issue on home page
152
 
 
153
  = 1.6 =
154
  * Added new option for disable floating sidebar for mobile site
155
  * Added two new Stumbleupon and Reddit buttons
156
  * Added options for define Pinterest Share images
157
  * Fixed show/hide button issue
158
 
 
159
  = 1.5 =
160
  * Make plugin settings page more stylish
161
  * Added a new option for remove show/hide buttions