<?php if (!$page): ?>
<!-- product teaser -->
<div id="<?php print $node->nid; ?>" class="products node node-product-teaser col-md-4"> <?php print render($title_prefix); ?> <?php print render($title_suffix); ?>
  <figure class="product">
    <?php if (!empty($content['field_product_status'])): ?>
    <?php
        /* $field_product_status = field_get_items('node', $node, 'field_product_status');
          $product_status = !empty($field_product_status[0]['taxonomy_term']->name) ? $field_product_status[0]['taxonomy_term']->name : ''; */
     //   hide($content['field_product_status']);
        ?>
    <div class="product-discount"><?php print render($content['field_product_status']); ?></div>
    <?php endif; ?>
    <div class="mediaholder">
    <!--Disable product slides on front page -->
     <?php if (!empty($content['product:field_image'])): ?>
      <?php
          hide($content['product:field_image']);
          if (!empty($content['product:field_image'][0])) {
            print render($content['product:field_image'][0]);
          }
          ?>
      <a href="<?php print $node_url; ?>">
      <div class="cover">
        <?php
              $img1 = !empty($content['product:field_image'][1]) ? $content['product:field_image'][1] : $content['product:field_image'][0];
              print render($img1);
              ?>
             
      </div>
      </a>
      <?php endif; ?>
      <!--//Disable product slides on front page -->
      <?php if (!empty($content['field_product_display'])): ?>
      <?php hide($content['field_product_display']); ?>
      <div class="product-button">
        <?php if (!empty($content['field_product_display']['#items']) && (count($content['field_product_display']['#items']) > 1)): ?>
        <div class="commerce-add-to-cart"> <a class="btn" href="<?php print $node_url; ?>" title="<?php print t('Select options'); ?>"><?php print t('Select options'); ?></a> </div>
        <?php else: ?>
        <?php print render($content['field_product_display']); ?>
        <?php endif; ?>
      </div>
      <?php endif; ?>
    </div>
    <section>
      <?php if ($title): ?>
      <a href="<?php print $node_url; ?>">
      <h5><?php print $title; ?></h5>
      </a>
      <?php endif; ?>
       <!--SKU product search page-->
    <!-- <div class="jewelry-sku">
   <?php /*?> <?php print $content['product:commerce_price']['#object']->sku; ?><?php */?>
     </div>     -->
     <!--//SKU-->
      <?php
          //dsm($node);
          hide($content['comments']);
          hide($content['links']);
		  print render($content);
          ?>
    
     <!--Link to node-->
      <div class="jewelry-more-details">
      <a href="<?php print $node_url; ?>">
      More Details
      </a>
      </div> 
      <!--//Link to node--> 
      </section>
  </figure>
</div>
<!-- // product teaser -->
<?php else: ?>
<div id="node-<?php print $node->nid; ?>" class="<?php print $classes; ?> node-product clearfix"<?php print $attributes; ?>> <?php print $user_picture; ?> <?php print render($title_prefix); ?> <?php print render($title_suffix); ?>
  <?php if ($display_submitted): ?>
  <div class="submitted"> <?php print $submitted; ?> </div>
  <?php endif; ?>
  <div class="content"<?php print $content_attributes; ?>>
    <?php if (!empty($content['product:field_image'])): ?>
    <div class="row">
      <div class="col-md-6 left">
      <!--Guarantee-->
    <?php if (!empty($content['field_product_status'])): ?>   
   <div class="product-discount"><?php print render($content['field_product_status']); ?></div>    
   <br />
<?php endif; ?>
  
  <!--Status tag-->
 
    <?php
     //   $field_product_status = field_get_items('node', $node, 'field_product_status');
   //  $product_status = !empty($field_product_status[0]['taxonomy_term']->name) ? $field_product_status[0]['taxonomy_term']->name : ''; 
    //    hide($content['field_product_status']);
