mirror of
https://github.com/moodle/moodle.git
synced 2025-03-18 22:50:19 +01:00
MDL-44343 mod_forum: Show File attachments underneath content
This commit is contained in:
parent
d29fb4ac65
commit
03f07eb387
@ -3379,9 +3379,6 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
|
||||
$output .= html_writer::end_tag('div'); //left side
|
||||
$output .= html_writer::start_tag('div', array('class'=>'no-overflow'));
|
||||
$output .= html_writer::start_tag('div', array('class'=>'content'));
|
||||
if (!empty($attachments)) {
|
||||
$output .= html_writer::tag('div', $attachments, array('class'=>'attachments'));
|
||||
}
|
||||
|
||||
$options = new stdClass;
|
||||
$options->para = false;
|
||||
@ -3419,6 +3416,10 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
|
||||
$output .= html_writer::tag('div',' ', array('class'=>'left'));
|
||||
$output .= html_writer::start_tag('div', array('class'=>'options clearfix'));
|
||||
|
||||
if (!empty($attachments)) {
|
||||
$output .= html_writer::tag('div', $attachments, array('class'=>'attachments'));
|
||||
}
|
||||
|
||||
// Output ratings
|
||||
if (!empty($post->rating)) {
|
||||
$output .= html_writer::tag('div', $OUTPUT->render($post->rating), array('class'=>'forum-post-rating'));
|
||||
|
Loading…
x
Reference in New Issue
Block a user