I tried to make StackExchange-like comment section with different template for the comment replies. I create two template for both top-level comment and its replies. This is the result of the two comment.tpl.php
file rendered and then collated in GIMP.
This is comment.tpl.php
used for top comment contained in cyan box.
<div class="user-comment">
<div<?php print $attributes; ?>>
<div class="user-identification">
<?
print render($avatar) . "<br/>";
print $commenter_name . "<br/>";
print $creation_date;
?>
</div>
<?php
hide($content['links']);
print render($content['comment_body']);
print render($content['links']);
?>
</div>
</div>
While this is comment.tpl.php
used for comment reply contained in yellow box.
<div class="user-comment">
<div<?php print $attributes; ?>>
<?php
print render($content['comment_body']);
print " - " . $commenter_name;
print render($content['links']);
?>
</div>
</div>
If i use one of these template, it will effect ALL the comments as shown below.
I know I can change the style rudimentarily via theme css as suggested in this question, but going by this route means that I have to create one-size-fit-all template for both case that won't be pretty.
My question is: Is there any template file I missed or any other strategy that I can employ to make separate template that will target only the replies-to-top-comment?