You are here

function theme_smartmenus_toggle in Smartmenus.js 7

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

1 theme call to theme_smartmenus_toggle()
theme_smartmenus_menu in ./smartmenus.theme.inc
Theme function definition.

File

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

Code

function theme_smartmenus_toggle($variables) {
  $menu_id = $variables['menu_id'];
  $text = $variables['text'];
  $output = '<input id="' . $menu_id . '-state" class="sm-menu-state" type="checkbox" />';
  $output .= '<label class="sm-menu-btn" for="' . $menu_id . '-state">';
  $output .= '  <span class="sm-menu-btn-icon"></span> ' . $text;
  $output .= '</label>';
  return $output;
}