phptemplate_comment
themes/engines/phptemplate/phptemplate.engine, строка 318
- Версии
- 5
phptemplate_comment($comment, $links = 0)
Prepare the values passed to the theme_comment function to be passed into a pluggable template engine.
Код
<?php
function phptemplate_comment($comment, $links = 0) {
return _phptemplate_callback('comment', array(
'author' => theme('username', $comment),
'comment' => $comment,
'content' => $comment->comment,
'date' => format_date($comment->timestamp),
'links' => isset($links) ? theme('links', $links) : '',
'new' => $comment->new ? t('new') : '',
'picture' => theme_get_setting('toggle_comment_user_picture') ? theme('user_picture', $comment) : '',
'submitted' => t('Submitted by !a on @b.',
array('!a' => theme('username', $comment),
'@b' => format_date($comment->timestamp))),
'title' => l($comment->subject, $_GET['q'], NULL, NULL, "comment-$comment->cid")
));
}
?>
Войдите или зарегистрируйтесь, чтобы получить возможность отправлять комментарии