init
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
<?php
|
||||
/** @var \Esun\CustomerMessage\Block\Account\NavigationLink $block */
|
||||
/** @var \Magento\Framework\Escaper $escaper */
|
||||
$unreadCount = $block->getUnreadCount();
|
||||
$label = __((string)$block->getLabel());
|
||||
?>
|
||||
<li class="nav item<?= $block->isCurrent() ? ' current' : '' ?>">
|
||||
<?php if ($block->isCurrent()): ?>
|
||||
<strong aria-current="page">
|
||||
<?php else: ?>
|
||||
<a href="<?= $escaper->escapeUrl($block->getHref()) ?>"<?= $block->getTitle() ? ' title="' . $escaper->escapeHtmlAttr(__((string)$block->getTitle())) . '"' : '' ?>>
|
||||
<?php endif; ?>
|
||||
<span><?= $escaper->escapeHtml($label) ?></span>
|
||||
<?php if ($unreadCount): ?>
|
||||
<b class="esun-unread-badge" aria-label="<?= $escaper->escapeHtmlAttr(__('%1 unread messages', $unreadCount)) ?>"><?= (int)$unreadCount ?></b>
|
||||
<?php endif; ?>
|
||||
<?= $block->isCurrent() ? '</strong>' : '</a>' ?>
|
||||
</li>
|
||||
Reference in New Issue
Block a user