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

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

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

revision 1.3, Sun May 18 08:25:07 2008 UTC revision 1.3.4.1, Mon Sep 1 08:50:21 2008 UTC
# Line 1  Line 1 
1  <?php  <?php
2  // $Id: stormperson.theme.inc,v 1.2 2008/05/16 12:57:08 robertogerola Exp $  // $Id: stormperson.theme.inc,v 1.3 2008/05/18 08:25:07 robertogerola Exp $
3    
4  /**  /**
5   * @file   * @file
# Line 28  function theme_stormperson_list($header, Line 28  function theme_stormperson_list($header,
28    return $o;    return $o;
29  }  }
30    
31    function theme_stormperson_view($node, $teaser = FALSE, $page = FALSE) {
32      $node = node_prepare($node, $teaser);
33      unset($node->content['body']);
34    
35      $w = 0;
36      $node->content['stormperson'] = array(
37        '#prefix' => '<div id="stormperson">',
38        '#suffix' => '</div>',
39        '#weight' => $w++,
40      );
41    
42      $node->content['stormperson_organization'] = array(
43        '#prefix' => '<div id="organization">',
44        '#suffix' => '</div>',
45        '#value' => theme('storm_view_item', storm_t('Organization', 'person'), l($node->organization_title, 'node/'. $node->organization_nid)),
46        '#weight' => $w++,
47      );
48    
49      $node->content['stormperson_fullname'] = array(
50        '#prefix' => '<div id="fullname">',
51        '#suffix' => '</div>',
52        '#value' => theme('storm_view_item', storm_t('Fullname', 'person'), $node->fullname),
53        '#weight' => $w++,
54      );
55    
56      $node->content['stormperson_email'] = array(
57        '#prefix' => '<div id="email">',
58        '#suffix' => '</div>',
59        '#value' => theme('storm_view_item', storm_t('Email', 'person'), l($node->email, 'mailto:'. $node->email, array('absolute' => TRUE))),
60        '#weight' => $w++,
61      );
62    
63      $node->content['stormperson_www'] = array(
64        '#prefix' => '<div id="www">',
65        '#suffix' => '</div>',
66        '#value' => theme('storm_view_item', storm_t('WWW', 'person'), l($node->www, $node->www, array('absolute' => TRUE))),
67        '#weight' => $w++,
68      );
69    
70      $node->content['stormperson_phone'] = array(
71        '#prefix' => '<div id="phone">',
72        '#suffix' => '</div>',
73        '#value' => theme('storm_view_item', storm_t('Phone', 'person'), $node->phone),
74        '#weight' => $w++,
75      );
76    
77      $node->content['stormperson_im'] = array(
78        '#prefix' => '<div id="im">',
79        '#suffix' => '</div>',
80        '#value' => theme('storm_view_item', storm_t('IM', 'person'), $node->im),
81        '#weight' => $w++,
82      );
83    
84      return $node;
85    }

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.3.4.1

  ViewVC Help
Powered by ViewVC 1.1.2