front-page.php 1000 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?php
  2. /**
  3. * The template for displaying the front page
  4. *
  5. * @package Ixion
  6. */
  7. if ( 'posts' == get_option( 'show_on_front' ) ) :
  8. get_template_part( 'index' );
  9. else :
  10. get_header();
  11. ?>
  12. <div id="primary" class="content-area">
  13. <main id="main" class="site-main" role="main">
  14. <?php
  15. if ( have_posts() ) :
  16. /* Start the Loop */
  17. while ( have_posts() ) : the_post();
  18. if ( '' !== get_the_content() ) {
  19. /*
  20. * Include the Post-Format-specific template for the content.
  21. * If you want to override this in a child theme, then include a file
  22. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  23. */
  24. get_template_part( 'components/page/content', 'page' );
  25. }
  26. endwhile;
  27. get_template_part( 'components/features/recent-posts/recent-posts' );
  28. else :
  29. get_template_part( 'components/post/content', 'none' );
  30. endif; ?>
  31. </main>
  32. </div>
  33. <?php
  34. get_sidebar();
  35. get_footer();
  36. endif;