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

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

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