|
22 | 22 | </tr>
|
23 | 23 | </thead>
|
24 | 24 | <tbody>
|
25 |
| - <?php foreach ($block->getReviews() as $_review): ?> |
| 25 | + <?php foreach ($block->getReviews() as $review): ?> |
26 | 26 | <tr>
|
27 |
| - <td data-th="<?= $block->escapeHtml(__('Created')) ?>" class="col date"><?= $block->escapeHtml($block->dateFormat($_review->getReviewCreatedAt())) ?></td> |
| 27 | + <td data-th="<?= $block->escapeHtml(__('Created')) ?>" class="col date"><?= $block->escapeHtml($block->dateFormat($review->getReviewCreatedAt())) ?></td> |
28 | 28 | <td data-th="<?= $block->escapeHtml(__('Product Name')) ?>" class="col item">
|
29 | 29 | <strong class="product-name">
|
30 |
| - <a href="<?= $block->escapeUrl($block->getProductUrl($_review)) ?>"><?= $block->escapeHtml($_review->getName()) ?></a> |
| 30 | + <a href="<?= $block->escapeUrl($block->getProductUrl($review)) ?>"><?= $block->escapeHtml($review->getName()) ?></a> |
31 | 31 | </strong>
|
32 | 32 | </td>
|
33 | 33 | <td data-th="<?= $block->escapeHtml(__('Rating')) ?>" class="col summary">
|
34 |
| - <?php if ($_review->getSum()): ?> |
| 34 | + <?php if ($review->getSum()): ?> |
35 | 35 | <div class="rating-summary">
|
36 | 36 | <span class="label"><span><?= $block->escapeHtml(__('Rating')) ?>:</span></span>
|
37 |
| - <div class="rating-result" title="<?= /* @noEscape */ ((int)$_review->getSum() / (int)$_review->getCount()) ?>%"> |
38 |
| - <span style="width:<?= /* @noEscape */ ((int)$_review->getSum() / (int)$_review->getCount()) ?>%;"><span><?= /* @noEscape */ ((int)$_review->getSum() / (int)$_review->getCount()) ?>%</span></span> |
| 37 | + <div class="rating-result" title="<?= /* @noEscape */ ((int)$review->getSum() / (int)$review->getCount()) ?>%"> |
| 38 | + <span style="width:<?= /* @noEscape */ ((int)$review->getSum() / (int)$review->getCount()) ?>%;"><span><?= /* @noEscape */ ((int)$review->getSum() / (int)$review->getCount()) ?>%</span></span> |
39 | 39 | </div>
|
40 | 40 | </div>
|
41 | 41 | <?php endif; ?>
|
42 | 42 | </td>
|
43 | 43 | <td data-th="<?= $block->escapeHtmlAttr(__('Review')) ?>" class="col description">
|
44 |
| - <?= $this->helper('Magento\Review\Helper\Data')->getDetailHtml($_review->getDetail()) ?> |
| 44 | + <?= $this->helper('Magento\Review\Helper\Data')->getDetailHtml($review->getDetail()) ?> |
45 | 45 | </td>
|
46 | 46 | <td data-th="<?= $block->escapeHtmlAttr(__('Actions')) ?>" class="col actions">
|
47 |
| - <a href="<?= $block->escapeUrl($block->getReviewUrl($_review)) ?>" class="action more"> |
| 47 | + <a href="<?= $block->escapeUrl($block->getReviewUrl($review)) ?>" class="action more"> |
48 | 48 | <span><?= $block->escapeHtml(__('See Details')) ?></span>
|
49 | 49 | </a>
|
50 | 50 | </td>
|
|
0 commit comments