Version Description
- Fixed upload image issue.
- Added reset button for reset to images/title for sidebar and social buttons.
- Optimized js code for floating sidebar
- Optimized design and css of social share buttons
Download this release
Release Info
Developer | india-web-developer |
Plugin | Custom Share Buttons with Floating Sidebar |
Version | 2.5 |
Comparing to | |
See all releases |
Code changes from version 2.4 to 2.5
- csbwfs-class.php +21 -84
- css/csbwfs.css +13 -12
- custom-share-buttons-with-floating-sidebar.php +23 -21
- js/csbwfs.js +13 -1
- readme.txt +12 -4
csbwfs-class.php
CHANGED
@@ -171,73 +171,10 @@ function csbwf_sidebar_load_inline_js()
|
|
171 |
if($pluginOptionsVal['csbwfs_position']=='right' || $pluginOptionsVal['csbwfs_position']=='left'){
|
172 |
|
173 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
174 |
-
$jscnt.='jQuery("div
|
175 |
-
jQuery(
|
176 |
},function(){
|
177 |
-
jQuery(
|
178 |
-
});';
|
179 |
-
endif;
|
180 |
-
|
181 |
-
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
182 |
-
$jscnt.='jQuery("div#csbwfs-fb a").hover(function(){
|
183 |
-
jQuery("div#csbwfs-fb a").animate({width:animateWidth});
|
184 |
-
},function(){
|
185 |
-
jQuery("div#csbwfs-fb a").stop( true, true ).animate({width:defaultAnimateWidth});
|
186 |
-
});';
|
187 |
-
endif;
|
188 |
-
|
189 |
-
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
190 |
-
$jscnt.='jQuery("div#csbwfs-ml a").hover(function(){
|
191 |
-
jQuery("div#csbwfs-ml a").animate({width:animateWidth});
|
192 |
-
},function(){
|
193 |
-
jQuery("div#csbwfs-ml a").stop( true, true ).animate({width:defaultAnimateWidth});
|
194 |
-
});';
|
195 |
-
endif;
|
196 |
-
|
197 |
-
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
198 |
-
$jscnt.='jQuery("div#csbwfs-gp a").hover(function(){
|
199 |
-
jQuery("div#csbwfs-gp a").animate({width:animateWidth});
|
200 |
-
},function(){
|
201 |
-
jQuery("div#csbwfs-gp a").stop( true, true ).animate({width:defaultAnimateWidth});
|
202 |
-
});';
|
203 |
-
endif;
|
204 |
-
|
205 |
-
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
206 |
-
$jscnt.='jQuery("div#csbwfs-li a").hover(function(){
|
207 |
-
jQuery("div#csbwfs-li a").animate({width:animateWidth});
|
208 |
-
},function(){
|
209 |
-
jQuery("div#csbwfs-li a").stop( true, true ).animate({width:defaultAnimateWidth});
|
210 |
-
});';
|
211 |
-
endif;
|
212 |
-
|
213 |
-
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
214 |
-
$jscnt.='jQuery("div#csbwfs-pin a").hover(function(){
|
215 |
-
jQuery("div#csbwfs-pin a").animate({width:animateWidth});
|
216 |
-
},function(){
|
217 |
-
jQuery("div#csbwfs-pin a").stop( true, true ).animate({width:defaultAnimateWidth});
|
218 |
-
});';
|
219 |
-
endif;
|
220 |
-
|
221 |
-
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
222 |
-
$jscnt.='jQuery("div#csbwfs-yt a").hover(function(){
|
223 |
-
jQuery("div#csbwfs-yt a").animate({width:animateWidth});
|
224 |
-
},function(){
|
225 |
-
jQuery("div#csbwfs-yt a").stop( true, true ).animate({width:defaultAnimateWidth});
|
226 |
-
});';
|
227 |
-
endif;
|
228 |
-
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
229 |
-
$jscnt.='jQuery("div#csbwfs-re a").hover(function(){
|
230 |
-
jQuery("div#csbwfs-re a").animate({width:animateWidth});
|
231 |
-
},function(){
|
232 |
-
jQuery("div#csbwfs-re a").stop( true, true ).animate({width:defaultAnimateWidth});
|
233 |
-
});';
|
234 |
-
endif;
|
235 |
-
|
236 |
-
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
237 |
-
$jscnt.='jQuery("div#csbwfs-st a").hover(function(){
|
238 |
-
jQuery("div#csbwfs-st a").animate({width:animateWidth});
|
239 |
-
},function(){
|
240 |
-
jQuery("div#csbwfs-st a").stop( true, true ).animate({width:defaultAnimateWidth});
|
241 |
});';
|
242 |
endif;
|
243 |
|
@@ -504,47 +441,47 @@ $flitingSidebarContent .= '<div id="csbwfs-social-inner">';
|
|
504 |
|
505 |
/** FB */
|
506 |
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
507 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-fb"><a href="javascript:" onclick="javascript:window.open(\'https://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.'"></a></div></div>';
|
508 |
endif;
|
509 |
|
510 |
/** TW */
|
511 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
512 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-tw"><a href="javascript:" onclick="window.open(\'https://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'\',\'_blank\',\'width=800,height=300\')" title="'.$tImgAlt.'" '.$tImgbg.'><img src="'.$tImg.'" alt="'.$tImgAlt.'"></a></div></div>';
|
513 |
endif;
|
514 |
|
515 |
/** GP */
|
516 |
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
517 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-gp"><a href="javascript:" onclick="javascript:window.open(\'https://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.'"></a></div></div>';
|
518 |
endif;
|
519 |
|
520 |
/** LI */
|
521 |
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
522 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-li"><a href="javascript:" onclick="javascript:window.open(\'https://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.'"></a></div></div>';
|
523 |
endif;
|
524 |
|
525 |
/** PIN */
|
526 |
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
527 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-pin"><a onclick="window.open(\'https://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>';
|
528 |
endif;
|
529 |
|
530 |
/** YT */
|
531 |
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
532 |
-
$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>';
|
533 |
endif;
|
534 |
|
535 |
/** Reddit */
|
536 |
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
537 |
-
$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>';
|
538 |
endif;
|
539 |
|
540 |
/** Stumbleupon */
|
541 |
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
542 |
-
$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>';
|
543 |
endif;
|
544 |
|
545 |
/** Mail*/
|
546 |
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
547 |
-
$flitingSidebarContent .='<div class="csbwfs-sbutton"><div id="csbwfs-ml"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'" '.$mImgbg.' ><img src="'.$mImg.'" alt="'.$mImgAlt.'"></a></div></div>';
|
548 |
endif;
|
549 |
|
550 |
$flitingSidebarContent .='</div>'; //End social-inner
|
@@ -713,46 +650,46 @@ $shareButtonContent.='<div class="sharethis-arrow" title="'.$btnText.'"><span>'.
|
|
713 |
endif;
|
714 |
/* Facebook*/
|
715 |
if($pluginOptionsVal['csbwfs_fpublishBtn']!=''):
|
716 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="fb-p"><a href="javascript:" onclick="javascript:window.open(\'https://www.facebook.com/sharer/sharer.php?u='.$shareurl.'\', \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;"
|
717 |
target="_blank" title="'.$fImgAlt.'"> <img src="'.$fImg.'" alt="'.$fImgAlt.'"></a></div></div>';
|
718 |
endif;
|
719 |
|
720 |
/* Twitter */
|
721 |
if($pluginOptionsVal['csbwfs_tpublishBtn']!=''):
|
722 |
-
$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>';
|
723 |
endif;
|
724 |
|
725 |
/* Google Plus */
|
726 |
if($pluginOptionsVal['csbwfs_gpublishBtn']!=''):
|
727 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="gp-p"><a href="javascript:" onclick="javascript:window.open(\'https://plus.google.com/share?url='.$shareurl.'\',\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" title="'.$gImgAlt.'"> <img src="'.$gImg.'" alt="'.$gImgAlt.'"></a></div>
|
728 |
</div>';
|
729 |
endif;
|
730 |
|
731 |
/* Linkedin */
|
732 |
if($pluginOptionsVal['csbwfs_lpublishBtn']!=''):
|
733 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="li-p"><a href="javascript:" onclick="javascript:window.open(\'https://www.linkedin.com/cws/share?url='.$shareurl.'\',\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" title="'.$lImgAlt.'"><img src="'.$lImg.'" alt="'.$lImgAlt.'"></a></div></div>';
|
734 |
endif;
|
735 |
|
736 |
/* Pinterest */
|
737 |
if($pluginOptionsVal['csbwfs_ppublishBtn']!=''):
|
738 |
-
$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>';
|
739 |
endif;
|
740 |
|
741 |
/* Youtube */
|
742 |
if(isset($pluginOptionsVal['csbwfs_ytpublishBtn']) && $pluginOptionsVal['csbwfs_ytpublishBtn']!=''):
|
743 |
-
$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>';
|
744 |
endif;
|
745 |
/* Stumbleen */
|
746 |
if(isset($pluginOptionsVal['csbwfs_stpublishBtn']) && $pluginOptionsVal['csbwfs_stpublishBtn']!=''):
|
747 |
-
$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>';
|
748 |
endif;
|
749 |
/* Reddit */
|
750 |
if(isset($pluginOptionsVal['csbwfs_republishBtn']) && $pluginOptionsVal['csbwfs_republishBtn']!=''):
|
751 |
-
$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>';
|
752 |
endif;
|
753 |
/* Email */
|
754 |
if($pluginOptionsVal['csbwfs_mpublishBtn']!=''):
|
755 |
-
$shareButtonContent.='<div class="csbwfs-sbutton-post"><div id="ml-p"><a href="mailto:'.$mailMsg.'" title="'.$mImgAlt.'"><img src="'.$mImg.'" alt="'.$mImgAlt.'"></a></div></div>';
|
756 |
endif;
|
757 |
$shareButtonContent.='</div>';
|
758 |
// Returns the content.
|
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 |
|
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(\'https://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.'"></a></div></div>';
|
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(\'https://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.'\',\'_blank\',\'width=800,height=300\')" title="'.$tImgAlt.'" '.$tImgbg.'><img src="'.$tImg.'" alt="'.$tImgAlt.'"></a></div></div>';
|
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(\'https://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.'"></a></div></div>';
|
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(\'https://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.'"></a></div></div>';
|
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(\'https://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>';
|
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(\'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>';
|
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(\'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>';
|
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
|
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:" onclick="javascript:window.open(\'https://www.facebook.com/sharer/sharer.php?u='.$shareurl.'\', \'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=300,width=600\');return false;"
|
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(\'http://twitter.com/share?url='.$shareurl.'&text='.$ShareTitle.' \', \'_blank\', \'width=800,height=300\')" title="'.$tImgAlt.'"><img src="'.$tImg.'" alt="'.$tImgAlt.'"></a></div></div>';
|
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:" onclick="javascript:window.open(\'https://plus.google.com/share?url='.$shareurl.'\',\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" title="'.$gImgAlt.'"> <img src="'.$gImg.'" alt="'.$gImgAlt.'"></a></div>
|
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(\'https://www.linkedin.com/cws/share?url='.$shareurl.'\',\'\', \'menubar=no,toolbar=no,resizable=yes,scrollbars=yes,height=600,width=600\');return false;" title="'.$lImgAlt.'"><img src="'.$lImg.'" alt="'.$lImgAlt.'"></a></div></div>';
|
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(\'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>';
|
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(\'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>';
|
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(\'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>';
|
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.
|
css/csbwfs.css
CHANGED
@@ -4,18 +4,18 @@
|
|
4 |
.sbutton img {opacity:0.7;}
|
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:
|
8 |
.csbwfs-sbutton img{padding:5px;}
|
9 |
-
.csbwfs-sbutton a {text-align:center; display:block; width:45px; height:
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
/* Right Position */
|
20 |
#csbwfs-right #csbwfs-re,#csbwfs-right #csbwfs-st,#csbwfs-right #csbwfs-yt,#csbwfs-right #csbwfs-ml,#csbwfs-right #csbwfs-pin,#csbwfs-right #csbwfs-gp,#csbwfs-right #csbwfs-tw,#csbwfs-right #csbwfs-fb,#csbwfs-right #csbwfs-li a {position: absolute; right: 0;}
|
21 |
#csbwfs-right a#csbwfs-hide {padding-right:33px;}
|
@@ -31,7 +31,7 @@ bottom: 0; height: 45px;
|
|
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:
|
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,3 +43,4 @@ 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;}
|
|
4 |
.sbutton img {opacity:0.7;}
|
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;}
|
8 |
.csbwfs-sbutton img{padding:5px;}
|
9 |
+
.csbwfs-sbutton a {text-align:center; display:block; width:45px; height:42px; border-bottom:1px solid rgba(255, 255, 255, 0.1)}
|
10 |
+
.csbwfs-tw a{background:none repeat scroll 0 0 #2CA8D2; }
|
11 |
+
.csbwfs-fb a{background:none repeat scroll 0 0 #305891;}
|
12 |
+
.csbwfs-ml a{background:none repeat scroll 0 0 #738A8D;}
|
13 |
+
.csbwfs-gp a{background:none repeat scroll 0 0 #DD4C39; }
|
14 |
+
.csbwfs-li a{background:none repeat scroll 0 0 #007BB6;}
|
15 |
+
.csbwfs-pin a{background:none repeat scroll 0 0 #ca2027;}
|
16 |
+
.csbwfs-yt a{background:none repeat scroll 0 0 #ffffff;}
|
17 |
+
.csbwfs-re a{background:none repeat scroll 0 0 #FF1A00;}
|
18 |
+
.csbwfs-st a{background:none repeat scroll 0 0 #EB4924;}
|
19 |
/* Right Position */
|
20 |
#csbwfs-right #csbwfs-re,#csbwfs-right #csbwfs-st,#csbwfs-right #csbwfs-yt,#csbwfs-right #csbwfs-ml,#csbwfs-right #csbwfs-pin,#csbwfs-right #csbwfs-gp,#csbwfs-right #csbwfs-tw,#csbwfs-right #csbwfs-fb,#csbwfs-right #csbwfs-li a {position: absolute; right: 0;}
|
21 |
#csbwfs-right a#csbwfs-hide {padding-right:33px;}
|
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 |
.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;}
|
custom-share-buttons-with-floating-sidebar.php
CHANGED
@@ -5,7 +5,7 @@ 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: 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)
|
@@ -238,52 +238,53 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
238 |
</tr>
|
239 |
<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"';}?>/>Hide Sidebar On Home Page</td></tr>
|
240 |
<tr><td colspan="2"><strong><h4>Social Share Button Images 32X32 (Optional) :</h4></strong></td></tr>
|
|
|
241 |
<tr>
|
242 |
<th><?php echo 'Facebook:';?></th>
|
243 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg">
|
244 |
-
<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"/>
|
245 |
</td>
|
246 |
</tr>
|
247 |
<tr><th><?php echo 'Twitter:';?></th>
|
248 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg">
|
249 |
-
<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"/>
|
250 |
</td>
|
251 |
</tr>
|
252 |
<tr>
|
253 |
<th><?php echo 'Linkdin:';?></th>
|
254 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsLiImg">
|
255 |
-
<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"/>
|
256 |
</td>
|
257 |
</tr>
|
258 |
<tr><th><?php echo 'Pintrest:';?></th>
|
259 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg">
|
260 |
-
<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"/>
|
261 |
</td>
|
262 |
</tr>
|
263 |
<tr><th><?php echo 'Google Plus:';?></th>
|
264 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsGoImg">
|
265 |
-
<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"/>
|
266 |
</td>
|
267 |
</tr>
|
268 |
<tr><th><?php echo 'Reddit:';?></th>
|
269 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsReImg">
|
270 |
-
<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"/>
|
271 |
</td>
|
272 |
</tr>
|
273 |
<tr><th><?php echo 'Stumbleupon:';?></th>
|
274 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsStImg">
|
275 |
<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"/>
|
276 |
-
<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"/>
|
277 |
</td>
|
278 |
</tr>
|
279 |
<tr><th><?php echo 'Mail:';?></th>
|
280 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsMaImg">
|
281 |
-
<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"/>
|
282 |
</td>
|
283 |
</tr>
|
284 |
<tr><th><?php echo 'Youtube:';?></th>
|
285 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg">
|
286 |
-
<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"/>
|
287 |
</td>
|
288 |
</tr>
|
289 |
<tr><td colspan="2"><h3><strong>Style(Optional):</strong></h3></td></tr>
|
@@ -319,8 +320,8 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
319 |
<th nowrap><?php echo 'Display Buttons On ';?></th>
|
320 |
<td>
|
321 |
<select id="csbwfs_btn_display" name="csbwfs_btn_display" >
|
322 |
-
<option value="
|
323 |
-
<option value="
|
324 |
</select>
|
325 |
</td>
|
326 |
</tr>
|
@@ -334,62 +335,63 @@ function csbwf_sidebar_admin_option_page(){ ?>
|
|
334 |
</td></tr>
|
335 |
|
336 |
<tr><td colspan="2"><strong><h4>Social Share Button Images 32X32 (Optional) :</h4></strong></td></tr>
|
|
|
337 |
<tr><th><?php echo 'Facebook:';?></th>
|
338 |
<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"/>
|
339 |
-
<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"/>
|
340 |
</td>
|
341 |
</tr>
|
342 |
<tr>
|
343 |
<th><?php echo 'Twitter:';?></th>
|
344 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg2">
|
345 |
<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"/>
|
346 |
-
<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"/>
|
347 |
</td>
|
348 |
</tr>
|
349 |
<tr><th><?php echo 'Linkdin:';?></th>
|
350 |
<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"/>
|
351 |
-
<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"/>
|
352 |
</td>
|
353 |
</tr>
|
354 |
<tr>
|
355 |
<th><?php echo 'Pintrest:';?></th>
|
356 |
<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"/>
|
357 |
-
<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"/>
|
358 |
</td>
|
359 |
</tr>
|
360 |
<tr>
|
361 |
<th><?php echo 'Google Plus:';?></th>
|
362 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsGpImg2">
|
363 |
<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"/>
|
364 |
-
<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"/>
|
365 |
</td>
|
366 |
</tr>
|
367 |
<tr>
|
368 |
<th><?php echo 'Reddit:';?></th>
|
369 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsReImg2">
|
370 |
<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"/>
|
371 |
-
<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"/>
|
372 |
</td>
|
373 |
</tr>
|
374 |
<tr>
|
375 |
<th><?php echo 'Stumbleupon:';?></th>
|
376 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsStImg2">
|
377 |
<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"/>
|
378 |
-
<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"/>
|
379 |
</td>
|
380 |
</tr>
|
381 |
<tr>
|
382 |
<th><?php echo 'Mail:';?></th>
|
383 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsMlImg2">
|
384 |
<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"/>
|
385 |
-
<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"/>
|
386 |
</td>
|
387 |
</tr>
|
388 |
<tr>
|
389 |
<th><?php echo 'Youtube:';?></th>
|
390 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg2">
|
391 |
<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"/>
|
392 |
-
<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"/>
|
393 |
</td>
|
394 |
</tr>
|
395 |
</table>
|
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: MR Web Solution
|
7 |
Author URI: http://raghunathgurjar.wordpress.com
|
8 |
+
Version: 2.5
|
9 |
*/
|
10 |
|
11 |
/* Copyright 2015 custom-share-buttons-with-floating-sidebar (email : raghunath.0087@gmail.com)
|
238 |
</tr>
|
239 |
<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"';}?>/>Hide Sidebar On Home Page</td></tr>
|
240 |
<tr><td colspan="2"><strong><h4>Social Share Button Images 32X32 (Optional) :</h4></strong></td></tr>
|
241 |
+
<tr><td colspan="2" align="right"><input type="button" id="csbwfs_resetpage" value="Reset"></td></tr>
|
242 |
<tr>
|
243 |
<th><?php echo 'Facebook:';?></th>
|
244 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg">
|
245 |
+
<input type="text" id="csbwfs_fb_image" name="csbwfs_fb_image" value="<?php echo get_option('csbwfs_fb_image'); ?>" placeholder="Insert facebook button image path" size="30" class="inputButtonid"/> <input id="csbwfs_fb_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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" class="csbwfs_title"/>
|
246 |
</td>
|
247 |
</tr>
|
248 |
<tr><th><?php echo 'Twitter:';?></th>
|
249 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg">
|
250 |
+
<input type="text" id="csbwfs_tw_image" name="csbwfs_tw_image" value="<?php echo get_option('csbwfs_tw_image'); ?>" placeholder="Insert twitter button image path" size="30" class="inputButtonid"/><input id="csbwfs_tw_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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" class="csbwfs_title"/>
|
251 |
</td>
|
252 |
</tr>
|
253 |
<tr>
|
254 |
<th><?php echo 'Linkdin:';?></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 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" class="csbwfs_title"/>
|
257 |
</td>
|
258 |
</tr>
|
259 |
<tr><th><?php echo 'Pintrest:';?></th>
|
260 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg">
|
261 |
+
<input type="text" id="csbwfs_pin_image" name="csbwfs_pin_image" value="<?php echo get_option('csbwfs_pin_image'); ?>" class="inputButtonid" placeholder="Insert pinterest button image path" size="30" class="buttonimg"/><input id="csbwfs_pin_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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" class="csbwfs_title"/>
|
262 |
</td>
|
263 |
</tr>
|
264 |
<tr><th><?php echo 'Google Plus:';?></th>
|
265 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsGoImg">
|
266 |
+
<input type="text" id="csbwfs_gp_image" name="csbwfs_gp_image" value="<?php echo get_option('csbwfs_gp_image'); ?>" placeholder="Insert google button image path" size="30" class="inputButtonid"/><input id="csbwfs_gp_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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" class="csbwfs_title"/>
|
267 |
</td>
|
268 |
</tr>
|
269 |
<tr><th><?php echo 'Reddit:';?></th>
|
270 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsReImg">
|
271 |
+
<input type="text" id="csbwfs_re_image" name="csbwfs_re_image" value="<?php echo get_option('csbwfs_re_image'); ?>" placeholder="Insert reddit button image path" size="30" class="inputButtonid"/><input id="csbwfs_re_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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" class="csbwfs_title"/>
|
272 |
</td>
|
273 |
</tr>
|
274 |
<tr><th><?php echo 'Stumbleupon:';?></th>
|
275 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsStImg">
|
276 |
<input type="text" id="csbwfs_st_image" name="csbwfs_st_image" value="<?php echo get_option('csbwfs_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="30" class="inputButtonid"/><input id="csbwfs_st_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <input type="text" id="csbwfs_st_bg" name="csbwfs_st_bg" value="<?php echo get_option('csbwfs_st_bg'); ?>" data-default-color="#eb4924" class="color-field" size="20"/>
|
277 |
+
<input type="text" id="csbwfs_st_title" name="csbwfs_st_title" value="<?php echo get_option('csbwfs_st_title'); ?>" placeholder="Share on stumbleupon" size="20" class="csbwfs_title"/>
|
278 |
</td>
|
279 |
</tr>
|
280 |
<tr><th><?php echo 'Mail:';?></th>
|
281 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsMaImg">
|
282 |
+
<input type="text" id="csbwfs_mail_image" name="csbwfs_mail_image" value="<?php echo get_option('csbwfs_mail_image'); ?>" placeholder="Insert mail button image path" size="30" class="inputButtonid"/><input id="csbwfs_mail_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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" class="csbwfs_title"/>
|
283 |
</td>
|
284 |
</tr>
|
285 |
<tr><th><?php echo 'Youtube:';?></th>
|
286 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg">
|
287 |
+
<input type="text" id="csbwfs_yt_image" name="csbwfs_yt_image" value="<?php echo get_option('csbwfs_yt_image'); ?>" placeholder="Insert youtube button image path" size="30" class="inputButtonid"/><input id="csbwfs_yt_image_button" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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" class="csbwfs_title"/>
|
288 |
</td>
|
289 |
</tr>
|
290 |
<tr><td colspan="2"><h3><strong>Style(Optional):</strong></h3></td></tr>
|
320 |
<th nowrap><?php echo 'Display Buttons On ';?></th>
|
321 |
<td>
|
322 |
<select id="csbwfs_btn_display" name="csbwfs_btn_display" >
|
323 |
+
<option value="below" <?php selected(get_option('csbwfs_btn_display'),'below');?>>Bottom Of The Content</option>
|
324 |
+
<option value="above" <?php selected(get_option('csbwfs_btn_display'),'above');?>>Top Of The Content</option>
|
325 |
</select>
|
326 |
</td>
|
327 |
</tr>
|
335 |
</td></tr>
|
336 |
|
337 |
<tr><td colspan="2"><strong><h4>Social Share Button Images 32X32 (Optional) :</h4></strong></td></tr>
|
338 |
+
<tr><td colspan="2" align="right"><input type="button" id="csbwfsresetpage" value="RESET"></td></tr>
|
339 |
<tr><th><?php echo 'Facebook:';?></th>
|
340 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsFbImg2"><input type="text" id="csbwfs_page_fb_image" name="csbwfs_page_fb_image" value="<?php echo get_option('csbwfs_page_fb_image'); ?>" placeholder="Insert facebook button image path" size="40" class="inputButtonid"/>
|
341 |
+
<input id="csbwfs_fb_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <input type="text" id="csbwfs_page_fb_title" name="csbwfs_page_fb_title" value="<?php echo get_option('csbwfs_page_fb_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
|
342 |
</td>
|
343 |
</tr>
|
344 |
<tr>
|
345 |
<th><?php echo 'Twitter:';?></th>
|
346 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsTwImg2">
|
347 |
<input type="text" id="csbwfs_page_tw_image" name="csbwfs_page_tw_image" value="<?php echo get_option('csbwfs_page_tw_image'); ?>" placeholder="Insert twitter button image path" size="40" class="inputButtonid"/>
|
348 |
+
<input id="csbwfs_tw_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <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 'Linkdin:';?></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 linkdin 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>
|
356 |
<tr>
|
357 |
<th><?php echo 'Pintrest:';?></th>
|
358 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsPiImg2"><input type="text" id="csbwfs_page_pin_image" name="csbwfs_page_pin_image" value="<?php echo get_option('csbwfs_page_pin_image'); ?>" placeholder="Insert pinterest button image path" size="40" class="inputButtonid"/>
|
359 |
+
<input id="csbwfs_pi_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <input type="text" id="csbwfs_page_pin_title" name="csbwfs_page_pin_title" value="<?php echo get_option('csbwfs_page_pin_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
|
360 |
</td>
|
361 |
</tr>
|
362 |
<tr>
|
363 |
<th><?php echo 'Google Plus:';?></th>
|
364 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsGpImg2">
|
365 |
<input type="text" id="csbwfs_page_gp_image" name="csbwfs_page_gp_image" value="<?php echo get_option('csbwfs_page_gp_image'); ?>" placeholder="Insert google button image path" size="40" class="inputButtonid"/>
|
366 |
+
<input id="csbwfs_gp_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <input type="text" id="csbwfs_page_gp_title" name="csbwfs_page_gp_title" value="<?php echo get_option('csbwfs_page_gp_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
|
367 |
</td>
|
368 |
</tr>
|
369 |
<tr>
|
370 |
<th><?php echo 'Reddit:';?></th>
|
371 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsReImg2">
|
372 |
<input type="text" id="csbwfs_page_re_image" name="csbwfs_page_re_image" value="<?php echo get_option('csbwfs_page_re_image'); ?>" placeholder="Insert reddit button image path" size="40" class="inputButtonid"/>
|
373 |
+
<input id="csbwfs_re_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <input type="text" id="csbwfs_page_re_title" name="csbwfs_page_re_title" value="<?php echo get_option('csbwfs_page_re_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
|
374 |
</td>
|
375 |
</tr>
|
376 |
<tr>
|
377 |
<th><?php echo 'Stumbleupon:';?></th>
|
378 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsStImg2">
|
379 |
<input type="text" id="csbwfs_page_st_image" name="csbwfs_page_st_image" value="<?php echo get_option('csbwfs_page_st_image'); ?>" placeholder="Insert stumbleupon button image path" size="40" class="inputButtonid"/>
|
380 |
+
<input id="csbwfs_st_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <input type="text" id="csbwfs_page_st_title" name="csbwfs_page_st_title" value="<?php echo get_option('csbwfs_page_st_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
|
381 |
</td>
|
382 |
</tr>
|
383 |
<tr>
|
384 |
<th><?php echo 'Mail:';?></th>
|
385 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsMlImg2">
|
386 |
<input type="text" id="csbwfs_page_mail_image" name="csbwfs_page_mail_image" value="<?php echo get_option('csbwfs_page_mail_image'); ?>" placeholder="Insert mail button image path" size="40" class="inputButtonid"/>
|
387 |
+
<input id="csbwfs_ml_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <input type="text" id="csbwfs_page_mail_title" name="csbwfs_page_mail_title" value="<?php echo get_option('csbwfs_page_mail_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
|
388 |
</td>
|
389 |
</tr>
|
390 |
<tr>
|
391 |
<th><?php echo 'Youtube:';?></th>
|
392 |
<td class="csbwfsButtonsImg" id="csbwfsButtonsYtImg2">
|
393 |
<input type="text" id="csbwfs_page_yt_image" name="csbwfs_page_yt_image" value="<?php echo get_option('csbwfs_page_yt_image'); ?>" placeholder="Insert youtube button image path" size="40" class="inputButtonid"/>
|
394 |
+
<input id="csbwfs_yt_image_button2" type="button" value="Upload Image" class="cswbfsUploadBtn"/> <input type="text" id="csbwfs_page_yt_title" name="csbwfs_page_yt_title" value="<?php echo get_option('csbwfs_page_yt_title'); ?>" placeholder="Alt Text" size="20" class="csbwfs_title"/>
|
395 |
</td>
|
396 |
</tr>
|
397 |
</table>
|
js/csbwfs.js
CHANGED
@@ -29,10 +29,22 @@ jQuery(document).ready(function(){
|
|
29 |
return false;
|
30 |
});
|
31 |
window.send_to_editor = function(html) {
|
32 |
-
imgurl = jQuery(
|
33 |
jQuery("#"+inputfieldId).val(imgurl);
|
34 |
tb_remove();
|
35 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
});
|
37 |
(function( ) {
|
38 |
|
29 |
return false;
|
30 |
});
|
31 |
window.send_to_editor = function(html) {
|
32 |
+
imgurl = jQuery(html).attr("src");
|
33 |
jQuery("#"+inputfieldId).val(imgurl);
|
34 |
tb_remove();
|
35 |
}
|
36 |
+
|
37 |
+
/** reset share buttons settings */
|
38 |
+
jQuery('#div-csbwfs-share-buttons #csbwfsresetpage').click(function(){
|
39 |
+
jQuery('#div-csbwfs-share-buttons .inputButtonid').val('');
|
40 |
+
jQuery('#div-csbwfs-share-buttons .csbwfs_title').val('');
|
41 |
+
})
|
42 |
+
/** reset floating sidebar settings */
|
43 |
+
jQuery('#div-csbwfs-sidebar #csbwfs_resetpage').click(function(){
|
44 |
+
jQuery('#div-csbwfs-sidebar .inputButtonid').val('');
|
45 |
+
jQuery('#div-csbwfs-sidebar .csbwfs_title').val('');
|
46 |
+
})
|
47 |
+
|
48 |
});
|
49 |
(function( ) {
|
50 |
|
readme.txt
CHANGED
@@ -4,9 +4,9 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
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.4.2
|
7 |
-
Stable tag: 2.
|
8 |
|
9 |
-
Add Social Share Buttons(Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit)
|
10 |
|
11 |
== Description ==
|
12 |
|
@@ -43,6 +43,7 @@ You can add a social share floating sidebar with all social share buttons and Ev
|
|
43 |
* Option for auto close sidebar buttons on page load
|
44 |
* Option for hide "Share This!!" button on page/post
|
45 |
* Option for define share buttons postion (above content/below content)
|
|
|
46 |
= Go Pro =
|
47 |
|
48 |
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:
|
@@ -75,7 +76,7 @@ We have also released an add-on for Custom Share Buttons With Floating Sidebar w
|
|
75 |
|
76 |
For any query contact to plugin author on **[raghunath.0087@gmail.com](mailto:raghunath.0087@gmail.com)**
|
77 |
|
78 |
-
We have released
|
79 |
**[Go Pro Magento Version](http://www.magentocommerce.com/magento-connect/social-share-buttons-pro.html)**
|
80 |
|
81 |
== Installation ==
|
@@ -137,7 +138,14 @@ No,this is not a responsibe but you can use our csbwfs addon, Our CSBWFS ADDON i
|
|
137 |
|
138 |
9. screenshot-9.png
|
139 |
|
140 |
-
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
141 |
= 2.4 =
|
142 |
* Fixed share url issue for custom post type.
|
143 |
* Fixed show/hide share buttons issues
|
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.4.2
|
7 |
+
Stable tag: 2.5
|
8 |
|
9 |
+
Add Social Share Buttons(Facebook,Twitter,Linkedin,Google+,Pinterest,Youtube,Mail,Stumbleupon,Reddit) With Floating Sidebar.
|
10 |
|
11 |
== Description ==
|
12 |
|
43 |
* Option for auto close sidebar buttons on page load
|
44 |
* Option for hide "Share This!!" button on page/post
|
45 |
* Option for define share buttons postion (above content/below content)
|
46 |
+
|
47 |
= Go Pro =
|
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:
|
76 |
|
77 |
For any query contact to plugin author on **[raghunath.0087@gmail.com](mailto:raghunath.0087@gmail.com)**
|
78 |
|
79 |
+
We have released also a social share pro extenstion for magento Sites
|
80 |
**[Go Pro Magento Version](http://www.magentocommerce.com/magento-connect/social-share-buttons-pro.html)**
|
81 |
|
82 |
== Installation ==
|
138 |
|
139 |
9. screenshot-9.png
|
140 |
|
141 |
+
== Changelog ==
|
142 |
+
|
143 |
+
= 2.5 =
|
144 |
+
* Fixed upload image issue.
|
145 |
+
* Added reset button for reset to images/title for sidebar and social buttons.
|
146 |
+
* Optimized js code for floating sidebar
|
147 |
+
* Optimized design and css of social share buttons
|
148 |
+
|
149 |
= 2.4 =
|
150 |
* Fixed share url issue for custom post type.
|
151 |
* Fixed show/hide share buttons issues
|