|
|
|
@ -114,6 +114,8 @@ if ($session_id == 0 && api_is_course_admin() && api_is_allowed_to_edit(null, tr |
|
|
|
$content .= CourseHome::show_tools_category($my_list); |
|
|
|
$content .= CourseHome::show_tools_category($my_list); |
|
|
|
$content .= '</div>'; |
|
|
|
$content .= '</div>'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (isset($_configuration['allow_session_course_copy_for_teachers'])) { |
|
|
|
|
|
|
|
if ($_configuration['allow_session_course_copy_for_teachers']) { |
|
|
|
// Adding only maintenance for coaches. |
|
|
|
// Adding only maintenance for coaches. |
|
|
|
$myList = CourseHome::get_tools_category(TOOL_ADMIN_PLATFORM); |
|
|
|
$myList = CourseHome::get_tools_category(TOOL_ADMIN_PLATFORM); |
|
|
|
$onlyMaintenanceList = array(); |
|
|
|
$onlyMaintenanceList = array(); |
|
|
|
@ -128,6 +130,8 @@ if ($session_id == 0 && api_is_course_admin() && api_is_allowed_to_edit(null, tr |
|
|
|
|
|
|
|
|
|
|
|
$items = CourseHome::show_tools_category($onlyMaintenanceList); |
|
|
|
$items = CourseHome::show_tools_category($onlyMaintenanceList); |
|
|
|
$content .= return_block(get_lang('Administration'), $items); |
|
|
|
$content .= return_block(get_lang('Administration'), $items); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$my_list = CourseHome::get_tools_category(TOOL_STUDENT_VIEW); |
|
|
|
$my_list = CourseHome::get_tools_category(TOOL_STUDENT_VIEW); |
|
|
|
if (count($my_list) > 0) { |
|
|
|
if (count($my_list) > 0) { |
|
|
|
|