MDL-54027 mod_forum: Display sub-header on user posts/discussions page

This commit is contained in:
Frederic Massart 2016-05-13 17:17:28 +08:00
parent e4b5a062d8
commit 2140cca1db

View File

@ -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) {