forked from dingproject/dynamo
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode-topic.tpl.php
More file actions
106 lines (82 loc) · 2.63 KB
/
node-topic.tpl.php
File metadata and controls
106 lines (82 loc) · 2.63 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
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
105
<?php
// $Id$
/**
* @file
* Template to render topic 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">
<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">
af <?php print theme('username', $node); ?>
</span>
<?php print $node->field_library_ref[0]['view']; ?>
<?php if (count($taxonomy)){ ?>
<div class="taxonomy">
<?php print $terms ?>
</div>
<?php } ?>
</div>
<?php print $node->content['body']['#value'];?>
</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){ ?>
<h1><?php print $title;?></h1>
<?php } ?>
<?php if (count($taxonomy)){ ?>
<div class="taxonomy">
<?php print $terms ?>
</div>
<?php } ?>
<div class="content">
<div class="teaser">
<?php print check_plain($node->field_teaser[0]['value']); ?>
</div>
<?php foreach ($field_flexifield_topic as $field) { ?>
<?php if ($field['type'] == 'flexifield_link') { ?>
<div class="topic-field-link">
<?php print l($field['value']['field_link'][0]['title'], $field['value']['field_link'][0]['url']); ?><br />
<?php print check_plain($field['value']['field_teaser'][0]['value']); ?>
</div>
<?php } else if ($field['type'] == 'flexifield_text') { ?>
<div class="topic-field-text">
<h4><?php print check_plain($field['value']['field_title'][0]['value']); ?></h4>
<p><?php print check_plain($field['value']['field_teaser'][0]['value']); ?></p>
</div>
<?php } else if ($field['type'] == 'flexifield_ting_refs') { ?>
<div class="topic-field-ting-refs">
<?php print $field['view'] ?>
</div>
<?php } else { ?>
<div class="topic-field">
<?php print $field['view'] ?>
</div>
<?php } ?>
<?php } ?>
</div>
<?php if ($similarterms) { ?>
<div class="ding-box-wide similar">
<h3><?php print t('Similar'); ?></h3>
<?php print $similarterms; ?>
</div>
<?php } ?>
</div>
<?php } ?>