mod-forum MDL-22220 Added CSS classes for better for post styling

This commit is contained in:
Sam Hemelryk
2010-09-23 05:45:00 +00:00
parent ae715bbde8
commit 899baccdd3
+2 -2
View File
@@ -3278,12 +3278,12 @@ function forum_print_post($post, $discussion, $forum, &$cm, $course, $ownpost=fa
// Print shortened version
echo format_text(forum_shorten_post($post->message), $post->messageformat, $options, $course->id);
$numwords = count_words(strip_tags($post->message));
echo '<div class="posting"><a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'">';
echo '<div class="posting shortenedpost"><a href="'.$CFG->wwwroot.'/mod/forum/discuss.php?d='.$post->discussion.'">';
echo get_string('readtherest', 'forum');
echo '</a> ('.get_string('numwords', '', $numwords).')...</div>';
} else {
// Print whole message
echo '<div class="posting">';
echo '<div class="posting fullpost">';
if ($highlight) {
echo highlight($highlight, format_text($post->message, $post->messageformat, $options, $course->id));
} else {