comment.tpl.php

  1. cis7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/comment.tpl.php
  2. cis7 modules/comment/comment.tpl.php
  3. cis7 sites/all/themes/ulmus/aurora/templates/comment/comment.tpl.php
  4. cis7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/comment.tpl.php
  5. cis7 sites/all/themes/ulmus/omega/omega/templates/comment.tpl.php
  6. cis7 sites/all/themes/ulmus/fontfolio/templates/comment.tpl.php
  7. cis7 sites/all/themes/ulmus/respond/templates/comment.tpl.php
  8. cis7 sites/all/themes/ulmus/corolla/templates/comment.tpl.php
  9. cis7 sites/all/themes/ulmus/skeletontheme/templates/comment.tpl.php
  10. cis7 themes/bartik/templates/comment.tpl.php
  11. cis7 themes/garland/comment.tpl.php
  12. cle7 modules/comment/comment.tpl.php
  13. cle7 themes/bartik/templates/comment.tpl.php
  14. cle7 sites/all/themes/local_contrib/bootstrap/templates/comment.tpl.php
  15. cle7 sites/all/themes/ulmus/skeletontheme/templates/comment.tpl.php
  16. cle7 sites/all/themes/ulmus/corolla/templates/comment.tpl.php
  17. cle7 sites/all/themes/ulmus/fontfolio/templates/comment.tpl.php
  18. cle7 sites/all/themes/ulmus/omega/omega/templates/comment.tpl.php
  19. cle7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/comment.tpl.php
  20. cle7 sites/all/themes/ulmus/aurora/templates/comment/comment.tpl.php
  21. cle7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/comment.tpl.php
  22. cle7 profiles/cle/themes/cle_foundation_access/templates/system/comment.tpl.php
  23. cle7 sites/all/themes/ulmus/respond/templates/comment.tpl.php
  24. cle7 themes/garland/comment.tpl.php
  25. ecd7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/comment.tpl.php
  26. ecd7 themes/bartik/templates/comment.tpl.php
  27. ecd7 sites/all/themes/ulmus/skeletontheme/templates/comment.tpl.php
  28. ecd7 sites/all/themes/ulmus/corolla/templates/comment.tpl.php
  29. ecd7 sites/all/themes/ulmus/respond/templates/comment.tpl.php
  30. ecd7 sites/all/themes/ulmus/fontfolio/templates/comment.tpl.php
  31. ecd7 modules/comment/comment.tpl.php
  32. ecd7 sites/all/themes/ulmus/omega/omega/templates/comment.tpl.php
  33. ecd7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/comment.tpl.php
  34. ecd7 sites/all/themes/ulmus/aurora/templates/comment/comment.tpl.php
  35. ecd7 themes/garland/comment.tpl.php
  36. elmsmedia7 sites/all/themes/ulmus/fontfolio/templates/comment.tpl.php
  37. elmsmedia7 sites/all/themes/ulmus/omega/omega/templates/comment.tpl.php
  38. elmsmedia7 sites/all/themes/ulmus/aurora/templates/comment/comment.tpl.php
  39. elmsmedia7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/comment.tpl.php
  40. elmsmedia7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/comment.tpl.php
  41. elmsmedia7 themes/garland/comment.tpl.php
  42. elmsmedia7 sites/all/themes/ulmus/corolla/templates/comment.tpl.php
  43. elmsmedia7 sites/all/themes/ulmus/skeletontheme/templates/comment.tpl.php
  44. elmsmedia7 sites/all/themes/ulmus/respond/templates/comment.tpl.php
  45. elmsmedia7 themes/bartik/templates/comment.tpl.php
  46. elmsmedia7 modules/comment/comment.tpl.php
  47. harmony7 sites/all/themes/ulmus/fontfolio/templates/comment.tpl.php
  48. harmony7 themes/garland/comment.tpl.php
  49. harmony7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/comment.tpl.php
  50. harmony7 modules/comment/comment.tpl.php
  51. harmony7 themes/bartik/templates/comment.tpl.php
  52. harmony7 sites/all/themes/ulmus/omega/omega/templates/comment.tpl.php
  53. harmony7 sites/all/themes/ulmus/skeletontheme/templates/comment.tpl.php
  54. harmony7 sites/all/themes/ulmus/corolla/templates/comment.tpl.php
  55. harmony7 sites/all/themes/ulmus/respond/templates/comment.tpl.php
  56. harmony7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/comment.tpl.php
  57. harmony7 sites/all/themes/ulmus/aurora/templates/comment/comment.tpl.php
  58. icor7 themes/garland/comment.tpl.php
  59. icor7 sites/all/themes/ulmus/fontfolio/templates/comment.tpl.php
  60. icor7 themes/bartik/templates/comment.tpl.php
  61. icor7 sites/all/themes/ulmus/corolla/templates/comment.tpl.php
  62. icor7 sites/all/themes/ulmus/respond/templates/comment.tpl.php
  63. icor7 modules/comment/comment.tpl.php
  64. icor7 sites/all/themes/ulmus/omega/omega/templates/comment.tpl.php
  65. icor7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/comment.tpl.php
  66. icor7 sites/all/themes/ulmus/aurora/templates/comment/comment.tpl.php
  67. icor7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/comment.tpl.php
  68. icor7 sites/all/themes/ulmus/skeletontheme/templates/comment.tpl.php
  69. meedjum_blog7 sites/all/themes/ulmus/aurora/templates/comment/comment.tpl.php
  70. meedjum_blog7 modules/comment/comment.tpl.php
  71. meedjum_blog7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/comment.tpl.php
  72. meedjum_blog7 sites/all/themes/ulmus/omega/omega/templates/comment.tpl.php
  73. meedjum_blog7 sites/all/themes/ulmus/fontfolio/templates/comment.tpl.php
  74. meedjum_blog7 sites/all/themes/ulmus/respond/templates/comment.tpl.php
  75. meedjum_blog7 sites/all/themes/ulmus/corolla/templates/comment.tpl.php
  76. meedjum_blog7 sites/all/themes/ulmus/skeletontheme/templates/comment.tpl.php
  77. meedjum_blog7 themes/bartik/templates/comment.tpl.php
  78. meedjum_blog7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/comment.tpl.php
  79. meedjum_blog7 themes/garland/comment.tpl.php
  80. meedjum_blog7 sites/all/themes/local_contrib/meedjum/templates/comment.tpl.php
  81. mooc7 sites/all/themes/ulmus/skeletontheme/templates/comment.tpl.php
  82. mooc7 themes/garland/comment.tpl.php
  83. mooc7 modules/comment/comment.tpl.php
  84. mooc7 sites/all/themes/ulmus/omega/starterkits/omega-xhtml/templates/comment.tpl.php
  85. mooc7 sites/all/themes/ulmus/aurora/templates/comment/comment.tpl.php
  86. mooc7 sites/all/themes/ulmus/adaptivetheme/at_core/templates/comment.tpl.php
  87. mooc7 sites/all/themes/ulmus/omega/omega/templates/comment.tpl.php
  88. mooc7 sites/all/themes/ulmus/fontfolio/templates/comment.tpl.php
  89. mooc7 sites/all/themes/ulmus/respond/templates/comment.tpl.php
  90. mooc7 sites/all/themes/ulmus/corolla/templates/comment.tpl.php
  91. mooc7 themes/bartik/templates/comment.tpl.php

