<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */
?>
<?php if (!empty($links)) : ?>
<ul class="breadcrumbs">
    <?php $_size = count($links); ?>
    <?php foreach ($links as $_index => $_link) : ?>
    <li>
        <?php if (empty($_link['url'])) : ?>
            <?php if ($_index != $_size-1) : ?>
                <span><?= $block->escapeHtml($_link['label']) ?></span>
            <?php else : ?>
                <strong><?= $block->escapeHtml($_link['label']) ?></strong>
            <?php endif; ?>
        <?php else : ?>
            <a href="<?=  $block->escapeUrl($_link['url']) ?>" title="<?= $block->escapeHtml($_link['title']) ?>"><?= $block->escapeHtml($_link['label']) ?></a>
        <?php endif; ?>
        <?php if ($_index != $_size-1) : ?>
            &raquo;
        <?php endif; ?>
    </li>
    <?php endforeach; ?>
</ul>
<?php endif; ?>
