-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathsearch.php
More file actions
38 lines (22 loc) · 851 Bytes
/
search.php
File metadata and controls
38 lines (22 loc) · 851 Bytes
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 id="content" class="row justify-content-center">
<div id="main" class="<?php simple_boostrap_main_classes(); ?>" role="main">
<div class="block block-title">
<h1><?php echo _x("Search for:", "label", "simple-bootstrap"); ?> <?php echo esc_attr(get_search_query()); ?></h1>
</div>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<?php simple_boostrap_display_post(true); ?>
<?php endwhile; ?>
<?php simple_boostrap_page_navi(); ?>
<?php else : ?>
<!-- this area shows up if there are no results -->
<article id="post-not-found" class="block">
<p><?php _e("No items found.", "simple-bootstrap"); ?></p>
</article>
<?php endif; ?>
</div>
<?php get_sidebar("left"); ?>
<?php get_sidebar("right"); ?>
</div>
<?php get_footer(); ?>