|
4 | 4 | * See COPYING.txt for license details.
|
5 | 5 | */
|
6 | 6 |
|
7 |
| -// @codingStandardsIgnoreFile |
8 |
| - |
9 | 7 | /**
|
10 | 8 | * @var $block \Magento\CatalogInventory\Block\Stockqty\Composite
|
11 | 9 | */
|
12 | 10 | ?>
|
13 |
| -<?php if ($block->isMsgVisible()): ?> |
| 11 | +<?php if ($block->isMsgVisible()) : ?> |
14 | 12 | <div class="availability only">
|
15 | 13 | <a href="#"
|
16 |
| - data-mage-init='{"toggleAdvanced": {"selectorsToggleClass": "active", "baseToggleClass": "expanded", "toggleContainers": "#<?= /* @escapeNotVerified */ $block->getDetailsPlaceholderId() ?>"}}' |
17 |
| - id="<?= /* @escapeNotVerified */ $block->getPlaceholderId() ?>" |
18 |
| - title="<?= /* @escapeNotVerified */ __('Only %1 left', ($block->getStockQtyLeft())) ?>" |
| 14 | + data-mage-init='{"toggleAdvanced": {"selectorsToggleClass": "active", "baseToggleClass": "expanded", "toggleContainers": "#<?= $block->escapeHtmlAttr($block->getDetailsPlaceholderId()) ?>"}}' |
| 15 | + id="<?= $block->escapeHtmlAttr($block->getPlaceholderId()) ?>" |
| 16 | + title="<?= $block->escapeHtmlAttr(__('Only %1 left', ($block->getStockQtyLeft()))) ?>" |
19 | 17 | class="action show">
|
20 |
| - <?= /* @escapeNotVerified */ __('Only %1 left', "<strong>{$block->getStockQtyLeft()}</strong>") ?> |
| 18 | + <?= /* @noEscape */ __('Only %1 left', "<strong>{$block->escapeHtml($block->getStockQtyLeft())}</strong>") ?> |
21 | 19 | </a>
|
22 | 20 | </div>
|
23 |
| - <div class="availability only detailed" id="<?= /* @escapeNotVerified */ $block->getDetailsPlaceholderId() ?>"> |
| 21 | + <div class="availability only detailed" id="<?= $block->escapeHtmlAttr($block->getDetailsPlaceholderId()) ?>"> |
24 | 22 | <div class="table-wrapper">
|
25 | 23 | <table class="data table">
|
26 |
| - <caption class="table-caption"><?= /* @escapeNotVerified */ __('Product availability') ?></caption> |
| 24 | + <caption class="table-caption"><?= $block->escapeHtml(__('Product availability')) ?></caption> |
27 | 25 | <thead>
|
28 | 26 | <tr>
|
29 |
| - <th class="col item" scope="col"><?= /* @escapeNotVerified */ __('Product Name') ?></th> |
30 |
| - <th class="col qty" scope="col"><?= /* @escapeNotVerified */ __('Qty') ?></th> |
| 27 | + <th class="col item" scope="col"><?= $block->escapeHtml(__('Product Name')) ?></th> |
| 28 | + <th class="col qty" scope="col"><?= $block->escapeHtml(__('Qty')) ?></th> |
31 | 29 | </tr>
|
32 | 30 | </thead>
|
33 | 31 | <tbody>
|
34 | 32 | <?php foreach ($block->getChildProducts() as $childProduct) : ?>
|
35 | 33 | <?php $childProductStockQty = $block->getProductStockQty($childProduct); ?>
|
36 | 34 | <?php if ($childProductStockQty > 0) : ?>
|
37 | 35 | <tr>
|
38 |
| - <td data-th="<?= $block->escapeHtml(__('Product Name')) ?>" class="col item"><?= /* @escapeNotVerified */ $childProduct->getName() ?></td> |
39 |
| - <td data-th="<?= $block->escapeHtml(__('Qty')) ?>" class="col qty"><?= /* @escapeNotVerified */ $childProductStockQty ?></td> |
| 36 | + <td data-th="<?= $block->escapeHtmlAttr(__('Product Name')) ?>" class="col item"><?= $block->escapeHtml($childProduct->getName()) ?></td> |
| 37 | + <td data-th="<?= $block->escapeHtmlAttr(__('Qty')) ?>" class="col qty"><?= $block->escapeHtml($childProductStockQty) ?></td> |
40 | 38 | </tr>
|
41 | 39 | <?php endif ?>
|
42 | 40 | <?php endforeach ?>
|
|
0 commit comments