Plugin Directory

Changeset 712081


Ignore:
Timestamp:
05/12/2013 10:29:57 PM (13 years ago)
Author:
matthodder
Message:

v1.1 - update script and add new menus

Location:
superfish/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • superfish/trunk/readme.txt

    r649996 r712081  
    33Tags: menu, superfish, jquery, thesis
    44Requires at least: 3.0
    5 Tested up to: 3.5
     5Tested up to: 3.5.1
    66Stable tag: 1.0
    77
     
    1919== Changelog ==
    2020
     21= 1.1 =
     22
     23* Updated to work with more menus
     24* Updated superfish script to 1.7.2 (latest)
     25
    2126= 1.0 =
    2227
  • superfish/trunk/superfish.php

    r650256 r712081  
    55Description: Adds jQuery Superfish effects to most WordPress menus.
    66Author: Matt Hodder
    7 Version: 1.0
     7Version: 1.1
    88Author URI: http://www.matthodder.com/
    99*/
     
    1111add_action('wp_enqueue_scripts', 'mh_superfish');
    1212function mh_superfish() {
    13     if(!is_admin()) wp_enqueue_script('superfish', plugins_url( 'js/superfish.js', __FILE__ ), array('jquery'), '1.4.8', TRUE);
    14     if(!is_admin()) wp_enqueue_script('superfish-args', plugins_url( 'js/superfish_args.js', __FILE__ ), array('jquery'), '1.4.8', TRUE);
     13    wp_register_script('superfish', plugins_url( 'js/superfish.js', __FILE__ ), array('jquery'), '1.7.2', TRUE);
     14    wp_register_script('superfish-args', plugins_url( 'js/superfish_args.js', __FILE__ ), array('jquery'), '1.7.2', TRUE);
     15   
     16    if(!is_admin()) wp_enqueue_script('superfish');
     17    if(!is_admin()) wp_enqueue_script('superfish-args');
    1518}
Note: See TracChangeset for help on using the changeset viewer.