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

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

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


Revision 1.6 - (show annotations) (download) (as text)
Thu Dec 11 17:26:04 2008 UTC (11 months, 1 week ago) by shannonlucas
Branch: MAIN
CVS Tags: DRUPAL-6--2-6, DRUPAL-6--2-5, DRUPAL-6--2-4, DRUPAL-6--2-3, DRUPAL-6--2-2, DRUPAL-6--3-2, DRUPAL-6--3-3, DRUPAL-6--3-1, DRUPAL-6--3-4, DRUPAL-7--1-1, HEAD
Branch point for: DRUPAL-6--2, DRUPAL-6--3, DRUPAL-6--4, DRUPAL-7--1
Changes since 1.5: +4 -3 lines
File MIME type: text/x-php
[#345405] added original-author class to comments by node's author
1 <?php
2 // $Id: comment.tpl.php,v 1.5 2008/11/23 22:16:19 shannonlucas Exp $
3
4 $comment_class = 'comment' . (($comment->new) ? ' comment-new' : '') .
5 ' ' . $status . ' ' . $zebra;
6 $content_class = 'content' . (($comment->uid == $node->uid) ? ' original-author' : '');
7 ?>
8 <div class="<?php print $comment_class; ?>">
9 <div class="<?php print $content_class; ?>">
10 <?php if (!empty($picture)) { print $picture; } ?>
11 <?php if ($comment->new): ?>
12 <span class="new"><?php print $new ?></span>
13 <?php endif; ?>
14 <?php if (!empty($title)) { ?><h3><?php print $title ?></h3><?php } ?>
15 <?php print $content ?>
16 <div class="clear"></div>
17 <?php if ($signature): ?>
18 <div class="user-signature clear-block">
19 <?php print $signature ?>
20 </div>
21 <?php endif; ?>
22 <div class="clear"></div>
23 </div>
24 <div class="comment-meta">
25 <span><strong><?php print $author; ?></strong> | <?php print $date; ?></span>
26 <?php if ($links) { print $links; } ?>
27 </div>
28 </div>

  ViewVC Help
Powered by ViewVC 1.1.2