Plugin Directory

Changeset 828988


Ignore:
Timestamp:
12/27/2013 10:34:36 AM (12 years ago)
Author:
speedito
Message:

New version for WP 3.8

Location:
simple-faqs/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • simple-faqs/trunk/readme.txt

    r808358 r828988  
    33Tags: FAQ listing
    44Requires at least: 3.7.1
    5 Tested up to: 3.7.1
    6 Stable tag: 1.1.2
     5Tested up to: 3.8
     6Stable tag: 1.1.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1717<li>Accordion (the default option)</li>
    1818<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>
    2020</ol>
    2121
     
    4444= 1.1.2 =
    4545Add Back To Top feature for Bookmark Style
     46
     47= 1.1.3 =
     48Add smooth scrolling feature for Bookmark Style FAQ
  • simple-faqs/trunk/simple-faq.php

    r808358 r828988  
    119119
    120120function 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
    121137    $item_number = 1;
    122138    $output = '<a id="simple-faq-top"></a>';
Note: See TracChangeset for help on using the changeset viewer.