Custom Share Buttons with Floating Sidebar - Version 3.0

Version Description

  • Tested with latest wordpress version 4.7
    • Optimized plugin code
Download this release

Release Info

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

Code changes from version 2.9 to 3.0

csbwfs-class.php CHANGED
File without changes
css/admin-csbwfs.css CHANGED
@@ -1,4 +1,4 @@
1
  /* Custom share Buttons With Floating Sidebar (C)
2
  * Author: Raghunath Gurjar
3
  * */
4
- #csbwf-tab-menu {width:100%; padding:1%;background: none repeat scroll 0 0 #ccc;}#csbwf-tab-menu a {background: none repeat scroll 0 0 #DCA808; border: 0 none;color: #FFFFFF;display: inline-block;font-size: 16px;font-weight: bold;padding: 12px 20px;opacity:0.5;}#csbwf-tab-menu a:hover{cursor:pointer;background: none repeat scroll 0 0 #DCA808;opacity:1;}#csbwf-tab-menu a.active{ background: none repeat scroll 0 0 #DCA808;opacity:1;}#csbwf-sidebar-admin-form .submit-btn {width: 100%; display: inline-block; padding-top: 10px; margin-top: 10px; border-top: 1px dashed #DCA808;}#csbwf-sidebar-admin-form .submit-btn .button-primary{cursor:pointer;height:35px;}#csbwf-sidebar-admin-form .csbwfs-setting p label {min-width:75px;display:inline-block;}#div-csbwfs-support img {width:10%; height:auto;}#csbwf-sidebar-admin-form ul {list-style:inside}#csbwf-sidebar-admin-form .contact-author{ background: none repeat scroll 0 0 #305891;border: 0 none;color: #FFFFFF;cursor:pointer;display: inline-block;font-size: 12px; font-weight: bold;padding: 2px 5px;text-decoration: none;}
1
  /* Custom share Buttons With Floating Sidebar (C)
2
  * Author: Raghunath Gurjar
3
  * */
4
+ #csbwf-tab-menu {width:100%; padding:1%;background: none repeat scroll 0 0 #ccc;}#csbwf-tab-menu a {background: none repeat scroll 0 0 #DCA808; border: 0 none;color: #FFFFFF;display: inline-block;font-size: 16px;font-weight: bold;padding: 12px 20px;opacity:0.5;}#csbwf-tab-menu a:hover{cursor:pointer;background: none repeat scroll 0 0 #DCA808;opacity:1;}#csbwf-tab-menu a.active{ background: none repeat scroll 0 0 #DCA808;opacity:1;}#csbwf-sidebar-admin-form .submit-btn {width: 100%; display: inline-block; padding-top: 10px; margin-top: 10px; border-top: 1px dashed #DCA808;}#csbwf-sidebar-admin-form .submit-btn .button-primary{cursor:pointer;height:35px;}#csbwf-sidebar-admin-form .submit-btn .extrabtn{right:20%;position: fixed;}#csbwf-sidebar-admin-form .csbwfs-setting p label {min-width:75px;display:inline-block;}#div-csbwfs-support img {width:10%; height:auto;}#csbwf-sidebar-admin-form ul {list-style:inside}#csbwf-sidebar-admin-form .contact-author{ background: none repeat scroll 0 0 #305891;border: 0 none;color: #FFFFFF;cursor:pointer;display: inline-block;font-size: 12px; font-weight: bold;padding: 2px 5px;text-decoration: none;}
css/csbwfs.css CHANGED
@@ -63,4 +63,4 @@ i.csbwfs_pinterest{background-position: 14% 20%;}
63
  i.csbwfs_youtube {background-position: 32% 4%;}
64
  i.csbwfs_reddit {background-position: 26% 20%;}
65
  i.csbwfs_stumbleupon {background-position: 2% 4%;}
66
- i.csbwfs_mail {background-position: 8% 20%;}
63
  i.csbwfs_youtube {background-position: 32% 4%;}
64
  i.csbwfs_reddit {background-position: 26% 20%;}
65
  i.csbwfs_stumbleupon {background-position: 2% 4%;}
66
+ i.csbwfs_mail {background-position: 8% 20%;}
css/fonts/fontello.eot ADDED
Binary file
css/fonts/fontello.svg ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" standalone="no"?>
2
+ <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
3
+ <svg xmlns="http://www.w3.org/2000/svg">
4
+ <metadata>Copyright (C) 2016 by original authors @ fontello.com</metadata>
5
+ <defs>
6
+ <font id="fontello" horiz-adv-x="1000" >
7
+ <font-face font-family="fontello" font-weight="400" font-stretch="normal" units-per-em="1000" ascent="850" descent="-150" />
8
+ <missing-glyph horiz-adv-x="1000" />
9
+ <glyph glyph-name="twitter" unicode="&#xf099;" d="M904 622q-37-54-90-93 0-8 0-23 0-73-21-145t-64-139-103-117-144-82-181-30q-151 0-276 81 19-2 43-2 126 0 224 77-59 1-105 36t-64 89q19-3 34-3 24 0 48 6-63 13-104 62t-41 115v2q38-21 82-23-37 25-59 64t-22 86q0 49 25 91 68-83 164-133t208-55q-5 21-5 41 0 75 53 127t127 53q79 0 132-57 61 12 115 44-21-64-80-100 52 6 104 28z" horiz-adv-x="928.6" />
10
+
11
+ <glyph glyph-name="facebook" unicode="&#xf09a;" d="M535 843v-147h-87q-48 0-65-20t-17-60v-106h164l-22-165h-142v-424h-171v424h-142v165h142v122q0 104 58 161t155 57q82 0 127-7z" horiz-adv-x="571.4" />
12
+
13
+ <glyph glyph-name="rss" unicode="&#xf09e;" d="M214 100q0-45-31-76t-76-31-76 31-31 76 31 76 76 31 76-31 31-76z m286-69q1-15-9-26-10-12-27-12h-75q-14 0-24 9t-11 23q-12 128-103 219t-219 103q-14 1-23 11t-9 24v75q0 16 12 26 9 10 24 10h3q89-7 170-45t145-101q63-63 101-145t45-171z m286-1q1-15-10-26-10-11-26-11h-80q-14 0-25 10t-10 23q-7 120-57 228t-129 188-188 129-227 57q-14 1-24 11t-10 24v80q0 16 11 26 10 10 25 10h1q147-8 280-67t238-164q104-104 164-238t67-280z" horiz-adv-x="785.7" />
14
+
15
+ <glyph glyph-name="linkedin" unicode="&#xf0e1;" d="M195 501v-553h-184v553h184z m12 171q0-41-29-68t-75-27h-1q-46 0-74 27t-28 68q0 41 29 68t75 27 74-27 29-68z m650-407v-317h-183v296q0 59-23 92t-71 33q-35 0-58-19t-36-48q-6-17-6-45v-309h-184q1 223 1 361t0 165l-1 27h184v-80h-1q11 18 23 31t31 29 49 24 64 9q95 0 153-63t58-186z" horiz-adv-x="857.1" />
16
+
17
+ <glyph glyph-name="youtube" unicode="&#xf167;" d="M542 156v-118q0-37-22-37-13 0-25 12v168q12 12 25 12 22 0 22-37z m189-1v-25h-51v25q0 38 25 38t26-38z m-540 122h60v52h-174v-52h59v-318h55v318z m161-318h50v276h-50v-211q-17-23-32-23-10 0-11 11-1 2-1 20v203h-50v-218q0-28 5-41 7-21 32-21 27 0 57 34v-30z m240 83v110q0 41-5 55-10 31-40 31-28 0-52-30v121h-50v-370h50v27q25-31 52-31 30 0 40 31 5 15 5 56z m188 6v7h-51q0-29-1-34-4-20-22-20-26 0-26 38v49h100v57q0 44-15 65-22 28-59 28-38 0-60-28-15-21-15-65v-96q0-44 16-65 22-29 60-29 40 0 60 30 10 15 12 30 1 5 1 33z m-339 509v117q0 39-24 39t-24-39v-117q0-39 24-39t24 39z m401-419q0-131-14-195-8-33-33-56t-57-25q-102-12-309-12t-310 12q-32 3-57 25t-32 56q-15 62-15 195 0 131 15 195 7 33 32 56t57 26q103 11 310 11t309-11q33-4 58-26t32-56q14-62 14-195z m-557 712h57l-67-223v-151h-56v151q-8 42-34 119-21 57-37 104h60l39-147z m207-186v-97q0-46-16-66-21-29-59-29-37 0-59 29-15 21-15 66v97q0 45 15 66 22 28 59 28 38 0 59-28 16-21 16-66z m187 91v-279h-51v31q-30-35-58-35-25 0-33 21-4 13-4 42v220h51v-205q0-19 0-20 2-12 12-12 15 0 32 24v213h51z" horiz-adv-x="857.1" />
18
+
19
+ <glyph glyph-name="pinterest" unicode="&#xf231;" d="M0 517q0 60 21 113t58 93 85 69 103 44 113 14q88 0 164-37t123-108 47-160q0-54-10-105t-34-99-56-83-80-58-106-21q-38 0-75 18t-54 49q-5-22-15-63t-14-53-11-40-15-39-17-35-26-44-35-48l-7-3-5 6q-9 88-9 105 0 51 12 115t37 161 29 113q-18 36-18 94 0 47 29 87t74 41q34 0 53-23t19-57q0-37-24-106t-25-105q0-35 25-58t61-23q31 0 57 14t44 38 31 53 21 61 11 62 4 56q0 96-61 150t-160 54q-111 0-186-72t-75-183q0-25 7-48t15-36 15-26 7-17q0-15-8-40t-21-25q-1 0-9 1-29 9-51 31t-34 53-18 60-6 60z" horiz-adv-x="714.3" />
20
+
21
+ <glyph glyph-name="gplus" unicode="&#xf30f;" d="M48 572q0 58 25 102t56 65 69 34 56 15 26 2l230 0 0-4q0-22-78-36-28 0-38-6 40-20 54-56t14-96q0-102-68-158-38-38-38-54 0-18 50-64 104-90 104-178 0-140-116-194-68-34-150-34l-4 0-4 2q-2-2-4-2-24 0-54 5t-75 21-74 57-29 103q0 60 32 101t83 57 88 22 71 6l2 0q-16 22-24 47t-8 39l2 14-14 0q-64 0-110 30-74 44-74 160z m370-452q-4 52-43 84t-103 32l-16 0q-64-2-114-46-46-42-42-94t53-80 119-24q68 4 109 40t37 88z m-60 500q-30 108-122 108-12 0-20-2-40-12-58-62-16-50-2-106 14-52 47-85t71-33q12 0 18 2 42 12 63 65t3 113z m388-174l150 0 0-94-150 0 0-150-94 0 0 150-150 0 0 94 150 0 0 150 94 0 0-150z" horiz-adv-x="896" />
22
+ </font>
23
+ </defs>
24
+ </svg>
css/fonts/fontello.ttf ADDED
Binary file
css/fonts/fontello.woff ADDED
Binary file
css/fonts/fontello.woff2 ADDED
Binary file
custom-share-buttons-with-floating-sidebar.php CHANGED
@@ -5,7 +5,7 @@ Plugin URI: http://www.mrwebsolution.in/
5
  Description: It's a very simple plugin for add to social share buttons on your site and you can publish buttons floating sidebar. Even you can edit share buttons if you wish
6
  Author: MR Web Solution
7
  Author URI: http://raghunathgurjar.wordpress.com
8
- Version: 2.9
9
  */
10
 
