-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode.tpl.php
105 lines (76 loc) · 1.99 KB
/
node.tpl.php
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?php
// $Id$
/**
* @file
* Template to render nodes.
*/
if ($page == 0) { ?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix">
<div class="picture"><?php print $list_image; ?></div>
<div class="content">
<div class="subject">
<?php print return_terms_from_vocabulary($node, "1"); ?>
</div>
<?php if($node->title){ ?>
<h3><?php print l($node->title, 'node/'.$node->nid); ?></h3>
<?php } ?>
<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
//field_teaser
if($node->field_teaser[0]['value']){
print $node->field_teaser[0]['value'];
}else{
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="meta">
<?php print format_date($node->created, 'custom', "j F Y") ?>
<i><?php print t('by'); ?></i>
<span class="author"><?php print theme('username', $node); ?></span>
</div>
<div class="content">
<?php print $content ?>
</div>
<?php if (count($taxonomy)){ ?>
<div class="taxonomy">
<?php print $terms ?>
</div>
<?php } ?>
<?php if ($similarterms) { ?>
<div class="ding-box-wide similar">
<h3><?php print t('Similar'); ?></h3>
<?php print $similarterms; ?>
</div>
<?php } ?>
<?php if ($links){ ?>
<?php print $links; ?>
<?php } ?>
</div>
<?php } ?>