comment-wrapper.tpl.php

  1. 7.x drupal-7.x/modules/comment/comment-wrapper.tpl.php
  2. 7.x drupal-7.x/themes/bartik/templates/comment-wrapper.tpl.php
  3. 6.x drupal-6.x/modules/comment/comment-wrapper.tpl.php

comment-wrapper.tpl.php Default theme implementation to wrap comments.

Available variables:

  • $content: All comments for a given page. Also contains sorting controls and comment forms if the site is configured for it.

The following variables are provided for contextual information.

  • $node: Node object the comments are attached to.

The constants below the variables show the possible values and should be used for comparison.

See also

template_preprocess_comment_wrapper()

1 theme call to comment-wrapper.tpl.php
comment_render in drupal-6.x/modules/comment/comment.module
Renders comment(s).

File

drupal-6.x/modules/comment/comment-wrapper.tpl.php
View source
  1. <?php
  2. /**
  3. * @file comment-wrapper.tpl.php
  4. * Default theme implementation to wrap comments.
  5. *
  6. * Available variables:
  7. * - $content: All comments for a given page. Also contains sorting controls
  8. * and comment forms if the site is configured for it.
  9. *
  10. * The following variables are provided for contextual information.
  11. * - $node: Node object the comments are attached to.
  12. * The constants below the variables show the possible values and should be
  13. * used for comparison.
  14. * - $display_mode
  15. * - COMMENT_MODE_FLAT_COLLAPSED
  16. * - COMMENT_MODE_FLAT_EXPANDED
  17. * - COMMENT_MODE_THREADED_COLLAPSED
  18. * - COMMENT_MODE_THREADED_EXPANDED
  19. * - $display_order
  20. * - COMMENT_ORDER_NEWEST_FIRST
  21. * - COMMENT_ORDER_OLDEST_FIRST
  22. * - $comment_controls_state
  23. * - COMMENT_CONTROLS_ABOVE
  24. * - COMMENT_CONTROLS_BELOW
  25. * - COMMENT_CONTROLS_ABOVE_BELOW
  26. * - COMMENT_CONTROLS_HIDDEN
  27. *
  28. * @see template_preprocess_comment_wrapper()
  29. */
  30. ?>
  31. <div id="comments">
  32. <?php print $content; ?>
  33. </div>