-
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathsearch.php
52 lines (36 loc) · 1.86 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
<?php get_template_part( 'header' ); ?>
<?php get_template_part( 'template-parts/header/header-basic' ); ?>
<div id="main">
<div class="inner">
<?php
$hovercraft_sidebar_status_checked = get_theme_mod( 'hovercraft_sidebar_status' ) ? true : false;
if ( $hovercraft_sidebar_status_checked == true ) { ?>
<div id="primary">
<?php } else { ?>
<div id="primary-wide">
<?php } ?>
<div id="content-wrapper">
<?php get_template_part( 'template-parts/content/breadcrumbs' ); ?>
<div id="content-padded">
<h1><?php _e( 'Search results for:', 'hovercraft' ); ?> <span class="search-query"><?php echo get_search_query(); ?></span></h1>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="post-tease-archive">
<?php get_template_part( 'template-parts/content/featured-image-archive' ); ?>
<h4><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h4>
<div class="post-excerpt-archive"><?php the_excerpt(); ?></div>
</div><!-- post-tease-archive -->
<?php endwhile; endif; ?><!-- 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 ( get_theme_mod( 'hovercraft_sidebar_status' ) == 1 ) {
get_template_part( 'sidebar' );
} ?>
<div class="clear"></div>
</div><!-- inner -->
</div><!-- main -->
<?php get_template_part( 'footer' ); ?>