mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
Using divs to do the indenting, rather than <UL>
This probably needs to be named class
This commit is contained in:
parent
a61b898a30
commit
bb3b56c633
1 changed files with 4 additions and 6 deletions
|
@ -2597,11 +2597,9 @@ function forum_print_discussion($course, $forum, $discussion, $post, $mode, $can
|
||||||
case FORUM_MODE_FLATOLDEST :
|
case FORUM_MODE_FLATOLDEST :
|
||||||
case FORUM_MODE_FLATNEWEST :
|
case FORUM_MODE_FLATNEWEST :
|
||||||
default:
|
default:
|
||||||
echo "<ul><li>";
|
|
||||||
if (forum_print_posts_flat($post->discussion, $course->id, $mode, $ratings, $reply)) {
|
if (forum_print_posts_flat($post->discussion, $course->id, $mode, $ratings, $reply)) {
|
||||||
$ratingsmenuused = true;
|
$ratingsmenuused = true;
|
||||||
}
|
}
|
||||||
echo "</li></ul>";
|
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case FORUM_MODE_THREADED :
|
case FORUM_MODE_THREADED :
|
||||||
|
@ -2662,7 +2660,7 @@ function forum_print_posts_threaded($parent, $course, $depth, $ratings, $reply)
|
||||||
if ($posts = forum_get_child_posts($parent)) {
|
if ($posts = forum_get_child_posts($parent)) {
|
||||||
foreach ($posts as $post) {
|
foreach ($posts as $post) {
|
||||||
|
|
||||||
echo "<ul><li>";
|
echo '<div style="margin-left:20px">';
|
||||||
if ($depth > 0) {
|
if ($depth > 0) {
|
||||||
$ownpost = ($USER->id == $post->userid);
|
$ownpost = ($USER->id == $post->userid);
|
||||||
if (forum_print_post($post, $course, $ownpost, $reply, $link, $ratings)) {
|
if (forum_print_post($post, $course, $ownpost, $reply, $link, $ratings)) {
|
||||||
|
@ -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)) {
|
if (forum_print_posts_threaded($post->id, $course, $depth-1, $ratings, $reply)) {
|
||||||
$ratingsmenuused = true;
|
$ratingsmenuused = true;
|
||||||
}
|
}
|
||||||
echo "</li></ul>\n";
|
echo "</div>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $ratingsmenuused;
|
return $ratingsmenuused;
|
||||||
|
@ -2701,7 +2699,7 @@ function forum_print_posts_nested($parent, $course, $ratings, $reply) {
|
||||||
$ownpost = ($USER->id == $post->userid);
|
$ownpost = ($USER->id == $post->userid);
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "<ul><li>";
|
echo '<div style="margin-left:20px">';
|
||||||
if (forum_print_post($post, $course, $ownpost, $reply, $link, $ratings)) {
|
if (forum_print_post($post, $course, $ownpost, $reply, $link, $ratings)) {
|
||||||
$ratingsmenuused = true;
|
$ratingsmenuused = true;
|
||||||
}
|
}
|
||||||
|
@ -2709,7 +2707,7 @@ function forum_print_posts_nested($parent, $course, $ratings, $reply) {
|
||||||
if (forum_print_posts_nested($post->id, $course, $ratings, $reply)) {
|
if (forum_print_posts_nested($post->id, $course, $ratings, $reply)) {
|
||||||
$ratingsmenuused = true;
|
$ratingsmenuused = true;
|
||||||
}
|
}
|
||||||
echo "</li></ul>\n";
|
echo "</div>\n";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return $ratingsmenuused;
|
return $ratingsmenuused;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue