summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2009-07-28 10:09:25 +0000
committerDries Buytaert <dries@buytaert.net>2009-07-28 10:09:25 +0000
commit51e638912257eb25fa3ada96777b14573e7d28b5 (patch)
treea042a1ea0909f01e9f7d225e6183cefa615e2719 /themes
parent0ae1c4d9b77ef68a1c3f81ee32f01464a37df3e9 (diff)
downloadbrdo-51e638912257eb25fa3ada96777b14573e7d28b5.tar.gz
brdo-51e638912257eb25fa3ada96777b14573e7d28b5.tar.bz2
- Patch #523950 by moshe weitzman, yched, catch: update comment rendering to take full advantage of the drupal_render() paradigm.
Diffstat (limited to 'themes')
-rw-r--r--themes/garland/comment.tpl.php8
-rw-r--r--themes/garland/template.php12
2 files changed, 3 insertions, 17 deletions
diff --git a/themes/garland/comment.tpl.php b/themes/garland/comment.tpl.php
index e2edf0dc0..c9daefc00 100644
--- a/themes/garland/comment.tpl.php
+++ b/themes/garland/comment.tpl.php
@@ -8,7 +8,7 @@
<span class="submitted"><?php print $submitted; ?></span>
<?php endif; ?>
- <?php if ($comment->new) : ?>
+ <?php if ($new) : ?>
<span class="new"><?php print drupal_ucfirst($new) ?></span>
<?php endif; ?>
@@ -17,7 +17,7 @@
<h3><?php print $title ?></h3>
<div class="content">
- <?php print $content ?>
+ <?php hide($content['links']); print render($content); ?>
<?php if ($signature): ?>
<div class="clearfix">
<div>—</div>
@@ -27,7 +27,5 @@
</div>
</div>
- <?php if ($links): ?>
- <div class="links"><?php print $links ?></div>
- <?php endif; ?>
+ <?php print render($content['links']) ?>
</div>
diff --git a/themes/garland/template.php b/themes/garland/template.php
index 24d1e64e3..e1be8efc0 100644
--- a/themes/garland/template.php
+++ b/themes/garland/template.php
@@ -15,18 +15,6 @@ function garland_breadcrumb($breadcrumb) {
}
/**
- * Allow themable wrapping of all comments.
- */
-function garland_comment_wrapper($content, $node) {
- if (!$content || $node->type == 'forum') {
- return '<div id="comments">' . $content . '</div>';
- }
- else {
- return '<div id="comments"><h2 class="comments">' . t('Comments') . '</h2>' . $content . '</div>';
- }
-}
-
-/**
* Override or insert variables into the page template.
*/
function garland_preprocess_page(&$vars) {