<?php
/**
 * Maho
 *
 * @category    design
 * @package     default_default
 * @copyright   Copyright (c) 2006-2020 Magento, Inc. (https://magento.com)
 * @copyright   Copyright (c) 2021-2022 The OpenMage Contributors (https://openmage.org)
 * @copyright   Copyright (c) 2024 Maho (https://mahocommerce.com)
 * @license     https://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
?>
<?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><?= $this->escapeHtml($_link['label']) ?></span>
            <?php else: ?>
                <strong><?= $this->escapeHtml($_link['label']) ?></strong>
            <?php endif ?>
        <?php else: ?>
            <a href="<?= $_link['url'] ?>" title="<?= $this->escapeHtml($_link['title']) ?>"><?= $this->escapeHtml($_link['label']) ?></a>
        <?php endif ?>
        <?php if($_index!=$_size-1): ?>
            &raquo;
        <?php endif ?>
    </li>
    <?php endforeach ?>
</ul>
<?php endif ?>
