| 1 |
<?php
|
| 2 |
|
| 3 |
// this is just the defaut display of a single node that cam be modified if you want //
|
| 4 |
|
| 5 |
/**
|
| 6 |
* @file node.tpl.php
|
| 7 |
*
|
| 8 |
* Theme implementation to display a node.
|
| 9 |
*
|
| 10 |
* Available variables:
|
| 11 |
* - $title: the (sanitized) title of the node.
|
| 12 |
* - $content: Node body or teaser depending on $teaser flag.
|
| 13 |
* - $picture: The authors picture of the node output from
|
| 14 |
* theme_user_picture().
|
| 15 |
* - $date: Formatted creation date (use $created to reformat with
|
| 16 |
* format_date()).
|
| 17 |
* - $links: Themed links like "Read more", "Add new comment", etc. output
|
| 18 |
* from theme_links().
|
| 19 |
* - $name: Themed username of node author output from theme_user().
|
| 20 |
* - $node_url: Direct url of the current node.
|
| 21 |
* - $terms: the themed list of taxonomy term links output from theme_links().
|
| 22 |
* - $submitted: themed submission information output from
|
| 23 |
* theme_node_submitted().
|
| 24 |
*
|
| 25 |
* Other variables:
|
| 26 |
* - $node: Full node object. Contains data that may not be safe.
|
| 27 |
* - $type: Node type, i.e. story, page, blog, etc.
|
| 28 |
* - $comment_count: Number of comments attached to the node.
|
| 29 |
* - $uid: User ID of the node author.
|
| 30 |
* - $created: Time the node was published formatted in Unix timestamp.
|
| 31 |
* - $zebra: Outputs either "even" or "odd". Useful for zebra striping in
|
| 32 |
* teaser listings.
|
| 33 |
* - $id: Position of the node. Increments each time it's output.
|
| 34 |
*
|
| 35 |
*/
|
| 36 |
?>
|
| 37 |
<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clear-block">
|
| 38 |
|
| 39 |
<?php print $picture ?>
|
| 40 |
|
| 41 |
<?php if (!$page): ?>
|
| 42 |
<h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
|
| 43 |
<?php endif; ?>
|
| 44 |
|
| 45 |
<div class="meta">
|
| 46 |
<?php if ($submitted): ?>
|
| 47 |
<span class="submitted"><?php print $submitted ?></span>
|
| 48 |
<?php endif; ?>
|
| 49 |
|
| 50 |
<?php if ($terms): ?>
|
| 51 |
<div class="terms terms-inline"><?php print $terms ?></div>
|
| 52 |
<?php endif;?>
|
| 53 |
</div>
|
| 54 |
|
| 55 |
<div class="content">
|
| 56 |
<?php print $content ?>
|
| 57 |
</div>
|
| 58 |
|
| 59 |
<?php print $links; ?>
|
| 60 |
</div>
|