diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-05-05 06:41:22 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2010-05-05 06:41:22 +0000 |
commit | adc9bc1845b8400f45dc790c6376531830782917 (patch) | |
tree | f3614666f2b20e792b53c152a2aaade3cdb81e98 /modules/comment/comment-wrapper.tpl.php | |
parent | 0cec14ff387be3bc021f300b95c265107dcaa390 (diff) | |
download | brdo-adc9bc1845b8400f45dc790c6376531830782917.tar.gz brdo-adc9bc1845b8400f45dc790c6376531830782917.tar.bz2 |
#674546 by moonray, Jacine: Fixed comment_wrapper() hook missing title_prefix/suffix..
Diffstat (limited to 'modules/comment/comment-wrapper.tpl.php')
-rw-r--r-- | modules/comment/comment-wrapper.tpl.php | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/modules/comment/comment-wrapper.tpl.php b/modules/comment/comment-wrapper.tpl.php index 16b3b4b2e..e6ac95e23 100644 --- a/modules/comment/comment-wrapper.tpl.php +++ b/modules/comment/comment-wrapper.tpl.php @@ -3,7 +3,7 @@ /** * @file - * Default theme implementation to wrap comments. + * Default theme implementation to provide an HTML container for comments. * * Available variables: * - $content: The array of content-related elements for the node. Use @@ -13,6 +13,12 @@ * CSS. It can be manipulated through the variable $classes_array from * preprocess functions. The default value has the following: * - comment-wrapper: The current template type, i.e., "theming hook". + * - $title_prefix (array): An array containing additional output populated by + * modules, intended to be displayed in front of the main title tag that + * appears in the template. + * - $title_suffix (array): An array containing additional output populated by + * modules, intended to be displayed after the main title tag that appears in + * the template. * * The following variables are provided for contextual information. * - $node: Node object the comments are attached to. @@ -32,7 +38,9 @@ ?> <div id="comments" class="<?php print $classes; ?>"<?php print $attributes; ?>> <?php if ($content['comments'] && $node->type != 'forum'): ?> + <?php print render($title_prefix); ?> <h2 class="title"><?php print t('Comments'); ?></h2> + <?php print render($title_suffix); ?> <?php endif; ?> <?php print render($content['comments']); ?> |