Skip to content

Commit 48de7da

Browse files
MC-35402: [Page Builder] New top-level Full-Width and Full-Bleed components are always nested in a Contained component
1 parent 38b19d3 commit 48de7da

File tree

1 file changed

+12
-8
lines changed
  • app/code/Magento/PageBuilder/view/frontend/templates/catalog/category/view

1 file changed

+12
-8
lines changed

app/code/Magento/PageBuilder/view/frontend/templates/catalog/category/view/description.phtml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,32 +5,36 @@
55
*/
66
?>
77
<?php
8-
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundThis
8+
// phpcs:disable Magento2.Templates.ThisInTemplate.FoundHelper
99

1010
/**
1111
* Category view template
1212
*
1313
* @var $block \Magento\Catalog\Block\Category\View
1414
*/
1515
?>
16-
<?php if ($description = $block->getCurrentCategory()->getDescription()) :?>
16+
<?php if ($description = $block->getCurrentCategory()->getDescription()):?>
1717
<div class="category-description">
1818
<?php $descriptionHtml = $this->helper(Magento\Catalog\Helper\Output::class)->categoryAttribute(
1919
$block->getCurrentCategory(),
2020
$description,
2121
'description'
2222
);?>
23-
<?php if (stripos($description, 'data-appearance') === false) :?>
23+
<?php if (stripos($description, 'data-appearance') === false):?>
2424
<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;">
2732
<?= /* @noEscape */$descriptionHtml; ?>
2833
</div>
2934
</div>
3035
</div>
31-
<?php else : ?>
36+
<?php else: ?>
3237
<?= /* @noEscape */$descriptionHtml; ?>
33-
<?php endif; ?>
38+
<?php endif; ?>
3439
</div>
3540
<?php endif; ?>
36-

0 commit comments

Comments
 (0)