auth
5 months ago
block-notices
7 months ago
brands
1 year ago
cart
2 months ago
checkout
1 year ago
emails
1 month ago
global
4 months ago
loop
2 months ago
myaccount
4 months ago
notices
7 months ago
order
1 month ago
parts
1 month ago
product-form
2 years ago
single-product
1 month ago
templates
2 months ago
archive-product.php
2 years ago
content-product-cat.php
2 years ago
content-product.php
1 year ago
content-single-product.php
2 years ago
content-widget-price-filter.php
2 years ago
content-widget-product.php
2 years ago
content-widget-reviews.php
2 years ago
dashboard-widget-reviews.php
5 months ago
product-searchform.php
2 years ago
single-product-reviews.php
1 year ago
single-product.php
2 years ago
taxonomy-product-attribute.php
2 years ago
taxonomy-product-cat.php
2 years ago
taxonomy-product-tag.php
2 years ago
dashboard-widget-reviews.php
52 lines
| 1 | <?php |
| 2 | /** |
| 3 | * This template displays the recent product review widget on the WordPress dashboard. |
| 4 | * |
| 5 | * This template can be overridden by copying it to yourtheme/woocommerce/dashboard-widget-reviews.php |
| 6 | * |
| 7 | * HOWEVER, on occasion WooCommerce will need to update template files and you |
| 8 | * (the theme developer) will need to copy the new files to your theme to |
| 9 | * maintain compatibility. We try to do this as little as possible, but it does |
| 10 | * happen. When this occurs the version of the template file will be bumped and |
| 11 | * the readme will list any important changes. |
| 12 | * |
| 13 | * @see https://woocommerce.com/document/template-structure/ |
| 14 | * @package WooCommerce\Templates |
| 15 | * @version 10.5.0 |
| 16 | */ |
| 17 | |
| 18 | defined( 'ABSPATH' ) || exit; |
| 19 | |
| 20 | /** |
| 21 | * For this template, the following variables are available |
| 22 | * |
| 23 | * @var $product \WC_Product |
| 24 | * @var $comment \WP_Comment |
| 25 | */ |
| 26 | |
| 27 | ?> |
| 28 | |
| 29 | <li> |
| 30 | <?php |
| 31 | // phpcs:disable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 32 | ?> |
| 33 | |
| 34 | <?php echo get_avatar( $comment->comment_author_email, '32' ); ?> |
| 35 | |
| 36 | <?php echo wc_get_rating_html( (int) get_comment_meta( $comment->comment_ID, 'rating', true ) ); ?> |
| 37 | |
| 38 | <h4 class="meta"> |
| 39 | <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>"><?php echo wp_kses_post( $product->get_name() ); ?></a> |
| 40 | <?php |
| 41 | /* translators: %s: review author */ |
| 42 | printf( esc_html__( 'reviewed by %s', 'woocommerce' ), esc_html( get_comment_author( $comment->comment_ID ) ) ); |
| 43 | ?> |
| 44 | </h4> |
| 45 | |
| 46 | <blockquote><?php echo wp_kses_data( $comment->comment_content ); ?></blockquote> |
| 47 | |
| 48 | <?php |
| 49 | // phpcs:enable WordPress.Security.EscapeOutput.OutputNotEscaped |
| 50 | ?> |
| 51 | </li> |
| 52 |