Browse Source

Omitindo nome dos tutores dos cards

MOODLE_37_STABLE
Matheus Garcia 6 years ago
parent
commit
401d1ff93a
  1. 26
      classes/output/core/course_renderer.php

26
classes/output/core/course_renderer.php

@ -207,19 +207,19 @@ class course_renderer extends \core_course_renderer {
$content .= html_writer::start_tag('div', array('class' => 'card-body')); $content .= html_writer::start_tag('div', array('class' => 'card-body'));
$content .= "<div class='elegantshd textCardEdited'>". $coursenamelink ."</div>"; $content .= "<div class='elegantshd textCardEdited'>". $coursenamelink ."</div>";
$content .= html_writer::end_tag('div'); $content .= html_writer::end_tag('div');
if ($course->has_course_contacts()) { // if ($course->has_course_contacts()) {
$content .= html_writer::start_tag('div', array('class' => 'card-footer teachers')); // $content .= html_writer::start_tag('div', array('class' => 'card-footer teachers'));
$content .= html_writer::start_tag('ul'); // $content .= html_writer::start_tag('ul');
foreach ($course->get_course_contacts() as $userid => $coursecontact) { // foreach ($course->get_course_contacts() as $userid => $coursecontact) {
$name = $coursecontact['rolename'].': '. // $name = $coursecontact['rolename'].': '.
html_writer::link(new moodle_url('/user/view.php', // html_writer::link(new moodle_url('/user/view.php',
array('id' => $userid, 'course' => SITEID)), // array('id' => $userid, 'course' => SITEID)),
$coursecontact['username']); // $coursecontact['username']);
$content .= html_writer::tag('li', $name); // $content .= html_writer::tag('li', $name);
} // }
$content .= html_writer::end_tag('ul'); // End teachers. // $content .= html_writer::end_tag('ul'); // End teachers.
$content .= html_writer::end_tag('div'); // End teachers. // $content .= html_writer::end_tag('div'); // End teachers.
} // }
// Display course category if necessary (for example in search results). // Display course category if necessary (for example in search results).
if ($chelper->get_show_courses() == self::COURSECAT_SHOW_COURSES_EXPANDED_WITH_CAT) { if ($chelper->get_show_courses() == self::COURSECAT_SHOW_COURSES_EXPANDED_WITH_CAT) {
if ($cat = core_course_category::get($course->category, IGNORE_MISSING)) { if ($cat = core_course_category::get($course->category, IGNORE_MISSING)) {

Loading…
Cancel
Save