forked from dingproject/dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-profile.tpl.php
More file actions
71 lines (49 loc) · 1.46 KB
/
node-profile.tpl.php
File metadata and controls
71 lines (49 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<?php
// $Id$
/**
* @file
* Template to render profile nodes.
*/
if ($page == 0){ ?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix">
<div class="picture"><?php print $field_list_image[0]['view']; ?></div>
<div class="content">
<?php if($node->title){ ?>
<h3><?php print l($node->title, 'node/'.$node->nid); ?></h3>
<?php } ?>
<div class="subject">
<?php print return_terms_from_vocabulary($node, "1"); ?>
</div>
<div class="meta">
<span class="time">
<?php print format_date($node->created, 'custom', "j F Y") ?>
</span>
<span class="author">
<?php print t('by') . ' ' . theme('username', $node); ?>
</span>
<?php print $node->field_library_ref[0]['view']; ?>
</div>
<p><?php print strip_tags($node->content['body']['#value']);?></p>
<?php if (count($taxonomy)){ ?>
<div class="taxonomy">
<?php print $terms ?>
</div>
<?php } ?>
</div>
</div>
<?php }else{
//Content
?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix">
<div class="subject">
<?php print return_terms_from_vocabulary($node, "1"); ?>
</div>
<?php if($node->title){ ?>
<h2><?php print $title;?></h2>
<?php } ?>
<div class="content">
<?php print $content ?>
</div>
<?php // print l(t('contact'), 'user/' . $node->uid . '/contact', $options= array('attributes' => array('class' =>'contact')) );?>
</div>
<?php } ?>