-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsearch.php
More file actions
64 lines (54 loc) · 1.63 KB
/
search.php
File metadata and controls
64 lines (54 loc) · 1.63 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
60
61
62
63
64
<?php
/**
* @author Kim-Christian Meyer <kim.meyer@palasthotel.de>
* @package digitale-pracht
*/
get_header();
?>
<div id="primary" class="content-area">
<main id="main" class="site-main" role="main">
<div class="grid-container grid-container-c-1d1 has-title">
<div class="grid-container-before">
<h1 class="grid-container-title"><?php _e( 'Search and find', 'digitale-pracht' ) ?></h1>
</div>
<div class="grid-slots-wrapper">
<div class="grid-slot grid-slot-1d1">
<div class="grid-box is-indented">
<?php get_search_form(); ?>
</div>
</div>
</div>
</div>
<?php if ( have_posts() ) : ?>
<div class="grid-container grid-container-c-1d1 has-no-title has-no-border-top has-no-padding-top">
<div class="grid-slots-wrapper">
<div class="grid-slot grid-slot-1d1">
<div class="grid-box grid-box-posts has-no-title">
<?php
// Start the loop.
while ( have_posts() ) : the_post();
get_template_part( 'teaser', 'illustrated' );
// End the loop.
endwhile;
?>
</div>
</div>
</div>
</div>
<?php // Previous/next page navigation.
the_posts_pagination( array(
'mid_size' => 2,
'prev_text' => __( 'Previous', 'digitale-pracht' ),
'next_text' => __( 'Next', 'digitale-pracht' ),
'screen_reader_text' => __( 'Posts navigation', 'digitale-pracht' ),
) );
?>
<?php
// If no content, include the "No posts found" template.
else :
get_template_part( 'content', 'no-search-result' );
endif;
?>
</main><!-- .site-main -->
</div><!-- .content-area -->
<?php get_footer(); ?>