/[drupal]/contributions/modules/storm/stormnote/stormnote.theme.inc
ViewVC logotype

Diff of /contributions/modules/storm/stormnote/stormnote.theme.inc

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

revision 1.1, Sun May 18 08:28:51 2008 UTC revision 1.1.4.1, Mon Sep 1 08:50:21 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id$  // $Id: stormnote.theme.inc,v 1.1 2008/05/18 08:28:51 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 32  function theme_stormnote_list($header, $ Line 32  function theme_stormnote_list($header, $
32  }  }
33    
34  function theme_stormnote_view($node, $teaser = FALSE, $page = FALSE) {  function theme_stormnote_view($node, $teaser = FALSE, $page = FALSE) {
35    $o  = '<div class="stormnote">';    $node = node_prepare($node, $teaser);
36    $o .= '<dl>';  
37    $o .= '<dt>'. t('Title') .' : '.  check_plain($node->title) .'</dt>';    $w = 0;
38    $o .= '<dt>'.  t('Organization') .' : '.  l($node->organization_title, 'node/'. $node->organization_nid) .'</dt>';  
39    $o .= '<dt>'.  t('Project') .' : '.  l($node->project_title, 'node/'. $node->project_nid) .'</dt>';    $node->content['stormnote'] = array(
40    $o .= '<dt>'.  t('Task') .' : '.  l($node->task_title, 'node/'. $node->task_nid) .'</dt>';      '#prefix' => '<div id="stormnote">',
41    $o .= '</dl>';      '#suffix' => '</div>',
42    $o .= '</div>';      '#weight' => $w++,
43    return $o;    );
44    
45      $node->content['stormnote']['title'] = array(
46        '#prefix' => '<div class="title">',
47        '#suffix' => '</div>',
48        '#value' => theme('storm_view_item', storm_t('Title', 'note'), $node->title),
49        '#weight' => $w++,
50      );
51    
52      $node->content['stormnote']['links'] = array(
53        '#prefix' => '<div id="links">',
54        '#suffix' => '</div>',
55        '#weight' => $w++,
56      );
57    
58      $node->content['stormnote']['organization'] = array(
59        '#prefix' => '<div class="organization">',
60        '#suffix' => '</div>',
61        '#value' => theme('storm_view_item', storm_t('Organization', 'note'), l($node->organization_title, 'node/'. $node->organization_nid)),
62        '#weight' => $w++,
63      );
64    
65      $node->content['stormnote']['project'] = array(
66        '#prefix' => '<div class="project">',
67        '#suffix' => '</div>',
68        '#value' => theme('storm_view_item', storm_t('Project', 'note'), l($node->project_title, 'node/'. $node->project_nid)),
69        '#weight' => $w++,
70      );
71    
72      $node->content['stormnote']['task'] = array(
73        '#prefix' => '<div class="task">',
74        '#suffix' => '</div>',
75        '#value' => theme('storm_view_item', storm_t('Task', 'note'), l($node->task_title, 'node/'. $node->project_nid)),
76        '#weight' => $w++,
77      );
78    
79      return $node;
80  }  }
81    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.4.1

  ViewVC Help
Powered by ViewVC 1.1.2