Browse Source

Inclusão de link em botão de inscrição

MOODLE_37_STABLE
Matheus Garcia 6 years ago
parent
commit
c85467541b
  1. 14
      classes/output/core/course_renderer.php

14
classes/output/core/course_renderer.php

@ -230,13 +230,19 @@ class course_renderer extends \core_course_renderer {
$content .= html_writer::end_tag('div'); // End coursecat.
}
}
// Display course summary.
if ($course->has_summary()) {
$content .= html_writer::start_tag('div', array('class' => 'card-see-more text-center teste'));
$content .= html_writer::start_tag('div', array('class' => 'btn btn-inscrever'));
if ($icons = enrol_get_course_info_icons($course)) {
$content .= html_writer::start_tag('div',
array('class' => 'btn btn-inscrever',
'onclick'=>"window.location.href='" . $courseurl . "';")
);
$content .= 'Inscrever';
$content .= html_writer::end_tag('div');
}
//if ($course->has_summary() && false) {
$content .= html_writer::start_tag('div', array('class' => 'btn btn-mais-info m-2',
'id' => "course-popover-{$course->id}", 'role' => 'button', 'data-region' => 'popover-region-toggle',
'data-toggle' => 'popover', 'data-placement' => 'right',
@ -244,9 +250,9 @@ class course_renderer extends \core_course_renderer {
array('noclean' => true, 'para' => false)), 'data-html' => 'true', 'tabindex' => '0', 'data-trigger' => 'focus'));
$content .= 'Mais informações';
$content .= html_writer::end_tag('div');
//}
$content .= html_writer::end_tag('div'); // End summary.
}
return $content;
}
/** <img src=""

Loading…
Cancel
Save