Version Description
- Fixed share buttons css issues
- Fixed some minor js conflict issues
Download this release
Release Info
Developer | india-web-developer |
Plugin | Custom Share Buttons with Floating Sidebar |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 1.9 to 2.1
- csbwfs-class.php +137 -77
- css/admin-csbwfs.css +1 -1
- css/csbwfs-.css +0 -76
- custom-share-buttons-with-floating-sidebar.php +141 -132
- images/hide-b.png +0 -0
- images/hide-l.png +0 -0
- images/hide-r.png +0 -0
- images/raghu.jpg +0 -0
- js/csbwfs.js +44 -0
- readme.txt +39 -17
csbwfs-class.php
CHANGED
@@ -5,7 +5,8 @@
|
|
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;
|
@@ -30,7 +31,7 @@ isset($pluginOptionsVal['csbwfs_deactive_for_mob']) && $pluginOptionsVal['csbwfs
|
|
30 |
// silent is Gold;
|
31 |
}else
|
32 |
{
|
33 |
-
add_action('
|
34 |
add_action( 'wp_enqueue_scripts', 'csbwf_sidebar_scripts' );
|
35 |
add_action('wp_footer','csbwf_sidebar_load_inline_js');
|
36 |
add_action('wp_footer','csbwfs_cookie');
|
@@ -76,6 +77,7 @@ function csbwfsCheckCookie() {
|
|
76 |
|
77 |
if(isset($pluginOptionsVal['csbwfs_buttons_active']) && $pluginOptionsVal['csbwfs_buttons_active']==1){
|
78 |
add_filter( 'the_content', 'csbfs_the_content_filter', 20);
|
|
|
79 |
}
|
80 |
|
81 |
//register style and scrip files
|
@@ -302,7 +304,7 @@ $ShareTitle= htmlspecialchars(urlencode($ShareTitle));
|
|
302 |
/* Get All buttons Image */
|
303 |
|
304 |
//get facebook button image
|
305 |
-
if($pluginOptionsVal['
|
306 |
else{$fImg=plugins_url('images/fb.png',__FILE__);}
|
307 |
//get twitter button image
|
308 |
if($pluginOptionsVal['csbwfs_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_tw_image'];}
|
@@ -332,6 +334,36 @@ if(isset($pluginOptionsVal['csbwfs_re_image']) && $pluginOptionsVal['csbwfs_re_i
|
|
332 |
//get stumbleupon button image
|
333 |
if(isset($pluginOptionsVal['csbwfs_st_image']) && $pluginOptionsVal['csbwfs_st_image']!=''){ $stImg=$pluginOptionsVal['csbwfs_st_image'];}
|
334 |
else{$stImg=plugins_url('images/stumbleupon.png',__FILE__);}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
335 |
|
336 |
//get email message
|
337 |
if(is_page() || is_single() || is_category() || is_archive()){
|
@@ -354,60 +386,42 @@ if($pluginOptionsVal['csbwfs_top_margin']!=''){
|
|
354 |
|
355 |
//Sidebar Position
|
356 |
if($pluginOptionsVal['csbwfs_position']=='right'){
|
357 |
-
|
358 |
-
$idName=' id="csbwfs-right"';
|
359 |
-
$showImg='hide.png';
|
360 |
-
$hideImg='show.png';
|
361 |
-
|
362 |
}else if($pluginOptionsVal['csbwfs_position']=='bottom'){
|
363 |
-
|
364 |
-
|
365 |
-
$showImg='hide.png';
|
366 |
-
$hideImg='show.png';
|
367 |
-
|
368 |
-
}
|
369 |
else
|
370 |
{
|
371 |
-
|
372 |
-
|
373 |
-
$showImg='show.png';
|
374 |
-
$hideImg='hide.png';
|
375 |
-
}
|
376 |
-
|
377 |
-
|
378 |
-
|
379 |
/* Get All buttons background color */
|
380 |
-
|
381 |
//get facebook button image background color
|
382 |
if($pluginOptionsVal['csbwfs_fb_bg']!=''){ $fImgbg=' style="background:'.$pluginOptionsVal['csbwfs_fb_bg'].';"';}
|
383 |
-
|
384 |
//get twitter button image background color
|
385 |
if($pluginOptionsVal['csbwfs_tw_bg']!=''){ $tImgbg=' style="background:'.$pluginOptionsVal['csbwfs_tw_bg'].';"';}
|
386 |
-
|
387 |
//get linkdin button image background color
|
388 |
if($pluginOptionsVal['csbwfs_li_bg']!=''){ $lImgbg=' style="background:'.$pluginOptionsVal['csbwfs_li_bg'].';"';}
|
389 |
-
|
390 |
//get mail button image background color
|
391 |
if($pluginOptionsVal['csbwfs_mail_bg']!=''){ $mImgbg=' style="background:'.$pluginOptionsVal['csbwfs_mail_bg'].';"';}
|
392 |
-
|
393 |
//get google plus button image background color
|
394 |
if($pluginOptionsVal['csbwfs_gp_bg']!=''){ $gImgbg=' style="background:'.$pluginOptionsVal['csbwfs_gp_bg'].';"';}
|
395 |
-
|
396 |
//get pinterest button image background color
|
397 |
-
if($pluginOptionsVal['csbwfs_pin_bg']!=''){ $pImgbg=' style="background:'.$pluginOptionsVal['csbwfs_pin_bg'].';"';}
|
398 |
-
|
399 |
-
|
400 |
//get youtube button image background color
|
401 |
-
if(isset($pluginOptionsVal['csbwfs_yt_bg']) && $pluginOptionsVal['csbwfs_yt_bg']!=''){ $ytImgbg=' style="background:'.$pluginOptionsVal['csbwfs_yt_bg'].';"';}
|
402 |
-
else{$ytImgbg='';}
|
403 |
//get reddit button image background color
|
404 |
-
if(isset($pluginOptionsVal['csbwfs_re_bg']) && $pluginOptionsVal['csbwfs_re_bg']!=''){ $reImgbg=' style="background:'.$pluginOptionsVal['csbwfs_re_bg'].';"';}
|
405 |
-
else{$reImgbg='';}
|
406 |
//get stumbleupon button image background color
|
407 |
-
if(isset($pluginOptionsVal['csbwfs_st_bg']) && $pluginOptionsVal['csbwfs_st_bg']!=''){ $stImgbg=' style="background:'.$pluginOptionsVal['csbwfs_st_bg'].';"';}
|
408 |
-
|
409 |
/** Message */
|
410 |
-
|
411 |
if($pluginOptionsVal['csbwfs_show_btn']!=''){ $showbtn=$pluginOptionsVal['csbwfs_show_btn'];}
|
412 |
else{$showbtn='Show Buttons';}
|
413 |
//get show/hide button message
|
@@ -426,60 +440,60 @@ endif;
|
|
426 |
$flitingSidebarContent='<div id="csbwfs-delaydiv"><div class="csbwfs-social-widget" '.$idName.' title="'.$sharemsg.'" '.$style.'>';
|
427 |
|
428 |
if($isActiveHideShowBtn!='yes') :
|
429 |
-
$flitingSidebarContent .= '<div class="csbwfs-show"><a href="javascript:"
|
430 |
endif;
|
431 |
|
432 |
$flitingSidebarContent .= '<div id="csbwfs-social-inner">';
|
433 |
|
434 |
/** FB */
|
435 |
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
436 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-fb"><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;" target="_blank"
|
437 |
endif;
|
438 |
|
439 |
/** TW */
|
440 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
441 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-tw"><a href="javascript:" onclick="window.open(\'http://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'\',\'_blank\',\'width=800,height=300\')"
|
442 |
endif;
|
443 |
|
444 |
/** GP */
|
445 |
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
446 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-gp"><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=800\');return false;"
|
447 |
endif;
|
448 |
|
449 |
/** LI */
|
450 |
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
451 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-li"><a href="https://www.linkedin.com/cws/share?mini=true&url='. $shareurl.'" onclick="javascript:window.open(this.href,\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;"
|
452 |
endif;
|
453 |
|
454 |
/** PIN */
|
455 |
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
456 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-pin"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&media='.$pinShareImg.'&description='.$ShareTitle.' :'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=800,height=500\');" href="javascript:void(0);" '.$pImgbg.'><img src="'.$pImg.'"></a></div></div>';
|
457 |
endif;
|
458 |
|
459 |
/** YT */
|
460 |
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
461 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" '.$ytImgbg.'><img src="'.$ytImg.'"></a></div></div>';
|
462 |
endif;
|
463 |
|
464 |
/** Reddit */
|
465 |
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
466 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-re"><a onclick="window.open(\'http://reddit.com/submit?url='.$shareurl.'&title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" '.$reImgbg.'><img src="'.$reImg.'"></a></div></div>';
|
467 |
endif;
|
468 |
|
469 |
/** Stumbleupon */
|
470 |
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
471 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-st"><a onclick="window.open(\'http://www.stumbleupon.com/submit?url='.$shareurl.'&title='.$ShareTitle.'\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" '.$stImgbg.'><img src="'. $stImg.'"></a></div></div>';
|
472 |
endif;
|
473 |
|
474 |
/** Mail*/
|
475 |
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
476 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-ml"><a href="mailto:'.$mailMsg.'"
|
477 |
endif;
|
478 |
|
479 |
$flitingSidebarContent .='</div>'; //End social-inner
|
480 |
|
481 |
if($isActiveHideShowBtn!='yes') :
|
482 |
-
$flitingSidebarContent .='<div class="csbwfs-hide"><a href="javascript:"
|
483 |
endif;
|
484 |
|
485 |
$flitingSidebarContent .='</div></div>'; //End social-inner
|
@@ -491,8 +505,11 @@ $flitingSidebarContent .='</div></div>'; //End social-inner
|
|
491 |
if(isset($pluginOptionsVal['csbwfs_hide_home'])){$hideOnHome=$pluginOptionsVal['csbwfs_hide_home']; }else{ $hideOnHome='';}
|
492 |
|
493 |
if((is_home() && $hideOnHome=='yes' ) || (is_front_page() && $hideOnHome=='yes' )):
|
494 |
-
|
495 |
-
|
|
|
|
|
|
|
496 |
|
497 |
print $flitingSidebarContent;
|
498 |
|
@@ -511,6 +528,13 @@ function csbfs_the_content_filter( $content ) {
|
|
511 |
global $post;
|
512 |
$pluginOptionsVal=get_csbwf_sidebar_options();
|
513 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
514 |
if(is_category())
|
515 |
{
|
516 |
$category_id = get_query_var('cat');
|
@@ -519,6 +543,12 @@ if(is_category())
|
|
519 |
$ShareTitle=$cats[0]->name;
|
520 |
}elseif(is_page() || is_single())
|
521 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
522 |
$shareurl=get_permalink($post->ID);
|
523 |
$ShareTitle=$post->post_title;
|
524 |
}
|
@@ -540,33 +570,62 @@ $ShareTitle= htmlspecialchars(urlencode($ShareTitle));
|
|
540 |
/* Get All buttons Image */
|
541 |
|
542 |
//get facebook button image
|
543 |
-
if($pluginOptionsVal['
|
544 |
else{$fImg=plugins_url('images/fb-p.png',__FILE__);}
|
545 |
//get twitter button image
|
546 |
-
if($pluginOptionsVal['
|
547 |
else{$tImg=plugins_url('images/tw-p.png',__FILE__);}
|
548 |
//get linkdin button image
|
549 |
-
if($pluginOptionsVal['
|
550 |
else{$lImg=plugins_url('images/in-p.png',__FILE__);}
|
551 |
//get mail button image
|
552 |
-
if($pluginOptionsVal['
|
553 |
else{$mImg=plugins_url('images/ml-p.png',__FILE__);}
|
554 |
//get google plus button image
|
555 |
-
if($pluginOptionsVal['
|
556 |
else{$gImg=plugins_url('images/gp-p.png',__FILE__);}
|
557 |
//get pinterest button image
|
558 |
-
if($pluginOptionsVal['
|
559 |
else{$pImg=plugins_url('images/pinit-p.png',__FILE__);}
|
560 |
|
561 |
//get youtube button image
|
562 |
-
if(isset($pluginOptionsVal['
|
563 |
else{$ytImg=plugins_url('images/youtube-p.png',__FILE__);}
|
564 |
//get reddit plus button image
|
565 |
-
if(isset($pluginOptionsVal['
|
566 |
else{$reImg=plugins_url('images/reddit.png',__FILE__);}
|
567 |
//get stumbleupon button image
|
568 |
-
if(isset($pluginOptionsVal['
|
569 |
else{$stImg=plugins_url('images/stumbleupon.png',__FILE__);}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
570 |
|
571 |
//get email message
|
572 |
if(is_page() || is_single() || is_category() || is_archive()){
|
@@ -589,53 +648,49 @@ else:
|
|
589 |
$btnText='Share This!';
|
590 |
endif;
|
591 |
|
592 |
-
$shareButtonContent='<div id="socialButtonOnPage" class="'.$btnPosition.'SocialButtonOnPage"><div class="sharethis-arrow"><span>'.$btnText.'</span></div>';
|
593 |
/* Facebook*/
|
594 |
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
595 |
$shareButtonContent.='<div class="csbwfs-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;"
|
596 |
-
target="_blank"
|
597 |
endif;
|
598 |
|
599 |
/* Twitter */
|
600 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
601 |
-
$shareButtonContent.='<div class="csbwfs-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\')"
|
602 |
endif;
|
603 |
|
604 |
/* Google Plus */
|
605 |
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
606 |
-
$shareButtonContent.='<div class="csbwfs-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;"
|
607 |
-
<img src="'.$gImg.'"></a></div>
|
608 |
</div>';
|
609 |
endif;
|
610 |
|
611 |
/* Linkedin */
|
612 |
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
613 |
-
$shareButtonContent.='<div class="csbwfs-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;"
|
614 |
endif;
|
615 |
|
616 |
/* Pinterest */
|
617 |
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
618 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="pin-p"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&media='.
|
619 |
endif;
|
620 |
|
621 |
/* Youtube */
|
622 |
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
623 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="yt-p"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);"
|
624 |
endif;
|
625 |
/* Stumbleen */
|
626 |
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
627 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="st-p"><a onclick="window.open(\'http://www.stumbleupon.com/submit?url='.$shareurl.'&title='.$ShareTitle.'\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" ><img src="'.$stImg.'"></a></div></div>';
|
628 |
endif;
|
629 |
-
|
630 |
/* Reddit */
|
631 |
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
632 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="re-p"><a onclick="window.open(\'http://reddit.com/submit?url='.$shareurl.'&title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);"><img src="'.$reImg.'"></a></div></div>';
|
633 |
endif;
|
634 |
-
|
635 |
-
|
636 |
/* Email */
|
637 |
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
638 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p"><a href="mailto:'.$mailMsg.'"
|
639 |
endif;
|
640 |
$shareButtonContent.='</div>';
|
641 |
|
@@ -657,12 +712,17 @@ $shareButtonContent.='</div>';
|
|
657 |
if(is_archive() && $pluginOptionsVal['csbwfs_page_hide_archive']!='yes'):
|
658 |
$shareButtonContent='';
|
659 |
endif;
|
|
|
|
|
|
|
|
|
660 |
|
|
|
661 |
if($shareButtonContent!=''):
|
662 |
-
|
663 |
-
|
664 |
return $content;
|
665 |
-
|
666 |
}
|
667 |
|
668 |
/*
|
5 |
* @get_csbwf_sidebar_content()
|
6 |
* */
|
7 |
?>
|
8 |
+
<?php
|
9 |
+
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
10 |
// get all options value for "Custom Share Buttons with Floating Sidebar"
|
11 |
function get_csbwf_sidebar_options() {
|
12 |
global $wpdb;
|
31 |
// silent is Gold;
|
32 |
}else
|
33 |
{
|
34 |
+
add_action('wp_head','get_csbwf_sidebar_content');
|
35 |
add_action( 'wp_enqueue_scripts', 'csbwf_sidebar_scripts' );
|
36 |
add_action('wp_footer','csbwf_sidebar_load_inline_js');
|
37 |
add_action('wp_footer','csbwfs_cookie');
|
77 |
|
78 |
if(isset($pluginOptionsVal['csbwfs_buttons_active']) && $pluginOptionsVal['csbwfs_buttons_active']==1){
|
79 |
add_filter( 'the_content', 'csbfs_the_content_filter', 20);
|
80 |
+
add_action( 'wp_enqueue_scripts', 'csbwf_sidebar_scripts' );
|
81 |
}
|
82 |
|
83 |
//register style and scrip files
|
304 |
/* Get All buttons Image */
|
305 |
|
306 |
//get facebook button image
|
307 |
+
if($pluginOptionsVal['csbwfs_page_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_fb_image'];}
|
308 |
else{$fImg=plugins_url('images/fb.png',__FILE__);}
|
309 |
//get twitter button image
|
310 |
if($pluginOptionsVal['csbwfs_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_tw_image'];}
|
334 |
//get stumbleupon button image
|
335 |
if(isset($pluginOptionsVal['csbwfs_st_image']) && $pluginOptionsVal['csbwfs_st_image']!=''){ $stImg=$pluginOptionsVal['csbwfs_st_image'];}
|
336 |
else{$stImg=plugins_url('images/stumbleupon.png',__FILE__);}
|
337 |
+
|
338 |
+
|
339 |
+
/* Get All buttons Image Alt/Title */
|
340 |
+
//get facebook button image alt/title
|
341 |
+
if($pluginOptionsVal['csbwfs_fb_title']!=''){ $fImgAlt=$pluginOptionsVal['csbwfs_fb_title'];}
|
342 |
+
else{$fImgAlt='Share On Facebook';}
|
343 |
+
//get twitter button image alt/title
|
344 |
+
if($pluginOptionsVal['csbwfs_tw_title']!=''){ $tImgAlt=$pluginOptionsVal['csbwfs_tw_title'];}
|
345 |
+
else{$tImgAlt='Share On Twitter';}
|
346 |
+
//get linkdin button image alt/title
|
347 |
+
if($pluginOptionsVal['csbwfs_li_title']!=''){ $lImgAlt=$pluginOptionsVal['csbwfs_li_title'];}
|
348 |
+
else{$lImgAlt='Share On Linkdin';}
|
349 |
+
//get mail button image alt/title
|
350 |
+
if($pluginOptionsVal['csbwfs_mail_title']!=''){ $mImgAlt=$pluginOptionsVal['csbwfs_mail_title'];}
|
351 |
+
else{$mImgAlt='Contact us';}
|
352 |
+
//get google plus button image alt/title
|
353 |
+
if($pluginOptionsVal['csbwfs_gp_title']!=''){ $gImgAlt=$pluginOptionsVal['csbwfs_gp_title'];}
|
354 |
+
else{$gImgAlt='Share On Google Plus';}
|
355 |
+
//get pinterest button image alt/title
|
356 |
+
if($pluginOptionsVal['csbwfs_pin_title']!=''){ $pImgAlt=$pluginOptionsVal['csbwfs_pin_title'];}
|
357 |
+
else{$pImgAlt='Share On Pinterest';}
|
358 |
+
//get youtube button image alt/title
|
359 |
+
if(isset($pluginOptionsVal['csbwfs_yt_title']) && $pluginOptionsVal['csbwfs_yt_title']!=''){ $ytImgAlt=$pluginOptionsVal['csbwfs_yt_title'];}
|
360 |
+
else{$ytImgAlt='Share On Youtube';}
|
361 |
+
//get reddit plus button image alt/title
|
362 |
+
if(isset($pluginOptionsVal['csbwfs_re_title']) && $pluginOptionsVal['csbwfs_re_title']!=''){ $reImgAlt=$pluginOptionsVal['csbwfs_re_title'];}
|
363 |
+
else{$reImgAlt='Share On Reddit';}
|
364 |
+
//get stumbleupon button image alt/title
|
365 |
+
if(isset($pluginOptionsVal['csbwfs_st_title']) && $pluginOptionsVal['csbwfs_st_title']!=''){ $stImgAlt=$pluginOptionsVal['csbwfs_st_title'];}
|
366 |
+
else{$stImgAlt='Share On Stumbleupon';}
|
367 |
|
368 |
//get email message
|
369 |
if(is_page() || is_single() || is_category() || is_archive()){
|
386 |
|
387 |
//Sidebar Position
|
388 |
if($pluginOptionsVal['csbwfs_position']=='right'){
|
389 |
+
$style=' style="top:'.$margin.';right:-5px;"'; $idName=' id="csbwfs-right"'; $showImg='hide-r.png'; $hideImg='show.png';
|
|
|
|
|
|
|
|
|
390 |
}else if($pluginOptionsVal['csbwfs_position']=='bottom'){
|
391 |
+
$style=' style="bottom:0;"'; $idName=' id="csbwfs-bottom"'; $showImg='hide-b.png'; $hideImg='show.png';
|
392 |
+
}
|
|
|
|
|
|
|
|
|
393 |
else
|
394 |
{
|
395 |
+
$idName=' id="csbwfs-left"'; $style=' style="top:'.$margin.';left:0;"'; $showImg='hide-l.png';$hideImg='hide.png';
|
396 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
397 |
/* Get All buttons background color */
|
|
|
398 |
//get facebook button image background color
|
399 |
if($pluginOptionsVal['csbwfs_fb_bg']!=''){ $fImgbg=' style="background:'.$pluginOptionsVal['csbwfs_fb_bg'].';"';}
|
400 |
+
else{$fImgbg='';}
|
401 |
//get twitter button image background color
|
402 |
if($pluginOptionsVal['csbwfs_tw_bg']!=''){ $tImgbg=' style="background:'.$pluginOptionsVal['csbwfs_tw_bg'].';"';}
|
403 |
+
else{$tImgbg='';}
|
404 |
//get linkdin button image background color
|
405 |
if($pluginOptionsVal['csbwfs_li_bg']!=''){ $lImgbg=' style="background:'.$pluginOptionsVal['csbwfs_li_bg'].';"';}
|
406 |
+
else{$lImgbg='';}
|
407 |
//get mail button image background color
|
408 |
if($pluginOptionsVal['csbwfs_mail_bg']!=''){ $mImgbg=' style="background:'.$pluginOptionsVal['csbwfs_mail_bg'].';"';}
|
409 |
+
else{$mImgbg='';}
|
410 |
//get google plus button image background color
|
411 |
if($pluginOptionsVal['csbwfs_gp_bg']!=''){ $gImgbg=' style="background:'.$pluginOptionsVal['csbwfs_gp_bg'].';"';}
|
412 |
+
else{$gImgbg='';}
|
413 |
//get pinterest button image background color
|
414 |
+
if($pluginOptionsVal['csbwfs_pin_bg']!=''){ $pImgbg=' style="background:'.$pluginOptionsVal['csbwfs_pin_bg'].';"';}
|
415 |
+
else{$pImgbg='';}
|
416 |
+
|
417 |
//get youtube button image background color
|
418 |
+
if(isset($pluginOptionsVal['csbwfs_yt_bg']) && $pluginOptionsVal['csbwfs_yt_bg']!=''){ $ytImgbg=' style="background:'.$pluginOptionsVal['csbwfs_yt_bg'].';"';}else{$ytImgbg='';}
|
|
|
419 |
//get reddit button image background color
|
420 |
+
if(isset($pluginOptionsVal['csbwfs_re_bg']) && $pluginOptionsVal['csbwfs_re_bg']!=''){ $reImgbg=' style="background:'.$pluginOptionsVal['csbwfs_re_bg'].';"';}else{$reImgbg='';}
|
|
|
421 |
//get stumbleupon button image background color
|
422 |
+
if(isset($pluginOptionsVal['csbwfs_st_bg']) && $pluginOptionsVal['csbwfs_st_bg']!=''){ $stImgbg=' style="background:'.$pluginOptionsVal['csbwfs_st_bg'].';"';} else{$stImgbg='';}
|
423 |
+
|
424 |
/** Message */
|
|
|
425 |
if($pluginOptionsVal['csbwfs_show_btn']!=''){ $showbtn=$pluginOptionsVal['csbwfs_show_btn'];}
|
426 |
else{$showbtn='Show Buttons';}
|
427 |
//get show/hide button message
|
440 |
$flitingSidebarContent='<div id="csbwfs-delaydiv"><div class="csbwfs-social-widget" '.$idName.' title="'.$sharemsg.'" '.$style.'>';
|
441 |
|
442 |
if($isActiveHideShowBtn!='yes') :
|
443 |
+
$flitingSidebarContent .= '<div class="csbwfs-show"><a href="javascript:" title="'.$showbtn.'" id="csbwfs-show"><img src="'.plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$showImg).'" alt="'.$showbtn.'"></a></div>';
|
444 |
endif;
|
445 |
|
446 |
$flitingSidebarContent .= '<div id="csbwfs-social-inner">';
|
447 |
|
448 |
/** FB */
|
449 |
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
450 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-fb"><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;" target="_blank" title="'.$fImgAlt.'" '.$fImgbg.'><img src="'.$fImg.'" alt="'.$fImgAlt.'"></a></div></div>';
|
451 |
endif;
|
452 |
|
453 |
/** TW */
|
454 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
455 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-tw"><a href="javascript:" onclick="window.open(\'http://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'\',\'_blank\',\'width=800,height=300\')" title="'.$tImgAlt.'" '.$tImgbg.'><img src="'.$tImg.'" alt="'.$tImgAlt.'"></a></div></div>';
|
456 |
endif;
|
457 |
|
458 |
/** GP */
|
459 |
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
460 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-gp"><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=800\');return false;" title="'.$gImgAlt.'" '.$gImgbg.'><img src="'.$gImg.'" alt="'.$gImgAlt.'"></a></div></div>';
|
461 |
endif;
|
462 |
|
463 |
/** LI */
|
464 |
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
465 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-li"><a href="https://www.linkedin.com/cws/share?mini=true&url='. $shareurl.'" onclick="javascript:window.open(this.href,\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" title="'.$lImgAlt.'" '.$lImgbg.'><img src="'.$lImg.'" alt="'.$lImgAlt.'"></a></div></div>';
|
466 |
endif;
|
467 |
|
468 |
/** PIN */
|
469 |
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
470 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-pin"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&media='.$pinShareImg.'&description='.$ShareTitle.' :'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=800,height=500\');" href="javascript:void(0);" '.$pImgbg.' title="'.$pImgAlt.'"><img src="'.$pImg.'" alt="'.$pImgAlt.'"></a></div></div>';
|
471 |
endif;
|
472 |
|
473 |
/** YT */
|
474 |
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
475 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" '.$ytImgbg.' title="'.$ytImgAlt.'"><img src="'.$ytImg.'" alt="'.$ytImgAlt.'"></a></div></div>';
|
476 |
endif;
|
477 |
|
478 |
/** Reddit */
|
479 |
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
480 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-re"><a onclick="window.open(\'http://reddit.com/submit?url='.$shareurl.'&title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" '.$reImgbg.' title="'.$reImgAlt.'"><img src="'.$reImg.'" alt="'.$reImgAlt.'"></a></div></div>';
|
481 |
endif;
|
482 |
|
483 |
/** Stumbleupon */
|
484 |
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
485 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-st"><a onclick="window.open(\'http://www.stumbleupon.com/submit?url='.$shareurl.'&title='.$ShareTitle.'\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" '.$stImgbg.' title="'.$stImgAlt.'"><img src="'. $stImg.'" alt="'.$stImgAlt.'"></a></div></div>';
|
486 |
endif;
|
487 |
|
488 |
/** Mail*/
|
489 |
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
490 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'" '.$mImgbg.' ><img src="'.$mImg.'" alt="'.$mImgAlt.'"></a></div></div>';
|
491 |
endif;
|
492 |
|
493 |
$flitingSidebarContent .='</div>'; //End social-inner
|
494 |
|
495 |
if($isActiveHideShowBtn!='yes') :
|
496 |
+
$flitingSidebarContent .='<div class="csbwfs-hide"><a href="javascript:" title="'.$hidebtn.'" id="csbwfs-hide"><img src="'.plugins_url('custom-share-buttons-with-floating-sidebar/images/'.$hideImg).'" alt="'.$hidebtn.'"></a></div>';
|
497 |
endif;
|
498 |
|
499 |
$flitingSidebarContent .='</div></div>'; //End social-inner
|
505 |
if(isset($pluginOptionsVal['csbwfs_hide_home'])){$hideOnHome=$pluginOptionsVal['csbwfs_hide_home']; }else{ $hideOnHome='';}
|
506 |
|
507 |
if((is_home() && $hideOnHome=='yes' ) || (is_front_page() && $hideOnHome=='yes' )):
|
508 |
+
$flitingSidebarContent='';
|
509 |
+
endif;
|
510 |
+
/** hide on 404 pages */
|
511 |
+
if(is_404()):$flitingSidebarContent='';endif;
|
512 |
+
|
513 |
|
514 |
print $flitingSidebarContent;
|
515 |
|
528 |
global $post;
|
529 |
$pluginOptionsVal=get_csbwf_sidebar_options();
|
530 |
|
531 |
+
/*Default Pinit Share image */
|
532 |
+
if(isset($pluginOptionsVal['csbwfs_defaultfeaturedshrimg']) && $pluginOptionsVal['csbwfs_defaultfeaturedshrimg']!=''){
|
533 |
+
$pinShareImg=$pluginOptionsVal['csbwfs_defaultfeaturedshrimg'];
|
534 |
+
}else{
|
535 |
+
$pinShareImg=plugins_url('images/mrweb-logo.jpg',__FILE__);
|
536 |
+
}
|
537 |
+
|
538 |
if(is_category())
|
539 |
{
|
540 |
$category_id = get_query_var('cat');
|
543 |
$ShareTitle=$cats[0]->name;
|
544 |
}elseif(is_page() || is_single())
|
545 |
{
|
546 |
+
if ( has_post_thumbnail() )
|
547 |
+
{
|
548 |
+
$large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'large' );
|
549 |
+
|
550 |
+
$pinShareImg= $large_image_url[0] ;
|
551 |
+
}
|
552 |
$shareurl=get_permalink($post->ID);
|
553 |
$ShareTitle=$post->post_title;
|
554 |
}
|
570 |
/* Get All buttons Image */
|
571 |
|
572 |
//get facebook button image
|
573 |
+
if($pluginOptionsVal['csbwfs_page_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_page_fb_image'];}
|
574 |
else{$fImg=plugins_url('images/fb-p.png',__FILE__);}
|
575 |
//get twitter button image
|
576 |
+
if($pluginOptionsVal['csbwfs_page_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_page_tw_image'];}
|
577 |
else{$tImg=plugins_url('images/tw-p.png',__FILE__);}
|
578 |
//get linkdin button image
|
579 |
+
if($pluginOptionsVal['csbwfs_page_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_page_li_image'];}
|
580 |
else{$lImg=plugins_url('images/in-p.png',__FILE__);}
|
581 |
//get mail button image
|
582 |
+
if($pluginOptionsVal['csbwfs_page_mail_image']!=''){ $mImg=$pluginOptionsVal['csbwfs_page_mail_image'];}
|
583 |
else{$mImg=plugins_url('images/ml-p.png',__FILE__);}
|
584 |
//get google plus button image
|
585 |
+
if($pluginOptionsVal['csbwfs_page_gp_image']!=''){ $gImg=$pluginOptionsVal['csbwfs_page_gp_image'];}
|
586 |
else{$gImg=plugins_url('images/gp-p.png',__FILE__);}
|
587 |
//get pinterest button image
|
588 |
+
if($pluginOptionsVal['csbwfs_page_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_page_pin_image'];}
|
589 |
else{$pImg=plugins_url('images/pinit-p.png',__FILE__);}
|
590 |
|
591 |
//get youtube button image
|
592 |
+
if(isset($pluginOptionsVal['csbwfs_page_yt_image']) && $pluginOptionsVal['csbwfs_page_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_page_yt_image'];}
|
593 |
else{$ytImg=plugins_url('images/youtube-p.png',__FILE__);}
|
594 |
//get reddit plus button image
|
595 |
+
if(isset($pluginOptionsVal['csbwfs_page_re_image']) && $pluginOptionsVal['csbwfs_page_re_image']!=''){ $reImg=$pluginOptionsVal['csbwfs_page_re_image'];}
|
596 |
else{$reImg=plugins_url('images/reddit.png',__FILE__);}
|
597 |
//get stumbleupon button image
|
598 |
+
if(isset($pluginOptionsVal['csbwfs_page_st_image']) && $pluginOptionsVal['csbwfs_page_st_image']!=''){ $stImg=$pluginOptionsVal['csbwfs_page_st_image'];}
|
599 |
else{$stImg=plugins_url('images/stumbleupon.png',__FILE__);}
|
600 |
+
|
601 |
+
/* Get All buttons Image Alt/Title */
|
602 |
+
//get facebook button image alt/title
|
603 |
+
if($pluginOptionsVal['csbwfs_page_fb_title']!=''){ $fImgAlt=$pluginOptionsVal['csbwfs_page_fb_title'];}
|
604 |
+
else{$fImgAlt='Share On Facebook';}
|
605 |
+
//get twitter button image alt/title
|
606 |
+
if($pluginOptionsVal['csbwfs_page_tw_title']!=''){ $tImgAlt=$pluginOptionsVal['csbwfs_page_tw_title'];}
|
607 |
+
else{$tImgAlt='Share On Twitter';}
|
608 |
+
//get linkdin button image alt/title
|
609 |
+
if($pluginOptionsVal['csbwfs_page_li_title']!=''){ $lImgAlt=$pluginOptionsVal['csbwfs_page_li_title'];}
|
610 |
+
else{$lImgAlt='Share On Linkdin';}
|
611 |
+
//get mail button image alt/title
|
612 |
+
if($pluginOptionsVal['csbwfs_page_mail_title']!=''){ $mImgAlt=$pluginOptionsVal['csbwfs_page_mail_title'];}
|
613 |
+
else{$mImgAlt='Contact us';}
|
614 |
+
//get google plus button image alt/title
|
615 |
+
if($pluginOptionsVal['csbwfs_page_gp_title']!=''){ $gImgAlt=$pluginOptionsVal['csbwfs_page_gp_title'];}
|
616 |
+
else{$gImgAlt='Share On Google Plus';}
|
617 |
+
//get pinterest button image alt/title
|
618 |
+
if($pluginOptionsVal['csbwfs_page_pin_title']!=''){ $pImgAlt=$pluginOptionsVal['csbwfs_page_pin_title'];}
|
619 |
+
else{$pImgAlt='Share On Pinterest';}
|
620 |
+
//get youtube button image alt/title
|
621 |
+
if(isset($pluginOptionsVal['csbwfs_page_yt_title']) && $pluginOptionsVal['csbwfs_page_yt_title']!=''){ $ytImgAlt=$pluginOptionsVal['csbwfs_page_yt_title'];}
|
622 |
+
else{$ytImgAlt='Share On Youtube';}
|
623 |
+
//get reddit plus button image alt/title
|
624 |
+
if(isset($pluginOptionsVal['csbwfs_page_re_title']) && $pluginOptionsVal['csbwfs_page_re_title']!=''){ $reImgAlt=$pluginOptionsVal['csbwfs_page_re_title'];}
|
625 |
+
else{$reImgAlt='Share On Reddit';}
|
626 |
+
//get stumbleupon button image alt/title
|
627 |
+
if(isset($pluginOptionsVal['csbwfs_page_st_title']) && $pluginOptionsVal['csbwfs_page_st_title']!=''){ $stImgAlt=$pluginOptionsVal['csbwfs_page_st_title'];}
|
628 |
+
else{$stImgAlt='Share On Stumbleupon';}
|
629 |
|
630 |
//get email message
|
631 |
if(is_page() || is_single() || is_category() || is_archive()){
|
648 |
$btnText='Share This!';
|
649 |
endif;
|
650 |
|
651 |
+
$shareButtonContent='<div id="socialButtonOnPage" class="'.$btnPosition.'SocialButtonOnPage"><div class="sharethis-arrow" title="'.$btnText.'"><span>'.$btnText.'</span></div>';
|
652 |
/* Facebook*/
|
653 |
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
654 |
$shareButtonContent.='<div class="csbwfs-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;"
|
655 |
+
target="_blank" title="'.$fImgAlt.'"> <img src="'.$fImg.'" alt="'.$fImgAlt.'"></a></div></div>';
|
656 |
endif;
|
657 |
|
658 |
/* Twitter */
|
659 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
660 |
+
$shareButtonContent.='<div class="csbwfs-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\')" title="'.$tImgAlt.'"><img src="'.$tImg.'" alt="'.$tImgAlt.'"></a></div></div>';
|
661 |
endif;
|
662 |
|
663 |
/* Google Plus */
|
664 |
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
665 |
+
$shareButtonContent.='<div class="csbwfs-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;" title="'.$gImgAlt.'"> <img src="'.$gImg.'" alt="'.$gImgAlt.'"></a></div>
|
|
|
666 |
</div>';
|
667 |
endif;
|
668 |
|
669 |
/* Linkedin */
|
670 |
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
671 |
+
$shareButtonContent.='<div class="csbwfs-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;" title="'.$lImgAlt.'"><img src="'.$lImg.'" alt="'.$lImgAlt.'"></a></div></div>';
|
672 |
endif;
|
673 |
|
674 |
/* Pinterest */
|
675 |
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
676 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="pin-p"><a onclick="window.open(\'http://pinterest.com/pin/create/button/?url='.$shareurl.'&media='.$pinShareImg.'&description='.$ShareTitle.':'.$shareurl.'\',\'pinIt\',\'toolbar=0,status=0,width=620,height=500\');" href="javascript:void(0);" title="'.$pImgAlt.'"><img src="'.$pImg.'" alt="'.$pImgAlt.'"></a></div></div>';
|
677 |
endif;
|
678 |
|
679 |
/* Youtube */
|
680 |
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
681 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="yt-p"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" title="'.$ytImgAlt.'"><img src="'.$ytImg.'" alt="'.$ytImgAlt.'"></a></div></div>';
|
682 |
endif;
|
683 |
/* Stumbleen */
|
684 |
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
685 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="st-p"><a onclick="window.open(\'http://www.stumbleupon.com/submit?url='.$shareurl.'&title='.$ShareTitle.'\',\'Stumbleupon\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" title="'.$stImgAlt.'"><img src="'.$stImg.'" alt="'.$stImgAlt.'"></a></div></div>';
|
686 |
endif;
|
|
|
687 |
/* Reddit */
|
688 |
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
689 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="re-p"><a onclick="window.open(\'http://reddit.com/submit?url='.$shareurl.'&title='.$ShareTitle.'\',\'Reddit\',\'toolbar=0,status=0,width=1000,height=800\');" href="javascript:void(0);" title="'.$reImgAlt.'"><img src="'.$reImg.'" alt="'.$reImgAlt.'"></a></div></div>';
|
690 |
endif;
|
|
|
|
|
691 |
/* Email */
|
692 |
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
693 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'"><img src="'.$mImg.'" alt="'.$mImgAlt.'"></a></div></div>';
|
694 |
endif;
|
695 |
$shareButtonContent.='</div>';
|
696 |
|
712 |
if(is_archive() && $pluginOptionsVal['csbwfs_page_hide_archive']!='yes'):
|
713 |
$shareButtonContent='';
|
714 |
endif;
|
715 |
+
/** hide on 404 pages */
|
716 |
+
if(is_404()):
|
717 |
+
$shareButtonContent='';
|
718 |
+
endif;
|
719 |
|
720 |
+
/** Buttons position on content */
|
721 |
if($shareButtonContent!=''):
|
722 |
+
return $content.$shareButtonContent;
|
723 |
+
else:
|
724 |
return $content;
|
725 |
+
endif;
|
726 |
}
|
727 |
|
728 |
/*
|
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:
|
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;}
|
css/csbwfs-.css
DELETED
@@ -1,76 +0,0 @@
|
|
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 |
-
.csbwfs-social-widget {
|
7 |
-
position: fixed;
|
8 |
-
width: 50px;
|
9 |
-
z-index: 99999;
|
10 |
-
}
|
11 |
-
|
12 |
-
.csbwfs-social-widget .csbwfs-sbutton {background: none;float: right;height: 41px;margin: 0;padding: 0;position: relative;width: 50px;}
|
13 |
-
.csbwfs-sbutton img{padding:5px;}
|
14 |
-
|
15 |
-
#csbwfs-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)}
|
16 |
-
|
17 |
-
#csbwfs-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;}
|
18 |
-
|
19 |
-
#csbwfs-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;}
|
20 |
-
|
21 |
-
#csbwfs-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;}
|
22 |
-
|
23 |
-
#csbwfs-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;}
|
24 |
-
|
25 |
-
#csbwfs-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;}
|
26 |
-
#csbwfs-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;}
|
27 |
-
#csbwfs-re a{background:none repeat scroll 0 0 #FF1A00; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
|
28 |
-
#csbwfs-st a{background:none repeat scroll 0 0 #EB4924; text-align:center; display:block; width:45px; height:40px; border-bottom:1px solid rgba(255, 255, 255, 0.1); outline:none;}
|
29 |
-
#csbwfs-right #csbwfs-re, #csbwfs-st,#csbwfs-yt, #csbwfs-ml,#csbwfs-pin,#csbwfs-gp,#csbwfs-tw,#csbwfs-fb a {position: absolute; right: 0;}
|
30 |
-
#csbwfs-right a#csbwfs-hide {padding-right:33px;}
|
31 |
-
#csbwfs-right a#csbwfs-show {float:right;}
|
32 |
-
|
33 |
-
/* Bottom Position */
|
34 |
-
#csbwfs-bottom #csbwfs-re, #csbwfs-st,#csbwfs-yt, #csbwfs-ml,#csbwfs-pin,#csbwfs-gp,#csbwfs-tw,#csbwfs-fb a {
|
35 |
-
bottom: 0; height: 45px; border-radius: 3px 3px 0px 0px;
|
36 |
-
box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
|
37 |
-
}
|
38 |
-
|
39 |
-
#csbwfs-bottom {width:100%;margin:0 auto; text-align:center; bottom: 0 !important; }
|
40 |
-
#csbwfs-bottom .csbwfs-hide{display:none !important;}
|
41 |
-
#csbwfs-bottom .csbwfs-sbutton{
|
42 |
-
background: none repeat scroll 0 0 rgba(0, 0, 0, 0);
|
43 |
-
display: inline-block;
|
44 |
-
float: none;
|
45 |
-
margin: 0 auto;
|
46 |
-
position: relative;
|
47 |
-
width: 47px;
|
48 |
-
|
49 |
-
}
|
50 |
-
#csbwfs-bottom .csbwfs-sbutton img {width: 31px;
|
51 |
-
height: 30px;
|
52 |
-
opacity: 0.7;
|
53 |
-
}
|
54 |
-
#csbwfs-bottom .csbwfs-sbutton img:hover{opacity:1;}
|
55 |
-
/* Share buttons CSS */
|
56 |
-
/* Custom Share Buttons Style*/
|
57 |
-
#socialButtonOnPage {width:100%;display:inline-block;float:left; }
|
58 |
-
#socialButtonOnPage .csbwfs-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);}
|
59 |
-
#socialButtonOnPage .csbwfs-sbutton-post img:hover{opacity:1;}
|
60 |
-
#socialButtonOnPage .sharethis-arrow span:hover{cursor:pointer;}
|
61 |
-
|
62 |
-
#socialButtonOnPage .sharethis-arrow span{ color: #FFFFFF;
|
63 |
-
display: inline-block;
|
64 |
-
font-size: 16px;
|
65 |
-
font-style: italic;
|
66 |
-
font-weight: bold;}
|
67 |
-
|
68 |
-
/* Left Position */
|
69 |
-
.leftSocialButtonOnPage .csbwfs-sbutton-post {float:left; padding:5px 1px;}
|
70 |
-
.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; }
|
71 |
-
.leftSocialButtonOnPage .sharethis-arrow span{ padding-left: 12px;}
|
72 |
-
|
73 |
-
/* Right Position */
|
74 |
-
.rightSocialButtonOnPage .csbwfs-sbutton-post {float:right; padding:5px 1px;}
|
75 |
-
.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;}
|
76 |
-
.rightSocialButtonOnPage .sharethis-arrow span{padding-left: 12px;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
custom-share-buttons-with-floating-sidebar.php
CHANGED
@@ -2,13 +2,13 @@
|
|
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
|
6 |
Author: Raghunath
|
7 |
Author URI: http://raghunathgurjar.wordpress.com
|
8 |
-
Version: 1
|
9 |
*/
|
10 |
|
11 |
-
/* Copyright
|
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
|
@@ -25,9 +25,9 @@ Version: 1.9
|
|
25 |
*/
|
26 |
|
27 |
//Admin "Custom Share Buttons with Floating Sidebar" Menu Item
|
28 |
-
|
29 |
-
if(!function_exists('csbwf_sidebar_menu')){
|
30 |
add_action('admin_menu','csbwf_sidebar_menu');
|
|
|
31 |
function csbwf_sidebar_menu(){
|
32 |
|
33 |
add_options_page('Custom Share Buttons With Floating Sidebar','Custom Share Buttons With Floating Sidebar','manage_options','csbwfs-settings','csbwf_sidebar_admin_option_page');
|
@@ -77,16 +77,32 @@ function csbwf_sidebar_init(){
|
|
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 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
81 |
//Options for post/pages
|
82 |
register_setting('csbwf_sidebar_options','csbwfs_buttons_active');
|
83 |
register_setting('csbwf_sidebar_options','csbwfs_page_hide_home');
|
84 |
register_setting('csbwf_sidebar_options','csbwfs_page_hide_post');
|
85 |
register_setting('csbwf_sidebar_options','csbwfs_page_hide_page');
|
86 |
register_setting('csbwf_sidebar_options','csbwfs_page_hide_archive');
|
87 |
-
|
88 |
register_setting('csbwf_sidebar_options','csbwfs_hide_home');
|
89 |
-
|
90 |
register_setting('csbwf_sidebar_options','csbwfs_page_fb_image');
|
91 |
register_setting('csbwf_sidebar_options','csbwfs_page_tw_image');
|
92 |
register_setting('csbwf_sidebar_options','csbwfs_page_li_image');
|
@@ -97,7 +113,6 @@ function csbwf_sidebar_init(){
|
|
97 |
register_setting('csbwf_sidebar_options','csbwfs_page_st_image');
|
98 |
register_setting('csbwf_sidebar_options','csbwfs_page_yt_image');
|
99 |
/** message content */
|
100 |
-
|
101 |
register_setting('csbwf_sidebar_options','csbwfs_show_btn');
|
102 |
register_setting('csbwf_sidebar_options','csbwfs_hide_btn');
|
103 |
register_setting('csbwf_sidebar_options','csbwfs_share_msg');
|
@@ -118,43 +133,36 @@ if(!function_exists('csbwfs_add_settings_link')):
|
|
118 |
return $links;
|
119 |
}
|
120 |
endif;
|
121 |
-
|
122 |
-
|
123 |
|
124 |
-
add_action('admin_footer','add_csbwfs_admin_style_script');
|
125 |
|
|
|
126 |
if(!function_exists('add_csbwfs_admin_style_script')):
|
127 |
function add_csbwfs_admin_style_script()
|
128 |
{
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
wp_register_style( 'csbwf_admin_style', plugins_url( 'css/admin-csbwfs.css',__FILE__ ) );
|
130 |
wp_enqueue_style( 'csbwf_admin_style' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
131 |
|
132 |
-
echo $script='<script type="text/javascript">
|
133 |
-
/* Custom Share Buttons With Floting Sidebar admin js*/
|
134 |
-
jQuery(document).ready(function(){
|
135 |
-
jQuery(".csbwfs-tab").hide();
|
136 |
-
jQuery("#div-csbwfs-general").show();
|
137 |
-
jQuery(".csbwf-tab-links").click(function(){
|
138 |
-
var divid=jQuery(this).attr("id");
|
139 |
-
jQuery(".csbwf-tab-links").removeClass("active");
|
140 |
-
jQuery(".csbwfs-tab").hide();
|
141 |
-
jQuery("#"+divid).addClass("active");
|
142 |
-
jQuery("#div-"+divid).fadeIn();
|
143 |
-
});
|
144 |
-
jQuery("#publish5").click(function(){
|
145 |
-
if(jQuery("#publish5").prop("checked"))
|
146 |
-
{jQuery("#mailmsg").show();}else{jQuery("#mailmsg").hide();}
|
147 |
-
});
|
148 |
-
|
149 |
-
jQuery("#ytBtns").click(function(){
|
150 |
-
if(jQuery("#ytBtns").prop("checked"))
|
151 |
-
{jQuery("#ytpath").show();}else{jQuery("#ytpath").hide();}
|
152 |
-
});
|
153 |
-
})
|
154 |
-
</script>';
|
155 |
-
|
156 |
-
}
|
157 |
-
endif;
|
158 |
/** Display the Options form for CSBWFS */
|
159 |
if(!function_exists('csbwf_sidebar_admin_option_page')):
|
160 |
function csbwf_sidebar_admin_option_page(){ ?>
|
@@ -172,9 +180,10 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
172 |
<!-- General Setting -->
|
173 |
<div class="first csbwfs-tab" id="div-csbwfs-general">
|
174 |
<h2>General Settings</h2>
|
175 |
-
|
|
|
176 |
<p><h3><strong><?php _e('Social Share Button Publish Options:','csbwfs');?></strong></h3></p>
|
177 |
-
<p><input type="checkbox" id="publish1" value="yes" name="csbwfs_fpublishBtn" <?php if(get_option('csbwfs_fpublishBtn')=='yes'){echo 'checked="checked"';}
|
178 |
<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>
|
179 |
<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>
|
180 |
<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>
|
@@ -219,68 +228,55 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
219 |
<td><input type="checkbox" id="csbwfs_deactive_for_mob" name="csbwfs_deactive_for_mob" value="yes" <?php if(get_option('csbwfs_deactive_for_mob')=='yes'){echo 'checked="checked"';}?>/> <strong><?php _e('Disable Sidebar For Mobile','csbwfs');?></strong></td>
|
220 |
</tr>
|
221 |
<tr><th> </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"';}?>/> <strong>Hide Sidebar On Home Page </strong></td></tr>
|
222 |
-
<tr><td colspan="2"><strong><h4>Social Share Button Images
|
223 |
<tr>
|
224 |
-
|
225 |
-
|
226 |
-
|
227 |
-
|
228 |
-
</td>
|
229 |
</tr>
|
230 |
-
<tr>
|
231 |
-
<
|
232 |
-
<
|
233 |
-
|
234 |
-
<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"/>
|
235 |
</td>
|
236 |
</tr>
|
237 |
<tr>
|
238 |
<th><?php echo 'Linkdin:';?></th>
|
239 |
-
<td>
|
240 |
-
|
241 |
-
<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"/>
|
242 |
</td>
|
243 |
</tr>
|
244 |
-
<tr>
|
245 |
-
<
|
246 |
-
<
|
247 |
-
|
248 |
-
<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"/>
|
249 |
</td>
|
250 |
</tr>
|
251 |
-
<tr>
|
252 |
-
<
|
253 |
-
<
|
254 |
-
|
255 |
-
<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"/>
|
256 |
</td>
|
257 |
</tr>
|
258 |
-
<tr>
|
259 |
-
<
|
260 |
-
<
|
261 |
-
<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"/>
|
262 |
</td>
|
263 |
</tr>
|
264 |
-
<tr>
|
265 |
-
<
|
266 |
-
<
|
267 |
-
|
268 |
</td>
|
269 |
</tr>
|
270 |
-
<tr>
|
271 |
-
<
|
272 |
-
<
|
273 |
-
<input type="textbox" id="csbwfs_re_image" name="csbwfs_re_image" value="<?php echo get_option('csbwfs_re_image'); ?>" placeholder="Insert reddit button image path" size="30"/> <input type="textbox" id="csbwfs_re_bg" name="csbwfs_re_bg" value="<?php echo get_option('csbwfs_re_bg'); ?>" placeholder="BG color:#FF1A00" size="20"/>
|
274 |
</td>
|
275 |
</tr>
|
276 |
-
<tr>
|
277 |
-
<
|
278 |
-
<
|
279 |
-
<input type="textbox" id="csbwfs_st_image" name="csbwfs_st_image" value="<?php echo get_option('csbwfs_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="30"/> <input type="textbox" id="csbwfs_st_bg" name="csbwfs_st_bg" value="<?php echo get_option('csbwfs_st_bg'); ?>" placeholder="BG color:#EB4924" size="20"/>
|
280 |
</td>
|
281 |
-
</tr>
|
282 |
-
|
283 |
-
|
284 |
<tr><td colspan="2"><h3><strong>Style(Optional):</strong></h3></td></tr>
|
285 |
|
286 |
<tr>
|
@@ -315,7 +311,6 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
315 |
</select>
|
316 |
</td>
|
317 |
</tr>
|
318 |
-
|
319 |
<tr>
|
320 |
<th nowrap><?php echo 'Share Button Text:';?></th>
|
321 |
<td>
|
@@ -325,67 +320,65 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
325 |
<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>
|
326 |
</td></tr>
|
327 |
|
328 |
-
<tr><td colspan="2"><strong><h4>Social Share Button Images
|
329 |
-
<tr>
|
330 |
-
<
|
331 |
-
|
332 |
-
|
333 |
-
<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"/>
|
334 |
</td>
|
335 |
</tr>
|
336 |
<tr>
|
337 |
<th><?php echo 'Twitter:';?></th>
|
338 |
-
<td>
|
339 |
-
|
340 |
-
<input type="
|
341 |
</td>
|
342 |
</tr>
|
343 |
-
<tr>
|
344 |
-
<
|
345 |
-
<
|
346 |
-
|
347 |
-
<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"/>
|
348 |
</td>
|
349 |
</tr>
|
350 |
<tr>
|
351 |
<th><?php echo 'Pintrest:';?></th>
|
352 |
-
<td
|
353 |
-
|
354 |
-
<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"/>
|
355 |
</td>
|
356 |
</tr>
|
357 |
<tr>
|
358 |
-
<th><?php echo 'Google:';?></th>
|
359 |
-
<td>
|
360 |
-
|
361 |
-
<input type="
|
362 |
</td>
|
363 |
</tr>
|
364 |
<tr>
|
365 |
-
<th><?php echo '
|
366 |
-
<td>
|
367 |
-
<input type="
|
|
|
368 |
</td>
|
369 |
</tr>
|
370 |
<tr>
|
371 |
-
<th><?php echo '
|
372 |
-
<td>
|
373 |
-
<input type="
|
|
|
374 |
</td>
|
375 |
</tr>
|
376 |
<tr>
|
377 |
-
<th><?php echo '
|
378 |
-
<td>
|
379 |
-
<input type="
|
|
|
380 |
</td>
|
381 |
</tr>
|
382 |
<tr>
|
383 |
-
<th><?php echo '
|
384 |
-
<td>
|
385 |
-
<input type="
|
|
|
386 |
</td>
|
387 |
</tr>
|
388 |
-
|
389 |
</table>
|
390 |
|
391 |
</div>
|
@@ -399,13 +392,15 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
399 |
<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>
|
400 |
<p><a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact Author</a></p>
|
401 |
<p><strong>My Other Plugins:</strong><br>
|
402 |
-
<
|
403 |
<li><a href="https://wordpress.org/plugins/protect-wp-admin/" target="_blank">Protect WP-Admin</a></li>
|
404 |
<li><a href="https://wordpress.org/plugins/wp-testimonial/" target="_blank">WP Testimonial</a></li>
|
405 |
-
<li><a href="https://wordpress.org/plugins/
|
|
|
406 |
<li><a href="https://wordpress.org/plugins/wp-social-buttons/" target="_blank">WP Social Buttons</a></li>
|
407 |
<li><a href="https://wordpress.org/plugins/wp-youtube-gallery/" target="_blank">WP Youtube Gallery</a></li>
|
408 |
-
</
|
|
|
409 |
</div>
|
410 |
<!-- GO PRO -->
|
411 |
<div class="last author csbwfs-tab" id="div-csbwfs-pro">
|
@@ -413,16 +408,22 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
413 |
<h2>GO PRO</h2>
|
414 |
<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>
|
415 |
<ol>
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
423 |
</ol>
|
424 |
-
<p><a href="http://csbwfs.mrwebsolution.in/" target="_blank"
|
425 |
-
<p><a
|
426 |
<p> <a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact To Author</a></p>
|
427 |
|
428 |
</div>
|
@@ -455,7 +456,6 @@ if( function_exists('register_uninstall_hook') )
|
|
455 |
|
456 |
//Delete all Custom Tweets options after delete the plugin from admin
|
457 |
function csbwf_sidebar_uninstall(){
|
458 |
-
|
459 |
delete_option('csbwfs_active');
|
460 |
delete_option('csbbuttons_active');
|
461 |
delete_option('csbwfs_position');
|
@@ -494,6 +494,15 @@ function csbwf_sidebar_uninstall(){
|
|
494 |
delete_option('csbwfs_page_hide_home');
|
495 |
delete_option('csbwfs_page_hide_post');
|
496 |
delete_option('csbwfs_page_hide_page');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
497 |
delete_option('csbwfs_page_fb_image');
|
498 |
delete_option('csbwfs_page_tw_image');
|
499 |
delete_option('csbwfs_page_li_image');
|
@@ -508,5 +517,5 @@ function csbwf_sidebar_uninstall(){
|
|
508 |
delete_option('csbwfs_defaultfeaturedshrimg');
|
509 |
delete_option('csbwfs_deactive_for_mob');
|
510 |
|
511 |
-
}
|
512 |
?>
|
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 edit share buttons if you wish
|
6 |
Author: Raghunath
|
7 |
Author URI: http://raghunathgurjar.wordpress.com
|
8 |
+
Version: 2.1
|
9 |
*/
|
10 |
|
11 |
+
/* Copyright 2015 custom-share-buttons-with-floating-sidebar (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
|
25 |
*/
|
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');
|
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 |
+
/** Image Alt */
|
81 |
+
register_setting('csbwf_sidebar_options','csbwfs_fb_title');
|
82 |
+
register_setting('csbwf_sidebar_options','csbwfs_tw_title');
|
83 |
+
register_setting('csbwf_sidebar_options','csbwfs_li_title');
|
84 |
+
register_setting('csbwf_sidebar_options','csbwfs_pin_title');
|
85 |
+
register_setting('csbwf_sidebar_options','csbwfs_gp_title');
|
86 |
+
register_setting('csbwf_sidebar_options','csbwfs_mail_title');
|
87 |
+
register_setting('csbwf_sidebar_options','csbwfs_yt_title');
|
88 |
+
register_setting('csbwf_sidebar_options','csbwfs_re_title');
|
89 |
+
register_setting('csbwf_sidebar_options','csbwfs_st_title');
|
90 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_fb_title');
|
91 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_tw_title');
|
92 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_li_title');
|
93 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_pin_title');
|
94 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_gp_title');
|
95 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_mail_title');
|
96 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_yt_title');
|
97 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_re_title');
|
98 |
+
register_setting('csbwf_sidebar_options','csbwfs_page_st_title');
|
99 |
//Options for post/pages
|
100 |
register_setting('csbwf_sidebar_options','csbwfs_buttons_active');
|
101 |
register_setting('csbwf_sidebar_options','csbwfs_page_hide_home');
|
102 |
register_setting('csbwf_sidebar_options','csbwfs_page_hide_post');
|
103 |
register_setting('csbwf_sidebar_options','csbwfs_page_hide_page');
|
104 |
register_setting('csbwf_sidebar_options','csbwfs_page_hide_archive');
|
|
|
105 |
register_setting('csbwf_sidebar_options','csbwfs_hide_home');
|
|
|
106 |
register_setting('csbwf_sidebar_options','csbwfs_page_fb_image');
|
107 |
register_setting('csbwf_sidebar_options','csbwfs_page_tw_image');
|
108 |
register_setting('csbwf_sidebar_options','csbwfs_page_li_image');
|
113 |
register_setting('csbwf_sidebar_options','csbwfs_page_st_image');
|
114 |
register_setting('csbwf_sidebar_options','csbwfs_page_yt_image');
|
115 |
/** message content */
|
|
|
116 |
register_setting('csbwf_sidebar_options','csbwfs_show_btn');
|
117 |
register_setting('csbwf_sidebar_options','csbwfs_hide_btn');
|
118 |
register_setting('csbwf_sidebar_options','csbwfs_share_msg');
|
133 |
return $links;
|
134 |
}
|
135 |
endif;
|
136 |
+
$plugin = plugin_basename( __FILE__ );
|
137 |
+
add_filter( "plugin_action_links_$plugin", 'csbwfs_add_settings_link' );
|
138 |
|
|
|
139 |
|
140 |
+
if (isset($_GET['page']) && $_GET['page'] == 'csbwfs-settings') {
|
141 |
if(!function_exists('add_csbwfs_admin_style_script')):
|
142 |
function add_csbwfs_admin_style_script()
|
143 |
{
|
144 |
+
wp_enqueue_style( 'wp-color-picker' );
|
145 |
+
wp_enqueue_script('media-upload');
|
146 |
+
wp_enqueue_script('thickbox');
|
147 |
+
wp_register_script('csbwfs-image-upload', plugins_url('/js/csbwfs.js',__FILE__ ), array('jquery','media-upload','thickbox','wp-color-picker'));
|
148 |
+
wp_enqueue_script('csbwfs-image-upload');
|
149 |
+
|
150 |
+
}
|
151 |
+
endif;
|
152 |
+
|
153 |
+
function csbwfs_admin_styles() {
|
154 |
wp_register_style( 'csbwf_admin_style', plugins_url( 'css/admin-csbwfs.css',__FILE__ ) );
|
155 |
wp_enqueue_style( 'csbwf_admin_style' );
|
156 |
+
wp_enqueue_style( 'wp-color-picker' );
|
157 |
+
wp_enqueue_style('thickbox');
|
158 |
+
}
|
159 |
+
|
160 |
+
// better use get_current_screen(); or the global $current_screen
|
161 |
+
|
162 |
+
add_action('admin_print_styles', 'csbwfs_admin_styles');
|
163 |
+
add_action('admin_footer','add_csbwfs_admin_style_script');
|
164 |
+
}
|
165 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
166 |
/** Display the Options form for CSBWFS */
|
167 |
if(!function_exists('csbwf_sidebar_admin_option_page')):
|
168 |
function csbwf_sidebar_admin_option_page(){ ?>
|
180 |
<!-- General Setting -->
|
181 |
<div class="first csbwfs-tab" id="div-csbwfs-general">
|
182 |
<h2>General Settings</h2>
|
183 |
+
<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>
|
184 |
+
|
185 |
<p><h3><strong><?php _e('Social Share Button Publish Options:','csbwfs');?></strong></h3></p>
|
186 |
+
<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>
|
187 |
<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>
|
188 |
<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>
|
189 |
<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>
|
228 |
<td><input type="checkbox" id="csbwfs_deactive_for_mob" name="csbwfs_deactive_for_mob" value="yes" <?php if(get_option('csbwfs_deactive_for_mob')=='yes'){echo 'checked="checked"';}?>/> <strong><?php _e('Disable Sidebar For Mobile','csbwfs');?></strong></td>
|
229 |
</tr>
|
230 |
<tr><th> </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"';}?>/> <strong>Hide Sidebar On Home Page </strong></td></tr>
|
231 |
+
<tr><td colspan="2"><strong><h4>Social Share Button Images 32X32 (Optional) :</h4></strong></td></tr>
|
232 |
<tr>
|
233 |
+
<th><?php echo 'Facebook:';?></th>
|
234 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg">
|
235 |
+
<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"/> <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"/> <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"/>
|
236 |
+
</td>
|
|
|
237 |
</tr>
|
238 |
+
<tr><th><?php echo 'Twitter:';?></th>
|
239 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg">
|
240 |
+
<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"/> <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"/> <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"/>
|
|
|
|
|
241 |
</td>
|
242 |
</tr>
|
243 |
<tr>
|
244 |
<th><?php echo 'Linkdin:';?></th>
|
245 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg">
|
246 |
+
<input type="text" id="csbwfs_li_image" name="csbwfs_li_image" value="<?php echo get_option('csbwfs_li_image'); ?>" placeholder="Insert linkdin button image path" class="inputButtonid" size="30" class="buttonimg"/><input id="csbwfs_li_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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"/> <input type="text" id="csbwfs_li_title" name="csbwfs_li_title" value="<?php echo get_option('csbwfs_li_title'); ?>" placeholder="Share on linkdin" size="20"/>
|
|
|
247 |
</td>
|
248 |
</tr>
|
249 |
+
<tr><th><?php echo 'Pintrest:';?></th>
|
250 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg">
|
251 |
+
<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"/> <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"/> <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"/>
|
|
|
|
|
252 |
</td>
|
253 |
</tr>
|
254 |
+
<tr><th><?php echo 'Google Plus:';?></th>
|
255 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsGoImg">
|
256 |
+
<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"/> <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"/> <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"/>
|
|
|
|
|
257 |
</td>
|
258 |
</tr>
|
259 |
+
<tr><th><?php echo 'Reddit:';?></th>
|
260 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsReImg">
|
261 |
+
<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"/> <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"/> <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"/>
|
|
|
262 |
</td>
|
263 |
</tr>
|
264 |
+
<tr><th><?php echo 'Stumbleupon:';?></th>
|
265 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsStImg">
|
266 |
+
<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"/> <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"/>
|
267 |
+
<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"/>
|
268 |
</td>
|
269 |
</tr>
|
270 |
+
<tr><th><?php echo 'Mail:';?></th>
|
271 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsMaImg">
|
272 |
+
<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"/> <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"/> <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"/>
|
|
|
273 |
</td>
|
274 |
</tr>
|
275 |
+
<tr><th><?php echo 'Youtube:';?></th>
|
276 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg">
|
277 |
+
<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"/> <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"/> <input type="text" id="csbwfs_yt_title" name="csbwfs_yt_title" value="<?php echo get_option('csbwfs_yt_title'); ?>" placeholder="Youtube" size="20"/>
|
|
|
278 |
</td>
|
279 |
+
</tr>
|
|
|
|
|
280 |
<tr><td colspan="2"><h3><strong>Style(Optional):</strong></h3></td></tr>
|
281 |
|
282 |
<tr>
|
311 |
</select>
|
312 |
</td>
|
313 |
</tr>
|
|
|
314 |
<tr>
|
315 |
<th nowrap><?php echo 'Share Button Text:';?></th>
|
316 |
<td>
|
320 |
<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>
|
321 |
</td></tr>
|
322 |
|
323 |
+
<tr><td colspan="2"><strong><h4>Social Share Button Images 32X32 (Optional) :</h4></strong></td></tr>
|
324 |
+
<tr><th><?php echo 'Facebook:';?></th>
|
325 |
+
<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"/>
|
326 |
+
<input id="csbwfs_fb_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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"/>
|
|
|
|
|
327 |
</td>
|
328 |
</tr>
|
329 |
<tr>
|
330 |
<th><?php echo 'Twitter:';?></th>
|
331 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg2">
|
332 |
+
<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"/>
|
333 |
+
<input id="csbwfs_tw_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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"/>
|
334 |
</td>
|
335 |
</tr>
|
336 |
+
<tr><th><?php echo 'Linkdin:';?></th>
|
337 |
+
<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 linkdin button image path" size="40" class="inputButtonid"/>
|
338 |
+
<input id="csbwfs_li_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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"/>
|
|
|
|
|
339 |
</td>
|
340 |
</tr>
|
341 |
<tr>
|
342 |
<th><?php echo 'Pintrest:';?></th>
|
343 |
+
<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"/>
|
344 |
+
<input id="csbwfs_pi_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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"/>
|
|
|
345 |
</td>
|
346 |
</tr>
|
347 |
<tr>
|
348 |
+
<th><?php echo 'Google Plus:';?></th>
|
349 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsGpImg2">
|
350 |
+
<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"/>
|
351 |
+
<input id="csbwfs_gp_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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"/>
|
352 |
</td>
|
353 |
</tr>
|
354 |
<tr>
|
355 |
+
<th><?php echo 'Reddit:';?></th>
|
356 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsReImg2">
|
357 |
+
<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"/>
|
358 |
+
<input id="csbwfs_re_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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"/>
|
359 |
</td>
|
360 |
</tr>
|
361 |
<tr>
|
362 |
+
<th><?php echo 'Stumbleupon:';?></th>
|
363 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsStImg2">
|
364 |
+
<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"/>
|
365 |
+
<input id="csbwfs_st_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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"/>
|
366 |
</td>
|
367 |
</tr>
|
368 |
<tr>
|
369 |
+
<th><?php echo 'Mail:';?></th>
|
370 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsMlImg2">
|
371 |
+
<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"/>
|
372 |
+
<input id="csbwfs_ml_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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"/>
|
373 |
</td>
|
374 |
</tr>
|
375 |
<tr>
|
376 |
+
<th><?php echo 'Youtube:';?></th>
|
377 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg2">
|
378 |
+
<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"/>
|
379 |
+
<input id="csbwfs_yt_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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"/>
|
380 |
</td>
|
381 |
</tr>
|
|
|
382 |
</table>
|
383 |
|
384 |
</div>
|
392 |
<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>
|
393 |
<p><a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact Author</a></p>
|
394 |
<p><strong>My Other Plugins:</strong><br>
|
395 |
+
<ol>
|
396 |
<li><a href="https://wordpress.org/plugins/protect-wp-admin/" target="_blank">Protect WP-Admin</a></li>
|
397 |
<li><a href="https://wordpress.org/plugins/wp-testimonial/" target="_blank">WP Testimonial</a></li>
|
398 |
+
<li><a href="https://wordpress.org/plugins/cf7-advance-security" target="_blank">Contact Form 7 Advance Security WP-Admin</a></li>
|
399 |
+
<li><a href="https://wordpress.org/plugins/wc-sales-count-manager/" target="_blank">WooCommerce Sales Count Manager</a></li>
|
400 |
<li><a href="https://wordpress.org/plugins/wp-social-buttons/" target="_blank">WP Social Buttons</a></li>
|
401 |
<li><a href="https://wordpress.org/plugins/wp-youtube-gallery/" target="_blank">WP Youtube Gallery</a></li>
|
402 |
+
<li><a href="https://wordpress.org/plugins/wp-easy-recipe/" target="_blank">WP Easy Recipe</a></li>
|
403 |
+
</ol>
|
404 |
</div>
|
405 |
<!-- GO PRO -->
|
406 |
<div class="last author csbwfs-tab" id="div-csbwfs-pro">
|
408 |
<h2>GO PRO</h2>
|
409 |
<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>
|
410 |
<ol>
|
411 |
+
<li>Responsive Floating Sidebar</li>
|
412 |
+
<li>Hide Floating Sidebar On Home/Post/Page/Category</li>
|
413 |
+
<li>Option for Show/Hide sidebar on any specific page/post</li>
|
414 |
+
<li>Responsive Lightbox Contact Form (for Mail Icon)</li>
|
415 |
+
<li>Option for add to <strong>“Contact Form 7″</strong> Shortcode into lightbox</li>
|
416 |
+
<li>Advance Feature For Choose To Pinterest Share Image</li>
|
417 |
+
<li>Option for add to OG tags content(title,image,content)</li>
|
418 |
+
<li>Option for add to social site official page URL for all social buttons</li>
|
419 |
+
<li>Extra Buttons (Google Translate,Instagram,Whatsapp,Digg,Yummly,Vk, Buffer and Print)</li>
|
420 |
+
<li><strong>Option for display to number of share</strong> (Twitter,Facebook,LinkedIn,StumbleUpon,Google Plus,Pinterestand Reddit)</li>
|
421 |
+
<li><strong>Option for change to any button image and their title,background colour and url </strong> (You can use any button as your own custom button)</li>
|
422 |
+
<li><strong>4 Extra Custom Buttons</strong></li>
|
423 |
+
<li>Faster support</li>
|
424 |
</ol>
|
425 |
+
<p><a href="http://csbwfs.mrwebsolution.in/" target="_blank" class="contact-author">Live Demo</a></p>
|
426 |
+
<p><a class="contact-author" href="http://csbwfs.mrwebsolution.in/pro">Buy Now</a></p>
|
427 |
<p> <a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact To Author</a></p>
|
428 |
|
429 |
</div>
|
456 |
|
457 |
//Delete all Custom Tweets options after delete the plugin from admin
|
458 |
function csbwf_sidebar_uninstall(){
|
|
|
459 |
delete_option('csbwfs_active');
|
460 |
delete_option('csbbuttons_active');
|
461 |
delete_option('csbwfs_position');
|
494 |
delete_option('csbwfs_page_hide_home');
|
495 |
delete_option('csbwfs_page_hide_post');
|
496 |
delete_option('csbwfs_page_hide_page');
|
497 |
+
delete_option('csbwfs_fb_title');
|
498 |
+
delete_option('csbwfs_tw_title');
|
499 |
+
delete_option('csbwfs_li_title');
|
500 |
+
delete_option('csbwfs_pin_title');
|
501 |
+
delete_option('csbwfs_gp_title');
|
502 |
+
delete_option('csbwfs_mail_title');
|
503 |
+
delete_option('csbwfs_yt_title');
|
504 |
+
delete_option('csbwfs_re_title');
|
505 |
+
delete_option('csbwfs_st_title');
|
506 |
delete_option('csbwfs_page_fb_image');
|
507 |
delete_option('csbwfs_page_tw_image');
|
508 |
delete_option('csbwfs_page_li_image');
|
517 |
delete_option('csbwfs_defaultfeaturedshrimg');
|
518 |
delete_option('csbwfs_deactive_for_mob');
|
519 |
|
520 |
+
}
|
521 |
?>
|
images/hide-b.png
ADDED
Binary file
|
images/hide-l.png
ADDED
Binary file
|
images/hide-r.png
ADDED
Binary file
|
images/raghu.jpg
CHANGED
Binary file
|
js/csbwfs.js
ADDED
@@ -0,0 +1,44 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* Custom Share Buttons With Floting Sidebar admin js*/
|
2 |
+
jQuery(document).ready(function(){
|
3 |
+
jQuery(".csbwfs-tab").hide();
|
4 |
+
jQuery("#div-csbwfs-general").show();
|
5 |
+
jQuery(".csbwf-tab-links").click(function(){
|
6 |
+
var divid=jQuery(this).attr("id");
|
7 |
+
jQuery(".csbwf-tab-links").removeClass("active");
|
8 |
+
jQuery(".csbwfs-tab").hide();
|
9 |
+
jQuery("#"+divid).addClass("active");
|
10 |
+
jQuery("#div-"+divid).fadeIn();
|
11 |
+
});
|
12 |
+
jQuery("#publish5").click(function(){
|
13 |
+
if(jQuery("#publish5").prop("checked"))
|
14 |
+
{jQuery("#mailmsg").show();}else{jQuery("#mailmsg").hide();}
|
15 |
+
});
|
16 |
+
|
17 |
+
jQuery("#ytBtns").click(function(){
|
18 |
+
if(jQuery("#ytBtns").prop("checked"))
|
19 |
+
{jQuery("#ytpath").show();}else{jQuery("#ytpath").hide();}
|
20 |
+
});
|
21 |
+
/* add image upload image button */
|
22 |
+
jQuery(".cswbfsUploadBtn").click(function() {
|
23 |
+
var tdbuttonid = jQuery(this).parent("td").attr("id");
|
24 |
+
//alert(tdbuttonid);
|
25 |
+
inputfieldId = jQuery("#"+tdbuttonid+" .inputButtonid").attr("id");
|
26 |
+
//alert(inputfieldId);
|
27 |
+
formfield = jQuery("#"+inputfieldId).attr("name");
|
28 |
+
tb_show( "", "media-upload.php?type=image&TB_iframe=true" );
|
29 |
+
return false;
|
30 |
+
});
|
31 |
+
window.send_to_editor = function(html) {
|
32 |
+
imgurl = jQuery("img",html).attr("src");
|
33 |
+
jQuery("#"+inputfieldId).val(imgurl);
|
34 |
+
tb_remove();
|
35 |
+
}
|
36 |
+
});
|
37 |
+
(function( ) {
|
38 |
+
|
39 |
+
// Add Color Picker to all inputs that have 'color-field' class
|
40 |
+
jQuery(function() {
|
41 |
+
jQuery('.color-field').wpColorPicker();
|
42 |
+
});
|
43 |
+
|
44 |
+
})( jQuery );
|
readme.txt
CHANGED
@@ -3,20 +3,29 @@ 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.3
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1
|
8 |
|
9 |
-
Add Social Share Buttons
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
-
|
14 |
-
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
16 |
|
17 |
-
**[Upgrade to Pro Version-Server1](http://csbwfs.mrwebsolution.in/pro)**
|
18 |
|
19 |
-
**[Upgrade to Pro Version-Server2](https://raghunathgurjar.wordpress.com/csbwfs-pro/)**
|
20 |
|
21 |
= Features =
|
22 |
|
@@ -41,11 +50,13 @@ We have also released an add-on for Custom Share Buttons With Floating Sidebar w
|
|
41 |
* Option for Show/Hide sidebar on any specific page/post
|
42 |
* Responsive Lightbox Contact Form (for Mail Icon)
|
43 |
* Option for add to “Contact Form 7″ Shortcode into lightbox
|
44 |
-
* Advance Feature For Choose To Pinterest Share Image
|
45 |
-
* Option
|
46 |
-
* Option for add to
|
47 |
-
* Extra Buttons (Google Translate,Instagram,
|
48 |
* Option for display to number of share (Twitter,Facebook,LinkedIn,StumbleUpon,Google Plus,Pinterest and Reddit)
|
|
|
|
|
49 |
* Faster support
|
50 |
|
51 |
|
@@ -53,11 +64,14 @@ We have also released an add-on for Custom Share Buttons With Floating Sidebar w
|
|
53 |
|
54 |
**[Addon Documentation](http://csbwfs.mrwebsolution.in/documentation)**
|
55 |
|
56 |
-
**[Upgrade to Pro Version - Server1](http://csbwfs.mrwebsolution.in/pro)**
|
57 |
|
58 |
-
**[Upgrade to Pro Version - Server2](https://raghunathgurjar.wordpress.com/csbwfs-pro/)**
|
59 |
|
60 |
For any query contact to plugin author on **[raghunath.0087@gmail.com](mailto:raghunath.0087@gmail.com)**
|
|
|
|
|
|
|
61 |
|
62 |
== Installation ==
|
63 |
|
@@ -94,7 +108,7 @@ Step 3. Go to Settings/"Custom Share Buttons with Floating Sidebar" and configur
|
|
94 |
|
95 |
7.Is this mobile friendly OR is this responsive plugin?
|
96 |
|
97 |
-
No,this is not a responsibe plugin but you can use our csbwfs addon, Our CSBWFS ADDON is responsive with some new extra features.Please visit on this [site](http://csbwfs.mrwebsolution.in/
|
98 |
|
99 |
8.Is there any demo site where your plugins have been used?
|
100 |
|
@@ -114,6 +128,16 @@ No,this is not a responsibe plugin but you can use our csbwfs addon, Our CSBWFS
|
|
114 |
|
115 |
== Changelog ==
|
116 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
117 |
= 1.9 =
|
118 |
* Released Pro Version 1.3
|
119 |
* Fixed all suggested issues by users
|
@@ -131,14 +155,12 @@ No,this is not a responsibe plugin but you can use our csbwfs addon, Our CSBWFS
|
|
131 |
* Added an option disable floating sidebar on home page
|
132 |
* Fixed share url issue on home page
|
133 |
|
134 |
-
|
135 |
= 1.6 =
|
136 |
* Added new option for disable floating sidebar for mobile site
|
137 |
* Added two new Stumbleupon and Reddit buttons
|
138 |
* Added options for define Pinterest Share images
|
139 |
* Fixed show/hide button issue
|
140 |
|
141 |
-
|
142 |
= 1.5 =
|
143 |
* Make plugin settings page more stylish
|
144 |
* Added a new option for remove show/hide buttions
|
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.3
|
6 |
+
Tested up to: 4.3.1
|
7 |
+
Stable tag: 2.1
|
8 |
|
9 |
+
Add Social Share Buttons(Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit) Using Floating Sidebar
|
10 |
|
11 |
== Description ==
|
12 |
|
13 |
+
= “custom-share-buttons-with-floating-sidebar” = , it is plugin for social networks. It is very simple plugin for share your site with your friends through social sites,The plugin supports 9 social networking.
|
14 |
+
Your users share via their accounts on popular social networks such as Facebook, Twitter, Linkedin, Pinterest, Google+, Stumbleupon, Reddit, Youtube and Refer a Friend.
|
15 |
+
|
16 |
+
With this plugin, you give users the tools to share your content, product details and other information with their own networks.
|
17 |
+
|
18 |
+
More than 22 billion shares are viewed each and every day on the internet, with sharing becoming an increasingly important part of every website owner’s marketing strategies.
|
19 |
+
|
20 |
+
Let your users share via their accounts on popular social networks. Install this free plugin to enable Social Sharing on your WordPress site and start driving high quality referrals to your website.
|
21 |
+
|
22 |
+
It is lightweight plugin. There are not added any external JS files in this plugin so it’s does not effect on your site speed as well.
|
23 |
+
|
24 |
+
You can add a social share floating sidebar with all social share buttons and Even you can change the share buttons images and their style from admin if you wish!.
|
25 |
|
26 |
+
**[Upgrade to Pro Version - Server1](http://csbwfs.mrwebsolution.in/pro)**
|
27 |
|
28 |
+
**[Upgrade to Pro Version - Server2](https://raghunathgurjar.wordpress.com/csbwfs-pro/)**
|
29 |
|
30 |
= Features =
|
31 |
|
50 |
* Option for Show/Hide sidebar on any specific page/post
|
51 |
* Responsive Lightbox Contact Form (for Mail Icon)
|
52 |
* Option for add to “Contact Form 7″ Shortcode into lightbox
|
53 |
+
* Advance Feature For Choose To Pinterest Share Image
|
54 |
+
* Option for add to OG tags content(title,image,content)
|
55 |
+
* Option for add to social site official page URL for all social buttons
|
56 |
+
* Extra Buttons (Google Translate,Instagram,Whatsapp,Digg,Yummly,Vk, Buffer and Print)
|
57 |
* Option for display to number of share (Twitter,Facebook,LinkedIn,StumbleUpon,Google Plus,Pinterest and Reddit)
|
58 |
+
* Option for change to any button image and their title,background colour and url (You can use any button as your own custom button)
|
59 |
+
* 4 Extra Custom Buttons
|
60 |
* Faster support
|
61 |
|
62 |
|
64 |
|
65 |
**[Addon Documentation](http://csbwfs.mrwebsolution.in/documentation)**
|
66 |
|
67 |
+
**[Upgrade to Pro Version - Server1 ](http://csbwfs.mrwebsolution.in/pro)**
|
68 |
|
69 |
+
**[Upgrade to Pro Version - Server2 ](https://raghunathgurjar.wordpress.com/csbwfs-pro/)**
|
70 |
|
71 |
For any query contact to plugin author on **[raghunath.0087@gmail.com](mailto:raghunath.0087@gmail.com)**
|
72 |
+
|
73 |
+
We have released new version for Magento Site
|
74 |
+
**[Go Pro Magento Version](http://www.magentocommerce.com/magento-connect/social-share-buttons-pro.html)**
|
75 |
|
76 |
== Installation ==
|
77 |
|
108 |
|
109 |
7.Is this mobile friendly OR is this responsive plugin?
|
110 |
|
111 |
+
No,this is not a responsibe plugin but you can use our csbwfs addon, Our CSBWFS ADDON is responsive with some new extra features.Please visit on this [site](http://csbwfs.mrwebsolution.in/pro) for check full details about addon.
|
112 |
|
113 |
8.Is there any demo site where your plugins have been used?
|
114 |
|
128 |
|
129 |
== Changelog ==
|
130 |
|
131 |
+
= 2.1 =
|
132 |
+
* Fixed share buttons css issues
|
133 |
+
* Fixed some minor js conflict issues
|
134 |
+
= 2.0 =
|
135 |
+
* Fixed pinterest share image issue
|
136 |
+
* Fixed youtube buttons url issue
|
137 |
+
* modify layout of plugin settings page
|
138 |
+
* Added options for define the buttons image alt text
|
139 |
+
* Released Pro Version 1.6
|
140 |
+
|
141 |
= 1.9 =
|
142 |
* Released Pro Version 1.3
|
143 |
* Fixed all suggested issues by users
|
155 |
* Added an option disable floating sidebar on home page
|
156 |
* Fixed share url issue on home page
|
157 |
|
|
|
158 |
= 1.6 =
|
159 |
* Added new option for disable floating sidebar for mobile site
|
160 |
* Added two new Stumbleupon and Reddit buttons
|
161 |
* Added options for define Pinterest Share images
|
162 |
* Fixed show/hide button issue
|
163 |
|
|
|
164 |
= 1.5 =
|
165 |
* Make plugin settings page more stylish
|
166 |
* Added a new option for remove show/hide buttions
|