Version Description
- Edit: Plugin now works with Cufon text
Download this release
Release Info
Developer | remix4 |
Plugin | JQuery Accordion Menu Widget |
Version | 2.3 |
Comparing to | |
See all releases |
Code changes from version 2.2 to 2.3
dcwp_jquery_accordion.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, accordion
|
6 |
Description: Creates a widget, which allows you to create vertical accordion menus from any Wordpress custom menu using jQuery. Features include - handles multiple levels, saved state using cookies and option of selecting "click" or "hover" events for triggering the menu.
|
7 |
Author: Lee Chestnutt
|
8 |
-
Version: 2.
|
9 |
Author URI: http://www.designchemical.com
|
10 |
*/
|
11 |
|
@@ -24,7 +24,7 @@ class dc_jqaccordion {
|
|
24 |
wp_enqueue_script( 'jquery' );
|
25 |
wp_enqueue_script( 'jqueryhoverintent', dc_jqaccordion::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );
|
26 |
wp_enqueue_script( 'jquerycookie', dc_jqaccordion::get_plugin_directory() . '/js/jquery.cookie.js', array('jquery') );
|
27 |
-
wp_enqueue_script( 'dcjqaccordion', dc_jqaccordion::get_plugin_directory() . '/js/jquery.dcjqaccordion.2.
|
28 |
}
|
29 |
add_action( 'wp_footer', array('dc_jqaccordion', 'footer') );
|
30 |
|
5 |
Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, accordion
|
6 |
Description: Creates a widget, which allows you to create vertical accordion menus from any Wordpress custom menu using jQuery. Features include - handles multiple levels, saved state using cookies and option of selecting "click" or "hover" events for triggering the menu.
|
7 |
Author: Lee Chestnutt
|
8 |
+
Version: 2.3
|
9 |
Author URI: http://www.designchemical.com
|
10 |
*/
|
11 |
|
24 |
wp_enqueue_script( 'jquery' );
|
25 |
wp_enqueue_script( 'jqueryhoverintent', dc_jqaccordion::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );
|
26 |
wp_enqueue_script( 'jquerycookie', dc_jqaccordion::get_plugin_directory() . '/js/jquery.cookie.js', array('jquery') );
|
27 |
+
wp_enqueue_script( 'dcjqaccordion', dc_jqaccordion::get_plugin_directory() . '/js/jquery.dcjqaccordion.2.4.js', array('jquery') );
|
28 |
}
|
29 |
add_action( 'wp_footer', array('dc_jqaccordion', 'footer') );
|
30 |
|
js/{jquery.dcjqaccordion.2.3.js → jquery.dcjqaccordion.2.4.js}
RENAMED
@@ -51,7 +51,7 @@
|
|
51 |
// Disable parent links
|
52 |
if(defaults.disableLink == true){
|
53 |
$('li a',$dcAccordionObj).click(function(e){
|
54 |
-
if($(this).
|
55 |
e.preventDefault();
|
56 |
}
|
57 |
});
|
@@ -63,7 +63,7 @@
|
|
63 |
$parentsUl = $activeLi.parents('ul');
|
64 |
// Prevent browsing to link if has child links
|
65 |
if(defaults.disableLink == true){
|
66 |
-
if($(this).
|
67 |
e.preventDefault();
|
68 |
}
|
69 |
}
|
@@ -75,7 +75,7 @@
|
|
75 |
$('ul',$activeLi).slideUp(defaults.speed);
|
76 |
$('a',$activeLi).removeClass(defaults.classActive);
|
77 |
} else {
|
78 |
-
$(this).
|
79 |
$('> a',$activeLi).addClass(defaults.classActive);
|
80 |
}
|
81 |
// Write cookie if save state is on
|
@@ -109,7 +109,7 @@
|
|
109 |
$('ul',$activeLi).slideUp(defaults.speed);
|
110 |
$('a',$activeLi).removeClass(defaults.classActive);
|
111 |
} else {
|
112 |
-
$(this).
|
113 |
$('> a',$activeLi).addClass(defaults.classActive);
|
114 |
}
|
115 |
// Write cookie if save state is on
|
@@ -154,7 +154,7 @@
|
|
154 |
function resetAccordion(){
|
155 |
$('ul',$dcAccordionObj).hide();
|
156 |
$allActiveLi = $('a.'+defaults.classActive,$dcAccordionObj);
|
157 |
-
$allActiveLi.
|
158 |
}
|
159 |
// Write cookie
|
160 |
function createCookie(cookieId, obj){
|
51 |
// Disable parent links
|
52 |
if(defaults.disableLink == true){
|
53 |
$('li a',$dcAccordionObj).click(function(e){
|
54 |
+
if($(this).siblings('ul').length >0){
|
55 |
e.preventDefault();
|
56 |
}
|
57 |
});
|
63 |
$parentsUl = $activeLi.parents('ul');
|
64 |
// Prevent browsing to link if has child links
|
65 |
if(defaults.disableLink == true){
|
66 |
+
if($(this).siblings('ul').length >0){
|
67 |
e.preventDefault();
|
68 |
}
|
69 |
}
|
75 |
$('ul',$activeLi).slideUp(defaults.speed);
|
76 |
$('a',$activeLi).removeClass(defaults.classActive);
|
77 |
} else {
|
78 |
+
$(this).siblings('ul').slideToggle(defaults.speed);
|
79 |
$('> a',$activeLi).addClass(defaults.classActive);
|
80 |
}
|
81 |
// Write cookie if save state is on
|
109 |
$('ul',$activeLi).slideUp(defaults.speed);
|
110 |
$('a',$activeLi).removeClass(defaults.classActive);
|
111 |
} else {
|
112 |
+
$(this).siblings('ul').slideToggle(defaults.speed);
|
113 |
$('> a',$activeLi).addClass(defaults.classActive);
|
114 |
}
|
115 |
// Write cookie if save state is on
|
154 |
function resetAccordion(){
|
155 |
$('ul',$dcAccordionObj).hide();
|
156 |
$allActiveLi = $('a.'+defaults.classActive,$dcAccordionObj);
|
157 |
+
$allActiveLi.siblings('ul').show();
|
158 |
}
|
159 |
// Write cookie
|
160 |
function createCookie(cookieId, obj){
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.designchemical.com
|
|
4 |
Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, widget
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1
|
7 |
-
Stable tag: 2.
|
8 |
|
9 |
Creates a widget, which allows you to create vertical accordion menus from any Wordpress custom menu using jQuery.
|
10 |
|
@@ -54,6 +54,9 @@ Another likely cause is due to other non-functioning plugins, which may have err
|
|
54 |
|
55 |
== Changelog ==
|
56 |
|
|
|
|
|
|
|
57 |
= 2.2 =
|
58 |
* Added: Option to show count of number of child links
|
59 |
* Edit: Plugin updated to use jquery plugin version 2.3
|
4 |
Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, widget
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.1
|
7 |
+
Stable tag: 2.3
|
8 |
|
9 |
Creates a widget, which allows you to create vertical accordion menus from any Wordpress custom menu using jQuery.
|
10 |
|
54 |
|
55 |
== Changelog ==
|
56 |
|
57 |
+
= 2.3 =
|
58 |
+
* Edit: Plugin now works with Cufon text
|
59 |
+
|
60 |
= 2.2 =
|
61 |
* Added: Option to show count of number of child links
|
62 |
* Edit: Plugin updated to use jquery plugin version 2.3
|