Skip to content

Commit

Permalink
MDL-10783, added span class and tag title
Browse files Browse the repository at this point in the history
  • Loading branch information
Dongsheng Cai authored and stronk7 committed Dec 20, 2010
1 parent 7b8b366 commit cc26cb3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions mod/wiki/lang/en/wiki.php
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,7 @@
$string['searchwikis'] = 'Search wikis';
$string['special'] = 'Special';
$string['tagsdeleted'] = 'Wiki tags have been deleted';
$string['tagtitle'] = 'See the "{$a}" tag';
$string['teacherrating'] = 'Teacher rating';
$string['timesrating']='This page has been rated {$a->c} times with an average of: {$a->s}';
$string['updatedpages'] = "Updated pages";
Expand Down
4 changes: 2 additions & 2 deletions mod/wiki/locallib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1195,11 +1195,11 @@ function wiki_print_page_content($page, $context, $subwikiid) {
if (!empty($CFG->usetags)) {
$tags = tag_get_tags_array('wiki_pages', $page->id);
echo $OUTPUT->container_start('wiki-tags');
echo '<span>'.get_string('tags').': </span>';
echo '<span class="wiki-tags-title">'.get_string('tags').': </span>';
$links = array();
foreach ($tags as $tagid=>$tag) {
$url = new moodle_url('/tag/index.php', array('tag'=>$tag));
$links[] = html_writer::link($url, $tag);
$links[] = html_writer::link($url, $tag, array('title'=>get_string('tagtitle', 'wiki', $tag)));
}
echo join($links, ", ");
echo $OUTPUT->container_end();
Expand Down

0 comments on commit cc26cb3

Please sign in to comment.