<?php
/**
 * Template part for displaying posts with the "classic" display
 *
 * @link https://codex.wordpress.org/Template_Hierarchy
 *
 * @package WordPress
 * @subpackage Tattoopress
 * @version 3.3.4
 */
if ( has_post_thumbnail() && ( tattoopress_is_short_post_format() ) ) {
	$style = 'background-image:url(' . get_the_post_thumbnail_url( get_the_ID(), 'large' ) . ');';
}

extract(
	wp_parse_args(
		$template_args,
		array(
			'post_excerpt_type'     => 'auto',
			'post_excerpt_length'   => 'shorten',
			'post_display_elements' => 'show_thumbnail,show_date,show_text,show_author,show_category,show_extra_meta',
		)
	)
);

$post_display_elements = tattoopress_list_to_array( $post_display_elements );
?>
<article <?php tattoopress_post_attr( 'post-excert-type-' . $post_excerpt_type ); ?>>
	<div class="entry-container">
		<?php
		/**
		 * Hook: tattoopress_before_post_content_standard.
		 *
		 * @hooked tattoopress_output_post_content_standard_sticky_label - 10
		 */
		do_action( 'tattoopress_before_post_content_standard', $post_display_elements );

		/**
		 * Hook: tattoopress_before_post_content_standard_title.
		 *
		 * @hooked tattoopress_output_post_content_standard_media - 10
		 * @hooked tattoopress_output_post_content_standard_date - 10
		 */
		do_action( 'tattoopress_before_post_content_standard_title', $post_display_elements, $display, get_the_ID() );

		/**
		 * Hook: tattoopress_post_content_standard_title.
		 *
		 * @hooked tattoopress_output_post_content_standard_title - 10
		 */
		do_action( 'tattoopress_post_content_standard_title', $post_display_elements, $display );

		/**
		 * Hook: tattoopress_after_post_content_standard_title.
		 *
		 * @hooked tattoopress_output_post_content_standard_excerpt - 10
		 */
		do_action( 'tattoopress_after_post_content_standard_title', $post_display_elements, $post_excerpt_type );

		/**
		 * Hook: tattoopress_after_post_content_standard.
		 *
		 * @hooked tattoopress_output_post_content_standard_meta - 10
		 */
		do_action( 'tattoopress_after_post_content_standard', $post_display_elements );
		?>
	</div>
</article><!-- #post-## -->
