<?php $storeName = $block->getThemeName() ? $block->getThemeName() : $block->getLogoAlt();?>
<?php $config = $block->getNtrnConfig() ?>
<span class="action nav-toggle" data-action="toggle-nav">
    <?php if ($config->get('navatron_global/options/enabled') === '1'): ?>
    <div class="ntrn__toggle">
        <?php if ($config->getLoader() === 'enabled'): ?>
            <div class="ntrn__spinner"></div>
        <?php endif; ?>
        <span class="ntrn__toggle-inner"></span>
    </div>
    <?php endif; ?>
</span>
<?php if ($block->isHomePage()):?>
    <strong class="logo">
<?php else: ?>
    <a class="logo" href="<?= $block->getUrl('') ?>" title="<?= /* @escapeNotVerified */ $storeName ?>">
<?php endif ?>
        <img src="<?= /* @escapeNotVerified */ $block->getLogoSrc() ?>"
             alt="<?= /* @escapeNotVerified */ $block->getLogoAlt() ?>"
             <?= $block->getLogoWidth() ? 'width="' . $block->getLogoWidth() . '"' : '' ?>
             <?= $block->getLogoHeight() ? 'height="' . $block->getLogoHeight() . '"' : '' ?>
        />
<?php if ($block->isHomePage()):?>
    </strong>
<?php else:?>
    </a>
<?php endif?>