11
  /* Copyright 2015 custom-share-buttons-with-floating-sidebar (email : raghunath.0087@gmail.com)
@@ -26,525 +26,260 @@ Version: 2.9
26
 
27
  //Admin "Custom Share Buttons with Floating Sidebar" Menu Item
28
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
29
- add_action('admin_menu','csbwf_sidebar_menu');
30
- if(!function_exists('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
 
45
- register_setting('csbwf_sidebar_options','csbwfs_active');
46
- register_setting('csbwf_sidebar_options','csbwfs_position');
47
- register_setting('csbwf_sidebar_options','csbwfs_btn_position');
48
- register_setting('csbwf_sidebar_options','csbwfs_btn_text');
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');
57
- register_setting('csbwf_sidebar_options','csbwfs_yt_image');
58
- register_setting('csbwf_sidebar_options','csbwfs_fb_bg');
59
- register_setting('csbwf_sidebar_options','csbwfs_tw_bg');
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');
77
- register_setting('csbwf_sidebar_options','csbwfs_mailMessage');
78
- register_setting('csbwf_sidebar_options','csbwfs_top_margin');
79
- register_setting('csbwf_sidebar_options','csbwfs_delayTimeBtn');
80
- register_setting('csbwf_sidebar_options','csbwfs_btn_display');
81
- /** Image Alt */
82
- register_setting('csbwf_sidebar_options','csbwfs_fb_title');
83
- register_setting('csbwf_sidebar_options','csbwfs_tw_title');
84
- register_setting('csbwf_sidebar_options','csbwfs_li_title');
85
- register_setting('csbwf_sidebar_options','csbwfs_pin_title');
86
- register_setting('csbwf_sidebar_options','csbwfs_gp_title');
87
- register_setting('csbwf_sidebar_options','csbwfs_mail_title');
88
- register_setting('csbwf_sidebar_options','csbwfs_yt_title');
89
- register_setting('csbwf_sidebar_options','csbwfs_re_title');
90
- register_setting('csbwf_sidebar_options','csbwfs_st_title');
91
- register_setting('csbwf_sidebar_options','csbwfs_page_fb_title');
92
- register_setting('csbwf_sidebar_options','csbwfs_page_tw_title');
93
- register_setting('csbwf_sidebar_options','csbwfs_page_li_title');
94
- register_setting('csbwf_sidebar_options','csbwfs_page_pin_title');
95
- register_setting('csbwf_sidebar_options','csbwfs_page_gp_title');
96
- register_setting('csbwf_sidebar_options','csbwfs_page_mail_title');
97
- register_setting('csbwf_sidebar_options','csbwfs_page_yt_title');
98
- register_setting('csbwf_sidebar_options','csbwfs_page_re_title');
99
- register_setting('csbwf_sidebar_options','csbwfs_page_st_title');
100
- register_setting('csbwf_sidebar_options','csbwfs_auto_hide');
101
- //Options for post/pages
102
- register_setting('csbwf_sidebar_options','csbwfs_buttons_active');
103
- register_setting('csbwf_sidebar_options','csbwfs_page_hide_home');
104
- register_setting('csbwf_sidebar_options','csbwfs_page_hide_post');
105
- register_setting('csbwf_sidebar_options','csbwfs_page_hide_page');
106
- register_setting('csbwf_sidebar_options','csbwfs_page_hide_archive');
107
- register_setting('csbwf_sidebar_options','csbwfs_hide_home');
108
- register_setting('csbwf_sidebar_options','csbwfs_page_fb_image');
109
- register_setting('csbwf_sidebar_options','csbwfs_page_tw_image');
110
- register_setting('csbwf_sidebar_options','csbwfs_page_li_image');
111
- register_setting('csbwf_sidebar_options','csbwfs_page_mail_image');
112
- register_setting('csbwf_sidebar_options','csbwfs_page_gp_image');
113
- register_setting('csbwf_sidebar_options','csbwfs_page_pin_image');
114
- register_setting('csbwf_sidebar_options','csbwfs_page_re_image');
115
- register_setting('csbwf_sidebar_options','csbwfs_page_st_image');
116
- register_setting('csbwf_sidebar_options','csbwfs_page_yt_image');
117
- /** message content */
118
- register_setting('csbwf_sidebar_options','csbwfs_show_btn');
119
- register_setting('csbwf_sidebar_options','csbwfs_hide_btn');
120
- register_setting('csbwf_sidebar_options','csbwfs_share_msg');
121
- register_setting('csbwf_sidebar_options','csbwfs_rmSHBtn');
122
- register_setting('csbwf_sidebar_options','csbwfs_featuredshrimg');
123
- register_setting('csbwf_sidebar_options','csbwfs_defaultfeaturedshrimg');
124
- register_setting('csbwf_sidebar_options','csbwfs_deactive_for_mob');
125
-
126
- }
127
 
128
- endif;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
129
 
130
- if(!function_exists('csbwfs_pro_add_settings_link')):
131
- // Add settings link to plugin list page in admin
132
- function csbwfs_pro_add_settings_link( $links ) {
 
 
133
  $settings_link = '<a href="options-general.php?page=csbwfs-settings">' . __( 'Settings', 'csbwfs' ) . '</a>';
134
  array_unshift( $links, $settings_link );
135
  return $links;
136
  }
