diff --git a/main/inc/lib/course.lib.php b/main/inc/lib/course.lib.php index 99ce95c061..9d9becc994 100644 --- a/main/inc/lib/course.lib.php +++ b/main/inc/lib/course.lib.php @@ -3083,6 +3083,42 @@ class CourseManager return self::course_code_exists($wanted_course_code); } + /** + * Builds the course block in user_portal.php + * @todo use Twig + */ + public static function course_item_html_no_icon($params) + { + $html = '
'.$params['description'].'
'; + } + if (!empty($params['subtitle'])) { + $html .= ''.$params['subtitle'].''; + } + if (!empty($params['teachers'])) { + $html .= '