File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed
Catalog/view/frontend/layout
Theme/view/frontend/templates/html Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 82
82
</block >
83
83
</referenceContainer >
84
84
<referenceBlock name =" page.main.title" >
85
+ <arguments >
86
+ <argument name =" id" xsi : type =" string" >page-title-heading</argument >
87
+ <argument name =" add_base_attribute_aria" xsi : type =" string" >page-title-heading toolbar-amount</argument >
88
+ </arguments >
85
89
<block class =" Magento\Catalog\Block\Category\Rss\Link" name =" rss.link" template =" Magento_Catalog::category/rss.phtml" />
86
90
</referenceBlock >
87
91
</body >
Original file line number Diff line number Diff line change 12
12
$ cssClass = $ block ->getCssClass () ? ' ' . $ block ->getCssClass () : '' ;
13
13
$ title = '' ;
14
14
if (trim ($ block ->getPageTitle ())) {
15
- $ title = '<span class="base" data-ui-id="page-title" ' . $ block ->getAddBaseAttribute () . '> ' . $ block ->escapeHtml ($ block ->getPageTitle ()) . '</span> ' ;
15
+ $ title = '<span class="base" data-ui-id="page-title" ' . $ block ->getAddBaseAttribute () . '> '
16
+ . $ block ->escapeHtml ($ block ->getPageTitle ()) . '</span> ' ;
16
17
}
17
18
?>
18
19
<?php if ($ title ): ?>
19
20
<div class="page-title<?php echo $ cssClass ; ?> ">
20
- <h1 class="title"><?php echo $ title ?> </h1>
21
+ <h1 class="title" <?php if ($ block ->getId ()): ?> id="<?php echo $ block ->getId ();?> " <?php endif ; ?>
22
+ <?php if ($ block ->getAddBaseAttributeAria ()): ?>
23
+ aria-labelledby="<?php echo $ block ->getAddBaseAttributeAria (); ?> "
24
+ <?php endif ; ?> >
25
+ <?php echo $ title ?>
26
+ </h1>
21
27
<?php echo $ block ->getChildHtml (); ?>
22
28
</div>
23
29
<?php endif ; ?>
You can’t perform that action at this time.
0 commit comments