You are here

function theme_jquerymenu_menu in JQuery menu 7.4

Same name and namespace in other branches
  1. 7.3 jquerymenu.module \theme_jquerymenu_menu()
1 theme call to theme_jquerymenu_menu()
jquerymenu_block_view in ./jquerymenu.module
Implements hook_block_view().

File

./jquerymenu.module, line 367
The jQuerymenu module parses hierarchical link arrays and renders them as click and expand menu blocks.

Code

function theme_jquerymenu_menu($variables) {
  $tree = $variables['tree'];
  $trail = $variables['trail'];
  $menu_output = recursive_link_creator($tree, $trail);
  if (!empty($menu_output)) {

    // We create the shell to hold the menu outside the recursive function.
    // Add a div that only shows up for that pesky IE so that we can style it into obedience.
    $output = '<!--[if IE]><div class="ie"><![endif]-->';
    $output .= '<ul class="menu jquerymenu">';
    $output .= $menu_output;
    $output .= '</ul>';
    $output .= '<!--[if IE]></div><![endif]-->';
    return $output;
  }
}