diff --git a/classes/output/core/course_renderer.php b/classes/output/core/course_renderer.php index 6c00e3f..2397046 100644 --- a/classes/output/core/course_renderer.php +++ b/classes/output/core/course_renderer.php @@ -249,7 +249,7 @@ class course_renderer extends \core_course_renderer { 'data-toggle' => 'popover', 'data-placement' => 'right', 'data-content' => $chelper->get_course_formatted_summary($course, array('noclean' => true, 'para' => false)), 'data-html' => 'true', 'tabindex' => '0', 'data-trigger' => 'focus')); - $content .= get_string('seemore', 'theme_trema'); + $content .= 'Mais informações'; $content .= html_writer::end_tag('div'); $content .= html_writer::end_tag('div'); // End summary. } @@ -269,7 +269,7 @@ class course_renderer extends \core_course_renderer { $url = file_encode_url("$CFG->wwwroot/pluginfile.php", '/'. $file->get_contextid(). '/'. $file->get_component(). '/'. $file->get_filearea(). $file->get_filepath(). $file->get_filename(), !$isimage); - if ($isimage) { + if ($isimage) { $contentimage = html_writer::start_tag('div', array('style' => "background-image:url('$url')", 'class' => 'card-img-top')); $contentimage .= html_writer::end_tag('div'); @@ -284,6 +284,7 @@ class course_renderer extends \core_course_renderer { 'class' => 'card-img-top')); $contentimage .= html_writer::end_tag('div'); } + return $contentimage; } /** diff --git a/scss/courselist.scss b/scss/courselist.scss new file mode 100644 index 0000000..b3eb2f7 --- /dev/null +++ b/scss/courselist.scss @@ -0,0 +1,30 @@ +.course-card-view { + box-shadow: 5px 5px 9px -4px rgba($black, .1); + padding-bottom: 4rem; + max-width: 16rem; + min-width: 12rem; + + .course-card-img div { + height: 6.5rem; + background-position: top right; + background-size: cover; + } + + .card-see-more { + position: absolute; + bottom: 0; + width: 100%; + + .btn { + width: 90%; + } + } +} + +body#page-enrol-index { + .box.generalbox > div { + @extend .course-card-view; + position: relative; + } +} + diff --git a/scss/moodle.scss b/scss/moodle.scss index 1b9da99..2382f78 100644 --- a/scss/moodle.scss +++ b/scss/moodle.scss @@ -40,4 +40,5 @@ $breadcrumb-divider-rtl: "◀" !default; @import "moodle/tool_usertours"; @import "moodle/bs2-compat"; @import "moodle/print"; -@import "moodle/modal"; \ No newline at end of file +@import "moodle/modal"; +@import 'courselist';