diff --git a/main/course_home/activity.php b/main/course_home/activity.php index bb35e2dc75..2e4f7d21ec 100755 --- a/main/course_home/activity.php +++ b/main/course_home/activity.php @@ -113,35 +113,28 @@ if (api_is_allowed_to_edit(null, true) && !api_is_coach()) { } ?>
- - + -
- -
- - + -
+?>
-
- -
0) { ?>
- - -
- +?>
- - + - +?>
- - +
- -
- -
0) { -?> -
-$new_tool) { - $tool_name = CourseHome::translate_tool_name($new_tool); - $order_tool_list [$key]= $tool_name; - } - natsort($order_tool_list); - $my_temp_tool_array = array(); - foreach($order_tool_list as $key=>$new_tool) { - $my_temp_tool_array[] = $my_list[$key]; - } - $my_list = $my_temp_tool_array; - - $i = 0; - foreach($my_list as $new_tool) { - if ($i >= 10) { - $my_list2[] = $new_tool; - } else { - $my_list1[] = $new_tool; - } - $i++; + echo '
'; + //ordering by get_lang name + $order_tool_list = array(); + foreach($my_list as $key=>$new_tool) { + $tool_name = CourseHome::translate_tool_name($new_tool); + $order_tool_list [$key]= $tool_name; + } + natsort($order_tool_list); + $my_temp_tool_array = array(); + foreach($order_tool_list as $key=>$new_tool) { + $my_temp_tool_array[] = $my_list[$key]; + } + $my_list = $my_temp_tool_array; + + $i = 0; + foreach($my_list as $new_tool) { + if ($i >= 10) { + $my_list2[] = $new_tool; + } else { + $my_list1[] = $new_tool; } - CourseHome::show_tools_category($my_list1, 'vertical_activity'); - CourseHome::show_tools_category($my_list2, 'vertical_activity'); - - -?> -
-'; } } ?> diff --git a/main/inc/lib/course_home.lib.php b/main/inc/lib/course_home.lib.php index 1b506f9672..983b2ff244 100755 --- a/main/inc/lib/course_home.lib.php +++ b/main/inc/lib/course_home.lib.php @@ -614,10 +614,11 @@ class CourseHome { $is_platform_admin = api_is_platform_admin(); $i = 0; + $items = array(); if (isset($all_tools_list)) { - $lnk = ''; - if ($theme == 'vertical_activity') echo ''; + } + break; + } + $i++; + } } /**