diff --git a/blocks/community/communitycourse.php b/blocks/community/communitycourse.php index bbaa5455c98..7ab000a7db8 100644 --- a/blocks/community/communitycourse.php +++ b/blocks/community/communitycourse.php @@ -167,5 +167,5 @@ $hubselectorform->display(); if (!empty($errormessage)) { echo $errormessage; } -echo $renderer->course_list($courses, $huburl); +echo highlight($search, $renderer->course_list($courses, $huburl)); echo $OUTPUT->footer(); \ No newline at end of file diff --git a/blocks/community/lang/en/block_community.php b/blocks/community/lang/en/block_community.php index 41ddd6f3d59..fd03fc245c9 100644 --- a/blocks/community/lang/en/block_community.php +++ b/blocks/community/lang/en/block_community.php @@ -40,7 +40,7 @@ $string['coursedesc'] = 'Description'; $string['courselang'] = 'Language'; $string['coursename'] = 'Name'; $string['courses'] = 'Courses'; -$string['coverage'] = 'Coverage: {$a}'; +$string['coverage'] = 'Tags: {$a}'; $string['download'] = 'Download'; $string['downloadable'] = 'courses I can download'; $string['downloadtemplate'] = 'Create course from template'; diff --git a/blocks/community/renderer.php b/blocks/community/renderer.php index 68b5260f613..e1bc28321ad 100644 --- a/blocks/community/renderer.php +++ b/blocks/community/renderer.php @@ -106,13 +106,7 @@ class block_community_renderer extends plugin_renderer_base { //create description to display $course->subject = get_string($course->subject, 'edufields'); $course->audience = get_string('audience' . $course->audience, 'hub'); - $course->educationallevel = get_string('edulevel' . $course->educationallevel, 'hub'); - if (!empty($course->contributornames)) { - $course->contributorname = get_string('contributors', 'block_community', $course->contributorname); - } - if (!empty($course->coverage)) { - $course->coverage = get_string('coverage', 'block_community', $course->coverage); - } + $course->educationallevel = get_string('edulevel' . $course->educationallevel, 'hub'); $deschtml .= $course->description; //the description /// courses and sites number display under the description, in smaller $deschtml .= html_writer::empty_tag('br');