Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
comments.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
9 ?>
10 <?php
15 ?>
16 <?php if ($block->hasComments()):?>
17  <div class="order additional details comments">
18  <h3 class="subtitle"><?= /* @escapeNotVerified */ $block->getTitle() ?></h3>
19  <dl class="order comments">
20  <?php foreach ($block->getComments() as $_commentItem): ?>
21  <dt class="comment date"><?= /* @escapeNotVerified */ $block->formatDate($_commentItem->getCreatedAt(), \IntlDateFormatter::MEDIUM, true) ?></dt>
22  <dd class="comment text"><?= $block->escapeHtml($_commentItem->getComment()) ?></dd>
23  <?php endforeach; ?>
24  </dl>
25  </div>
26 <?php endif;?>
if( $block->hasComments())() ?></h3 >< dl class endforeach
Definition: comments.phtml:22
$block
Definition: block.php:8
endif
Definition: comments.phtml:26