Advertisement
Guest User

single-product.php

a guest
Mar 28th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.83 KB | None | 0 0
  1. <?php
  2. /**
  3.  * The Template for displaying a single post
  4.  *
  5.  * For the full license information, please view the Licensing folder
  6.  * that was distributed with this source code.
  7.  *
  8.  * @package Bimber_Theme
  9.  */
  10.  
  11. // Prevent direct script access.
  12. if ( ! defined( 'ABSPATH' ) ) {
  13.     die( 'No direct script access allowed' );
  14. }
  15.  
  16. get_header('shop');
  17. ?>
  18.  
  19.     <div class="g1-row g1-row-layout-page g1-row-padding-m g1-content">
  20.         <div class="g1-row-background">
  21.         </div>
  22.         <div class="g1-row-inner">
  23.  
  24.             <div class="g1-column g1-column-2of3" id="primary">
  25.                 <div id="content" role="main">
  26.  
  27.                     <?php
  28.                     while ( have_posts() ) : the_post();
  29.                         wc_get_template_part( 'content', 'single-product' );
  30.                     endwhile;
  31.                     ?>
  32.  
  33.                 </div><!-- #content -->
  34.             </div><!-- #primary -->
  35.  
  36.             <?php get_sidebar(); ?>
  37.  
  38.         </div>
  39.     </div><!-- .g1-row -->
  40.  
  41.  
  42. <?php get_footer();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement