Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
comment.module
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
27 Apr 2006 at 00:08 UTC
Updated:
11 Jan 2010 at 11:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
Steven commentedI think instead of header and footer we should just have a single theme function which wraps all the comments. Then it can be themed in one place. Good patch though, there is a theming gap here that needs to be filled.
Can you submit a complete, unified diff with fixes?
http://drupal.org/patch
Comment #2
arthurf commentedWoops, sorry about the bad diff. Here's another go.
Comment #3
arthurf commentedOk, based on your comments, I redid the process a bit to wrap the comments in a single template called comment_wrapper. Here's the code for template.php:
and here's a new patch for the comment module. 1 line, hooray!
Comment #4
markus_petrux commentedIt looks like this patch is not taken from latest CVS version?
Comment #5
arthurf commentedWoops, you got me on that. Here's the patch against the HEAD version of the comment.module
Comment #6
chx commentedComment #7
arthurf commentedThis an additional patch that doesn't call the comment_wrapper if there are no comments. I'm not sure if its useful, or if my catch is a good one, given the extra db hit.
Comment #8
pfaocleComment #9
LAsan commentedStill applies to current version?
If not, fell free to close topic.
Comment #10
casey commentedThere is a comment wrapper in D6/D7
http://api.drupal.org/api/function/template_preprocess_comment_wrapper/7