Skip to content
Snippets Groups Projects
Commit 42fa2bc2 authored by Kathrin Osswald's avatar Kathrin Osswald
Browse files

Adjusted function coursecat_coursebox() in course_renderer.php due to upstream...

Adjusted function coursecat_coursebox() in course_renderer.php due to upstream changes in theme Boost.
parent 70cfe638
No related branches found
No related tags found
No related merge requests found
......@@ -6,6 +6,7 @@ Changes
### Unreleased
* 2019-06-04 - Adjusted function coursecat_coursebox() in course_renderer.php due to upstream changes in theme Boost.
* 2019-06-03 - Added newly introduced collection labels in the navdrawer nodes.
* 2019-06-03 - Adjusted columns2.php due to upstream changes in theme Boost.
* 2019-06-03 - Adjusted login.mustache template due to upstream changes in theme Boost.
......
......@@ -94,7 +94,8 @@ class course_renderer extends \core_course_renderer {
// If we display course in collapsed form but the course has summary or course contacts, display the link to the info page.
$content .= html_writer::start_tag('div', array('class' => 'moreinfo'));
if ($chelper->get_show_courses() < self::COURSECAT_SHOW_COURSES_EXPANDED) {
if ($course->has_summary() || $course->has_course_contacts() || $course->has_course_overviewfiles()) {
if ($course->has_summary() || $course->has_course_contacts() || $course->has_course_overviewfiles()
|| $course->has_custom_fields()) {
$url = new moodle_url('/course/info.php', array('id' => $course->id));
$image = $this->output->pix_icon('i/info', $this->strings->summary);
$content .= html_writer::link($url, $image, array('title' => $this->strings->summary));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment