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-20 19:50:03 +0100
committerCtibor Brančík <ctibor@brancik.cz>2016-03-20 19:50:03 +0100
commit26106a315f04ca082152b474e6604cded843d08b (patch)
treef1c0869e1839e57e3cac9f63c926beafe4c6ce88 /sites/brdo.brontosaurus.cz.mrp/themes/mrp/templates/node.tpl.php
parent07a7c72b4bb6c8d585908b71c63d661880f1f61d (diff)
downloadbrdo-26106a315f04ca082152b474e6604cded843d08b.tar.gz
brdo-26106a315f04ca082152b474e6604cded843d08b.tar.bz2
Added theme for Máme rádi přírodu.
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>