summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorAngie Byron <webchick@24967.no-reply.drupal.org>2009-06-18 21:19:02 +0000
committerAngie Byron <webchick@24967.no-reply.drupal.org>2009-06-18 21:19:02 +0000
commit4d202669af4d2cc64244d70fe064aef6c50c1b23 (patch)
tree4918e7f5c8c3c1ee8246131ae9eb413ab33d7aef /themes
parent19d10a4e908810a53db4a08ed386c4cf1be935f1 (diff)
downloadbrdo-4d202669af4d2cc64244d70fe064aef6c50c1b23.tar.gz
brdo-4d202669af4d2cc64244d70fe064aef6c50c1b23.tar.bz2
#455844 by yched, JohnAlbin, moshe weitzman, Frando, et al: Allow more granular theming of drupal_render()ed elements.
Diffstat (limited to 'themes')
-rw-r--r--themes/garland/node.tpl.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/themes/garland/node.tpl.php b/themes/garland/node.tpl.php
index 919f9a5d1..6af899bc1 100644
--- a/themes/garland/node.tpl.php
+++ b/themes/garland/node.tpl.php
@@ -4,7 +4,6 @@
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes ?>">
<?php print $picture ?>
-
<?php if ($page == 0): ?>
<h2><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>
<?php endif; ?>
@@ -14,21 +13,21 @@
<?php endif; ?>
<div class="content clearfix">
- <?php print $content ?>
+ <?php hide($content['links']); hide($content['comments']); render($content); ?>
</div>
<div class="clearfix">
<div class="meta">
- <?php if ($terms): ?>
- <div class="terms"><?php print $terms ?></div>
+ <?php if (!empty($content['links']['terms'])): ?>
+ <div class="terms"><?php render($content['links']['terms']) ?></div>
<?php endif;?>
</div>
- <?php if ($links): ?>
- <div class="links"><?php print $links; ?></div>
+ <?php if (!empty($content['links'])): ?>
+ <div class="links"><?php render($content['links']) ?></div>
<?php endif; ?>
- <?php print $comments; ?>
+ <?php render($content['comments']); ?>
</div>