Diff: STRATO-apps/wordpress_03/app/wp-content/themes/blocksy/woocommerce/content-widget-reviews.php

Keine Baseline-Datei – Diff nur gegen leer.
Zur Liste
1 -
1 + <?php
2 + /**
3 + * The template for displaying product widget entries.
4 + *
5 + * This template can be overridden by copying it to yourtheme/woocommerce/content-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://docs.woocommerce.com/document/template-structure/
14 + * @package WooCommerce/Templates
15 + * @version 3.4.0
16 + */
17 +
18 + defined( 'ABSPATH' ) || exit;
19 +
20 + ?>
21 + <li>
22 + <?php do_action( 'woocommerce_widget_product_review_item_start', $args ); ?>
23 +
24 + <?php
25 +
26 + echo blocksy_media([
27 + 'attachment_id' => $product->get_image_id(),
28 + 'size' => 'woocommerce_gallery_thumbnail',
29 + 'ratio' => '1/1',
30 + 'tag_name' => 'a',
31 + 'post_id' => $product->get_id(),
32 + 'html_atts' => [
33 + 'href' => esc_url( get_comment_link( $comment->comment_ID ) )
34 + ],
35 + 'no_image_type' => 'woo'
36 + ]);
37 +
38 + ?>
39 +
40 + <div class="product-data">
41 + <a href="<?php echo esc_url( get_comment_link( $comment->comment_ID ) ); ?>" class="product-title">
42 + <?php echo $product->get_name(); ?>
43 + </a>
44 +
45 + <?php echo wc_get_rating_html( intval( get_comment_meta( $comment->comment_ID, 'rating', true ) ) );?>
46 +
47 + <span class="reviewer">
48 + <?php echo blocksy_safe_sprintf( esc_html__( 'by %s', 'blocksy' ), get_comment_author( $comment->comment_ID ) ); ?>
49 + </span>
50 + </div>
51 +
52 + <?php do_action( 'woocommerce_widget_product_review_item_end', $args ); ?>
53 + </li>
54 +
55 +