Skip to content

Commit

Permalink
Using divs to do the indenting, rather than <UL>
Browse files Browse the repository at this point in the history
This probably needs to be named class
  • Loading branch information
moodler committed Jan 22, 2005
1 parent a61b898 commit bb3b56c
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions mod/forum/lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -2597,11 +2597,9 @@ function forum_print_discussion($course, $forum, $discussion, $post, $mode, $can
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 :
Expand Down Expand Up @@ -2662,7 +2660,7 @@ function forum_print_posts_threaded($parent, $course, $depth, $ratings, $reply)
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)) {
Expand All @@ -2680,7 +2678,7 @@ function forum_print_posts_threaded($parent, $course, $depth, $ratings, $reply)
if (forum_print_posts_threaded($post->id, $course, $depth-1, $ratings, $reply)) {
$ratingsmenuused = true;
}
echo "</li></ul>\n";
echo "</div>\n";
}
}
return $ratingsmenuused;
Expand All @@ -2701,15 +2699,15 @@ function forum_print_posts_nested($parent, $course, $ratings, $reply) {
$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;
}
echo "<br />";
if (forum_print_posts_nested($post->id, $course, $ratings, $reply)) {
$ratingsmenuused = true;
}
echo "</li></ul>\n";
echo "</div>\n";
}
}
return $ratingsmenuused;
Expand Down

0 comments on commit bb3b56c

Please sign in to comment.