<?php if($breadcrumb){ $i=1; ?>
    <ul aria-label="breadcrumb" class="breadcrumb" itemscope="" itemtype="https://schema.org/BreadcrumbList">

    <li class="breadcrumb-item" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
        <a href="<?php echo PATH_SYSTEM; ?>" itemprop="item" itemtype="https://schema.org/Thing">
            <span itemprop="name"><?php echo $_LANG['home']; ?></span>
        </a>
        <meta itemprop="position" content="1">
    </li>

    <?php foreach ($breadcrumb as $bread_name => $bread_link) { ?>
        <?php if(count(array_filter($breadcrumb)) == $i){ ?>
            <?php if($bread_name){ ?>
            <li class="breadcrumb-item active" aria-current="page">
                <span><?php echo $bread_name; ?></span>
            </li>
            <?php } ?>
        <?php }else{ ?>
            <?php if($bread_name){ ?>
            <li class="breadcrumb-item" itemprop="itemListElement" itemscope="" itemtype="https://schema.org/ListItem">
                <a href="<?php echo ($bread_link == '/') ? : PATH_SYSTEM.$bread_link; ?>" itemprop="item" itemtype="https://schema.org/Thing">
                    <span itemprop="name"><?php echo $bread_name; ?></span>
                </a>
                <meta itemprop="position" content="<?php echo $i+1; ?>">
            </li>
            <?php $i++;} ?>
        <?php } ?>
    <?php } ?>
    </ul>
<?php } ?>