full-width-page.php 924 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. <?php
  2. /**
  3. * Template Name: Full Width, No Sidebar
  4. *
  5. * @package Dara
  6. */
  7. get_header(); ?>
  8. <?php while ( have_posts() ) : the_post(); ?>
  9. <?php get_template_part( 'components/page/content', 'hero' ); ?>
  10. <?php endwhile; ?>
  11. <?php rewind_posts(); ?>
  12. <div class="content-wrapper full-width <?php echo esc_attr( dara_additional_class() ); ?>">
  13. <div id="primary" class="content-area">
  14. <div id="main" class="site-main" role="main">
  15. <?php while ( have_posts() ) : the_post(); ?>
  16. <?php get_template_part( 'components/page/content', 'page' ); ?>
  17. <?php
  18. // If comments are open or we have at least one comment, load up the comment template
  19. if ( comments_open() || get_comments_number() ) {
  20. comments_template();
  21. }
  22. ?>
  23. <?php endwhile; // end of the loop. ?>
  24. </div><!-- #content -->
  25. </div><!-- #primary -->
  26. </div><!-- .content-wrapper -->
  27. <?php get_footer(); ?>