1function bulma_breadcrumbs() {
2    $out='';
3    $out .= '<nav class="breadcrumb" aria-label="breadcrumbs">';
4    $out .= '<ul>';
5    $crumbs = breadcrumbs(); //setup crumb trace
6
7    //render crumbs, highlight the last one
8    $last = count($crumbs);
9    $i    = 0;
10    foreach($crumbs as $id => $name) {
11        $i++;
12        if($i == $last) {
13            $out .= '<li class="is-active">';
14        } else {
15            $out .= '<li>';
16        }
17        $out .= tpl_link(wl($id), hsc($name), 'aria-current="page" title="'.$id.'"', true);
18        $out .= '</li>';
19    }
20    $out .= '</ul>';
21    $out .= '</nav>';
22    print $out;
23}
24