File tree Expand file tree Collapse file tree 7 files changed +12
-12
lines changed
app/code/Magento/Catalog/view
adminhtml/templates/product/edit
frontend/templates/product Expand file tree Collapse file tree 7 files changed +12
-12
lines changed Original file line number Diff line number Diff line change 14
14
15
15
<div id="<?= $ block ->escapeHtmlAttr ($ block ->getId ()) ?> "
16
16
data-mage-init='{"tabs":{
17
- "active": "<?= $ block ->escapeJs ( $ block -> escapeHtmlAttr ($ block ->getActiveTabId () )) ?> ",
18
- "destination": "#<?= $ block ->escapeJs ( $ block -> escapeHtmlAttr ($ block ->getDestElementId () )) ?> ",
17
+ "active": "<?= $ block ->escapeHtmlAttr ($ block ->getActiveTabId ()) ?> ",
18
+ "destination": "#<?= $ block ->escapeHtmlAttr ($ block ->getDestElementId ()) ?> ",
19
19
"shadowTabs": "<?= /* @noEscape */ $ block ->getAllShadowTabs () ?> ",
20
- "tabsBlockPrefix": "<?= $ block ->escapeJs ( $ block -> escapeHtmlAttr ($ block ->getId () )) ?> _",
20
+ "tabsBlockPrefix": "<?= $ block ->escapeHtmlAttr ($ block ->getId ()) ?> _",
21
21
"tabIdArgument": "active_tab",
22
- "tabPanelClass": "<?= $ block ->escapeJs ( $ block -> escapeHtmlAttr ($ block ->getPanelsClass () )) ?> ",
23
- "excludedPanel": "<?= $ block ->escapeJs ( $ block -> escapeHtmlAttr ($ block ->getExcludedPanel () )) ?> ",
22
+ "tabPanelClass": "<?= $ block ->escapeHtmlAttr ($ block ->getPanelsClass ()) ?> ",
23
+ "excludedPanel": "<?= $ block ->escapeHtmlAttr ($ block ->getExcludedPanel ()) ?> ",
24
24
"groups": "ul.tabs"
25
25
}}'>
26
26
<?php foreach ($ tabGroups as $ tabGroupCode ) :?>
Original file line number Diff line number Diff line change @@ -218,7 +218,7 @@ switch ($type = $block->getType()) {
218
218
<div class="actions-primary">
219
219
<?php if ($ _item ->isSaleable ()) :?>
220
220
<?php if ($ _item ->getTypeInstance ()->hasRequiredOptions ($ _item )) :?>
221
- <button class="action tocart primary" data-mage-init='{"redirectUrl": {"url": "<?= $ block ->escapeJs ( $ block -> escapeUrl ($ block ->getAddToCartUrl ($ _item) )) ?> "}}' type="button" title="<?= $ block ->escapeHtmlAttr (__ ('Add to Cart ' )) ?> ">
221
+ <button class="action tocart primary" data-mage-init='{"redirectUrl": {"url": "<?= $ block ->escapeUrl ($ block ->getAddToCartUrl ($ _item )) ?> "}}' type="button" title="<?= $ block ->escapeHtmlAttr (__ ('Add to Cart ' )) ?> ">
222
222
<span><?= $ block ->escapeHtml (__ ('Add to Cart ' )) ?> </span>
223
223
</button>
224
224
<?php else :?>
Original file line number Diff line number Diff line change @@ -61,7 +61,7 @@ $_helper = $this->helper(Magento\Catalog\Helper\Output::class);
61
61
62
62
if ($ _product ->isSaleable ()) {
63
63
$ info ['button ' ] = '<button type="button" title=" ' . $ block ->escapeHtmlAttr (__ ('Add to Cart ' )) . '" class="action tocart" '
64
- . ' data-mage-init= \'{ "redirectUrl": { "event": "click", url: " ' . $ block ->escapeJs ( $ block -> escapeUrl ($ block ->getAddToCartUrl ($ _product) )) . '"} } \'> '
64
+ . ' data-mage-init= \'{ "redirectUrl": { "event": "click", url: " ' . $ block ->escapeUrl ($ block ->getAddToCartUrl ($ _product )) . '"} } \'> '
65
65
. '<span> ' . $ block ->escapeHtml (__ ('Add to Cart ' )) . '</span></button> ' ;
66
66
} else {
67
67
$ info ['button ' ] = $ _product ->getIsSalable () ? '<div class="stock available"><span> ' . $ block ->escapeHtml (__ ('In stock ' )) . '</span></div> ' :
Original file line number Diff line number Diff line change 9
9
10
10
<meta property="og:type" content="product" />
11
11
<meta property="og:title"
12
- content="<?= $ block ->escapeHtmlAttr ( $ block -> stripTags ($ block ->getProduct ()->getName () )) ?> " />
12
+ content="<?= /* @noEscape */ $ block ->stripTags ($ block ->getProduct ()->getName ()) ?> " />
13
13
<meta property="og:image"
14
14
content="<?= $ block ->escapeUrl ($ block ->getImage ($ block ->getProduct (), 'product_base_image ' )->getImageUrl ()) ?> " />
15
15
<meta property="og:description"
16
- content="<?= $ block ->escapeHtmlAttr ( $ block -> stripTags ($ block ->getProduct ()->getShortDescription () )) ?> " />
16
+ content="<?= /* @noEscape */ $ block ->stripTags ($ block ->getProduct ()->getShortDescription ()) ?> " />
17
17
<meta property="og:url" content="<?= $ block ->escapeUrl ($ block ->getProduct ()->getProductUrl ()) ?> " />
18
18
<?php if ($ priceAmount = $ block ->getProduct ()->getPriceInfo ()->getPrice (\Magento \Catalog \Pricing \Price \FinalPrice::PRICE_CODE )->getAmount ()) :?>
19
19
<meta property="product:price:amount" content="<?= $ block ->escapeHtmlAttr ($ priceAmount ) ?> "/>
Original file line number Diff line number Diff line change 37
37
<?php if (!$ _product ->getTypeInstance ()->isPossibleBuyFromList ($ _product )) :?>
38
38
<button type="button" title="<?= $ block ->escapeHtmlAttr (__ ('Add to Cart ' )) ?> "
39
39
class="action tocart primary"
40
- data-mage-init='{"redirectUrl":{"url":"<?= $ block ->escapeJs ( $ block -> escapeUrl ($ block ->getAddToCartUrl ($ _product) )) ?> "}}'>
40
+ data-mage-init='{"redirectUrl":{"url":"<?= $ block ->escapeUrl ($ block ->getAddToCartUrl ($ _product )) ?> "}}'>
41
41
<span><?= $ block ->escapeHtml (__ ('Add to Cart ' )) ?> </span>
42
42
</button>
43
43
<?php else :?>
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
68
68
<?php if ($ _item ->isSaleable ()) :?>
69
69
<?php if (!$ _item ->getTypeInstance ()->isPossibleBuyFromList ($ _item )) :?>
70
70
<button class="action tocart primary"
71
- data-mage-init='{"redirectUrl":{"url":"<?= $ block ->escapeJs ( $ block -> escapeUrl ($ block ->getAddToCartUrl ($ _item) )) ?> "}}'
71
+ data-mage-init='{"redirectUrl":{"url":"<?= $ block ->escapeUrl ($ block ->getAddToCartUrl ($ _item )) ?> "}}'
72
72
type="button"
73
73
title="<?= $ block ->escapeHtmlAttr (__ ('Add to Cart ' )) ?> ">
74
74
<span><?= $ block ->escapeHtml (__ ('Add to Cart ' )) ?> </span>
Original file line number Diff line number Diff line change @@ -71,7 +71,7 @@ if ($exist = ($block->getProductCollection() && $block->getProductCollection()->
71
71
<?php if (!$ _item ->getTypeInstance ()->isPossibleBuyFromList ($ _item )
72
72
) :?>
73
73
<button class="action tocart primary"
74
- data-mage-init='{"redirectUrl":{"url":"<?= $ block ->escapeJs ( $ block -> escapeUrl ($ block ->getAddToCartUrl ($ _item) )) ?> "}}'
74
+ data-mage-init='{"redirectUrl":{"url":"<?= $ block ->escapeUrl ($ block ->getAddToCartUrl ($ _item )) ?> "}}'
75
75
type="button"
76
76
title="<?= $ block ->escapeHtmlAttr (__ ('Add to Cart ' )) ?> ">
77
77
<span><?= $ block ->escapeHtml (__ ('Add to Cart ' )) ?> </span>
You can’t perform that action at this time.
0 commit comments