定义一个评论区块所输出的HTML.没有对评论进行任何逻辑处理,仅仅用于输出实际的评论.
可用变量
$author
链接到作者的个人信息页面.
$comment (object)
评论对象,将传递给theme_comment函数.
$content
链接的内容.
$date
格式化的发布日期.
$directory
主题所在的目录,比如themes/garland or themes/garland/minelli.
$id
被展示评论的序列ID.
$is_front
如果当前页面为首页的话,返回true.
$links
位于评论下面的上下文链接.
$new
英文'new'的翻译文本,如果评论确实是新的,未读过的.
$picture
用户图片的HTML(包含<a>标签),如果展示被启用并且图片被设置了.
$submitted
翻译的发布信息字符串.
$title
链接到评论的标题上.
$zebra
斑马线,odd/even,二选一.
默认Drupal模板文件
<div class="comment<?php print ($comment->new) ? ' comment-new' : ''; print ($comment->status == COMMENT_NOT_PUBLISHED) ? ' comment-unpublished' : ''; ?> clear-block">
<?php print $picture ?>
<?php if ($comment->new) : ?>
<a id="new"></a>
<span class="new"><?php print $new ?></span>
<?php endif; ?>
<h3><?php print $title ?></h3>
<div class="submitted">
<?php print $submitted ?>
</div>
<div class="content">
<?php print $content ?>
</div>
<?php print $links ?>
</div>