totals.phtml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. // @codingStandardsIgnoreFile
  7. /**
  8. * @var $block \Magento\Sales\Block\Order\Totals
  9. * @see \Magento\Sales\Block\Order\Totals
  10. */
  11. ?>
  12. <?php foreach ($block->getTotals() as $_code => $_total): ?>
  13. <?php if ($_total->getBlockName()): ?>
  14. <?= $block->getChildHtml($_total->getBlockName(), false) ?>
  15. <?php else:?>
  16. <tr class="<?= /* @escapeNotVerified */ $_code ?>">
  17. <th <?= /* @escapeNotVerified */ $block->getLabelProperties() ?> scope="row">
  18. <?php if ($_total->getStrong()):?>
  19. <strong><?= $block->escapeHtml($_total->getLabel()) ?></strong>
  20. <?php else:?>
  21. <?= $block->escapeHtml($_total->getLabel()) ?>
  22. <?php endif?>
  23. </th>
  24. <td <?= /* @escapeNotVerified */ $block->getValueProperties() ?> data-th="<?= $block->escapeHtml($_total->getLabel()) ?>">
  25. <?php if ($_total->getStrong()):?>
  26. <strong><?= /* @escapeNotVerified */ $block->formatValue($_total) ?></strong>
  27. <?php else:?>
  28. <?= /* @escapeNotVerified */ $block->formatValue($_total) ?>
  29. <?php endif?>
  30. </td>
  31. </tr>
  32. <?php endif?>
  33. <?php endforeach?>