| 1 |
<?php
|
| 2 |
// $Id: node.tpl.php,v 1.1.4.4 2008/07/08 17:20:33 stevek Exp $
|
| 3 |
|
| 4 |
/**
|
| 5 |
* @file node.tpl.php
|
| 6 |
*
|
| 7 |
* Theme implementation to display a node.
|
| 8 |
*
|
| 9 |
* Available variables:
|
| 10 |
* - $title: the (sanitized) title of the node.
|
| 11 |
* - $content: Node body or teaser depending on $teaser flag.
|
| 12 |
* - $picture: The authors picture of the node output from
|
| 13 |
* theme_user_picture().
|
| 14 |
* - $date: Formatted creation date (use $created to reformat with
|
| 15 |
* format_date()).
|
| 16 |
* - $links: Themed links like "Read more", "Add new comment", etc. output
|
| 17 |
* from theme_links().
|
| 18 |
* - $name: Themed username of node author output from theme_user().
|
| 19 |
* - $node_url: Direct url of the current node.
|
| 20 |
* - $terms: the themed list of taxonomy term links output from theme_links().
|
| 21 |
* - $submitted: themed submission information output from
|
| 22 |
* theme_node_submitted().
|
| 23 |
*
|
| 24 |
* Other variables:
|
| 25 |
* - $node: Full node object. Contains data that may not be safe.
|
| 26 |
* - $type: Node type, i.e. story, page, blog, etc.
|
| 27 |
* - $comment_count: Number of comments attached to the node.
|
| 28 |
* - $uid: User ID of the node author.
|
| 29 |
* - $created: Time the node was published formatted in Unix timestamp.
|
| 30 |
* - $zebra: Outputs either "even" or "odd". Useful for zebra striping in
|
| 31 |
* teaser listings.
|
| 32 |
* - $id: Position of the node. Increments each time it's output.
|
| 33 |
*
|
| 34 |
* Node status variables:
|
| 35 |
* - $teaser: Flag for the teaser state.
|
| 36 |
* - $page: Flag for the full page state.
|
| 37 |
* - $promote: Flag for front page promotion state.
|
| 38 |
* - $sticky: Flags for sticky post setting.
|
| 39 |
* - $status: Flag for published status.
|
| 40 |
* - $comment: State of comment settings for the node.
|
| 41 |
* - $readmore: Flags true if the teaser content of the node cannot hold the
|
| 42 |
* main body content.
|
| 43 |
* - $is_front: Flags true when presented in the front page.
|
| 44 |
* - $logged_in: Flags true when the current user is a logged-in member.
|
| 45 |
* - $is_admin: Flags true when the current user is an administrator.
|
| 46 |
*
|
| 47 |
* @see template_preprocess()
|
| 48 |
* @see template_preprocess_node()
|
| 49 |
*/
|
| 50 |
?>
|
| 51 |
|
| 52 |
<?php /* _____________ TEASER ______________ */ ?>
|
| 53 |
|
| 54 |
<?php if ($teaser): ?>
|
| 55 |
|
| 56 |
<div class="node <?php echo $node_classes; ?>" id="node-<?php echo $node->nid; ?>">
|
| 57 |
|
| 58 |
<div class="node-title"><h2><a href="<?php echo $node_url ?>" title="<?php echo $title ?>"><?php echo $title; ?></a></h2></div>
|
| 59 |
|
| 60 |
<?php if ($submitted): ?>
|
| 61 |
<div class="submitted"><?php echo $submitted; ?></div>
|
| 62 |
<?php endif; ?>
|
| 63 |
|
| 64 |
<div class="content">
|
| 65 |
<?php echo $node->teaser; ?>
|
| 66 |
</div>
|
| 67 |
<div class="teaser-links">
|
| 68 |
<?php echo $links; ?>
|
| 69 |
</div>
|
| 70 |
|
| 71 |
</div> <!-- end node-->
|
| 72 |
|
| 73 |
|
| 74 |
<?php else: ?>
|
| 75 |
|
| 76 |
<?php /* _____________ FULL NODE ______________ */ ?>
|
| 77 |
|
| 78 |
<div class="node <?php echo $node_classes; ?>" id="node-<?php echo $node->nid; ?>">
|
| 79 |
<div class="node-inner">
|
| 80 |
|
| 81 |
<?php echo $picture; ?>
|
| 82 |
|
| 83 |
<div class="meta">
|
| 84 |
<?php if ($submitted): ?>
|
| 85 |
<span class="submitted"><?php echo $submitted; ?></span>
|
| 86 |
<?php endif; ?>
|
| 87 |
|
| 88 |
<?php if ($terms): ?>
|
| 89 |
<br><div class="terms terms-inline"><strong>Tags: </strong><?php echo $terms; ?></div>
|
| 90 |
<?php endif;?>
|
| 91 |
</div>
|
| 92 |
|
| 93 |
<div class="content">
|
| 94 |
<?php echo $content; ?>
|
| 95 |
</div>
|
| 96 |
|
| 97 |
<?php echo $links; ?>
|
| 98 |
|
| 99 |
</div> <!-- end node-inner -->
|
| 100 |
</div> <!-- end node-->
|
| 101 |
|
| 102 |
<?php endif; ?>
|