Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
logo.phtml
Go to the documentation of this file.
1 <?php
7 // @codingStandardsIgnoreFile
8 
12 ?>
13 <?php $storeName = $block->getThemeName() ? $block->getThemeName() : $block->getLogoAlt();?>
14 <span data-action="toggle-nav" class="action nav-toggle"><span><?= /* @escapeNotVerified */ __('Toggle Nav') ?></span></span>
15 <?php if ($block->isHomePage()):?>
16  <strong class="logo">
17 <?php else: ?>
18  <a class="logo" href="<?= $block->getUrl('') ?>" title="<?= /* @escapeNotVerified */ $storeName ?>">
19 <?php endif ?>
20  <img src="<?= /* @escapeNotVerified */ $block->getLogoSrc() ?>"
21  title="<?= /* @escapeNotVerified */ $block->getLogoAlt() ?>"
22  alt="<?= /* @escapeNotVerified */ $block->getLogoAlt() ?>"
23  <?= $block->getLogoWidth() ? 'width="' . $block->getLogoWidth() . '"' : '' ?>
24  <?= $block->getLogoHeight() ? 'height="' . $block->getLogoHeight() . '"' : '' ?>
25  />
26 <?php if ($block->isHomePage()):?>
27  </strong>
28 <?php else:?>
29  </a>
30 <?php endif?>
__()
Definition: __.php:13
$block
Definition: block.php:8
endif
Definition: 404.phtml:116
$storeName
Definition: logo.phtml:13