Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

forum/css MDL-16749 added a div named "posting" around the posting

  • Loading branch information...
commit adfe07e8971760f7a88fea7282abfa683f62d65a 1 parent c83e62a
moodler authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 mod/forum/lib.php
View
6 mod/forum/lib.php
@@ -2921,16 +2921,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;
}
Please sign in to comment.
Something went wrong with that request. Please try again.