Custom Share Buttons with Floating Sidebar - Version 1.3

Version Description

  • Added an options for add the social share buttons on bottom of the content on every post/pages
Download this release

Release Info

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

Version 1.3

csbwfs-class.php ADDED
@@ -0,0 +1,390 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ * Custom Share Buttons With Floating Sidebar (C)
4
+ * @get_csbwf_sidebar_options()
5
+ * @get_csbwf_sidebar_content()
6
+ * */
7
+ ?>
8
+ <?php
9
+ // get all options value for "Custom Share Buttons with Floating Sidebar"
10
+ function get_csbwf_sidebar_options() {
11
+ global $wpdb;
12
+ $ctOptions = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options WHERE option_name LIKE 'csbwfs_%'");
13
+
14
+ foreach ($ctOptions as $option) {
15
+ $ctOptions[$option->option_name] = $option->option_value;
16
+ }
17
+
18
+ return $ctOptions;
19
+ }
20
+
21
+ // Get plugin options
22
+
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
+ }
30
+
31
+ if(isset($pluginOptionsVal['csbwfs_buttons_active']) && $pluginOptionsVal['csbwfs_buttons_active']==1){
32
+ add_filter( 'the_content', 'csbfs_the_content_filter', 20);
33
+ add_action('wp_head','csbuttons_style');
34
+ }
35
+
36
+ function csbuttons_style(){
37
+ $csbstylee='<style>/* Custom Share Buttons Style*/ #socialButtonOnPage {width:100%; padding-top:5px; padding-bottom:5px;}#socialButtonOnPage .sbutton-post {float:left; padding:5px 1px;}#socialButtonOnPage .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);}#socialButtonOnPage .sbutton-post img:hover{opacity:1;}#socialButtonOnPage .sharethis-arrow{float:left;padding:5px 10px 5px 1px;}</style>';
38
+ echo $csbstylee;
39
+ }
40
+ //register style and scrip files
41
+ function csbwf_sidebar_scripts() {
42
+ wp_enqueue_script( 'jquery' ); // wordpress jQuery
43
+ wp_register_style( 'csbwf_sidebar_style', plugins_url( 'css/csbwfs.css',__FILE__ ) );
44
+ wp_enqueue_style( 'csbwf_sidebar_style' );
45
+ }
46
+
47
+ /*
48
+ -----------------------------------------------------------------------------------------------
49
+ "Add the jQuery code in head section using hooks"
50
+ -----------------------------------------------------------------------------------------------
51
+ */
52
+
53
+
54
+ function csbwf_sidebar_load_inline_js()
55
+ {
56
+ $pluginOptionsVal=get_csbwf_sidebar_options();
57
+ $jscnt='<script>jQuery(document).ready(function()
58
+ { ';
59
+
60
+
61
+ if($pluginOptionsVal['csbwfs_delayTimeBtn']!='0'):
62
+ $jscnt.='jQuery("#delaydiv").hide();
63
+ setTimeout(function(){
64
+ jQuery("#delaydiv").fadeIn();}, '.$pluginOptionsVal['csbwfs_delayTimeBtn'].');';
65
+ endif;
66
+
67
+ if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
68
+ $jscnt.='jQuery("div#tw a").hover(function(){
69
+ jQuery("div#tw a").animate({width:"60px"});
70
+ },function(){
71
+ jQuery("div#tw a").stop( true, true ).animate({width:"45px"});
72
+ });';
73
+ endif;
74
+
75
+ if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
76
+ $jscnt.='jQuery("div#fb a").hover(function(){
77
+ jQuery("div#fb a").animate({width:"60px"});
78
+ },function(){
79
+ jQuery("div#fb a").stop( true, true ).animate({width:"45px"});
80
+ });';
81
+ endif;
82
+
83
+ if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
84
+ $jscnt.='jQuery("div#ml a").hover(function(){
85
+ jQuery("div#ml a").animate({width:"60px"});
86
+ },function(){
87
+ jQuery("div#ml a").stop( true, true ).animate({width:"45px"});
88
+ });';
89
+ endif;
90
+
91
+ if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
92
+ $jscnt.='jQuery("div#gp a").hover(function(){
93
+ jQuery("div#gp a").animate({width:"60px"});
94
+ },function(){
95
+ jQuery("div#gp a").stop( true, true ).animate({width:"45px"});
96
+ });';
97
+ endif;
98
+
99
+ if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
100
+ $jscnt.='jQuery("div#li a").hover(function(){
101
+ jQuery("div#li a").animate({width:"60px"});
102
+ },function(){
103
+ jQuery("div#li a").stop( true, true ).animate({width:"45px"});
104
+ });';
105
+ endif;
106
+
107
+ if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
108
+ $jscnt.='jQuery("div#pin a").hover(function(){
109
+ jQuery("div#pin a").animate({width:"60px"});
110
+ },function(){
111
+ jQuery("div#pin a").stop( true, true ).animate({width:"45px"});
112
+ });';
113
+ endif;
114
+
115
+ $jscnt.='jQuery("div.show").hide();
116
+ jQuery("div.show a").click(function(){
117
+ jQuery("div#social-inner").show(500);
118
+ jQuery("div.show").hide(500);
119
+ jQuery("div.hide").show(500);
120
+ });
121
+
122
+ jQuery("div.hide a").click(function(){
123
+ jQuery("div.show").show(500);
124
+ jQuery("div.hide").hide(500);
125
+ jQuery("div#social-inner").hide(500);
126
+ });';
127
+
128
+ $jscnt.='});</script>';
129
+
130
+ echo $jscnt;
131
+ }
132
+
133
+ /*
134
+ -----------------------------------------------------------------------------------------------
135
+ "Custom Share Buttons with Floating Sidebar" HTML
136
+ -----------------------------------------------------------------------------------------------
137
+ */
138
+
139
+
140
+ function get_csbwf_sidebar_content() {
141
+ global $post;
142
+ $pluginOptionsVal=get_csbwf_sidebar_options();
143
+
144
+ if(is_category())
145
+ {
146
+ $category_id = get_query_var('cat');
147
+ $shareurl =get_category_link( $category_id );
148
+ $cats = get_the_category();
149
+ $ShareTitle=$cats[0]->name;
150
+ }elseif(is_page() || is_single())
151
+ {
152
+ $shareurl=get_permalink($post->ID);
153
+ $ShareTitle=$post->post_title;
154
+ }
155
+ else
156
+ {
157
+ $shareurl =home_url('/');
158
+ $ShareTitle=get_bloginfo('name');
159
+ }
160
+
161
+ /* Get All buttons Image */
162
+
163
+ //get facebook button image
164
+ if($pluginOptionsVal['csbwfs_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_fb_image'];}
165
+ else{$fImg=plugins_url('images/fb.png',__FILE__);}
166
+ //get twitter button image
167
+ if($pluginOptionsVal['csbwfs_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_tw_image'];}
168
+ else{$tImg=plugins_url('images/tw.png',__FILE__);}
169
+ //get linkdin button image
170
+ if($pluginOptionsVal['csbwfs_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_li_image'];}
171
+ else{$lImg=plugins_url('images/in.png',__FILE__);}
172
+ //get mail button image
173
+ if($pluginOptionsVal['csbwfs_mail_image']!=''){ $mImg=$pluginOptionsVal['csbwfs_mail_image'];}
174
+ else{$mImg=plugins_url('images/ml.png',__FILE__);}
175
+ //get google plus button image
176
+ if($pluginOptionsVal['csbwfs_gp_image']!=''){ $gImg=$pluginOptionsVal['csbwfs_gp_image'];}
177
+ else{$gImg=plugins_url('images/gp.png',__FILE__);}
178
+ //get pinterest button image
179
+ if($pluginOptionsVal['csbwfs_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_pin_image'];}
180
+ else{$pImg=plugins_url('images/pinit.png',__FILE__);}
181
+ //get email message
182
+ if(is_page() || is_single() || is_category() || is_archive()){
183
+
184
+ if($pluginOptionsVal['csbwfs_mailMessage']!=''){ $mailMsg=$pluginOptionsVal['csbwfs_mailMessage'];} else{
185
+ $mailMsg='?subject='.get_the_title().'&body='.get_the_permalink();}
186
+ }else
187
+ {
188
+ $mailMsg='?subject='.get_bloginfo('name').'&body='.home_url('/');
189
+ }
190
+
191
+
192
+ // Top Margin
193
+ if($pluginOptionsVal['csbwfs_top_margin']!=''){
194
+ $margin=$pluginOptionsVal['csbwfs_top_margin'];
195
+ }else
196
+ {
197
+ $margin='25%';
198
+ }
199
+
200
+ //Sidebar Position
201
+ if($pluginOptionsVal['csbwfs_position']=='right'){
202
+ $style=' style="top:'.$margin.';right:-5px;"';
203
+ $idName=' id="csbwfs-right"';
204
+ $showImg='hide.png';
205
+ $hideImg='show.png';
206
+
207
+ }else
208
+ {
209
+ $idName=' id="csbwfs-left"';
210
+ $style=' style="top:'.$margin.';left:0;"';
211
+ $showImg='show.png';
212
+ $hideImg='hide.png';
213
+ }
214
+ ?>
215
+ <div id="delaydiv">
216
+ <div class='social-widget' <?php echo $idName;?> title="Share This With Your Friends" <?php echo $style;?> >
217
+
218
+ <div class="show"><a href="javascript:" alt="Email" id="show"><img src="<?php echo plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$showImg);?>" title="Show Buttons"></a></div>
219
+
220
+ <div id="social-inner">
221
+ <?php if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):?>
222
+ <!-- Facebook -->
223
+ <div class="sbutton">
224
+ <div id="fb">
225
+ <a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $shareurl;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;"
226
+ target="_blank" alt="Share on Facebook"> <img src="<?php echo $fImg;?>"></a></div>
227
+ </div>
228
+ <?php endif;?>
229
+ <?php if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):?>
230
+ <!-- Twitter -->
231
+ <div class="sbutton">
232
+ <div id="tw"><a href="javascript:" onclick="window.open('https://twitter.com/?status=<?php echo $ShareTitle;?>&nbsp;&nbsp;<?php echo $shareurl;?>', '_blank', 'width=800,height=300')" alt="Twitter"><img src="<?php echo $tImg;?>"></a></div>
233
+ </div>
234
+ <?php endif;?>
235
+ <?php if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):?>
236
+ <!-- Google plus -->
237
+ <div class="sbutton">
238
+
239
+ <div id="gp"><a href="https://plus.google.com/share?url=<?php echo $shareurl;?>" onclick="javascript:window.open(this.href,
240
+ '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" alt="Google Plus">
241
+ <img src="<?php echo $gImg;?>"></a></div>
242
+ </div>
243
+ <?php endif;?>
244
+ <?php if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):?>
245
+ <!-- Linkdin -->
246
+ <div class="sbutton">
247
+
248
+ <div id="li">
249
+ <a href="https://www.linkedin.com/cws/share?url=<?php echo $shareurl;?>" onclick="javascript:window.open(this.href,
250
+ '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" alt="Google Plus">
251
+ <img src="<?php echo $lImg;?>"></a></div>
252
+ </div>
253
+ <?php endif;?>
254
+ <?php if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):?>
255
+ <!-- Pinterest -->
256
+ <div class="sbutton">
257
+
258
+ <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/themes/mrweb/images/logo.png&amp;description=<?php echo $ShareTitle;?> :<?php echo $shareurl;?>','pinIt','toolbar=0,status=0,width=620,height=500');" href="javascript:void(0);" style="width: 45px;"><img src="<?php echo $pImg;?>"></a></div>
259
+ </div>
260
+ <?php endif;?>
261
+ <?php if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):?>
262
+ <!-- Mail-->
263
+ <div class="sbutton">
264
+ <div id="ml"><a href="mailto:<?php echo $mailMsg;?>" alt="Email"><img src="<?php echo $mImg;?>"></a></div>
265
+ </div>
266
+ <?php endif;?>
267
+ </div>
268
+
269
+ <div class="hide"><a href="javascript:" alt="Email" id="hide"><img src="<?php echo plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$hideImg);?>" title="Hide Buttons"></a></div>
270
+
271
+ </div>
272
+ </div>
273
+ <?php
274
+ }
275
+ /**
276
+ * Add social share bottons to the end of every post/page.
277
+ *
278
+ * @uses is_home()
279
+ * @uses is_page()
280
+ * @uses is_single()
281
+ */
282
+ function csbfs_the_content_filter( $content ) {
283
+
284
+ global $post;
285
+ $pluginOptionsVal=get_csbwf_sidebar_options();
286
+
287
+ if(is_category())
288
+ {
289
+ $category_id = get_query_var('cat');
290
+ $shareurl =get_category_link( $category_id );
291
+ $cats = get_the_category();
292
+ $ShareTitle=$cats[0]->name;
293
+ }elseif(is_page() || is_single())
294
+ {
295
+ $shareurl=get_permalink($post->ID);
296
+ $ShareTitle=$post->post_title;
297
+ }
298
+ else
299
+ {
300
+ $shareurl =home_url('/');
301
+ $ShareTitle=get_bloginfo('name');
302
+ }
303
+
304
+ /* Get All buttons Image */
305
+
306
+ //get facebook button image
307
+ if($pluginOptionsVal['csbwfs_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_fb_image'];}
308
+ else{$fImg=plugins_url('images/fb-p.png',__FILE__);}
309
+ //get twitter button image
310
+ if($pluginOptionsVal['csbwfs_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_tw_image'];}
311
+ else{$tImg=plugins_url('images/tw-p.png',__FILE__);}
312
+ //get linkdin button image
313
+ if($pluginOptionsVal['csbwfs_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_li_image'];}
314
+ else{$lImg=plugins_url('images/in-p.png',__FILE__);}
315
+ //get mail button image
316
+ if($pluginOptionsVal['csbwfs_mail_image']!=''){ $mImg=$pluginOptionsVal['csbwfs_mail_image'];}
317
+ else{$mImg=plugins_url('images/ml-p.png',__FILE__);}
318
+ //get google plus button image
319
+ if($pluginOptionsVal['csbwfs_gp_image']!=''){ $gImg=$pluginOptionsVal['csbwfs_gp_image'];}
320
+ else{$gImg=plugins_url('images/gp-p.png',__FILE__);}
321
+ //get pinterest button image
322
+ if($pluginOptionsVal['csbwfs_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_pin_image'];}
323
+ else{$pImg=plugins_url('images/pinit-p.png',__FILE__);}
324
+ //get email message
325
+ if(is_page() || is_single() || is_category() || is_archive()){
326
+
327
+ if($pluginOptionsVal['csbwfs_mailMessage']!=''){ $mailMsg=$pluginOptionsVal['csbwfs_mailMessage'];} else{
328
+ $mailMsg='?subject='.get_the_title().'&body='.get_the_permalink();}
329
+ }else
330
+ {
331
+ $mailMsg='?subject='.get_bloginfo('name').'&body='.home_url('/');
332
+ }
333
+
334
+ $shareButtonContent='<div id="socialButtonOnPage"><div class="sharethis-arrow"><img src="'.plugins_url('images/sharethis.png',__FILE__).'"></div>';
335
+ /* Facebook*/
336
+ if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
337
+ $shareButtonContent.='<div class="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;"
338
+ target="_blank" alt="Share on Facebook"> <img src="'.$fImg.'"></a></div></div>';
339
+ endif;
340
+
341
+ /* Twitter */
342
+ if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
343
+ $shareButtonContent.='<div class="sbutton-post"><div id="tw-p"><a href="javascript:" onclick="window.open(\'https://twitter.com/?status='.$ShareTitle.'&nbsp;&nbsp;'.$shareurl.'\', \'_blank\', \'width=800,height=300\')" alt="Twitter"><img src="'.$tImg.'"></a></div></div>';
344
+ endif;
345
+
346
+ /* Google Plus */
347
+ if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
348
+ $shareButtonContent.='<div class="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">
349
+ <img src="'.$gImg.'"></a></div>
350
+ </div>';
351
+ endif;
352
+
353
+ /* Linkedin */
354
+ if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
355
+ $shareButtonContent.='<div class="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>';
356
+ endif;
357
+
358
+ /* Pinterest */
359
+ if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
360
+ $shareButtonContent.='<div class="sbutton-post"><div id="pin-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="'.$pImg.'"></a></div></div>';
361
+ endif;
362
+
363
+ /* Email */
364
+ if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
365
+ $shareButtonContent.='<div class="sbutton-post"><div id="ml-p"><a href="mailto:'.$mailMsg.'" alt="Email"><img src="'.$mImg.'"></a></div></div>';
366
+ endif;
367
+ $shareButtonContent.='</div>';
368
+
369
+
370
+ //add_filter( 'the_content', array($this, 'add_share_buttons_to_content'));
371
+ // Returns the content.
372
+ if(is_home() && $pluginOptionsVal['csbwfs_page_hide_home']!='yes'):
373
+ $shareButtonContent='';
374
+ endif;
375
+
376
+ if(is_single() && $pluginOptionsVal['csbwfs_page_hide_post']!='yes'):
377
+ $shareButtonContent='';
378
+ endif;
379
+
380
+ if(is_page() && $pluginOptionsVal['csbwfs_page_hide_page']!='yes'):
381
+ $shareButtonContent='';
382
+ endif;
383
+
384
+ if($shareButtonContent!=''):
385
+ return sprintf('%s'.$shareButtonContent,$content);
386
+ else:
387
+ return $content;
388
+ endif;
389
+ }
390
+ ?>
css/csbwfs.css ADDED
@@ -0,0 +1,62 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /* Custom share Buttons With Floating Sidebar (C)
2
+ * Author: Raghunath gurjar
3
+ * */
4
+ .social-widget {
5
+ position: fixed;
6
+ width: 50px;
7
+ z-index: 99999;
8
+ }
9
+
10
+ .social-widget .sbutton {
11
+ float: right;
12
+ height: 41px;
13
+ margin: 0;
14
+ position: relative;
15
+ width: 50px;
16
+ }
17
+ .sbutton img{padding:5px;}
18
+
19
+ #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)}
20
+
21
+ #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;}
22
+
23
+ #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;}
24
+
25
+ #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;}
26
+
27
+ #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;}
28
+
29
+ #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;}
30
+ #csbwfs-right #fb a {
31
+ position: absolute;
32
+ right: 0;
33
+
34
+ }
35
+ #csbwfs-right #tw a {
36
+ position: absolute;
37
+ right: 0;
38
+
39
+ }
40
+ #csbwfs-right #gp a {
41
+ position: absolute;
42
+ right: 0;
43
+
44
+ }
45
+
46
+ #csbwfs-right #li a {
47
+ position: absolute;
48
+ right: 0;
49
+
50
+ }
51
+ #csbwfs-right #pin a {
52
+ position: absolute;
53
+ right: 0;
54
+
55
+ }
56
+ #csbwfs-right #ml a {
57
+ position: absolute;
58
+ right: 0;
59
+
60
+ }
61
+ #csbwfs-right a#hide {padding-right:33px;}
62
+ #csbwfs-right a#show {float:right;}
custom-share-buttons-with-floating-sidebar.php ADDED
@@ -0,0 +1,321 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /*
3
+ Plugin Name: Custom Share Buttons with Floating Sidebar
4
+ 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.3
9
+ */
10
+
11
+ /* Copyright YEAR PLUGIN_AUTHOR_NAME (email : raghunath.0087@gmail.com)
12
+
13
+ This program is free software; you can redistribute it and/or modify
14
+ it under the terms of the GNU General Public License, version 2, as
15
+ published by the Free Software Foundation.
16
+
17
+ This program is distributed in the hope that it will be useful,
18
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
19
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
20
+ GNU General Public License for more details.
21
+
22
+ You should have received a copy of the GNU General Public License
23
+ along with this program; if not, write to the Free Software
24
+ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
25
+ */
26
+
27
+ //Admin "Custom Share Buttons with Floating Sidebar" Menu Item
28
+ 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
+
43
+ register_setting('csbwf_sidebar_options','csbwfs_active');
44
+ register_setting('csbwf_sidebar_options','csbwfs_position');
45
+ register_setting('csbwf_sidebar_options','csbwfs_fb_image');
46
+ register_setting('csbwf_sidebar_options','csbwfs_tw_image');
47
+ register_setting('csbwf_sidebar_options','csbwfs_li_image');
48
+ register_setting('csbwf_sidebar_options','csbwfs_mail_image');
49
+ register_setting('csbwf_sidebar_options','csbwfs_gp_image');
50
+ register_setting('csbwf_sidebar_options','csbwfs_pin_image');
51
+ register_setting('csbwf_sidebar_options','csbwfs_fb_bg');
52
+ register_setting('csbwf_sidebar_options','csbwfs_tw_bg');
53
+ register_setting('csbwf_sidebar_options','csbwfs_li_bg');
54
+ register_setting('csbwf_sidebar_options','csbwfs_mail_bg');
55
+ register_setting('csbwf_sidebar_options','csbwfs_gp_bg');
56
+ register_setting('csbwf_sidebar_options','csbwfs_pin_bg');
57
+ register_setting('csbwf_sidebar_options','csbwfs_fpublishBtn');
58
+ register_setting('csbwf_sidebar_options','csbwfs_tpublishBtn');
59
+ register_setting('csbwf_sidebar_options','csbwfs_gpublishBtn');
60
+ register_setting('csbwf_sidebar_options','csbwfs_ppublishBtn');
61
+ register_setting('csbwf_sidebar_options','csbwfs_lpublishBtn');
62
+ register_setting('csbwf_sidebar_options','csbwfs_mpublishBtn');
63
+ register_setting('csbwf_sidebar_options','csbwfs_mailMessage');
64
+ register_setting('csbwf_sidebar_options','csbwfs_top_margin');
65
+ register_setting('csbwf_sidebar_options','csbwfs_delayTimeBtn');
66
+
67
+ //Options for post/pages
68
+ register_setting('csbwf_sidebar_options','csbwfs_buttons_active');
69
+ register_setting('csbwf_sidebar_options','csbwfs_page_hide_home');
70
+ register_setting('csbwf_sidebar_options','csbwfs_page_hide_post');
71
+ register_setting('csbwf_sidebar_options','csbwfs_page_hide_page');
72
+ register_setting('csbwf_sidebar_options','csbwfs_page_fb_image');
73
+ register_setting('csbwf_sidebar_options','csbwfs_page_tw_image');
74
+ register_setting('csbwf_sidebar_options','csbwfs_page_li_image');
75
+ register_setting('csbwf_sidebar_options','csbwfs_page_mail_image');
76
+ register_setting('csbwf_sidebar_options','csbwfs_page_gp_image');
77
+ register_setting('csbwf_sidebar_options','csbwfs_page_pin_image');
78
+
79
+ }
80
+
81
+
82
+ // Add settings link to plugin list page in admin
83
+ function csbwfs_add_settings_link( $links ) {
84
+ $settings_link = '<a href="options-general.php?page=csbwfs-settings">' . __( 'Settings', 'csbwfs' ) . '</a>';
85
+ array_unshift( $links, $settings_link );
86
+ return $links;
87
+ }
88
+
89
+ $plugin = plugin_basename( __FILE__ );
90
+ add_filter( "plugin_action_links_$plugin", 'csbwfs_add_settings_link' );
91
+
92
+ /** Display the Options form for CSBWFS */
93
+
94
+ function csbwf_sidebar_admin_option_page(){ ?>
95
+
96
+ <div style="width: 80%; padding: 10px; margin: 10px;">
97
+
98
+ <h1>Custom Share Buttons With Floating Sidebar Settings</h1>
99
+
100
+
101
+
102
+ <!-- Start Options Form -->
103
+
104
+ <form action="options.php" method="post" id="csbwf-sidebar-admin-form">
105
+ <table class="cssfw">
106
+ <tr><th>&nbsp;</th>
107
+ <td>&nbsp;</td>
108
+ <td rowspan="24" valign="top" style="padding-left: 20px;border-left:1px solid #ccc;">
109
+ <h2>Plugin Author:</h2>
110
+ <div style="font-size: 14px;">
111
+ <img src="<?php echo plugins_url( 'images/raghu.jpg' , __FILE__ );?>" width="100" height="100"><br><a href="http://raghunathgurjar.wordpress.com" target="_blank">Raghunath Gurjar</a><br><br><a href="mailto:raghunath.0087@gmail.com" target="_blank">Contact Me!</a><br><br>Author Blog <a href="http://raghunathgurjar.wordpress.com" target="_blank">http://raghunathgurjar.wordpress.com</a>
112
+ <br><br><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WN785E5V492L4" target="_blank" style="font-size: 17px; font-weight: bold;">Donate for this plugin</a><br><br>
113
+ My Other Plugins:<br>
114
+ <ul>
115
+ <li><a href="https://wordpress.org/plugins/simple-testimonial-rutator/" target="_blank">Simple Testimonial Rutator(Responsive)</a></li>
116
+ <li><a href="https://wordpress.org/plugins/wp-easy-recipe/" target="_blank">WP Easy Recipe</a></li>
117
+ <li><a href="https://wordpress.org/plugins/wp-social-buttons/" target="_blank">WP Social Buttons</a></li>
118
+ </ul>
119
+ </div></td>
120
+ </tr>
121
+ <tr>
122
+ <td nowrap colspan="2"><h2 style="width: 80%; border-bottom: 1px solid #666; padding-top: 10px; padding-bottom: 10px;font-size:18px;"><strong><?php echo 'Floating Sidebar Settings:';?></strong></h2></td>
123
+ </tr>
124
+ <tr><th>Enable: </th><td><input type="checkbox" id="csbwfs_active" name="csbwfs_active" value='1' <?php if(get_option('csbwfs_active')!=''){ echo ' checked="checked"'; }?>/></td></tr>
125
+ <tr>
126
+ <th nowrap><?php echo 'Siderbar Position:';?></th>
127
+ <td>
128
+ <select id="csbwfs_position" name="csbwfs_position" >
129
+ <option value="left" <?php if(get_option('csbwfs_position')=='left'){echo 'selected="selected"';}?>>Left</option>
130
+ <option value="right" <?php if(get_option('csbwfs_position')=='right'){echo 'selected="selected"';}?>>Right</option>
131
+ </select>
132
+ </td>
133
+ </tr>
134
+ <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>
135
+ <tr><td colspan="2"><strong><h4>Social Share Button Images(36X34) (Optional) :</h4></strong>If you will leave blank filed then it will be take default image path</td></tr>
136
+ <tr>
137
+ <th><?php echo 'Facebook:';?></th>
138
+ <td>
139
+
140
+ <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"/>
141
+ </td>
142
+ </tr>
143
+ <tr>
144
+ <th><?php echo 'Twitter:';?></th>
145
+ <td>
146
+
147
+ <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"/>
148
+ </td>
149
+ </tr>
150
+ <tr>
151
+ <th><?php echo 'Linkdin:';?></th>
152
+ <td>
153
+
154
+ <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_image'); ?>" placeholder="BG color:#000000" size="20"/>
155
+ </td>
156
+ </tr>
157
+ <tr>
158
+ <th><?php echo 'Pintrest:';?></th>
159
+ <td>
160
+
161
+ <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"/>
162
+ </td>
163
+ </tr>
164
+ <tr>
165
+ <th><?php echo 'Google:';?></th>
166
+ <td>
167
+
168
+ <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"/>
169
+ </td>
170
+ </tr>
171
+ <tr>
172
+ <th><?php echo 'Mail:';?></th>
173
+ <td>
174
+ <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"/>
175
+ </td>
176
+ </tr>
177
+ <tr><td colspan="2"><h4><strong>Style(Optional):</strong></h4></td></tr>
178
+
179
+ <tr>
180
+ <th><?php echo 'Top Margin:';?></th>
181
+ <td>
182
+
183
+ <input type="textbox" id="csbwfs_top_margin" name="csbwfs_top_margin" value="<?php echo get_option('csbwfs_top_margin'); ?>" placeholder="10% OR 10px" size="10"/>
184
+ </td>
185
+ </tr>
186
+ <tr><td colspan="2" border="1"><h2 style="width: 80%; border-bottom: 1px solid #666; padding-top: 10px; padding-bottom: 10px;font-size:18px;"><strong>Social Share Button Settings (Page/Post)</strong></h2></td></tr>
187
+ <tr>
188
+ <th><?php echo 'Enable:';?></th>
189
+ <td>
190
+ <input type="checkbox" id="csbwfs_buttons_active" name="csbwfs_buttons_active" value='1' <?php if(get_option('csbwfs_buttons_active')!=''){ echo ' checked="checked"'; }?>/>
191
+ </td>
192
+ </tr>
193
+
194
+ <tr><td colspan="2"><strong>Show Share Buttons On :</strong> Home <input type="checkbox" id="csbwfs_page_hide_home" value="yes" name="csbwfs_page_hide_home" <?php if(get_option('csbwfs_page_hide_home')!='yes'){echo '';}else{echo 'checked="checked"';}?>/> Page <input type="checkbox" id="csbwfs_page_hide_page" value="yes" name="csbwfs_page_hide_page" <?php if(get_option('csbwfs_page_hide_page')!='yes'){echo '';}else { echo 'checked="checked"';}?>/> Post <input type="checkbox" id="csbwfs_page_hide_post" value="yes" name="csbwfs_page_hide_post" <?php if(get_option('csbwfs_page_hide_post')!='yes'){echo '';}else{echo 'checked="checked"';}?>/> <br>
195
+ </td></tr>
196
+
197
+ <tr><td colspan="2"><strong><h4>Social Share Button Images (Size:31X30) :</h4></strong></td></tr>
198
+ <tr>
199
+ <th><?php echo 'Facebook:';?></th>
200
+ <td>
201
+
202
+ <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"/>
203
+ </td>
204
+ </tr>
205
+ <tr>
206
+ <th><?php echo 'Twitter:';?></th>
207
+ <td>
208
+
209
+ <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"/>
210
+ </td>
211
+ </tr>
212
+ <tr>
213
+ <th><?php echo 'Linkdin:';?></th>
214
+ <td>
215
+
216
+ <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"/>
217
+ </td>
218
+ </tr>
219
+ <tr>
220
+ <th><?php echo 'Pintrest:';?></th>
221
+ <td>
222
+
223
+ <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"/>
224
+ </td>
225
+ </tr>
226
+ <tr>
227
+ <th><?php echo 'Google:';?></th>
228
+ <td>
229
+
230
+ <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"/>
231
+ </td>
232
+ </tr>
233
+ <tr>
234
+ <th><?php echo 'Mail:';?></th>
235
+ <td>
236
+ <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"/>
237
+ </td>
238
+ </tr>
239
+
240
+
241
+ <tr><td colspan="2" border="1"><h2 style="width: 80%; border-bottom: 1px solid #666; padding-top: 10px; padding-bottom: 10px;"><strong>Social Share Button Publish Options</strong></h2></td></tr>
242
+ <tr>
243
+ <th valign="top"><?php echo 'Publish Buttons:';?></th>
244
+ <td valign="top"><input type="checkbox" id="publish1" value="yes" name="csbwfs_fpublishBtn" <?php if(get_option('csbwfs_fpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Facebook Button</b><br>
245
+ <input type="checkbox" id="publish2" name="csbwfs_tpublishBtn" value="yes" <?php if(get_option('csbwfs_tpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Twitter Button</b><br>
246
+ <input type="checkbox" id="publish3" name="csbwfs_gpublishBtn" value="yes" <?php if(get_option('csbwfs_gpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Google Button</b><br>
247
+ <input type="checkbox" id="publish4" name="csbwfs_lpublishBtn" value="yes" <?php if(get_option('csbwfs_lpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Linkdin Button</b><br>
248
+ <input type="checkbox" id="publish6" name="csbwfs_ppublishBtn" value="yes" <?php if(get_option('csbwfs_ppublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Pinterest Button</b><br>
249
+ <input type="checkbox" id="publish5" name="csbwfs_mpublishBtn" value="yes" <?php if(get_option('csbwfs_mpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Mailbox Button</b>
250
+ <?php if(get_option('csbwfs_mpublishBtn')=='yes'){?>
251
+ <br><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>
252
+ <?php } ?>
253
+ </td>
254
+ </tr>
255
+ <tr><td colspan="2">&nbsp;</td></tr>
256
+ <tr>
257
+ <th>&nbsp;</th>
258
+ <td><?php echo get_submit_button('Save Settings','button-primary','submit','','');?></td>
259
+ </tr>
260
+ <tr><td colspan="2">&nbsp;</td></tr>
261
+ </table>
262
+ <?php settings_fields('csbwf_sidebar_options'); ?>
263
+
264
+ </form>
265
+
266
+ <!-- End Options Form -->
267
+ </div>
268
+
269
+ <?php
270
+ }
271
+
272
+ require dirname(__FILE__).'/csbwfs-class.php';
273
+
274
+ /*
275
+
276
+ *Delete the options during disable the plugins
277
+
278
+ */
279
+
280
+ if( function_exists('register_uninstall_hook') )
281
+
282
+ register_uninstall_hook(__FILE__,'csbwf_sidebar_uninstall');
283
+
284
+ //Delete all Custom Tweets options after delete the plugin from admin
285
+ function csbwf_sidebar_uninstall(){
286
+
287
+ delete_option('csbwfs_active');
288
+ delete_option('csbbuttons_active');
289
+ delete_option('csbwfs_position');
290
+ delete_option('csbwfs_fb_image');
291
+ delete_option('csbwfs_tw_image');
292
+ delete_option('csbwfs_li_image');
293
+ delete_option('csbwfs_mail_image');
294
+ delete_option('csbwfs_gp_image');
295
+ delete_option('csbwfs_pin_image');
296
+ delete_option('csbwfs_fb_bg');
297
+ delete_option('csbwfs_tw_bg');
298
+ delete_option('csbwfs_li_bg');
299
+ delete_option('csbwfs_mail_bg');
300
+ delete_option('csbwfs_gp_bg');
301
+ delete_option('csbwfs_pin_bg');
302
+ delete_option('csbwfs_fpublishBtn');
303
+ delete_option('csbwfs_tpublishBtn');
304
+ delete_option('csbwfs_gpublishBtn');
305
+ delete_option('csbwfs_ppublishBtn');
306
+ delete_option('csbwfs_lpublishBtn');
307
+ delete_option('csbwfs_mpublishBtn');
308
+ delete_option('csbwfs_mailMessage');
309
+ delete_option('csbwfs_top_margin');
310
+ delete_option('csbwfs_page_hide_home');
311
+ delete_option('csbwfs_page_hide_post');
312
+ delete_option('csbwfs_page_hide_page');
313
+ delete_option('csbwfs_page_fb_image');
314
+ delete_option('csbwfs_page_tw_image');
315
+ delete_option('csbwfs_page_li_image');
316
+ delete_option('csbwfs_page_mail_image');
317
+ delete_option('csbwfs_page_gp_image');
318
+ delete_option('csbwfs_page_pin_image');
319
+
320
+ }
321
+ ?>
images/fb-p.png ADDED
Binary file
images/fb.png ADDED
Binary file
images/gp-p.png ADDED
Binary file
images/gp.png ADDED
Binary file
images/hide.png ADDED
Binary file
images/in-p.png ADDED
Binary file
images/in.png ADDED
Binary file
images/ml-p.png ADDED
Binary file
images/ml.png ADDED
Binary file
images/pinit-p.png ADDED
Binary file
images/pinit.png ADDED
Binary file
images/raghu.jpg ADDED
Binary file
images/sharethis.png ADDED
Binary file
images/show.png ADDED
Binary file
images/tw-p.png ADDED
Binary file
images/tw.png ADDED
Binary file
readme.txt ADDED
@@ -0,0 +1,84 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
7
+ Stable tag: 1.3
8
+
9
+ Add Social Share Buttons Using Floating Sidebar On Your Site (Facebook,Twitter,Linkedin,Google+,Pinterest,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 easly share your website with your firends 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
+
21
+ Live [demo](http://www.mrwebsolution.in/)
22
+
23
+
24
+ == Installation ==
25
+
26
+ Step 1. Upload "custom-share-buttons-with-floating-sidebar" folder to the `/wp-content/plugins/` directory
27
+
28
+ Step 2. Activate the plugin through the Plugins menu in WordPress
29
+
30
+ Step 3. Go to Settings/"Custom Share Buttons with Floating Sidebar" and configure the plugin settings.
31
+
32
+ == Frequently Asked Questions ==
33
+ 1.How add floating share buttons on my website?
34
+
35
+ After active the plugin you have must need to enable this plugin and cheked the checkbox other settings as well.
36
+
37
+ 2.Can i change the custom share buttons images from admin?
38
+
39
+ 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.
40
+
41
+ 3.Is there any demo site where your plugins have been used?
42
+
43
+ Yes, Please visit on this [site](http://www.mrwebsolution.in/) for check live demo
44
+
45
+ 3.Can i define the top margin for share buttons block?
46
+
47
+ Yes, admin can define the top margin from plugin settings page
48
+
49
+ 4.Can we add the social share buttons on every post/pages?
50
+
51
+ Yes,you have only need to enable the "Social Share Button" from admin by plugin settings
52
+
53
+ 5.Can we add at a time only the "Floating Sidebar" OR "Social Share Buttons"?
54
+
55
+ Yes,For do it you have need to enable at a time only one from both "Floating Sidebar" and "Social Share Buttons"
56
+
57
+
58
+ == Screenshots ==
59
+
60
+ 1. screenshot-1.png
61
+
62
+ 2. screenshot-2.png
63
+
64
+ 3. screenshot-3.png
65
+
66
+ 3. screenshot-4.png
67
+
68
+ == Changelog ==
69
+
70
+ = 1.3 =
71
+ * Added an options for add the social share buttons on bottom of the content on every post/pages
72
+
73
+ = 1.2 =
74
+ * Fixed button image gap issue for right position
75
+ * Added new option for set the delay time to publish the share butttons
76
+
77
+ = 1.1 =
78
+ * Fixed the right float sidebar issue
79
+ * Added new option for define the margin from TOP
80
+ * Added the show/hide buttons
81
+ * On Mail buttons :by default set current page title as a mail subject-line and page link in mail-body
82
+
83
+ = 1.0 =
84
+ * First stable release