Custom Share Buttons with Floating Sidebar - Version 1.6

Version Description

  • Added new option for disable floating sidebar for mobile site
    • Added two new Stumbleupon and Reddit buttons
    • Added options for define Pinterest Share images
    • Fixed show/hide button issue
Download this release

Release Info

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

Code changes from version 1.5 to 1.6

csbwfs-class.php CHANGED
@@ -23,12 +23,21 @@
23
  $pluginOptionsVal=get_csbwf_sidebar_options();
24
  //check plugin in enable or not
25
  if(isset($pluginOptionsVal['csbwfs_active']) && $pluginOptionsVal['csbwfs_active']==1){
 
 
 
 
 
 
 
26
  add_action('wp_footer','get_csbwf_sidebar_content');
27
  add_action( 'wp_enqueue_scripts', 'csbwf_sidebar_scripts' );
28
  add_action('wp_footer','csbwf_sidebar_load_inline_js');
29
  add_action('wp_footer','csbwfs_cookie');
30
  }
31
 
 
 
32
  function csbwfs_cookie()
33
  {
34
  echo $cookieVal='<script>csbwfsCheckCookie();function csbwfsSetCookie(cname,cvalue,exdays) {
@@ -153,6 +162,21 @@ function csbwf_sidebar_load_inline_js()
153
  },function(){
154
  jQuery("div#yt a").stop( true, true ).animate({width:"45px"});
155
  });';
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
156
  endif;
157
 
158
  $jscnt.='jQuery("div.show").hide();
@@ -197,6 +221,13 @@ function get_csbwf_sidebar_content() {
197
  global $post;
198
  $pluginOptionsVal=get_csbwf_sidebar_options();
199
 
 
 
 
 
 
 
 
200
  if(is_category())
201
  {
202
  $category_id = get_query_var('cat');
@@ -205,6 +236,13 @@ if(is_category())
205
  $ShareTitle=$cats[0]->name;
206
  }elseif(is_page() || is_single())
207
  {
 
 
 
 
 
 
 
208
  $shareurl=get_permalink($post->ID);
209
  $ShareTitle=$post->post_title;
210
  }
@@ -235,6 +273,8 @@ if(is_category())
235
  }
236
  $ShareTitle= htmlspecialchars(urlencode($ShareTitle));
237
 
 
 
238
  /* Get All buttons Image */
239
 
240
  //get facebook button image
@@ -260,7 +300,15 @@ if($pluginOptionsVal['csbwfs_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_p
260
  //get youtube button image
261
  if(isset($pluginOptionsVal['csbwfs_yt_image']) && $pluginOptionsVal['csbwfs_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_yt_image'];}
262
  else{$ytImg=plugins_url('images/youtube.png',__FILE__);}
 
 
 
 
263
 
 
 
 
 
264
  //get email message
265
  if(is_page() || is_single() || is_category() || is_archive()){
266
 
@@ -321,7 +369,12 @@ if($pluginOptionsVal['csbwfs_pin_bg']!=''){ $pImgbg=' style="background:'.$plugi
321
  //get youtube button image background color
322
  if(isset($pluginOptionsVal['csbwfs_yt_bg']) && $pluginOptionsVal['csbwfs_yt_bg']!=''){ $ytImgbg=' style="background:'.$pluginOptionsVal['csbwfs_yt_bg'].';"';}
323
  else{$ytImgbg='';}
324
-
 
 
 
 
 
325
  /** Message */
326
 
327
  if($pluginOptionsVal['csbwfs_show_btn']!=''){ $showbtn=$pluginOptionsVal['csbwfs_show_btn'];}
@@ -331,8 +384,8 @@ if($pluginOptionsVal['csbwfs_hide_btn']!=''){ $hidebtn=$pluginOptionsVal['csbwfs
331
  else{$hidebtn='Hide Buttons';}
332
  //get mail button message
333
  if($pluginOptionsVal['csbwfs_share_msg']!=''){ $sharemsg=$pluginOptionsVal['csbwfs_share_msg'];}
334
- else{$sharemsg='Share This With Your Friends';}
335
- /** Check display Show/Hide button or not*/
336
  if(isset($pluginOptionsVal['csbwfs_rmSHBtn']) && $pluginOptionsVal['csbwfs_rmSHBtn']!=''):
337
  $isActiveHideShowBtn='yes';
338
  else:
@@ -341,9 +394,11 @@ endif;
341
  ?>
342
  <div id="delaydiv">
343
  <div class='social-widget' <?php echo $idName;?> title="<?php echo $sharemsg; ?>" <?php echo $style;?> >
 
344
  <?php if($isActiveHideShowBtn!='yes') :?>
345
  <div class="show"><a href="javascript:" alt="<?php echo $showbtn;?>" id="show"><img src="<?php echo plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$showImg);?>" title="<?php echo $showbtn;?>"></a></div>
346
- <? endif; ?>
 
347
  <div id="social-inner">
348
  <?php if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):?>
349
  <!-- Facebook -->
@@ -381,7 +436,7 @@ endif;
381
  <!-- Pinterest -->
382
  <div class="sbutton">
383
 
384
- <div id="pin"><a onclick="window.open('http://pinterest.com/pin/create/button/?url=<?php echo $shareurl;?>&amp;media=http://www.mrwebsolution.in/wp-content/uploads/2014/10/latest-logo1.jpg&amp;description=<?php echo $ShareTitle;?> :<?php echo $shareurl;?>','pinIt','toolbar=0,status=0,width=620,height=500');" href="javascript:void(0);" <?php echo $pImgbg;?>><img src="<?php echo $pImg;?>"></a></div>
385
  </div>
386
  <?php endif;?>
387
 
@@ -392,11 +447,23 @@ endif;
392
  <div id="yt"><a onclick="window.open('<?php echo $pluginOptionsVal['csbwfs_ytPath'];?>');" href="javascript:void(0);" <?php echo $ytImgbg;?>><img src="<?php echo $ytImg;?>"></a></div>
393
  </div>
394
  <?php endif;?>
395
-
 
 
 
 
 
 
 
 
 
 
 
 
396
  <?php if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):?>
397
  <!-- Mail-->
398
  <div class="sbutton">
399
- <div id="ml"><a href="mailto:<?php echo $mailMsg;?>" alt="Email" <?php echo $mImgbg;?>><img src="<?php echo $mImg;?>"></a></div>
400
  </div>
401
  <?php endif;?>
402
 
@@ -520,7 +587,7 @@ endif;
520
 
521
  /* Email */
522
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
523
- $shareButtonContent.='<div class="sbutton-post"><div id="ml-p"><a href="mailto:'.$mailMsg.'" alt="Email"><img src="'.$mImg.'"></a></div></div>';
524
  endif;
525
  $shareButtonContent.='</div>';
526
 
@@ -549,4 +616,36 @@ $shareButtonContent.='</div>';
549
  return $content;
550
  endif;
551
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
552
  ?>
23
  $pluginOptionsVal=get_csbwf_sidebar_options();
24
  //check plugin in enable or not
25
  if(isset($pluginOptionsVal['csbwfs_active']) && $pluginOptionsVal['csbwfs_active']==1){
26
+
27
+ if((isMobile()) &&
28
+ isset($pluginOptionsVal['csbwfs_deactive_for_mob']) && $pluginOptionsVal['csbwfs_deactive_for_mob']!='')
29
+ {
30
+ // silent is Gold;
31
+ }else
32
+ {
33
  add_action('wp_footer','get_csbwf_sidebar_content');
34
  add_action( 'wp_enqueue_scripts', 'csbwf_sidebar_scripts' );
35
  add_action('wp_footer','csbwf_sidebar_load_inline_js');
36
  add_action('wp_footer','csbwfs_cookie');
37
  }
38
 
39
+ }
40
+
41
  function csbwfs_cookie()
42
  {
43
  echo $cookieVal='<script>csbwfsCheckCookie();function csbwfsSetCookie(cname,cvalue,exdays) {
162
  },function(){
163
  jQuery("div#yt a").stop( true, true ).animate({width:"45px"});
164
  });';
165
+ endif;
166
+ if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
167
+ $jscnt.='jQuery("div#re a").hover(function(){
168
+ jQuery("div#re a").animate({width:"60px"});
169
+ },function(){
170
+ jQuery("div#re a").stop( true, true ).animate({width:"45px"});
171
+ });';
172
+ endif;
173
+
174
+ if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
175
+ $jscnt.='jQuery("div#st a").hover(function(){
176
+ jQuery("div#st a").animate({width:"60px"});
177
+ },function(){
178
+ jQuery("div#st a").stop( true, true ).animate({width:"45px"});
179
+ });';
180
  endif;
