mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
forum/css MDL-16749 added a div named "posting" around the posting (merged from 1.9)
This commit is contained in:
parent
cf7093e4f0
commit
5138378ab3
@ -3118,16 +3118,18 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
|
||||
// Print shortened version
|
||||
echo format_text(forum_shorten_post($post->message), $post->format, $options, $course->id);
|
||||
$numwords = count_words(strip_tags($post->message));
|
||||
echo '<p><a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'">';
|
||||
echo '<div class="posting"><a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'">';
|
||||
echo get_string('readtherest', 'forum');
|
||||
echo '</a> ('.get_string('numwords', '', $numwords).')...</p>';
|
||||
echo '</a> ('.get_string('numwords', '', $numwords).')...</div>';
|
||||
} else {
|
||||
// Print whole message
|
||||
echo '<div class="posting">';
|
||||
if ($highlight) {
|
||||
echo highlight($highlight, format_text($post->message, $post->format, $options, $course->id));
|
||||
} else {
|
||||
echo format_text($post->message, $post->format, $options, $course->id);
|
||||
}
|
||||
echo '</div>';
|
||||
echo $attachedimages;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user