<?php
/**
 * Single product content collection
 *
 * @package wpstream-theme
 *
 * @var WC_Product $product
 * @var int        $post_id
 */

?>

<!-- Post Additional Information Section -->
<?php require get_template_directory() . '/template-parts/single/post-additional-content.php'; ?>

<ul class="nav nav-tabs nav-pills" id="wpstream-product-collection-content-tab-bar" role="tablist">
	<li class="nav-item" role="presentation">
		<button class="nav-link active" id="wpstream-episodes-tab" data-bs-toggle="tab" data-bs-target="#wpstream-episodes" type="button" role="tab" aria-controls="wpstream-episodes" aria-selected="true">
			<?php esc_html_e( 'Episodes', 'hello-wpstream' ); ?>
		</button>
	</li>
	<li class="nav-item" role="presentation">
		<button class="nav-link" id="wpstream-content-tab" data-bs-toggle="tab" data-bs-target="#wpstream-content" type="button" role="tab" aria-controls="wpstream-content" aria-selected="false">
			<?php esc_html_e( 'Details', 'hello-wpstream' ); ?>
		</button>
	</li>

</ul>

<div class="tab-content" id="wpstream-product-collection-content-tab">
	<div class="tab-pane fade show active" id="wpstream-episodes" role="tabpanel" aria-labelledby="wpstream-episodes-tab">

		<?php
		$wpstream_section_title = esc_html__( 'Episodes', 'hello-wpstream' );
		$show_bundled_content   = true;
		require get_template_directory() . '/template-parts/single/section/video-episodes-content.php';
		$show_bundled_content = false;
		?>

		<!-- Gallery Section -->
		<?php require get_template_directory() . '/template-parts/single/gallery-content.php'; ?>
	</div>

	<div class="tab-pane fade" id="wpstream-content" role="tabpanel" aria-labelledby="wpstream-content-tab">
		<div class="wpstream-post-content">
			<?php echo wp_kses_post( wpautop( wptexturize( $product->get_description() ) ) ); ?>
		</div>

		<div class="wpstream-vod-terms-main">
			<?php
			echo wpstream_theme_show_item_categories( $post_id );//phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
			?>
		</div>

		<!-- Author Information Section -->
		<?php
        if ( isset($show_comments_section) && $show_comments_section ){
	        require get_template_directory() . '/template-parts/single/post-comments.php';
        }
        ?>
	</div>
</div>







