You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

32 lines
1014 B

  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * @var $block \Magento\Theme\Block\Html\Title
  8. */
  9. $cssClass = $block->getCssClass() ? ' ' . $block->getCssClass() : '';
  10. $titleHtml = '';
  11. if (trim($block->getPageHeading())) {
  12. $titleHtml = '<span class="base" data-ui-id="page-title-wrapper" '
  13. . $block->getAddBaseAttribute()
  14. . '>'
  15. . $block->escapeHtml($block->getPageHeading())
  16. . '</span>';
  17. }
  18. ?>
  19. <?php if ($titleHtml) : ?>
  20. <div class="page-title-wrapper<?= $block->escapeHtmlAttr($cssClass) ?>">
  21. <h1 class="page-title"
  22. <?php if ($block->getId()) : ?> id="<?= $block->escapeHtmlAttr($block->getId()) ?>" <?php endif; ?>
  23. <?php if ($block->getAddBaseAttributeAria()) : ?>
  24. aria-labelledby="<?= $block->escapeHtmlAttr($block->getAddBaseAttributeAria()) ?>"
  25. <?php endif; ?>>
  26. <?= /* @noEscape */ $titleHtml ?>
  27. </h1>
  28. <?= $block->getChildHtml() ?>
  29. </div>
  30. <?php endif; ?>