Version Description
- Make plugin settings page more stylish
- Added a new option for remove show/hide buttions
- Added an option for change position of social share buttons
- Make "Share This!" button text editable
- Add Youtube button
- Change image opacity on hover
Download this release
Release Info
Developer | india-web-developer |
Plugin | Custom Share Buttons with Floating Sidebar |
Version | 1.5 |
Comparing to | |
See all releases |
Code changes from version 1.0 to 1.5
- csbwfs-class.php +552 -226
- css/admin-csbwfs.css +4 -0
- css/csbwfs.css +96 -24
- custom-share-buttons-with-floating-sidebar.php +425 -207
- images/fb-p.png +0 -0
- images/fb.png +0 -0
- images/gp-p.png +0 -0
- images/gp.png +0 -0
- images/in-p.png +0 -0
- images/in.png +0 -0
- images/ml-p.png +0 -0
- images/ml.png +0 -0
- images/mrweb-logo.jpg +0 -0
- images/pinit-p.png +0 -0
- images/pinit.png +0 -0
- images/raghu.jpg +0 -0
- images/sharethis-l.png +0 -0
- images/sharethis-r.png +0 -0
- images/sharethis.png +0 -0
- images/sharethis_old.png +0 -0
- images/tw-p.png +0 -0
- images/tw.png +0 -0
- images/youtube-p.png +0 -0
- images/youtube.png +0 -0
- readme.txt +71 -14
csbwfs-class.php
CHANGED
@@ -1,226 +1,552 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
$
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
//
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
if(
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
})
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
$
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
if($pluginOptionsVal['
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
208 |
-
|
209 |
-
|
210 |
-
|
211 |
-
|
212 |
-
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
|
226 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
* Custom Share Buttons With Floating Sidebar (C)
|
4 |
+
* @get_csbwf_sidebar_options()
|
5 |
+
* @get_csbwf_sidebar_content()
|
6 |
+
* */
|
7 |
+
?>
|
8 |
+
<?php
|
9 |
+
// get all options value for "Custom Share Buttons with Floating Sidebar"
|
10 |
+
function get_csbwf_sidebar_options() {
|
11 |
+
global $wpdb;
|
12 |
+
$ctOptions = $wpdb->get_results("SELECT option_name, option_value FROM $wpdb->options WHERE option_name LIKE 'csbwfs_%'");
|
13 |
+
|
14 |
+
foreach ($ctOptions as $option) {
|
15 |
+
$ctOptions[$option->option_name] = $option->option_value;
|
16 |
+
}
|
17 |
+
|
18 |
+
return $ctOptions;
|
19 |
+
}
|
20 |
+
|
21 |
+
// Get plugin options
|
22 |
+
|
23 |
+
$pluginOptionsVal=get_csbwf_sidebar_options();
|
24 |
+
//check plugin in enable or not
|
25 |
+
if(isset($pluginOptionsVal['csbwfs_active']) && $pluginOptionsVal['csbwfs_active']==1){
|
26 |
+
add_action('wp_footer','get_csbwf_sidebar_content');
|
27 |
+
add_action( 'wp_enqueue_scripts', 'csbwf_sidebar_scripts' );
|
28 |
+
add_action('wp_footer','csbwf_sidebar_load_inline_js');
|
29 |
+
add_action('wp_footer','csbwfs_cookie');
|
30 |
+
}
|
31 |
+
|
32 |
+
function csbwfs_cookie()
|
33 |
+
{
|
34 |
+
echo $cookieVal='<script>csbwfsCheckCookie();function csbwfsSetCookie(cname,cvalue,exdays) {
|
35 |
+
var d = new Date();
|
36 |
+
d.setTime(d.getTime() + (exdays*24*60*60*1000));
|
37 |
+
var expires = "expires=" + d.toGMTString();
|
38 |
+
document.cookie = cname+"="+cvalue+"; "+expires;
|
39 |
+
}
|
40 |
+
|
41 |
+
function csbwfsGetCookie(cname) {
|
42 |
+
var name = cname + "=";
|
43 |
+
var ca = document.cookie.split(\';\');
|
44 |
+
for(var i=0; i<ca.length; i++) {
|
45 |
+
var c = ca[i];
|
46 |
+
while (c.charAt(0)==\' \') c = c.substring(1);
|
47 |
+
if (c.indexOf(name) != -1) {
|
48 |
+
return c.substring(name.length, c.length);
|
49 |
+
}
|
50 |
+
}
|
51 |
+
return "";
|
52 |
+
}
|
53 |
+
|
54 |
+
function csbwfsCheckCookie() {
|
55 |
+
var button_status=csbwfsGetCookie("csbwfs_show_hide_status");
|
56 |
+
if (button_status != "") {
|
57 |
+
|
58 |
+
} else {
|
59 |
+
// user = prompt("Please enter your name:","");
|
60 |
+
// if (user != "" && user != null) {
|
61 |
+
csbwfsSetCookie("csbwfs_show_hide_status", "active",1);
|
62 |
+
// }
|
63 |
+
}
|
64 |
+
}
|
65 |
+
|
66 |
+
</script>';
|
67 |
+
|
68 |
+
|
69 |
+
}
|
70 |
+
|
71 |
+
if(isset($pluginOptionsVal['csbwfs_buttons_active']) && $pluginOptionsVal['csbwfs_buttons_active']==1){
|
72 |
+
add_filter( 'the_content', 'csbfs_the_content_filter', 20);
|
73 |
+
}
|
74 |
+
|
75 |
+
//register style and scrip files
|
76 |
+
function csbwf_sidebar_scripts() {
|
77 |
+
wp_enqueue_script( 'jquery' ); // wordpress jQuery
|
78 |
+
wp_register_style( 'csbwf_sidebar_style', plugins_url( 'css/csbwfs.css',__FILE__ ) );
|
79 |
+
wp_enqueue_style( 'csbwf_sidebar_style' );
|
80 |
+
}
|
81 |
+
|
82 |
+
/*
|
83 |
+
-----------------------------------------------------------------------------------------------
|
84 |
+
"Add the jQuery code in head section using hooks"
|
85 |
+
-----------------------------------------------------------------------------------------------
|
86 |
+
*/
|
87 |
+
|
88 |
+
|
89 |
+
function csbwf_sidebar_load_inline_js()
|
90 |
+
{
|
91 |
+
$pluginOptionsVal=get_csbwf_sidebar_options();
|
92 |
+
$jscnt='<script>jQuery(document).ready(function()
|
93 |
+
{ ';
|
94 |
+
|
95 |
+
|
96 |
+
if($pluginOptionsVal['csbwfs_delayTimeBtn']!='0'):
|
97 |
+
$jscnt.='jQuery("#delaydiv").hide();
|
98 |
+
setTimeout(function(){
|
99 |
+
jQuery("#delaydiv").fadeIn();}, '.$pluginOptionsVal['csbwfs_delayTimeBtn'].');';
|
100 |
+
endif;
|
101 |
+
|
102 |
+
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
103 |
+
$jscnt.='jQuery("div#tw a").hover(function(){
|
104 |
+
jQuery("div#tw a").animate({width:"60px"});
|
105 |
+
},function(){
|
106 |
+
jQuery("div#tw a").stop( true, true ).animate({width:"45px"});
|
107 |
+
});';
|
108 |
+
endif;
|
109 |
+
|
110 |
+
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
111 |
+
$jscnt.='jQuery("div#fb a").hover(function(){
|
112 |
+
jQuery("div#fb a").animate({width:"60px"});
|
113 |
+
},function(){
|
114 |
+
jQuery("div#fb a").stop( true, true ).animate({width:"45px"});
|
115 |
+
});';
|
116 |
+
endif;
|
117 |
+
|
118 |
+
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
119 |
+
$jscnt.='jQuery("div#ml a").hover(function(){
|
120 |
+
jQuery("div#ml a").animate({width:"60px"});
|
121 |
+
},function(){
|
122 |
+
jQuery("div#ml a").stop( true, true ).animate({width:"45px"});
|
123 |
+
});';
|
124 |
+
endif;
|
125 |
+
|
126 |
+
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
127 |
+
$jscnt.='jQuery("div#gp a").hover(function(){
|
128 |
+
jQuery("div#gp a").animate({width:"60px"});
|
129 |
+
},function(){
|
130 |
+
jQuery("div#gp a").stop( true, true ).animate({width:"45px"});
|
131 |
+
});';
|
132 |
+
endif;
|
133 |
+
|
134 |
+
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
135 |
+
$jscnt.='jQuery("div#li a").hover(function(){
|
136 |
+
jQuery("div#li a").animate({width:"60px"});
|
137 |
+
},function(){
|
138 |
+
jQuery("div#li a").stop( true, true ).animate({width:"45px"});
|
139 |
+
});';
|
140 |
+
endif;
|
141 |
+
|
142 |
+
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
143 |
+
$jscnt.='jQuery("div#pin a").hover(function(){
|
144 |
+
jQuery("div#pin a").animate({width:"60px"});
|
145 |
+
},function(){
|
146 |
+
jQuery("div#pin a").stop( true, true ).animate({width:"45px"});
|
147 |
+
});';
|
148 |
+
endif;
|
149 |
+
|
150 |
+
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
151 |
+
$jscnt.='jQuery("div#yt a").hover(function(){
|
152 |
+
jQuery("div#yt a").animate({width:"60px"});
|
153 |
+
},function(){
|
154 |
+
jQuery("div#yt a").stop( true, true ).animate({width:"45px"});
|
155 |
+
});';
|
156 |
+
endif;
|
157 |
+
|
158 |
+
$jscnt.='jQuery("div.show").hide();
|
159 |
+
jQuery("div.show a").click(function(){
|
160 |
+
jQuery("div#social-inner").show(500);
|
161 |
+
jQuery("div.show").hide(500);
|
162 |
+
jQuery("div.hide").show(500);
|
163 |
+
csbwfsSetCookie("csbwfs_show_hide_status","active","1");
|
164 |
+
});
|
165 |
+
|
166 |
+
jQuery("div.hide a").click(function(){
|
167 |
+
jQuery("div.show").show(500);
|
168 |
+
jQuery("div.hide").hide(500);
|
169 |
+
jQuery("div#social-inner").hide(500);
|
170 |
+
csbwfsSetCookie("csbwfs_show_hide_status","in_active","1");
|
171 |
+
});';
|
172 |
+
|
173 |
+
$jscnt.='var button_status=csbwfsGetCookie("csbwfs_show_hide_status");
|
174 |
+
if (button_status =="in_active") {
|
175 |
+
jQuery("div.show").show();
|
176 |
+
jQuery("div.hide").hide();
|
177 |
+
jQuery("div#social-inner").hide();
|
178 |
+
} else {
|
179 |
+
jQuery("div#social-inner").show();
|
180 |
+
jQuery("div.show").hide();
|
181 |
+
jQuery("div.hide").show();
|
182 |
+
}';
|
183 |
+
|
184 |
+
$jscnt.='});</script>';
|
185 |
+
|
186 |
+
echo $jscnt;
|
187 |
+
}
|
188 |
+
|
189 |
+
/*
|
190 |
+
-----------------------------------------------------------------------------------------------
|
191 |
+
"Custom Share Buttons with Floating Sidebar" HTML
|
192 |
+
-----------------------------------------------------------------------------------------------
|
193 |
+
*/
|
194 |
+
|
195 |
+
|
196 |
+
function get_csbwf_sidebar_content() {
|
197 |
+
global $post;
|
198 |
+
$pluginOptionsVal=get_csbwf_sidebar_options();
|
199 |
+
|
200 |
+
if(is_category())
|
201 |
+
{
|
202 |
+
$category_id = get_query_var('cat');
|
203 |
+
$shareurl =get_category_link( $category_id );
|
204 |
+
$cats = get_the_category();
|
205 |
+
$ShareTitle=$cats[0]->name;
|
206 |
+
}elseif(is_page() || is_single())
|
207 |
+
{
|
208 |
+
$shareurl=get_permalink($post->ID);
|
209 |
+
$ShareTitle=$post->post_title;
|
210 |
+
}
|
211 |
+
elseif(is_archive())
|
212 |
+
{
|
213 |
+
global $wp;
|
214 |
+
$current_url = get_home_url(null, $wp->request, null);
|
215 |
+
|
216 |
+
if ( is_day() ) :
|
217 |
+
$ShareTitle='Daily Archives: '. get_the_date();
|
218 |
+
elseif ( is_month() ) :
|
219 |
+
$ShareTitle='Monthly Archives: '. get_the_date('F Y');
|
220 |
+
elseif ( is_year() ) :
|
221 |
+
$ShareTitle='Yearly Archives: '. get_the_date('Y');
|
222 |
+
elseif ( is_author() ) :
|
223 |
+
$ShareTitle='Author Archives: '. get_the_author();
|
224 |
+
else :
|
225 |
+
$ShareTitle ='Blog Archives';
|
226 |
+
endif;
|
227 |
+
$shareurl=$current_url;
|
228 |
+
|
229 |
+
//$ShareTitle=$post->post_title;
|
230 |
+
}
|
231 |
+
else
|
232 |
+
{
|
233 |
+
$shareurl =home_url('/');
|
234 |
+
$ShareTitle=get_bloginfo('name');
|
235 |
+
}
|
236 |
+
$ShareTitle= htmlspecialchars(urlencode($ShareTitle));
|
237 |
+
|
238 |
+
/* Get All buttons Image */
|
239 |
+
|
240 |
+
//get facebook button image
|
241 |
+
if($pluginOptionsVal['csbwfs_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_fb_image'];}
|
242 |
+
else{$fImg=plugins_url('images/fb.png',__FILE__);}
|
243 |
+
//get twitter button image
|
244 |
+
if($pluginOptionsVal['csbwfs_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_tw_image'];}
|
245 |
+
else{$tImg=plugins_url('images/tw.png',__FILE__);}
|
246 |
+
//get linkdin button image
|
247 |
+
if($pluginOptionsVal['csbwfs_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_li_image'];}
|
248 |
+
else{$lImg=plugins_url('images/in.png',__FILE__);}
|
249 |
+
//get mail button image
|
250 |
+
if($pluginOptionsVal['csbwfs_mail_image']!=''){ $mImg=$pluginOptionsVal['csbwfs_mail_image'];}
|
251 |
+
else{$mImg=plugins_url('images/ml.png',__FILE__);}
|
252 |
+
//get google plus button image
|
253 |
+
if($pluginOptionsVal['csbwfs_gp_image']!=''){ $gImg=$pluginOptionsVal['csbwfs_gp_image'];}
|
254 |
+
else{$gImg=plugins_url('images/gp.png',__FILE__);}
|
255 |
+
//get pinterest button image
|
256 |
+
|
257 |
+
if($pluginOptionsVal['csbwfs_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_pin_image'];}
|
258 |
+
else{$pImg=plugins_url('images/pinit.png',__FILE__);}
|
259 |
+
|
260 |
+
//get youtube button image
|
261 |
+
if(isset($pluginOptionsVal['csbwfs_yt_image']) && $pluginOptionsVal['csbwfs_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_yt_image'];}
|
262 |
+
else{$ytImg=plugins_url('images/youtube.png',__FILE__);}
|
263 |
+
|
264 |
+
//get email message
|
265 |
+
if(is_page() || is_single() || is_category() || is_archive()){
|
266 |
+
|
267 |
+
if($pluginOptionsVal['csbwfs_mailMessage']!=''){ $mailMsg=$pluginOptionsVal['csbwfs_mailMessage'];} else{
|
268 |
+
$mailMsg='?subject='.$ShareTitle.'&body='.$shareurl;}
|
269 |
+
}else
|
270 |
+
{
|
271 |
+
$mailMsg='?subject='.get_bloginfo('name').'&body='.home_url('/');
|
272 |
+
}
|
273 |
+
|
274 |
+
|
275 |
+
// Top Margin
|
276 |
+
if($pluginOptionsVal['csbwfs_top_margin']!=''){
|
277 |
+
$margin=$pluginOptionsVal['csbwfs_top_margin'];
|
278 |
+
}else
|
279 |
+
{
|
280 |
+
$margin='25%';
|
281 |
+
}
|
282 |
+
|
283 |
+
//Sidebar Position
|
284 |
+
if($pluginOptionsVal['csbwfs_position']=='right'){
|
285 |
+
$style=' style="top:'.$margin.';right:-5px;"';
|
286 |
+
$idName=' id="csbwfs-right"';
|
287 |
+
$showImg='hide.png';
|
288 |
+
$hideImg='show.png';
|
289 |
+
|
290 |
+
}else
|
291 |
+
{
|
292 |
+
$idName=' id="csbwfs-left"';
|
293 |
+
$style=' style="top:'.$margin.';left:0;"';
|
294 |
+
$showImg='show.png';
|
295 |
+
$hideImg='hide.png';
|
296 |
+
}
|
297 |
+
|
298 |
+
|
299 |
+
|
300 |
+
/* Get All buttons background color */
|
301 |
+
|
302 |
+
//get facebook button image background color
|
303 |
+
if($pluginOptionsVal['csbwfs_fb_bg']!=''){ $fImgbg=' style="background:'.$pluginOptionsVal['csbwfs_fb_bg'].';"';}
|
304 |
+
else{$fImgbg='';}
|
305 |
+
//get twitter button image background color
|
306 |
+
if($pluginOptionsVal['csbwfs_tw_bg']!=''){ $tImgbg=' style="background:'.$pluginOptionsVal['csbwfs_tw_bg'].';"';}
|
307 |
+
else{$tImgbg='';}
|
308 |
+
//get linkdin button image background color
|
309 |
+
if($pluginOptionsVal['csbwfs_li_bg']!=''){ $lImgbg=' style="background:'.$pluginOptionsVal['csbwfs_li_bg'].';"';}
|
310 |
+
else{$lImgbg='';}
|
311 |
+
//get mail button image background color
|
312 |
+
if($pluginOptionsVal['csbwfs_mail_bg']!=''){ $mImgbg=' style="background:'.$pluginOptionsVal['csbwfs_mail_bg'].';"';}
|
313 |
+
else{$mImgbg='';}
|
314 |
+
//get google plus button image background color
|
315 |
+
if($pluginOptionsVal['csbwfs_gp_bg']!=''){ $gImgbg=' style="background:'.$pluginOptionsVal['csbwfs_gp_bg'].';"';}
|
316 |
+
else{$gImgbg='';}
|
317 |
+
//get pinterest button image background color
|
318 |
+
if($pluginOptionsVal['csbwfs_pin_bg']!=''){ $pImgbg=' style="background:'.$pluginOptionsVal['csbwfs_pin_bg'].';"';}
|
319 |
+
else{$pImgbg='';}
|
320 |
+
|
321 |
+
//get youtube button image background color
|
322 |
+
if(isset($pluginOptionsVal['csbwfs_yt_bg']) && $pluginOptionsVal['csbwfs_yt_bg']!=''){ $ytImgbg=' style="background:'.$pluginOptionsVal['csbwfs_yt_bg'].';"';}
|
323 |
+
else{$ytImgbg='';}
|
324 |
+
|
325 |
+
/** Message */
|
326 |
+
|
327 |
+
if($pluginOptionsVal['csbwfs_show_btn']!=''){ $showbtn=$pluginOptionsVal['csbwfs_show_btn'];}
|
328 |
+
else{$showbtn='Show Buttons';}
|
329 |
+
//get show/hide button message
|
330 |
+
if($pluginOptionsVal['csbwfs_hide_btn']!=''){ $hidebtn=$pluginOptionsVal['csbwfs_hide_btn'];}
|
331 |
+
else{$hidebtn='Hide Buttons';}
|
332 |
+
//get mail button message
|
333 |
+
if($pluginOptionsVal['csbwfs_share_msg']!=''){ $sharemsg=$pluginOptionsVal['csbwfs_share_msg'];}
|
334 |
+
else{$sharemsg='Share This With Your Friends';}
|
335 |
+
/** Check display Show/Hide button or not*/
|
336 |
+
if(isset($pluginOptionsVal['csbwfs_rmSHBtn']) && $pluginOptionsVal['csbwfs_rmSHBtn']!=''):
|
337 |
+
$isActiveHideShowBtn='yes';
|
338 |
+
else:
|
339 |
+
$isActiveHideShowBtn='no';
|
340 |
+
endif;
|
341 |
+
?>
|
342 |
+
<div id="delaydiv">
|
343 |
+
<div class='social-widget' <?php echo $idName;?> title="<?php echo $sharemsg; ?>" <?php echo $style;?> >
|
344 |
+
<?php if($isActiveHideShowBtn!='yes') :?>
|
345 |
+
<div class="show"><a href="javascript:" alt="<?php echo $showbtn;?>" id="show"><img src="<?php echo plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$showImg);?>" title="<?php echo $showbtn;?>"></a></div>
|
346 |
+
<? endif; ?>
|
347 |
+
<div id="social-inner">
|
348 |
+
<?php if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):?>
|
349 |
+
<!-- Facebook -->
|
350 |
+
<div class="sbutton">
|
351 |
+
<div id="fb">
|
352 |
+
<a href="https://www.facebook.com/sharer/sharer.php?u=<?php echo $shareurl;?>" onclick="javascript:window.open(this.href, '', 'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600');return false;"
|
353 |
+
target="_blank" alt="Share on Facebook" <?php echo $fImgbg;?>> <img src="<?php echo $fImg;?>"></a></div>
|
354 |
+
</div>
|
355 |
+
<?php endif;?>
|
356 |
+
<?php if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):?>
|
357 |
+
<!-- Twitter -->
|
358 |
+
<div class="sbutton">
|
359 |
+
|
360 |
+
<div id="tw"><a href="javascript:" onclick="window.open('http://twitter.com/share?url=<?php echo $shareurl;?>&text=<?php echo $ShareTitle;?>','_blank','width=800,height=300')" alt="Twitter" <?php echo $tImgbg;?>><img src="<?php echo $tImg;?>"></a></div>
|
361 |
+
</div>
|
362 |
+
<?php endif;?>
|
363 |
+
<?php if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):?>
|
364 |
+
<!-- Google plus -->
|
365 |
+
<div class="sbutton">
|
366 |
+
|
367 |
+
<div id="gp"><a href="https://plus.google.com/share?url=<?php echo $shareurl;?>" onclick="javascript:window.open(this.href,'','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" alt="Google Plus" <?php echo $gImgbg;?> >
|
368 |
+
<img src="<?php echo $gImg;?>"></a></div>
|
369 |
+
</div>
|
370 |
+
<?php endif;?>
|
371 |
+
<?php if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):?>
|
372 |
+
<!-- Linkdin -->
|
373 |
+
<div class="sbutton">
|
374 |
+
|
375 |
+
<div id="li">
|
376 |
+
<a href="https://www.linkedin.com/cws/share?url=<?php echo $shareurl;?>" onclick="javascript:window.open(this.href,'','menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600');return false;" alt="Google Plus" <?php echo $lImgbg;?>>
|
377 |
+
<img src="<?php echo $lImg;?>"></a></div>
|
378 |
+
</div>
|
379 |
+
<?php endif;?>
|
380 |
+
<?php if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):?>
|
381 |
+
<!-- Pinterest -->
|
382 |
+
<div class="sbutton">
|
383 |
+
|
384 |
+
<div id="pin"><a onclick="window.open('http://pinterest.com/pin/create/button/?url=<?php echo $shareurl;?>&media=http://www.mrwebsolution.in/wp-content/uploads/2014/10/latest-logo1.jpg&description=<?php echo $ShareTitle;?> :<?php echo $shareurl;?>','pinIt','toolbar=0,status=0,width=620,height=500');" href="javascript:void(0);" <?php echo $pImgbg;?>><img src="<?php echo $pImg;?>"></a></div>
|
385 |
+
</div>
|
386 |
+
<?php endif;?>
|
387 |
+
|
388 |
+
<?php if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):?>
|
389 |
+
<!-- Youtube -->
|
390 |
+
<div class="sbutton">
|
391 |
+
|
392 |
+
<div id="yt"><a onclick="window.open('<?php echo $pluginOptionsVal['csbwfs_ytPath'];?>');" href="javascript:void(0);" <?php echo $ytImgbg;?>><img src="<?php echo $ytImg;?>"></a></div>
|
393 |
+
</div>
|
394 |
+
<?php endif;?>
|
395 |
+
|
396 |
+
<?php if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):?>
|
397 |
+
<!-- Mail-->
|
398 |
+
<div class="sbutton">
|
399 |
+
<div id="ml"><a href="mailto:<?php echo $mailMsg;?>" alt="Email" <?php echo $mImgbg;?>><img src="<?php echo $mImg;?>"></a></div>
|
400 |
+
</div>
|
401 |
+
<?php endif;?>
|
402 |
+
|
403 |
+
</div>
|
404 |
+
<?php if($isActiveHideShowBtn!='yes') :?>
|
405 |
+
<div class="hide"><a href="javascript:" alt="<?php echo $hidebtn;?>" id="hide"><img src="<?php echo plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$hideImg);?>" title="<?php echo $hidebtn;?>"></a></div>
|
406 |
+
<?php endif;?>
|
407 |
+
</div>
|
408 |
+
</div>
|
409 |
+
<?php
|
410 |
+
}
|
411 |
+
/**
|
412 |
+
* Add social share bottons to the end of every post/page.
|
413 |
+
*
|
414 |
+
* @uses is_home()
|
415 |
+
* @uses is_page()
|
416 |
+
* @uses is_single()
|
417 |
+
*/
|
418 |
+
function csbfs_the_content_filter( $content ) {
|
419 |
+
|
420 |
+
global $post;
|
421 |
+
$pluginOptionsVal=get_csbwf_sidebar_options();
|
422 |
+
|
423 |
+
if(is_category())
|
424 |
+
{
|
425 |
+
$category_id = get_query_var('cat');
|
426 |
+
$shareurl =get_category_link( $category_id );
|
427 |
+
$cats = get_the_category();
|
428 |
+
$ShareTitle=$cats[0]->name;
|
429 |
+
}elseif(is_page() || is_single())
|
430 |
+
{
|
431 |
+
$shareurl=get_permalink($post->ID);
|
432 |
+
$ShareTitle=$post->post_title;
|
433 |
+
}
|
434 |
+
else
|
435 |
+
{
|
436 |
+
$shareurl =home_url('/');
|
437 |
+
$ShareTitle=get_bloginfo('name');
|
438 |
+
}
|
439 |
+
$ShareTitle= htmlspecialchars(urlencode($ShareTitle));
|
440 |
+
|
441 |
+
/* Get All buttons Image */
|
442 |
+
|
443 |
+
//get facebook button image
|
444 |
+
if($pluginOptionsVal['csbwfs_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_fb_image'];}
|
445 |
+
else{$fImg=plugins_url('images/fb-p.png',__FILE__);}
|
446 |
+
//get twitter button image
|
447 |
+
if($pluginOptionsVal['csbwfs_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_tw_image'];}
|
448 |
+
else{$tImg=plugins_url('images/tw-p.png',__FILE__);}
|
449 |
+
//get linkdin button image
|
450 |
+
if($pluginOptionsVal['csbwfs_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_li_image'];}
|
451 |
+
else{$lImg=plugins_url('images/in-p.png',__FILE__);}
|
452 |
+
//get mail button image
|
453 |
+
if($pluginOptionsVal['csbwfs_mail_image']!=''){ $mImg=$pluginOptionsVal['csbwfs_mail_image'];}
|
454 |
+
else{$mImg=plugins_url('images/ml-p.png',__FILE__);}
|
455 |
+
//get google plus button image
|
456 |
+
if($pluginOptionsVal['csbwfs_gp_image']!=''){ $gImg=$pluginOptionsVal['csbwfs_gp_image'];}
|
457 |
+
else{$gImg=plugins_url('images/gp-p.png',__FILE__);}
|
458 |
+
//get pinterest button image
|
459 |
+
if($pluginOptionsVal['csbwfs_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_pin_image'];}
|
460 |
+
else{$pImg=plugins_url('images/pinit-p.png',__FILE__);}
|
461 |
+
|
462 |
+
//get youtube button image
|
463 |
+
if(isset($pluginOptionsVal['csbwfs_yt_image']) && $pluginOptionsVal['csbwfs_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_yt_image'];}
|
464 |
+
else{$ytImg=plugins_url('images/youtube-p.png',__FILE__);}
|
465 |
+
|
466 |
+
//get email message
|
467 |
+
if(is_page() || is_single() || is_category() || is_archive()){
|
468 |
+
|
469 |
+
if($pluginOptionsVal['csbwfs_mailMessage']!=''){ $mailMsg=$pluginOptionsVal['csbwfs_mailMessage'];} else{
|
470 |
+
$mailMsg='?subject='.get_the_title().'&body='.$shareurl;}
|
471 |
+
}else
|
472 |
+
{
|
473 |
+
$mailMsg='?subject='.get_bloginfo('name').'&body='.home_url('/');
|
474 |
+
}
|
475 |
+
if(isset($pluginOptionsVal['csbwfs_btn_position']) && $pluginOptionsVal['csbwfs_btn_position']!=''):
|
476 |
+
$btnPosition=$pluginOptionsVal['csbwfs_btn_position'];
|
477 |
+
else:
|
478 |
+
$btnPosition='left';
|
479 |
+
endif;
|
480 |
+
|
481 |
+
if(isset($pluginOptionsVal['csbwfs_btn_text']) && $pluginOptionsVal['csbwfs_btn_text']!=''):
|
482 |
+
$btnText=$pluginOptionsVal['csbwfs_btn_text'];
|
483 |
+
else:
|
484 |
+
$btnText='Share This!';
|
485 |
+
endif;
|
486 |
+
|
487 |
+
$shareButtonContent='<div id="socialButtonOnPage" class="'.$btnPosition.'SocialButtonOnPage"><div class="sharethis-arrow"><span>'.$btnText.'</span></div>';
|
488 |
+
/* Facebook*/
|
489 |
+
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
490 |
+
$shareButtonContent.='<div class="sbutton-post"><div id="fb-p"><a href="https://www.facebook.com/sharer/sharer.php?u='.$shareurl.'" onclick="javascript:window.open(this.href, \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;"
|
491 |
+
target="_blank" alt="Share on Facebook"> <img src="'.$fImg.'"></a></div></div>';
|
492 |
+
endif;
|
493 |
+
|
494 |
+
/* Twitter */
|
495 |
+
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
496 |
+
$shareButtonContent.='<div class="sbutton-post"><div id="tw-p"><a href="javascript:" onclick="window.open(\'http://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.' \', \'_blank\', \'width=800,height=300\')" alt="Twitter"><img src="'.$tImg.'"></a></div></div>';
|
497 |
+
endif;
|
498 |
+
|
499 |
+
/* Google Plus */
|
500 |
+
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
501 |
+
$shareButtonContent.='<div class="sbutton-post"><div id="gp-p"><a href="https://plus.google.com/share?url='.$shareurl.'" onclick="javascript:window.open(this.href,\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" alt="Google Plus">
|
502 |
+
<img src="'.$gImg.'"></a></div>
|
503 |
+
</div>';
|
504 |
+
endif;
|
505 |
+
|
506 |
+
/* Linkedin */
|
507 |
+
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
508 |
+
$shareButtonContent.='<div class="sbutton-post"><div id="li-p"><a href="https://www.linkedin.com/cws/share?url='.$shareurl.'" onclick="javascript:window.open(this.href,\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" alt="Google Plus"><img src="'.$lImg.'"></a></div></div>';
|
509 |
+
endif;
|
510 |
+
|
511 |
+
/* Pinterest */
|
512 |
+
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
513 |
+
$shareButtonContent.='<div class="sbutton-post"><div id="pin-p"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&media='.plugins_url('images/mrweb-logo.jpg',__FILE__).'&description='.$ShareTitle.':'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=620,height=500\');" href="javascript:void(0);" style="width: 45px;"><img src="'.$pImg.'"></a></div></div>';
|
514 |
+
endif;
|
515 |
+
|
516 |
+
/* Youtube */
|
517 |
+
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
518 |
+
$shareButtonContent.='<div class="sbutton-post"><div id="yt-p"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&media=http://www.mrwebsolution.in/wp-content/themes/mrweb/images/logo.png&description='.$ShareTitle.':'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=620,height=500\');" href="javascript:void(0);" style="width: 45px;"><img src="'.$ytImg.'"></a></div></div>';
|
519 |
+
endif;
|
520 |
+
|
521 |
+
/* Email */
|
522 |
+
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
523 |
+
$shareButtonContent.='<div class="sbutton-post"><div id="ml-p"><a href="mailto:'.$mailMsg.'" alt="Email"><img src="'.$mImg.'"></a></div></div>';
|
524 |
+
endif;
|
525 |
+
$shareButtonContent.='</div>';
|
526 |
+
|
527 |
+
|
528 |
+
//add_filter( 'the_content', array($this, 'add_share_buttons_to_content'));
|
529 |
+
// Returns the content.
|
530 |
+
if(is_home() && $pluginOptionsVal['csbwfs_page_hide_home']!='yes'):
|
531 |
+
$shareButtonContent='';
|
532 |
+
endif;
|
533 |
+
|
534 |
+
if(is_single() && $pluginOptionsVal['csbwfs_page_hide_post']!='yes'):
|
535 |
+
$shareButtonContent='';
|
536 |
+
endif;
|
537 |
+
|
538 |
+
if(is_page() && $pluginOptionsVal['csbwfs_page_hide_page']!='yes'):
|
539 |
+
$shareButtonContent='';
|
540 |
+
endif;
|
541 |
+
|
542 |
+
if(is_archive() && $pluginOptionsVal['csbwfs_page_hide_archive']!='yes'):
|
543 |
+
$shareButtonContent='';
|
544 |
+
endif;
|
545 |
+
|
546 |
+
if($shareButtonContent!=''):
|
547 |
+
return $content.$shareButtonContent;
|
548 |
+
else:
|
549 |
+
return $content;
|
550 |
+
endif;
|
551 |
+
}
|
552 |
+
?>
|
css/admin-csbwfs.css
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
1 |
+
/* Custom share Buttons With Floating Sidebar (C)
|
2 |
+
* Author: Raghunath Gurjar
|
3 |
+
* */
|
4 |
+
#csbwf-tab-menu {width:100%; padding:1%;background: none repeat scroll 0 0 #ccc;}#csbwf-tab-menu a {background: none repeat scroll 0 0 #DCA808; border: 0 none;color: #FFFFFF;display: inline-block;font-size: 16px;font-weight: bold;padding: 12px 20px;opacity:0.5;}#csbwf-tab-menu a:hover{cursor:pointer;background: none repeat scroll 0 0 #DCA808;opacity:1;}#csbwf-tab-menu a.active{ background: none repeat scroll 0 0 #DCA808;opacity:1;}#csbwf-sidebar-admin-form .submit-btn {width: 100%; display: inline-block; padding-top: 10px; margin-top: 10px; border-top: 1px dashed #DCA808;}#csbwf-sidebar-admin-form .submit-btn .button-primary{cursor:pointer;height:35px;}#csbwf-sidebar-admin-form .csbwfs-setting p label {min-width:75px;display:inline-block;}#div-csbwfs-support img {width:auto; height:auto;}#csbwf-sidebar-admin-form ul {list-style:inside}#csbwf-sidebar-admin-form #div-csbwfs-support .contact-author{ background: none repeat scroll 0 0 #DC22FF;border: 0 none;color: #FFFFFF;display: inline-block;font-size: 12px; font-weight: bold;padding: 2px 5px;text-decoration: none;}
|
css/csbwfs.css
CHANGED
@@ -1,24 +1,96 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Custom share Buttons With Floating Sidebar (C)
|
2 |
+
* Author: Raghunath gurjar
|
3 |
+
* */
|
4 |
+
.sbutton img {opacity:0.7;}
|
5 |
+
.sbutton img:hover{opacity:1;}
|
6 |
+
.social-widget {
|
7 |
+
position: fixed;
|
8 |
+
width: 50px;
|
9 |
+
z-index: 99999;
|
10 |
+
}
|
11 |
+
|
12 |
+
.social-widget .sbutton {
|
13 |
+
background: none;
|
14 |
+
float: right;
|
15 |
+
height: 41px;
|
16 |
+
margin: 0;
|
17 |
+
padding: 0;
|
18 |
+
position: relative;
|
19 |
+
width: 50px;
|
20 |
+
}
|
21 |
+
.sbutton img{padding:5px;}
|
22 |
+
|
23 |
+
#tw a{background:none repeat scroll 0 0 #2CA8D2; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1)}
|
24 |
+
|
25 |
+
#fb a{background:none repeat scroll 0 0 #305891; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1);outline:none;}
|
26 |
+
|
27 |
+
#ml a{background:none repeat scroll 0 0 #738A8D; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1);outline:none;}
|
28 |
+
|
29 |
+
#gp a{background:none repeat scroll 0 0 #DD4C39; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
|
30 |
+
|
31 |
+
#li a{background:none repeat scroll 0 0 #007BB6; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
|
32 |
+
|
33 |
+
#pin a{background:none repeat scroll 0 0 #ca2027; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
|
34 |
+
#yt a{background:none repeat scroll 0 0 #ffffff; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
|
35 |
+
#csbwfs-right #fb a {
|
36 |
+
position: absolute;
|
37 |
+
right: 0;
|
38 |
+
|
39 |
+
}
|
40 |
+
#csbwfs-right #tw a {
|
41 |
+
position: absolute;
|
42 |
+
right: 0;
|
43 |
+
|
44 |
+
}
|
45 |
+
#csbwfs-right #gp a {
|
46 |
+
position: absolute;
|
47 |
+
right: 0;
|
48 |
+
|
49 |
+
}
|
50 |
+
|
51 |
+
#csbwfs-right #li a {
|
52 |
+
position: absolute;
|
53 |
+
right: 0;
|
54 |
+
|
55 |
+
}
|
56 |
+
#csbwfs-right #pin a {
|
57 |
+
position: absolute;
|
58 |
+
right: 0;
|
59 |
+
|
60 |
+
}
|
61 |
+
#csbwfs-right #ml a {
|
62 |
+
position: absolute;
|
63 |
+
right: 0;
|
64 |
+
|
65 |
+
}
|
66 |
+
#csbwfs-right #yt a {
|
67 |
+
position: absolute;
|
68 |
+
right: 0;
|
69 |
+
|
70 |
+
}
|
71 |
+
#csbwfs-right a#hide {padding-right:33px;}
|
72 |
+
#csbwfs-right a#show {float:right;}
|
73 |
+
|
74 |
+
/* Share buttons CSS */
|
75 |
+
/* Custom Share Buttons Style*/
|
76 |
+
#socialButtonOnPage {width:100%;display:inline-block;float:left; }
|
77 |
+
#socialButtonOnPage .sbutton-post img {width:31px; height:30px;opacity:0.7; border-radius:3px 3px 3px 3px;box-shadow:0 1px 4px rgba(0, 0, 0, 0.2);}
|
78 |
+
#socialButtonOnPage .sbutton-post img:hover{opacity:1;}
|
79 |
+
#socialButtonOnPage .sharethis-arrow span:hover{cursor:pointer;}
|
80 |
+
|
81 |
+
#socialButtonOnPage .sharethis-arrow span{ color: #FFFFFF;
|
82 |
+
display: inline-block;
|
83 |
+
font-size: 16px;
|
84 |
+
font-style: italic;
|
85 |
+
font-weight: bold;}
|
86 |
+
|
87 |
+
/* Left Position */
|
88 |
+
.leftSocialButtonOnPage .sbutton-post {float:left; padding:5px 1px;}
|
89 |
+
.leftSocialButtonOnPage .sharethis-arrow{float:left;padding:5px 10px 5px 1px;background:url("../images/sharethis-l.png") no-repeat scroll 0 0 #ffffff;height: 29px;padding: 0 10px 0 0;margin-top:5px;width: 120px; }
|
90 |
+
.leftSocialButtonOnPage .sharethis-arrow span{ padding-left: 12px;}
|
91 |
+
|
92 |
+
/* Right Position */
|
93 |
+
.rightSocialButtonOnPage .sbutton-post {float:right; padding:5px 1px;}
|
94 |
+
.rightSocialButtonOnPage .sharethis-arrow{float:right;padding:5px 1px 5px 10px;background:url("../images/sharethis-r.png") no-repeat scroll 0 0 #ffffff;height: 29px;padding: 0 0 0 10px;margin-top:5px;width: 120px; margin-left:5px;}
|
95 |
+
.rightSocialButtonOnPage .sharethis-arrow span{padding-left: 12px;}
|
96 |
+
|
custom-share-buttons-with-floating-sidebar.php
CHANGED
@@ -1,207 +1,425 @@
|
|
1 |
-
<?php
|
2 |
-
/*
|
3 |
-
Plugin Name: Custom Share Buttons with Floating Sidebar
|
4 |
-
Plugin URI: http://www.mrwebsolution.in/
|
5 |
-
Description: "custom-share-buttons-with-floating-sidebar" is the very simple plugin for add to social share buttons with float sidebar. Even you can change the share buttons images if you wish
|
6 |
-
Author: Raghunath
|
7 |
-
Author URI: http://raghunathgurjar.wordpress.com
|
8 |
-
Version: 1.
|
9 |
-
*/
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
126 |
-
|
127 |
-
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
-
|
140 |
-
|
141 |
-
|
142 |
-
|
143 |
-
|
144 |
-
|
145 |
-
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
-
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
-
|
164 |
-
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
<?php
|
169 |
-
}
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
|
192 |
-
|
193 |
-
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
|
198 |
-
|
199 |
-
|
200 |
-
|
201 |
-
|
202 |
-
|
203 |
-
|
204 |
-
|
205 |
-
|
206 |
-
|
207 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/*
|
3 |
+
Plugin Name: Custom Share Buttons with Floating Sidebar
|
4 |
+
Plugin URI: http://www.mrwebsolution.in/
|
5 |
+
Description: "custom-share-buttons-with-floating-sidebar" is the very simple plugin for add to social share buttons with float sidebar. Even you can change the share buttons images if you wish
|
6 |
+
Author: Raghunath
|
7 |
+
Author URI: http://raghunathgurjar.wordpress.com
|
8 |
+
Version: 1.5
|
9 |
+
*/
|
10 |
+
|
11 |
+
/* Copyright YEAR PLUGIN_AUTHOR_NAME (email : raghunath.0087@gmail.com)
|
12 |
+
|
13 |
+
This program is free software; you can redistribute it and/or modify
|
14 |
+
it under the terms of the GNU General Public License, version 2, as
|
15 |
+
published by the Free Software Foundation.
|
16 |
+
|
17 |
+
This program is distributed in the hope that it will be useful,
|
18 |
+
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
19 |
+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
20 |
+
GNU General Public License for more details.
|
21 |
+
|
22 |
+
You should have received a copy of the GNU General Public License
|
23 |
+
along with this program; if not, write to the Free Software
|
24 |
+
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
+
*/
|
26 |
+
|
27 |
+
//Admin "Custom Share Buttons with Floating Sidebar" Menu Item
|
28 |
+
add_action('admin_menu','csbwf_sidebar_menu');
|
29 |
+
|
30 |
+
function csbwf_sidebar_menu(){
|
31 |
+
|
32 |
+
add_options_page('Custom Share Buttons With Floating Sidebar','Custom Share Buttons With Floating Sidebar','manage_options','csbwfs-settings','csbwf_sidebar_admin_option_page');
|
33 |
+
|
34 |
+
}
|
35 |
+
|
36 |
+
//Define Action for register "Custom Share Buttons with Floating Sidebar" Options
|
37 |
+
add_action('admin_init','csbwf_sidebar_init');
|
38 |
+
|
39 |
+
|
40 |
+
//Register "Custom Share Buttons with Floating Sidebar" options
|
41 |
+
function csbwf_sidebar_init(){
|
42 |
+
|
43 |
+
register_setting('csbwf_sidebar_options','csbwfs_active');
|
44 |
+
register_setting('csbwf_sidebar_options','csbwfs_position');
|
45 |
+
register_setting('csbwf_sidebar_options','csbwfs_btn_position');
|
46 |
+
register_setting('csbwf_sidebar_options','csbwfs_btn_text');
|
47 |
+
register_setting('csbwf_sidebar_options','csbwfs_fb_image');
|
48 |
+
register_setting('csbwf_sidebar_options','csbwfs_tw_image');
|
49 |
+
register_setting('csbwf_sidebar_options','csbwfs_li_image');
|
50 |
+
register_setting('csbwf_sidebar_options','csbwfs_mail_image');
|
51 |
+
register_setting('csbwf_sidebar_options','csbwfs_gp_image');
|
52 |
+
register_setting('csbwf_sidebar_options','csbwfs_pin_image');
|
53 |
+
register_setting('csbwf_sidebar_options','csbwfs_yt_image');
|
54 |
+
register_setting('csbwf_sidebar_options','csbwfs_fb_bg');
|
55 |
+
register_setting('csbwf_sidebar_options','csbwfs_tw_bg');
|
56 |
+
register_setting('csbwf_sidebar_options','csbwfs_li_bg');
|
57 |
+
register_setting('csbwf_sidebar_options','csbwfs_mail_bg');
|
58 |
+
register_setting('csbwf_sidebar_options','csbwfs_gp_bg');
|
59 |
+
register_setting('csbwf_sidebar_options','csbwfs_pin_bg');
|
60 |
+
register_setting('csbwf_sidebar_options','csbwfs_yt_bg');
|
61 |
+
register_setting('csbwf_sidebar_options','csbwfs_fpublishBtn');
|
62 |
+
register_setting('csbwf_sidebar_options','csbwfs_tpublishBtn');
|
63 |
+
register_setting('csbwf_sidebar_options','csbwfs_gpublishBtn');
|
64 |
+
register_setting('csbwf_sidebar_options','csbwfs_ppublishBtn');
|
65 |
+
register_setting('csbwf_sidebar_options','csbwfs_ytpublishBtn');
|
66 |
+
register_setting('csbwf_sidebar_options','csbwfs_ytPath');
|
67 |
+
register_setting('csbwf_sidebar_options','csbwfs_lpublishBtn');
|
68 |
+
register_setting('csbwf_sidebar_options','csbwfs_mpublishBtn');
|
69 |
+
register_setting('csbwf_sidebar_options','csbwfs_mailMessage');
|
70 |
+
register_setting('csbwf_sidebar_options','csbwfs_top_margin');
|
71 |
+
register_setting('csbwf_sidebar_options','csbwfs_delayTimeBtn');
|
72 |
+
|
73 |
+
//Options for post/pages
|
74 |
+
register_setting('csbwf_sidebar_options','csbwfs_buttons_active');
|
75 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_hide_home');
|
76 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_hide_post');
|
77 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_hide_page');
|
78 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_hide_archive');
|
79 |
+
|
80 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_fb_image');
|
81 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_tw_image');
|
82 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_li_image');
|
83 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_mail_image');
|
84 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_gp_image');
|
85 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_pin_image');
|
86 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_yt_image');
|
87 |
+
/** message content */
|
88 |
+
|
89 |
+
register_setting('csbwf_sidebar_options','csbwfs_show_btn');
|
90 |
+
register_setting('csbwf_sidebar_options','csbwfs_hide_btn');
|
91 |
+
register_setting('csbwf_sidebar_options','csbwfs_share_msg');
|
92 |
+
register_setting('csbwf_sidebar_options','csbwfs_rmSHBtn');
|
93 |
+
|
94 |
+
}
|
95 |
+
|
96 |
+
|
97 |
+
// Add settings link to plugin list page in admin
|
98 |
+
function csbwfs_add_settings_link( $links ) {
|
99 |
+
$settings_link = '<a href="options-general.php?page=csbwfs-settings">' . __( 'Settings', 'csbwfs' ) . '</a>';
|
100 |
+
array_unshift( $links, $settings_link );
|
101 |
+
return $links;
|
102 |
+
}
|
103 |
+
|
104 |
+
$plugin = plugin_basename( __FILE__ );
|
105 |
+
add_filter( "plugin_action_links_$plugin", 'csbwfs_add_settings_link' );
|
106 |
+
|
107 |
+
add_action('admin_footer','add_csbwfs_admin_style_script');
|
108 |
+
|
109 |
+
|
110 |
+
function add_csbwfs_admin_style_script()
|
111 |
+
{
|
112 |
+
wp_register_style( 'csbwf_admin_style', plugins_url( 'css/admin-csbwfs.css',__FILE__ ) );
|
113 |
+
wp_enqueue_style( 'csbwf_admin_style' );
|
114 |
+
|
115 |
+
echo $script='<script type="text/javascript">
|
116 |
+
/* Custom Share Buttons With Floting Sidebar admin js*/
|
117 |
+
jQuery(document).ready(function(){
|
118 |
+
jQuery(".csbwfs-tab").hide();
|
119 |
+
jQuery("#div-csbwfs-general").show();
|
120 |
+
jQuery(".csbwf-tab-links").click(function(){
|
121 |
+
var divid=jQuery(this).attr("id");
|
122 |
+
jQuery(".csbwf-tab-links").removeClass("active");
|
123 |
+
jQuery(".csbwfs-tab").hide();
|
124 |
+
jQuery("#"+divid).addClass("active");
|
125 |
+
jQuery("#div-"+divid).fadeIn();
|
126 |
+
});
|
127 |
+
jQuery("#publish5").click(function(){
|
128 |
+
if(jQuery("#publish5").prop("checked"))
|
129 |
+
{jQuery("#mailmsg").show();}else{jQuery("#mailmsg").hide();}
|
130 |
+
});
|
131 |
+
|
132 |
+
jQuery("#ytBtns").click(function(){
|
133 |
+
if(jQuery("#ytBtns").prop("checked"))
|
134 |
+
{jQuery("#ytpath").show();}else{jQuery("#ytpath").hide();}
|
135 |
+
});
|
136 |
+
})
|
137 |
+
</script>';
|
138 |
+
|
139 |
+
}
|
140 |
+
|
141 |
+
/** Display the Options form for CSBWFS */
|
142 |
+
|
143 |
+
function csbwf_sidebar_admin_option_page(){ ?>
|
144 |
+
|
145 |
+
<div style="width: 80%; padding: 10px; margin: 10px;">
|
146 |
+
|
147 |
+
<h1>Custom Share Buttons With Floating Sidebar Settings</h1>
|
148 |
+
<!-- Start Options Form -->
|
149 |
+
|
150 |
+
<form action="options.php" method="post" id="csbwf-sidebar-admin-form">
|
151 |
+
|
152 |
+
<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-support" class="csbwf-tab-links">Support</a> </div>
|
153 |
+
|
154 |
+
<div class="csbwfs-setting">
|
155 |
+
<!-- General Setting -->
|
156 |
+
<div class="first csbwfs-tab" id="div-csbwfs-general">
|
157 |
+
<h2>General Settings</h2>
|
158 |
+
<p><label>Enable:</label><input type="checkbox" id="csbwfs_active" name="csbwfs_active" value='1' <?php if(get_option('csbwfs_active')!=''){ echo ' checked="checked"'; }?>/></p>
|
159 |
+
<p><h3><strong><?php _e('Social Share Button Publish Options:','csbwfs');?></strong></h3></p>
|
160 |
+
<p><input type="checkbox" id="publish1" value="yes" name="csbwfs_fpublishBtn" <?php if(get_option('csbwfs_fpublishBtn')=='yes'){echo 'checked="checked"';}?>/>Facebook Button</p>
|
161 |
+
<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>
|
162 |
+
<p><input type="checkbox" id="publish3" name="csbwfs_gpublishBtn" value="yes" <?php if(get_option('csbwfs_gpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Google Button</b></p>
|
163 |
+
<p><input type="checkbox" id="publish4" name="csbwfs_lpublishBtn" value="yes" <?php if(get_option('csbwfs_lpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Linkdin Button</b></p>
|
164 |
+
<p><input type="checkbox" id="publish6" name="csbwfs_ppublishBtn" value="yes" <?php if(get_option('csbwfs_ppublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Pinterest Button</b></p>
|
165 |
+
<p><input type="checkbox" id="publish5" name="csbwfs_mpublishBtn" value="yes" <?php if(get_option('csbwfs_mpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Mailbox Button</b></p>
|
166 |
+
<?php if(get_option('csbwfs_mpublishBtn')=='yes'){?>
|
167 |
+
<p id="mailmsg"><input type="text" name="csbwfs_mailMessage" id="csbwfs_mailMessage" value="<?php echo get_option('csbwfs_mailMessage');?>" placeholder="raghunath.0087@gmail.com" size="40" class="regular-text ltr"><br>Note:add the mail message like this format <b>your@email.com?subject=Your Subject</b></p>
|
168 |
+
<?php } ?>
|
169 |
+
<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>
|
170 |
+
<?php if(get_option('csbwfs_ytpublishBtn')=='yes'){?>
|
171 |
+
<p id="ytpath"><input type="text" name="csbwfs_ytPath" id="csbwfs_ytPath" value="<?php echo get_option('csbwfs_ytPath');?>" placeholder="http://www.youtube.com" size="40" class="regular-text ltr"><br>add youtube channel url</p>
|
172 |
+
<?php } ?>
|
173 |
+
|
174 |
+
<p><label><h3 ><strong><?php _e('Define your custom message:','csbwfs');?></strong></h3></label></p>
|
175 |
+
<p><label><?php _e('Show:');?></label><input type="text" id="csbwfs_show_btn" name="csbwfs_show_btn" value="<?php echo get_option('csbwfs_show_btn'); ?>" placeholder="Show Buttons" size="40"/></p>
|
176 |
+
<p><label><?php _e('Hide:');?></label><input type="text" id="csbwfs_hide_btn" name="csbwfs_hide_btn" value="<?php echo get_option('csbwfs_hide_btn'); ?>" placeholder="Hide Buttons" size="40"/></p>
|
177 |
+
<p><label><?php _e('Message:');?></label><input type="textbox" id="csbwfs_share_msg" name="csbwfs_share_msg" value="<?php echo get_option('csbwfs_share_msg'); ?>" placeholder="Share This With Your Friends" size="40"/></p>
|
178 |
+
</div>
|
179 |
+
<!-- Floating Sidebar -->
|
180 |
+
<div class="csbwfs-tab" id="div-csbwfs-sidebar">
|
181 |
+
<h2>Floating Sidebar Settings</h2>
|
182 |
+
<table>
|
183 |
+
<tr>
|
184 |
+
<th nowrap><?php echo 'Siderbar Position:';?></th>
|
185 |
+
<td>
|
186 |
+
<select id="csbwfs_position" name="csbwfs_position" >
|
187 |
+
<option value="left" <?php if(get_option('csbwfs_position')=='left'){echo 'selected="selected"';}?>>Left</option>
|
188 |
+
<option value="right" <?php if(get_option('csbwfs_position')=='right'){echo 'selected="selected"';}?>>Right</option>
|
189 |
+
</select>
|
190 |
+
</td>
|
191 |
+
</tr>
|
192 |
+
<tr><th nowrap valign="top"><?php echo 'Delay Time: '; ?></th><td><input type="text" name="csbwfs_delayTimeBtn" id="csbwfs_delayTimeBtn" value="<?php echo get_option('csbwfs_delayTimeBtn')?get_option('csbwfs_delayTimeBtn'):0;?>" size="40" class="regular-text ltr"><br><i>Publish share buttons after given time(millisecond)</i></td></tr>
|
193 |
+
<tr><td colspan="2"><strong><h4>Social Share Button Images 36X3 (Optional) :</h4></strong></td></tr>
|
194 |
+
<tr>
|
195 |
+
<th><?php echo 'Facebook:';?></th>
|
196 |
+
<td>
|
197 |
+
|
198 |
+
<input type="textbox" id="csbwfs_fb_image" name="csbwfs_fb_image" value="<?php echo get_option('csbwfs_fb_image'); ?>" placeholder="Insert facebook button image path" size="30"/> <input type="textbox" id="csbwfs_fb_bg" name="csbwfs_fb_bg" value="<?php echo get_option('csbwfs_fb_bg'); ?>" placeholder="BG color:#000000" size="20"/>
|
199 |
+
</td>
|
200 |
+
</tr>
|
201 |
+
<tr>
|
202 |
+
<th><?php echo 'Twitter:';?></th>
|
203 |
+
<td>
|
204 |
+
|
205 |
+
<input type="textbox" id="csbwfs_tw_image" name="csbwfs_tw_image" value="<?php echo get_option('csbwfs_tw_image'); ?>" placeholder="Insert twitter button image path" size="30"/><input type="textbox" id="csbwfs_tw_bg" name="csbwfs_tw_bg" value="<?php echo get_option('csbwfs_tw_bg'); ?>" placeholder="BG color:#000000" size="20"/>
|
206 |
+
</td>
|
207 |
+
</tr>
|
208 |
+
<tr>
|
209 |
+
<th><?php echo 'Linkdin:';?></th>
|
210 |
+
<td>
|
211 |
+
|
212 |
+
<input type="textbox" id="csbwfs_li_image" name="csbwfs_li_image" value="<?php echo get_option('csbwfs_li_image'); ?>" placeholder="Insert linkdin button image path" size="30"/><input type="textbox" id="csbwfs_li_bg" name="csbwfs_li_bg" value="<?php echo get_option('csbwfs_li_bg'); ?>" placeholder="BG color:#000000" size="20"/>
|
213 |
+
</td>
|
214 |
+
</tr>
|
215 |
+
<tr>
|
216 |
+
<th><?php echo 'Pintrest:';?></th>
|
217 |
+
<td>
|
218 |
+
|
219 |
+
<input type="textbox" id="csbwfs_pin_image" name="csbwfs_pin_image" value="<?php echo get_option('csbwfs_pin_image'); ?>" placeholder="Insert pinterest button image path" size="30"/><input type="textbox" id="csbwfs_pin_bg" name="csbwfs_pin_bg" value="<?php echo get_option('csbwfs_pin_bg'); ?>" placeholder="BG color:#000000" size="20"/>
|
220 |
+
</td>
|
221 |
+
</tr>
|
222 |
+
<tr>
|
223 |
+
<th><?php echo 'Google:';?></th>
|
224 |
+
<td>
|
225 |
+
|
226 |
+
<input type="textbox" id="csbwfs_gp_image" name="csbwfs_gp_image" value="<?php echo get_option('csbwfs_gp_image'); ?>" placeholder="Insert google button image path" size="30"/><input type="textbox" id="csbwfs_gp_image" name="csbwfs_gp_bg" value="<?php echo get_option('csbwfs_gp_bg'); ?>" placeholder="BG color:#000000" size="20"/>
|
227 |
+
</td>
|
228 |
+
</tr>
|
229 |
+
<tr>
|
230 |
+
<th><?php echo 'Mail:';?></th>
|
231 |
+
<td>
|
232 |
+
<input type="textbox" id="csbwfs_mail_image" name="csbwfs_mail_image" value="<?php echo get_option('csbwfs_mail_image'); ?>" placeholder="Insert mail button image path" size="30"/> <input type="textbox" id="csbwfs_mail_bg" name="csbwfs_mail_bg" value="<?php echo get_option('csbwfs_mail_bg'); ?>" placeholder="BG color:#000000" size="20"/>
|
233 |
+
</td>
|
234 |
+
</tr>
|
235 |
+
<tr>
|
236 |
+
<th><?php echo 'Youtube:';?></th>
|
237 |
+
<td>
|
238 |
+
<input type="textbox" id="csbwfs_yt_image" name="csbwfs_yt_image" value="<?php echo get_option('csbwfs_mail_image'); ?>" placeholder="Insert youtube button image path" size="30"/> <input type="textbox" id="csbwfs_yt_bg" name="csbwfs_yt_bg" value="<?php echo get_option('csbwfs_yt_bg'); ?>" placeholder="BG color:#FFFFFF" size="20"/>
|
239 |
+
</td>
|
240 |
+
</tr>
|
241 |
+
<tr><td colspan="2"><h4><strong>Style(Optional):</strong></h4></td></tr>
|
242 |
+
|
243 |
+
<tr>
|
244 |
+
<th><?php echo 'Top Margin:';?></th>
|
245 |
+
<td>
|
246 |
+
|
247 |
+
<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"/>
|
248 |
+
</td>
|
249 |
+
</tr>
|
250 |
+
<tr>
|
251 |
+
<th><strong><?php _e('Remove Show/Hide Button:','csbwfs');?></strong></th>
|
252 |
+
<td><input type="checkbox" id="csbwfs_rmSHBtn" name="csbwfs_rmSHBtn" value="yes" <?php if(get_option('csbwfs_rmSHBtn')=='yes'){echo 'checked="checked"';}?>/></td>
|
253 |
+
</tr>
|
254 |
+
</table>
|
255 |
+
</div>
|
256 |
+
<!-- Share Buttons -->
|
257 |
+
<div class="csbwfs-tab" id="div-csbwfs-share-buttons">
|
258 |
+
<h2>Social Share Buttons Settings</h2>
|
259 |
+
<table>
|
260 |
+
<td><?php _e('Enable:','csbwfs');?></td>
|
261 |
+
<td colspan="2">
|
262 |
+
<input type="checkbox" id="csbwfs_buttons_active" name="csbwfs_buttons_active" value='1' <?php if(get_option('csbwfs_buttons_active')!=''){ echo ' checked="checked"'; }?>/>
|
263 |
+
</td>
|
264 |
+
</tr>
|
265 |
+
<tr>
|
266 |
+
<th nowrap><?php echo 'Share Button Position:';?></th>
|
267 |
+
<td>
|
268 |
+
<select id="csbwfs_btn_position" name="csbwfs_btn_position" >
|
269 |
+
<option value="left" <?php if(get_option('csbwfs_btn_position')=='left'){echo 'selected="selected"';}?>>Left</option>
|
270 |
+
<option value="right" <?php if(get_option('csbwfs_btn_position')=='right'){echo 'selected="selected"';}?>>Right</option>
|
271 |
+
</select>
|
272 |
+
</td>
|
273 |
+
</tr>
|
274 |
+
|
275 |
+
<tr>
|
276 |
+
<th nowrap><?php echo 'Share Button Text:';?></th>
|
277 |
+
<td>
|
278 |
+
<input type="textbox" id="csbwfs_btn_text" name="csbwfs_btn_text" value="<?php echo get_option('csbwfs_btn_text'); ?>" placeholder="Share This!" size="20"/>
|
279 |
+
</td>
|
280 |
+
</tr>
|
281 |
+
<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"';}?>/> 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>
|
282 |
+
</td></tr>
|
283 |
+
|
284 |
+
<tr><td colspan="2"><strong><h4>Social Share Button Images 31X30 (Optional) :</h4></strong></td></tr>
|
285 |
+
<tr>
|
286 |
+
<th><?php echo 'Facebook:';?></th>
|
287 |
+
<td>
|
288 |
+
|
289 |
+
<input type="textbox" id="csbwfs_page_fb_image" name="csbwfs_page_fb_image" value="<?php echo get_option('csbwfs_page_fb_image'); ?>" placeholder="Insert facebook button image path" size="40"/>
|
290 |
+
</td>
|
291 |
+
</tr>
|
292 |
+
<tr>
|
293 |
+
<th><?php echo 'Twitter:';?></th>
|
294 |
+
<td>
|
295 |
+
|
296 |
+
<input type="textbox" id="csbwfs_page_tw_image" name="csbwfs_page_tw_image" value="<?php echo get_option('csbwfs_page_tw_image'); ?>" placeholder="Insert twitter button image path" size="40"/>
|
297 |
+
</td>
|
298 |
+
</tr>
|
299 |
+
<tr>
|
300 |
+
<th><?php echo 'Linkdin:';?></th>
|
301 |
+
<td>
|
302 |
+
|
303 |
+
<input type="textbox" id="csbwfs_page_li_image" name="csbwfs_page_li_image" value="<?php echo get_option('csbwfs_page_li_image'); ?>" placeholder="Insert linkdin button image path" size="40"/>
|
304 |
+
</td>
|
305 |
+
</tr>
|
306 |
+
<tr>
|
307 |
+
<th><?php echo 'Pintrest:';?></th>
|
308 |
+
<td>
|
309 |
+
|
310 |
+
<input type="textbox" id="csbwfs_page_pin_image" name="csbwfs_page_pin_image" value="<?php echo get_option('csbwfs_page_pin_image'); ?>" placeholder="Insert pinterest button image path" size="40"/>
|
311 |
+
</td>
|
312 |
+
</tr>
|
313 |
+
<tr>
|
314 |
+
<th><?php echo 'Google:';?></th>
|
315 |
+
<td>
|
316 |
+
|
317 |
+
<input type="textbox" id="csbwfs_page_gp_image" name="csbwfs_page_gp_image" value="<?php echo get_option('csbwfs_page_gp_image'); ?>" placeholder="Insert google button image path" size="40"/>
|
318 |
+
</td>
|
319 |
+
</tr>
|
320 |
+
<tr>
|
321 |
+
<th><?php echo 'Mail:';?></th>
|
322 |
+
<td>
|
323 |
+
<input type="textbox" id="csbwfs_page_mail_image" name="csbwfs_page_mail_image" value="<?php echo get_option('csbwfs_page_mail_image'); ?>" placeholder="Insert mail button image path" size="40"/>
|
324 |
+
</td>
|
325 |
+
</tr>
|
326 |
+
<tr>
|
327 |
+
<th><?php echo 'Youtube:';?></th>
|
328 |
+
<td>
|
329 |
+
<input type="textbox" id="csbwfs_page_yt_image" name="csbwfs_page_yt_image" value="<?php echo get_option('csbwfs_page_yt_image'); ?>" placeholder="Insert youtube button image path" size="40"/>
|
330 |
+
</td>
|
331 |
+
</tr>
|
332 |
+
|
333 |
+
</table>
|
334 |
+
|
335 |
+
</div>
|
336 |
+
<!-- Support -->
|
337 |
+
<div class="last author csbwfs-tab" id="div-csbwfs-support">
|
338 |
+
|
339 |
+
<h2>Plugin Support</h2>
|
340 |
+
|
341 |
+
<p><a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WN785E5V492L4" target="_blank" style="font-size: 17px; font-weight: bold;"><img src="https://www.paypal.com/en_US/i/btn/btn_donate_LG.gif" title="Donate for this plugin"></a></p>
|
342 |
+
|
343 |
+
<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>
|
344 |
+
<p><a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact Author</a></p>
|
345 |
+
<p><strong>My Other Plugins:</strong><br>
|
346 |
+
<ul>
|
347 |
+
<li><a href="https://wordpress.org/plugins/protect-wp-admin/" target="_blank">Protect WP-Admin</a></li>
|
348 |
+
<li><a href="https://wordpress.org/plugins/simple-testimonial-rutator/" target="_blank">Simple Testimonial Rutator</a></li>
|
349 |
+
<li><a href="https://wordpress.org/plugins/wp-easy-recipe/" target="_blank">WP Easy Recipe</a></li>
|
350 |
+
<li><a href="https://wordpress.org/plugins/wp-social-buttons/" target="_blank">WP Social Buttons</a></li>
|
351 |
+
<li><a href="https://wordpress.org/plugins/wp-youtube-gallery/" target="_blank">WP Youtube Gallery</a></li>
|
352 |
+
</ul></p>
|
353 |
+
</div>
|
354 |
+
|
355 |
+
</div>
|
356 |
+
<span class="submit-btn"><?php echo get_submit_button('Save Settings','button-primary','submit','','');?></span>
|
357 |
+
|
358 |
+
<?php settings_fields('csbwf_sidebar_options'); ?>
|
359 |
+
|
360 |
+
</form>
|
361 |
+
|
362 |
+
<!-- End Options Form -->
|
363 |
+
</div>
|
364 |
+
|
365 |
+
<?php
|
366 |
+
}
|
367 |
+
|
368 |
+
require dirname(__FILE__).'/csbwfs-class.php';
|
369 |
+
|
370 |
+
/*
|
371 |
+
|
372 |
+
*Delete the options during disable the plugins
|
373 |
+
|
374 |
+
*/
|
375 |
+
|
376 |
+
if( function_exists('register_uninstall_hook') )
|
377 |
+
|
378 |
+
register_uninstall_hook(__FILE__,'csbwf_sidebar_uninstall');
|
379 |
+
|
380 |
+
//Delete all Custom Tweets options after delete the plugin from admin
|
381 |
+
function csbwf_sidebar_uninstall(){
|
382 |
+
|
383 |
+
delete_option('csbwfs_active');
|
384 |
+
delete_option('csbbuttons_active');
|
385 |
+
delete_option('csbwfs_position');
|
386 |
+
delete_option('csbwfs_btn_position');
|
387 |
+
delete_option('csbwfs_btn_text');
|
388 |
+
delete_option('csbwfs_fb_image');
|
389 |
+
delete_option('csbwfs_tw_image');
|
390 |
+
delete_option('csbwfs_li_image');
|
391 |
+
delete_option('csbwfs_mail_image');
|
392 |
+
delete_option('csbwfs_gp_image');
|
393 |
+
delete_option('csbwfs_pin_image');
|
394 |
+
delete_option('csbwfs_yt_image');
|
395 |
+
delete_option('csbwfs_ytPath');
|
396 |
+
delete_option('csbwfs_fb_bg');
|
397 |
+
delete_option('csbwfs_tw_bg');
|
398 |
+
delete_option('csbwfs_li_bg');
|
399 |
+
delete_option('csbwfs_mail_bg');
|
400 |
+
delete_option('csbwfs_gp_bg');
|
401 |
+
delete_option('csbwfs_pin_bg');
|
402 |
+
delete_option('csbwfs_yt_bg');
|
403 |
+
delete_option('csbwfs_fpublishBtn');
|
404 |
+
delete_option('csbwfs_tpublishBtn');
|
405 |
+
delete_option('csbwfs_gpublishBtn');
|
406 |
+
delete_option('csbwfs_ppublishBtn');
|
407 |
+
delete_option('csbwfs_lpublishBtn');
|
408 |
+
delete_option('csbwfs_mpublishBtn');
|
409 |
+
delete_option('csbwfs_ytpublishBtn');
|
410 |
+
delete_option('csbwfs_mailMessage');
|
411 |
+
delete_option('csbwfs_top_margin');
|
412 |
+
delete_option('csbwfs_page_hide_home');
|
413 |
+
delete_option('csbwfs_page_hide_post');
|
414 |
+
delete_option('csbwfs_page_hide_page');
|
415 |
+
delete_option('csbwfs_page_fb_image');
|
416 |
+
delete_option('csbwfs_page_tw_image');
|
417 |
+
delete_option('csbwfs_page_li_image');
|
418 |
+
delete_option('csbwfs_page_mail_image');
|
419 |
+
delete_option('csbwfs_page_gp_image');
|
420 |
+
delete_option('csbwfs_page_pin_image');
|
421 |
+
delete_option('csbwfs_page_yt_image');
|
422 |
+
delete_option('csbwfs_rmSHBtn');
|
423 |
+
|
424 |
+
}
|
425 |
+
?>
|
images/fb-p.png
ADDED
Binary file
|
images/fb.png
CHANGED
File without changes
|
images/gp-p.png
ADDED
Binary file
|
images/gp.png
CHANGED
File without changes
|
images/in-p.png
ADDED
Binary file
|
images/in.png
CHANGED
File without changes
|
images/ml-p.png
ADDED
Binary file
|
images/ml.png
CHANGED
File without changes
|
images/mrweb-logo.jpg
ADDED
Binary file
|
images/pinit-p.png
ADDED
Binary file
|
images/pinit.png
CHANGED
File without changes
|
images/raghu.jpg
CHANGED
Binary file
|
images/sharethis-l.png
ADDED
Binary file
|
images/sharethis-r.png
ADDED
Binary file
|
images/sharethis.png
ADDED
Binary file
|
images/sharethis_old.png
ADDED
Binary file
|
images/tw-p.png
ADDED
Binary file
|
images/tw.png
CHANGED
File without changes
|
images/youtube-p.png
ADDED
Binary file
|
images/youtube.png
ADDED
Binary file
|
readme.txt
CHANGED
@@ -3,24 +3,39 @@ Contributors:india-web-developer
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WN785E5V492L4
|
4 |
Tags: social share buttons,custom share buttons,facebook, twitter, google+, share, share links,linkedin, pinterest,floating sidebar,float,floating share buttons,float share buttons
|
5 |
Requires at least: 2.7
|
6 |
-
Tested up to:
|
7 |
-
Stable tag: 1.
|
8 |
|
9 |
-
Add Social Share Buttons Using Floating Sidebar On Your Site (Facebook,Twitter,Linkedin,Google+,Pinterest,Mail)
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
"custom-share-buttons-with-floating-sidebar" is the very simple plugin for add to floating social share buttons on your site.
|
|
|
|
|
|
|
|
|
14 |
|
15 |
-
It's very simple plugin for share your site with your firends on Facebook,Twitter,Linkedin,Pinterest,Google+.
|
16 |
There are not added any external JS files in this plugin so it's does not effect on your site speed as well.
|
17 |
|
18 |
-
Live [demo](http://www.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
19 |
|
20 |
|
21 |
== Installation ==
|
22 |
|
23 |
-
Step 1.
|
24 |
|
25 |
Step 2. Activate the plugin through the Plugins menu in WordPress
|
26 |
|
@@ -29,15 +44,27 @@ Step 3. Go to Settings/"Custom Share Buttons with Floating Sidebar" and configur
|
|
29 |
== Frequently Asked Questions ==
|
30 |
1.How add floating share buttons on my website?
|
31 |
|
32 |
-
After active the plugin you have must need to enable this plugin
|
33 |
|
34 |
2.Can i change the custom share buttons images from admin?
|
35 |
|
36 |
-
Yes,
|
37 |
|
38 |
3.Is there any demo site where your plugins have been used?
|
39 |
|
40 |
-
Yes, Please visit on this [site](http://www.mrwebsolution.in/) for check live demo
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
41 |
|
42 |
|
43 |
== Screenshots ==
|
@@ -47,9 +74,39 @@ Yes, Please visit on this [site](http://www.mrwebsolution.in/) for check live de
|
|
47 |
2. screenshot-2.png
|
48 |
|
49 |
3. screenshot-3.png
|
50 |
-
|
51 |
-
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
53 |
|
54 |
= 1.0 =
|
55 |
-
* First stable release
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=WN785E5V492L4
|
4 |
Tags: social share buttons,custom share buttons,facebook, twitter, google+, share, share links,linkedin, pinterest,floating sidebar,float,floating share buttons,float share buttons
|
5 |
Requires at least: 2.7
|
6 |
+
Tested up to: 4.0.1
|
7 |
+
Stable tag: 1.5
|
8 |
|
9 |
+
Add Social Share Buttons Using Floating Sidebar On Your Site (Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail)
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
"custom-share-buttons-with-floating-sidebar" is the very simple plugin for add to floating social share buttons on your site.
|
14 |
+
|
15 |
+
Even you can change the share buttons images if you wish!.
|
16 |
+
|
17 |
+
Using this plugin you can easily share your website with your friends on Facebook,Twitter,Linkedin,Pinterest,Google+.
|
18 |
|
|
|
19 |
There are not added any external JS files in this plugin so it's does not effect on your site speed as well.
|
20 |
|
21 |
+
Live [demo](http://www.gurukulalwar.com/)
|
22 |
+
|
23 |
+
= Features =
|
24 |
+
|
25 |
+
* Options for add to Custom Image of any buttons
|
26 |
+
* Options for add to background color of buttons
|
27 |
+
* Floating Sidebar
|
28 |
+
* Share Buttons for every post/page
|
29 |
+
* Show/Hide options for any buttons
|
30 |
+
* Options for edit to message ("Show Buttons","Hide Buttons"...etc)
|
31 |
+
* Options for set the position of Floating Sidebar (Left/Right)
|
32 |
+
* Options for set the position of Social Buttons (Left/Right)
|
33 |
+
* Options for manage the style of the plugin
|
34 |
|
35 |
|
36 |
== Installation ==
|
37 |
|
38 |
+
Step 1.Dowanload the plugin and upload "custom-share-buttons-with-floating-sidebar" plugins file to plugin (`/wp-content/plugins/`) directory
|
39 |
|
40 |
Step 2. Activate the plugin through the Plugins menu in WordPress
|
41 |
|
44 |
== Frequently Asked Questions ==
|
45 |
1.How add floating share buttons on my website?
|
46 |
|
47 |
+
After active the plugin you have must need to enable this plugin through the plugin settings.
|
48 |
|
49 |
2.Can i change the custom share buttons images from admin?
|
50 |
|
51 |
+
Yes,admin can changes all social share custom buttons images if you wish, for that you have only need to define the buttons images path from plugins settings page.
|
52 |
|
53 |
3.Is there any demo site where your plugins have been used?
|
54 |
|
55 |
+
Yes, Please visit on this [site](http://www.mrwebsolution.in/) for check live demo
|
56 |
+
|
57 |
+
3.Can i define the top margin for share buttons block?
|
58 |
+
|
59 |
+
Yes, admin can define the top margin from plugin settings page
|
60 |
+
|
61 |
+
4.Can we add the social share buttons on bottom of every post/pages?
|
62 |
+
|
63 |
+
Yes,you have only need to enable the "Social Share Button" from admin by plugin settings
|
64 |
+
|
65 |
+
5.Can we add at a time only the "Floating Sidebar" OR "Social Share Buttons"?
|
66 |
+
|
67 |
+
Yes,You have need to enable at a time only one from both "Floating Sidebar" and "Social Share Buttons"
|
68 |
|
69 |
|
70 |
== Screenshots ==
|
74 |
2. screenshot-2.png
|
75 |
|
76 |
3. screenshot-3.png
|
77 |
+
|
78 |
+
4. screenshot-4.png
|
79 |
+
|
80 |
+
5. screenshot-5.png
|
81 |
+
|
82 |
+
== Changelog ==
|
83 |
+
|
84 |
+
= 1.5 =
|
85 |
+
* Make plugin settings page more stylish
|
86 |
+
* Added a new option for remove show/hide buttions
|
87 |
+
* Added an option for change position of social share buttons
|
88 |
+
* Make "Share This!" button text editable
|
89 |
+
* Add Youtube button
|
90 |
+
* Change image opacity on hover
|
91 |
+
|
92 |
+
= 1.4 =
|
93 |
+
* Added an options for define the background color of custom social share buttons
|
94 |
+
* Added a new options for show/hide the buttions, so now if you will be click on hide buttons and then go to next page OR reload same page,then buttons will be not publish in front end,so buttons status will be remain until you will not change the their status by click on show/hide buttons
|
95 |
+
* Added an options for manage the general text (like "Show buttons", "Hide buttons"..etc)
|
96 |
+
* Fixed some JS issues
|
97 |
+
|
98 |
+
= 1.3 =
|
99 |
+
* Added an options for add the social share buttons on bottom of the content on every post/pages
|
100 |
+
|
101 |
+
= 1.2 =
|
102 |
+
* Fixed button image gap issue for right position
|
103 |
+
* Added new option for set the delay time to publish the share butttons
|
104 |
+
|
105 |
+
= 1.1 =
|
106 |
+
* Fixed the right float sidebar issue
|
107 |
+
* Added new option for define the margin from TOP
|
108 |
+
* Added the show/hide buttons
|
109 |
+
* On Mail buttons :by default set current page title as a mail subject-line and page link in mail-body
|
110 |
|
111 |
= 1.0 =
|
112 |
+
* First stable release
|