137
- endif;
138
- $plugin = plugin_basename( __FILE__ );
139
- add_filter( "plugin_action_links_$plugin", 'csbwfs_pro_add_settings_link' );
140
-
141
-
142
- if (isset($_GET['page']) && $_GET['page'] == 'csbwfs-settings') {
143
- if(!function_exists('add_csbwfs_admin_style_script')):
144
- function add_csbwfs_admin_style_script()
145
- {
146
- wp_enqueue_style( 'wp-color-picker' );
147
- wp_enqueue_script('media-upload');
148
- wp_enqueue_script('thickbox');
149
- wp_register_script('csbwfs-image-upload', plugins_url('/js/csbwfs.js',__FILE__ ), array('jquery','media-upload','thickbox','wp-color-picker'));
150
- wp_enqueue_script('csbwfs-image-upload');
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
151
 
152
- }
153
- endif;
154
-
155
- function csbwfs_admin_styles() {
156
- wp_register_style( 'csbwf_admin_style', plugins_url( 'css/admin-csbwfs.css',__FILE__ ) );
157
- wp_enqueue_style( 'csbwf_admin_style' );
158
- wp_enqueue_style( 'wp-color-picker' );
159
- wp_enqueue_style('thickbox');
160
- }
161
-
162
- // better use get_current_screen(); or the global $current_screen
163
-
164
- add_action('admin_print_styles', 'csbwfs_admin_styles');
165
- add_action('admin_footer','add_csbwfs_admin_style_script');
166
- }
167
-
168
- /** Display the Options form for CSBWFS */
169
- if(!function_exists('csbwf_sidebar_admin_option_page')):
170
- function csbwf_sidebar_admin_option_page(){ ?>
171
-
172
- <div style="width: 80%; padding: 10px; margin: 10px;">
173
-
174
- <h1>Custom Share Buttons With Floating Sidebar Settings</h1>
175
- <!-- Start Options Form -->
176
-
177
- <form action="options.php" method="post" id="csbwf-sidebar-admin-form">
178
 
179
- <div id="csbwf-tab-menu"><a id="csbwfs-general" class="csbwf-tab-links active" >General</a> <a id="csbwfs-sidebar" class="csbwf-tab-links">Floating Sidebar</a> <a id="csbwfs-share-buttons" class="csbwf-tab-links">Social Share Buttons</a> <a id="csbwfs-pro" class="csbwf-tab-links">GO PRO</a> <a id="csbwfs-support" class="csbwf-tab-links">Support</a></div>
180
- <p align="right"><span class="submit-btn"><?php echo get_submit_button('Save Settings','button-primary','submit','','');?></span></p>
181
- <div class="csbwfs-setting">
182
- <!-- General Setting -->
183
- <div class="first csbwfs-tab" id="div-csbwfs-general">
184
- <h2>General Settings</h2>
185
- <p><input type="checkbox" id="csbwfs_active" name="csbwfs_active" value='1' <?php if(get_option('csbwfs_active')!=''){ echo ' checked="checked"'; }?>/> <b><?php _e('Enable Sidebar');?> </b></p>
186
-
187
- <p><h3><strong><?php _e('Social Share Button Publish Options:','csbwfs');?></strong></h3></p>
188
- <p><input type="checkbox" id="publish1" value="yes" name="csbwfs_fpublishBtn" <?php if(get_option('csbwfs_fpublishBtn')=='yes'){echo 'checked="checked"';}?>/><b>Facebook Button</b></p>
189
- <p><input type="checkbox" id="publish2" name="csbwfs_tpublishBtn" value="yes" <?php if(get_option('csbwfs_tpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Twitter Button</b></p>
190
- <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>
191
- <p><input type="checkbox" id="publish4" name="csbwfs_lpublishBtn" value="yes" <?php if(get_option('csbwfs_lpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Linkedin Button</b></p>
192
- <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>
193
- <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>
194
- <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>
195
- <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>
196
- <?php if(get_option('csbwfs_mpublishBtn')=='yes'){?>
197
- <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>
198
- <?php } ?>
199
- <p><input type="checkbox" id="ytBtns" name="csbwfs_ytpublishBtn" value="yes" <?php if(get_option('csbwfs_ytpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Youtube Button</b></p>
200
- <?php if(get_option('csbwfs_ytpublishBtn')=='yes'){?>
201
- <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>
202
- <?php } ?>
203
-
204
 
205
- <p><label><h3 ><strong><?php _e('Define your custom message:','csbwfs');?></strong></h3></label></p>
206
- <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>
207
- <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>
208
- <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>
209
- <p><h3><strong><?php _e('Pinterest Share Image Setting :'); ?></strong></h3></p>
210
- <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>
211
- <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>
212
- </div>
213
- <!-- Floating Sidebar -->
214
- <div class="csbwfs-tab" id="div-csbwfs-sidebar">
215
- <h2>Floating Sidebar Settings</h2>
216
- <table>
217
- <tr>
218
- <th nowrap><?php echo 'Siderbar Position:';?></th>
219
- <td>
220
- <select id="csbwfs_position" name="csbwfs_position" >
221
- <option value="left" <?php if(get_option('csbwfs_position')=='left'){echo 'selected="selected"';}?>>Left</option>
222
- <option value="right" <?php if(get_option('csbwfs_position')=='right'){echo 'selected="selected"';}?>>Right</option>
223
- <option value="bottom" <?php if(get_option('csbwfs_position')=='bottom'){echo 'selected="selected"';}?>>Bottom</option>
224
- </select>
225
- </td>
226
- </tr>
227
- <tr>
228
- <th>&nbsp;</th>
229
- <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>
230
- </tr>
231
- <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>
232
- <tr>
233
- <th>&nbsp;</th>
234
- <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"';}?>/><?php _e('Disable Sidebar For Mobile','csbwfs');?></td>
235
- </tr>
236
- <tr><th></th>
237
- <td><input type="checkbox" id="csbwfs_auto_hide" name="csbwfs_auto_hide" value="yes" <?php if(get_option('csbwfs_auto_hide')=='yes'){echo 'checked="checked"';}?>/><?php _e('Auto Hide Sidebar On Page Load','csbwfs');?></td>
238
- </tr>
239
- <tr><th>&nbsp;</th><td><input type="checkbox" id="csbwfs_hide_home" value="yes" name="csbwfs_hide_home" <?php if(get_option('csbwfs_hide_home')!='yes'){echo '';}else{echo 'checked="checked"';}?>/>Hide Sidebar On Home Page</td></tr>
240
- <tr><td colspan="2"><strong><h4>Social Share Button Images 32X32 (Optional) :</h4></strong></td></tr>
241
- <tr><td colspan="2" align="right"><input type="button" id="csbwfs_resetpage" value="Reset"></td></tr>
242
- <tr>
243
- <th><?php echo 'Facebook:';?></th>
244
- <td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg">
245
- <input type="text" id="csbwfs_fb_image" name="csbwfs_fb_image" value="<?php echo get_option('csbwfs_fb_image'); ?>" placeholder="Insert facebook button image path" size="30" class="inputButtonid"/> <input id="csbwfs_fb_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_fb_bg" data-default-color="#305891" class="color-field" name="csbwfs_fb_bg" value="<?php echo get_option('csbwfs_fb_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_fb_title" name="csbwfs_fb_title" value="<?php echo get_option('csbwfs_fb_title'); ?>" placeholder="Share on facebook" size="20" class="csbwfs_title"/>
246
- </td>
247
- </tr>
248
- <tr><th><?php echo 'Twitter:';?></th>
249
- <td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg">
250
- <input type="text" id="csbwfs_tw_image" name="csbwfs_tw_image" value="<?php echo get_option('csbwfs_tw_image'); ?>" placeholder="Insert twitter button image path" size="30" class="inputButtonid"/><input id="csbwfs_tw_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_tw_bg" name="csbwfs_tw_bg" value="<?php echo get_option('csbwfs_tw_bg'); ?>" data-default-color="#2ca8d2" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_tw_title" name="csbwfs_tw_title" value="<?php echo get_option('csbwfs_tw_title'); ?>" placeholder="Share on twitter" size="20" class="csbwfs_title"/>
251
- </td>
252
- </tr>
253
- <tr>
254
- <th><?php echo 'Linkedin:';?></th>
255
- <td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg">
256
- <input type="text" id="csbwfs_li_image" name="csbwfs_li_image" value="<?php echo get_option('csbwfs_li_image'); ?>" placeholder="Insert Linkedin button image path" class="inputButtonid" size="30" class="buttonimg"/><input id="csbwfs_li_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_li_bg" name="csbwfs_li_bg" value="<?php echo get_option('csbwfs_li_bg'); ?>" data-default-color="#dd4c39" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_li_title" name="csbwfs_li_title" value="<?php echo get_option('csbwfs_li_title'); ?>" placeholder="Share on Linkedin" size="20" class="csbwfs_title"/>
257
- </td>
258
- </tr>
259
- <tr><th><?php echo 'Pintrest:';?></th>
260
- <td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg">
261
- <input type="text" id="csbwfs_pin_image" name="csbwfs_pin_image" value="<?php echo get_option('csbwfs_pin_image'); ?>" class="inputButtonid" placeholder="Insert pinterest button image path" size="30" class="buttonimg"/><input id="csbwfs_pin_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_pin_bg" name="csbwfs_pin_bg" value="<?php echo get_option('csbwfs_pin_bg'); ?>" data-default-color="#ca2027" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_pin_title" name="csbwfs_pin_title" value="<?php echo get_option('csbwfs_pin_title'); ?>" placeholder="Share on pintrest" size="20" class="csbwfs_title"/>
262
- </td>
263
- </tr>
264
- <tr><th><?php echo 'Google Plus:';?></th>
265
- <td class="csbwfsButtonsImg" id="csbwfsButtonsGoImg">
266
- <input type="text" id="csbwfs_gp_image" name="csbwfs_gp_image" value="<?php echo get_option('csbwfs_gp_image'); ?>" placeholder="Insert google button image path" size="30" class="inputButtonid"/><input id="csbwfs_gp_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_gp_image" name="csbwfs_gp_bg" value="<?php echo get_option('csbwfs_gp_bg'); ?>" data-default-color="#dd4c39" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_gp_title" name="csbwfs_gp_title" value="<?php echo get_option('csbwfs_gp_title'); ?>" placeholder="Share on google" size="20" class="csbwfs_title"/>
267
- </td>
268
- </tr>
269
- <tr><th><?php echo 'Reddit:';?></th>
270
- <td class="csbwfsButtonsImg" id="csbwfsButtonsReImg">
271
- <input type="text" id="csbwfs_re_image" name="csbwfs_re_image" value="<?php echo get_option('csbwfs_re_image'); ?>" placeholder="Insert reddit button image path" size="30" class="inputButtonid"/><input id="csbwfs_re_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_re_bg" name="csbwfs_re_bg" value="<?php echo get_option('csbwfs_re_bg'); ?>" data-default-color="#ff1a00" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_re_title" name="csbwfs_re_title" value="<?php echo get_option('csbwfs_re_title'); ?>" placeholder="Share on reddit" size="20" class="csbwfs_title"/>
272
- </td>
273
- </tr>
274
- <tr><th><?php echo 'Stumbleupon:';?></th>
275
- <td class="csbwfsButtonsImg" id="csbwfsButtonsStImg">
276
- <input type="text" id="csbwfs_st_image" name="csbwfs_st_image" value="<?php echo get_option('csbwfs_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="30" class="inputButtonid"/><input id="csbwfs_st_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_st_bg" name="csbwfs_st_bg" value="<?php echo get_option('csbwfs_st_bg'); ?>" data-default-color="#eb4924" class="color-field" size="20"/>
277
- &nbsp;&nbsp;<input type="text" id="csbwfs_st_title" name="csbwfs_st_title" value="<?php echo get_option('csbwfs_st_title'); ?>" placeholder="Share on stumbleupon" size="20" class="csbwfs_title"/>
278
- </td>
279
- </tr>
280
- <tr><th><?php echo 'Mail:';?></th>
281
- <td class="csbwfsButtonsImg" id="csbwfsButtonsMaImg">
282
- <input type="text" id="csbwfs_mail_image" name="csbwfs_mail_image" value="<?php echo get_option('csbwfs_mail_image'); ?>" placeholder="Insert mail button image path" size="30" class="inputButtonid"/><input id="csbwfs_mail_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_mail_bg" name="csbwfs_mail_bg" value="<?php echo get_option('csbwfs_mail_bg'); ?>" data-default-color="#738a8d" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_mail_title" name="csbwfs_mail_title" value="<?php echo get_option('csbwfs_mail_title'); ?>" placeholder="Send contact request" size="20" class="csbwfs_title"/>
283
- </td>
284
- </tr>
285
- <tr><th><?php echo 'Youtube:';?></th>
286
- <td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg">
287
- <input type="text" id="csbwfs_yt_image" name="csbwfs_yt_image" value="<?php echo get_option('csbwfs_yt_image'); ?>" placeholder="Insert youtube button image path" size="30" class="inputButtonid"/><input id="csbwfs_yt_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_yt_bg" name="csbwfs_yt_bg" value="<?php echo get_option('csbwfs_yt_bg'); ?>" data-default-color="#ffffff" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_yt_title" name="csbwfs_yt_title" value="<?php echo get_option('csbwfs_yt_title'); ?>" placeholder="Youtube" size="20" class="csbwfs_title"/>
288
- </td>
289
- </tr>
290
- <tr><td colspan="2"><h3><strong>Style(Optional):</strong></h3></td></tr>
291
-
292
- <tr>
293
- <th><?php echo 'Top Margin:';?></th>
294
- <td>
295
-
296
- <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"/>
297
- </td>
298
- </tr>
299
- </table>
300
- </div>
301
- <!-- Share Buttons -->
302
- <div class="csbwfs-tab" id="div-csbwfs-share-buttons">
303
- <h2>Social Share Buttons Settings</h2>
304
- <table>
305
- <td><?php _e('Enable:','csbwfs');?></td>
306
- <td colspan="2">
307
- <input type="checkbox" id="csbwfs_buttons_active" name="csbwfs_buttons_active" value='1' <?php if(get_option('csbwfs_buttons_active')!=''){ echo ' checked="checked"'; }?>/>
308
- </td>
309
- </tr>
310
- <tr>
311
- <th nowrap><?php echo 'Share Button Position:';?></th>
312
- <td>
313
- <select id="csbwfs_btn_position" name="csbwfs_btn_position" >
314
- <option value="left" <?php if(get_option('csbwfs_btn_position')=='left'){echo 'selected="selected"';}?>>Left</option>
315
- <option value="right" <?php if(get_option('csbwfs_btn_position')=='right'){echo 'selected="selected"';}?>>Right</option>
316
- </select>
317
- </td>
318
- </tr>
319
- <tr>
320
- <th nowrap><?php echo 'Display Buttons On ';?></th>
321
- <td>
322
- <select id="csbwfs_btn_display" name="csbwfs_btn_display" >
323
- <option value="below" <?php selected(get_option('csbwfs_btn_display'),'below');?>>Bottom Of The Content</option>
324
- <option value="above" <?php selected(get_option('csbwfs_btn_display'),'above');?>>Top Of The Content</option>
325
- </select>
326
- </td>
327
- </tr>
328
- <tr>
329
- <th nowrap><?php echo 'Share Button Text:';?></th>
330
- <td>
331
- <input type="textbox" id="csbwfs_btn_text" name="csbwfs_btn_text" value="<?php echo get_option('csbwfs_btn_text'); ?>" placeholder="Share This!" size="20"/>
332
- <i>(Leave blank if you want hide button)</i></td>
333
- </tr>
334
- <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"';}?>/> Category/Archive <input type="checkbox" id="csbwfs_page_hide_archive" value="yes" name="csbwfs_page_hide_archive" <?php if(get_option('csbwfs_page_hide_archive')!='yes'){echo '';}else{echo 'checked="checked"';}?>/> <br>
335
- </td></tr>
336
-
337
- <tr><td colspan="2"><strong><h4>Social Share Button Images 32X32 (Optional) :</h4></strong></td></tr>
338
- <tr><td colspan="2" align="right"><input type="button" id="csbwfsresetpage" value="RESET"></td></tr>
339
- <tr><th><?php echo 'Facebook:';?></th>
340
- <td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg2"><input type="text" id="csbwfs_page_fb_image" name="csbwfs_page_fb_image" value="<?php echo get_option('csbwfs_page_fb_image'); ?>" placeholder="Insert facebook button image path" size="40" class="inputButtonid"/>
341
- <input id="csbwfs_fb_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_fb_title" name="csbwfs_page_fb_title" value="<?php echo get_option('csbwfs_page_fb_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
342
- </td>
343
- </tr>
344
- <tr>
345
- <th><?php echo 'Twitter:';?></th>
346
- <td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg2">
347
- <input type="text" id="csbwfs_page_tw_image" name="csbwfs_page_tw_image" value="<?php echo get_option('csbwfs_page_tw_image'); ?>" placeholder="Insert twitter button image path" size="40" class="inputButtonid"/>
348
- <input id="csbwfs_tw_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_tw_title" name="csbwfs_page_tw_title" value="<?php echo get_option('csbwfs_page_tw_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
349
- </td>
350
- </tr>
351
- <tr><th><?php echo 'Linkedin:';?></th>
352
- <td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg2"><input type="text" id="csbwfs_page_li_image" name="csbwfs_page_li_image" value="<?php echo get_option('csbwfs_page_li_image'); ?>" placeholder="Insert Linkedin button image path" size="40" class="inputButtonid"/>
353
- <input id="csbwfs_li_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_li_title" name="csbwfs_page_li_title" value="<?php echo get_option('csbwfs_page_li_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
354
- </td>
355
- </tr>
356
- <tr>
357
- <th><?php echo 'Pintrest:';?></th>
358
- <td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg2"><input type="text" id="csbwfs_page_pin_image" name="csbwfs_page_pin_image" value="<?php echo get_option('csbwfs_page_pin_image'); ?>" placeholder="Insert pinterest button image path" size="40" class="inputButtonid"/>
359
- <input id="csbwfs_pi_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_pin_title" name="csbwfs_page_pin_title" value="<?php echo get_option('csbwfs_page_pin_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
360
- </td>
361
- </tr>
362
- <tr>
363
- <th><?php echo 'Google Plus:';?></th>
364
- <td class="csbwfsButtonsImg" id="csbwfsButtonsGpImg2">
365
- <input type="text" id="csbwfs_page_gp_image" name="csbwfs_page_gp_image" value="<?php echo get_option('csbwfs_page_gp_image'); ?>" placeholder="Insert google button image path" size="40" class="inputButtonid"/>
366
- <input id="csbwfs_gp_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_gp_title" name="csbwfs_page_gp_title" value="<?php echo get_option('csbwfs_page_gp_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
367
- </td>
368
- </tr>
369
- <tr>
370
- <th><?php echo 'Reddit:';?></th>
371
- <td class="csbwfsButtonsImg" id="csbwfsButtonsReImg2">
372
- <input type="text" id="csbwfs_page_re_image" name="csbwfs_page_re_image" value="<?php echo get_option('csbwfs_page_re_image'); ?>" placeholder="Insert reddit button image path" size="40" class="inputButtonid"/>
373
- <input id="csbwfs_re_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_re_title" name="csbwfs_page_re_title" value="<?php echo get_option('csbwfs_page_re_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
374
- </td>
375
- </tr>
376
- <tr>
377
- <th><?php echo 'Stumbleupon:';?></th>
378
- <td class="csbwfsButtonsImg" id="csbwfsButtonsStImg2">
379
- <input type="text" id="csbwfs_page_st_image" name="csbwfs_page_st_image" value="<?php echo get_option('csbwfs_page_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="40" class="inputButtonid"/>
380
- <input id="csbwfs_st_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_st_title" name="csbwfs_page_st_title" value="<?php echo get_option('csbwfs_page_st_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
381
- </td>
382
- </tr>
383
- <tr>
384
- <th><?php echo 'Mail:';?></th>
385
- <td class="csbwfsButtonsImg" id="csbwfsButtonsMlImg2">
386
- <input type="text" id="csbwfs_page_mail_image" name="csbwfs_page_mail_image" value="<?php echo get_option('csbwfs_page_mail_image'); ?>" placeholder="Insert mail button image path" size="40" class="inputButtonid"/>
387
- <input id="csbwfs_ml_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_mail_title" name="csbwfs_page_mail_title" value="<?php echo get_option('csbwfs_page_mail_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
388
- </td>
389
- </tr>
390
- <tr>
391
- <th><?php echo 'Youtube:';?></th>
392
- <td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg2">
393
- <input type="text" id="csbwfs_page_yt_image" name="csbwfs_page_yt_image" value="<?php echo get_option('csbwfs_page_yt_image'); ?>" placeholder="Insert youtube button image path" size="40" class="inputButtonid"/>
394
- <input id="csbwfs_yt_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_yt_title" name="csbwfs_page_yt_title" value="<?php echo get_option('csbwfs_page_yt_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
395
- </td>
396
- </tr>
397
- </table>
398
-
399
- </div>
400
- <!-- Support -->
401
- <div class="last author csbwfs-tab" id="div-csbwfs-support">
402
-
403
- <h2>Plugin Support</h2>
404
-
405
- <p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A" target="_blank" style="font-size: 17px; font-weight: bold;"><img src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" title="Donate for this plugin"></a></p>
406
-
407
- <p><strong>Plugin Author:</strong><br><img src="<?php echo plugins_url( 'images/raghu.jpg' , __FILE__ );?>" width="75" height="75"><br><a href="http://raghunathgurjar.wordpress.com" target="_blank">Raghunath Gurjar</a></p>
408
- <p><a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact Author</a></p>
409
- <p><strong>My Other Plugins:</strong><br>
410
- <ol>
411
- <li><a href="https://wordpress.org/plugins/protect-wp-admin/" target="_blank">Protect WP-Admin</a></li>
412
- <li><a href="https://wordpress.org/plugins/wp-importer" target="_blank">WP Importer</a></li>
413
- <li><a href="https://wordpress.org/plugins/wp-testimonial/" target="_blank">WP Testimonial</a></li>
414
- <li><a href="https://wordpress.org/plugins/cf7-advance-security" target="_blank">Contact Form 7 Advance Security WP-Admin</a></li>
415
- <li><a href="https://wordpress.org/plugins/wc-sales-count-manager/" target="_blank">WooCommerce Sales Count Manager</a></li>
416
- <li><a href="https://wordpress.org/plugins/wp-social-buttons/" target="_blank">WP Social Buttons</a></li>
417
- <li><a href="https://wordpress.org/plugins/wp-youtube-gallery/" target="_blank">WP Youtube Gallery</a></li>
418
- <li><a href="https://wordpress.org/plugins/wp-easy-recipe/" target="_blank">WP Easy Recipe</a></li>
419
- <li><a href="https://wordpress.org/plugins/tweets-slider/" target="_blank">Tweets Slider</a></li>
420
- <li><a href="https://wordpress.org/plugins/rg-responsive-gallery/" target="_blank">RG Responsive Slider</a></li>
421
- </ol>
422
- </div>
423
- <!-- GO PRO -->
424
- <div class="last author csbwfs-tab" id="div-csbwfs-pro">
425
-
426
- <h2>GO PRO</h2>
427
- <p><a href="https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/" target="_blank" class="contact-author">Go Pro</a></p>
428
- <p>We have released an add-on for Custom Share Buttons With Floating Sidebar which not only demonstrates the flexibility of CSBWFS, but also adds some important features:</p>
429
- <ol>
430
- <li>Responsive Floating Sidebar</li>
431
- <li>An option for Hide Floating Sidebar On Home/Blog/Search/Category/Author pages</li>
432
- <li>An option for Hide Floating Sidebar On any post type (i.e page,post,event,product...etc)</li>
433
- <li>An option for Hide Floating Sidebar On any taxonomy type (support all custom taxonomy type)</li>
434
- <li>An Option for Show/Hide sidebar on specific page/post and on any custom post type pages as well.</li>
435
- <li>An option for Show Social Share Buttons On Home/Blog/Search/Category/Author pages</li>
436
- <li>An option for Show Social Share Buttons on any taxonomy type (support all custom taxonomy type)</li>
437
- <li>An Option for Show/Hide social share buttons on specific page/post and on any custom post type pages as well.</li>
438
- <li>Responsive Lightbox Contact Form (for Mail Icon)</li>
439
- <li>An option for add to any custom shortcode into lightbox</li>
440
- <li>Advance feature for choose to pinterest share image</li>
441
- <li>An option for enable to OG tags meta boxes for define to share window content(share title, share description & share image path)</li>
442
- <li>An option for set sidebar position (left/right/bottom) for mobile</li>
443
- <li>An option for add to social site official page URL for all social buttons</li>
444
- <li>Extra Buttons (Google Translate,Instagram,Whatsapp,Digg,Yummly,Vk, Buffer, Line, Skype, RSS, Print, G-Mail, Blogger, Tumbler,Delicious,Weibo, Telegram &amp; SMS )</li>
445
- <li>An option for define to twitter username as hash tag in share window.</li>
446
- <li>An option for display to number of share(Facebook,Linkedin,StumbleUpon,Google Plus,Pinterest and Reddit)</li>
447
- <li>An options for change to buttons image, title, background colour and url (You can use any button as your own custom button)</li>
448
- <li>An options to define sorting order for all buttons</li>
449
- <li>10 extra custom floating sidebar buttons with extra options (i.e you can define your own custom size for these buttons)</li>
450
- <li>An option for show to sum of total share count for all buttons</li>
451
- <li>An option for remove mouse hover animation effect for all social buttons</li>
452
- <li>Faster support</li>
453
- </ol>
454
- <h1 style="color:green;text-align:center;"><strong>Pay one time use lifetime!!!!!</strong><br><br> Hurry up!!!!</h1>
455
- <p><a href="https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/" target="_blank" class="contact-author">Go Pro</a></p>
456
- <p> <a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact To Author</a></p>
457
-
458
- </div>
459
-
460
- </div>
461
- <span class="submit-btn"><?php echo get_submit_button('Save Settings','button-primary','submit','','');?></span>
462
-
463
- <?php settings_fields('csbwf_sidebar_options'); ?>
464
-
465
- </form>
466
-
467
- <!-- End Options Form -->
468
- </div>
469
-
470
- <?php
471
- }
472
- endif;
473
-
474
- require dirname(__FILE__).'/csbwfs-class.php';
475
 
476
- /*
477
-
478
- *Delete the options during disable the plugins
479
-
480
- */
481
-
482
- if( function_exists('register_uninstall_hook') )
483
-
484
- register_uninstall_hook(__FILE__,'csbwf_sidebar_uninstall');
485
-
486
- //Delete all Custom Tweets options after delete the plugin from admin
487
- function csbwf_sidebar_uninstall(){
488
- delete_option('csbwfs_active');
489
- delete_option('csbbuttons_active');
490
- delete_option('csbwfs_position');
491
- delete_option('csbwfs_btn_position');
492
- delete_option('csbwfs_btn_text');
493
- delete_option('csbwfs_fb_image');
494
- delete_option('csbwfs_tw_image');
495
- delete_option('csbwfs_li_image');
496
- delete_option('csbwfs_re_image');
497
- delete_option('csbwfs_st_image');
498
- delete_option('csbwfs_mail_image');
499
- delete_option('csbwfs_gp_image');
500
- delete_option('csbwfs_pin_image');
501
- delete_option('csbwfs_yt_image');
502
- delete_option('csbwfs_re_image');
503
- delete_option('csbwfs_st_image');
504
- delete_option('csbwfs_ytPath');
505
- delete_option('csbwfs_fb_bg');
506
- delete_option('csbwfs_tw_bg');
507
- delete_option('csbwfs_li_bg');
508
- delete_option('csbwfs_mail_bg');
509
- delete_option('csbwfs_gp_bg');
510
- delete_option('csbwfs_pin_bg');
511
- delete_option('csbwfs_yt_bg');
512
- delete_option('csbwfs_fpublishBtn');
513
- delete_option('csbwfs_tpublishBtn');
514
- delete_option('csbwfs_gpublishBtn');
515
- delete_option('csbwfs_ppublishBtn');
516
- delete_option('csbwfs_lpublishBtn');
517
- delete_option('csbwfs_mpublishBtn');
518
- delete_option('csbwfs_republishBtn');
519
- delete_option('csbwfs_stpublishBtn');
520
- delete_option('csbwfs_ytpublishBtn');
521
- delete_option('csbwfs_mailMessage');
522
- delete_option('csbwfs_top_margin');
523
- delete_option('csbwfs_page_hide_home');
524
- delete_option('csbwfs_page_hide_post');
525
- delete_option('csbwfs_page_hide_page');
526
- delete_option('csbwfs_fb_title');
527
- delete_option('csbwfs_tw_title');
528
- delete_option('csbwfs_li_title');
529
- delete_option('csbwfs_pin_title');
530
- delete_option('csbwfs_gp_title');
531
- delete_option('csbwfs_mail_title');
532
- delete_option('csbwfs_yt_title');
533
- delete_option('csbwfs_re_title');
534
- delete_option('csbwfs_st_title');
535
- delete_option('csbwfs_page_fb_image');
536
- delete_option('csbwfs_page_tw_image');
537
- delete_option('csbwfs_page_li_image');
538
- delete_option('csbwfs_page_re_image');
539
- delete_option('csbwfs_page_st_image');
540
- delete_option('csbwfs_page_mail_image');
541
- delete_option('csbwfs_page_gp_image');
542
- delete_option('csbwfs_page_pin_image');
543
- delete_option('csbwfs_page_yt_image');
544
- delete_option('csbwfs_rmSHBtn');
545
- delete_option('csbwfs_featuredshrimg');
546
- delete_option('csbwfs_defaultfeaturedshrimg');
547
- delete_option('csbwfs_deactive_for_mob');
548
 
549
  }
550
  ?>
5
  Description: It's a very simple plugin for add to social share buttons on your site and you can publish buttons floating sidebar. Even you can edit share buttons if you wish
6
  Author: MR Web Solution
7
  Author URI: http://raghunathgurjar.wordpress.com
8
+ Version: 3.0
9
  */
10
 
11
  /* Copyright 2015 custom-share-buttons-with-floating-sidebar (email : raghunath.0087@gmail.com)
26
 
27
  //Admin "Custom Share Buttons with Floating Sidebar" Menu Item
28
  if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
29
+ if(!class_exists('Csbwfs_Class'))
30
+ {
31
+ class Csbwfs_Class
32
+ {
33
+ /**
34
+ * Construct the plugin object
35
+ */
36
+ public function __construct()
37
+ {
38
+ // register actions
39
+ add_action('admin_init', array(&$this, 'csbwfs_admin_init'));
40
+ add_action('admin_menu', array(&$this, 'csbwf_sidebar_menu'));
41
+ } // END public function __construct
42
+
43
+ /**
44
+ * hook into WP's admin_init action hook
45
+ */
46
+ public function csbwfs_admin_init()
47
+ {
48
+ // Set up the settings for this plugin
49
+ $this->csbwf_sidebar_init();
50
+ // Possibly do additional admin_init tasks
51
+ } // END public static function activate
52
+ /**
53
+ * Initialize some custom settings
54
+ */
55
+ public function csbwf_sidebar_init()
56
+ {
57
+ // register the settings for this plugin
58
+ register_setting('csbwf_sidebar_options','csbwfs_active');
59
+ register_setting('csbwf_sidebar_options','csbwfs_position');
60
+ register_setting('csbwf_sidebar_options','csbwfs_btn_position');
61
+ register_setting('csbwf_sidebar_options','csbwfs_btn_text');
62
+ register_setting('csbwf_sidebar_options','csbwfs_fb_image');
63
+ register_setting('csbwf_sidebar_options','csbwfs_tw_image');
64
+ register_setting('csbwf_sidebar_options','csbwfs_li_image');
65
+ register_setting('csbwf_sidebar_options','csbwfs_re_image');
66
+ register_setting('csbwf_sidebar_options','csbwfs_st_image');
67
+ register_setting('csbwf_sidebar_options','csbwfs_mail_image');
68
+ register_setting('csbwf_sidebar_options','csbwfs_gp_image');
69
+ register_setting('csbwf_sidebar_options','csbwfs_pin_image');
70
+ register_setting('csbwf_sidebar_options','csbwfs_yt_image');
71
+ register_setting('csbwf_sidebar_options','csbwfs_fb_bg');
72
+ register_setting('csbwf_sidebar_options','csbwfs_tw_bg');
73
+ register_setting('csbwf_sidebar_options','csbwfs_li_bg');
74
+ register_setting('csbwf_sidebar_options','csbwfs_mail_bg');
75
+ register_setting('csbwf_sidebar_options','csbwfs_gp_bg');
76
+ register_setting('csbwf_sidebar_options','csbwfs_pin_bg');
77
+ register_setting('csbwf_sidebar_options','csbwfs_re_bg');
78
+ register_setting('csbwf_sidebar_options','csbwfs_st_bg');
79
+ register_setting('csbwf_sidebar_options','csbwfs_yt_bg');
80
+ register_setting('csbwf_sidebar_options','csbwfs_fpublishBtn');
81
+ register_setting('csbwf_sidebar_options','csbwfs_tpublishBtn');
82
+ register_setting('csbwf_sidebar_options','csbwfs_gpublishBtn');
83
+ register_setting('csbwf_sidebar_options','csbwfs_ppublishBtn');
84
+ register_setting('csbwf_sidebar_options','csbwfs_ytpublishBtn');
85
+ register_setting('csbwf_sidebar_options','csbwfs_republishBtn');
86
+ register_setting('csbwf_sidebar_options','csbwfs_stpublishBtn');
87
+ register_setting('csbwf_sidebar_options','csbwfs_ytPath');
88
+ register_setting('csbwf_sidebar_options','csbwfs_lpublishBtn');
89
+ register_setting('csbwf_sidebar_options','csbwfs_mpublishBtn');
90
+ register_setting('csbwf_sidebar_options','csbwfs_mailMessage');
91
+ register_setting('csbwf_sidebar_options','csbwfs_top_margin');
92
+ register_setting('csbwf_sidebar_options','csbwfs_delayTimeBtn');
93
+ register_setting('csbwf_sidebar_options','csbwfs_btn_display');
94
+ /** Image Alt */
95
+ register_setting('csbwf_sidebar_options','csbwfs_fb_title');
96
+ register_setting('csbwf_sidebar_options','csbwfs_tw_title');
97
+ register_setting('csbwf_sidebar_options','csbwfs_li_title');
98
+ register_setting('csbwf_sidebar_options','csbwfs_pin_title');
99
+ register_setting('csbwf_sidebar_options','csbwfs_gp_title');
100
+ register_setting('csbwf_sidebar_options','csbwfs_mail_title');
101
+ register_setting('csbwf_sidebar_options','csbwfs_yt_title');
102
+ register_setting('csbwf_sidebar_options','csbwfs_re_title');
103
+ register_setting('csbwf_sidebar_options','csbwfs_st_title');
104
+ register_setting('csbwf_sidebar_options','csbwfs_page_fb_title');
105
+ register_setting('csbwf_sidebar_options','csbwfs_page_tw_title');
106
+ register_setting('csbwf_sidebar_options','csbwfs_page_li_title');
107
+ register_setting('csbwf_sidebar_options','csbwfs_page_pin_title');
108
+ register_setting('csbwf_sidebar_options','csbwfs_page_gp_title');
109
+ register_setting('csbwf_sidebar_options','csbwfs_page_mail_title');
110
+ register_setting('csbwf_sidebar_options','csbwfs_page_yt_title');
111
+ register_setting('csbwf_sidebar_options','csbwfs_page_re_title');
112
+ register_setting('csbwf_sidebar_options','csbwfs_page_st_title');
113
+ register_setting('csbwf_sidebar_options','csbwfs_auto_hide');
114
+ //Options for post/pages
115
+ register_setting('csbwf_sidebar_options','csbwfs_buttons_active');
116
+ register_setting('csbwf_sidebar_options','csbwfs_page_hide_home');
117
+ register_setting('csbwf_sidebar_options','csbwfs_page_hide_post');
118
+ register_setting('csbwf_sidebar_options','csbwfs_page_hide_page');
119
+ register_setting('csbwf_sidebar_options','csbwfs_page_hide_archive');
120
+ register_setting('csbwf_sidebar_options','csbwfs_hide_home');
121
+ register_setting('csbwf_sidebar_options','csbwfs_page_fb_image');
122
+ register_setting('csbwf_sidebar_options','csbwfs_page_tw_image');
123
+ register_setting('csbwf_sidebar_options','csbwfs_page_li_image');
124
+ register_setting('csbwf_sidebar_options','csbwfs_page_mail_image');
125
+ register_setting('csbwf_sidebar_options','csbwfs_page_gp_image');
126
+ register_setting('csbwf_sidebar_options','csbwfs_page_pin_image');
127
+ register_setting('csbwf_sidebar_options','csbwfs_page_re_image');
128
+ register_setting('csbwf_sidebar_options','csbwfs_page_st_image');
129
+ register_setting('csbwf_sidebar_options','csbwfs_page_yt_image');
130
+ /** message content */
131
+ register_setting('csbwf_sidebar_options','csbwfs_show_btn');
132
+ register_setting('csbwf_sidebar_options','csbwfs_hide_btn');
133
+ register_setting('csbwf_sidebar_options','csbwfs_share_msg');
134
+ register_setting('csbwf_sidebar_options','csbwfs_rmSHBtn');
135
+ register_setting('csbwf_sidebar_options','csbwfs_featuredshrimg');
136
+ register_setting('csbwf_sidebar_options','csbwfs_defaultfeaturedshrimg');
137
+ register_setting('csbwf_sidebar_options','csbwfs_deactive_for_mob');
138
+ } // END public function init_custom_settings()
139
+ /**
140
+ * add a menu
141
+ */
142
+ public function csbwf_sidebar_menu()
143
+ {
144
+ add_options_page('Custom Share Buttons With Floating Sidebar','Custom Share Buttons With Floating Sidebar','manage_options','csbwfs-settings',array(&$this,'csbwf_sidebar_admin_option_page'));
145
 
146
+ } // END public function add_menu()
 
 
147
 
148
+ public function csbwf_sidebar_admin_option_page()
149
+ {
150
+ if(!current_user_can('manage_options'))
151
+ {
152
+ wp_die(__('You do not have sufficient permissions to access this page.'));
153
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
154
 
155
+ // Render the settings template
156
+ include(sprintf("%s/lib/settings.php", dirname(__FILE__)));
157
+ /**
158
+ * REGISTER SCRIPT
159
+ * */
160
+ wp_enqueue_script('media-upload');
161
+ wp_enqueue_script('thickbox');
162
+ wp_register_script('csbwfs-image-upload', plugins_url('/js/csbwfs.js',__FILE__ ), array('jquery','media-upload','thickbox','wp-color-picker'));
163
+ wp_enqueue_script('csbwfs-image-upload');
164
+ /**
165
+ * REGISTER STYLE
166
+ * */
167
+ wp_register_style( 'csbwf_admin_style', plugins_url( 'css/admin-csbwfs.css',__FILE__ ) );
168
+ wp_enqueue_style( 'csbwf_admin_style' );
169
+ wp_enqueue_style( 'wp-color-picker' );
170
+ wp_enqueue_style('thickbox');
171
 
172
+ }// END public static function csbwf_sidebar_admin_option_page
173
+ /**
174
+ * hook into WP's plugin_action_links_ action hook
175
+ */
176
+ public static function csbwfs_add_settings_link( $links ) {
177
  $settings_link = '<a href="options-general.php?page=csbwfs-settings">' . __( 'Settings', 'csbwfs' ) . '</a>';
178
  array_unshift( $links, $settings_link );
179
  return $links;
180
  }
181
+ /**
182
+ * uninstall the plugin
183
+ */
184
+ public function csbwfs_uninstall()
185
+ {
186
+ delete_option('csbwfs_active');
187
+ delete_option('csbbuttons_active');
188
+ delete_option('csbwfs_position');
189
+ delete_option('csbwfs_btn_position');
190
+ delete_option('csbwfs_btn_text');
191
+ delete_option('csbwfs_fb_image');
192
+ delete_option('csbwfs_tw_image');
193
+ delete_option('csbwfs_li_image');
194
+ delete_option('csbwfs_re_image');
195
+ delete_option('csbwfs_st_image');
196
+ delete_option('csbwfs_mail_image');
197
+ delete_option('csbwfs_gp_image');
198
+ delete_option('csbwfs_pin_image');
199
+ delete_option('csbwfs_yt_image');
200
+ delete_option('csbwfs_re_image');
201
+ delete_option('csbwfs_st_image');
202
+ delete_option('csbwfs_ytPath');
203
+ delete_option('csbwfs_fb_bg');
204
+ delete_option('csbwfs_tw_bg');
205
+ delete_option('csbwfs_li_bg');
206
+ delete_option('csbwfs_mail_bg');
207
+ delete_option('csbwfs_gp_bg');
208
+ delete_option('csbwfs_pin_bg');
209
+ delete_option('csbwfs_yt_bg');
210
+ delete_option('csbwfs_fpublishBtn');
211
+ delete_option('csbwfs_tpublishBtn');
212
+ delete_option('csbwfs_gpublishBtn');
213
+ delete_option('csbwfs_ppublishBtn');
214
+ delete_option('csbwfs_lpublishBtn');
215
+ delete_option('csbwfs_mpublishBtn');
216
+ delete_option('csbwfs_republishBtn');
217
+ delete_option('csbwfs_stpublishBtn');
218
+ delete_option('csbwfs_ytpublishBtn');
219
+ delete_option('csbwfs_mailMessage');
220
+ delete_option('csbwfs_top_margin');
221
+ delete_option('csbwfs_page_hide_home');
222
+ delete_option('csbwfs_page_hide_post');
223
+ delete_option('csbwfs_page_hide_page');
224
+ delete_option('csbwfs_fb_title');
225
+ delete_option('csbwfs_tw_title');
226
+ delete_option('csbwfs_li_title');
227
+ delete_option('csbwfs_pin_title');
228
+ delete_option('csbwfs_gp_title');
229
+ delete_option('csbwfs_mail_title');
230
+ delete_option('csbwfs_yt_title');
231
+ delete_option('csbwfs_re_title');
232
+ delete_option('csbwfs_st_title');
233
+ delete_option('csbwfs_page_fb_image');
234
+ delete_option('csbwfs_page_tw_image');
235
+ delete_option('csbwfs_page_li_image');
236
+ delete_option('csbwfs_page_re_image');
237
+ delete_option('csbwfs_page_st_image');
238
+ delete_option('csbwfs_page_mail_image');
239
+ delete_option('csbwfs_page_gp_image');
240
+ delete_option('csbwfs_page_pin_image');
241
+ delete_option('csbwfs_page_yt_image');
242
+ delete_option('csbwfs_rmSHBtn');
243
+ delete_option('csbwfs_featuredshrimg');
244
+ delete_option('csbwfs_defaultfeaturedshrimg');
245
+ delete_option('csbwfs_deactive_for_mob');
246
+ // Do nothing
247
+ } // END public static function uninstall
248
+ /**
249
+ * Activate the plugin
250
+ */
251
+ public static function csbwfs_activate()
252
+ {
253
+ // Do nothing
254
+ } // END public static function activate
255
 
256
+ /**
257
+ * Deactivate the plugin
258
+ */
259
+ public static function csbwfs_deactivate()
260
+ {
261
+ // Do nothing
262
+ } // END public static function deactivate
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
263
 
264
+ } // END class Csbwfs_Class
265
+ } // END if(!class_exists('Csbwfs_Class'))
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
266
 
267
+ if(class_exists('Csbwfs_Class'))
268
+ {
269
+ // Installation and uninstallation hooks
270
+ register_activation_hook(__FILE__, array('Csbwfs_Class', 'csbwfs_activate'));
271
+ register_deactivation_hook(__FILE__, array('Csbwfs_Class', 'csbwfs_deactivate'));
272
+ register_uninstall_hook(__FILE__, array('Csbwfs_Class', 'csbwfs_uninstall'));
273
+ // instantiate the plugin class
274
+ $csbwfs_plugin_template = new Csbwfs_Class();
275
+ // Add a link to the settings page onto the plugin page
276
+ if(isset($csbwfs_plugin_template))
277
+ {
278
+ $plugin = plugin_basename(__FILE__);
279
+ add_filter("plugin_action_links_$plugin", array('Csbwfs_Class','csbwfs_add_settings_link'));
280
+ require dirname(__FILE__).'/csbwfs-class.php';
281
+ }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
282
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
283
 
284
  }
285
  ?>
images/fb.png CHANGED
File without changes
images/gp.png CHANGED
File without changes
images/hide-b.png CHANGED
File without changes
images/hide-l.png CHANGED
File without changes
images/hide-r.png CHANGED
File without changes
images/hide.png CHANGED
File without changes
images/in.png CHANGED
File without changes
images/minify-social.png CHANGED
File without changes
images/ml.png CHANGED
File without changes
images/{mrweb-logo.jpg → mrweb.jpg} RENAMED
File without changes
images/overlay.png CHANGED
File without changes
images/pinit.png CHANGED
File without changes
images/raghu.jpg DELETED
Binary file
images/reddit-p.png CHANGED
File without changes
images/reddit.png CHANGED
File without changes
images/sharethis-l.png CHANGED
File without changes
images/sharethis-r.png CHANGED
File without changes
images/sharethis.png CHANGED
File without changes
images/sharethis_old.png CHANGED
File without changes
images/show.png CHANGED
File without changes
images/stumbleupon.png CHANGED
File without changes
images/tw.png CHANGED
File without changes
images/youtube.png CHANGED
File without changes
js/csbwfs.js CHANGED
File without changes
lib/settings.php ADDED
@@ -0,0 +1,304 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <div style="width: 80%; padding: 10px; margin: 10px;">
2
+
3
+ <h1>Custom Share Buttons With Floating Sidebar Settings</h1>
4
+ <!-- Start Options Form -->
5
+
6
+ <form action="options.php" method="post" id="csbwf-sidebar-admin-form">
7
+
8
+ <div id="csbwf-tab-menu"><a id="csbwfs-general" class="csbwf-tab-links active" >General</a> <a id="csbwfs-sidebar" class="csbwf-tab-links">Floating Sidebar</a> <a id="csbwfs-share-buttons" class="csbwf-tab-links">Social Share Buttons</a> <a id="csbwfs-pro" class="csbwf-tab-links">GO PRO</a> <a id="csbwfs-support" class="csbwf-tab-links">Support</a></div>
9
+ <p align="right"><span class="submit-btn"><?php echo get_submit_button('Save Settings','button-primary extrabtn','submit','','');?></span></p>
10
+ <div class="csbwfs-setting">
11
+ <!-- General Setting -->
12
+ <div class="first csbwfs-tab" id="div-csbwfs-general">
13
+ <h2>General Settings</h2>
14
+ <p><input type="checkbox" id="csbwfs_active" name="csbwfs_active" value='1' <?php checked(get_option('csbwfs_active'),1);?>/> <b><?php _e('Enable Sidebar');?> </b></p>
15
+
16
+ <p><h3><strong><?php _e('Social Share Button Publish Options:','csbwfs');?></strong></h3></p>
17
+ <p><input type="checkbox" id="publish1" value="yes" name="csbwfs_fpublishBtn" <?php checked(get_option('csbwfs_fpublishBtn'),'yes');?>/><b>Facebook Button</b></p>
18
+ <p><input type="checkbox" id="publish2" name="csbwfs_tpublishBtn" value="yes" <?php checked(get_option('csbwfs_tpublishBtn'),'yes');?>/> <b>Twitter Button</b></p>
19
+ <p><input type="checkbox" id="publish3" name="csbwfs_gpublishBtn" value="yes" <?php checked(get_option('csbwfs_gpublishBtn'),'yes');?>/> <b>Google Button</b></p>
20
+ <p><input type="checkbox" id="publish4" name="csbwfs_lpublishBtn" value="yes" <?php checked(get_option('csbwfs_lpublishBtn'),'yes');?>/> <b>Linkedin Button</b></p>
21
+ <p><input type="checkbox" id="publish6" name="csbwfs_ppublishBtn" value="yes" <?php checked(get_option('csbwfs_ppublishBtn'),'yes');?>/> <b>Pinterest Button</b></p>
22
+ <p><input type="checkbox" id="publish7" name="csbwfs_republishBtn" value="yes" <?php checked(get_option('csbwfs_republishBtn'),'yes');?>/> <b>Reddit Button</b></p>
23
+ <p><input type="checkbox" id="publish8" name="csbwfs_stpublishBtn" value="yes" <?php checked(get_option('csbwfs_stpublishBtn'),'yes');?>/> <b>Stumbleupon Button</b></p>
24
+ <p><input type="checkbox" id="publish5" name="csbwfs_mpublishBtn" value="yes" <?php checked(get_option('csbwfs_mpublishBtn'),'yes');?>/> <b>Mailbox Button</b></p>
25
+ <?php if(get_option('csbwfs_mpublishBtn')=='yes');{?>
26
+ <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>
27
+ <?php } ?>
28
+ <p><input type="checkbox" id="ytBtns" name="csbwfs_ytpublishBtn" value="yes" <?php checked(get_option('csbwfs_ytpublishBtn'),'yes');?>/> <b>Youtube Button</b></p>
29
+ <?php if(get_option('csbwfs_ytpublishBtn')=='yes'){?>
30
+ <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>
31
+ <?php } ?>
32
+
33
+
34
+ <p><label><h3 ><strong><?php _e('Define your custom message:','csbwfs');?></strong></h3></label></p>
35
+ <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>
36
+ <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>
37
+ <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>
38
+ <p><h3><strong><?php _e('Pinterest Share Image Setting :'); ?></strong></h3></p>
39
+ <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>
40
+ <p><input type="checkbox" id="featuredshrimg" name="csbwfs_featuredshrimg" value="yes" <?php checked(get_option('csbwfs_featuredshrimg'),'yes');?>/> <?php _e('Make post/page featured image as pinterest share image');?></p>
41
+ </div>
42
+ <!-- Floating Sidebar -->
43
+ <div class="csbwfs-tab" id="div-csbwfs-sidebar">
44
+ <h2>Floating Sidebar Settings</h2>
45
+ <table>
46
+ <tr>
47
+ <th nowrap><?php echo 'Siderbar Position:';?></th>
48
+ <td>
49
+ <select id="csbwfs_position" name="csbwfs_position" >
50
+ <option value="left" <?php selected(get_option('csbwfs_position'),'left');?>>Left</option>
51
+ <option value="right" <?php selected(get_option('csbwfs_position'),'right');?>>Right</option>
52
+ <option value="bottom" <?php selected(get_option('csbwfs_position'),'bottom');?>>Bottom</option>
53
+ </select>
54
+ </td>
55
+ </tr>
56
+ <tr>
57
+ <th>&nbsp;</th>
58
+ <td><input type="checkbox" id="csbwfs_rmSHBtn" name="csbwfs_rmSHBtn" value="yes" <?php checked(get_option('csbwfs_rmSHBtn'),'yes');?>/> <strong><?php _e('Remove Show/Hide Button:','csbwfs');?></strong></td>
59
+ </tr>
60
+ <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>
61
+ <tr>
62
+ <th>&nbsp;</th>
63
+ <td><input type="checkbox" id="csbwfs_deactive_for_mob" name="csbwfs_deactive_for_mob" value="yes" <?php checked(get_option('csbwfs_deactive_for_mob'),'yes');?>/><?php _e('Disable Sidebar For Mobile','csbwfs');?></td>
64
+ </tr>
65
+ <tr><th></th>
66
+ <td><input type="checkbox" id="csbwfs_auto_hide" name="csbwfs_auto_hide" value="yes" <?php checked(get_option('csbwfs_auto_hide'),'yes');?>/><?php _e('Auto Hide Sidebar On Page Load','csbwfs');?></td>
67
+ </tr>
68
+ <tr><th>&nbsp;</th><td><input type="checkbox" id="csbwfs_hide_home" value="yes" name="csbwfs_hide_home" <?php checked(get_option('csbwfs_hide_home'),'yes');?>/>Hide Sidebar On Home Page</td></tr>
69
+ <tr><td colspan="2"><strong><h4>Social Share Button Images 32X32 (Optional) :</h4></strong></td></tr>
70
+ <tr><td colspan="2" align="right"><input type="button" id="csbwfs_resetpage" value="Reset"></td></tr>
71
+ <tr>
72
+ <th><?php echo 'Facebook:';?></th>
73
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg">
74
+ <input type="text" id="csbwfs_fb_image" name="csbwfs_fb_image" value="<?php echo get_option('csbwfs_fb_image'); ?>" placeholder="Insert facebook button image path" size="30" class="inputButtonid"/> <input id="csbwfs_fb_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_fb_bg" data-default-color="#305891" class="color-field" name="csbwfs_fb_bg" value="<?php echo get_option('csbwfs_fb_bg'); ?>" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_fb_title" name="csbwfs_fb_title" value="<?php echo get_option('csbwfs_fb_title'); ?>" placeholder="Share on facebook" size="20" class="csbwfs_title"/>
75
+ </td>
76
+ </tr>
77
+ <tr><th><?php echo 'Twitter:';?></th>
78
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg">
79
+ <input type="text" id="csbwfs_tw_image" name="csbwfs_tw_image" value="<?php echo get_option('csbwfs_tw_image'); ?>" placeholder="Insert twitter button image path" size="30" class="inputButtonid"/><input id="csbwfs_tw_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_tw_bg" name="csbwfs_tw_bg" value="<?php echo get_option('csbwfs_tw_bg'); ?>" data-default-color="#2ca8d2" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_tw_title" name="csbwfs_tw_title" value="<?php echo get_option('csbwfs_tw_title'); ?>" placeholder="Share on twitter" size="20" class="csbwfs_title"/>
80
+ </td>
81
+ </tr>
82
+ <tr>
83
+ <th><?php echo 'Linkedin:';?></th>
84
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg">
85
+ <input type="text" id="csbwfs_li_image" name="csbwfs_li_image" value="<?php echo get_option('csbwfs_li_image'); ?>" placeholder="Insert Linkedin button image path" class="inputButtonid" size="30" class="buttonimg"/><input id="csbwfs_li_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_li_bg" name="csbwfs_li_bg" value="<?php echo get_option('csbwfs_li_bg'); ?>" data-default-color="#dd4c39" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_li_title" name="csbwfs_li_title" value="<?php echo get_option('csbwfs_li_title'); ?>" placeholder="Share on Linkedin" size="20" class="csbwfs_title"/>
86
+ </td>
87
+ </tr>
88
+ <tr><th><?php echo 'Pintrest:';?></th>
89
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg">
90
+ <input type="text" id="csbwfs_pin_image" name="csbwfs_pin_image" value="<?php echo get_option('csbwfs_pin_image'); ?>" class="inputButtonid" placeholder="Insert pinterest button image path" size="30" class="buttonimg"/><input id="csbwfs_pin_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_pin_bg" name="csbwfs_pin_bg" value="<?php echo get_option('csbwfs_pin_bg'); ?>" data-default-color="#ca2027" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_pin_title" name="csbwfs_pin_title" value="<?php echo get_option('csbwfs_pin_title'); ?>" placeholder="Share on pintrest" size="20" class="csbwfs_title"/>
91
+ </td>
92
+ </tr>
93
+ <tr><th><?php echo 'Google Plus:';?></th>
94
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsGoImg">
95
+ <input type="text" id="csbwfs_gp_image" name="csbwfs_gp_image" value="<?php echo get_option('csbwfs_gp_image'); ?>" placeholder="Insert google button image path" size="30" class="inputButtonid"/><input id="csbwfs_gp_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_gp_image" name="csbwfs_gp_bg" value="<?php echo get_option('csbwfs_gp_bg'); ?>" data-default-color="#dd4c39" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_gp_title" name="csbwfs_gp_title" value="<?php echo get_option('csbwfs_gp_title'); ?>" placeholder="Share on google" size="20" class="csbwfs_title"/>
96
+ </td>
97
+ </tr>
98
+ <tr><th><?php echo 'Reddit:';?></th>
99
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsReImg">
100
+ <input type="text" id="csbwfs_re_image" name="csbwfs_re_image" value="<?php echo get_option('csbwfs_re_image'); ?>" placeholder="Insert reddit button image path" size="30" class="inputButtonid"/><input id="csbwfs_re_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_re_bg" name="csbwfs_re_bg" value="<?php echo get_option('csbwfs_re_bg'); ?>" data-default-color="#ff1a00" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_re_title" name="csbwfs_re_title" value="<?php echo get_option('csbwfs_re_title'); ?>" placeholder="Share on reddit" size="20" class="csbwfs_title"/>
101
+ </td>
102
+ </tr>
103
+ <tr><th><?php echo 'Stumbleupon:';?></th>
104
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsStImg">
105
+ <input type="text" id="csbwfs_st_image" name="csbwfs_st_image" value="<?php echo get_option('csbwfs_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="30" class="inputButtonid"/><input id="csbwfs_st_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_st_bg" name="csbwfs_st_bg" value="<?php echo get_option('csbwfs_st_bg'); ?>" data-default-color="#eb4924" class="color-field" size="20"/>
106
+ &nbsp;&nbsp;<input type="text" id="csbwfs_st_title" name="csbwfs_st_title" value="<?php echo get_option('csbwfs_st_title'); ?>" placeholder="Share on stumbleupon" size="20" class="csbwfs_title"/>
107
+ </td>
108
+ </tr>
109
+ <tr><th><?php echo 'Mail:';?></th>
110
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsMaImg">
111
+ <input type="text" id="csbwfs_mail_image" name="csbwfs_mail_image" value="<?php echo get_option('csbwfs_mail_image'); ?>" placeholder="Insert mail button image path" size="30" class="inputButtonid"/><input id="csbwfs_mail_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_mail_bg" name="csbwfs_mail_bg" value="<?php echo get_option('csbwfs_mail_bg'); ?>" data-default-color="#738a8d" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_mail_title" name="csbwfs_mail_title" value="<?php echo get_option('csbwfs_mail_title'); ?>" placeholder="Send contact request" size="20" class="csbwfs_title"/>
112
+ </td>
113
+ </tr>
114
+ <tr><th><?php echo 'Youtube:';?></th>
115
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg">
116
+ <input type="text" id="csbwfs_yt_image" name="csbwfs_yt_image" value="<?php echo get_option('csbwfs_yt_image'); ?>" placeholder="Insert youtube button image path" size="30" class="inputButtonid"/><input id="csbwfs_yt_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_yt_bg" name="csbwfs_yt_bg" value="<?php echo get_option('csbwfs_yt_bg'); ?>" data-default-color="#ffffff" class="color-field" size="20"/>&nbsp;&nbsp;<input type="text" id="csbwfs_yt_title" name="csbwfs_yt_title" value="<?php echo get_option('csbwfs_yt_title'); ?>" placeholder="Youtube" size="20" class="csbwfs_title"/>
117
+ </td>
118
+ </tr>
119
+ <tr><td colspan="2"><h3><strong>Style(Optional):</strong></h3></td></tr>
120
+
121
+ <tr>
122
+ <th><?php echo 'Top Margin:';?></th>
123
+ <td>
124
+
125
+ <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"/>
126
+ </td>
127
+ </tr>
128
+ </table>
129
+ </div>
130
+ <!-- Share Buttons -->
131
+ <div class="csbwfs-tab" id="div-csbwfs-share-buttons">
132
+ <h2>Social Share Buttons Settings</h2>
133
+ <table>
134
+ <td><?php _e('Enable:','csbwfs');?></td>
135
+ <td colspan="2">
136
+ <input type="checkbox" id="csbwfs_buttons_active" name="csbwfs_buttons_active" value='1' <?php checked(get_option('csbwfs_buttons_active'),1);?>/>
137
+ </td>
138
+ </tr>
139
+ <tr>
140
+ <th nowrap><?php echo 'Share Button Position:';?></th>
141
+ <td>
142
+ <select id="csbwfs_btn_position" name="csbwfs_btn_position" >
143
+ <option value="left" <?php selected(get_option('csbwfs_btn_position'),'left');?>>Left</option>
144
+ <option value="right" <?php selected(get_option('csbwfs_btn_position'),'right');?>>Right</option>
145
+ </select>
146
+ </td>
147
+ </tr>
148
+ <tr>
149
+ <th nowrap><?php echo 'Display Buttons On ';?></th>
150
+ <td>
151
+ <select id="csbwfs_btn_display" name="csbwfs_btn_display" >
152
+ <option value="below" <?php selected(get_option('csbwfs_btn_display'),'below');?>>Bottom Of The Content</option>
153
+ <option value="above" <?php selected(get_option('csbwfs_btn_display'),'above');?>>Top Of The Content</option>
154
+ </select>
155
+ </td>
156
+ </tr>
157
+ <tr>
158
+ <th nowrap><?php echo 'Share Button Text:';?></th>
159
+ <td>
160
+ <input type="textbox" id="csbwfs_btn_text" name="csbwfs_btn_text" value="<?php echo get_option('csbwfs_btn_text'); ?>" placeholder="Share This!" size="20"/>
161
+ <i>(Leave blank if you want hide button)</i></td>
162
+ </tr>
163
+ <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 checked(get_option('csbwfs_page_hide_home'),'yes');?>/> Page <input type="checkbox" id="csbwfs_page_hide_page" value="yes" name="csbwfs_page_hide_page" <?php checked(get_option('csbwfs_page_hide_page'),'yes');?>/> Post <input type="checkbox" id="csbwfs_page_hide_post" value="yes" name="csbwfs_page_hide_post" <?php checked(get_option('csbwfs_page_hide_post'),'yes');?>/> Category/Archive <input type="checkbox" id="csbwfs_page_hide_archive" value="yes" name="csbwfs_page_hide_archive" <?php checked(get_option('csbwfs_page_hide_archive'),'yes');?>/> <br>
164
+ </td></tr>
165
+
166
+ <tr><td colspan="2"><strong><h4>Social Share Button Images 32X32 (Optional) :</h4></strong></td></tr>
167
+ <tr><td colspan="2" align="right"><input type="button" id="csbwfsresetpage" value="RESET"></td></tr>
168
+ <tr><th><?php echo 'Facebook:';?></th>
169
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg2"><input type="text" id="csbwfs_page_fb_image" name="csbwfs_page_fb_image" value="<?php echo get_option('csbwfs_page_fb_image'); ?>" placeholder="Insert facebook button image path" size="40" class="inputButtonid"/>
170
+ <input id="csbwfs_fb_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_fb_title" name="csbwfs_page_fb_title" value="<?php echo get_option('csbwfs_page_fb_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
171
+ </td>
172
+ </tr>
173
+ <tr>
174
+ <th><?php echo 'Twitter:';?></th>
175
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg2">
176
+ <input type="text" id="csbwfs_page_tw_image" name="csbwfs_page_tw_image" value="<?php echo get_option('csbwfs_page_tw_image'); ?>" placeholder="Insert twitter button image path" size="40" class="inputButtonid"/>
177
+ <input id="csbwfs_tw_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_tw_title" name="csbwfs_page_tw_title" value="<?php echo get_option('csbwfs_page_tw_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
178
+ </td>
179
+ </tr>
180
+ <tr><th><?php echo 'Linkedin:';?></th>
181
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg2"><input type="text" id="csbwfs_page_li_image" name="csbwfs_page_li_image" value="<?php echo get_option('csbwfs_page_li_image'); ?>" placeholder="Insert Linkedin button image path" size="40" class="inputButtonid"/>
182
+ <input id="csbwfs_li_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_li_title" name="csbwfs_page_li_title" value="<?php echo get_option('csbwfs_page_li_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
183
+ </td>
184
+ </tr>
185
+ <tr>
186
+ <th><?php echo 'Pintrest:';?></th>
187
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg2"><input type="text" id="csbwfs_page_pin_image" name="csbwfs_page_pin_image" value="<?php echo get_option('csbwfs_page_pin_image'); ?>" placeholder="Insert pinterest button image path" size="40" class="inputButtonid"/>
188
+ <input id="csbwfs_pi_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_pin_title" name="csbwfs_page_pin_title" value="<?php echo get_option('csbwfs_page_pin_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
189
+ </td>
190
+ </tr>
191
+ <tr>
192
+ <th><?php echo 'Google Plus:';?></th>
193
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsGpImg2">
194
+ <input type="text" id="csbwfs_page_gp_image" name="csbwfs_page_gp_image" value="<?php echo get_option('csbwfs_page_gp_image'); ?>" placeholder="Insert google button image path" size="40" class="inputButtonid"/>
195
+ <input id="csbwfs_gp_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_gp_title" name="csbwfs_page_gp_title" value="<?php echo get_option('csbwfs_page_gp_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
196
+ </td>
197
+ </tr>
198
+ <tr>
199
+ <th><?php echo 'Reddit:';?></th>
200
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsReImg2">
201
+ <input type="text" id="csbwfs_page_re_image" name="csbwfs_page_re_image" value="<?php echo get_option('csbwfs_page_re_image'); ?>" placeholder="Insert reddit button image path" size="40" class="inputButtonid"/>
202
+ <input id="csbwfs_re_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_re_title" name="csbwfs_page_re_title" value="<?php echo get_option('csbwfs_page_re_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
203
+ </td>
204
+ </tr>
205
+ <tr>
206
+ <th><?php echo 'Stumbleupon:';?></th>
207
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsStImg2">
208
+ <input type="text" id="csbwfs_page_st_image" name="csbwfs_page_st_image" value="<?php echo get_option('csbwfs_page_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="40" class="inputButtonid"/>
209
+ <input id="csbwfs_st_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_st_title" name="csbwfs_page_st_title" value="<?php echo get_option('csbwfs_page_st_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
210
+ </td>
211
+ </tr>
212
+ <tr>
213
+ <th><?php echo 'Mail:';?></th>
214
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsMlImg2">
215
+ <input type="text" id="csbwfs_page_mail_image" name="csbwfs_page_mail_image" value="<?php echo get_option('csbwfs_page_mail_image'); ?>" placeholder="Insert mail button image path" size="40" class="inputButtonid"/>
216
+ <input id="csbwfs_ml_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_mail_title" name="csbwfs_page_mail_title" value="<?php echo get_option('csbwfs_page_mail_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
217
+ </td>
218
+ </tr>
219
+ <tr>
220
+ <th><?php echo 'Youtube:';?></th>
221
+ <td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg2">
222
+ <input type="text" id="csbwfs_page_yt_image" name="csbwfs_page_yt_image" value="<?php echo get_option('csbwfs_page_yt_image'); ?>" placeholder="Insert youtube button image path" size="40" class="inputButtonid"/>
223
+ <input id="csbwfs_yt_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/>&nbsp;&nbsp;<input type="text" id="csbwfs_page_yt_title" name="csbwfs_page_yt_title" value="<?php echo get_option('csbwfs_page_yt_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
224
+ </td>
225
+ </tr>
226
+ </table>
227
+
228
+ </div>
229
+ <!-- Support -->
230
+ <div class="last author csbwfs-tab" id="div-csbwfs-support">
231
+
232
+ <h2>Plugin Support</h2>
233
+
234
+ <p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A" target="_blank" style="font-size: 17px; font-weight: bold;"><img src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" title="Donate for this plugin"></a></p>
235
+
236
+ <p><strong>Plugin Author:</strong><br><img src="<?php echo plugins_url( '../images/mrweb.jpg' , __FILE__ );?>" width="75" height="75"><br><a href="http://raghunathgurjar.wordpress.com" target="_blank">MR Web Soluttion</a></p>
237
+ <p><a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact Author</a></p>
238
+ <p><strong>Our Other Plugins:</strong><br>
239
+ <ol>
240
+ <li><a href="https://wordpress.org/plugins/custom-share-buttons-with-floating-sidebar" target="_blank">Custom Share Buttons With Floating Sidebar</a></li>
241
+ <li><a href="https://wordpress.org/plugins/protect-wp-admin/" target="_blank">Protect WP-Admin</a></li>
242
+ <li><a href="https://wordpress.org/plugins/wp-sales-notifier/" target="_blank">WP Sales Notifier</a></li>
243
+ <li><a href="https://wordpress.org/plugins/wp-categories-widget/" target="_blank">WP Categories Widget</a></li>
244
+ <li><a href="https://wordpress.org/plugins/wp-protect-content/" target="_blank">WP Protect Content</a></li>
245
+ <li><a href="https://wordpress.org/plugins/wp-version-remover/" target="_blank">WP Version Remover</a></li>
246
+ <li><a href="https://wordpress.org/plugins/wp-posts-widget/" target="_blank">WP Post Widget</a></li>
247
+ <li><a href="https://wordpress.org/plugins/wp-importer" target="_blank">WP Importer</a></li>
248
+ <li><a href="https://wordpress.org/plugins/wp-csv-importer/" target="_blank">WP CSV Importer</a></li>
249
+ <li><a href="https://wordpress.org/plugins/wp-testimonial/" target="_blank">WP Testimonial</a></li>
250
+ <li><a href="https://wordpress.org/plugins/wc-sales-count-manager/" target="_blank">WooCommerce Sales Count Manager</a></li>
251
+ <li><a href="https://wordpress.org/plugins/wp-social-buttons/" target="_blank">WP Social Buttons</a></li>
252
+ <li><a href="https://wordpress.org/plugins/wp-youtube-gallery/" target="_blank">WP Youtube Gallery</a></li>
253
+ <li><a href="https://wordpress.org/plugins/tweets-slider/" target="_blank">Tweets Slider</a></li>
254
+ <li><a href="https://wordpress.org/plugins/rg-responsive-gallery/" target="_blank">RG Responsive Slider</a></li>
255
+ <li><a href="https://wordpress.org/plugins/cf7-advance-security" target="_blank">Contact Form 7 Advance Security WP-Admin</a></li>
256
+ <li><a href="https://wordpress.org/plugins/wp-easy-recipe/" target="_blank">WP Easy Recipe</a></li>
257
+ </ol>
258
+ </div>
259
+ <!-- GO PRO -->
260
+ <div class="last author csbwfs-tab" id="div-csbwfs-pro">
261
+
262
+ <h2>GO PRO</h2>
263
+ <p><a href="https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/" target="_blank" class="contact-author">Go Pro</a></p>
264
+ <p>We have released an add-on for Custom Share Buttons With Floating Sidebar which not only demonstrates the flexibility of CSBWFS, but also adds some important features:</p>
265
+ <ol>
266
+ <li>Responsive Floating Sidebar</li>
267
+ <li>An option for Hide Floating Sidebar On Home/Blog/Search/Category/Author pages</li>
268
+ <li>An option for Hide Floating Sidebar On any post type (i.e page,post,event,product...etc)</li>
269
+ <li>An option for Hide Floating Sidebar On any taxonomy type (support all custom taxonomy type)</li>
270
+ <li>An Option for Show/Hide sidebar on specific page/post and on any custom post type pages as well.</li>
271
+ <li>An option for Show Social Share Buttons On Home/Blog/Search/Category/Author pages</li>
272
+ <li>An option for Show Social Share Buttons on any taxonomy type (support all custom taxonomy type)</li>
273
+ <li>An Option for Show/Hide social share buttons on specific page/post and on any custom post type pages as well.</li>
274
+ <li>Responsive Lightbox Contact Form (for Mail Icon)</li>
275
+ <li>An option for add to any custom shortcode into lightbox</li>
276
+ <li>Advance feature for choose to pinterest share image</li>
277
+ <li>An option for enable to OG tags meta boxes for define to share window content(share title, share description & share image path)</li>
278
+ <li>An option for set sidebar position (left/right/bottom) for mobile</li>
279
+ <li>An option for add to social site official page URL for all social buttons</li>
280
+ <li>Extra Buttons (Google Translate,Instagram,Whatsapp,Digg,Yummly,Vk, Buffer, Line, Skype, RSS, Print, G-Mail, Blogger, Tumbler,Delicious,Weibo, Telegram &amp; SMS )</li>
281
+ <li>An option for define to twitter username as hash tag in share window.</li>
282
+ <li>An option for display to number of share(Facebook,Linkedin,StumbleUpon,Google Plus,Pinterest and Reddit)</li>
283
+ <li>An options for change to buttons image, title, background colour and url (You can use any button as your own custom button)</li>
284
+ <li>An options to define sorting order for all buttons</li>
285
+ <li>10 extra custom floating sidebar buttons with extra options (i.e you can define your own custom size for these buttons)</li>
286
+ <li>An option for show to sum of total share count for all buttons</li>
287
+ <li>An option for remove mouse hover animation effect for all social buttons</li>
288
+ <li>Faster support</li>
289
+ </ol>
290
+ <h1 style="color:green;text-align:center;"><strong>Pay one time use lifetime!!!!!</strong><br><br> Hurry up!!!!</h1>
291
+ <p><a href="https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/" target="_blank" class="contact-author">Go Pro</a></p>
292
+ <p> <a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact To Author</a></p>
293
+
294
+ </div>
295
+
296
+ </div>
297
+ <span class="submit-btn"><?php echo get_submit_button('Save Settings','button-primary','submit','','');?></span>
298
+
299
+ <?php settings_fields('csbwf_sidebar_options'); ?>
300
+
301
+ </form>
302
+
303
+ <!-- End Options Form -->
304
+ </div>
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors:india-web-developer
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
4
  Tags: social share buttons,custom share buttons,facebook, twitter, google+, share, share links,linkedin,Stumbleupon,Reddit,pinterest,floating sidebar,float,floating share buttons,float share buttons
5
  Requires at least: 3.8
6
- Tested up to: 4.6
7
- Stable tag: 2.9
8
 
9
  Social Share Buttons (Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit) & Share Floating Sidebar.
10
 
@@ -148,6 +148,9 @@ Step 3. Go to Settings/"Custom Share Buttons with Floating Sidebar" and configur
148
  9. screenshot-9.png
149
 
150
  == Changelog ==
 
 
 
151
  = 2.9 =
152
  * Tested with latest wordpress version 4.6
153
  * optmized CSS
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=ZEMSYQUZRUK6A
4
  Tags: social share buttons,custom share buttons,facebook, twitter, google+, share, share links,linkedin,Stumbleupon,Reddit,pinterest,floating sidebar,float,floating share buttons,float share buttons
5
  Requires at least: 3.8
6
+ Tested up to: 4.7
7
+ Stable tag: 3.0
8
 
9
  Social Share Buttons (Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit) & Share Floating Sidebar.
10
 
148
  9. screenshot-9.png
149
 
150
  == Changelog ==
151
+ = 3.0 =
152
+ * Tested with latest wordpress version 4.7
153
+ * Optimized plugin code
154
  = 2.9 =
155
  * Tested with latest wordpress version 4.6
156
  * optmized CSS