Commit d9ceafd4 authored by Dries's avatar Dries
Browse files

- Made the chameleon theme display comment authors.  Patch by Kjartan.
parent c2292d22
...@@ -109,13 +109,13 @@ function chameleon_node($node, $main = 0, $page = 0) { ...@@ -109,13 +109,13 @@ function chameleon_node($node, $main = 0, $page = 0) {
function chameleon_comment($comment, $link = "") { function chameleon_comment($comment, $link = "") {
$date = array(format_date($comment->timestamp, 'small')); $submitted = array(t('By %author at %date', array('%author' => format_name($comment), '%date' => format_date($comment->timestamp. 'small'))));
$links = array($link); $links = array($link);
$output = "<div class=\"comment\">\n"; $output = "<div class=\"comment\">\n";
$output .= " <h3 class=\"title\">". $comment->subject ."</h3>\n"; $output .= " <h3 class=\"title\">". $comment->subject ."</h3>\n";
$output .= " <div class=\"content\">". $comment->comment ."</div>\n"; $output .= " <div class=\"content\">". $comment->comment ."</div>\n";
$output .= " <div class=\"links\">". theme('links', array_merge($date, $links)) ."</div>\n"; $output .= " <div class=\"links\">". theme('links', array_merge($submitted, $links)) ."</div>\n";
$output .= "</div>\n"; $output .= "</div>\n";
return $output; return $output;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment