prefix}menu_items"; $rs = get_recordset_sql($sql); if ($rs) { $menubarcount = $rs->menubarcount; for ($menubarposition = 1; $menubarposition <= $menubarcount; $menubarposition++) { $items = get_records("menu_items", "parent", $menubarposition, 'position'); $currentmenubarlabel = 'munubarlabel'.$menubarposition; ?>
  • print_string($currentmenubarlabel,'moodlemenues');
      foreach ($items as $item) { $currentmenuitemname = 'munuitemlabel'.$menubarposition.$item->position; $currentmenuitemlabel = get_string($currentmenuitemname,'moodlemenues') if ($currentmenuitemlabel !== '-') { echo "
    • link\">$currentmenuitemlabel
    • "; '; } } } else { echo print_string('missingmenuitems') } ?>