?>

<article id="product-<?php 
the_ID();
?>
" <?php 
post_class('al_product responsive type-page product-' . $product_id);
?>
>
	<?php 
do_action('before_product_entry', $post, $single_names);
?>
	<div class="entry-content product-entry"><?php 
//do_action( 'start_product_entry', $post, $single_names );
do_action('before_product_details', $product_id, $single_options);
$details_class = product_gallery_enabled($single_options['enable_product_gallery'], $single_options['enable_product_gallery_only_when_exist'], $post);
?>
		<div id="product_details" class="product-details <?php 
echo $details_class;
?>
">
			<?php 
do_action('product_details', $post, $single_names);
?>
		</div>
		<?php 
if (current_user_can('edit_products')) {
    ?>
			<div class="entry-meta">
				<?php 
    edit_post_link(__('Edit Product', 'ecommerce-product-catalog'), '<span class="edit-link">', '</span>');
<article id="post-<?php 
the_ID();
?>
" <?php 
post_class('al_product responsive');
?>
>
	<?php 
do_action('before_product_entry', $post, $single_names);
?>
	<div class="entry-content product-entry"><?php 
do_action('start_product_entry', $post, $single_names);
$enable = isset($single_options['enable_product_gallery']) ? $single_options['enable_product_gallery'] : '';
$enable_inserted = isset($single_options['enable_product_gallery_only_when_exist']) ? $single_options['enable_product_gallery_only_when_exist'] : '';
$details_class = product_gallery_enabled($enable, $enable_inserted, $post);
show_product_gallery($post, $single_options);
do_action('before_product_details');
?>
	
		<div id="product_details" class="product-details <?php 
echo $details_class;
?>
">
			<?php 
do_action('product_details', $post, $single_names);
?>
		</div>
		<?php 
if (current_user_can('edit_products')) {
    ?>