181
 
182
  $jscnt.='jQuery("div.show").hide();
221
  global $post;
222
  $pluginOptionsVal=get_csbwf_sidebar_options();
223
 
224
+ /*Default Pinit Share image */
225
+ if(isset($pluginOptionsVal['csbwfs_defaultfeaturedshrimg']) && $pluginOptionsVal['csbwfs_defaultfeaturedshrimg']!=''){
226
+ $pinShareImg=$pluginOptionsVal['csbwfs_defaultfeaturedshrimg'];
227
+ }else{
228
+ $pinShareImg=plugins_url('images/mrweb-logo.jpg',__FILE__);
229
+ }
230
+
231
  if(is_category())
232
  {
233
  $category_id = get_query_var('cat');
236
  $ShareTitle=$cats[0]->name;
237
  }elseif(is_page() || is_single())
238
  {
239
+ if ( has_post_thumbnail() )
240
+ {
241
+ $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
242
+
243
+ $pinShareImg= $large_image_url[0] ;
244
+ }
245
+
246
  $shareurl=get_permalink($post->ID);
247
  $ShareTitle=$post->post_title;
248
  }
273
  }
274
  $ShareTitle= htmlspecialchars(urlencode($ShareTitle));
275
 
276
+
277
+
278
  /* Get All buttons Image */
279
 
280
  //get facebook button image
300
  //get youtube button image
301
  if(isset($pluginOptionsVal['csbwfs_yt_image']) && $pluginOptionsVal['csbwfs_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_yt_image'];}
302
  else{$ytImg=plugins_url('images/youtube.png',__FILE__);}
303
+
304
+ //get reddit plus button image
305
+ if(isset($pluginOptionsVal['csbwfs_re_image']) && $pluginOptionsVal['csbwfs_re_image']!=''){ $reImg=$pluginOptionsVal['csbwfs_re_image'];}
306
+ else{$reImg=plugins_url('images/reddit.png',__FILE__);}
307
 
308
+ //get stumbleupon button image
309
+ if(isset($pluginOptionsVal['csbwfs_st_image']) && $pluginOptionsVal['csbwfs_st_image']!=''){ $stImg=$pluginOptionsVal['csbwfs_st_image'];}
310
+ else{$stImg=plugins_url('images/stumbleupon.png',__FILE__);}
311
+
312
  //get email message
313
  if(is_page() || is_single() || is_category() || is_archive()){
314
 
369
  //get youtube button image background color
370
  if(isset($pluginOptionsVal['csbwfs_yt_bg']) && $pluginOptionsVal['csbwfs_yt_bg']!=''){ $ytImgbg=' style="background:'.$pluginOptionsVal['csbwfs_yt_bg'].';"';}
371
  else{$ytImgbg='';}
372
+ //get reddit button image background color
373
+ if(isset($pluginOptionsVal['csbwfs_re_bg']) && $pluginOptionsVal['csbwfs_re_bg']!=''){ $reImgbg=' style="background:'.$pluginOptionsVal['csbwfs_re_bg'].';"';}
374
+ else{$reImgbg='';}
375
+ //get stumbleupon button image background color
376
+ if(isset($pluginOptionsVal['csbwfs_st_bg']) && $pluginOptionsVal['csbwfs_st_bg']!=''){ $stImgbg=' style="background:'.$pluginOptionsVal['csbwfs_st_bg'].';"';}
377
+ else{$stImgbg='';}
378
  /** Message */
379
 
380
  if($pluginOptionsVal['csbwfs_show_btn']!=''){ $showbtn=$pluginOptionsVal['csbwfs_show_btn'];}
384
  else{$hidebtn='Hide Buttons';}
385
  //get mail button message
386
  if($pluginOptionsVal['csbwfs_share_msg']!=''){ $sharemsg=$pluginOptionsVal['csbwfs_share_msg'];}
387
+ else{$sharemsg='Share This With Your Friends';}
388
+ /** Check display Show/Hide button or not*/
389
  if(isset($pluginOptionsVal['csbwfs_rmSHBtn']) && $pluginOptionsVal['csbwfs_rmSHBtn']!=''):
390
  $isActiveHideShowBtn='yes';
391
  else:
394
  ?>
395
  <div id="delaydiv">
396
  <div class='social-widget' <?php echo $idName;?> title="<?php echo $sharemsg; ?>" <?php echo $style;?> >
397
+
398
  <?php if($isActiveHideShowBtn!='yes') :?>
399
  <div class="show"><a href="javascript:" alt="<?php echo $showbtn;?>" id="show"><img src="<?php echo plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$showImg);?>" title="<?php echo $showbtn;?>"></a></div>
400
+ <?php endif;?>
401
+
402
  <div id="social-inner">
403
  <?php if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):?>
