title.phtml 1015 B

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