summaryrefslogtreecommitdiff
path: root/themes
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2007-07-20 08:51:13 +0000
committerDries Buytaert <dries@buytaert.net>2007-07-20 08:51:13 +0000
commit7d0cf742f7761b9c2a2fe2f22d40f96dd08d95fd (patch)
tree2ea1b24f773022851d99cdc032869cc6e2916ba1 /themes
parent1cd02d7ec1c472344df811bfd0fe09bae3c194fb (diff)
downloadbrdo-7d0cf742f7761b9c2a2fe2f22d40f96dd08d95fd.tar.gz
brdo-7d0cf742f7761b9c2a2fe2f22d40f96dd08d95fd.tar.bz2
- Patch #160589 by dvessel: tpl-ify the comment module's theme functions.
Diffstat (limited to 'themes')
-rw-r--r--themes/garland/comment.tpl.php1
-rw-r--r--themes/garland/node.tpl.php2
-rw-r--r--themes/garland/template.php7
3 files changed, 2 insertions, 8 deletions
diff --git a/themes/garland/comment.tpl.php b/themes/garland/comment.tpl.php
index b6c1af73d..6364021a8 100644
--- a/themes/garland/comment.tpl.php
+++ b/themes/garland/comment.tpl.php
@@ -6,7 +6,6 @@
<?php endif; ?>
<?php if ($comment->new) : ?>
- <a id="new"></a>
<span class="new"><?php print drupal_ucfirst($new) ?></span>
<?php endif; ?>
diff --git a/themes/garland/node.tpl.php b/themes/garland/node.tpl.php
index f0e24936c..8c267d671 100644
--- a/themes/garland/node.tpl.php
+++ b/themes/garland/node.tpl.php
@@ -1,5 +1,3 @@
-<?php phptemplate_comment_wrapper(NULL, $node->type); ?>
-
<div id="node-<?php print $node->nid; ?>" class="node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>">
<?php print $picture ?>
diff --git a/themes/garland/template.php b/themes/garland/template.php
index cf605f5b4..89fd4f13e 100644
--- a/themes/garland/template.php
+++ b/themes/garland/template.php
@@ -40,11 +40,8 @@ function phptemplate_breadcrumb($breadcrumb) {
/**
* Allow themable wrapping of all comments.
*/
-function phptemplate_comment_wrapper($content, $type = null) {
- static $node_type;
- if (isset($type)) $node_type = $type;
-
- if (!$content || $node_type == 'forum') {
+function phptemplate_comment_wrapper($content, $node) {
+ if (!$content || $node->type == 'forum') {
return '<div id="comments">'. $content .'</div>';
}
else {