$navigation_item) { if (strstr($navigation_item['link'], '?')) { //link already contains a parameter, add course id parameter with & $parameter_separator = '&'; } else { //link doesn't contain a parameter yet, add course id parameter with ? $parameter_separator = '?'; } $navigation_items[$key]['link'] .= $parameter_separator.api_get_cidreq(); } return $navigation_items; } /** * Show a navigation menu */ function show_navigation_menu() { $navigation_items = get_navigation_items(true); $course_id = api_get_course_id(); if (api_get_setting('show_navigation_menu') == 'icons') { echo '