A WordPress theme I used to use on www.chriswiegman.com.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 

55 lines
1.1 KiB

  1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. * @since 5.0.0
  6. *
  7. * @package CW\Theme\Templates\Index
  8. *
  9. * @author Chris Wiegman <chris@chriswiegman.com>
  10. */
  11. namespace CW\Theme\Templates\Index;
  12. use CW\Theme\Functions\Template_Tags;
  13. get_header();
  14. ?>
  15. <div id="primary" class="content-area">
  16. <main id="main" class="site-main" role="main">
  17. <?php if ( have_posts() ) : ?>
  18. <?php /* Start the Loop */ ?>
  19. <?php
  20. while ( have_posts() ) :
  21. the_post();
  22. ?>
  23. <?php
  24. /**
  25. * Include the Post-Format-specific template for the content.
  26. * If you want to override this in a child theme, then include a file
  27. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  28. */
  29. get_template_part( 'template-parts/content', get_post_format() );
  30. ?>
  31. <?php endwhile; ?>
  32. <?php Template_Tags\paging_nav(); ?>
  33. <?php else : ?>
  34. <?php get_template_part( 'template-parts/content', 'none' ); ?>
  35. <?php endif; ?>
  36. </main><!-- #main -->
  37. </div><!-- #primary -->
  38. <?php
  39. get_sidebar();
  40. get_footer();