404
  <!-- Facebook -->
436
  <!-- Pinterest -->
437
  <div class="sbutton">
438
 
439
+ <div id="pin"><a onclick="window.open('http://pinterest.com/pin/create/button/?url=<?php echo $shareurl;?>&amp;media=<?php echo $pinShareImg;?>&amp;description=<?php echo $ShareTitle;?> :<?php echo $shareurl;?>','pinIt','toolbar=0,status=0,width=620,height=500');" href="javascript:void(0);" <?php echo $pImgbg;?>><img src="<?php echo $pImg;?>"></a></div>
440
  </div>
441
  <?php endif;?>
442
 
447
  <div id="yt"><a onclick="window.open('<?php echo $pluginOptionsVal['csbwfs_ytPath'];?>');" href="javascript:void(0);" <?php echo $ytImgbg;?>><img src="<?php echo $ytImg;?>"></a></div>
448
  </div>
449
  <?php endif;?>
450
+ <?php if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):?>
451
+ <!-- Reddit -->
452
+ <div class="sbutton">
453
+ <div id="re"><a onclick="window.open('http://reddit.com/submit?url=<?php echo $shareurl;?>&amp;title=<?php echo $ShareTitle;?>','Stumbleupon','toolbar=0,status=0,width=620,height=500');" href="javascript:void(0);" <?php echo $reImgbg;?>><img src="<?php echo $reImg;?>"></a></div>
454
+ </div>
455
+ <?php endif;?>
456
+ <?php if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):?>
457
+ <!-- Stumbleupon -->
458
+ <div class="sbutton">
459
+
460
+ <div id="st"><a onclick="window.open('http://www.stumbleupon.com/submit?url=<?php echo $shareurl;?>&amp;title=<?php echo $ShareTitle;?>','Stumbleupon','toolbar=0,status=0,width=620,height=500');" href="javascript:void(0);" <?php echo $stImgbg;?>><img src="<?php echo $stImg;?>"></a></div>
461
+ </div>
462
+ <?php endif;?>
463
  <?php if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):?>
464
  <!-- Mail-->
465
  <div class="sbutton">
466
+ <div id="ml"><a href="mailto:<?php echo $mailMsg;?>" alt="Email" <?php echo $mImgbg;?>><img src="<?php echo $mImg;?>" target="_blank"></a></div>
467
  </div>
468
  <?php endif;?>
469
 
587
 
588
  /* Email */
589
  if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
590
+ $shareButtonContent.='<div class="sbutton-post"><div id="ml-p"><a target="_blank" href="mailto:'.$mailMsg.'" alt="Email"><img src="'.$mImg.'"></a></div></div>';
591
  endif;
592
  $shareButtonContent.='</div>';
593
 
616
  return $content;
617
  endif;
618
  }
619
+
620
+ /*
621
+ * Site is browsing in mobile or not
622
+ * @IsMobile()
623
+ * */
624
+ function isMobile() {
625
+ // Check the server headers to see if they're mobile friendly
626
+ if(isset($_SERVER["HTTP_X_WAP_PROFILE"])) {
627
+ return true;
628
+ }
629
+ // Let's NOT return "mobile" if it's an iPhone, because the iPhone can render normal pages quite well.
630
+ if(strstr($_SERVER['HTTP_USER_AGENT'], 'iPad')) {
631
+ return false;
632
+ }
633
+ // If the http_accept header supports wap then it's a mobile too
634
+ if(preg_match("/wap\.|\.wap/i",$_SERVER["HTTP_ACCEPT"])) {
635
+ return true;
636
+ }
637
+ // Still no luck? Let's have a look at the user agent on the browser. If it contains
638
+ // any of the following, it's probably a mobile device. Kappow!
639
+ if(isset($_SERVER["HTTP_USER_AGENT"])){
640
+ $user_agents = array("midp", "j2me", "avantg", "docomo", "novarra", "palmos", "palmsource", "240x320", "opwv", "chtml", "pda", "windows\ ce", "mmp\/", "blackberry", "mib\/", "symbian", "wireless", "nokia", "hand", "mobi", "phone", "cdm", "up\.b", "audio", "SIE\-", "SEC\-", "samsung", "HTC", "mot\-", "mitsu", "sagem", "sony", "alcatel", "lg", "erics", "vx", "NEC", "philips", "mmm", "xx", "panasonic", "sharp", "wap", "sch", "rover", "pocket", "benq", "java", "pt", "pg", "vox", "amoi", "bird", "compal", "kg", "voda", "sany", "kdd", "dbt", "sendo", "sgh", "gradi", "jb", "\d\d\di", "moto");
641
+ foreach($user_agents as $user_string){
642
+ if(preg_match("/".$user_string."/i",$_SERVER["HTTP_USER_AGENT"])) {
643
+ return true;
644
+ }
645
+ }
646
+ }
647
+ // None of the above? Then it's probably not a mobile device.
648
+ return false;
649
+ }
650
+
651
  ?>
css/csbwfs.css CHANGED
@@ -32,6 +32,11 @@ width: 50px;
32
 
33
  #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;}
34
  #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;}
 
 
 
 
 
35
  #csbwfs-right #fb a {
36
  position: absolute;
37
  right: 0;
@@ -67,6 +72,16 @@ width: 50px;
67
  position: absolute;
68
  right: 0;
69
 
 
 
 
 
 
 
 
 
 
 
70
  }
71
  #csbwfs-right a#hide {padding-right:33px;}
