From: jmg324 Date: Tue, 16 Dec 2008 16:33:30 +0000 (+0000) Subject: MDL-17521 shortcuts at top of tag page for each sort of thing that's been tagged X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=3caea5dc6399bb2d01e77d9992df9f123279493c;p=moodle.git MDL-17521 shortcuts at top of tag page for each sort of thing that's been tagged --- diff --git a/lang/en_utf8/tag.php b/lang/en_utf8/tag.php index 8fdd76ba09..b4f2f40b4f 100644 --- a/lang/en_utf8/tag.php +++ b/lang/en_utf8/tag.php @@ -19,7 +19,7 @@ $string['flag'] = 'Flag'; $string['flagasinappropriate'] = 'Flag as inappropriate'; $string['helprelatedtags'] = 'Comma separated related tags'; $string['id'] = 'id'; -$string['relatedblogs'] = 'Most recent blog entries tagged with \"$a\"'; +$string['relatedblogs'] = 'Most recent blog entries'; $string['managetags'] = 'Manage tags'; $string['name'] = 'Tag name'; $string['namesalreadybeeingused'] = 'Tag names already being used'; @@ -46,15 +46,14 @@ $string['tag'] = 'Tag'; $string['tagtype'] = 'Tag type'; $string['tagtype_official'] = 'Official'; $string['tagtype_default'] = 'Default'; -$string['tagindex_coursetitle'] = 'Courses tagged with \"$a\"'; $string['tags'] = 'Tags'; +$string['taggedwith'] = 'tagged with \"$a\"'; $string['tagsaredisabled'] = 'Tags are disabled'; $string['thingtaggedwith'] = '\"$a->name\" is used once'; $string['thingstaggedwith'] = '\"$a->name\" is used $a->count times'; $string['thistaghasnodesc'] = 'This tag currently has no description.'; $string['timemodified'] = 'Modified'; $string['typechanged'] = 'Tag type changed'; -$string['userstaggedwith'] = 'Users tagged with \"$a\"'; $string['updatetag'] = 'Update'; $string['updated'] = 'Updated'; $string['withselectedtags'] = 'With selected tags...'; diff --git a/tag/index.php b/tag/index.php index 2e9747d19d..4ab216c285 100644 --- a/tag/index.php +++ b/tag/index.php @@ -78,6 +78,10 @@ print_heading($tagname, '', 2, 'headingblock header tag-heading'); tag_print_management_box($tag); tag_print_description_box($tag); +echo '

'.get_string('courses'). + ' | '.get_string('relatedblogs', 'tag'). + ' | '.get_string('users').'

'; + // Display courses tagged with the tag require_once($CFG->dirroot.'/tag/coursetagslib.php'); if ($courses = coursetag_get_tagged_courses($tag->id)) { @@ -85,7 +89,8 @@ if ($courses = coursetag_get_tagged_courses($tag->id)) { $totalcount = count( $courses ); print_box_start('generalbox', 'tag-blogs'); //could use an id separate from tag-blogs, but would have to copy the css style to make it look the same - $heading = get_string('tagindex_coursetitle', 'tag', $tagname) .': '. $totalcount; + $heading = get_string('courses') . ' ' . get_string('taggedwith', 'tag', $tagname) .': '. $totalcount; + echo ""; print_heading($heading, '', 3); foreach ($courses as $course) { @@ -106,7 +111,8 @@ if (has_capability('moodle/blog:view', $systemcontext)) { // You have to see bl if ($blogs = blog_fetch_entries('', $count, 0, 'site', '', $tag->id)) { print_box_start('generalbox', 'tag-blogs'); - $heading = get_string('relatedblogs', 'tag', $tagname); + $heading = get_string('relatedblogs', 'tag', $tagname). ' ' . get_string('taggedwith', 'tag', $tagname); + echo ""; print_heading($heading, '', 3); echo '