File tree Expand file tree Collapse file tree 1 file changed +12
-6
lines changed
app/code/Magento/Checkout/view/frontend/templates/onepage Expand file tree Collapse file tree 1 file changed +12
-6
lines changed Original file line number Diff line number Diff line change 4
4
* See COPYING.txt for license details.
5
5
*/
6
6
7
- /** @var $block \Magento\Checkout\Block\Onepage\Link */
7
+ use Magento \Checkout \Block \Onepage \Link ;
8
+ use Magento \Framework \Escaper ;
9
+
10
+ /**
11
+ * @var Link $block
12
+ * @var Escaper $escaper
13
+ */
8
14
?>
9
- <?php if ($ block ->isPossibleOnepageCheckout ()) : ?>
15
+ <?php if ($ block ->isPossibleOnepageCheckout ()): ?>
10
16
<button type="button"
11
17
data-role="proceed-to-checkout"
12
- title="<?= $ block ->escapeHtmlAttr (__ ('Proceed to Checkout ' )) ?> "
18
+ title="<?= $ escaper ->escapeHtmlAttr (__ ('Proceed to Checkout ' )) ?> "
13
19
data-mage-init='{
14
20
"Magento_Checkout/js/proceed-to-checkout":{
15
- "checkoutUrl":"<?= $ block ->escapeJs ($ block ->escapeUrl ( $ block -> getCheckoutUrl () )) ?> "
21
+ "checkoutUrl":"<?= $ escaper ->escapeJs ($ block ->getCheckoutUrl ()) ?> "
16
22
}
17
23
}'
18
24
class="action primary checkout<?= ($ block ->isDisabled ()) ? ' disabled ' : '' ?> "
19
- <?php if ($ block ->isDisabled ()) : ?>
25
+ <?php if ($ block ->isDisabled ()): ?>
20
26
disabled="disabled"
21
27
<?php endif ; ?> >
22
- <span><?= $ block ->escapeHtml (__ ('Proceed to Checkout ' )) ?> </span>
28
+ <span><?= $ escaper ->escapeHtml (__ ('Proceed to Checkout ' )) ?> </span>
23
29
</button>
24
30
<?php endif ?>
You can’t perform that action at this time.
0 commit comments