case FORUM_MODE_FLATOLDEST :
case FORUM_MODE_FLATNEWEST :
default:
- echo "<ul><li>";
if (forum_print_posts_flat($post->discussion, $course->id, $mode, $ratings, $reply)) {
$ratingsmenuused = true;
}
- echo "</li></ul>";
break;
case FORUM_MODE_THREADED :
if ($posts = forum_get_child_posts($parent)) {
foreach ($posts as $post) {
- echo "<ul><li>";
+ echo '<div style="margin-left:20px">';
if ($depth > 0) {
$ownpost = ($USER->id == $post->userid);
if (forum_print_post($post, $course, $ownpost, $reply, $link, $ratings)) {
if (forum_print_posts_threaded($post->id, $course, $depth-1, $ratings, $reply)) {
$ratingsmenuused = true;
}
- echo "</li></ul>\n";
+ echo "</div>\n";
}
}
return $ratingsmenuused;
$ownpost = ($USER->id == $post->userid);
}
- echo "<ul><li>";
+ echo '<div style="margin-left:20px">';
if (forum_print_post($post, $course, $ownpost, $reply, $link, $ratings)) {
$ratingsmenuused = true;
}
if (forum_print_posts_nested($post->id, $course, $ratings, $reply)) {
$ratingsmenuused = true;
}
- echo "</li></ul>\n";
+ echo "</div>\n";
}
}
return $ratingsmenuused;