default.phtml 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. /**
  8. * @var \Magento\Payment\Block\Info $block
  9. * @see \Magento\Payment\Block\Info
  10. */
  11. $specificInfo = $block->getSpecificInformation();
  12. $title = $block->escapeHtml($block->getMethod()->getTitle());
  13. ?>
  14. <dl class="payment-method">
  15. <dt class="title"><?= /* @noEscape */ $title ?></dt>
  16. <?php if ($specificInfo):?>
  17. <dd class="content">
  18. <table class="data table">
  19. <caption class="table-caption"><?= /* @noEscape */ $title ?></caption>
  20. <?php foreach ($specificInfo as $label => $value):?>
  21. <tr>
  22. <th scope="row"><?= $block->escapeHtml($label) ?></th>
  23. <td>
  24. <?= /* @noEscape */ nl2br($block->escapeHtml(implode("\n", $block->getValueAsArray($value, true)))) ?>
  25. </td>
  26. </tr>
  27. <?php endforeach; ?>
  28. </table>
  29. </dd>
  30. <?php endif;?>
  31. </dl>
  32. <?= $block->getChildHtml() ?>