|
29 | 29 | data-mage-init='{"collapsible":{"openedState": "active", "collapsible": true, "active": false, "collateral": { "openedState": "filter-active", "element": "body" } }}'> |
30 | 30 | <div id="ln_overlay" class="ln_overlay"> |
31 | 31 | <div class="loader"> |
32 | | - <img src="<?php echo $block->getViewFileUrl('images/loader-1.gif'); ?>" alt="Loading..."> |
| 32 | + <img src="<?= /** @noEscape */ $block->getViewFileUrl('images/loader-1.gif') ?>" alt="Loading..."> |
33 | 33 | </div> |
34 | 34 | </div> |
35 | | - <div class="block-title filter-title" data-count="<?php echo $filtered; ?>"> |
36 | | - <strong data-role="title"><?php echo __('Shop By') ?></strong> |
| 35 | + <div class="block-title filter-title" data-count="<?= /** @noEscape */ $filtered ?>"> |
| 36 | + <strong data-role="title"><?= /** @noEscape */ __('Shop By') ?></strong> |
37 | 37 | </div> |
38 | 38 | <div class="block-content filter-content"> |
39 | | - <?php echo $block->getChildHtml('state') ?> |
| 39 | + <?= /** @noEscape */ $block->getChildHtml('state') ?> |
40 | 40 | <?php if ($block->getLayer()->getState()->getFilters()) : ?> |
41 | 41 | <div class="block-actions filter-actions"> |
42 | | - <a href="<?php echo $block->getClearUrl() ?>" class="action clear filter-clear"> |
43 | | - <span><?php echo __('Clear All') ?></span> |
| 42 | + <a href="<?= /** @noEscape */ $block->getClearUrl() ?>" class="action clear filter-clear"> |
| 43 | + <span><?= /** @noEscape */ __('Clear All') ?></span> |
44 | 44 | </a> |
45 | 45 | </div> |
46 | 46 | <?php endif; ?> |
|
49 | 49 | <?php if ($filter->getItemsCount()) : ?> |
50 | 50 | <?php if (!$wrapOptions) : ?> |
51 | 51 | <strong role="heading" aria-level="2" class="block-subtitle filter-subtitle"> |
52 | | - <?php echo __('Shopping Options') ?> |
| 52 | + <?= /** @noEscape */ __('Shopping Options') ?> |
53 | 53 | </strong> |
54 | 54 | <div class="filter-options" id="narrow-by-list" data-role="content"> |
55 | | - <?php $wrapOptions = true; |
56 | | - endif; ?> |
57 | | - <div data-role="ln_collapsible" class="filter-options-item" attribute="<?php echo $filter->getRequestVar() ?>"> |
58 | | - <div data-role="ln_title" class="filter-options-title"><?php echo __($filter->getName()) ?></div> |
59 | | - <div data-role="ln_content" class="filter-options-content"><?php echo $block->getChildBlock('renderer')->setFilter($filter)->render($filter); ?></div> |
| 55 | + <?php $wrapOptions = true; |
| 56 | + endif; ?> |
| 57 | + <div data-role="ln_collapsible" class="filter-options-item" |
| 58 | + attribute="<?= /** @noEscape */ $filter->getRequestVar() ?>"> |
| 59 | + <div data-role="ln_title" class="filter-options-title"><?= /** @noEscape */ __($filter->getName()) ?></div> |
| 60 | + <div data-role="ln_content" class="filter-options-content"> |
| 61 | + <?= /** @noEscape */ $block->getChildBlock('renderer')->setFilter($filter)->render($filter); ?> |
60 | 62 | </div> |
| 63 | + </div> |
61 | 64 | <?php endif; ?> |
62 | 65 | <?php endforeach; ?> |
63 | 66 | <?php if ($wrapOptions) : ?> |
64 | 67 | </div> |
65 | 68 | <?php else : ?> |
66 | | - <script> |
67 | | - require([ |
68 | | - 'jquery' |
69 | | - ], function ($) { |
70 | | - $('#layered-filter-block').addClass('filter-no-options'); |
71 | | - }); |
72 | | - </script> |
| 69 | + <script> |
| 70 | + require([ |
| 71 | + 'jquery' |
| 72 | + ], function ($) { |
| 73 | + $('#layered-filter-block').addClass('filter-no-options'); |
| 74 | + }); |
| 75 | + </script> |
73 | 76 | <?php endif; ?> |
74 | 77 | <script type="text/x-magento-init"> |
75 | 78 | { |
76 | 79 | ".block-content.filter-content":{ |
77 | | - "mpAjax": <?php echo $layerConfig ?> |
| 80 | + "mpAjax": <?= /** @noEscape */ $layerConfig ?> |
78 | 81 | } |
79 | 82 | } |
80 | 83 | </script> |
|
0 commit comments