~spreadubuntu/spreadubuntu/devel-drupal6

« back to all changes in this revision

Viewing changes to modules/og/theme/node-og-group-post.tpl.php

  • Committer: ruben
  • Date: 2009-06-08 09:38:49 UTC
  • Revision ID: ruben@captive-20090608093849-s1qtsyctv2vwp1x1
SpreadUbuntu moving to Drupal6. Based on ubuntu-drupal theme and adding our modules

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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="meta">
 
63
  <?php if ($submitted): ?>
 
64
    <span class="submitted"><?php print $submitted ?></span>
 
65
  <?php endif; ?>
 
66
 
 
67
  <?php if ($terms): ?>
 
68
    <div class="terms terms-inline"><?php print $terms ?></div>
 
69
  <?php endif;?>
 
70
  </div>
 
71
 
 
72
  <div class="content">
 
73
    <?php print $content ?>
 
74
  </div>
 
75
  
 
76
  <?php if ($node->og_groups && $page) {
 
77
          print '<div class="groups">'. t('Groups'). ': ';
 
78
          print '<div class="links">'.  $og_links['view']. '</div></div>';
 
79
   } ?>
 
80
 
 
81
  <?php print $links; ?>
 
82
</div>
 
 
b'\\ No newline at end of file'