mirror of
https://github.com/moodle/moodle.git
synced 2025-04-13 20:42:22 +02:00
MDL-54027 mod_forum: Display sub-header on user posts/discussions page
This commit is contained in:
parent
e4b5a062d8
commit
2140cca1db
@ -389,9 +389,19 @@ if (isset($courseid) && $courseid != SITEID) {
|
||||
}
|
||||
|
||||
echo $OUTPUT->header();
|
||||
echo $OUTPUT->heading($inpageheading);
|
||||
echo html_writer::start_tag('div', array('class' => 'user-content'));
|
||||
|
||||
if ($isspecificcourse) {
|
||||
$userheading = array(
|
||||
'heading' => fullname($user),
|
||||
'user' => $user,
|
||||
'usercontext' => $usercontext
|
||||
);
|
||||
echo $OUTPUT->context_header($userheading, 2);
|
||||
} else {
|
||||
echo $OUTPUT->heading($inpageheading);
|
||||
}
|
||||
|
||||
if (!empty($postoutput)) {
|
||||
echo $OUTPUT->paging_bar($result->totalcount, $page, $perpage, $url);
|
||||
foreach ($postoutput as $post) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user