Changeset 764735
- Timestamp:
- 08/30/2013 12:57:45 PM (12 years ago)
- Location:
- scrolling-social-sharebar
- Files:
-
- 3 added
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
scrolling-social-sharebar/trunk/readme.txt
r764629 r764735 5 5 Requires at least: 3.0 6 6 Tested up to: 3.6 7 Stable tag: 1.7 7 Stable tag: 1.7.1 8 8 9 9 A scrolling social sharebar scrolling plugin with 7 social icons (Twitter, FB Like, Google +1, Linkedin, FB Share, Stumbleupon and Addthis) and option to add your own custom buttons. -
scrolling-social-sharebar/trunk/scroll-sharebar.php
r764629 r764735 4 4 Plugin URI: http://techxt.com/scrolling-social-sharebar-plugin/ 5 5 Description: Scrolling Social Sharebar (Twitter Like Google +1 Linkedin and Stumbleupon) 6 Version: 1.7 6 Version: 1.7.1 7 7 Author: Sudipto Pratap Mahato 8 8 Author URI: http://techxt.com … … 53 53 { 54 54 $sharelinks=disp_ssharebar_func(); 55 $content= $sharelinks.$content;55 $content='<div id="ssbartop"></div>'.$sharelinks.$content; 56 56 $dispssbar=TRUE; 57 57 } 58 58 if((is_single()&&get_option('ssbar_dpost','checked')=='checked')||(is_page()&&get_option('ssbar_dpage','checked')=='checked')){ 59 59 $sharelinks=disp_ssharebar_func(); 60 $content= $sharelinks.$content;60 $content='<div id="ssbartop"></div>'.$sharelinks.$content; 61 61 $dispssbar=TRUE; 62 62 } … … 104 104 { 105 105 position: fixed !important; 106 106 z-index: 9999; 107 107 top: <?php echo $toppad; ?>px; 108 108 } … … 131 131 <?php }else { ?> 132 132 <script type="text/javascript"> 133 134 133 (function($) { 135 134 $(function() { 136 var offset = $("#s crollbarbox").offset();135 var offset = $("#ssbartop").offset(); 137 136 var bottomPadding = <?php echo $bottompad; ?>; 138 137 var topPadding = <?php echo $toppad; ?>; 138 $(window).resize(function() { 139 offset = $("#ssbartop").offset(); 140 if(offset.top<topPadding)$("#scrollbarbox").addClass("sbpinned"); 141 }); 139 142 $(window).scroll(function() { 140 143 offset = $("#ssbartop").offset(); 141 144 if ($(window).scrollTop() > offset.top-topPadding && $(window).scrollTop()<$(document).height()-bottomPadding-$("#scrollbarbox").height()) 142 145 {
Note: See TracChangeset
for help on using the changeset viewer.