';
foreach ( $breadcrumb as $key => $crumb ) {
echo $before; //PHPCS: XSS ok.
if ( ! empty( $crumb[1] ) && count( $breadcrumb ) !== $key + 1 ) {
echo '' . esc_html( $crumb[0] ) . '';
} else {
echo '' . esc_html( $crumb[0] ) . '';
}
echo $after; //PHPCS: XSS ok.
if ( count( $breadcrumb ) !== $key + 1 ) {
echo '' . $delimiter . ''; //PHPCS: XSS ok.
}
}
echo '';
echo $wrap_after; //PHPCS: XSS ok.
}