blob: b96ee146f06a819f88adc28a04b7a6bb5e78ec17 (
plain)
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
|
<?php
/**
* @file
* Returns the HTML for a node.
*
* Complete documentation for this file is available online.
* @see https://drupal.org/node/1728164
*/
?>
<article class="node-<?php print $node->nid; ?> <?php print $classes; ?> clearfix"<?php print $attributes; ?>>
<?php if ($title_prefix || $title_suffix || $display_submitted || $unpublished || !$page && $title): ?>
<header>
<?php print render($title_prefix); ?>
<?php if (!$page && $title): ?>
<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): ?>
<p class="submitted">
<?php print $user_picture; ?>
<?php print $submitted; ?>
</p>
<?php endif; ?>
<?php if ($unpublished): ?>
<mark class="unpublished"><?php print t('Unpublished'); ?></mark>
<?php endif; ?>
</header>
<?php endif; ?>
<?php
// We hide the comments and links now so that we can render them later.
hide($content['comments']);
hide($content['links']);
print render($content);
?>
<?php print render($content['links']); ?>
<?php print render($content['comments']); ?>
</article>
|