mirror of
https://github.com/moodle/moodle.git
synced 2025-01-29 19:50:14 +01:00
More little fixes to links and headers
This commit is contained in:
parent
44fdf0f301
commit
b0bc8e3008
@ -103,20 +103,20 @@ if ($ME == $CFG->wwwroot.'/blog/edit.php') { /// We are in edit mode, print the
|
||||
switch ($filtertype) {
|
||||
case 'site':
|
||||
if ($tagid || !empty($tag)) {
|
||||
print_header("$site->shortname: $blogstring", "$site->fullname",
|
||||
print_header("$site->shortname: $blogstring", "",
|
||||
'<a href="index.php?filtertype=site">'. "$blogstring</a> -> $tagstring: $taginstance->text",'','',true,$PAGE->get_extra_header_string());
|
||||
} else {
|
||||
print_header("$site->shortname: $blogstring", "$site->fullname",
|
||||
print_header("$site->shortname: $blogstring", "",
|
||||
$blogstring,'','',true,$PAGE->get_extra_header_string());
|
||||
}
|
||||
break;
|
||||
|
||||
case 'course':
|
||||
if ($tagid || !empty($tag)) {
|
||||
print_header_simple("$course->shortname: $blogstring", "$course->fullname",
|
||||
print_header_simple("$course->shortname: $blogstring", "",
|
||||
'<a href="index.php?filtertype=course&filterselect='.$filterselect.'">'. "$blogstring</a> -> $tagstring: $taginstance->text",'','',true,$PAGE->get_extra_header_string());
|
||||
} else {
|
||||
print_header_simple("$site->shortname: $blogstring", "$site->fullname",
|
||||
print_header_simple("$course->shortname: $blogstring", "",
|
||||
$blogstring,'','',true,$PAGE->get_extra_header_string());
|
||||
}
|
||||
break;
|
||||
|
@ -228,7 +228,7 @@
|
||||
print_string('tags');
|
||||
echo ': ';
|
||||
foreach ($blogtags as $key => $blogtag) {
|
||||
$taglist[] = '<a href="index.php?courseid='.$course->id.'&filtertype='.$filtertype.'&filterselect='.$filterselect.'&tagid='.$blogtag->id.'">'.$blogtag->text.'</a>';
|
||||
$taglist[] = '<a href="index.php?filtertype='.$filtertype.'&filterselect='.$filterselect.'&tagid='.$blogtag->id.'">'.$blogtag->text.'</a>';
|
||||
}
|
||||
echo implode(', ', $taglist);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user