1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. * @package F2
  6. * @since F2 2.0
  7. */
  8. get_header(); ?>
  9. <div id="primary" class="content-area">
  10. <div id="content" class="site-content" role="main">
  11. <?php if ( have_posts() ) : ?>
  12. <?php /* Start the Loop */ ?>
  13. <?php while ( have_posts() ) : the_post(); ?>
  14. <?php
  15. /* Include the Post-Format-specific template for the content.
  16. * If you want to overload this in a child theme then include a file
  17. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  18. */
  19. get_template_part( 'content', get_post_format() );
  20. ?>
  21. <?php endwhile; ?>
  22. <?php f2_content_nav( 'nav-below' ); ?>
  23. <?php else : ?>
  24. <?php get_template_part( 'no-results', 'index' ); ?>
  25. <?php endif; ?>
  26. </div><!-- #content .site-content -->
  27. </div>
  28. <?php get_sidebar(); ?>
  29. <?php get_footer(); ?>