Mercurial > hg > mpiwgzen_wide
comparison templates/node.tpl.php @ 0:a3750d724105 default tip
initital
author | Dirk Wintergruen <dwinter@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 02 Jun 2015 09:16:36 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:a3750d724105 |
---|---|
1 <?php | |
2 /** | |
3 * @file | |
4 * Returns the HTML for a node. | |
5 * | |
6 * Complete documentation for this file is available online. | |
7 * @see https://drupal.org/node/1728164 | |
8 */ | |
9 ?> | |
10 <article class="node-<?php print $node->nid; ?> <?php print $classes; ?> clearfix"<?php print $attributes; ?>> | |
11 | |
12 <?php if ($teaser == true): ?> | |
13 <!-- teaser template HTML here --> | |
14 <div class="teasercontent"> | |
15 <?php | |
16 // We hide the comments and links now so that we can render them later. | |
17 hide($content['comments']); | |
18 hide($content['links']); | |
19 print render($content); | |
20 ?> | |
21 </div> | |
22 | |
23 <?php if ($title_prefix || $title_suffix || $display_submitted || $unpublished || !$page && $title): ?> | |
24 <header> | |
25 <?php print render($title_prefix); ?> | |
26 <?php if (!$page && $title): ?> | |
27 <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2> | |
28 <?php endif; ?> | |
29 <?php print render($title_suffix); ?> | |
30 | |
31 <?php if ($display_submitted): ?> | |
32 <p class="submitted"> | |
33 <?php print $user_picture; ?> | |
34 <?php print $submitted; ?> | |
35 </p> | |
36 <?php endif; ?> | |
37 | |
38 <?php if ($unpublished): ?> | |
39 <mark class="unpublished"><?php print t('Unpublished'); ?></mark> | |
40 <?php endif; ?> | |
41 </header> | |
42 <?php endif; ?> | |
43 | |
44 <?php print $newreadmore; ?> | |
45 <?php print render($content['comments']); ?> | |
46 <?php else: ?> | |
47 <!-- regular node view template HTML here --> | |
48 <?php if ($title_prefix || $title_suffix || $display_submitted || $unpublished || !$page && $title): ?> | |
49 <header> | |
50 <?php print render($title_prefix); ?> | |
51 <?php if (!$page && $title): ?> | |
52 <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2> | |
53 <?php endif; ?> | |
54 <?php print render($title_suffix); ?> | |
55 | |
56 <?php if ($display_submitted): ?> | |
57 <p class="submitted"> | |
58 <?php print $user_picture; ?> | |
59 <?php print $submitted; ?> | |
60 </p> | |
61 <?php endif; ?> | |
62 | |
63 <?php if ($unpublished): ?> | |
64 <mark class="unpublished"><?php print t('Unpublished'); ?></mark> | |
65 <?php endif; ?> | |
66 </header> | |
67 <?php endif; ?> | |
68 | |
69 <?php | |
70 // We hide the comments and links now so that we can render them later. | |
71 hide($content['comments']); | |
72 hide($content['links']); | |
73 print render($content); | |
74 ?> | |
75 | |
76 <?php print render($content['links']); ?> | |
77 <!-- <?php if ($teaser == true): ?> | |
78 <?php print $newreadmore; ?> | |
79 <?php endif; ?>--> | |
80 | |
81 <?php print render($content['comments']); ?> | |
82 | |
83 <?php endif; ?> | |
84 </article> |