diff --git a/themes/futaba/comment.theme.php b/themes/futaba/comment.theme.php index 7497fd85..b2716d3f 100644 --- a/themes/futaba/comment.theme.php +++ b/themes/futaba/comment.theme.php @@ -55,13 +55,14 @@ class CustomCommentListTheme extends CommentListTheme { protected function comments_to_html($comments, $trim=false) { $html = ""; + $inner_id = 0; foreach($comments as $comment) { - $html .= $this->comment_to_html($comment, $trim); + $html .= $this->comment_to_html($comment, $trim, $inner_id++); } return $html; } - protected function comment_to_html($comment, $trim=false) { + protected function comment_to_html($comment, $trim=false, $inner_id=0) { global $user; $tfe = new TextFormattingEvent($comment->comment); @@ -81,9 +82,15 @@ class CustomCommentListTheme extends CommentListTheme { "onclick=\"return confirm('Delete comment by $h_name:\\n".$tfe->stripped."');\" ". "href='".make_link("comment/delete/$i_comment_id/$i_image_id")."'>Del)" : ""; $h_imagelink = $trim ? ">>>\n" : ""; - return "
>>". - "
$h_userlink$h_dellink $h_date No.$i_comment_id [Reply]

$h_comment

" . - "
"; + + if($inner_id == 0) { + return "
$h_userlink$h_dellink $h_date No.$i_comment_id [Reply]

$h_comment

"; + } + else { + return "
>>". + "
$h_userlink$h_dellink $h_date No.$i_comment_id [Reply]

$h_comment

" . + "
"; + } } protected function build_postbox($image_id) { diff --git a/themes/futaba/style.css b/themes/futaba/style.css index 5e2d3e4d..ea0f0356 100644 --- a/themes/futaba/style.css +++ b/themes/futaba/style.css @@ -42,11 +42,11 @@ A:hover {text-decoration: underline; color: #DD0000;} clear: both; float: left; } -.commentset TABLE:first-child TR TD .comment { +.comment { background: #FFFFEE; border-width: 0px; } -.comment { +.reply { margin-bottom: 2px; font-size: 10pt; padding: 0px 5px; @@ -57,6 +57,10 @@ A:hover {text-decoration: underline; color: #DD0000;} border-top: none; padding: 2px; } +.reply P { + margin-left: 32px; + margin-bottom: 0px; +} .setupblock { border: 1px solid #AAA;