Bartik's theme implementation for comments.

Available variables:

  • $author: Comment author. Can be link or plain text.
  • $content: An array of comment items. Use render($content) to print them all, or print a subset such as render($content['field_example']). Use hide($content['field_example']) to temporarily suppress the printing of a given element.
  • $created: Formatted date and time for when the comment was created. Preprocess functions can reformat it by calling format_date() with the desired parameters on the $comment->created variable.
  • $changed: Formatted date and time for when the comment was last changed. Preprocess functions can reformat it by calling format_date() with the desired parameters on the $comment->changed variable.
  • $new: New comment marker.
  • $permalink: Comment permalink.
  • $submitted: Submission information created from $author and $created during template_preprocess_comment().
  • $picture: Authors picture.
  • $signature: Authors signature.
  • $status: Comment status. Possible values are: comment-unpublished, comment-published or comment-preview.
  • $title: Linked title.
  • $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 values can be one or more of the following:

    • comment: The current template type, i.e., "theming hook".
    • comment-by-anonymous: Comment by an unregistered user.
    • comment-by-node-author: Comment by the author of the parent node.
    • comment-preview: When previewing a new or edited comment.

    The following applies only to viewers who are registered users:

    • comment-unpublished: An unpublished comment visible only to administrators.
    • comment-by-viewer: Comment by the user currently viewing the page.
    • comment-new: New comment since last the visit.
  • $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.

These two variables are provided for context:

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

Other variables:

  • $classes_array: Array of html class attribute values. It is flattened into a string within the variable $classes.

See also

template_preprocess()

template_preprocess_comment()

template_process()

theme_comment()

1 theme call to comment.tpl.php
aurora_preprocess_comment in sites/all/themes/ulmus/aurora/template.php
Implements the hook_preprocess_comment().
167 string references to the theme hook from comment.tpl.php

Note: this list is generated by looking for the string for this theme hook, so it may include some references that are not actually using this theme hook.

