<?php
/**
 * Template for Single post
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package     Business Interface
 * @author  WPInterface Team
 * @since   1.0.0
 */

?>

<?php do_action( 'business_interface_before_article' ); ?>

<article id="post-<?php the_ID(); ?>" <?php post_class( 'business-interface-article' ); ?><?php business_interface_schema_markup( 'article' ); ?>>

	<?php
	if ( 'quote' === get_post_format() ) {
		get_template_part( 'template-parts/entry/format/media', 'quote' );
	}

	$business_interface_single_post_elements = business_interface_get_single_post_elements();

	if ( ! empty( $business_interface_single_post_elements ) ) {
		foreach ( $business_interface_single_post_elements as $business_interface_element ) {

			if ( 'content' === $business_interface_element ) {
				do_action( 'business_interface_before_single_content' );
				get_template_part( 'template-parts/entry/entry', $business_interface_element );
				do_action( 'business_interface_after_single_content' );
			} else {
				get_template_part( 'template-parts/entry/entry', $business_interface_element );
			}
		}
	}
	?>

</article><!-- #post-<?php the_ID(); ?> -->

<?php do_action( 'business_interface_after_article' ); ?>
