Changeset 828988
- Timestamp:
- 12/27/2013 10:34:36 AM (12 years ago)
- Location:
- simple-faqs/trunk
- Files:
-
- 2 edited
-
readme.txt (modified) (3 diffs)
-
simple-faq.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
simple-faqs/trunk/readme.txt
r808358 r828988 3 3 Tags: FAQ listing 4 4 Requires at least: 3.7.1 5 Tested up to: 3. 7.16 Stable tag: 1.1. 25 Tested up to: 3.8 6 Stable tag: 1.1.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 17 17 <li>Accordion (the default option)</li> 18 18 <li>Simple (just list each answer below that question)</li> 19 <li>Bookmarks (show the questions at the top and lead to the related answer below) </li>19 <li>Bookmarks (show the questions at the top and lead to the related answer below) - now implements scrolling via LocalScroll jQuery plugin</li> 20 20 </ol> 21 21 … … 44 44 = 1.1.2 = 45 45 Add Back To Top feature for Bookmark Style 46 47 = 1.1.3 = 48 Add smooth scrolling feature for Bookmark Style FAQ -
simple-faqs/trunk/simple-faq.php
r808358 r828988 119 119 120 120 function faq_style_bookmarks($items) { 121 wp_register_script( 'simple-faq-smooth-scroll', plugins_url( '/jquery.scrollTo-min.js', __FILE__ ) ); 122 wp_enqueue_script('simple-faq-smooth-scroll'); 123 wp_register_script( 'simple-faq-smooth-scroll-local', plugins_url( '/jquery.localScroll.min.js', __FILE__ ) ); 124 wp_enqueue_script('simple-faq-smooth-scroll-local'); 125 126 127 echo "<script> 128 jQuery(document).ready(function($){ 129 $.localScroll({ 130 queue:true, 131 duration:1000, 132 hash:true 133 }); 134 }); 135 </script>"; 136 121 137 $item_number = 1; 122 138 $output = '<a id="simple-faq-top"></a>';
Note: See TracChangeset
for help on using the changeset viewer.