From 41aba7db5b07d3263b9d30f6323d33e45891958d Mon Sep 17 00:00:00 2001 From: Julio Date: Tue, 28 Nov 2017 14:21:27 +0100 Subject: [PATCH] Add course list --- main/inc/lib/userportal.lib.php | 2 +- .../user_portal/classic_courses_without_category.tpl | 2 +- .../rainbow/user_portal/grid_courses_without_category.tpl | 3 --- main/template/rainbow/user_portal/grid_session.tpl | 6 ++++++ 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/main/inc/lib/userportal.lib.php b/main/inc/lib/userportal.lib.php index 95bbac4448..6a32593510 100755 --- a/main/inc/lib/userportal.lib.php +++ b/main/inc/lib/userportal.lib.php @@ -1867,7 +1867,7 @@ class IndexManager 'courses' => $courseCompleteList, 'sessions' => $session_categories, // Ofaj - 'html' => trim($specialCourseList.$sessions_with_no_category.$sessions_with_category), + 'html' => trim($specialCourseList.$sessions_with_no_category.$sessions_with_category.$listCourse), 'session_count' => $sessionCount, 'course_count' => $courseCount ]; diff --git a/main/template/rainbow/user_portal/classic_courses_without_category.tpl b/main/template/rainbow/user_portal/classic_courses_without_category.tpl index f5da2ef264..33b72bf163 100644 --- a/main/template/rainbow/user_portal/classic_courses_without_category.tpl +++ b/main/template/rainbow/user_portal/classic_courses_without_category.tpl @@ -65,4 +65,4 @@ {% endfor %} -{% endif %} \ No newline at end of file +{% endif %} diff --git a/main/template/rainbow/user_portal/grid_courses_without_category.tpl b/main/template/rainbow/user_portal/grid_courses_without_category.tpl index b2bb85e5e4..4380019ea1 100644 --- a/main/template/rainbow/user_portal/grid_courses_without_category.tpl +++ b/main/template/rainbow/user_portal/grid_courses_without_category.tpl @@ -71,6 +71,3 @@ {% endif %} - -

{{ 'MyCourses' | get_lang }}

-
\ No newline at end of file diff --git a/main/template/rainbow/user_portal/grid_session.tpl b/main/template/rainbow/user_portal/grid_session.tpl index f627ad0be6..80fdf1eff6 100644 --- a/main/template/rainbow/user_portal/grid_session.tpl +++ b/main/template/rainbow/user_portal/grid_session.tpl @@ -42,9 +42,15 @@ {##} {##} {#{% else %}#} + +{% if not session is empty %} +

{{ 'MyCourses' | get_lang }}

+
+{% endif %}
{% for item in session %} +