<?php
    if (empty($breadcrumbs)) {
        return;
    }

    echo '<ul class="breadcrumbs el">';

    $index = 0;
    foreach ($breadcrumbs as $url => $name) {
        ++$index;
        echo '<li ' . ($index === count($breadcrumbs) ? 'class="end"' : '') . '>';
        if (!empty($url)) {
            echo '<a href="' . $url . '">' . $name . '</a> / ';
        } else {
            echo $name;
        }
    }

    echo '</ul>';
?>