Brak opisu

page.php 1.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * The template for displaying all pages
  4. *
  5. * This is the template that displays all pages by default.
  6. * Please note that this is the WordPress construct of pages
  7. * and that other 'pages' on your WordPress site may use a
  8. * different template.
  9. *
  10. * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
  11. *
  12. * @package XShop
  13. */
  14. $xshop_page_container = get_theme_mod('xshop_page_container','container');
  15. get_header();
  16. ?>
  17. <div class="<?php echo esc_attr($xshop_page_container); ?> mt-5 mb-5 pt-5 pb-5">
  18. <div class="row">
  19. <div class="col-lg-12">
  20. <main id="primary" class="site-main">
  21. <?php
  22. while ( have_posts() ) :
  23. the_post();
  24. get_template_part( 'template-parts/content', 'page' );
  25. // If comments are open or we have at least one comment, load up the comment template.
  26. if ( comments_open() || get_comments_number() ) :
  27. comments_template();
  28. endif;
  29. endwhile; // End of the loop.
  30. ?>
  31. </main><!-- #main -->
  32. </div>
  33. </div>
  34. </div>
  35. <?php
  36. get_footer();