full-width-page.php 878 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. /**
  3. * Template Name: No Sidebar
  4. *
  5. * @package Ixion
  6. */
  7. get_header();
  8. //Starting The Loop earlier to take advantage of functions like has_post_thumbnail()
  9. while ( have_posts() ) : the_post();
  10. if ( has_post_thumbnail() ) : ?>
  11. <div class="post-thumbnail">
  12. <?php the_post_thumbnail( 'ixion-featured-image' ); ?>
  13. </div>
  14. <?php endif; ?>
  15. <header class="entry-header">
  16. <?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
  17. </header>
  18. <div id="primary" class="content-area">
  19. <main id="main" class="site-main" role="main">
  20. <?php
  21. get_template_part( 'components/page/content', 'page' );
  22. // If comments are open or we have at least one comment, load up the comment template.
  23. if ( comments_open() || get_comments_number() ) :
  24. comments_template();
  25. endif;
  26. ?>
  27. </main>
  28. </div>
  29. <?php
  30. endwhile; // End of the loop.
  31. get_footer();