JQuery Accordion Menu Widget - Version 2.5.3

Version Description

  • Added: jQuery accordion plugin includes check for cookie function
Download this release

Release Info

Developer remix4
Plugin Icon wp plugin JQuery Accordion Menu Widget
Version 2.5.3
Comparing to
See all releases

Code changes from version 2.5.2 to 2.5.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.5.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.7.js', array('jquery') );
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.5.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.8.js', array('jquery') );
28
}
29
add_action( 'wp_footer', array('dc_jqaccordion', 'footer') );
30
js/{jquery.dcjqaccordion.2.7.js → jquery.dcjqaccordion.2.8.js} RENAMED
@@ -170,6 +170,8 @@
170
});
171
// Retrieve cookie value and set active items
172
function checkCookie(cookieId, obj){
173
var cookieVal = $.cookie(cookieId);
174
if(cookieVal != null){
175
// create array from cookie string
@@ -181,9 +183,12 @@
181
$('> a',$parentsLi).addClass(defaults.classActive);
182
});
183
}
184
}
185
// Write cookie
186
function createCookie(cookieId, obj){
187
var activeIndex = [];
188
// Create array of active items index value
189
$('li a.'+defaults.classActive,obj).each(function(i){
@@ -193,6 +198,7 @@
193
});
194
// Store in cookie
195
$.cookie(cookieId, activeIndex, { path: '/' });
196
}
197
};
198
})(jQuery);
170
});
171
// Retrieve cookie value and set active items
172
function checkCookie(cookieId, obj){
173
+ // check cookie plugin loaded
174
+ if ($.fn.cookie) {
175
var cookieVal = $.cookie(cookieId);
176
if(cookieVal != null){
177
// create array from cookie string
183
$('> a',$parentsLi).addClass(defaults.classActive);
184
});
185
}
186
+ }
187
}
188
// Write cookie
189
function createCookie(cookieId, obj){
190
+ // check cookie plugin loaded
191
+ if ($.fn.cookie) {
192
var activeIndex = [];
193
// Create array of active items index value
194
$('li a.'+defaults.classActive,obj).each(function(i){
198
});
199
// Store in cookie
200
$.cookie(cookieId, activeIndex, { path: '/' });
201
+ }
202
}
203
};
204
})(jQuery);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: http://www.designchemical.com/blog/index.php/wordpress-plugins/word
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.5.2
8
9
Creates a widget, which allows you to create vertical accordion menus from any Wordpress custom menu using jQuery.
10
@@ -55,6 +55,9 @@ Another likely cause is due to other non-functioning plugins, which may have err
55
56
== Changelog ==
57
58
= 2.5.2 =
59
* Update: jquery.dcjqaccordion.2.7.js - fix bug with count option
60
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.5.3
8
9
Creates a widget, which allows you to create vertical accordion menus from any Wordpress custom menu using jQuery.
10
55
56
== Changelog ==
57
58
+ = 2.5.3 =
59
+ * Added: jQuery accordion plugin includes check for cookie function
60
+
61
= 2.5.2 =
62
* Update: jquery.dcjqaccordion.2.7.js - fix bug with count option
63