diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2011-09-23 13:44:35 -0300 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2011-09-23 13:44:35 -0300 |
commit | 45748d73b5e784ad3e79350564eb68dcac71aa45 (patch) | |
tree | edafc25882f15975ee4e6b3717ca70dcee50f398 /templates/node.tpl.php | |
download | muambeiro-45748d73b5e784ad3e79350564eb68dcac71aa45.tar.gz muambeiro-45748d73b5e784ad3e79350564eb68dcac71aa45.tar.bz2 |
Initial import
Diffstat (limited to 'templates/node.tpl.php')
-rw-r--r-- | templates/node.tpl.php | 44 |
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 |