annotate node.tpl.php @ 2:3d467de87492 default tip

remove some first-child rules for headers in lists.
author root@drupal-mpiwg.rz-berlin.mpg.de
date Fri, 20 Jun 2014 12:12:17 +0200
parents 65b7937bab7b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
65b7937bab7b intertial
dwinter
parents:
diff changeset
1 <?php
65b7937bab7b intertial
dwinter
parents:
diff changeset
2 ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
3 <div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
65b7937bab7b intertial
dwinter
parents:
diff changeset
4 <?php print $user_picture; ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
5 <?php print render($title_prefix); ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
6 <?php if (!$page): ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
7 <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
65b7937bab7b intertial
dwinter
parents:
diff changeset
8 <?php endif; ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
9 <?php print render($title_suffix); ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
10 <?php if ($display_submitted): ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
11 <span class="submitted"><?php print $submitted ?></span>
65b7937bab7b intertial
dwinter
parents:
diff changeset
12 <?php endif; ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
13
65b7937bab7b intertial
dwinter
parents:
diff changeset
14
65b7937bab7b intertial
dwinter
parents:
diff changeset
15 <?php if($node->type != 'blog'):?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
16 <?php //want node references already at the beginning
65b7937bab7b intertial
dwinter
parents:
diff changeset
17 if (!empty($content['links']['nodereference_url'])): ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
18 <div class="clearfix nodereference-top">
65b7937bab7b intertial
dwinter
parents:
diff changeset
19 <div class="links"><?php print render($content['links']['nodereference_url']); ?></div>
65b7937bab7b intertial
dwinter
parents:
diff changeset
20 </div>
65b7937bab7b intertial
dwinter
parents:
diff changeset
21 <?php endif; ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
22 <?php endif;?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
23
65b7937bab7b intertial
dwinter
parents:
diff changeset
24 <div class="content clearfix"<?php print $content_attributes; ?>>
65b7937bab7b intertial
dwinter
parents:
diff changeset
25 <?php
65b7937bab7b intertial
dwinter
parents:
diff changeset
26 // We hide the comments and links now so that we can render them later.
65b7937bab7b intertial
dwinter
parents:
diff changeset
27 hide($content['comments']);
65b7937bab7b intertial
dwinter
parents:
diff changeset
28 hide($content['links']);
65b7937bab7b intertial
dwinter
parents:
diff changeset
29 print render($content);
65b7937bab7b intertial
dwinter
parents:
diff changeset
30 ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
31 </div>
65b7937bab7b intertial
dwinter
parents:
diff changeset
32
65b7937bab7b intertial
dwinter
parents:
diff changeset
33 <div class="clearfix">
65b7937bab7b intertial
dwinter
parents:
diff changeset
34 <?php if (!empty($content['links'])): ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
35 <div class="links"><?php print render($content['links']); ?></div>
65b7937bab7b intertial
dwinter
parents:
diff changeset
36 <?php endif; ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
37
65b7937bab7b intertial
dwinter
parents:
diff changeset
38 <?php print render($content['comments']); ?>
65b7937bab7b intertial
dwinter
parents:
diff changeset
39 </div>
65b7937bab7b intertial
dwinter
parents:
diff changeset
40
65b7937bab7b intertial
dwinter
parents:
diff changeset
41
65b7937bab7b intertial
dwinter
parents:
diff changeset
42
65b7937bab7b intertial
dwinter
parents:
diff changeset
43 </div>