]> git.mjollnir.org Git - moodle.git/commitdiff
Fixed classes for styles in forum overview in My Moodle
authormoodler <moodler>
Wed, 15 Mar 2006 09:50:42 +0000 (09:50 +0000)
committermoodler <moodler>
Wed, 15 Mar 2006 09:50:42 +0000 (09:50 +0000)
mod/forum/lib.php

index 5b438fc16272dd286482d7d61b651e3ee29c5c67..bfb627402c05febe8b6375484b7c2830bd5ab99c 100644 (file)
@@ -815,12 +815,14 @@ function forum_print_overview($courses,&$htmlarray) {
             $showunread = true;
         }
         if ($count > 0 || $thisunread > 0) {
-            $str .= '<a title="'.$strforum.'" href="'.$CFG->wwwroot.'/mod/forum/view.php?f='.$forum->id.'">'
-                .$strforum.': '.$forum->name.'</a><br />';
-            $str .= $count.' '.$strnumpostssince."<br />";
+            $str .= '<div class="overview forum"><div class="name">'.$strforum.': <a title="'.$strforum.'" href="'.$CFG->wwwroot.'/mod/forum/view.php?f='.$forum->id.'">'.
+                $forum->name.'</a></div>';
+            $str .= '<div class="info">';
+            $str .= $count.' '.$strnumpostssince;
             if (!empty($showunread)) {
-                $str .= $thisunread .' '.$strnumunread.'<br />';
+                $str .= '<br />'.$thisunread .' '.$strnumunread;
             }
+            $str .= '</div></div>';
         }
         if (!empty($str)) { 
             if (!array_key_exists($forum->course,$htmlarray)) {