2
// $Id: node-og-group-post.tpl.php,v 1.3 2008/11/09 17:17:54 weitzman Exp $
5
* @file node-og-group-post.tpl.php
7
* Og has added a brief section at bottom for printing links to affiliated groups.
8
* This template is used by default for non group nodes.
10
* Theme implementation to display a node.
12
* Available variables:
13
* - $title: the (sanitized) title of the node.
14
* - $content: Node body or teaser depending on $teaser flag.
15
* - $picture: The authors picture of the node output from
16
* theme_user_picture().
17
* - $date: Formatted creation date (use $created to reformat with
19
* - $links: Themed links like "Read more", "Add new comment", etc. output
21
* - $name: Themed username of node author output from theme_user().
22
* - $node_url: Direct url of the current node.
23
* - $terms: the themed list of taxonomy term links output from theme_links().
24
* - $submitted: themed submission information output from
25
* theme_node_submitted().
28
* - $node: Full node object. Contains data that may not be safe.
29
* - $type: Node type, i.e. story, page, blog, etc.
30
* - $comment_count: Number of comments attached to the node.
31
* - $uid: User ID of the node author.
32
* - $created: Time the node was published formatted in Unix timestamp.
33
* - $zebra: Outputs either "even" or "odd". Useful for zebra striping in
35
* - $id: Position of the node. Increments each time it's output.
37
* Node status variables:
38
* - $teaser: Flag for the teaser state.
39
* - $page: Flag for the full page state.
40
* - $promote: Flag for front page promotion state.
41
* - $sticky: Flags for sticky post setting.
42
* - $status: Flag for published status.
43
* - $comment: State of comment settings for the node.
44
* - $readmore: Flags true if the teaser content of the node cannot hold the
46
* - $is_front: Flags true when presented in the front page.
47
* - $logged_in: Flags true when the current user is a logged-in member.
48
* - $is_admin: Flags true when the current user is an administrator.
50
* @see template_preprocess()
51
* @see template_preprocess_node()
54
<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clear-block">
56
<?php print $picture ?>
59
<h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
63
<?php if ($submitted): ?>
64
<span class="submitted"><?php print $submitted ?></span>
68
<div class="terms terms-inline"><?php print $terms ?></div>
73
<?php print $content ?>
76
<?php if ($node->og_groups && $page) {
77
print '<div class="groups">'. t('Groups'). ': ';
78
print '<div class="links">'. $og_links['view']. '</div></div>';
81
<?php print $links; ?>
b'\\ No newline at end of file'