-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathnode.tpl.php
39 lines (33 loc) · 1.28 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
<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php if ($title_prefix || $title_suffix || $display_submitted || !$page): ?>
<header>
<?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): ?>
<div class="submitted">
<?php print $user_picture; ?>
<span class="glyphicon glyphicon-calendar"></span> <?php print $submitted; ?>
</div>
<?php endif; ?>
</header>
<?php endif; ?>
<div class="content"<?php print $content_attributes; ?>>
<?php
// We hide the comments 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 (($tags = render($content['field_tags'])) || ($links = render($content['links']))): ?>
<footer>
<?php print render($content['field_tags']); ?>
<?php print render($content['links']); ?>
</footer>
<?php endif; ?>
<?php print render($content['comments']); ?>
</article>