chameleon_comment
themes/chameleon/chameleon.theme, строка 155
- Версии
- 5
chameleon_comment($comment, $links = "")
- 6
chameleon_comment($comment, $node, $links = array())
Код
<?php
function chameleon_comment($comment, $node, $links = array()) {
$submitted['comment_submitted'] = array(
'title' => t('By !author at @date', array('!author' => theme('username', $comment), '@date' => format_date($comment->timestamp, 'small'))),
'html' => TRUE);
$output = "<div class=\"comment". ' '. $status ."\">\n";
$output .= " <h3 class=\"title\">". l($comment->subject, $_GET['q'], array('fragment' => "comment-$comment->cid")) ."</h3>\n";
$output .= " <div class=\"content\">". $comment->comment;
if (!empty($signature)) {
$output .= " <div class=\"clear-block\">";
$output .= "<div>—</div>\n";
$output .= $signature ."\n";
$output .= " </div>\n";
}
$output .= " </div>\n";
$output .= " <div class=\"links\">". theme('links', array_merge($submitted, $links)) ."</div>\n";
$output .= "</div>\n";
return $output;
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии