]> git.mjollnir.org Git - moodle.git/commitdiff
forum/css MDL-16749 added a div named "posting" around the posting (merged from 1.9)
authormoodler <moodler>
Tue, 20 Jan 2009 07:55:49 +0000 (07:55 +0000)
committermoodler <moodler>
Tue, 20 Jan 2009 07:55:49 +0000 (07:55 +0000)
mod/forum/lib.php

index c8c229b9364e8ab76bb8b5afbe22c5a1b76fb856..88c5ca9049533c911f5b89f0d475e718d4a7e94c 100644 (file)
@@ -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;
     }