/var/www/html_uk/wp-content/plugins/automatewoo/templates/email/review-rows.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
// phpcs:ignoreFile

namespace AutomateWoo;

/**
 * Product display template: Review Product Rows
 *
 * Override this template by copying it to yourtheme/automatewoo/email/review-rows.php
 *
 * @see https://automatewoo.com/docs/email/product-display-templates/
 * @since 3.7
 *
 * @var \WC_Product[] $products
 * @var Workflow $workflow
 * @var string $variable_name
 * @var string $data_type
 * @var string $data_field
 */

if ( ! defined'ABSPATH' ) ) exit;

$products aw_get_reviewable_products$products );

?>

<?php if ( is_array$products ) ): ?>

    <table cellspacing="0" cellpadding="0" style="width: 100%;" class="aw-product-rows"><tbody>

        <?php foreach ( $products as $product ): ?>
            <tr>

                <td class="image" width="25%"><?php echo \AW_Mailer_API::get_product_image$product ?></td>

                <td>
                    <h3><?php echo esc_html$product->get_name() ); ?></h3>
                </td>

                <td align="right" class="last" width="35%">
                    <a href="<?php echo esc_url$product->get_permalink() ); ?>" class="automatewoo-button automatewoo-button--small"><?php esc_html_e'Leave a review''automatewoo' ); ?></a>
                </td>

            </tr>
        <?php endforeach; ?>

    </tbody></table>

<?php endif; ?>