Advertisement
Guest User

Fruncolo

a guest
Apr 11th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. <?php
  2. /**
  3. * The template for displaying Archive pages.
  4. *
  5. * Used to display archive-type pages if nothing more specific matches a query.
  6. * For example, puts together date-based pages if no date.php file exists.
  7. *
  8. * If you'd like to further customize these archive views, you
  9.  
  10. get_header(); ?>
  11.  
  12. <div id="container" class="<?php echo fluida_get_layout_class(); ?>">
  13. <main id="main" role="main" class="main">
  14. <?php cryout_before_content_hook(); ?>
  15.  
  16. <?php if ( have_posts() ) : ?>
  17.  
  18. <header class="page-header pad-container" <?php cryout_schema_microdata( 'element' ); ?>>
  19. <?php
  20. // Load custom header if author
  21. if (is_author()) {
  22. get_template_part( 'content/author-bio' );
  23. // Default for all archives
  24. } else {
  25. the_archive_title( '<h1 class="page-title" ' . cryout_schema_microdata('entry-title', 0) . '>', '</h1>' );
  26. the_archive_description( '<div class="taxonomy-description">', '</div>' );
  27. }
  28. ?>
  29. </header><!-- .page-header -->
  30.  
  31. <div id="content-masonry" class="content-masonry" <?php cryout_schema_microdata( 'blog' ); ?>>
  32. <?php
  33. while ( have_posts() ) : the_post();
  34. /*
  35. * Include the Post-Format-specific template for the content.
  36. * If you want to override this in a child theme, then include a file
  37. * called content-___.php (where ___ is the Post Format name) and that will be used instead.
  38. */
  39. get_template_part( 'content/content', get_post_format() );
  40. endwhile;
  41. ?>
  42. </div><!--content-masonry-->
  43. <?php fluida_pagination();
  44.  
  45. // If no content, include the "No posts found" template.
  46. else :
  47. get_template_part( 'content/content', 'notfound' );
  48. endif;
  49.  
  50. cryout_after_content_hook(); ?>
  51. </main><!-- #main -->
  52.  
  53. <?php fluida_get_sidebar(); ?>
  54. </div><!-- #container -->
  55.  
  56. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement