-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnode.tpl.php
More file actions
executable file
·48 lines (39 loc) · 1.38 KB
/
node.tpl.php
File metadata and controls
executable file
·48 lines (39 loc) · 1.38 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
<?php if (!$page): ?>
<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php endif; ?>
<?php if ($user_picture || $display_submitted || !$page): ?>
<?php if (!$page): ?>
<header>
<?php endif; ?>
<?php print $user_picture; ?>
<?php print render($title_prefix); ?>
<?php if (!$page): ?>
<h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
<?php endif; ?>
<?php print render($title_suffix); ?>
<?php if ($display_submitted): ?>
<span class="submitted"><?php print $submitted; ?></span>
<?php endif; ?>
<?php if (!$page): ?>
</header>
<?php endif; ?>
<?php endif; ?>
<div class="content"<?php print $content_attributes; ?>>
<?php
// Hide comments, tags, and links now so that we can render them later.
hide($content['comments']);
hide($content['links']);
hide($content['field_tags']);
print render($content);
?>
</div>
<?php if (!empty($content['field_tags']) || !empty($content['links'])): ?>
<footer>
<?php print render($content['field_tags']); ?>
<?php print render($content['links']); ?>
</footer>
<?php endif; ?>
<?php print render($content['comments']); ?>
<?php if (!$page): ?>
</article> <!-- /.node -->
<?php endif; ?>