Minor - format code

pull/2487/head
jmontoyaa 9 years ago
parent 904a8877b0
commit f285d163a1
  1. 2
      main/course_home/activity.php
  2. 1
      main/inc/lib/course.lib.php
  3. 13
      main/inc/lib/course_home.lib.php

@ -78,7 +78,7 @@ if ($session_id === 0 && api_is_course_admin() && api_is_allowed_to_edit(null, t
$my_list = CourseHome::get_tools_category(TOOL_INTERACTION); $my_list = CourseHome::get_tools_category(TOOL_INTERACTION);
$list2 = CourseHome::get_tools_category(TOOL_COURSE_PLUGIN); $list2 = CourseHome::get_tools_category(TOOL_COURSE_PLUGIN);
$my_list = array_merge($my_list,$list2); $my_list = array_merge($my_list, $list2);
$items = CourseHome::show_tools_category($my_list); $items = CourseHome::show_tools_category($my_list);
$content .= return_block(get_lang('Interaction'), $items, 'course-tools-interaction'); $content .= return_block(get_lang('Interaction'), $items, 'course-tools-interaction');

@ -3485,6 +3485,7 @@ class CourseManager
$rs_special_course = Database::query($sql); $rs_special_course = Database::query($sql);
$number_of_courses = Database::num_rows($rs_special_course); $number_of_courses = Database::num_rows($rs_special_course);
$showCustomIcon = api_get_setting('course_images_in_courses_list'); $showCustomIcon = api_get_setting('course_images_in_courses_list');
$courseList = []; $courseList = [];
if ($number_of_courses > 0) { if ($number_of_courses > 0) {
while ($course = Database::fetch_array($rs_special_course)) { while ($course = Database::fetch_array($rs_special_course)) {

@ -783,7 +783,6 @@ class CourseHome
} }
$item['visibility'] = null; $item['visibility'] = null;
if (isset($lnk) && is_array($lnk)) { if (isset($lnk) && is_array($lnk)) {
foreach ($lnk as $this_link) { foreach ($lnk as $this_link) {
if (empty($tool['adminlink'])) { if (empty($tool['adminlink'])) {
@ -1246,6 +1245,9 @@ class CourseHome
/** /**
* Show a toolbar with shortcuts to the course tool * Show a toolbar with shortcuts to the course tool
* @param int $orientation
*
* @return string
*/ */
public static function show_navigation_tool_shortcuts($orientation = SHORTCUTS_HORIZONTAL) public static function show_navigation_tool_shortcuts($orientation = SHORTCUTS_HORIZONTAL)
{ {
@ -1270,15 +1272,18 @@ class CourseHome
$html .= ' id="here"'; $html .= ' id="here"';
} }
$html .= ' target="_top" title="'.$navigation_item['name'].'">'; $html .= ' target="_top" title="'.$navigation_item['name'].'">';
$html .= Display::return_icon(substr($navigation_item['image'],0,-3)."png", $navigation_item['name'], null, ICON_SIZE_MEDIUM); $html .= Display::return_icon(
//$html .= '<img src="'.api_get_path(WEB_IMG_PATH).$navigation_item['image'].'" alt="'.$navigation_item['name'].'"/>'; substr($navigation_item['image'], 0, -3).'png',
$navigation_item['name'],
null,
ICON_SIZE_MEDIUM
);
$html .= '</a> '; $html .= '</a> ';
if ($orientation == SHORTCUTS_VERTICAL) { if ($orientation == SHORTCUTS_VERTICAL) {
$html .= '<br />'; $html .= '<br />';
} }
} }
$html .= '</div>'; $html .= '</div>';
} }
return $html; return $html;

Loading…
Cancel
Save