JQuery Accordion Menu Widget - Version 2.5.2

Version Description

  • Update: jquery.dcjqaccordion.2.7.js - fix bug with count option
Download this release

Release Info

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

Code changes from version 2.5.1 to 2.5.2

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.1
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.6.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.2
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.7.js', array('jquery') );
28
}
29
add_action( 'wp_footer', array('dc_jqaccordion', 'footer') );
30
js/{jquery.dcjqaccordion.2.6.js → jquery.dcjqaccordion.2.7.js} RENAMED
@@ -92,14 +92,24 @@
92
// Set up accordion
93
function setUpAccordion(){
94
$arrow = '<span class="'+defaults.classArrow+'"></span>';
95
$('> ul',obj).show();
96
$('li',obj).each(function(){
97
- var classParentLi = defaults.classParent+'-li';
98
if($('> ul',this).length > 0){
99
- $('> a',this).addClass(defaults.classParent).append($arrow);
100
}
101
- });
102
$('> ul',obj).hide();
103
}
104
105
function linkOver(){
92
// Set up accordion
93
function setUpAccordion(){
94
$arrow = '<span class="'+defaults.classArrow+'"></span>';
95
+ var classParentLi = defaults.classParent+'-li';
96
$('> ul',obj).show();
97
$('li',obj).each(function(){
98
if($('> ul',this).length > 0){
99
+ $('> a',this).addClass(defaults.classParent).append($arrow);
100
}
101
+ });
102
$('> ul',obj).hide();
103
+ if(defaults.showCount == true){
104
+ $('li.'+classParentLi,obj).each(function(){
105
+ if(defaults.disableLink == true){
106
+ var getCount = parseInt($('ul a:not(.'+defaults.classParent+')',this).length);
107
+ } else {
108
+ var getCount = parseInt($('ul a',this).length);
109
+ }
110
+ $('> a',this).append(' <span class="'+defaults.classCount+'">('+getCount+')</span>');
111
+ });
112
+ }
113
}
114
115
function linkOver(){
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.1
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.1 =
59
* Fix: Bug when using "No Theme" 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.2
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.2 =
59
+ * Update: jquery.dcjqaccordion.2.7.js - fix bug with count option
60
+
61
= 2.5.1 =
62
* Fix: Bug when using "No Theme" option
63
skins/black.css CHANGED
@@ -4,5 +4,4 @@
4
#dc_jqaccordion_widget-%ID%-item ul ul a {background: #343434;}
5
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #000 url(skins/images/graphite_arrow_right.png) no-repeat 0 0; font-weight: bold; color: #fff;}
6
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {background: #000 url(skins/images/graphite_arrow_down.png) no-repeat 0 0;}
7
- #dc_jqaccordion_widget-%ID%-item ul a:hover {background: #121212;}
8
- #dc_jqaccordion_widget-%ID%-item ul a:active{}
4
#dc_jqaccordion_widget-%ID%-item ul ul a {background: #343434;}
5
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #000 url(skins/images/graphite_arrow_right.png) no-repeat 0 0; font-weight: bold; color: #fff;}
6
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {background: #000 url(skins/images/graphite_arrow_down.png) no-repeat 0 0;}
7
+ #dc_jqaccordion_widget-%ID%-item ul a:hover {background: #121212;}
skins/blue.css CHANGED
@@ -4,5 +4,4 @@
4
#dc_jqaccordion_widget-%ID%-item ul ul a {padding: 10px 10px 10px 25px;}
5
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {padding: 10px 10px 10px 15px;}
6
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {background: #0D5995 url(skins/images/checkers.png) repeat 0 0;}
7
- #dc_jqaccordion_widget-%ID%-item ul a:hover {background: #05477c;}
8
- #dc_jqaccordion_widget-%ID%-item ul a:active{}
4
#dc_jqaccordion_widget-%ID%-item ul ul a {padding: 10px 10px 10px 25px;}
5
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {padding: 10px 10px 10px 15px;}
6
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {background: #0D5995 url(skins/images/checkers.png) repeat 0 0;}
7
+ #dc_jqaccordion_widget-%ID%-item ul a:hover {background: #05477c;}
skins/clean.css CHANGED
@@ -4,5 +4,4 @@
4
#dc_jqaccordion_widget-%ID%-item ul ul a {padding: 10px 10px 10px 25px; background: #fff; font-weight: normal; text-transform: capitalize;}
5
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent {padding: 10px 15px; background: #efefef url(skins/images/bg_clean.png) repeat-x top center; font-weight: bold; text-transform: uppercase;}
6
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #fff url(skins/images/bg_clean_on.png) repeat-x top center;}
7
- #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {}
8
#dc_jqaccordion_widget-%ID%-item ul a:hover {background: #ececec; color: #990000;}
4
#dc_jqaccordion_widget-%ID%-item ul ul a {padding: 10px 10px 10px 25px; background: #fff; font-weight: normal; text-transform: capitalize;}
5
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent {padding: 10px 15px; background: #efefef url(skins/images/bg_clean.png) repeat-x top center; font-weight: bold; text-transform: uppercase;}
6
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #fff url(skins/images/bg_clean_on.png) repeat-x top center;}
7
#dc_jqaccordion_widget-%ID%-item ul a:hover {background: #ececec; color: #990000;}
skins/demo.css CHANGED
@@ -4,5 +4,4 @@
4
#dc_jqaccordion_widget-%ID%-item ul ul a {font-weight: normal;}
5
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent {background-image: url(skins/images/plus_grey.png); font-weight: bold; background-color: #fff;}
6
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {background-image: url(skins/images/minus_grey.png); background-color: #f3f3f3;}
7
- #dc_jqaccordion_widget-%ID%-item ul a:hover {color: #990000;}
8
- #dc_jqaccordion_widget-%ID%-item ul a:active{}
4
#dc_jqaccordion_widget-%ID%-item ul ul a {font-weight: normal;}
5
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent {background-image: url(skins/images/plus_grey.png); font-weight: bold; background-color: #fff;}
6
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {background-image: url(skins/images/minus_grey.png); background-color: #f3f3f3;}
7
+ #dc_jqaccordion_widget-%ID%-item ul a:hover {color: #990000;}
skins/graphite.css CHANGED
@@ -3,8 +3,6 @@
3
#dc_jqaccordion_widget-%ID%-item ul a {padding: 10px 10px 10px 50px; background: #0C0C0C url(skins/images/bg_black.png) repeat-x 0 -1px; text-decoration:none; display: block; color: #ddd; border-bottom: 1px solid #222; border-top: 1px solid #777; position: relative;}
4
#dc_jqaccordion_widget-%ID%-item ul ul a {background: #424549;}
5
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #0C0C0C url(skins/images/bg_black.png) repeat-x 0 -1px;}
6
- #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {}
7
#dc_jqaccordion_widget-%ID%-item ul a .dcjq-icon {position: absolute; top: 50%; left: 14px; width: 34px; margin-top: -17px; height: 34px; background: url(skins/images/arrow_black_right.png) no-repeat 0 center;}
8
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active .dcjq-icon {background: url(skins/images/arrow_black_down.png) no-repeat 0 center;}
9
- #dc_jqaccordion_widget-%ID%-item ul a:hover {background: #232323; color: #fff;}
10
- #dc_jqaccordion_widget-%ID%-item ul a:active{}
3
#dc_jqaccordion_widget-%ID%-item ul a {padding: 10px 10px 10px 50px; background: #0C0C0C url(skins/images/bg_black.png) repeat-x 0 -1px; text-decoration:none; display: block; color: #ddd; border-bottom: 1px solid #222; border-top: 1px solid #777; position: relative;}
4
#dc_jqaccordion_widget-%ID%-item ul ul a {background: #424549;}
5
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #0C0C0C url(skins/images/bg_black.png) repeat-x 0 -1px;}
6
#dc_jqaccordion_widget-%ID%-item ul a .dcjq-icon {position: absolute; top: 50%; left: 14px; width: 34px; margin-top: -17px; height: 34px; background: url(skins/images/arrow_black_right.png) no-repeat 0 center;}
7
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active .dcjq-icon {background: url(skins/images/arrow_black_down.png) no-repeat 0 center;}
8
+ #dc_jqaccordion_widget-%ID%-item ul a:hover {background: #232323; color: #fff;}
skins/grey.css CHANGED
@@ -2,8 +2,6 @@
2
#dc_jqaccordion_widget-%ID%-item ul, #dc_jqaccordion_widget-%ID%-item ul li {margin: 0; padding: 0; border: none;}
3
#dc_jqaccordion_widget-%ID%-item ul a {padding: 10px 10px 10px 50px; background: #ececec; text-decoration:none; display: block; color: #333; border-bottom: 1px solid #ccc; border-top: 1px solid #fff; position: relative; text-shadow: 1px 1px 1px #fff;}
4
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #D7D4D4 url(skins/images/bg_grey.png) repeat-x 0 -1px;}
5
- #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active {}
6
#dc_jqaccordion_widget-%ID%-item ul a .dcjq-icon {position: absolute; top: 50%; left: 14px; width: 34px; margin-top: -17px; height: 34px; background: url(skins/images/arrow_grey_right.png) no-repeat 0 center;}
7
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active .dcjq-icon {background: url(skins/images/arrow_grey_down.png) no-repeat 0 center;}
8
- #dc_jqaccordion_widget-%ID%-item ul a:hover {background: #fff; color: #990000;}
9
- #dc_jqaccordion_widget-%ID%-item ul a:active{}
2
#dc_jqaccordion_widget-%ID%-item ul, #dc_jqaccordion_widget-%ID%-item ul li {margin: 0; padding: 0; border: none;}
3
#dc_jqaccordion_widget-%ID%-item ul a {padding: 10px 10px 10px 50px; background: #ececec; text-decoration:none; display: block; color: #333; border-bottom: 1px solid #ccc; border-top: 1px solid #fff; position: relative; text-shadow: 1px 1px 1px #fff;}
4
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent, #dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent:hover {background: #D7D4D4 url(skins/images/bg_grey.png) repeat-x 0 -1px;}
5
#dc_jqaccordion_widget-%ID%-item ul a .dcjq-icon {position: absolute; top: 50%; left: 14px; width: 34px; margin-top: -17px; height: 34px; background: url(skins/images/arrow_grey_right.png) no-repeat 0 center;}
6
#dc_jqaccordion_widget-%ID%-item ul a.dcjq-parent.active .dcjq-icon {background: url(skins/images/arrow_grey_down.png) no-repeat 0 center;}
7
+ #dc_jqaccordion_widget-%ID%-item ul a:hover {background: #fff; color: #990000;}