-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsearch.php
More file actions
59 lines (38 loc) · 2.15 KB
/
Copy pathsearch.php
File metadata and controls
59 lines (38 loc) · 2.15 KB
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
<?php
get_template_part( 'header' ); ?>
<?php get_template_part( 'template-parts/header/header-basic' ); ?>
<div id="main">
<div class="inner">
<?php if ( hovercraft_should_show_sidebar() ) : ?>
<div id="primary">
<?php else : ?>
<div id="primary-wide">
<?php endif; // end sidebar ?>
<div id="content-wrapper">
<?php get_template_part( 'template-parts/misc/breadcrumbs' ); ?>
<div id="content-padded">
<h1 class="search-title"><?php esc_html_e( 'Search results for:', 'hovercraft' ); ?> <span class="search-query"><?php echo esc_html( get_search_query() ); ?></span></h1>
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'post-tease-archive' ); ?>>
<?php get_template_part( 'template-parts/content/featured-image-archive' ); ?>
<h4 class="entry-title"><a href="<?php echo esc_url( get_permalink() ); ?>"><?php echo esc_html( get_the_title() ); ?></a></h4>
<div class="entry-summary post-excerpt-archive"><?php the_excerpt(); ?></div>
</article><!-- post-tease-archive -->
<?php endwhile; // end search results ?>
<?php else : ?>
<p><?php esc_html_e( 'No results found.', 'hovercraft' ); ?></p>
<?php endif; ?><!-- end the loop -->
<?php get_template_part( 'template-parts/content/pagination' ); ?>
<div class="clear"></div>
</div><!-- content-padded -->
</div><!-- content-wrapper -->
<div class="clear"></div>
</div><!-- primary -->
<?php if ( hovercraft_should_show_sidebar() ) : ?>
<?php get_template_part( 'sidebar' ); ?>
<?php endif; // end sidebar ?>
<div class="clear"></div>
</div><!-- inner -->
</div><!-- main -->
<?php get_template_part( 'footer' ); ?>