<?php 

if ( ! function_exists( 'minimal_blocks_breadcrumb_content' ) ) :

	/**
	 * Display breadcrumb.
	 *
	 * @since 1.0.0
	 */
	function minimal_blocks_breadcrumb_content() {

		// Bail if Breadcrumb disabled.
		$breadcrumb_type = minimal_blocks_get_option( 'breadcrumb_type', true );
		
		// Render breadcrumb.
		switch ( $breadcrumb_type ) {
			case 'simple':
				minimal_blocks_get_breadcrumb();
			break;
			case 'advanced':
				if ( function_exists( 'bcn_display' ) ) {
					bcn_display();
				}
			break;
			default:
			break;
		}
		return;
	}

endif;

add_action( 'minimal_blocks_display_breadcrumb', 'minimal_blocks_breadcrumb_content' );
