|
5 | 5 | */
|
6 | 6 | ?>
|
7 | 7 | <?php
|
8 |
| -// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis |
| 8 | +// phpcs:disable Magento2.Templates.ThisInTemplate.FoundHelper |
9 | 9 |
|
10 | 10 | /**
|
11 | 11 | * Category view template
|
12 | 12 | *
|
13 | 13 | * @var $block \Magento\Catalog\Block\Category\View
|
14 | 14 | */
|
15 | 15 | ?>
|
16 |
| -<?php if ($description = $block->getCurrentCategory()->getDescription()) :?> |
| 16 | +<?php if ($description = $block->getCurrentCategory()->getDescription()):?> |
17 | 17 | <div class="category-description">
|
18 | 18 | <?php $descriptionHtml = $this->helper(Magento\Catalog\Helper\Output::class)->categoryAttribute(
|
19 | 19 | $block->getCurrentCategory(),
|
20 | 20 | $description,
|
21 | 21 | 'description'
|
22 | 22 | );?>
|
23 |
| - <?php if (stripos($description, 'data-appearance') === false) :?> |
| 23 | + <?php if (stripos($description, 'data-appearance') === false):?> |
24 | 24 | <div data-content-type="row" data-appearance="contained" data-element="main">
|
25 |
| - <div data-enable-parallax="0" data-parallax-speed="0.5" data-background-images="{}" data-element="inner" style="justify-content: flex-start; display: flex; flex-direction: column; background-position: left top; background-size: cover; background-repeat: no-repeat; background-attachment: scroll; border-style: none; border-width: 1px; border-radius: 0px; margin: 0px 0px 10px; padding: 10px;"> |
26 |
| - <div data-content-type="html" data-appearance="default" data-element="main" style="border-style: none; border-width: 1px; border-radius: 0px; margin: 0px; padding: 0px;"> |
| 25 | + <div data-enable-parallax="0" data-parallax-speed="0.5" data-background-images="{}" data-element="inner" |
| 26 | + style="justify-content: flex-start; display: flex; flex-direction: column; |
| 27 | + background-position: left top; background-size: cover; background-repeat: no-repeat; |
| 28 | + background-attachment: scroll; border-style: none; border-width: 1px; border-radius: 0px; |
| 29 | + margin: 0px 0px 10px; padding: 10px;"> |
| 30 | + <div data-content-type="html" data-appearance="default" data-element="main" |
| 31 | + style="border-style: none; border-width: 1px; border-radius: 0px; margin: 0px; padding: 0px;"> |
27 | 32 | <?= /* @noEscape */$descriptionHtml; ?>
|
28 | 33 | </div>
|
29 | 34 | </div>
|
30 | 35 | </div>
|
31 |
| - <?php else : ?> |
| 36 | + <?php else: ?> |
32 | 37 | <?= /* @noEscape */$descriptionHtml; ?>
|
33 |
| - <?php endif; ?> |
| 38 | + <?php endif; ?> |
34 | 39 | </div>
|
35 | 40 | <?php endif; ?>
|
36 |
| - |
|
0 commit comments