JQuery Accordion Menu Widget - Version 3.1.1

Version Description

  • Updated: wp_enqueue_script hook
Download this release

Release Info

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

Code changes from version 3.1 to 3.1.1

Files changed (2) hide show
  1. dcwp_jquery_accordion.php +9 -8
  2. readme.txt +4 -1
dcwp_jquery_accordion.php CHANGED
@@ -5,7 +5,7 @@
5
  Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, accordion
6
  Description: Creates vertical accordion menus from any Wordpress custom menu using jQuery. Add menus using either widgets or shortcodes. 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: 3.1
9
  Author URI: http://www.designchemical.com
10
  */
11
 
@@ -17,14 +17,10 @@ class dc_jqaccordion {
17
  global $registered_skins;
18
 
19
  if(!is_admin()){
 
20
  // Header styles
21
- add_action( 'wp_head', array('dc_jqaccordion', 'header') );
22
 
23
- // Scripts
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.9.js', array('jquery') );
28
  // Shortcodes
29
  add_shortcode( 'dcwp-jquery-accordion', 'dcwp_dc_jqaccordion_shortcode' );
30
  }
@@ -34,7 +30,12 @@ class dc_jqaccordion {
34
  }
35
 
36
  function header(){
37
- //echo "\n\t";
 
 
 
 
 
38
  }
39
 
40
  function footer(){
5
  Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, accordion
6
  Description: Creates vertical accordion menus from any Wordpress custom menu using jQuery. Add menus using either widgets or shortcodes. 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: 3.1.1
9
  Author URI: http://www.designchemical.com
10
  */
11
 
17
  global $registered_skins;
18
 
19
  if(!is_admin()){
20
+
21
  // Header styles
22
+ add_action( 'init', array('dc_jqaccordion', 'header') );
23
 
 
 
 
 
 
24
  // Shortcodes
25
  add_shortcode( 'dcwp-jquery-accordion', 'dcwp_dc_jqaccordion_shortcode' );
26
  }
30
  }
31
 
32
  function header(){
33
+
34
+ // Scripts
35
+ wp_enqueue_script( 'jquery' );
36
+ wp_enqueue_script( 'jqueryhoverintent', dc_jqaccordion::get_plugin_directory() . '/js/jquery.hoverIntent.minified.js', array('jquery') );
37
+ wp_enqueue_script( 'jquerycookie', dc_jqaccordion::get_plugin_directory() . '/js/jquery.cookie.js', array('jquery') );
38
+ wp_enqueue_script( 'dcjqaccordion', dc_jqaccordion::get_plugin_directory() . '/js/jquery.dcjqaccordion.2.9.js', array('jquery') );
39
  }
40
 
41
  function footer(){
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.13
7
- Stable tag: 3.1
8
 
9
  Creates vertical accordion menus from any Wordpress custom menu using jQuery. Add menus using either widgets or shortcodes.
10
 
@@ -86,6 +86,9 @@ Another likely cause is due to other non-functioning plugins, which may have err
86
 
87
  == Changelog ==
88
 
 
 
 
89
  = 3.1 =
90
  * Fixed: Auto-close feature with multiple menus
91
 
4
  Tags: jquery, dropdown, menu, vertical accordion, animated, css, navigation, widget
5
  Requires at least: 3.0
6
  Tested up to: 3.13
7
+ Stable tag: 3.1.1
8
 
9
  Creates vertical accordion menus from any Wordpress custom menu using jQuery. Add menus using either widgets or shortcodes.
10
 
86
 
87
  == Changelog ==
88
 
89
+ = 3.1.1 =
90
+ * Updated: wp_enqueue_script hook
91
+
92
  = 3.1 =
93
  * Fixed: Auto-close feature with multiple menus
94