summaryrefslogtreecommitdiff
path: root/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php
diff options
context:
space:
mode:
authorCtibor Brančík <ctibor@brancik.cz>2016-03-22 23:36:38 +0100
committerCtibor Brančík <ctibor@brancik.cz>2016-03-22 23:36:38 +0100
commitb8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3 (patch)
tree64b5e1367d0d01efb0687ef7c27f27de02f866bb /sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php
parenteb273b377f00fabe7b90791333f8e915a201c69a (diff)
downloadbrdo-b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3.tar.gz
brdo-b8b6fd96e5d1c7e803550dd86d3c4ed577bba9d3.tar.bz2
Add theme for MRP site.
Diffstat (limited to 'sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php')
-rw-r--r--sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php43
1 files changed, 43 insertions, 0 deletions
diff --git a/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php
new file mode 100644
index 000000000..b96ee146f
--- /dev/null
+++ b/sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php
@@ -0,0 +1,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>