Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
detailed.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
10 ?>
11 <?php if (!empty($collection) && $collection->getSize()): ?>
12  <div class="table-wrapper">
13  <table class="data table ratings review summary">
14  <caption class="table-caption"><?= $block->escapeHtml(__('Ratings Review Summary')) ?></caption>
15  <tbody>
16  <?php foreach ($collection as $_rating): ?>
17  <?php if ($_rating->getSummary()): ?>
18  <tr>
19  <th class="label" scope="row"><?= $block->escapeHtml(__($_rating->getRatingCode())) ?></th>
20  <td class="value">
21  <div class="rating box">
22  <div class="rating" style="width:<?= /* @noEscape */ ceil($_rating->getSummary()) ?>%;"></div>
23  </div>
24  </td>
25  </tr>
26  <?php endif; ?>
27  <?php endforeach; ?>
28  </tbody>
29  </table>
30  </div>
31 <?php endif; ?>
$_iterator endforeach
Definition: detailed.phtml:21
__()
Definition: __.php:13
$block
Definition: block.php:8
$_optionsforeach(array_reverse( $_options) as $_option)( $_rating->getVoteId() ? $_rating->getVoteId() :$_rating->getId()) ?>]" id endif
Definition: detailed.phtml:19