aboutsummaryrefslogtreecommitdiff
path: root/templates/node.tpl.php
diff options
context:
space:
mode:
Diffstat (limited to 'templates/node.tpl.php')
-rw-r--r--templates/node.tpl.php44
1 files changed, 44 insertions, 0 deletions
diff --git a/templates/node.tpl.php b/templates/node.tpl.php
new file mode 100644
index 0000000..64fca2a
--- /dev/null
+++ b/templates/node.tpl.php
@@ -0,0 +1,44 @@
+<?php
+// $Id$
+/**
+ * @file
+ * Output for nodes.
+ */
+
+hide($content['comments']);
+hide($content['links']);
+?>
+<article id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
+ <?php print render($title_prefix); ?>
+ <?php if(!empty($user_picture) || !$page || (!empty($submitted) && $display_submitted)): ?>
+ <header class="clearfix<?php $user_picture ? print ' with-picture' : ''; ?>">
+ <?php print $user_picture; ?>
+ <?php if (!$page): ?>
+ <h2<?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?></a></h2>
+ <?php endif; ?>
+ <?php if ($display_submitted): ?>
+ <span class="meta" role="contentinfo"><?php print $submitted; ?></span>
+ <?php endif; ?>
+ <?php if (!empty($content['field_tags'])): ?>
+ <?php print render($content['field_tags']); ?>
+ <?php endif; ?>
+ </header>
+ <?php endif; ?>
+ <?php print render($title_suffix); ?>
+ <div class="content clearfix">
+ <?php print render($content); ?>
+ </div>
+ <?php if (!empty($content['links'])): ?>
+ <footer>
+ <nav class="links">
+ <?php print render($content['links']); ?>
+ </nav>
+ </footer>
+ <?php endif; ?>
+</article>
+
+<?php if ($content['comments'] && $page): ?>
+<section class="comments">
+ <?php print render($content['comments']); ?>
+</section>
+<?php endif; ?> \ No newline at end of file