/[drupal]/contributions/themes/newswire/comment.tpl.php
ViewVC logotype

Contents of /contributions/themes/newswire/comment.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.7 - (show annotations) (download) (as text)
Tue Nov 3 22:22:04 2009 UTC (3 weeks, 2 days ago) by jmburnz
Branch: MAIN
CVS Tags: DRUPAL-6--4-1, DRUPAL-6--4-0, HEAD
Changes since 1.6: +2 -2 lines
File MIME type: text/x-php
coder cleanup
1 <?php // $Id: comment.tpl.php,v 1.6 2009/11/02 12:03:18 jmburnz Exp $
2 /**
3 * @file comment.tpl.php
4 *
5 * Theme implementation for comments.
6 *
7 * @see template_preprocess_comment()
8 * @see theme_comment()
9 */
10 ?>
11 <div class="comment <?php print $comment_classes; ?> clearfix">
12 <?php if ($title): ?>
13 <h3 class="title">
14 <?php print $title; if (!empty($new)): ?> <span class="new"><?php print $new; ?></span><?php endif; ?>
15 </h3>
16 <?php elseif (!empty($new)): ?>
17 <div class="new"><?php print $new; ?></div>
18 <?php endif; ?>
19
20 <?php if ($unpublished): ?>
21 <div class="unpublished"><?php print t('Unpublished'); ?></div>
22 <?php endif; ?>
23
24 <?php if ($submitted): ?>
25 <h4 class="meta">
26 <abbr title="<?php print format_date($comment->timestamp, 'custom', "l, F j, Y - H:i"); ?>">
27 <?php print format_date($comment->timestamp, 'custom', "F j, Y"); ?>
28 </abbr>
29 <?php print t('by'); ?> <em><?php print theme('username', $comment); ?></em>,
30 <span class="time-ago"><?php print t('!date ago', array( '!date' => format_interval(time() - $comment->timestamp))); ?></span><br />
31 <span class="comment-id"><?php print t('Comment: ') . $comment->cid; ?></span>
32 </h4>
33 <?php endif; ?>
34
35 <?php print $picture; ?>
36
37 <div class="comment-content <?php if (!empty($picture)) print 'with-picture'; ?>">
38 <?php print $content; ?>
39 </div> <!-- /comment content -->
40
41 <?php if ($links): ?>
42 <div class="links"><?php print $links; ?></div>
43 <?php endif; ?>
44
45 </div> <!-- /comment -->

  ViewVC Help
Powered by ViewVC 1.1.2