| 1 |
<?php |
<?php |
|
|
|
|
function dark_comment_submitted($comment) { |
|
|
return t('<span class="post-author">!username</span><span class="post-date">@datetime</span>', |
|
|
array( |
|
|
'!username' => theme('username', $comment), |
|
|
'@datetime' => format_date($comment->created, 'custom', 'M d,Y') |
|
|
)); |
|
|
} |
|
|
|
|
| 2 |
/** |
/** |
| 3 |
* Allow themable wrapping of all comments. |
* Allow themable wrapping of all comments. |
| 4 |
*/ |
*/ |
| 59 |
|
|
| 60 |
return _phptemplate_callback('node', $variables, array('node-' . $node->type)); |
return _phptemplate_callback('node', $variables, array('node-' . $node->type)); |
| 61 |
} |
} |
| 62 |
|
/** |
| 63 |
|
* Prepare the values passed to the theme_comment function to be passed |
| 64 |
|
* into a pluggable template engine. |
| 65 |
|
*/ |
| 66 |
|
function dark_comment($comment, $links = 0) { |
| 67 |
|
return _phptemplate_callback('comment', array( |
| 68 |
|
'author' => theme('username', $comment), |
| 69 |
|
'comment' => $comment, |
| 70 |
|
'content' => $comment->comment, |
| 71 |
|
'date' => format_date($comment->timestamp), |
| 72 |
|
'links' => isset($links) ? theme('links', $links) : '', |
| 73 |
|
'new' => $comment->new ? t('new') : '', |
| 74 |
|
'picture' => theme_get_setting('toggle_comment_user_picture') ? theme('user_picture', $comment) : '', |
| 75 |
|
'submitted' => t('<span class="cmt-author">!username</span><span class="post-date">@datetime</span>', array('!username' => theme('username', $comment), '@datetime' => format_date($comment->timestamp, 'custom', 'M d,Y'))), |
| 76 |
|
'title' => l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid") |
| 77 |
|
)); |
| 78 |
|
} |
| 79 |
|
|
| 80 |
/** |
/** |
| 81 |
* Format an individual feed item for display on the aggregator page. |
* Format an individual feed item for display on the aggregator page. |