| 1 |
<?php // $Id: node.tpl.php,v 1.4 2009/11/02 12:03:18 jmburnz Exp $
|
| 2 |
|
| 3 |
/**
|
| 4 |
* @file node.tpl.php
|
| 5 |
*
|
| 6 |
* Theme implementation to display a node.
|
| 7 |
*
|
| 8 |
* @see template_preprocess()
|
| 9 |
* @see template_preprocess_node()
|
| 10 |
*/
|
| 11 |
?>
|
| 12 |
<div id="node-<?php print $node->nid; ?>" class="node <?php print $node_classes; ?>">
|
| 13 |
|
| 14 |
<?php if (!$page): ?>
|
| 15 |
<h2><a href="<?php print $node_url; ?>" rel="bookmark"><?php print $title; ?></a></h2>
|
| 16 |
<?php endif; ?>
|
| 17 |
|
| 18 |
<?php if ($unpublished): ?>
|
| 19 |
<div class="unpublished"><?php print t('Unpublished'); ?></div>
|
| 20 |
<?php endif; ?>
|
| 21 |
|
| 22 |
<?php if ($submitted): ?>
|
| 23 |
<h3 class="meta">
|
| 24 |
<abbr title="<?php print format_date($node->created, 'custom', "l, F j, Y - H:i"); ?>">
|
| 25 |
<?php print format_date($node->created, 'custom', "F j, Y"); ?>
|
| 26 |
</abbr>
|
| 27 |
<?php print t('by'); ?> <em><?php print $name; ?></em>
|
| 28 |
</h3>
|
| 29 |
<?php endif; ?>
|
| 30 |
|
| 31 |
<?php if ($node->type != 'poll'): ?>
|
| 32 |
<?php print $picture; ?>
|
| 33 |
<?php endif; ?>
|
| 34 |
|
| 35 |
<?php print $content; ?>
|
| 36 |
|
| 37 |
<?php if ($terms): ?>
|
| 38 |
<div class="tags"><?php print $terms; ?></div>
|
| 39 |
<?php endif; ?>
|
| 40 |
|
| 41 |
<?php if ($links): ?>
|
| 42 |
<div class="actions"><?php print $links; ?></div>
|
| 43 |
<?php endif; ?>
|
| 44 |
|
| 45 |
<?php if ($node_region && $page): ?>
|
| 46 |
<div class="node-region"><?php print $node_region; ?></div>
|
| 47 |
<?php endif; ?>
|
| 48 |
|
| 49 |
</div> <!-- /node -->
|