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 9
9
*/
10
10
$ cssClass = $ block ->getCssClass () ? ' ' . $ block ->getCssClass () : '' ;
11
11
$ titleHtml = '' ;
12
- if (trim ($ block ->getPageHeading ())) {
12
+
13
+ $ pageHeading = $ block ->getPageHeading () ? trim ($ block ->getPageHeading ()) : '' ;
14
+
15
+ if ($ pageHeading ) {
13
16
$ titleHtml = '<span class="base" data-ui-id="page-title-wrapper" '
14
17
. $ block ->getAddBaseAttribute ()
15
18
. '> '
16
- . $ block ->escapeHtml ($ block -> getPageHeading () )
19
+ . $ block ->escapeHtml ($ pageHeading )
17
20
. '</span> ' ;
18
21
}
19
22
?>
23
+
20
24
<?php if ($ titleHtml ) : ?>
21
25
<div class="page-title-wrapper<?= $ block ->escapeHtmlAttr ($ cssClass ) ?> ">
22
26
<h1 class="page-title"
@@ -28,4 +32,4 @@ if (trim($block->getPageHeading())) {
28
32
</h1>
29
33
<?= $ block ->getChildHtml () ?>
30
34
</div>
31
- <?php endif ; ?>
35
+ <?php endif ; ?>
You can’t perform that action at this time.
0 commit comments