/[drupal]/contributions/modules/nodecomment/node-comment.tpl.php
ViewVC logotype

Contents of /contributions/modules/nodecomment/node-comment.tpl.php

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


Revision 1.1 - (show annotations) (download) (as text)
Wed Jan 10 21:43:42 2007 UTC (2 years, 10 months ago) by robertDouglass
Branch: MAIN
CVS Tags: DRUPAL-6--1-0-RC1, DRUPAL-6--1-2-RC2, DRUPAL-6--1-2-RC1, DRUPAL-5--1-0-BETA2, DRUPAL-5--1-0-BETA3, DRUPAL-5--1-0-BETA, DRUPAL-5--1-1, DRUPAL-5--1-0, HEAD
Branch point for: DRUPAL-5, DRUPAL-6--1
File MIME type: text/x-php
Adding the very important node-comment.tpl.php
1 <?php
2 /**
3 * For comments as nodes to work, we need to know in advance what node types
4 * will be used as comments and theme them differently. In particular, pay
5 * attention to the way the title is output. This tpl.php assumes a content
6 * type called "comment".
7 */
8 ?>
9
10 <div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">
11
12 <?php print $picture ?>
13
14 <div class="subject"><?php print l($node->title, $_GET['q'], NULL, NULL, "comment-$node->nid") . ' ' . theme('mark', $node->new); ?></div>
15
16 <?php if ($submitted): ?>
17 <span class="submitted"><?php print t('!date — !username', array('!username' => theme('username', $node), '!date' => format_date($node->created))); ?></span>
18 <?php endif; ?>
19
20 <div class="content">
21 <?php print $content ?>
22 </div>
23
24 <div class="clear-block clear">
25 <div class="meta">
26 <?php if ($taxonomy): ?>
27 <div class="terms"><?php print $terms ?></div>
28 <?php endif;?>
29 </div>
30
31 <?php if ($links): ?>
32 <div class="links clear-block"><?php print $links; ?></div>
33 <?php endif; ?>
34 </div>
35 </div>

  ViewVC Help
Powered by ViewVC 1.1.2