1
1
<?php
2
2
/**
3
- * Copyright © Magento, Inc. All rights reserved.
4
- * See COPYING.txt for license details .
3
+ * Copyright 2011 Adobe
4
+ * All Rights Reserved .
5
5
*/
6
6
7
7
/**
8
8
* @var $block \Magento\Tax\Block\Checkout\Subtotal
9
9
* @see \Magento\Tax\Block\Checkout\Subtotal
10
10
* @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
11
+ * @var $escaper \Magento\Framework\Escaper
11
12
*/
12
13
?>
13
14
<?php
14
- $ style = $ block ->escapeHtmlAttr ($ block ->getStyle ());
15
+ $ style = $ escaper ->escapeHtmlAttr ($ block ->getStyle ());
15
16
$ colspan = (int ) $ block ->getColspan ();
16
17
/** @var \Magento\Checkout\Helper\Data $checkoutHelper */
17
18
$ checkoutHelper = $ block ->getData ('checkoutHelper ' );
18
19
?>
19
20
<?php if ($ block ->displayBoth ()): ?>
20
21
<tr class="totals sub excl">
21
22
<th class="mark" colspan="<?= /* @noEscape */ $ colspan ?> " scope="row">
22
- <?= $ block ->escapeHtml (__ ('Subtotal (Excl. Tax) ' )) ?>
23
+ <?= $ escaper ->escapeHtml (__ ('Subtotal (Excl. Tax) ' )) ?>
23
24
</th>
24
- <td class="amount" data-th="<?= $ block ->escapeHtmlAttr (__ ('Subtotal (Excl. Tax) ' )) ?> ">
25
+ <td class="amount" data-th="<?= $ escaper ->escapeHtmlAttr (__ ('Subtotal (Excl. Tax) ' )) ?> ">
25
26
<?= /* @noEscape */ $ checkoutHelper ->formatPrice ($ block ->getTotal ()->getValueExclTax ()) ?>
26
27
</td>
27
28
</tr>
@@ -31,9 +32,9 @@ $checkoutHelper = $block->getData('checkoutHelper');
31
32
<?php endif ; ?>
32
33
<tr class="totals sub incl">
33
34
<th class="mark" colspan="<?= /* @noEscape */ $ colspan ?> " scope="row">
34
- <?= $ block ->escapeHtml (__ ('Subtotal (Incl. Tax) ' )) ?>
35
+ <?= $ escaper ->escapeHtml (__ ('Subtotal (Incl. Tax) ' )) ?>
35
36
</th>
36
- <td class="amount" data-th="<?= $ block ->escapeHtmlAttr (__ ('Subtotal (Incl. Tax) ' )) ?> ">
37
+ <td class="amount" data-th="<?= $ escaper ->escapeHtmlAttr (__ ('Subtotal (Incl. Tax) ' )) ?> ">
37
38
<?= /* @noEscape */ $ checkoutHelper ->formatPrice ($ block ->getTotal ()->getValueInclTax ()) ?>
38
39
</td>
39
40
</tr>
@@ -44,9 +45,9 @@ $checkoutHelper = $block->getData('checkoutHelper');
44
45
<?php else : ?>
45
46
<tr class="totals sub">
46
47
<th class="mark" colspan="<?= /* @noEscape */ $ colspan ?> " scope="row">
47
- <?= $ block ->escapeHtml ($ block ->getTotal ()->getTitle ()) ?>
48
+ <?= $ escaper ->escapeHtml ($ block ->getTotal ()->getTitle ()) ?>
48
49
</th>
49
- <td class="amount" data-th="<?= $ block ->escapeHtmlAttr ($ block ->getTotal ()->getTitle ()) ?> ">
50
+ <td class="amount" data-th="<?= $ escaper ->escapeHtmlAttr ($ block ->getTotal ()->getTitle ()) ?> ">
50
51
<?= /* @noEscape */ $ checkoutHelper ->formatPrice ($ block ->getTotal ()->getValue ()) ?>
51
52
</td>
52
53
</tr>
0 commit comments