You are here

function theme_smartmenus_menu_tree in Smartmenus.js 7

Generate markup for the menu tree including special ID and classes.

File

./smartmenus.theme.inc, line 51
Smartmenus theme fnctions.

Code

function theme_smartmenus_menu_tree($variables) {
  if (!empty($variables['attributes'])) {
    $id = $variables['attributes']['id'];
    $class = $variables['attributes']['class'];
    $output = '<ul id="' . $id . '" class="' . $class . '">' . drupal_render($variables['tree']) . '</ul>';
  }
  else {
    $output = '<ul>' . drupal_render($variables['tree']) . '</ul>';
  }
  return $output;
}