Version Description
- Tested with latest wordpress version 4.5
- Fixed buttons hover animation effect issue.
- Optimized image, html and css
- Updated home page conditions for show/hide social buttons
Download this release
Release Info
Developer | india-web-developer |
Plugin | Custom Share Buttons with Floating Sidebar |
Version | 2.6 |
Comparing to | |
See all releases |
Code changes from version 2.5 to 2.6
- csbwfs-class.php +44 -42
- css/admin-csbwfs.css +0 -0
- css/csbwfs.css +5 -4
- custom-share-buttons-with-floating-sidebar.php +30 -29
- images/fb-p.png +0 -0
- images/fb.png +0 -0
- images/gp-p.png +0 -0
- images/gp.png +0 -0
- images/hide.png +0 -0
- images/in-p.png +0 -0
- images/in.png +0 -0
- images/ml-p.png +0 -0
- images/ml.png +0 -0
- images/mrweb-logo.jpg +0 -0
- images/overlay.png +0 -0
- images/pinit-p.png +0 -0
- images/pinit.png +0 -0
- images/reddit-p.png +0 -0
- images/reddit.png +0 -0
- images/sharethis-l.png +0 -0
- images/sharethis-r.png +0 -0
- images/sharethis.png +0 -0
- images/sharethis_old.png +0 -0
- images/show.png +0 -0
- images/stumbleupon-p.png +0 -0
- images/stumbleupon.png +0 -0
- images/tw-p.png +0 -0
- images/tw.png +0 -0
- images/youtube-p.png +0 -0
- readme.txt +49 -35
csbwfs-class.php
CHANGED
@@ -40,9 +40,10 @@ function csbwfs_get_current_page_url($s, $use_forwarded_host=false)
|
|
40 |
endif;
|
41 |
/*
|
42 |
* Site is browsing in mobile or not
|
43 |
-
* @
|
44 |
* */
|
45 |
-
|
|
|
46 |
// Check the server headers to see if they're mobile friendly
|
47 |
if(isset($_SERVER["HTTP_X_WAP_PROFILE"])) {
|
48 |
return true;
|
@@ -73,12 +74,13 @@ if(isset($_SERVER["HTTP_USER_AGENT"])){
|
|
73 |
// None of the above? Then it's probably not a mobile device.
|
74 |
return false;
|
75 |
}
|
|
|
76 |
// Get plugin options
|
77 |
$pluginOptionsVal=get_csbwf_sidebar_options();
|
78 |
//check plugin in enable or not
|
79 |
if(isset($pluginOptionsVal['csbwfs_active']) && $pluginOptionsVal['csbwfs_active']==1){
|
80 |
|
81 |
-
if((
|
82 |
isset($pluginOptionsVal['csbwfs_deactive_for_mob']) && $pluginOptionsVal['csbwfs_deactive_for_mob']!='')
|
83 |
{
|
84 |
// silent is Gold;
|
@@ -169,15 +171,12 @@ function csbwf_sidebar_load_inline_js()
|
|
169 |
endif;
|
170 |
|
171 |
if($pluginOptionsVal['csbwfs_position']=='right' || $pluginOptionsVal['csbwfs_position']=='left'){
|
172 |
-
|
173 |
-
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
174 |
$jscnt.='jQuery("div.csbwfsbtns a").hover(function(){
|
175 |
jQuery(this).animate({width:animateWidth});
|
176 |
},function(){
|
177 |
jQuery(this).stop( true, true ).animate({width:defaultAnimateWidth});
|
178 |
});';
|
179 |
-
endif;
|
180 |
-
|
181 |
}else
|
182 |
{
|
183 |
//silent
|
@@ -303,7 +302,7 @@ if($pluginOptionsVal['csbwfs_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_fb
|
|
303 |
//get twitter button image
|
304 |
if($pluginOptionsVal['csbwfs_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_tw_image'];}
|
305 |
else{$tImg=plugins_url('images/tw.png',__FILE__);}
|
306 |
-
//get
|
307 |
if($pluginOptionsVal['csbwfs_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_li_image'];}
|
308 |
else{$lImg=plugins_url('images/in.png',__FILE__);}
|
309 |
//get mail button image
|
@@ -337,9 +336,9 @@ else{$fImgAlt='Share On Facebook';}
|
|
337 |
//get twitter button image alt/title
|
338 |
if($pluginOptionsVal['csbwfs_tw_title']!=''){ $tImgAlt=$pluginOptionsVal['csbwfs_tw_title'];}
|
339 |
else{$tImgAlt='Share On Twitter';}
|
340 |
-
//get
|
341 |
if($pluginOptionsVal['csbwfs_li_title']!=''){ $lImgAlt=$pluginOptionsVal['csbwfs_li_title'];}
|
342 |
-
else{$lImgAlt='Share On
|
343 |
//get mail button image alt/title
|
344 |
if($pluginOptionsVal['csbwfs_mail_title']!=''){ $mImgAlt=$pluginOptionsVal['csbwfs_mail_title'];}
|
345 |
else{$mImgAlt='Contact us';}
|
@@ -395,7 +394,7 @@ else{$fImgbg='';}
|
|
395 |
//get twitter button image background color
|
396 |
if($pluginOptionsVal['csbwfs_tw_bg']!=''){ $tImgbg=' style="background:'.$pluginOptionsVal['csbwfs_tw_bg'].';"';}
|
397 |
else{$tImgbg='';}
|
398 |
-
//get
|
399 |
if($pluginOptionsVal['csbwfs_li_bg']!=''){ $lImgbg=' style="background:'.$pluginOptionsVal['csbwfs_li_bg'].';"';}
|
400 |
else{$lImgbg='';}
|
401 |
//get mail button image background color
|
@@ -441,47 +440,47 @@ $flitingSidebarContent .= '<div id="csbwfs-social-inner">';
|
|
441 |
|
442 |
/** FB */
|
443 |
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
444 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-fb" class="csbwfs-fb"><a href="javascript:" onclick="javascript:window.open(\'
|
445 |
endif;
|
446 |
|
447 |
/** TW */
|
448 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
449 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-tw" class="csbwfs-tw"><a href="javascript:" onclick="window.open(\'
|
450 |
endif;
|
451 |
|
452 |
/** GP */
|
453 |
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
454 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-gp" class="csbwfs-gp"><a href="javascript:" onclick="javascript:window.open(\'
|
455 |
endif;
|
456 |
|
457 |
/** LI */
|
458 |
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
459 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-li" class="csbwfs-li"><a href="javascript:" onclick="javascript:window.open(\'
|
460 |
endif;
|
461 |
|
462 |
/** PIN */
|
463 |
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
464 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-pin" class="csbwfs-pin"><a onclick="window.open(\'
|
465 |
endif;
|
466 |
|
467 |
/** YT */
|
468 |
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
469 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-yt" class="csbwfs-yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" '.$ytImgbg.' title="'.$ytImgAlt.'"><img src="'.$ytImg.'" alt="'.$ytImgAlt.'"></a></div></div>';
|
470 |
endif;
|
471 |
|
472 |
/** Reddit */
|
473 |
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
474 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-re" class="csbwfs-re"><a onclick="window.open(\'
|
475 |
endif;
|
476 |
|
477 |
/** Stumbleupon */
|
478 |
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
479 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-st" class="csbwfs-st"><a onclick="window.open(\'
|
480 |
endif;
|
481 |
|
482 |
/** Mail*/
|
483 |
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
484 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-ml" class="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'" '.$mImgbg.' ><img src="'.$mImg.'" alt="'.$mImgAlt.'"></a></div></div>';
|
485 |
endif;
|
486 |
|
487 |
$flitingSidebarContent .='</div>'; //End social-inner
|
@@ -498,7 +497,10 @@ $flitingSidebarContent .='</div></div>'; //End social-inner
|
|
498 |
|
499 |
if(isset($pluginOptionsVal['csbwfs_hide_home'])){$hideOnHome=$pluginOptionsVal['csbwfs_hide_home']; }else{ $hideOnHome='';}
|
500 |
|
501 |
-
if((is_home() &&
|
|
|
|
|
|
|
502 |
$flitingSidebarContent='';
|
503 |
endif;
|
504 |
/** hide on 404 pages */
|
@@ -567,26 +569,26 @@ $ShareTitle= htmlspecialchars(urlencode($ShareTitle));
|
|
567 |
|
568 |
//get facebook button image
|
569 |
if($pluginOptionsVal['csbwfs_page_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_page_fb_image'];}
|
570 |
-
else{$fImg=plugins_url('images/fb
|
571 |
//get twitter button image
|
572 |
if($pluginOptionsVal['csbwfs_page_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_page_tw_image'];}
|
573 |
-
else{$tImg=plugins_url('images/tw
|
574 |
-
//get
|
575 |
if($pluginOptionsVal['csbwfs_page_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_page_li_image'];}
|
576 |
-
else{$lImg=plugins_url('images/in
|
577 |
//get mail button image
|
578 |
if($pluginOptionsVal['csbwfs_page_mail_image']!=''){ $mImg=$pluginOptionsVal['csbwfs_page_mail_image'];}
|
579 |
-
else{$mImg=plugins_url('images/ml
|
580 |
//get google plus button image
|
581 |
if($pluginOptionsVal['csbwfs_page_gp_image']!=''){ $gImg=$pluginOptionsVal['csbwfs_page_gp_image'];}
|
582 |
-
else{$gImg=plugins_url('images/gp
|
583 |
//get pinterest button image
|
584 |
if($pluginOptionsVal['csbwfs_page_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_page_pin_image'];}
|
585 |
-
else{$pImg=plugins_url('images/pinit
|
586 |
|
587 |
//get youtube button image
|
588 |
if(isset($pluginOptionsVal['csbwfs_page_yt_image']) && $pluginOptionsVal['csbwfs_page_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_page_yt_image'];}
|
589 |
-
else{$ytImg=plugins_url('images/youtube
|
590 |
//get reddit plus button image
|
591 |
if(isset($pluginOptionsVal['csbwfs_page_re_image']) && $pluginOptionsVal['csbwfs_page_re_image']!=''){ $reImg=$pluginOptionsVal['csbwfs_page_re_image'];}
|
592 |
else{$reImg=plugins_url('images/reddit.png',__FILE__);}
|
@@ -601,9 +603,9 @@ else{$fImgAlt='Share On Facebook';}
|
|
601 |
//get twitter button image alt/title
|
602 |
if($pluginOptionsVal['csbwfs_page_tw_title']!=''){ $tImgAlt=$pluginOptionsVal['csbwfs_page_tw_title'];}
|
603 |
else{$tImgAlt='Share On Twitter';}
|
604 |
-
//get
|
605 |
if($pluginOptionsVal['csbwfs_page_li_title']!=''){ $lImgAlt=$pluginOptionsVal['csbwfs_page_li_title'];}
|
606 |
-
else{$lImgAlt='Share On
|
607 |
//get mail button image alt/title
|
608 |
if($pluginOptionsVal['csbwfs_page_mail_title']!=''){ $mImgAlt=$pluginOptionsVal['csbwfs_page_mail_title'];}
|
609 |
else{$mImgAlt='Contact us';}
|
@@ -650,50 +652,50 @@ $shareButtonContent.='<div class="sharethis-arrow" title="'.$btnText.'"><span>'.
|
|
650 |
endif;
|
651 |
/* Facebook*/
|
652 |
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
653 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="fb-p" class="csbwfs-fb"><a href="javascript:"
|
654 |
-
target="_blank" title="'.$fImgAlt.'"> <img src="'.$fImg.'" alt="'.$fImgAlt.'"></a></div></div>';
|
655 |
endif;
|
656 |
|
657 |
/* Twitter */
|
658 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
659 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="tw-p" class="csbwfs-tw"><a href="javascript:" onclick="window.open(\'
|
660 |
endif;
|
661 |
|
662 |
/* Google Plus */
|
663 |
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
664 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="gp-p" class="csbwfs-gp"><a href="javascript:"
|
665 |
</div>';
|
666 |
endif;
|
667 |
|
668 |
/* Linkedin */
|
669 |
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
670 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="li-p" class="csbwfs-li"><a href="javascript:" onclick="javascript:window.open(\'
|
671 |
endif;
|
672 |
|
673 |
/* Pinterest */
|
674 |
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
675 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="pin-p" class="csbwfs-pin"><a onclick="window.open(\'
|
676 |
endif;
|
677 |
|
678 |
/* Youtube */
|
679 |
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
680 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="yt-p" class="csbwfs-yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" title="'.$ytImgAlt.'"><img src="'.$ytImg.'" alt="'.$ytImgAlt.'"></a></div></div>';
|
681 |
endif;
|
682 |
/* Stumbleen */
|
683 |
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
684 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="st-p" class="csbwfs-st"><a onclick="window.open(\'
|
685 |
endif;
|
686 |
/* Reddit */
|
687 |
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
688 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="re-p" class="csbwfs-re"><a onclick="window.open(\'
|
689 |
endif;
|
690 |
/* Email */
|
691 |
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
692 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p" class="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'"><img src="'.$mImg.'" alt="'.$mImgAlt.'"></a></div></div>';
|
693 |
endif;
|
694 |
$shareButtonContent.='</div>';
|
695 |
// Returns the content.
|
696 |
-
if(is_home() && $pluginOptionsVal['csbwfs_page_hide_home']!='yes'):
|
697 |
$shareButtonContent='';
|
698 |
endif;
|
699 |
|
40 |
endif;
|
41 |
/*
|
42 |
* Site is browsing in mobile or not
|
43 |
+
* @csbwfsIsMobile()
|
44 |
* */
|
45 |
+
if(!function_exists('csbwfsIsMobile')):
|
46 |
+
function csbwfsIsMobile() {
|
47 |
// Check the server headers to see if they're mobile friendly
|
48 |
if(isset($_SERVER["HTTP_X_WAP_PROFILE"])) {
|
49 |
return true;
|
74 |
// None of the above? Then it's probably not a mobile device.
|
75 |
return false;
|
76 |
}
|
77 |
+
endif;
|
78 |
// Get plugin options
|
79 |
$pluginOptionsVal=get_csbwf_sidebar_options();
|
80 |
//check plugin in enable or not
|
81 |
if(isset($pluginOptionsVal['csbwfs_active']) && $pluginOptionsVal['csbwfs_active']==1){
|
82 |
|
83 |
+
if((csbwfsIsMobile()) &&
|
84 |
isset($pluginOptionsVal['csbwfs_deactive_for_mob']) && $pluginOptionsVal['csbwfs_deactive_for_mob']!='')
|
85 |
{
|
86 |
// silent is Gold;
|
171 |
endif;
|
172 |
|
173 |
if($pluginOptionsVal['csbwfs_position']=='right' || $pluginOptionsVal['csbwfs_position']=='left'){
|
174 |
+
|
|
|
175 |
$jscnt.='jQuery("div.csbwfsbtns a").hover(function(){
|
176 |
jQuery(this).animate({width:animateWidth});
|
177 |
},function(){
|
178 |
jQuery(this).stop( true, true ).animate({width:defaultAnimateWidth});
|
179 |
});';
|
|
|
|
|
180 |
}else
|
181 |
{
|
182 |
//silent
|
302 |
//get twitter button image
|
303 |
if($pluginOptionsVal['csbwfs_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_tw_image'];}
|
304 |
else{$tImg=plugins_url('images/tw.png',__FILE__);}
|
305 |
+
//get Linkedin button image
|
306 |
if($pluginOptionsVal['csbwfs_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_li_image'];}
|
307 |
else{$lImg=plugins_url('images/in.png',__FILE__);}
|
308 |
//get mail button image
|
336 |
//get twitter button image alt/title
|
337 |
if($pluginOptionsVal['csbwfs_tw_title']!=''){ $tImgAlt=$pluginOptionsVal['csbwfs_tw_title'];}
|
338 |
else{$tImgAlt='Share On Twitter';}
|
339 |
+
//get Linkedin button image alt/title
|
340 |
if($pluginOptionsVal['csbwfs_li_title']!=''){ $lImgAlt=$pluginOptionsVal['csbwfs_li_title'];}
|
341 |
+
else{$lImgAlt='Share On Linkedin';}
|
342 |
//get mail button image alt/title
|
343 |
if($pluginOptionsVal['csbwfs_mail_title']!=''){ $mImgAlt=$pluginOptionsVal['csbwfs_mail_title'];}
|
344 |
else{$mImgAlt='Contact us';}
|
394 |
//get twitter button image background color
|
395 |
if($pluginOptionsVal['csbwfs_tw_bg']!=''){ $tImgbg=' style="background:'.$pluginOptionsVal['csbwfs_tw_bg'].';"';}
|
396 |
else{$tImgbg='';}
|
397 |
+
//get Linkedin button image background color
|
398 |
if($pluginOptionsVal['csbwfs_li_bg']!=''){ $lImgbg=' style="background:'.$pluginOptionsVal['csbwfs_li_bg'].';"';}
|
399 |
else{$lImgbg='';}
|
400 |
//get mail button image background color
|
440 |
|
441 |
/** FB */
|
442 |
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
443 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-fb" class="csbwfs-fb"><a href="javascript:" onclick="javascript:window.open(\'//www.facebook.com/sharer/sharer.php?u='.$shareurl.'\', \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;" target="_blank" title="'.$fImgAlt.'" '.$fImgbg.'><img src="'.$fImg.'" alt="'.$fImgAlt.'" width="35" height="35" ></a></div></div>';
|
444 |
endif;
|
445 |
|
446 |
/** TW */
|
447 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
448 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-tw" class="csbwfs-tw"><a href="javascript:" onclick="window.open(\'//twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'\',\'_blank\',\'width=800,height=300\')" title="'.$tImgAlt.'" '.$tImgbg.'><img src="'.$tImg.'" alt="'.$tImgAlt.'" width="35" height="35" ></a></div></div>';
|
449 |
endif;
|
450 |
|
451 |
/** GP */
|
452 |
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
453 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-gp" class="csbwfs-gp"><a href="javascript:" onclick="javascript:window.open(\'//plus.google.com/share?url='.$shareurl.'\',\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" title="'.$gImgAlt.'" '.$gImgbg.'><img src="'.$gImg.'" alt="'.$gImgAlt.'" width="35" height="35" ></a></div></div>';
|
454 |
endif;
|
455 |
|
456 |
/** LI */
|
457 |
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
458 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-li" class="csbwfs-li"><a href="javascript:" onclick="javascript:window.open(\'//www.linkedin.com/cws/share?mini=true&url='. $shareurl.'\',\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" title="'.$lImgAlt.'" '.$lImgbg.'><img src="'.$lImg.'" alt="'.$lImgAlt.'" width="35" height="35" ></a></div></div>';
|
459 |
endif;
|
460 |
|
461 |
/** PIN */
|
462 |
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
463 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-pin" class="csbwfs-pin"><a onclick="window.open(\'//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.'" width="35" height="35" ></a></div></div>';
|
464 |
endif;
|
465 |
|
466 |
/** YT */
|
467 |
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
468 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-yt" class="csbwfs-yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" '.$ytImgbg.' title="'.$ytImgAlt.'"><img src="'.$ytImg.'" alt="'.$ytImgAlt.'" width="35" height="35" ></a></div></div>';
|
469 |
endif;
|
470 |
|
471 |
/** Reddit */
|
472 |
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
473 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-re" class="csbwfs-re"><a onclick="window.open(\'//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.'" width="35" height="35" ></a></div></div>';
|
474 |
endif;
|
475 |
|
476 |
/** Stumbleupon */
|
477 |
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
478 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-st" class="csbwfs-st"><a onclick="window.open(\'//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.'" width="35" height="35" ></a></div></div>';
|
479 |
endif;
|
480 |
|
481 |
/** Mail*/
|
482 |
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
483 |
+
$flitingSidebarContent .='<div class="csbwfs-sbutton csbwfsbtns"><div id="csbwfs-ml" class="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'" '.$mImgbg.' ><img src="'.$mImg.'" alt="'.$mImgAlt.'" width="35" height="35" ></a></div></div>';
|
484 |
endif;
|
485 |
|
486 |
$flitingSidebarContent .='</div>'; //End social-inner
|
497 |
|
498 |
if(isset($pluginOptionsVal['csbwfs_hide_home'])){$hideOnHome=$pluginOptionsVal['csbwfs_hide_home']; }else{ $hideOnHome='';}
|
499 |
|
500 |
+
if((is_home() && is_front_page()) && $hideOnHome=='yes'):
|
501 |
+
$flitingSidebarContent='';
|
502 |
+
endif;
|
503 |
+
if(is_front_page() && $hideOnHome=='yes' ):
|
504 |
$flitingSidebarContent='';
|
505 |
endif;
|
506 |
/** hide on 404 pages */
|
569 |
|
570 |
//get facebook button image
|
571 |
if($pluginOptionsVal['csbwfs_page_fb_image']!=''){ $fImg=$pluginOptionsVal['csbwfs_page_fb_image'];}
|
572 |
+
else{$fImg=plugins_url('images/fb.png',__FILE__);}
|
573 |
//get twitter button image
|
574 |
if($pluginOptionsVal['csbwfs_page_tw_image']!=''){ $tImg=$pluginOptionsVal['csbwfs_page_tw_image'];}
|
575 |
+
else{$tImg=plugins_url('images/tw.png',__FILE__);}
|
576 |
+
//get Linkedin button image
|
577 |
if($pluginOptionsVal['csbwfs_page_li_image']!=''){ $lImg=$pluginOptionsVal['csbwfs_page_li_image'];}
|
578 |
+
else{$lImg=plugins_url('images/in.png',__FILE__);}
|
579 |
//get mail button image
|
580 |
if($pluginOptionsVal['csbwfs_page_mail_image']!=''){ $mImg=$pluginOptionsVal['csbwfs_page_mail_image'];}
|
581 |
+
else{$mImg=plugins_url('images/ml.png',__FILE__);}
|
582 |
//get google plus button image
|
583 |
if($pluginOptionsVal['csbwfs_page_gp_image']!=''){ $gImg=$pluginOptionsVal['csbwfs_page_gp_image'];}
|
584 |
+
else{$gImg=plugins_url('images/gp.png',__FILE__);}
|
585 |
//get pinterest button image
|
586 |
if($pluginOptionsVal['csbwfs_page_pin_image']!=''){ $pImg=$pluginOptionsVal['csbwfs_page_pin_image'];}
|
587 |
+
else{$pImg=plugins_url('images/pinit.png',__FILE__);}
|
588 |
|
589 |
//get youtube button image
|
590 |
if(isset($pluginOptionsVal['csbwfs_page_yt_image']) && $pluginOptionsVal['csbwfs_page_yt_image']!=''){ $ytImg=$pluginOptionsVal['csbwfs_page_yt_image'];}
|
591 |
+
else{$ytImg=plugins_url('images/youtube.png',__FILE__);}
|
592 |
//get reddit plus button image
|
593 |
if(isset($pluginOptionsVal['csbwfs_page_re_image']) && $pluginOptionsVal['csbwfs_page_re_image']!=''){ $reImg=$pluginOptionsVal['csbwfs_page_re_image'];}
|
594 |
else{$reImg=plugins_url('images/reddit.png',__FILE__);}
|
603 |
//get twitter button image alt/title
|
604 |
if($pluginOptionsVal['csbwfs_page_tw_title']!=''){ $tImgAlt=$pluginOptionsVal['csbwfs_page_tw_title'];}
|
605 |
else{$tImgAlt='Share On Twitter';}
|
606 |
+
//get Linkedin button image alt/title
|
607 |
if($pluginOptionsVal['csbwfs_page_li_title']!=''){ $lImgAlt=$pluginOptionsVal['csbwfs_page_li_title'];}
|
608 |
+
else{$lImgAlt='Share On Linkedin';}
|
609 |
//get mail button image alt/title
|
610 |
if($pluginOptionsVal['csbwfs_page_mail_title']!=''){ $mImgAlt=$pluginOptionsVal['csbwfs_page_mail_title'];}
|
611 |
else{$mImgAlt='Contact us';}
|
652 |
endif;
|
653 |
/* Facebook*/
|
654 |
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
655 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="fb-p" class="csbwfs-fb"><a href="javascript:" onclick="window.open(\'//www.facebook.com/sharer/sharer.php?u='.$shareurl.'\',\'Facebook\',\'width=800,height=300\');return false;"
|
656 |
+
target="_blank" title="'.$fImgAlt.'"> <img src="'.$fImg.'" alt="'.$fImgAlt.'" width="35" height="35" ></a></div></div>';
|
657 |
endif;
|
658 |
|
659 |
/* Twitter */
|
660 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
661 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="tw-p" class="csbwfs-tw"><a href="javascript:" onclick="window.open(\'//twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.' \', \'_blank\', \'width=800,height=300\')" title="'.$tImgAlt.'"><img src="'.$tImg.'" alt="'.$tImgAlt.'" width="35" height="35" ></a></div></div>';
|
662 |
endif;
|
663 |
|
664 |
/* Google Plus */
|
665 |
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
666 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="gp-p" class="csbwfs-gp"><a href="javascript:" onclick="javascript:window.open(\'//plus.google.com/share?url='.$shareurl.'\',\'\',\'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=800\');return false;" title="'.$gImgAlt.'"> <img src="'.$gImg.'" alt="'.$gImgAlt.'" width="35" height="35" ></a></div>
|
667 |
</div>';
|
668 |
endif;
|
669 |
|
670 |
/* Linkedin */
|
671 |
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
672 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="li-p" class="csbwfs-li"><a href="javascript:" onclick="javascript:window.open(\'//www.linkedin.com/shareArticle?mini=true&url='.$shareurl.'\',\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" title="'.$lImgAlt.'"><img src="'.$lImg.'" alt="'.$lImgAlt.'" width="35" height="35" ></a></div></div>';
|
673 |
endif;
|
674 |
|
675 |
/* Pinterest */
|
676 |
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
677 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="pin-p" class="csbwfs-pin"><a onclick="window.open(\'//www.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.'" width="35" height="35" ></a></div></div>';
|
678 |
endif;
|
679 |
|
680 |
/* Youtube */
|
681 |
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
682 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="yt-p" class="csbwfs-yt"><a onclick="window.open(\''.$pluginOptionsVal['csbwfs_ytPath'].'\');" href="javascript:void(0);" title="'.$ytImgAlt.'"><img src="'.$ytImg.'" alt="'.$ytImgAlt.'" width="35" height="35" ></a></div></div>';
|
683 |
endif;
|
684 |
/* Stumbleen */
|
685 |
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
686 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="st-p" class="csbwfs-st"><a onclick="window.open(\'//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.'" width="35" height="35" ></a></div></div>';
|
687 |
endif;
|
688 |
/* Reddit */
|
689 |
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
690 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="re-p" class="csbwfs-re"><a onclick="window.open(\'//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.'" width="35" height="35" ></a></div></div>';
|
691 |
endif;
|
692 |
/* Email */
|
693 |
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
694 |
+
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p" class="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'"><img src="'.$mImg.'" alt="'.$mImgAlt.'" width="35" height="35"></a></div></div>';
|
695 |
endif;
|
696 |
$shareButtonContent.='</div>';
|
697 |
// Returns the content.
|
698 |
+
if((is_home() && is_front_page()) && $pluginOptionsVal['csbwfs_page_hide_home']!='yes'):
|
699 |
$shareButtonContent='';
|
700 |
endif;
|
701 |
|
css/admin-csbwfs.css
CHANGED
File without changes
|
css/csbwfs.css
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
/* Custom share Buttons With Floating Sidebar (C)
|
2 |
* Author: Raghunath gurjar
|
3 |
* */
|
4 |
-
.sbutton img {opacity:0.
|
5 |
.sbutton img:hover{opacity:1;}
|
6 |
.csbwfs-social-widget {position: fixed;width: 50px;z-index: 99999;}
|
7 |
.csbwfs-social-widget .csbwfs-sbutton {background: none;float: right;height: 42px;margin: 0;padding: 0;position: relative;width: 50px;}
|
@@ -27,11 +27,11 @@ bottom: 0; height: 45px;
|
|
27 |
#csbwfs-bottom {width:100%;margin:0 auto; text-align:center; bottom: 0 !important; }
|
28 |
#csbwfs-bottom .csbwfs-hide{display:none !important;}
|
29 |
#csbwfs-bottom .csbwfs-sbutton{background: none repeat scroll 0 0 rgba(0, 0, 0, 0);display: inline-block;float: none; margin: 0 auto;position: relative;width: 45px;}
|
30 |
-
#csbwfs-bottom .csbwfs-sbutton img {width: 31px;height: 30px;opacity: 0.
|
31 |
#csbwfs-bottom .csbwfs-sbutton img:hover{opacity:1;}
|
32 |
/* Custom Share Buttons*/
|
33 |
#socialButtonOnPage {width:100%;display:inline-block;float:left; }
|
34 |
-
#socialButtonOnPage .csbwfs-sbutton-post img {width:31px; height:30px;opacity:1; padding-top:1%;}
|
35 |
#socialButtonOnPage .csbwfs-sbutton-post img:hover{opacity:1;}
|
36 |
#socialButtonOnPage .sharethis-arrow span:hover{cursor:pointer;}
|
37 |
#socialButtonOnPage .sharethis-arrow span{ color: #FFFFFF;display: inline-block;font-size: 16px;font-style: italic; font-weight: bold;}
|
@@ -43,4 +43,5 @@ bottom: 0; height: 45px;
|
|
43 |
.rightSocialButtonOnPage .csbwfs-sbutton-post {float:right; padding:5px 1px;}
|
44 |
.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;}
|
45 |
.rightSocialButtonOnPage .sharethis-arrow span{padding-left: 12px;}
|
46 |
-
#socialButtonOnPage .csbwfs-sbutton-post a{display:block;width:50px; height:auto;text-align: center;}
|
|
1 |
/* Custom share Buttons With Floating Sidebar (C)
|
2 |
* Author: Raghunath gurjar
|
3 |
* */
|
4 |
+
.sbutton img {opacity:0.8;}
|
5 |
.sbutton img:hover{opacity:1;}
|
6 |
.csbwfs-social-widget {position: fixed;width: 50px;z-index: 99999;}
|
7 |
.csbwfs-social-widget .csbwfs-sbutton {background: none;float: right;height: 42px;margin: 0;padding: 0;position: relative;width: 50px;}
|
27 |
#csbwfs-bottom {width:100%;margin:0 auto; text-align:center; bottom: 0 !important; }
|
28 |
#csbwfs-bottom .csbwfs-hide{display:none !important;}
|
29 |
#csbwfs-bottom .csbwfs-sbutton{background: none repeat scroll 0 0 rgba(0, 0, 0, 0);display: inline-block;float: none; margin: 0 auto;position: relative;width: 45px;}
|
30 |
+
#csbwfs-bottom .csbwfs-sbutton img {width: 31px;height: 30px;opacity: 0.8;}
|
31 |
#csbwfs-bottom .csbwfs-sbutton img:hover{opacity:1;}
|
32 |
/* Custom Share Buttons*/
|
33 |
#socialButtonOnPage {width:100%;display:inline-block;float:left; }
|
34 |
+
#socialButtonOnPage .csbwfs-sbutton-post img {width:31px; height:30px;opacity:1; padding-top:1%; margin:0 auto; text-align:center;border:none !important;}
|
35 |
#socialButtonOnPage .csbwfs-sbutton-post img:hover{opacity:1;}
|
36 |
#socialButtonOnPage .sharethis-arrow span:hover{cursor:pointer;}
|
37 |
#socialButtonOnPage .sharethis-arrow span{ color: #FFFFFF;display: inline-block;font-size: 16px;font-style: italic; font-weight: bold;}
|
43 |
.rightSocialButtonOnPage .csbwfs-sbutton-post {float:right; padding:5px 1px;}
|
44 |
.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;}
|
45 |
.rightSocialButtonOnPage .sharethis-arrow span{padding-left: 12px;}
|
46 |
+
#socialButtonOnPage .csbwfs-sbutton-post a{display:block;width:50px; height:auto;text-align: center;border:none !important;}
|
47 |
+
#socialButtonOnPage .csbwfs-sbutton-post a:hover{display:block;width:50px; height:auto;text-align: center;border:none !important;}
|
custom-share-buttons-with-floating-sidebar.php
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
/*
|
3 |
Plugin Name: Custom Share Buttons with Floating Sidebar
|
4 |
Plugin URI: http://www.mrwebsolution.in/
|
5 |
-
Description:
|
6 |
Author: MR Web Solution
|
7 |
Author URI: http://raghunathgurjar.wordpress.com
|
8 |
-
Version: 2.
|
9 |
*/
|
10 |
|
11 |
/* Copyright 2015 custom-share-buttons-with-floating-sidebar (email : raghunath.0087@gmail.com)
|
@@ -188,7 +188,7 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
188 |
<p><input type="checkbox" id="publish1" value="yes" name="csbwfs_fpublishBtn" <?php if(get_option('csbwfs_fpublishBtn')=='yes'){echo 'checked="checked"';}?>/><b>Facebook Button</b></p>
|
189 |
<p><input type="checkbox" id="publish2" name="csbwfs_tpublishBtn" value="yes" <?php if(get_option('csbwfs_tpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Twitter Button</b></p>
|
190 |
<p><input type="checkbox" id="publish3" name="csbwfs_gpublishBtn" value="yes" <?php if(get_option('csbwfs_gpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Google Button</b></p>
|
191 |
-
<p><input type="checkbox" id="publish4" name="csbwfs_lpublishBtn" value="yes" <?php if(get_option('csbwfs_lpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>
|
192 |
<p><input type="checkbox" id="publish6" name="csbwfs_ppublishBtn" value="yes" <?php if(get_option('csbwfs_ppublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Pinterest Button</b></p>
|
193 |
<p><input type="checkbox" id="publish7" name="csbwfs_republishBtn" value="yes" <?php if(get_option('csbwfs_republishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Reddit Button</b></p>
|
194 |
<p><input type="checkbox" id="publish8" name="csbwfs_stpublishBtn" value="yes" <?php if(get_option('csbwfs_stpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Stumbleupon Button</b></p>
|
@@ -251,9 +251,9 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
251 |
</td>
|
252 |
</tr>
|
253 |
<tr>
|
254 |
-
<th><?php echo '
|
255 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg">
|
256 |
-
<input type="text" id="csbwfs_li_image" name="csbwfs_li_image" value="<?php echo get_option('csbwfs_li_image'); ?>" placeholder="Insert
|
257 |
</td>
|
258 |
</tr>
|
259 |
<tr><th><?php echo 'Pintrest:';?></th>
|
@@ -348,8 +348,8 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
348 |
<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" class="csbwfs_title"/>
|
349 |
</td>
|
350 |
</tr>
|
351 |
-
<tr><th><?php echo '
|
352 |
-
<td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg2"><input type="text" id="csbwfs_page_li_image" name="csbwfs_page_li_image" value="<?php echo get_option('csbwfs_page_li_image'); ?>" placeholder="Insert
|
353 |
<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" class="csbwfs_title"/>
|
354 |
</td>
|
355 |
</tr>
|
@@ -425,28 +425,29 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
425 |
<h2>GO PRO</h2>
|
426 |
<p><a href="https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/" target="_blank" class="contact-author">Go Pro</a></p>
|
427 |
<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>
|
428 |
-
<ol>
|
429 |
-
<li>Responsive Floating Sidebar</li>
|
430 |
-
<li>Hide Floating Sidebar On Home/Post/Page/Category and on Custom Post Type</li>
|
431 |
-
<li>An Option for Show/Hide sidebar on any specific page/post/product</li>
|
432 |
-
<li>Show Social Share Buttons On Home/Post/Page/Category and on Custom Post Type</li>
|
433 |
-
<li>An Option for Show/Hide social share buttons on any specific page/post/product</li>
|
434 |
-
<li>An Option for Show/Hide sidebar on any custom post type</li>
|
435 |
-
<li>Responsive Lightbox Contact Form (for Mail Icon)</li>
|
436 |
-
<li>An option for add to any custom shortcode into lightbox</li>
|
437 |
-
<li>Advance feature for choose to pinterest share image</li>
|
438 |
-
<li>An option for add to OG tags content(title,image,description)</li>
|
439 |
-
<li>An option for set automatically horizontal sidebar position for mobile</li>
|
440 |
-
<li>An option for add to social site official page URL for all social buttons</li>
|
441 |
-
<li>Extra Buttons (Google Translate,Instagram,Whatsapp,Digg,Yummly,Vk, Buffer, Line, Skype, RSS, Print, G-Mail, Blogger, Tumbler
|
442 |
-
<li>An option for define to twitter username in thier share window.</li>
|
443 |
-
<li>An option for display to number of share(Facebook,
|
444 |
-
<li>An options for change to any button image, title, background colour and url (You can use any button as your own custom button)</li>
|
445 |
-
<li>An options to define sorting order for all buttons</li>
|
446 |
-
<li>
|
447 |
-
<li>An option for show to sum of total share count for all buttons</li>
|
448 |
-
<li>
|
449 |
-
</
|
|
|
450 |
<p><a href="https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/" target="_blank" class="contact-author">Go Pro</a></p>
|
451 |
<p> <a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact To Author</a></p>
|
452 |
|
2 |
/*
|
3 |
Plugin Name: Custom Share Buttons with Floating Sidebar
|
4 |
Plugin URI: http://www.mrwebsolution.in/
|
5 |
+
Description: It's a very simple plugin for add to social share buttons on your site and you can publish buttons floating sidebar. Even you can edit share buttons if you wish
|
6 |
Author: MR Web Solution
|
7 |
Author URI: http://raghunathgurjar.wordpress.com
|
8 |
+
Version: 2.6
|
9 |
*/
|
10 |
|
11 |
/* Copyright 2015 custom-share-buttons-with-floating-sidebar (email : raghunath.0087@gmail.com)
|
188 |
<p><input type="checkbox" id="publish1" value="yes" name="csbwfs_fpublishBtn" <?php if(get_option('csbwfs_fpublishBtn')=='yes'){echo 'checked="checked"';}?>/><b>Facebook Button</b></p>
|
189 |
<p><input type="checkbox" id="publish2" name="csbwfs_tpublishBtn" value="yes" <?php if(get_option('csbwfs_tpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Twitter Button</b></p>
|
190 |
<p><input type="checkbox" id="publish3" name="csbwfs_gpublishBtn" value="yes" <?php if(get_option('csbwfs_gpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Google Button</b></p>
|
191 |
+
<p><input type="checkbox" id="publish4" name="csbwfs_lpublishBtn" value="yes" <?php if(get_option('csbwfs_lpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Linkedin Button</b></p>
|
192 |
<p><input type="checkbox" id="publish6" name="csbwfs_ppublishBtn" value="yes" <?php if(get_option('csbwfs_ppublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Pinterest Button</b></p>
|
193 |
<p><input type="checkbox" id="publish7" name="csbwfs_republishBtn" value="yes" <?php if(get_option('csbwfs_republishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Reddit Button</b></p>
|
194 |
<p><input type="checkbox" id="publish8" name="csbwfs_stpublishBtn" value="yes" <?php if(get_option('csbwfs_stpublishBtn')=='yes'){echo 'checked="checked"';}?>/> <b>Stumbleupon Button</b></p>
|
251 |
</td>
|
252 |
</tr>
|
253 |
<tr>
|
254 |
+
<th><?php echo 'Linkedin:';?></th>
|
255 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg">
|
256 |
+
<input type="text" id="csbwfs_li_image" name="csbwfs_li_image" value="<?php echo get_option('csbwfs_li_image'); ?>" placeholder="Insert Linkedin button image path" class="inputButtonid" size="30" class="buttonimg"/><input id="csbwfs_li_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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 Linkedin" size="20" class="csbwfs_title"/>
|
257 |
</td>
|
258 |
</tr>
|
259 |
<tr><th><?php echo 'Pintrest:';?></th>
|
348 |
<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" class="csbwfs_title"/>
|
349 |
</td>
|
350 |
</tr>
|
351 |
+
<tr><th><?php echo 'Linkedin:';?></th>
|
352 |
+
<td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg2"><input type="text" id="csbwfs_page_li_image" name="csbwfs_page_li_image" value="<?php echo get_option('csbwfs_page_li_image'); ?>" placeholder="Insert Linkedin button image path" size="40" class="inputButtonid"/>
|
353 |
<input id="csbwfs_li_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <input type="text" id="csbwfs_page_li_title" name="csbwfs_page_li_title" value="<?php echo get_option('csbwfs_page_li_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
|
354 |
</td>
|
355 |
</tr>
|
425 |
<h2>GO PRO</h2>
|
426 |
<p><a href="https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/" target="_blank" class="contact-author">Go Pro</a></p>
|
427 |
<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>
|
428 |
+
<ol>
|
429 |
+
<li>Responsive Floating Sidebar</li>
|
430 |
+
<li>Hide Floating Sidebar On Home/Post/Page/Category and on Custom Post Type</li>
|
431 |
+
<li>An Option for Show/Hide sidebar on any specific page/post/product</li>
|
432 |
+
<li>Show Social Share Buttons On Home/Post/Page/Category and on Custom Post Type</li>
|
433 |
+
<li>An Option for Show/Hide social share buttons on any specific page/post/product</li>
|
434 |
+
<li>An Option for Show/Hide sidebar on any custom post type</li>
|
435 |
+
<li>Responsive Lightbox Contact Form (for Mail Icon)</li>
|
436 |
+
<li>An option for add to any custom shortcode into lightbox</li>
|
437 |
+
<li>Advance feature for choose to pinterest share image</li>
|
438 |
+
<li>An option for add to OG tags content(title,image,description)</li>
|
439 |
+
<li>An option for set automatically horizontal sidebar position for mobile</li>
|
440 |
+
<li>An option for add to social site official page URL for all social buttons</li>
|
441 |
+
<li>Extra Buttons (Google Translate,Instagram,Whatsapp,Digg,Yummly,Vk, Buffer, Line, Skype, RSS, Print, G-Mail, Blogger, Tumbler,Delicious,Weibo, Telegram & SMS )</li>
|
442 |
+
<li>An option for define to twitter username in thier share window.</li>
|
443 |
+
<li>An option for display to number of share(Facebook,Linkedin,StumbleUpon,Google Plus,Pinterest and Reddit)</li>
|
444 |
+
<li>An options for change to any button image, title, background colour and url (You can use any button as your own custom button)</li>
|
445 |
+
<li>An options to define sorting order for all buttons</li>
|
446 |
+
<li>10 extra custom floating sidebar buttons with extra options (i.e you can define your own custom size for these buttons)</li>
|
447 |
+
<li>An option for show to sum of total share count for all buttons</li>
|
448 |
+
<li>An option for remove mouse hover animation effect for all social buttons</li>
|
449 |
+
<li>Faster support</li>
|
450 |
+
</ol>
|
451 |
<p><a href="https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/" target="_blank" class="contact-author">Go Pro</a></p>
|
452 |
<p> <a href="mailto:raghunath.0087@gmail.com" target="_blank" class="contact-author">Contact To Author</a></p>
|
453 |
|
images/fb-p.png
DELETED
Binary file
|
images/fb.png
CHANGED
File without changes
|
images/gp-p.png
DELETED
Binary file
|
images/gp.png
CHANGED
File without changes
|
images/hide.png
CHANGED
File without changes
|
images/in-p.png
DELETED
Binary file
|
images/in.png
CHANGED
File without changes
|
images/ml-p.png
DELETED
Binary file
|
images/ml.png
CHANGED
File without changes
|
images/mrweb-logo.jpg
CHANGED
File without changes
|
images/overlay.png
CHANGED
File without changes
|
images/pinit-p.png
DELETED
Binary file
|
images/pinit.png
CHANGED
File without changes
|
images/reddit-p.png
CHANGED
File without changes
|
images/reddit.png
CHANGED
File without changes
|
images/sharethis-l.png
CHANGED
File without changes
|
images/sharethis-r.png
CHANGED
File without changes
|
images/sharethis.png
CHANGED
File without changes
|
images/sharethis_old.png
CHANGED
File without changes
|
images/show.png
CHANGED
File without changes
|
images/stumbleupon-p.png
DELETED
Binary file
|
images/stumbleupon.png
CHANGED
File without changes
|
images/tw-p.png
DELETED
Binary file
|
images/tw.png
CHANGED
File without changes
|
images/youtube-p.png
DELETED
Binary file
|
readme.txt
CHANGED
@@ -3,10 +3,10 @@ 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: 2.
|
8 |
|
9 |
-
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -48,24 +48,27 @@ You can add a social share floating sidebar with all social share buttons and Ev
|
|
48 |
|
49 |
We have also 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:
|
50 |
|
51 |
-
* Responsive Floating Sidebar
|
52 |
-
* Hide Floating Sidebar On Home/Post/Page/Category
|
53 |
-
* An Option for Show/Hide sidebar on any specific page/post/product
|
54 |
-
*
|
55 |
-
*
|
56 |
-
* An
|
57 |
-
*
|
58 |
-
* An option for add to
|
59 |
-
*
|
60 |
-
* An option for add to
|
61 |
-
*
|
62 |
-
* An option for
|
63 |
-
*
|
64 |
-
* An
|
65 |
-
* An
|
66 |
-
*
|
67 |
-
* An
|
68 |
-
*
|
|
|
|
|
|
|
69 |
|
70 |
|
71 |
**[Addon Documentation](https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/documentation/)**
|
@@ -88,35 +91,41 @@ Step 2. Activate the plugin through the Plugins menu in WordPress
|
|
88 |
Step 3. Go to Settings/"Custom Share Buttons with Floating Sidebar" and configure the plugin settings.
|
89 |
|
90 |
== Frequently Asked Questions ==
|
91 |
-
1.How add floating share buttons on my website?
|
92 |
|
93 |
-
After active the plugin you have must need to enable this plugin through the plugin settings.
|
94 |
|
95 |
-
2.Can i change the custom share buttons images from admin?
|
96 |
|
97 |
-
Yes,admin can changes all social share custom buttons images if you wish, for that you have only need to define the buttons images path from plugins settings page.
|
98 |
|
99 |
-
3.Can i disable the floating sidebar for mobile?
|
100 |
|
101 |
-
Yes,You can disable the floating sidebar by configure the plugin settings
|
102 |
|
103 |
-
4.Can i define the top margin for share buttons block?
|
104 |
|
105 |
-
Yes, admin can define the top margin from plugin settings page
|
106 |
|
107 |
-
5.Can we add the social share buttons on bottom of every post/pages?
|
108 |
|
109 |
-
Yes,you have only need to enable the "Social Share Button" from admin by plugin settings
|
110 |
|
111 |
-
6.Can we add at a time only the "Floating Sidebar" OR "Social Share Buttons"?
|
112 |
|
113 |
-
Yes,You have need to enable at a time only one from both "Floating Sidebar" and "Social Share Buttons"
|
114 |
|
115 |
-
7.Is this mobile friendly OR is this responsive plugin?
|
116 |
|
117 |
-
No,this is not a responsibe but you can use our csbwfs addon, Our CSBWFS ADDON is responsive with some new extra features.Please visit on this [site](https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/) for check full details about addon.
|
118 |
|
|
|
119 |
|
|
|
|
|
|
|
|
|
|
|
120 |
|
121 |
== Screenshots ==
|
122 |
|
@@ -139,6 +148,11 @@ No,this is not a responsibe but you can use our csbwfs addon, Our CSBWFS ADDON i
|
|
139 |
9. screenshot-9.png
|
140 |
|
141 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
142 |
|
143 |
= 2.5 =
|
144 |
* Fixed upload image issue.
|
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.5
|
7 |
+
Stable tag: 2.6
|
8 |
|
9 |
+
Social Share Buttons (Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit) && Share Floating Sidebar.
|
10 |
|
11 |
== Description ==
|
12 |
|
48 |
|
49 |
We have also 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:
|
50 |
|
51 |
+
* Responsive Floating Sidebar
|
52 |
+
* Hide Floating Sidebar On Home/Post/Page/Category and on Custom Post Type
|
53 |
+
* An Option for Show/Hide sidebar on any specific page/post/product
|
54 |
+
* Show Social Share Buttons On Home/Post/Page/Category and on Custom Post Type
|
55 |
+
* An Option for Show/Hide social share buttons on any specific page/post/product
|
56 |
+
* An Option for Show/Hide sidebar on any custom post type
|
57 |
+
* Responsive Lightbox Contact Form (for Mail Icon)
|
58 |
+
* An option for add to any custom shortcode into lightbox
|
59 |
+
* Advance feature for choose to pinterest share image
|
60 |
+
* An option for add to OG tags content(title,image,description)
|
61 |
+
* An option for set automatically horizontal sidebar position for mobile
|
62 |
+
* An option for add to social site official page URL for all social buttons
|
63 |
+
* Extra Buttons (Google Translate,Instagram,Whatsapp,Digg,Yummly,Vk, Buffer, Line, Skype, RSS, Print, G-Mail, Blogger, Tumbler,Delicious,Weibo, Telegram & SMS )
|
64 |
+
* An option for define to twitter username in thier share window.
|
65 |
+
* An option for display to number of share(Facebook,LinkedIn,StumbleUpon,Google Plus,Pinterest and Reddit)
|
66 |
+
* An options for change to any button image, title, background colour and url (You can use any button as your own custom button)
|
67 |
+
* An options to define sorting order for all buttons
|
68 |
+
* 10 extra custom floating sidebar buttons with extra options (i.e you can define your own custom size for these buttons)
|
69 |
+
* An option for show to sum of total share count for all buttons
|
70 |
+
* An option for remove mouse hover animation effect for all social buttons
|
71 |
+
* Faster support
|
72 |
|
73 |
|
74 |
**[Addon Documentation](https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/documentation/)**
|
91 |
Step 3. Go to Settings/"Custom Share Buttons with Floating Sidebar" and configure the plugin settings.
|
92 |
|
93 |
== Frequently Asked Questions ==
|
94 |
+
1.) How add floating share buttons on my website?
|
95 |
|
96 |
+
* After active the plugin you have must need to enable this plugin through the plugin settings.
|
97 |
|
98 |
+
2.) Can i change the custom share buttons images from admin?
|
99 |
|
100 |
+
* Yes,admin can changes all social share custom buttons images if you wish, for that you have only need to define the buttons images path from plugins settings page.
|
101 |
|
102 |
+
3.) Can i disable the floating sidebar for mobile?
|
103 |
|
104 |
+
* Yes,You can disable the floating sidebar by configure the plugin settings
|
105 |
|
106 |
+
4.) Can i define the top margin for share buttons block?
|
107 |
|
108 |
+
* Yes, admin can define the top margin from plugin settings page
|
109 |
|
110 |
+
5.) Can we add the social share buttons on bottom of every post/pages?
|
111 |
|
112 |
+
* Yes,you have only need to enable the "Social Share Button" from admin by plugin settings
|
113 |
|
114 |
+
6.) Can we add at a time only the "Floating Sidebar" OR "Social Share Buttons"?
|
115 |
|
116 |
+
* Yes,You have need to enable at a time only one from both "Floating Sidebar" and "Social Share Buttons"
|
117 |
|
118 |
+
7.) Is this mobile friendly OR is this responsive plugin?
|
119 |
|
120 |
+
* No,this is not a responsibe but you can use our csbwfs addon, Our CSBWFS ADDON is responsive with some new extra features.Please visit on this [site](https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/) for check full details about addon.
|
121 |
|
122 |
+
8.) Is there any option for show share count number for share buttons?
|
123 |
|
124 |
+
* No, there are not an option for show share count number but you can use our csbwfs addon, In CSBWFS ADDON we have given an option.Please visit on this [site](https://rgaddons.wordpress.com/custom-share-buttons-with-floating-sidebar-pro/) for check full details about addon.
|
125 |
+
|
126 |
+
9.) Is there any option for show/hide share buttons OR floating sidebar on some specific pages?
|
127 |
+
|
128 |
+
* No. this options are available in pro addon.
|
129 |
|
130 |
== Screenshots ==
|
131 |
|
148 |
9. screenshot-9.png
|
149 |
|
150 |
== Changelog ==
|
151 |
+
= 2.6 =
|
152 |
+
* Tested with latest wordpress version 4.5
|
153 |
+
* Fixed buttons hover animation effect issue.
|
154 |
+
* Optimized image, html and css
|
155 |
+
* Updated home page conditions for show/hide social buttons
|
156 |
|
157 |
= 2.5 =
|
158 |
* Fixed upload image issue.
|