views-view-row-comment.tpl.php

  1. 3.x theme/views-view-row-comment.tpl.php
  2. 2.x theme/views-view-row-comment.tpl.php

Default simple view template to display a single comment.

Rather than doing anything with this particular template, it is more efficient to use a variant of the comment.tpl.php based upon the view, which will be named comment-view-VIEWNAME.tpl.php. This isn't actually a views template, which is why it's not used here, but is a template 'suggestion' given to the comment template, and is used exactly the same as any other variant of the comment template file, such as node-nodeTYPE.tpl.php

File

theme/views-view-row-comment.tpl.php
View source
  1. <?php
  2. /**
  3. * @file
  4. * Default simple view template to display a single comment.
  5. *
  6. * Rather than doing anything with this particular template, it is more
  7. * efficient to use a variant of the comment.tpl.php based upon the view,
  8. * which will be named comment-view-VIEWNAME.tpl.php. This isn't actually
  9. * a views template, which is why it's not used here, but is a template
  10. * 'suggestion' given to the comment template, and is used exactly
  11. * the same as any other variant of the comment template file, such as
  12. * node-nodeTYPE.tpl.php
  13. *
  14. * @ingroup views_templates
  15. */
  16. ?>
  17. <?php print $comment; ?>

Related topics