Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I found that cd-comment.tpl.php does not put a class for the build mode. This will make it hard to do custom css.
What about
<?php
$class = 'clear-block comment cd-build_mode-'. $comment->build_mode;
if (isset($comment->status) && $comment->status == COMMENT_NOT_PUBLISHED) {
$class .= ' comment-unpublished';
}
if ($new != '') {
$class .= ' new';
}
?>
<div class="<?php print $class; ?>">
<div class="content"><?php print $content; ?></div></div>
It would be great if we can agree on a reasonable logic quickly, so I don't have to theme override.
The class stuff could be in a preprocess function, instead of in the template itself.
Comments
Comment #1
swentel CreditAttribution: swentel commentedHrm I added one in the new release, but I looking at it now, it seems I should make it a bit better I guess since it does 'buildmode-$buildmode;
see http://drupalcode.org/viewvc/drupal/contributions/modules/cd/templates/c...
I'll mode this as fast as I can into the preprocess function.
Comment #2
swentel CreditAttribution: swentel commentedCommitted to D6 branch, thanks for the suggestion.