Skip to:
Content
Pages
Categories
Search
Top
Bottom

jquery superfish problem


  • KillerSneak
    Member

    @killersneak

    So i need some help. I have integrated BBPress with WordPress but the template I’m running only loads the Jquery SuperFish menu when it finds WP 2.8 – i need to alter the code so it also loads when it find BB press 1.0 / 1.0.2

    here’s the code

    <?php

    if ( $wp_version != '2.8')

    {

    wp_deregister_script('jquery');

    wp_enqueue_script('jquery', get_template_directory_uri() . '/js/jquery-1.3.2.min.js', null, '1.3.2', false);

    wp_enqueue_script('jquery-ui', get_template_directory_uri() . '/js/jquery-ui-1.7.1.min.js', 'jquery', '1.7.1', false);

    } else {

    wp_enqueue_script('jquery-ui-tabs', null, array('jquery', 'jquery-ui-core'), null, false);

    }

    if ( $bb_version != ‘1.0’)

    {

    wp_deregister_script(‘jquery’);

    wp_enqueue_script(‘jquery’, get_template_directory_uri() . ‘/js/jquery-1.3.2.min.js’, null, ‘1.3.2’, false);

    wp_enqueue_script(‘jquery-ui’, get_template_directory_uri() . ‘/js/jquery-ui-1.7.1.min.js’, ‘jquery’, ‘1.7.1’, false);

    } else {

    wp_enqueue_script(‘jquery-ui-tabs’, null, array(‘jquery’, ‘jquery-ui-core’), null, false);

    }

    wp_enqueue_script(‘jquery-cycle’, get_template_directory_uri() . ‘/js/jquery.cycle.all.min.js’, ‘jquery’, null, false);

    wp_enqueue_script(‘jquery-validate’, get_template_directory_uri() . ‘/js/jquery.validate.min.js’, ‘jquery’, null, false);

    if ( !function_exists(‘pixopoint_menu’) ) {

    wp_enqueue_script(‘hoverintent’, get_template_directory_uri() . ‘/js/superfish/hoverIntent.js’, ‘jquery’, null, false);

    wp_enqueue_script(‘superfish’, get_template_directory_uri() . ‘/js/superfish/superfish.js’, ‘jquery’, null, false);

    }

    if ( is_singular() ) {

    wp_enqueue_script(‘comment-reply’);

    }

    wp_enqueue_script(‘arras-base’, get_template_directory_uri() . ‘/js/base.js’, ‘jquery’, null, false);

    wp_head();

    arras_head();

    if ( !function_exists(‘pixopoint_menu’) ) :

    ?>

    <script type=”text/javascript”>

    $(document).ready(function() {

    $(‘.sf-menu’).superfish({

    delay: 1000, // one second delay on mouseout

    animation: {opacity:’show’,height:’show’}, // fade-in and slide-down animation

    speed: ‘fast’, // faster animation speed

    autoArrows: false, // disable generation of arrow mark-up

    dropShadows: false // disable drop shadows

    });

    });

    </script>

    <?php endif ?>

  • You must be logged in to reply to this topic.
Skip to toolbar