forked from bymattlee/bymattlee-wp-starter-theme
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
36 lines (22 loc) · 937 Bytes
/
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
<?php get_header(); ?>
<div data-taxi>
<div class="l-container u-grid u-gap-60 md:u-grid-cols-3 md:u-gap-80" data-taxi-view>
<main class="md:u-col-span-2" role="main" data-s2r="group">
<header>
<h1 class="u-h1" data-s2r-el="block-fade-up"><?php printf( __( 'Search: %s', 'bymattlee' ), get_search_query() ); ?></h1>
</header>
<div class="u-mt-20 md:u-mt-40" data-s2r-el="stagger-fade-up" data-s2r-delay="0.2">
<?php if ( have_posts() ) : ?>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'partials/news/preview' ); ?>
<?php endwhile; ?>
<?php get_template_part( 'partials/global/pagination-archive' ); ?>
<?php else : ?>
<?php get_template_part( 'partials/global/not_found' ); ?>
<?php endif; ?>
</div>
</main>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>