diff options
author | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-05-28 16:44:07 +0000 |
---|---|---|
committer | Angie Byron <webchick@24967.no-reply.drupal.org> | 2009-05-28 16:44:07 +0000 |
commit | 2df43894e2f24cb6a39e6cf11a3b39f3c4b70193 (patch) | |
tree | 7290e373de00adc8796333b848e9cd3ca5d4612b /modules/comment/comment-wrapper.tpl.php | |
parent | cb756bcf08bb5e1288539c06aa16905cda06af9c (diff) | |
download | brdo-2df43894e2f24cb6a39e6cf11a3b39f3c4b70193.tar.gz brdo-2df43894e2f24cb6a39e6cf11a3b39f3c4b70193.tar.bz2 |
#306358 by dvessel, JohnAlbin, and flobruit: Add a single $classes string (and corresponding $classes_array) for all dynamic classes in template files.
Diffstat (limited to 'modules/comment/comment-wrapper.tpl.php')
-rw-r--r-- | modules/comment/comment-wrapper.tpl.php | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/modules/comment/comment-wrapper.tpl.php b/modules/comment/comment-wrapper.tpl.php index 1b19be335..99d4708d2 100644 --- a/modules/comment/comment-wrapper.tpl.php +++ b/modules/comment/comment-wrapper.tpl.php @@ -8,6 +8,10 @@ * Available variables: * - $content: All comments for a given page. Also contains comment form * if enabled. + * - $classes: String of classes that can be used to style contextually through + * 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". * * The following variables are provided for contextual information. * - $node: Node object the comments are attached to. @@ -18,14 +22,15 @@ * - COMMENT_MODE_FLAT_EXPANDED * - COMMENT_MODE_THREADED_COLLAPSED * - COMMENT_MODE_THREADED_EXPANDED - * - $display_order - * - COMMENT_ORDER_NEWEST_FIRST - * - COMMENT_ORDER_OLDEST_FIRST + * + * Other variables: + * - $classes_array: Array of html class attribute values. It is flattened + * into a string within the variable $classes. * * @see template_preprocess_comment_wrapper() * @see theme_comment_wrapper() */ ?> -<div id="comments"> +<div id="comments" class="<?php print $classes; ?>"> <?php print $content; ?> </div> |