72
  #csbwfs-right a#show {float:right;}
32
 
33
  #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;}
34
  #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;}
35
+ #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;}
36
+ #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;}
37
+
38
+
39
+
40
  #csbwfs-right #fb a {
41
  position: absolute;
42
  right: 0;
72
  position: absolute;
73
  right: 0;
74
 
75
+ }
76
+ #csbwfs-right #re a {
77
+ position: absolute;
78
+ right: 0;
79
+
80
+ }
81
+ #csbwfs-right #st a {
82
+ position: absolute;
83
+ right: 0;
84
+
85
  }
86
  #csbwfs-right a#hide {padding-right:33px;}
87
  #csbwfs-right a#show {float:right;}
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.5
9
  */
10
 
11
  /* Copyright YEAR PLUGIN_AUTHOR_NAME (email : raghunath.0087@gmail.com)
@@ -25,18 +25,20 @@ Version: 1.5
25
  */
26
 
27
  //Admin "Custom Share Buttons with Floating Sidebar" Menu Item
28
- add_action('admin_menu','csbwf_sidebar_menu');
29
 
 
 
30
  function csbwf_sidebar_menu(){
31
 
32
  add_options_page('Custom Share Buttons With Floating Sidebar','Custom Share Buttons With Floating Sidebar','manage_options','csbwfs-settings','csbwf_sidebar_admin_option_page');
33
 
34
  }
 
35
 
36
  //Define Action for register "Custom Share Buttons with Floating Sidebar" Options
37
  add_action('admin_init','csbwf_sidebar_init');
38
 
39
-
40
  //Register "Custom Share Buttons with Floating Sidebar" options
