2011-12-12 11:35:54 +00:00
|
|
|
<?php
|
|
|
|
/**
|
2012-08-14 18:05:45 +00:00
|
|
|
* Shop breadcrumb
|
|
|
|
*
|
|
|
|
* @author WooThemes
|
|
|
|
* @package WooCommerce/Templates
|
2014-12-05 13:42:19 +00:00
|
|
|
* @version 2.3.0
|
2014-09-04 09:17:19 +00:00
|
|
|
* @see woocommerce_breadcrumb()
|
2011-12-12 11:35:54 +00:00
|
|
|
*/
|
|
|
|
|
2014-07-28 20:44:54 +00:00
|
|
|
if ( ! defined( 'ABSPATH' ) ) {
|
2014-12-05 13:42:19 +00:00
|
|
|
exit;
|
2014-07-28 20:44:54 +00:00
|
|
|
}
|
2014-12-05 13:42:19 +00:00
|
|
|
?>
|
2012-10-15 10:57:58 +00:00
|
|
|
|
2014-12-05 13:42:19 +00:00
|
|
|
<?php if ( $breadcrumb ) : ?>
|
2011-12-12 11:35:54 +00:00
|
|
|
|
2014-12-05 13:42:19 +00:00
|
|
|
<?php echo $wrap_before; ?>
|
2013-03-10 15:12:18 +00:00
|
|
|
|
2014-12-05 13:42:19 +00:00
|
|
|
<?php foreach ( $breadcrumb as $key => $crumb ) : ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2014-12-05 13:42:19 +00:00
|
|
|
<?php echo $before; ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2014-12-05 13:42:19 +00:00
|
|
|
<?php if ( ! empty( $crumb[1] ) && sizeof( $breadcrumb ) !== $key + 1 ) : ?>
|
|
|
|
<?php echo '<a href="' . esc_url( $crumb[1] ) . '">' . esc_html( $crumb[0] ) . '</a>'; ?>
|
|
|
|
<?php else : ?>
|
|
|
|
<?php echo esc_html( $crumb[0] ); ?>
|
|
|
|
<?php endif; ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2014-12-05 13:42:19 +00:00
|
|
|
<?php echo $after; ?>
|
2012-08-14 18:05:45 +00:00
|
|
|
|
2014-12-05 13:42:19 +00:00
|
|
|
<?php if ( sizeof( $breadcrumb ) !== $key + 1 ) : ?>
|
|
|
|
<?php echo $delimiter; ?>
|
|
|
|
<?php endif; ?>
|
2013-04-08 19:10:55 +00:00
|
|
|
|
2014-12-05 13:42:19 +00:00
|
|
|
<?php endforeach; ?>
|
2012-11-27 16:22:47 +00:00
|
|
|
|
2014-12-05 13:42:19 +00:00
|
|
|
<?php echo $wrap_after; ?>
|
2012-11-27 16:22:47 +00:00
|
|
|
|
2014-12-05 13:42:19 +00:00
|
|
|
<?php endif; ?>
|