diff node.tpl.php @ 0:65b7937bab7b

intertial
author dwinter
date Fri, 20 Jun 2014 09:39:25 +0200
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/node.tpl.php	Fri Jun 20 09:39:25 2014 +0200
@@ -0,0 +1,43 @@
+<?php
+?>
+<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?>"<?php print $attributes; ?>>
+  <?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($node->type != 'blog'):?>
+    <?php //want node references already at the beginning
+    if (!empty($content['links']['nodereference_url'])): ?>
+    <div class="clearfix nodereference-top">
+      <div class="links"><?php print render($content['links']['nodereference_url']); ?></div>
+    </div>
+   <?php endif; ?>
+<?php endif;?>
+
+  <div class="content clearfix"<?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']);
+      print render($content);
+    ?>
+  </div>
+
+  <div class="clearfix">
+    <?php if (!empty($content['links'])): ?>
+      <div class="links"><?php print render($content['links']); ?></div>
+    <?php endif; ?>
+
+    <?php print render($content['comments']); ?>
+  </div>
+
+
+
+</div>