Commit 5800561a authored by drumm's avatar drumm

#101927 by coofercat. Fix display of post information.

parent 77b89808
......@@ -138,7 +138,15 @@ function chameleon_node($node, $teaser = 0, $page = 0) {
$output .= " </div>\n";
$submitted['node_submitted'] = theme_get_setting("toggle_node_info_$node->type") ? array('#title' => t("By !author at @date", array('!author' => theme('username', $node), '@date' => format_date($node->created, 'small')))) : array();
if (theme_get_setting("toggle_node_info_$node->type")) {
$submitted['node_submitted'] = array(
'title' => t("By !author at @date", array('!author' => theme('username', $node), '@date' => format_date($node->created, 'small'))),
'html' => TRUE,
);
}
else {
$submitted['node_submitted'] = array();
}
$terms = array();
if (module_exists('taxonomy')) {
......@@ -159,7 +167,10 @@ function chameleon_node($node, $teaser = 0, $page = 0) {
}
function chameleon_comment($comment, $links = "") {
$submitted['comment_submitted'] = array('#title' => t('By !author at @date', array('!author' => theme('username', $comment), '@date' => format_date($comment->timestamp, 'small'))));
$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". ($comment->status == COMMENT_NOT_PUBLISHED ? ' comment-unpublished' : '') ."\">\n";
$output .= " <h3 class=\"title\">". l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") ."</h3>\n";
......
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