Skip to content
Browse files

community block MDL-23288 highlight search result

  • Loading branch information...
1 parent 74c68b7 commit 8afbe76511a0d81c046d26672d6ed01b0b1b42fd @mouneyrac mouneyrac committed Jul 15, 2010
View
2 blocks/community/communitycourse.php
@@ -167,5 +167,5 @@
if (!empty($errormessage)) {
echo $errormessage;
}
-echo $renderer->course_list($courses, $huburl);
+echo highlight($search, $renderer->course_list($courses, $huburl));
echo $OUTPUT->footer();
View
2 blocks/community/lang/en/block_community.php
@@ -40,7 +40,7 @@
$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';
View
8 blocks/community/renderer.php
@@ -106,13 +106,7 @@ public function course_list($courses, $huburl) {
//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');

0 comments on commit 8afbe76

Please sign in to comment.
Something went wrong with that request. Please try again.