-
Notifications
You must be signed in to change notification settings - Fork 1
/
search.php
38 lines (27 loc) · 871 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
37
38
<?php get_header(); ?>
<div class="news-outer">
<div class="news-top">
<div class="news-top-inner">
<h1><?php _e('Search results for','all_wp_theme'); ?> <span>: <?php echo get_search_query(); ?></span></h1>
<?php echo get_template_part('partials/section','search-form'); ?>
</div>
</div>
<div class="news-content">
<main>
<?php if (have_posts()) : ?>
<div class="blog-roll regular">
<?php while (have_posts()) : the_post(); ?>
<?php echo get_template_part('partials/item','news'); ?>
<?php endwhile; ?>
</div>
<?php else : ?>
<p class="no-posts"><?php _e('No posts found','all_wp_theme'); ?></p>
<?php endif; ?>
</main>
<aside>
<?php get_sidebar(); ?>
</aside>
</div>
</div>
<?php echo get_template_part('partials/section','footer'); ?>
<?php get_footer(); ?>