| 1 | <?php |
|---|
| 2 | /** |
|---|
| 3 | * Displaying all single posts. |
|---|
| 4 | * @package Ultimate Ecommerce Shop |
|---|
| 5 | */ |
|---|
| 6 | get_header(); ?> |
|---|
| 7 | |
|---|
| 8 | <?php do_action( 'ultimate_ecommerce_shop_single_header' ); ?> |
|---|
| 9 | |
|---|
| 10 | <div class="container"> |
|---|
| 11 | <main id="main" role="main" class="content-with-sidebar py-3"> |
|---|
| 12 | <div class="wrapper my-3 mx-auto"> |
|---|
| 13 | <?php |
|---|
| 14 | $ultimate_ecommerce_shop_layout = get_theme_mod( 'ultimate_ecommerce_shop_theme_options','Right Sidebar'); |
|---|
| 15 | if($ultimate_ecommerce_shop_layout == 'One Column'){?> |
|---|
| 16 | <div class="singlebox" class="main-content"> |
|---|
| 17 | <?php while ( have_posts() ) : the_post(); |
|---|
| 18 | get_template_part( 'template-parts/post/single-post' ); |
|---|
| 19 | endwhile; // end of the loop. ?> |
|---|
| 20 | </div> |
|---|
| 21 | <?php }else if($ultimate_ecommerce_shop_layout == 'Three Columns'){?> |
|---|
| 22 | <div class="row"> |
|---|
| 23 | <div class="col-lg-3 col-md-3" id="sidebar"><?php dynamic_sidebar('sidebar-1'); ?></div> |
|---|
| 24 | <div class="col-lg-6 col-md-6 singlebox" class="main-content"> |
|---|
| 25 | <?php while ( have_posts() ) : the_post(); |
|---|
| 26 | get_template_part( 'template-parts/post/single-post' ); |
|---|
| 27 | endwhile; // end of the loop. ?> |
|---|
| 28 | </div> |
|---|
| 29 | <div class="col-lg-3 col-md-3" id="sidebar"><?php dynamic_sidebar('sidebar-1'); ?></div> |
|---|
| 30 | </div> |
|---|
| 31 | <?php }else if($ultimate_ecommerce_shop_layout == 'Four Columns'){?> |
|---|
| 32 | <div class="row"> |
|---|
| 33 | <div class="col-lg-3 col-md-3" id="sidebar"><?php dynamic_sidebar('sidebar-2'); ?></div> |
|---|
| 34 | <div class="col-lg-3 col-md-3 singlebox" class="main-content"> |
|---|
| 35 | <?php while ( have_posts() ) : the_post(); |
|---|
| 36 | get_template_part( 'template-parts/post/single-post' ); |
|---|
| 37 | endwhile; // end of the loop. ?> |
|---|
| 38 | </div> |
|---|
| 39 | <div class="col-lg-3 col-md-3" id="sidebar"><?php dynamic_sidebar('sidebar-2'); ?></div> |
|---|
| 40 | <div class="col-lg-3 col-md-3" id="sidebar"><?php dynamic_sidebar('sidebar-3'); ?></div> |
|---|
| 41 | </div> |
|---|
| 42 | <?php }else if($ultimate_ecommerce_shop_layout == 'Right Sidebar'){?> |
|---|
| 43 | <div class="row"> |
|---|
| 44 | <div class="col-lg-8 col-md-8 singlebox" class="main-content"> |
|---|
| 45 | <?php while ( have_posts() ) : the_post(); |
|---|
| 46 | get_template_part( 'template-parts/post/single-post' ); |
|---|
| 47 | endwhile; // end of the loop. ?> |
|---|
| 48 | </div> |
|---|
| 49 | <div class="col-lg-4 col-md-4" id="sidebar"><?php dynamic_sidebar('sidebar-1'); ?></div> |
|---|
| 50 | </div> |
|---|
| 51 | <?php }else if($ultimate_ecommerce_shop_layout == 'One Column'){?> |
|---|
| 52 | <div class="row"> |
|---|
| 53 | <div class="col-lg-4 col-md-4" id="sidebar"><?php dynamic_sidebar('sidebar-1'); ?></div> |
|---|
| 54 | <div class="col-lg-8 col-md-8 singlebox" class="main-content"> |
|---|
| 55 | <?php while ( have_posts() ) : the_post(); |
|---|
| 56 | get_template_part( 'template-parts/post/single-post' ); |
|---|
| 57 | endwhile; // end of the loop. ?> |
|---|
| 58 | </div> |
|---|
| 59 | </div> |
|---|
| 60 | <?php }else if($ultimate_ecommerce_shop_layout == 'Grid Layout'){?> |
|---|
| 61 | <div class="row"> |
|---|
| 62 | <div class="col-lg-8 col-md-8 singlebox" class="main-content"> |
|---|
| 63 | <?php while ( have_posts() ) : the_post(); |
|---|
| 64 | get_template_part( 'template-parts/post/single-post' ); |
|---|
| 65 | endwhile; // end of the loop. ?> |
|---|
| 66 | </div> |
|---|
| 67 | <div class="col-lg-4 col-md-4" id="sidebar"><?php dynamic_sidebar('sidebar-1'); ?></div> |
|---|
| 68 | </div> |
|---|
| 69 | <?php }else {?> |
|---|
| 70 | <div class="row"> |
|---|
| 71 | <div class="col-lg-8 col-md-8 singlebox" class="main-content"> |
|---|
| 72 | <?php while ( have_posts() ) : the_post(); |
|---|
| 73 | get_template_part( 'template-parts/post/single-post' ); |
|---|
| 74 | endwhile; // end of the loop. ?> |
|---|
| 75 | </div> |
|---|
| 76 | <div class="col-lg-4 col-md-4" id="sidebar"><?php dynamic_sidebar('sidebar-1'); ?></div> |
|---|
| 77 | </div> |
|---|
| 78 | <?php } ?> |
|---|
| 79 | <div class="clearfix"></div> |
|---|
| 80 | </div> |
|---|
| 81 | </main> |
|---|
| 82 | </div> |
|---|
| 83 | |
|---|
| 84 | <?php do_action( 'ultimate_ecommerce_shop_single_footer' ); ?> |
|---|
| 85 | |
|---|
| 86 | <?php get_footer(); ?> |
|---|