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

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

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

revision 1.2.4.2, Fri Jul 25 08:51:13 2008 UTC revision 1.2.4.3, Mon Sep 1 08:50:22 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: stormproject.theme.inc,v 1.2.4.1 2008/07/19 07:29:43 robertogerola Exp $  // $Id: stormproject.theme.inc,v 1.2.4.2 2008/07/25 08:51:13 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 42  function theme_stormproject_view($node, Line 42  function theme_stormproject_view($node,
42      '#weight' => $w++,      '#weight' => $w++,
43    );    );
44    
   $w = 0;  
45    $node->content['stormproject']['organization'] = array(    $node->content['stormproject']['organization'] = array(
46      '#prefix' => '<div class="organization">',      '#prefix' => '<div class="organization">',
47      '#suffix' => '</div>',      '#suffix' => '</div>',
48      '#value' => theme('storm_view_item', 'Organization', l($node->organization_title, 'node/'. $node->organization_nid)),      '#value' => theme('storm_view_item', storm_t('Organization', 'project'), l($node->organization_title, 'node/'. $node->organization_nid)),
49      '#weight' => $w++,      '#weight' => $w++,
50    );    );
51    $node->content['stormproject']['projectcategory'] = array(    $node->content['stormproject']['projectcategory'] = array(
52      '#prefix' => '<div class="projectcategory">',      '#prefix' => '<div class="projectcategory">',
53      '#suffix' => '</div>',      '#suffix' => '</div>',
54      '#value' => theme('storm_view_item', 'Category', stormattribute_value('Project category', $node->projectcategory)),      '#value' => theme('storm_view_item', storm_t('Category', 'project'), stormattribute_value('Project category', $node->projectcategory)),
55      '#weight' => $w++,      '#weight' => $w++,
56    );    );
57    
58    $node->content['stormproject']['projectstatus'] = array(    $node->content['stormproject']['projectstatus'] = array(
59      '#prefix' => '<div class="projectstatus">',      '#prefix' => '<div class="projectstatus">',
60      '#suffix' => '</div>',      '#suffix' => '</div>',
61      '#value' => theme('storm_view_item', 'Status', stormattribute_value('Project status', $node->projectstatus)),      '#value' => theme('storm_view_item', storm_t('Status', 'project'), stormattribute_value('Project status', $node->projectstatus)),
62      '#weight' => $w++,      '#weight' => $w++,
63    );    );
64    
65    $node->content['stormproject']['projectpriority'] = array(    $node->content['stormproject']['projectpriority'] = array(
66      '#prefix' => '<div class="projectpriority">',      '#prefix' => '<div class="projectpriority">',
67      '#suffix' => '</div>',      '#suffix' => '</div>',
68      '#value' => theme('storm_view_item', 'Priority', stormattribute_value('Project priority', $node->projectpriority)),      '#value' => theme('storm_view_item', storm_t('Priority', 'project'), stormattribute_value('Project priority', $node->projectpriority)),
69      '#weight' => $w++,      '#weight' => $w++,
70    );    );
71    
# Line 82  function theme_stormproject_view($node, Line 81  function theme_stormproject_view($node,
81      $node->content['stormproject']['links']['notes']  = array(      $node->content['stormproject']['links']['notes']  = array(
82        '#prefix' => '<div class="notes">',        '#prefix' => '<div class="notes">',
83        '#suffix' => '</div>',        '#suffix' => '</div>',
84        '#value' => l(t('Notes'), 'storm/notes/', array('query' => array('project_nid' => $node->nid))),        '#value' => l(storm_t('Notes', 'project'), 'storm/notes/', array('query' => array('project_nid' => $node->nid))),
85        '#weight' => $w++,        '#weight' => $w++,
86      );      );
87    }    }
# Line 91  function theme_stormproject_view($node, Line 90  function theme_stormproject_view($node,
90      $node->content['stormproject']['links']['tickets'] = array(      $node->content['stormproject']['links']['tickets'] = array(
91        '#prefix' => '<div class="tickets">',        '#prefix' => '<div class="tickets">',
92        '#suffix' => '</div>',        '#suffix' => '</div>',
93        '#value' => l(t('Tickets'), 'storm/tickets/', array('query' => array('project_nid' => $node->nid))),        '#value' => l(storm_t('Tickets', 'project'), 'storm/tickets/', array('query' => array('project_nid' => $node->nid))),
94        '#weight' => $w++,        '#weight' => $w++,
95      );      );
96    }    }
# Line 100  function theme_stormproject_view($node, Line 99  function theme_stormproject_view($node,
99      $node->content['stormproject']['links']['timetrackings'] = array(      $node->content['stormproject']['links']['timetrackings'] = array(
100        '#prefix' => '<div class="timetrackings">',        '#prefix' => '<div class="timetrackings">',
101        '#suffix' => '</div>',        '#suffix' => '</div>',
102        '#value' => l(t('Timetrackings'), 'storm/timetrackings/', array(), 'project_nid='. $node->nid),        '#value' => l(storm_t('Timetrackings', 'project'), 'storm/timetrackings/', array(), 'project_nid='. $node->nid),
103        '#weight' => $w++,        '#weight' => $w++,
104      );      );
105    }    }

Legend:
Removed from v.1.2.4.2  
changed lines
  Added in v.1.2.4.3

  ViewVC Help
Powered by ViewVC 1.1.2