<?php
/**
 * The Template for displaying all single products.
 *
 * Override this template by copying it to yourtheme/woocommerce/single-product.php
 *
 * @author 		WooThemes
 * @package 	WooCommerce/Templates
 * @version     1.6.4
 */

if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly

get_header( 'shop' ); ?>

	<?php
		/**
		 * woocommerce_before_main_content hook
		 *
		 * @hooked woocommerce_output_content_wrapper - 10 (outputs opening divs for the content)
		 * @hooked woocommerce_breadcrumb - 20
		 */
		
		/*do_action( 'woocommerce_before_main_content' );*/
	global $product;
	$sentient_breadcrumb_text = __("You are here:  ","sentient");
	
	?>
	<div class="homepage-container-design  homepage-container-design-top sentient-page-title-container">
		<div class="homepage-container-design-inner">
			<span class="sentient-page-title-text"><?php woocommerce_page_title(); ?></span>
			<span class="sentient-page-breadcrumb-text"><span class="sentient-page-breadcrumb-text-colored"><?php echo $sentient_breadcrumb_text; ?></span><?php woocommerce_breadcrumb(); ?></span>
		</div>
	</div>	
	
	<div class="page-main-container page-main-container-blog sentient-blog-fullwidth sentient-woocommerce-single">
		<div class="middle-container blog-middle-container blog-fullwidth">
			<?php while ( have_posts() ) : the_post(); ?>

				<?php wc_get_template_part( 'content', 'single-product' ); ?>

			<?php endwhile; // end of the loop. ?>
		</div>
		<?php
			$sentinet_related = $product->get_related( '4' );
			if( sizeof( $sentinet_related ) == 0 ){
				/*Do Nothing*/
			} else { ?>
				<div class="sentient-portfolio-related-items-main-container">
					<div class="sentient-portfolio-related-items-main-container-internal">
						<div class="sentient-portfolio-related-items-title"><?php _e('Related Products' , 'sentient'); ?></div>
						<div class="sentient-divider-circle"></div>
						<?php  woocommerce_output_related_products(); ?>
					</div>
				</div>				
			<?php }	?>				
	
	</div>
	
	<?php
		/**
		 * woocommerce_after_main_content hook
		 *
		 * @hooked woocommerce_output_content_wrapper_end - 10 (outputs closing divs for the content)
		 */
		do_action( 'woocommerce_after_main_content' );
	?>

	<?php
		/**
		 * woocommerce_sidebar hook
		 *
		 * @hooked woocommerce_get_sidebar - 10
		 */
		
		/*Removed by Sentient*/
		/*do_action( 'woocommerce_sidebar' );*/
	?>

<?php get_footer( 'shop' ); ?>