-
Notifications
You must be signed in to change notification settings - Fork 5
/
search.php
64 lines (38 loc) · 1.62 KB
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
<?php
/**
* Search Template
*
* The search template is loaded when a visitor uses the search form to search for something
* on the site.
*
* @package News
* @subpackage Template
*/
get_header(); ?>
<?php do_atomic( 'before_content' ); // Before content hook ?>
<div id="content">
<?php do_atomic( 'open_content' ); // Open content hook ?>
<div class="hfeed">
<?php get_template_part( 'loop-meta' ); // Get the loop meta box ?>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php do_atomic( 'before_entry' ); // Before entry hook ?>
<div id="post-<?php the_ID(); ?>" class="<?php hybrid_entry_class(); ?>">
<?php do_atomic( 'open_entry' ); // Open loop hook ?>
<?php get_the_image( array( 'meta_key' => array( 'Thumbnail' ), 'size' => 'news-thumbnail' ) ); ?>
<?php echo apply_atomic_shortcode( 'entry_title', '[entry-title]' ); ?>
<?php echo apply_atomic_shortcode( 'byline', '<div class="byline">[entry-published] [entry-comments-link] [entry-popup-shortlink] [entry-edit-link before=" | "]</div>' ); ?>
<div class="entry-summary">
<?php the_excerpt(); ?>
</div><!-- .entry-summary -->
<?php do_atomic( 'close_entry' ); // Close loop hook ?>
</div><!-- .hentry -->
<?php do_atomic( 'after_entry' ); // After entry hook ?>
<?php endwhile; ?>
<?php endif; ?>
</div><!-- .hfeed -->
<?php do_atomic( 'close_content' ); // Close content hook ?>
<?php get_template_part( 'loop-nav' ); ?>
</div><!-- #content -->
<?php do_atomic( 'after_content' ); // After content hook ?>
<?php get_footer(); ?>