review.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. <?php
  2. /**
  3. * Review Comments Template
  4. *
  5. * Closing li is left out on purpose!.
  6. *
  7. * This template can be overridden by copying it to yourtheme/woocommerce/single-product/review.php.
  8. *
  9. * HOWEVER, on occasion WooCommerce will need to update template files and you
  10. * (the theme developer) will need to copy the new files to your theme to
  11. * maintain compatibility. We try to do this as little as possible, but it does
  12. * happen. When this occurs the version of the template file will be bumped and
  13. * the readme will list any important changes.
  14. *
  15. * @see https://docs.woothemes.com/document/template-structure/
  16. * @author WooThemes
  17. * @package WooCommerce/Templates
  18. * @version 2.6.0
  19. */
  20. if ( ! defined( 'ABSPATH' ) ) {
  21. exit; // Exit if accessed directly
  22. }
  23. ?>
  24. <li itemprop="review" itemscope itemtype="http://schema.org/Review" <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>">
  25. <div id="comment-<?php comment_ID(); ?>" class="comment_container clearfix">
  26. <div class="comment-author">
  27. <?php
  28. /**
  29. * The woocommerce_review_before hook
  30. *
  31. * @hooked woocommerce_review_display_gravatar - 10
  32. */
  33. do_action( 'woocommerce_review_before', $comment );
  34. ?>
  35. <h5 class="comment-author-link" itemprop="author"><?php comment_author() ?></h5>
  36. </div>
  37. <div class="comment-content">
  38. <div class="comment-meta">
  39. <?php
  40. /**
  41. * The woocommerce_review_before_comment_meta hook.
  42. *
  43. * @hooked woocommerce_review_display_rating - 10
  44. */
  45. do_action( 'woocommerce_review_before_comment_meta', $comment );
  46. /**
  47. * The woocommerce_review_meta hook.
  48. *
  49. * @hooked woocommerce_review_display_meta - 10
  50. */
  51. do_action( 'woocommerce_review_meta', $comment );
  52. ?>
  53. </div>
  54. <?php
  55. do_action( 'woocommerce_review_before_comment_text', $comment );
  56. /**
  57. * The woocommerce_review_comment_text hook
  58. *
  59. * @hooked woocommerce_review_display_comment_text - 10
  60. */
  61. do_action( 'woocommerce_review_comment_text', $comment );
  62. do_action( 'woocommerce_review_after_comment_text', $comment );
  63. ?>
  64. </div>
  65. </div>