41
  function csbwf_sidebar_init(){
42
 
@@ -47,6 +49,8 @@ function csbwf_sidebar_init(){
47
  register_setting('csbwf_sidebar_options','csbwfs_fb_image');
48
  register_setting('csbwf_sidebar_options','csbwfs_tw_image');
49
  register_setting('csbwf_sidebar_options','csbwfs_li_image');
 
 
50
  register_setting('csbwf_sidebar_options','csbwfs_mail_image');
51
  register_setting('csbwf_sidebar_options','csbwfs_gp_image');
52
  register_setting('csbwf_sidebar_options','csbwfs_pin_image');
@@ -56,13 +60,17 @@ function csbwf_sidebar_init(){
56
  register_setting('csbwf_sidebar_options','csbwfs_li_bg');
57
  register_setting('csbwf_sidebar_options','csbwfs_mail_bg');
58
  register_setting('csbwf_sidebar_options','csbwfs_gp_bg');
59
- register_setting('csbwf_sidebar_options','csbwfs_pin_bg');
 
 
60
  register_setting('csbwf_sidebar_options','csbwfs_yt_bg');
61
  register_setting('csbwf_sidebar_options','csbwfs_fpublishBtn');
62
  register_setting('csbwf_sidebar_options','csbwfs_tpublishBtn');
63
  register_setting('csbwf_sidebar_options','csbwfs_gpublishBtn');
64
  register_setting('csbwf_sidebar_options','csbwfs_ppublishBtn');
65
- register_setting('csbwf_sidebar_options','csbwfs_ytpublishBtn');
 
 
66
  register_setting('csbwf_sidebar_options','csbwfs_ytPath');
67
  register_setting('csbwf_sidebar_options','csbwfs_lpublishBtn');
68
  register_setting('csbwf_sidebar_options','csbwfs_mpublishBtn');
@@ -83,6 +91,8 @@ function csbwf_sidebar_init(){
83
  register_setting('csbwf_sidebar_options','csbwfs_page_mail_image');
84
  register_setting('csbwf_sidebar_options','csbwfs_page_gp_image');
85
  register_setting('csbwf_sidebar_options','csbwfs_page_pin_image');
 
 
86
  register_setting('csbwf_sidebar_options','csbwfs_page_yt_image');
87
  /** message content */
88
 
@@ -90,23 +100,28 @@ function csbwf_sidebar_init(){
90
  register_setting('csbwf_sidebar_options','csbwfs_hide_btn');
91
  register_setting('csbwf_sidebar_options','csbwfs_share_msg');
92
  register_setting('csbwf_sidebar_options','csbwfs_rmSHBtn');
 
 
 
93
 
94
  }
95
 
 
96
 
 
97
  // Add settings link to plugin list page in admin
98
  function csbwfs_add_settings_link( $links ) {
99
  $settings_link = '<a href="options-general.php?page=csbwfs-settings">' . __( 'Settings', 'csbwfs' ) . '</a>';
100
  array_unshift( $links, $settings_link );
101
  return $links;
102
  }
103
-
104
  $plugin = plugin_basename( __FILE__ );
105
  add_filter( "plugin_action_links_$plugin", 'csbwfs_add_settings_link' );
106
 
107
  add_action('admin_footer','add_csbwfs_admin_style_script');
108
 
109
-
110
  function add_csbwfs_admin_style_script()
111
  {
112
  wp_register_style( 'csbwf_admin_style', plugins_url( 'css/admin-csbwfs.css',__FILE__ ) );
@@ -137,9 +152,9 @@ echo $script='<script type="text/javascript">
137
  </script>';
138
 
139
  }
140
-
141
  /** Display the Options form for CSBWFS */
142
-
143
  function csbwf_sidebar_admin_option_page(){ ?>
144
 
145
  <div style="width: 80%; padding: 10px; margin: 10px;">
@@ -162,6 +177,8 @@ function csbwf_sidebar_admin_option_page(){ ?>
162
  <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>
163
  <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>
164
  <p><input type="checkbox" id="publish6" name="csbwfs_ppublishBtn" value="yes" <?php if(get_option('csbwfs_ppublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Pinterest Button</b></p>
 
 
165
  <p><input type="checkbox" id="publish5" name="csbwfs_mpublishBtn" value="yes" <?php if(get_option('csbwfs_mpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Mailbox Button</b></p>
166
  <?php if(get_option('csbwfs_mpublishBtn')=='yes'){?>
167
  <p id="mailmsg"><input type="text" name="csbwfs_mailMessage" id="csbwfs_mailMessage" value="<?php echo get_option('csbwfs_mailMessage');?>" placeholder="raghunath.0087@gmail.com" size="40" class="regular-text ltr"><br>Note:add the mail message like this format <b>your@email.com?subject=Your Subject</b></p>
@@ -171,10 +188,14 @@ function csbwf_sidebar_admin_option_page(){ ?>
171
  <p id="ytpath"><input type="text" name="csbwfs_ytPath" id="csbwfs_ytPath" value="<?php echo get_option('csbwfs_ytPath');?>" placeholder="http://www.youtube.com" size="40" class="regular-text ltr"><br>add youtube channel url</p>
172
  <?php } ?>
173
 
 
174
  <p><label><h3 ><strong><?php _e('Define your custom message:','csbwfs');?></strong></h3></label></p>
175
  <p><label><?php _e('Show:');?></label><input type="text" id="csbwfs_show_btn" name="csbwfs_show_btn" value="<?php echo get_option('csbwfs_show_btn'); ?>" placeholder="Show Buttons" size="40"/></p>
176
  <p><label><?php _e('Hide:');?></label><input type="text" id="csbwfs_hide_btn" name="csbwfs_hide_btn" value="<?php echo get_option('csbwfs_hide_btn'); ?>" placeholder="Hide Buttons" size="40"/></p>
177
  <p><label><?php _e('Message:');?></label><input type="textbox" id="csbwfs_share_msg" name="csbwfs_share_msg" value="<?php echo get_option('csbwfs_share_msg'); ?>" placeholder="Share This With Your Friends" size="40"/></p>
 
 
 
178
  </div>
179
  <!-- Floating Sidebar -->
180
  <div class="csbwfs-tab" id="div-csbwfs-sidebar">
@@ -190,7 +211,11 @@ function csbwf_sidebar_admin_option_page(){ ?>
190
  </td>
191
  </tr>
192
  <tr><th nowrap valign="top"><?php echo 'Delay Time: '; ?></th><td><input type="text" name="csbwfs_delayTimeBtn" id="csbwfs_delayTimeBtn" value="<?php echo get_option('csbwfs_delayTimeBtn')?get_option('csbwfs_delayTimeBtn'):0;?>" size="40" class="regular-text ltr"><br><i>Publish share buttons after given time(millisecond)</i></td></tr>
193
- <tr><td colspan="2"><strong><h4>Social Share Button Images 36X3 (Optional) :</h4></strong></td></tr>
 
 
 
 
194
  <tr>
195
  <th><?php echo 'Facebook:';?></th>
196
  <td>
@@ -235,10 +260,24 @@ function csbwf_sidebar_admin_option_page(){ ?>
235
  <tr>
236
  <th><?php echo 'Youtube:';?></th>
237
  <td>
238
- <input type="textbox" id="csbwfs_yt_image" name="csbwfs_yt_image" value="<?php echo get_option('csbwfs_mail_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"/>
239
  </td>
240
  </tr>
241
- <tr><td colspan="2"><h4><strong>Style(Optional):</strong></h4></td></tr>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
242
 
243
  <tr>
244
  <th><?php echo 'Top Margin:';?></th>
@@ -248,9 +287,10 @@ function csbwf_sidebar_admin_option_page(){ ?>
248
  </td>
249
  </tr>
250
  <tr>
251
- <th><strong><?php _e('Remove Show/Hide Button:','csbwfs');?></strong></th>
252
- <td><input type="checkbox" id="csbwfs_rmSHBtn" name="csbwfs_rmSHBtn" value="yes" <?php if(get_option('csbwfs_rmSHBtn')=='yes'){echo 'checked="checked"';}?>/></td>
253
  </tr>
 
254
  </table>
255
  </div>
256
  <!-- Share Buttons -->
@@ -329,6 +369,18 @@ function csbwf_sidebar_admin_option_page(){ ?>
329
  <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"/>
330
  </td>
331
  </tr>
 
 
 
 
 
 
 
 
 
 
 
 
332
 
333
  </table>
334
 
@@ -364,6 +416,7 @@ function csbwf_sidebar_admin_option_page(){ ?>
364
 
365
  <?php
366
  }
 
367
 
368
  require dirname(__FILE__).'/csbwfs-class.php';
369
 
@@ -388,10 +441,14 @@ function csbwf_sidebar_uninstall(){
388
  delete_option('csbwfs_fb_image');
389
  delete_option('csbwfs_tw_image');
390
  delete_option('csbwfs_li_image');
 
 
391
  delete_option('csbwfs_mail_image');
392
  delete_option('csbwfs_gp_image');
393
  delete_option('csbwfs_pin_image');
394
- delete_option('csbwfs_yt_image');
 
 
395
  delete_option('csbwfs_ytPath');
396
  delete_option('csbwfs_fb_bg');
397
  delete_option('csbwfs_tw_bg');
@@ -405,7 +462,9 @@ function csbwf_sidebar_uninstall(){
405
  delete_option('csbwfs_gpublishBtn');
406
  delete_option('csbwfs_ppublishBtn');
407
  delete_option('csbwfs_lpublishBtn');
408
- delete_option('csbwfs_mpublishBtn');
 
 
409
  delete_option('csbwfs_ytpublishBtn');
410
  delete_option('csbwfs_mailMessage');
411
  delete_option('csbwfs_top_margin');
@@ -415,11 +474,16 @@ function csbwf_sidebar_uninstall(){
415
  delete_option('csbwfs_page_fb_image');
416
  delete_option('csbwfs_page_tw_image');
417
  delete_option('csbwfs_page_li_image');
 
 
418
  delete_option('csbwfs_page_mail_image');
419
  delete_option('csbwfs_page_gp_image');
420
  delete_option('csbwfs_page_pin_image');
421
  delete_option('csbwfs_page_yt_image');
422
- delete_option('csbwfs_rmSHBtn');
 
 
 
423
 
424
  }
425
  ?>
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.6
9
  */
10
 
11
  /* Copyright YEAR PLUGIN_AUTHOR_NAME (email : raghunath.0087@gmail.com)
25
  */
26
 
27
  //Admin "Custom Share Buttons with Floating Sidebar" Menu Item
 
28
 
29
+ if(!function_exists('csbwf_sidebar_menu')){
30
+ add_action('admin_menu','csbwf_sidebar_menu');
31
  function csbwf_sidebar_menu(){
32
 
33
  add_options_page('Custom Share Buttons With Floating Sidebar','Custom Share Buttons With Floating Sidebar','manage_options','csbwfs-settings','csbwf_sidebar_admin_option_page');
34
 
35
  }
36
+ }
37
 
38
  //Define Action for register "Custom Share Buttons with Floating Sidebar" Options
39
  add_action('admin_init','csbwf_sidebar_init');
40
 
41
+ if(!function_exists('csbwf_sidebar_init')):
42
  //Register "Custom Share Buttons with Floating Sidebar" options
43
  function csbwf_sidebar_init(){
44
 
49
  register_setting('csbwf_sidebar_options','csbwfs_fb_image');
50
  register_setting('csbwf_sidebar_options','csbwfs_tw_image');
51
  register_setting('csbwf_sidebar_options','csbwfs_li_image');
52
+ register_setting('csbwf_sidebar_options','csbwfs_re_image');
53
+ register_setting('csbwf_sidebar_options','csbwfs_st_image');
54
  register_setting('csbwf_sidebar_options','csbwfs_mail_image');
55
  register_setting('csbwf_sidebar_options','csbwfs_gp_image');
56
  register_setting('csbwf_sidebar_options','csbwfs_pin_image');
60
  register_setting('csbwf_sidebar_options','csbwfs_li_bg');
61
  register_setting('csbwf_sidebar_options','csbwfs_mail_bg');
62
  register_setting('csbwf_sidebar_options','csbwfs_gp_bg');
63
+ register_setting('csbwf_sidebar_options','csbwfs_pin_bg');
64
+ register_setting('csbwf_sidebar_options','csbwfs_re_bg');
65
+ register_setting('csbwf_sidebar_options','csbwfs_st_bg');
66
  register_setting('csbwf_sidebar_options','csbwfs_yt_bg');
67
  register_setting('csbwf_sidebar_options','csbwfs_fpublishBtn');
68
  register_setting('csbwf_sidebar_options','csbwfs_tpublishBtn');
69
  register_setting('csbwf_sidebar_options','csbwfs_gpublishBtn');
70
  register_setting('csbwf_sidebar_options','csbwfs_ppublishBtn');
71
+ register_setting('csbwf_sidebar_options','csbwfs_ytpublishBtn');
72
+ register_setting('csbwf_sidebar_options','csbwfs_republishBtn');
73
+ register_setting('csbwf_sidebar_options','csbwfs_stpublishBtn');
74
  register_setting('csbwf_sidebar_options','csbwfs_ytPath');
75
  register_setting('csbwf_sidebar_options','csbwfs_lpublishBtn');
76
  register_setting('csbwf_sidebar_options','csbwfs_mpublishBtn');
91
  register_setting('csbwf_sidebar_options','csbwfs_page_mail_image');
92
  register_setting('csbwf_sidebar_options','csbwfs_page_gp_image');
93
  register_setting('csbwf_sidebar_options','csbwfs_page_pin_image');
94
+ register_setting('csbwf_sidebar_options','csbwfs_page_re_image');
95
+ register_setting('csbwf_sidebar_options','csbwfs_page_st_image');
96
  register_setting('csbwf_sidebar_options','csbwfs_page_yt_image');
97
  /** message content */
98
 
100
  register_setting('csbwf_sidebar_options','csbwfs_hide_btn');
101
  register_setting('csbwf_sidebar_options','csbwfs_share_msg');
102
  register_setting('csbwf_sidebar_options','csbwfs_rmSHBtn');
103
+ register_setting('csbwf_sidebar_options','csbwfs_featuredshrimg');
104
+ register_setting('csbwf_sidebar_options','csbwfs_defaultfeaturedshrimg');
105
+ register_setting('csbwf_sidebar_options','csbwfs_deactive_for_mob');
106
 
107
  }
108
 
109
+ endif;
110
 
111
+ if(!function_exists('csbwfs_add_settings_link')):
112
  // Add settings link to plugin list page in admin
113
  function csbwfs_add_settings_link( $links ) {
114
  $settings_link = '<a href="options-general.php?page=csbwfs-settings">' . __( 'Settings', 'csbwfs' ) . '</a>';
115
  array_unshift( $links, $settings_link );
116
  return $links;
117
  }
118
+ endif;
119
  $plugin = plugin_basename( __FILE__ );
120
  add_filter( "plugin_action_links_$plugin", 'csbwfs_add_settings_link' );
121
 
122
  add_action('admin_footer','add_csbwfs_admin_style_script');
123
 
124
+ if(!function_exists('add_csbwfs_admin_style_script')):
125
  function add_csbwfs_admin_style_script()
126
  {
127
  wp_register_style( 'csbwf_admin_style', plugins_url( 'css/admin-csbwfs.css',__FILE__ ) );
152
  </script>';
153
 
154
  }
155
+ endif;
156
  /** Display the Options form for CSBWFS */
157
+ if(!function_exists('csbwf_sidebar_admin_option_page')):
158
  function csbwf_sidebar_admin_option_page(){ ?>
159
 
160
  <div style="width: 80%; padding: 10px; margin: 10px;">
177
  <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>
178
  <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>
179
  <p><input type="checkbox" id="publish6" name="csbwfs_ppublishBtn" value="yes" <?php if(get_option('csbwfs_ppublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Pinterest Button</b></p>
180
+ <p><input type="checkbox" id="publish7" name="csbwfs_republishBtn" value="yes" <?php if(get_option('csbwfs_republishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Reddit Button</b></p>
181
+ <p><input type="checkbox" id="publish8" name="csbwfs_stpublishBtn" value="yes" <?php if(get_option('csbwfs_stpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Stumbleupon Button</b></p>
182
  <p><input type="checkbox" id="publish5" name="csbwfs_mpublishBtn" value="yes" <?php if(get_option('csbwfs_mpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Mailbox Button</b></p>
183
  <?php if(get_option('csbwfs_mpublishBtn')=='yes'){?>
184
  <p id="mailmsg"><input type="text" name="csbwfs_mailMessage" id="csbwfs_mailMessage" value="<?php echo get_option('csbwfs_mailMessage');?>" placeholder="raghunath.0087@gmail.com" size="40" class="regular-text ltr"><br>Note:add the mail message like this format <b>your@email.com?subject=Your Subject</b></p>
188
  <p id="ytpath"><input type="text" name="csbwfs_ytPath" id="csbwfs_ytPath" value="<?php echo get_option('csbwfs_ytPath');?>" placeholder="http://www.youtube.com" size="40" class="regular-text ltr"><br>add youtube channel url</p>
189
  <?php } ?>
190
 
191
+
192
  <p><label><h3 ><strong><?php _e('Define your custom message:','csbwfs');?></strong></h3></label></p>
193
  <p><label><?php _e('Show:');?></label><input type="text" id="csbwfs_show_btn" name="csbwfs_show_btn" value="<?php echo get_option('csbwfs_show_btn'); ?>" placeholder="Show Buttons" size="40"/></p>
194
  <p><label><?php _e('Hide:');?></label><input type="text" id="csbwfs_hide_btn" name="csbwfs_hide_btn" value="<?php echo get_option('csbwfs_hide_btn'); ?>" placeholder="Hide Buttons" size="40"/></p>
195
  <p><label><?php _e('Message:');?></label><input type="textbox" id="csbwfs_share_msg" name="csbwfs_share_msg" value="<?php echo get_option('csbwfs_share_msg'); ?>" placeholder="Share This With Your Friends" size="40"/></p>
196
+ <p><h3><strong><?php _e('Pinterest Share Image Setting :'); ?></strong></h3></p>
197
+ <p><?php _e('Default Image :');?><input type="textbox" id="csbwfs_defaultfeaturedshrimg" name="csbwfs_defaultfeaturedshrimg" value="<?php echo get_option('csbwfs_defaultfeaturedshrimg'); ?>" placeholder="" size="55"/></p>
198
+ <p><input type="checkbox" id="featuredshrimg" name="csbwfs_featuredshrimg" value="yes" <?php if(get_option('csbwfs_featuredshrimg')=='yes'){echo 'checked="checked"';}?>/> <?php _e('Make post/page featured image as pinterest share image');?></p>
199
  </div>
200
  <!-- Floating Sidebar -->
201
  <div class="csbwfs-tab" id="div-csbwfs-sidebar">
211
  </td>
212
  </tr>
213
  <tr><th nowrap valign="top"><?php echo 'Delay Time: '; ?></th><td><input type="text" name="csbwfs_delayTimeBtn" id="csbwfs_delayTimeBtn" value="<?php echo get_option('csbwfs_delayTimeBtn')?get_option('csbwfs_delayTimeBtn'):0;?>" size="40" class="regular-text ltr"><br><i>Publish share buttons after given time(millisecond)</i></td></tr>
214
+ <tr>
215
+ <th>&nbsp;</th>
216
+ <td><input type="checkbox" id="csbwfs_deactive_for_mob" name="csbwfs_deactive_for_mob" value="yes" <?php if(get_option('csbwfs_deactive_for_mob')=='yes'){echo 'checked="checked"';}?>/> <strong><?php _e('Disable Sidebar For Mobile','csbwfs');?></strong></td>
217
+ </tr>
218
+ <tr><td colspan="2"><strong><h4>Social Share Button Images 36X34 (Optional) :</h4></strong></td></tr>
219
  <tr>
220
  <th><?php echo 'Facebook:';?></th>
221
  <td>
260
  <tr>
261
  <th><?php echo 'Youtube:';?></th>
262
  <td>
263
+ <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"/>
264
  </td>
265
  </tr>
266
+ <tr>
267
+ <th><?php echo 'Reddit:';?></th>
268
+ <td>
269
+ <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"/>
270
+ </td>
271
+ </tr>
272
+ <tr>
273
+ <th><?php echo 'Stumbleupon:';?></th>
274
+ <td>
275
+ <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"/>
276
+ </td>
277
+ </tr>
278
+
279
+
280
+ <tr><td colspan="2"><h3><strong>Style(Optional):</strong></h3></td></tr>
281
 
282
  <tr>
283
  <th><?php echo 'Top Margin:';?></th>
287
  </td>
288
  </tr>
289
  <tr>
290
+ <th>&nbsp;</th>
291
+ <td><input type="checkbox" id="csbwfs_rmSHBtn" name="csbwfs_rmSHBtn" value="yes" <?php if(get_option('csbwfs_rmSHBtn')=='yes'){echo 'checked="checked"';}?>/> <strong><?php _e('Remove Show/Hide Button:','csbwfs');?></strong></td>
292
  </tr>
293
+
294
  </table>
295
  </div>
296
  <!-- Share Buttons -->
369
  <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"/>
370
  </td>
371
  </tr>
372
+ <tr>
373
+ <th><?php echo 'Reddit:';?></th>
374
+ <td>
375
+ <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"/>
376
+ </td>
377
+ </tr>
378
+ <tr>
379
+ <th><?php echo 'Stumbleupon:';?></th>
380
+ <td>
381
+ <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"/>
382
+ </td>
383
+ </tr>
384
 
385
  </table>
386
 
416
 
417
  <?php
418
  }
419
+ endif;
420
 
421
  require dirname(__FILE__).'/csbwfs-class.php';
422
 
441
  delete_option('csbwfs_fb_image');
442
  delete_option('csbwfs_tw_image');
443
  delete_option('csbwfs_li_image');
444
+ delete_option('csbwfs_re_image');
445
+ delete_option('csbwfs_st_image');
446
  delete_option('csbwfs_mail_image');
447
  delete_option('csbwfs_gp_image');
448
  delete_option('csbwfs_pin_image');
449
+ delete_option('csbwfs_yt_image');
450
+ delete_option('csbwfs_re_image');
451
+ delete_option('csbwfs_st_image');
452
  delete_option('csbwfs_ytPath');
453
  delete_option('csbwfs_fb_bg');
454
  delete_option('csbwfs_tw_bg');
462
  delete_option('csbwfs_gpublishBtn');
463
  delete_option('csbwfs_ppublishBtn');
464
  delete_option('csbwfs_lpublishBtn');
465
+ delete_option('csbwfs_mpublishBtn');
466
+ delete_option('csbwfs_republishBtn');
467
+ delete_option('csbwfs_stpublishBtn');
468
  delete_option('csbwfs_ytpublishBtn');
469
  delete_option('csbwfs_mailMessage');
470
  delete_option('csbwfs_top_margin');
474
  delete_option('csbwfs_page_fb_image');
475
  delete_option('csbwfs_page_tw_image');
476
  delete_option('csbwfs_page_li_image');
477
+ delete_option('csbwfs_page_re_image');
478
+ delete_option('csbwfs_page_st_image');
479
  delete_option('csbwfs_page_mail_image');
480
  delete_option('csbwfs_page_gp_image');
481
  delete_option('csbwfs_page_pin_image');
482
  delete_option('csbwfs_page_yt_image');
483
+ delete_option('csbwfs_rmSHBtn');
484
+ delete_option('csbwfs_featuredshrimg');
485
+ delete_option('csbwfs_defaultfeaturedshrimg');
486
+ delete_option('csbwfs_deactive_for_mob');
487
 
488
  }
489
  ?>
images/reddit-p.png ADDED
Binary file
images/reddit.png ADDED
Binary file
images/stumbleupon-p.png ADDED
Binary file
images/stumbleupon.png ADDED
Binary file
readme.txt CHANGED
@@ -1,20 +1,20 @@
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, pinterest,floating sidebar,float,floating share buttons,float share buttons
5
  Requires at least: 2.7
6
  Tested up to: 4.0.1
7
- Stable tag: 1.5
8
 
9
- Add Social Share Buttons Using Floating Sidebar On Your Site (Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail)
 
 
10
 
11
  == Description ==
12
 
13
- "custom-share-buttons-with-floating-sidebar" is the very simple plugin for add to floating social share buttons on your site.
14
 
15
- Even you can change the share buttons images if you wish!.
16
-
17
- Using this plugin you can easily share your website with your friends on Facebook,Twitter,Linkedin,Pinterest,Google+.
18
 
19
  There are not added any external JS files in this plugin so it's does not effect on your site speed as well.
20
 
@@ -30,7 +30,9 @@ Live [demo](http://www.gurukulalwar.com/)
30
  * Options for edit to message ("Show Buttons","Hide Buttons"...etc)
31
  * Options for set the position of Floating Sidebar (Left/Right)
32
  * Options for set the position of Social Buttons (Left/Right)
33
- * Options for manage the style of the plugin
 
 
34
 
35
 
36
  == Installation ==
@@ -44,28 +46,31 @@ Step 3. Go to Settings/"Custom Share Buttons with Floating Sidebar" and configur
44
  == Frequently Asked Questions ==
45
  1.How add floating share buttons on my website?
46
 
47
- After active the plugin you have must need to enable this plugin through the plugin settings.
48
 
49
  2.Can i change the custom share buttons images from admin?
50
 
51
- Yes,admin can changes all social share custom buttons images if you wish, for that you have only need to define the buttons images path from plugins settings page.
52
 
53
- 3.Is there any demo site where your plugins have been used?
54
-
55
- Yes, Please visit on this [site](http://www.mrwebsolution.in/) for check live demo
56
 
57
- 3.Can i define the top margin for share buttons block?
58
 
59
- Yes, admin can define the top margin from plugin settings page
60
 
61
- 4.Can we add the social share buttons on bottom of every post/pages?
62
 
63
- Yes,you have only need to enable the "Social Share Button" from admin by plugin settings
64
 
65
- 5.Can we add at a time only the "Floating Sidebar" OR "Social Share Buttons"?
66
 
67
- Yes,You have need to enable at a time only one from both "Floating Sidebar" and "Social Share Buttons"
 
 
68
 
 
69
 
70
  == Screenshots ==
71
 
@@ -81,6 +86,13 @@ Yes,You have need to enable at a time only one from both "Floating Sidebar" and
81
 
82
  == Changelog ==
83
 
 
 
 
 
 
 
 
84
  = 1.5 =
85
  * Make plugin settings page more stylish
86
  * 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=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: 2.7
6
  Tested up to: 4.0.1
7
+ Stable tag: 1.6
8
 
9
+ Add Social Share Buttons With Floating Sidebar
10
+
11
+ (Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit)
12
 
13
  == Description ==
14
 
15
+ "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).
16
 
17
+ You can add a floating sidebar with all social buttons and Even you can change the share buttons images from admin if you wish!.
 
 
18
 
19
  There are not added any external JS files in this plugin so it's does not effect on your site speed as well.
20
 
30
  * Options for edit to message ("Show Buttons","Hide Buttons"...etc)
31
  * Options for set the position of Floating Sidebar (Left/Right)
32
  * Options for set the position of Social Buttons (Left/Right)
33
+ * Options for manage the style of the plugin
34
+ * Option for disable sidebar for mobile
35
+ * Option for define the pinterest share image
36
 
37
 
38
  == Installation ==
46
  == Frequently Asked Questions ==
47
  1.How add floating share buttons on my website?
48
 
49
+ After active the plugin you have must need to enable this plugin through the plugin settings.
50
 
51
  2.Can i change the custom share buttons images from admin?
52
 
53
+ Yes,admin can changes all social share custom buttons images if you wish, for that you have only need to define the buttons images path from plugins settings page.
54
 
55
+ 3.Can i disable the floating sidebar for mobile?
56
+
57
+ Yes,You can disable the floating sidebar by configure the plugin settings
58
 
59
+ 4.Can i define the top margin for share buttons block?
60
 
61
+ Yes, admin can define the top margin from plugin settings page
62
 
63
+ 5.Can we add the social share buttons on bottom of every post/pages?
64
 
65
+ Yes,you have only need to enable the "Social Share Button" from admin by plugin settings
66
 
67
+ 6.Can we add at a time only the "Floating Sidebar" OR "Social Share Buttons"?
68
 
69
+ Yes,You have need to enable at a time only one from both "Floating Sidebar" and "Social Share Buttons"
70
+
71
+ 7.Is there any demo site where your plugins have been used?
72
 
73
+ Yes, Please visit on this [site](http://www.mrwebsolution.in/) for check live demo
74
 
75
  == Screenshots ==
76
 
86
 
87
  == Changelog ==
88
 
89
+ = 1.6 =
90
+ * Added new option for disable floating sidebar for mobile site
91
+ * Added two new Stumbleupon and Reddit buttons
92
+ * Added options for define Pinterest Share images
93
+ * Fixed show/hide button issue
94
+
95
+
96
  = 1.5 =
97
  * Make plugin settings page more stylish
98
  * Added a new option for remove show/hide buttions