//	print $product_status;
        ?>
 
  <!--//Status tag-->
	  <?php print render($content['product:field_image']); ?> 
      <!--video-->
      <?php if(!empty($content['product:field_product_video_embed'])): ?>
      <div class="video-container">
      <br />
      <?php print render($content['product:field_product_video_embed']); ?>
      </div>
      <?php endif; ?>
      <!--//video-->
      <!--Verification GIA-->
      <?php if(!empty($content['field_product_verification_link'])): ?>
      <?php print render ($content['field_product_verification_link']); ?>
      <?php endif; ?>
      <!--//Verification GIA-->
      <!--Body-->
      <?php /*?><?php print render($content['body']); ?><?php */?>
     
      <!--//Body-->
      </div>
      <?php endif; ?>
      <?php if (!empty($content['product:field_image'])): ?>
      <div class="col-md-6 right">
        <?php endif; ?>
       <!-- <div class="product-title">
          <h2<?php /*?><?php print $title_attributes; ?>><a href="<?php print $node_url; ?>"><?php print $title; ?><?php */?></a></h2>
         <?php /*?> <?php if (!empty($content['product:commerce_price'])): ?>
          <?php print render($content['product:commerce_price']); ?>
          <?php endif; ?><?php */?>
         
        </div>-->
        <?php
          // We hide the comments and links now so that we can render them later.

          hide($content['comments']);
		  hide($content['title_field']);
          hide($content['links']);
		  hide($content['body']);
          hide($content['field_product_price_guarantee']);
		  hide($content['share_btn_field']);
		  hide($content['flag_wishlist']);
		  hide($content['group_details_wrapper']);
		  hide($content['product:commerce_price']);
		  hide($content['product:field_product_price_60_off']);
		  hide($content['group_price_wrapper']);
          if (!empty($content['field_product_display']['attributes'])) {
            
          }
		//  $prod_id = $node->field_product_display['und'][0]['product_id'];
	   //   $product = commerce_product_load($prod_id);
       //   $amount=$product->commerce_price['und'][0]['amount'];
       //   if ($amount==0){
	  //    print '<div class="call-for-price"><strong>Call For Price</strong></div>';
	//	  }
		//  else{
		//  print render($content['product:commerce_price']);
		//  }
		  print render($content['title_field']); 
		  print render($content['body']);
		  print render($content['group_price_wrapper']);
		  $shipping_date =  date('l, F d', strtotime(' + 6 days')) ;
		  print render($content);
		  ?>
       <div class="bottom-links">
       <div class="print-mail"><?php print render($content['links']); ?></div><?php print render($content['flag_wishlist']); ?><?php print render($content['share_btn_field']); ?>
        </div>
      </div>
    </div>
   </div>
 <!--Ring size-->
     <!-- <div class="measurements-ruler">
      <a href="/sites/default/files/ring-size.pdf" target="_blank">Ring Size Guide</a>
      </div>-->
      <!--//Ring size-->
  <?php if ($page): ?>
  <!--Product details-->
 <?php print render($content['group_details_wrapper']); ?>
  <!--Render Highkight region for product banners-->
<?php  print render(block_get_blocks_by_region('highlighted')); ?>
   <div id="product-tabs-wrapper" class="row">
    <div class="col-md-12">
      <ul class="product-tab nav nav-tabs" role="tablist" id="trizzyTab">
        <li  class="active"><a data-toggle="tab" role="tab" href="#item-details"><?php print t('You May Also Like'); ?></a></li>
        <li><a data-toggle="tab" role="tab" href="#product-description"><?php print t('Recently Viewed'); ?></a></li>
        
      </ul>
      <div class="tab-content">
       <div class="tab-pane active" id="item-details">
          <?php
    print views_embed_view('you_may_also_like', 'block');
    ?>
        </div>
        <div class="tab-pane" id="product-description">
          <?php
    print views_embed_view('recently_read', 'block');
    ?>
        </div>
       
      </div>
    </div>
  </div>
</div>
<?php endif; ?>
</div>
<?php endif; ?>
