Update from Git Manager GUI
This commit is contained in:
15
templates/breadcrumb.php
Normal file
15
templates/breadcrumb.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php if ( ! defined( 'ABSPATH' ) ) exit; ?>
|
||||
<nav class="wmw-breadcrumb" aria-label="Breadcrumb">
|
||||
<ol class="wmw-breadcrumb__list">
|
||||
<?php $last = count($items) - 1; foreach ($items as $i => $item): ?>
|
||||
<li class="wmw-breadcrumb__item <?php echo $i === $last ? 'is-current' : ''; ?>">
|
||||
<?php if ($item['url'] && $i !== $last): ?>
|
||||
<a href="<?php echo esc_url($item['url']); ?>" class="wmw-breadcrumb__link"><?php echo esc_html($item['label']); ?></a>
|
||||
<span class="wmw-breadcrumb__sep" aria-hidden="true">›</span>
|
||||
<?php else: ?>
|
||||
<span><?php echo esc_html($item['label']); ?></span>
|
||||
<?php endif; ?>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ol>
|
||||
</nav>
|
||||
Reference in New Issue
Block a user