|
14 | 14 | ?>
|
15 | 15 |
|
16 | 16 | <?php if ($_item = $block->getItem()): ?>
|
17 |
| - <div id="order_item_<?= /* @escapeNotVerified */ $_item->getId() ?>_title" |
| 17 | + <div id="order_item_<?= $block->escapeHtml($_item->getId()) ?>_title" |
18 | 18 | class="product-title">
|
19 | 19 | <?= $block->escapeHtml($_item->getName()) ?>
|
20 | 20 | </div>
|
21 |
| - |
22 | 21 | <div class="product-sku-block">
|
23 |
| - <span><?= /* @escapeNotVerified */ __('SKU') ?>:</span> <?= implode('<br />', $this->helper('Magento\Catalog\Helper\Data')->splitSku($block->escapeHtml($block->getSku()))) ?> |
| 22 | + <span><?= $block->escapeHtml(__('SKU'))?>:</span> <?= implode('<br />', $this->helper('Magento\Catalog\Helper\Data')->splitSku($block->escapeHtml($block->getSku()))) ?> |
24 | 23 | </div>
|
25 | 24 |
|
26 | 25 | <?php if ($block->getOrderOptions()): ?>
|
27 | 26 | <dl class="item-options">
|
28 | 27 | <?php foreach ($block->getOrderOptions() as $_option): ?>
|
29 |
| - <dt><?= /* @escapeNotVerified */ $_option['label'] ?>:</dt> |
| 28 | + <dt><?= $block->escapeHtml($_option['label']) ?>:</dt> |
30 | 29 | <dd>
|
31 | 30 | <?php if (isset($_option['custom_view']) && $_option['custom_view']): ?>
|
32 |
| - <?= /* @escapeNotVerified */ $block->getCustomizedOptionValue($_option) ?> |
| 31 | + <?= $block->escapeHtml($block->getCustomizedOptionValue($_option)) ?> |
33 | 32 | <?php else: ?>
|
34 | 33 | <?php $_option = $block->getFormattedOption($_option['value']); ?>
|
35 |
| - <?= /* @escapeNotVerified */ $_option['value'] ?><?php if (isset($_option['remainder']) && $_option['remainder']): ?><span id="<?= /* @escapeNotVerified */ $_dots = 'dots' . uniqid() ?>"> ...</span><span id="<?= /* @escapeNotVerified */ $_id = 'id' . uniqid() ?>"><?= /* @escapeNotVerified */ $_option['remainder'] ?></span> |
| 34 | + <?= $block->escapeHtml($_option['value']) ?> |
| 35 | + <?php if (isset($_option['remainder']) && $_option['remainder']): ?> |
| 36 | + <?php $dots = 'dots' . uniqid(); ?> |
| 37 | + <span id="<?= /* @noEscape */ $dots; ?>"> ...</span> |
| 38 | + <?php $id = 'id' . uniqid(); ?> |
| 39 | + <span id="<?= /* @noEscape */ $id; ?>"><?= $block->escapeHtml($_option['remainder']) ?></span> |
36 | 40 | <script>
|
37 |
| - require(['prototype'], function() { |
38 |
| - $('<?= /* @escapeNotVerified */ $_id ?>').hide(); |
39 |
| - $('<?= /* @escapeNotVerified */ $_id ?>').up().observe('mouseover', function(){$('<?= /* @escapeNotVerified */ $_id ?>').show();}); |
40 |
| - $('<?= /* @escapeNotVerified */ $_id ?>').up().observe('mouseover', function(){$('<?= /* @escapeNotVerified */ $_dots ?>').hide();}); |
41 |
| - $('<?= /* @escapeNotVerified */ $_id ?>').up().observe('mouseout', function(){$('<?= /* @escapeNotVerified */ $_id ?>').hide();}); |
42 |
| - $('<?= /* @escapeNotVerified */ $_id ?>').up().observe('mouseout', function(){$('<?= /* @escapeNotVerified */ $_dots ?>').show();}); |
| 41 | + require(['prototype'], function(){ |
| 42 | + $('<?= /* @noEscape */ $id; ?>').hide(); |
| 43 | + $('<?= /* @noEscape */ $id; ?>').up().observe('mouseover', function(){$('<?= /* @noEscape */ $id; ?>').show();}); |
| 44 | + $('<?= /* @noEscape */ $id; ?>').up().observe('mouseover', function(){$('<?= /* @noEscape */ $dots; ?>').hide();}); |
| 45 | + $('<?= /* @noEscape */ $id; ?>').up().observe('mouseout', function(){$('<?= /* @noEscape */ $id; ?>').hide();}); |
| 46 | + $('<?= /* @noEscape */ $id; ?>').up().observe('mouseout', function(){$('<?= /* @noEscape */ $dots; ?>').show();}); |
43 | 47 | });
|
44 | 48 | </script>
|
45 | 49 | <?php endif; ?>
|
|
0 commit comments