40 lines
1.6 KiB
PHP
40 lines
1.6 KiB
PHP
<?php
|
|
// $Id$
|
|
|
|
/**
|
|
* @file
|
|
* Default theme implementation for folded comments.
|
|
*
|
|
* Available variables:
|
|
* - $title: Linked title to full comment.
|
|
* - $new: New comment marker.
|
|
* - $author: Comment author. Can be link or plain text.
|
|
* - $date: Date and time of posting.
|
|
* - $comment: Full comment object.
|
|
* - $classes: String of classes that can be used to style contextually through
|
|
* CSS. It can be manipulated through the variable $classes_array from
|
|
* preprocess functions. The default values can be one or more of the following:
|
|
* - comment-folded: The current template type, i.e., "theming hook".
|
|
* - comment-by-anonymous: Comment by an unregistered user.
|
|
* - comment-by-node-author: Comment by the author of the parent node.
|
|
* The following applies only to viewers who are registered users:
|
|
* - comment-unpublished: An unpublished comment visible only to administrators.
|
|
* - comment-by-viewer: Comment by the user currently viewing the page.
|
|
* - comment-new: New comment since last the visit.
|
|
*
|
|
* These two variables are provided for context:
|
|
* - $comment: Full comment object.
|
|
* - $node: Node object the comments are attached to.
|
|
*
|
|
* Other variables:
|
|
* - $classes_array: Array of html class attribute values. It is flattened
|
|
* into a string within the variable $classes.
|
|
*
|
|
* @see template_preprocess_comment_folded()
|
|
* @see theme_comment_folded()
|
|
*/
|
|
?>
|
|
<div class="<?php print $classes; ?>">
|
|
<span class="subject"><?php print $title . ' ' . $new; ?></span><span class="credit"><?php print t('by') . ' ' . $author; ?></span>
|
|
</div>
|