Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
title.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
12 $cssClass = $block->getCssClass() ? ' ' . $block->getCssClass() : '';
13 $title = '';
14 if (trim($block->getPageHeading())) {
15  $title = '<span class="base" data-ui-id="page-title-wrapper" ' . $block->getAddBaseAttribute() . '>'
16  . $block->escapeHtml($block->getPageHeading()) . '</span>';
17 }
18 ?>
19 <?php if ($title): ?>
20 <div class="page-title-wrapper<?= /* @escapeNotVerified */ $cssClass ?>">
21  <h1 class="page-title"
22  <?php if ($block->getId()): ?> id="<?= /* @escapeNotVerified */ $block->getId() ?>" <?php endif; ?>
23  <?php if ($block->getAddBaseAttributeAria()): ?>
24  aria-labelledby="<?= /* @escapeNotVerified */ $block->getAddBaseAttributeAria() ?>"
25  <?php endif; ?>>
26  <?= /* @escapeNotVerified */ $title ?>
27  </h1>
28  <?= $block->getChildHtml() ?>
29 </div>
30 <?php endif; ?>
$title
Definition: title.phtml:14
$block
Definition: block.php:8
$cssClass
Definition: title.phtml:12
$_labelsforeach( $block->getStores() as $_store)() ?></span ></label >< div class endif
Definition: title.phtml:12