/[drupal]/contributions/themes/TVframe/node-om_show.tpl.php
ViewVC logotype

Contents of /contributions/themes/TVframe/node-om_show.tpl.php

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download) (as text)
Wed Oct 21 15:35:20 2009 UTC (5 weeks, 1 day ago) by kreynen
Branch: MAIN
CVS Tags: DRUPAL-6--1-0, HEAD
File MIME type: text/x-php
Last updates before install profile changes
1 <?php
2 // $Id: node-og-group-post.tpl.php,v 1.3 2008/11/09 17:17:54 weitzman Exp $
3
4 /**
5 * @file node-og-group-post.tpl.php
6 *
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.
9 *
10 * Theme implementation to display a node.
11 *
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
18 * format_date()).
19 * - $links: Themed links like "Read more", "Add new comment", etc. output
20 * from theme_links().
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().
26 *
27 * Other variables:
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
34 * teaser listings.
35 * - $id: Position of the node. Increments each time it's output.
36 *
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
45 * main body content.
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.
49 *
50 * @see template_preprocess()
51 * @see template_preprocess_node()
52 */
53 ?>
54 <div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?> clear-block">
55
56 <?php print $picture ?>
57
58 <?php if (!$page): ?>
59 <h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
60 <?php endif; ?>
61
62 <div class="content">
63 <?php print $node->field_om_show_flash[0]['view'] ?>
64 <!-- ?php print $content ? -->
65 <div class="node-body"><?php print $node->content['body']['#value']; ?></div>
66
67 <?php print $node->content['fivestar_widget']['#value'] ?>
68
69 </div>
70
71 <?php if ($node->og_groups && $page) {
72 print '<div class="groups">'. t('Groups'). ': ';
73 print '<div class="links">'. $og_links['view']. '</div></div>';
74 } ?>
75
76 <?php print $links; ?>
77 </div>
78
79 <?php if ($teaser): ?>
80 <?php
81 foreach( $node->og_groups_both as $key => $value){
82 print "This show is a part of the project: ".l($value,"node/".$key);
83 };
84 ?>
85
86 <p>Terms:
87 <?php
88 $firstpart = $node->taxonomy;
89 foreach( $firstpart as $key => $value) {
90 print $firstpart[$key]->name;
91 }
92 ?>
93 </p>
94
95 <div class="meta">
96 <?php if ($terms): ?>
97 <div class="terms terms-inline"><?php print $terms ?></div>
98 <?php endif;?>
99 </div>
100
101 <p>Timeslot Theme:
102 <?php
103 print $node->content['group_video']['group']['field_om_show_flash']['field']['items'][0]['#node']->field_om_show_theme[0]['view'];
104 ?>
105 </p>
106
107 <p>Timeslot Theme:
108 <?php
109 print $field_om_show_theme_rendered;
110 ?>
111 </p>
112
113 <?php endif; ?> <!-- / if $teaser -->

  ViewVC Help
Powered by ViewVC 1.1.2