adaptivetheme_preprocess_block in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for block.tpl.php
adaptivetheme_preprocess_comment in sites/all/themes/ulmus/adaptivetheme/at_core/inc/preprocess.inc
Preprocess variables for comment.tpl.php
analytics_dashboard_charts in sites/all/modules/local_contrib/google_chart_tools/analytics_dashboard/analytics_dashboard.charts.inc
aurora_preprocess_comment in sites/all/themes/ulmus/aurora/template.php
Implements the hook_preprocess_comment().
better_formats_defaults_admin_form in sites/all/modules/ulmus/better_formats/better_formats.admin_defaults.inc
Builds the form for the filters admin.

... See full list

File

sites/all/themes/ulmus/skeletontheme/templates/comment.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Bartik's theme implementation for comments.
  5. *
  6. * Available variables:
  7. * - $author: Comment author. Can be link or plain text.
  8. * - $content: An array of comment items. Use render($content) to print them all, or
  9. * print a subset such as render($content['field_example']). Use
  10. * hide($content['field_example']) to temporarily suppress the printing of a
  11. * given element.
  12. * - $created: Formatted date and time for when the comment was created.
  13. * Preprocess functions can reformat it by calling format_date() with the
  14. * desired parameters on the $comment->created variable.
  15. * - $changed: Formatted date and time for when the comment was last changed.
  16. * Preprocess functions can reformat it by calling format_date() with the
  17. * desired parameters on the $comment->changed variable.
  18. * - $new: New comment marker.
  19. * - $permalink: Comment permalink.
  20. * - $submitted: Submission information created from $author and $created during
  21. * template_preprocess_comment().
  22. * - $picture: Authors picture.
  23. * - $signature: Authors signature.
  24. * - $status: Comment status. Possible values are:
  25. * comment-unpublished, comment-published or comment-preview.
  26. * - $title: Linked title.
  27. * - $classes: String of classes that can be used to style contextually through
  28. * CSS. It can be manipulated through the variable $classes_array from
  29. * preprocess functions. The default values can be one or more of the following:
  30. * - comment: The current template type, i.e., "theming hook".
  31. * - comment-by-anonymous: Comment by an unregistered user.
  32. * - comment-by-node-author: Comment by the author of the parent node.
  33. * - comment-preview: When previewing a new or edited comment.
  34. * The following applies only to viewers who are registered users:
  35. * - comment-unpublished: An unpublished comment visible only to administrators.
  36. * - comment-by-viewer: Comment by the user currently viewing the page.
  37. * - comment-new: New comment since last the visit.
  38. * - $title_prefix (array): An array containing additional output populated by
  39. * modules, intended to be displayed in front of the main title tag that
  40. * appears in the template.
  41. * - $title_suffix (array): An array containing additional output populated by
  42. * modules, intended to be displayed after the main title tag that appears in
  43. * the template.
  44. *
  45. * These two variables are provided for context:
  46. * - $comment: Full comment object.
  47. * - $node: Node object the comments are attached to.
  48. *
  49. * Other variables:
  50. * - $classes_array: Array of html class attribute values. It is flattened
  51. * into a string within the variable $classes.
  52. *
  53. * @see template_preprocess()
  54. * @see template_preprocess_comment()
  55. * @see template_process()
  56. * @see theme_comment()
  57. */
  58. ?>
  59. <div class="<?php print $classes; ?> clearfix"<?php print $attributes; ?>>
  60. <div class="attribution">
  61. <?php print $picture; ?>
  62. <div class="submitted">
  63. <p class="commenter-name">
  64. <?php print $author; ?>
  65. </p>
  66. <p class="comment-time">
  67. <?php print $created; ?>
  68. </p>
  69. <p class="comment-permalink">
  70. <?php print $permalink; ?>
  71. </p>
  72. </div>
  73. </div>
  74. <div class="comment-text">
  75. <div class="comment-arrow"></div>
  76. <?php if ($new): ?>
  77. <span class="new"><?php print $new; ?></span>
  78. <?php endif; ?>
  79. <?php print render($title_prefix); ?>
  80. <h3<?php print $title_attributes; ?>><?php print $title; ?></h3>
  81. <?php print render($title_suffix); ?>
  82. <div class="content"<?php print $content_attributes; ?>>
  83. <?php
  84. // We hide the comments and links now so that we can render them later.
  85. hide($content['links']);
  86. print render($content);
  87. ?>
  88. <?php if ($signature): ?>
  89. <div class="user-signature clearfix">
  90. <?php print $signature; ?>
  91. </div>
  92. <?php endif; ?>
  93. </div> <!-- /.content -->
  94. <?php print render($content['links']); ?>
  95. </div> <!-- /.comment-text -->
  96. </div>