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