Guest User

Untitled

a guest
May 11th, 2015
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.33 KB | None | 0 0
  1. <?php
  2. /**
  3. * The main template file.
  4. *
  5. * This is the most generic template file in a WordPress theme
  6. * and one of the two required files for a theme (the other being style.css).
  7. * It is used to display a page when nothing more specific matches a query.
  8. * E.g., it puts together the home page when no home.php file exists.
  9. * Learn more: http://codex.wordpress.org/Template_Hierarchy
  10. *
  11. * @package Alizee
  12. */
  13.  
  14. get_header(); ?>
  15.  
  16. <div id="primary" class="content-area col-md-12">
  17. <main id="main" class="site-main" role="main">
  18.  
  19. <?php if ( have_posts() ) : ?>
  20.  
  21. <?php /* Start the Loop */ ?>
  22. <?php $c = 0; ?>
  23. <div class="home-layout">
  24. <?php while ( have_posts() ) : the_post(); ?>
  25.  
  26. <?php
  27. /* Include the Post-Format-specific template for the content.
  28. * If you want to override this in a child theme, then include a file
  29. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  30. */
  31. get_template_part( 'content', get_post_format() );
  32. ?>
  33.  
  34. <?php $c++; ?>
  35. <?php endwhile; ?>
  36. </div>
  37.  
  38. <?php alizee_paging_nav(); ?>
  39.  
  40. <?php else : ?>
  41.  
  42. <?php get_template_part( 'content', 'none' ); ?>
  43.  
  44. <?php endif; ?>
  45.  
  46. </main><!-- #main -->
  47. </div><!-- #primary -->
  48.  
  49. <?php get_sidebar(); ?>
  50. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment