Custom Share Buttons with Floating Sidebar - Version 1.0

Version Description

Download this release

Release Info

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

Version 1.0

csbwfs-class.php ADDED
@@ -0,0 +1,226 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ // get all options value for "Custom Share Buttons with Floating Sidebar"
3
+ function get_csbwf_sidebar_options() {
4
+ global $wpdb;
5
+ $ctOptions = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options WHERE option_name LIKE 'csbwfs_%'");
6
+
7
+ foreach ($ctOptions as $option) {
8
+ $ctOptions[$option->option_name] = $option->option_value;
9
+ }
10
+
11
+ return $ctOptions;
12
+ }
13
+
14
+ // Get plugin options
15
+ $pluginOptionsVal=get_csbwf_sidebar_options();
16
+ //check plugin in enable or not
17
+ if($pluginOptionsVal['csbwfs_active']==1){
18
+ add_action('wp_footer','get_csbwf_sidebar_content');
19
+ add_action( 'wp_enqueue_scripts', 'csbwf_sidebar_scripts' );
20
+ add_action('wp_footer','csbwf_sidebar_load_inline_js');
21
+ }
22
+
23
+
24
+ //register style and scrip files
25
+ function csbwf_sidebar_scripts() {
26
+ wp_enqueue_script( 'jquery' ); // wordpress jQuery
27
+ wp_register_style( 'csbwf_sidebar_style', plugins_url( 'css/csbwfs.css',__FILE__ ) );
28
+ wp_enqueue_style( 'csbwf_sidebar_style' );
29
+ }
30
+
31
+ /*
32
+ -----------------------------------------------------------------------------------------------
33
+ "Add the jQuery code in head section using hooks"
34
+ -----------------------------------------------------------------------------------------------
35
+ */
36
+
37
+
38
+ function csbwf_sidebar_load_inline_js()
39
+ {
40
+ $pluginOptionsVal=get_csbwf_sidebar_options();
41
+ $jscnt='<script>jQuery(document).ready(function()
42
+ { ';
43
+
44
+ if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
45
+ $jscnt.='jQuery("div#tw a").hover(function(){
46
+ jQuery("div#tw a").animate({width:"60px"});
47
+ },function(){
48
+ jQuery("div#tw a").stop( true, true ).animate({width:"45px"});
49
+ });';
50
+ endif;
51
+
52
+ if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
53
+ $jscnt.='jQuery("div#fb a").hover(function(){
54
+ jQuery("div#fb a").animate({width:"60px"});
55
+ },function(){
56
+ jQuery("div#fb a").stop( true, true ).animate({width:"45px"});
57
+ });';
58
+ endif;
59
+
60
+ if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
61
+ $jscnt.='jQuery("div#ml a").hover(function(){
62
+ jQuery("div#ml a").animate({width:"60px"});
63
+ },function(){
64
+ jQuery("div#ml a").stop( true, true ).animate({width:"45px"});
65
+ });';
66
+ endif;
67
+
68
+ if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
69
+ $jscnt.='jQuery("div#gp a").hover(function(){
70
+ jQuery("div#gp a").animate({width:"60px"});
71
+ },function(){
72
+ jQuery("div#gp a").stop( true, true ).animate({width:"45px"});
73
+ });';
74
+ endif;
75
+
76
+ if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
77
+ $jscnt.='jQuery("div#li a").hover(function(){
78
+ jQuery("div#li a").animate({width:"60px"});
79
+ },function(){
80
+ jQuery("div#li a").stop( true, true ).animate({width:"45px"});
81
+ });';
82
+ endif;
83
+
84
+ if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
85
+ $jscnt.='jQuery("div#pin a").hover(function(){
86
+ jQuery("div#pin a").animate({width:"60px"});
87
+ },function(){
88
+ jQuery("div#pin a").stop( true, true ).animate({width:"45px"});
89
+ });';
90
+ endif;
91
+
92
+ $jscnt.='jQuery("div.show").hide();
93
+ jQuery("div.show a").click(function(){
94
+ jQuery("div#social-inner").show(500);
95
+ jQuery("div.show").hide(500);
96
+ jQuery("div.hide").show(500);
97
+ });
98
+
99
+ jQuery("div.hide a").click(function(){
100
+ jQuery("div.show").show(500);
101
+ jQuery("div.hide").hide(500);
102
+ jQuery("div#social-inner").hide(500);
103
+ });
104
+
105
+ });</script>';
106
+
107
+ echo $jscnt;
108
+ }
109
+
110
+ /*
111
+ -----------------------------------------------------------------------------------------------
112
+ "Custom Share Buttons with Floating Sidebar" HTML
113
+ -----------------------------------------------------------------------------------------------
114
+ */
115
+
116
+
117
+ function get_csbwf_sidebar_content() {
118
+ global $post;
119
+ $pluginOptionsVal=get_csbwf_sidebar_options();
120
+
121
+ if(is_category())
122
+ {
123
+ $category_id = get_query_var('cat');
124
+ $shareurl =get_category_link( $category_id );
125
+ $cats = get_the_category();
126
+ $ShareTitle=$cats[0]->name;
127
+ }elseif(is_page() || is_single())
128
+ {
129
+ $shareurl=get_permalink($post->ID);
130
+ $ShareTitle=$post->post_title;
131
+ }
132
+ else
133
+ {
134
+ $shareurl =home_url('/');
135
+ $ShareTitle='Raghunath Blog';
136
+ }
137
+
138
+ /* Get All buttons Image */
139
+
140
+ //get facebook button image
141
+ if($pluginOptionsVal['csbwfs_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_fb_image'];}
142
+ else{$fImg=plugins_url('images/fb.png',__FILE__);}
143
+ //get twitter button image
144
+ if($pluginOptionsVal['csbwfs_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_tw_image'];}
145
+ else{$tImg=plugins_url('images/tw.png',__FILE__);}
146
+ //get linkdin button image
147
+ if($pluginOptionsVal['csbwfs_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_li_image'];}
148
+ else{$lImg=plugins_url('images/in.png',__FILE__);}
149
+ //get mail button image
150
+ if($pluginOptionsVal['csbwfs_mail_image']!=''){ $mImg=$pluginOptionsVal['csbwfs_mail_image'];}
151
+ else{$mImg=plugins_url('images/ml.png',__FILE__);}
152
+ //get google plus button image
153
+ if($pluginOptionsVal['csbwfs_gp_image']!=''){ $gImg=$pluginOptionsVal['csbwfs_gp_image'];}
154
+ else{$gImg=plugins_url('images/gp.png',__FILE__);}
155
+ //get pinterest button image
156
+ if($pluginOptionsVal['csbwfs_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_pin_image'];}
157
+ else{$pImg=plugins_url('images/pinit.png',__FILE__);}
158
+ //get email message
159
+ if($pluginOptionsVal['csbwfs_mailMessage']!=''){ $mailMsg=$pluginOptionsVal['csbwfs_mailMessage'];}
160
+ else{$mailMsg='raghunath.0087@gmail.com?subject=Thanks for create social share plugin';}
161
+
162
+ ?>
163
+
164
+ <div id='social-widget' title="Share This With Your Friends">
165
+ <!--
166
+ <div class="show"><a href="javascript:" alt="Email" id="show"><img src="<?php //echo plugins_url('custom-share-buttons-with-floating-sidebar/images/show.png');?>" title="Show Buttons"></a></div>
167
+ -->
168
+ <div id="social-inner">
169
+ <?php if(get_csbwf_sidebar_options('csbwfs_fpublishBtn')!=''):?>
170
+ <!-- Facebook -->
171
+ <div class="sbutton">
172
+ <div class="fb"><div id="fb">
173
+ <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;"
174
+ target="_blank" alt="Share on Facebook">
175
+
176
+ <img src="<?php echo $fImg;?>"></a></div></div>
177
+ </div>
178
+ <?php endif;?>
179
+ <?php if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):?>
180
+ <!-- Twitter -->
181
+ <div class="sbutton">
182
+ <div class="tw"><div id="tw"><a href="javascript:" onclick="window.open('https://twitter.com/?status=<?php echo $ShareTitle;?>', '_blank', 'width=800,height=300')" alt="Twitter"><img src="<?php echo $tImg;?>"></a></div></div>
183
+ </div>
184
+ <?php endif;?>
185
+ <?php if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):?>
186
+ <!-- Google plus -->
187
+ <div class="sbutton">
188
+
189
+ <div class="gp"><div id="gp"><a href="https://plus.google.com/share?url=<?php echo $shareurl;?>" onclick="javascript:window.open(this.href,
190
+ '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" alt="Google Plus">
191
+
192
+
193
+ <img src="<?php echo $gImg;?>"></a></div></div>
194
+ </div>
195
+ <?php endif;?>
196
+ <?php if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):?>
197
+ <!-- Linkdin -->
198
+ <div class="sbutton">
199
+
200
+ <div class="li"><div id="li">
201
+ <a href="https://www.linkedin.com/cws/share?url=<?php echo $shareurl;?>" onclick="javascript:window.open(this.href,
202
+ '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" alt="Google Plus">
203
+ <img src="<?php echo $lImg;?>"></a></div></div>
204
+ </div>
205
+ <?php endif;?>
206
+ <?php if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):?>
207
+ <!-- Pinterest -->
208
+ <div class="sbutton">
209
+
210
+ <div class="pin"><div id="pin"><a onclick="window.open('http://pinterest.com/pin/create/button/?url=<?php echo $shareurl;?>&amp;media=http://myrevsource.pbodev.info/Projects/newrevsite/img/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></div>
211
+ </div>
212
+ <?php endif;?>
213
+ <?php if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):?>
214
+ <!-- Mail-->
215
+ <div class="sbutton">
216
+ <div class="ml"><div id="ml"><a href="mailto:<?php echo $mailMsg;?>" alt="Email"><img src="<?php echo $mImg;?>"></a></div></div>
217
+ </div>
218
+ <?php endif;?>
219
+ </div>
220
+ <!--
221
+ <div class="hide"><a href="javascript:" alt="Email" id="hide"><img src="<?php //echo plugins_url('custom-share-buttons-with-floating-sidebar/images/hide.png');?>" title="Hide Buttons"></a></div>
222
+ -->
223
+ </div>
224
+ <?php
225
+ }
226
+ ?>
css/csbwfs.css ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #social-widget {
2
+ position:fixed;
3
+ top:25%;
4
+ left:0px;
5
+ z-index:998;
6
+ width:200px;
7
+ }
8
+
9
+ #social-widget .sbutton {
10
+ margin: 0px;
11
+ }
12
+ .sbutton img{padding:5px;}
13
+
14
+ #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)}
15
+
16
+ #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;}
17
+
18
+ #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;}
19
+
20
+ #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;}
21
+
22
+ #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;}
23
+
24
+ #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;}
custom-share-buttons-with-floating-sidebar.php ADDED
@@ -0,0 +1,207 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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.0
9
+ */
10
+
11
+ //Admin "Custom Share Buttons with Floating Sidebar" Menu Item
12
+ add_action('admin_menu','csbwf_sidebar_menu');
13
+
14
+ function csbwf_sidebar_menu(){
15
+
16
+ add_options_page('Custom Share Buttons With Floating Sidebar','Custom Share Buttons With Floating Sidebar','manage_options','csbwfs-settings','csbwf_sidebar_admin_option_page');
17
+
18
+ }
19
+
20
+ //Define Action for register "Custom Share Buttons with Floating Sidebar" Options
21
+ add_action('admin_init','csbwf_sidebar_init');
22
+
23
+
24
+ //Register "Custom Share Buttons with Floating Sidebar" options
25
+ function csbwf_sidebar_init(){
26
+
27
+ register_setting('csbwf_sidebar_options','csbwfs_active');
28
+ register_setting('csbwf_sidebar_options','csbwfs_position');
29
+ register_setting('csbwf_sidebar_options','csbwfs_fb_image');
30
+ register_setting('csbwf_sidebar_options','csbwfs_tw_image');
31
+ register_setting('csbwf_sidebar_options','csbwfs_li_image');
32
+ register_setting('csbwf_sidebar_options','csbwfs_mail_image');
33
+ register_setting('csbwf_sidebar_options','csbwfs_gp_image');
34
+ register_setting('csbwf_sidebar_options','csbwfs_pin_image');
35
+ register_setting('csbwf_sidebar_options','csbwfs_fpublishBtn');
36
+ register_setting('csbwf_sidebar_options','csbwfs_tpublishBtn');
37
+ register_setting('csbwf_sidebar_options','csbwfs_gpublishBtn');
38
+ register_setting('csbwf_sidebar_options','csbwfs_ppublishBtn');
39
+ register_setting('csbwf_sidebar_options','csbwfs_lpublishBtn');
40
+ register_setting('csbwf_sidebar_options','csbwfs_mpublishBtn');
41
+ register_setting('csbwf_sidebar_options','csbwfs_mailMessage');
42
+
43
+ }
44
+
45
+
46
+ // Add settings link to plugin list page in admin
47
+ function csbwfs_add_settings_link( $links ) {
48
+ $settings_link = '<a href="options-general.php?page=csbwfs-settings">' . __( 'Settings', 'csbwfs' ) . '</a>';
49
+ array_unshift( $links, $settings_link );
50
+ return $links;
51
+ }
52
+
53
+ $plugin = plugin_basename( __FILE__ );
54
+ add_filter( "plugin_action_links_$plugin", 'csbwfs_add_settings_link' );
55
+
56
+ /** Display the Options form for CSBWFS */
57
+
58
+ function csbwf_sidebar_admin_option_page(){ ?>
59
+
60
+ <div style="width: 80%; padding: 10px; margin: 10px;">
61
+
62
+ <h2>Custom Share Buttons With Floating Sidebar Settings</h2>
63
+
64
+ <p style="padding-bottom: 2%;">Please fill all options value.</p>
65
+
66
+ <!-- Start Options Form -->
67
+
68
+ <form action="options.php" method="post" id="csbwf-sidebar-admin-form">
69
+ <table class="cssfw">
70
+ <tr>
71
+ <th><?php echo 'Enable Plugin:';?></th>
72
+ <td>
73
+ <input type="checkbox" id="csbwfs_active" name="csbwfs_active" value='1' <?php if(get_option('csbwfs_active')!=''){ echo ' checked="checked"'; }?>/>
74
+ </td>
75
+ <td rowspan="17" valign="top" style="padding-left: 20px;border-left:1px solid #ccc;">
76
+ <h2>Plugin Author:</h2>
77
+ <div style="font-size: 14px;">
78
+ <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>Author Blog <a href="http://raghunathgurjar.wordpress.com" target="_blank">http://raghunathgurjar.wordpress.com</a>
79
+ <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>
80
+ Other Plugins:<br>
81
+ <ul>
82
+ <li><a href="https://wordpress.org/plugins/simple-testimonial-rutator/" target="_blank">Simple Testimonial Rutator(Responsive)</a></li>
83
+ </ul>
84
+ </div></td>
85
+ </tr>
86
+ <tr>
87
+ <th nowrap><?php echo 'Siderbar Position:';?></th>
88
+ <td>
89
+ <select id="csbwfs_position" name="csbwfs_position" >
90
+ <option value="left" <?php if(get_option('csbwfs_position')=='left'){echo 'selected="selected"';}?>>Left</option>
91
+ <option value="right" <?php if(get_option('csbwfs_position')=='right'){echo 'selected="selected"';}?>>Right</option>
92
+ </select>
93
+ </td>
94
+ </tr>
95
+ <tr><td colspan="2">&nbsp;</td></tr>
96
+ <tr><td colspan="2"><h2 style="width: 80%; border-bottom: 1px solid #666; padding-top: 10px; padding-bottom: 10px;"><strong>Social Share Button Images (Size:36X34)</strong></h2></td></tr>
97
+ <tr>
98
+ <th><?php echo 'Facebook:';?></th>
99
+ <td>
100
+
101
+ <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="40"/>
102
+ </td>
103
+ </tr>
104
+ <tr>
105
+ <th><?php echo 'Twitter:';?></th>
106
+ <td>
107
+
108
+ <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="40"/>
109
+ </td>
110
+ </tr>
111
+ <tr>
112
+ <th><?php echo 'Linkdin:';?></th>
113
+ <td>
114
+
115
+ <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="40"/>
116
+ </td>
117
+ </tr>
118
+ <tr>
119
+ <th><?php echo 'Pintrest:';?></th>
120
+ <td>
121
+
122
+ <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="40"/>
123
+ </td>
124
+ </tr>
125
+ <tr>
126
+ <th><?php echo 'Google:';?></th>
127
+ <td>
128
+
129
+ <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="40"/>
130
+ </td>
131
+ </tr>
132
+ <tr>
133
+ <th><?php echo 'Mail:';?></th>
134
+ <td>
135
+
136
+ <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="40"/>
137
+ </td>
138
+ </tr>
139
+
140
+ <tr><td colspan="2"><h2 style="width: 90%; border-bottom: 1px solid #666; padding-top: 10px; padding-bottom: 10px;"><strong>Social Share Button Publish Options</strong></h2></td></tr>
141
+ <tr>
142
+ <th valign="top"><?php echo 'Publish Buttons:';?></th>
143
+ <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>
144
+ <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>
145
+ <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>
146
+ <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>
147
+ <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>
148
+ <input type="checkbox" id="publish5" name="csbwfs_mpublishBtn" value="yes" <?php if(get_option('csbwfs_mpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Mailbox Button</b>
149
+ <?php if(get_option('csbwfs_mpublishBtn')=='yes'){?>
150
+ <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>
151
+ <?php } ?>
152
+ </td>
153
+ </tr>
154
+ <tr><td colspan="2">&nbsp;</td></tr>
155
+ <tr>
156
+ <th>&nbsp;</th>
157
+ <td><?php echo get_submit_button('Save Settings','button-primary','submit','','');?></td>
158
+ </tr>
159
+ <tr><td colspan="2">&nbsp;</td></tr>
160
+ </table>
161
+ <?php settings_fields('csbwf_sidebar_options'); ?>
162
+
163
+ </form>
164
+
165
+ <!-- End Options Form -->
166
+ </div>
167
+
168
+ <?php
169
+ }
170
+
171
+ require dirname(__FILE__).'/csbwfs-class.php';
172
+
173
+ /*
174
+
175
+ *Delete the options during disable the plugins
176
+
177
+ */
178
+
179
+ if( function_exists('register_uninstall_hook') )
180
+
181
+ register_uninstall_hook(__FILE__,'csbwf_sidebar_uninstall');
182
+
183
+ //Delete all Custom Tweets options after delete the plugin from admin
184
+ function csbwf_sidebar_uninstall(){
185
+
186
+ delete_option('csbwfs_active');
187
+ delete_option('csbwfs_position');
188
+ delete_option('csbwfs_fb_image');
189
+ delete_option('csbwfs_tw_image');
190
+ delete_option('csbwfs_li_image');
191
+ delete_option('csbwfs_mail_image');
192
+ delete_option('csbwfs_gp_image');
193
+ delete_option('csbwfs_pin_image');
194
+ delete_option('csbwfs_fpublishBtn');
195
+ delete_option('csbwfs_tpublishBtn');
196
+ delete_option('csbwfs_gpublishBtn');
197
+
198
+ delete_option('csbwfs_ppublishBtn');
199
+
200
+ delete_option('csbwfs_lpublishBtn');
201
+
202
+ delete_option('csbwfs_mpublishBtn');
203
+
204
+ delete_option('csbwfs_mailMessage');
205
+
206
+ }
207
+ ?>
images/fb.png ADDED
Binary file
images/gp.png ADDED
Binary file
images/hide.png ADDED
Binary file
images/in.png ADDED
Binary file
images/ml.png ADDED
Binary file
images/pinit.png ADDED
Binary file
images/raghu.jpg ADDED
Binary file
images/show.png ADDED
Binary file
images/tw.png ADDED
Binary file
readme.txt ADDED
@@ -0,0 +1,55 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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: 3.9.1
7
+ Stable tag: 1.0
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.Even you can change the share buttons images if you wish!.
14
+
15
+ It's very simple plugin for share your site with your firends on Facebook,Twitter,Linkedin,Pinterest,Google+.
16
+ There are not added any external JS files in this plugin so it's does not effect on your site speed as well.
17
+
18
+ Live [demo](http://www.mrwebsolution.in/)
19
+
20
+
21
+ == Installation ==
22
+
23
+ Step 1. Upload "custom-share-buttons-with-floating-sidebar" folder to the `/wp-content/plugins/` directory
24
+
25
+ Step 2. Activate the plugin through the Plugins menu in WordPress
26
+
27
+ Step 3. Go to Settings/"Custom Share Buttons with Floating Sidebar" and configure the plugin settings.
28
+
29
+ == Frequently Asked Questions ==
30
+ 1.How add floating share buttons on my website?
31
+
32
+ After active the plugin you have must need to enable this plugin and cheked the checkbox other settings as well.
33
+
34
+ 2.Can i change the custom share buttons images from admin?
35
+
36
+ Yes,You can changes all social share custom buttons images if you wish, For do that you have only need to define the buttons images path through the plugins settings.
37
+
38
+ 3.Is there any demo site where your plugins have been used?
39
+
40
+ Yes, Please visit on this [site](http://www.mrwebsolution.in/) for check live demo
41
+
42
+
43
+ == Screenshots ==
44
+
45
+ 1. screenshot-1.png
46
+
47
+ 2. screenshot-2.png
48
+
49
+ 3. screenshot-3.png
50
+
51
+
52
+ == Changelog ==
53
+
54
+ = 1.0 =
55
+ * First stable release