PageRenderTime 42ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

/wp-content/themes/news/archive.php

https://bitbucket.org/lgorence/quickpress
PHP | 63 lines | 29 code | 26 blank | 8 comment | 2 complexity | b9aa18254a6a6e8a2fbbb76d313075e2 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-1.0
  1. <?php
  2. /**
  3. * Archive Template
  4. *
  5. * The archive template is a placeholder for archives views without a more specific template.
  6. *
  7. * @package News
  8. * @subpackage Template
  9. */
  10. get_header(); ?>
  11. <?php do_atomic( 'before_content' ); // Before content hook ?>
  12. <div id="content">
  13. <?php do_atomic( 'open_content' ); // Open content hook ?>
  14. <div class="hfeed">
  15. <?php get_template_part( 'loop-meta' ); // Get the loop meta box ?>
  16. <?php if ( have_posts() ) : ?>
  17. <?php while ( have_posts() ) : the_post(); ?>
  18. <?php do_atomic( 'before_entry' ); // Before loop hook ?>
  19. <div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
  20. <?php do_atomic( 'open_entry' ); // Open loop hook ?>
  21. <?php get_the_image( array( 'meta_key' => array( 'Thumbnail' ), 'size' => 'news-thumbnail' ) ); ?>
  22. <?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
  23. <?php echo apply_atomic_shortcode( 'byline', '<div class="byline">[entry-published] [entry-comments-link] [entry-popup-shortlink] [entry-edit-link before=" | "]</div>' ); ?>
  24. <div class="entry-summary">
  25. <?php the_excerpt(); ?>
  26. </div><!-- .entry-summary -->
  27. <?php do_atomic( 'close_entry' ); // Close loop hook ?>
  28. </div><!-- .hentry -->
  29. <?php do_atomic( 'after_entry' ); // After loop hook ?>
  30. <?php endwhile; ?>
  31. <?php endif; ?>
  32. </div><!-- .hfeed -->
  33. <?php do_atomic( 'close_content' ); // Close content hook ?>
  34. <?php get_template_part( 'loop-nav' ); ?>
  35. </div><!-- #content -->
  36. <?php do_atomic( 'after_content' ); // After content hook ?>
  37. <?php get_footer(); ?>