File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
app/code/Magento/Theme/view/frontend/templates/html Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 99 */
1010$ cssClass = $ block ->getCssClass () ? ' ' . $ block ->getCssClass () : '' ;
1111$ titleHtml = '' ;
12- if (trim ($ block ->getPageHeading ())) {
12+
13+ $ pageHeading = $ block ->getPageHeading () ? trim ($ block ->getPageHeading ()) : '' ;
14+
15+ if ($ pageHeading ) {
1316 $ titleHtml = '<span class="base" data-ui-id="page-title-wrapper" '
1417 . $ block ->getAddBaseAttribute ()
1518 . '> '
16- . $ block ->escapeHtml ($ block -> getPageHeading () )
19+ . $ block ->escapeHtml ($ pageHeading )
1720 . '</span> ' ;
1821}
1922?>
23+
2024<?php if ($ titleHtml ) : ?>
2125<div class="page-title-wrapper<?= $ block ->escapeHtmlAttr ($ cssClass ) ?> ">
2226 <h1 class="page-title"
@@ -28,4 +32,4 @@ if (trim($block->getPageHeading())) {
2832 </h1>
2933 <?= $ block ->getChildHtml () ?>
3034</div>
31- <?php endif ; ?>
35+ <?php endif ; ?>
You can’t perform that action at this time.
0 commit comments