Açıklama Yok

review.php 1.8KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  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.woocommerce.com/document/template-structure/
  16. * @package WooCommerce\Templates
  17. * @version 2.6.0
  18. */
  19. if ( ! defined( 'ABSPATH' ) ) {
  20. exit; // Exit if accessed directly
  21. }
  22. ?>
  23. <li <?php comment_class(); ?> id="li-comment-<?php comment_ID(); ?>">
  24. <div id="comment-<?php comment_ID(); ?>" class="comment_container">
  25. <?php
  26. /**
  27. * The woocommerce_review_before hook
  28. *
  29. * @hooked woocommerce_review_display_gravatar - 10
  30. */
  31. do_action( 'woocommerce_review_before', $comment );
  32. ?>
  33. <div class="comment-text">
  34. <?php
  35. /**
  36. * The woocommerce_review_before_comment_meta hook.
  37. *
  38. * @hooked woocommerce_review_display_rating - 10
  39. */
  40. do_action( 'woocommerce_review_before_comment_meta', $comment );
  41. /**
  42. * The woocommerce_review_meta hook.
  43. *
  44. * @hooked woocommerce_review_display_meta - 10
  45. */
  46. do_action( 'woocommerce_review_meta', $comment );
  47. do_action( 'woocommerce_review_before_comment_text', $comment );
  48. /**
  49. * The woocommerce_review_comment_text hook
  50. *
  51. * @hooked woocommerce_review_display_comment_text - 10
  52. */
  53. do_action( 'woocommerce_review_comment_text', $comment );
  54. do_action( 'woocommerce_review_after_comment_text', $comment );
  55. ?>
  56. </div>
  57. </div>