-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
36 lines (32 loc) · 1.01 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
<?php get_header(); ?>
<div class="container">
<div class="alert alert-blue mt-3 shadow">
<h4 class="text-uppercase text-center pt-2">
<?php printf( __( 'Search Results for: "%s"', 'superfluous-nomenclature' ), get_search_query() ); ?>
</h4>
</div>
<div class="row">
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="col-md-12 mb-4">
<section>
<h1 class="tag-link mb-5 text-uppercase">
<a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>">
<?php the_title(); ?>
</a>
</h1>
<?php search_excerpt_highlight(); ?>
<hr>
</section>
</div>
<?php endwhile; else : ?>
<div class="col alert alert-blue text-center font-weight-bold">
<?php esc_html_e( 'Sorry, we could not find what you were searching for, please try again.' ); ?>
<?php endif; ?>
</div>
</div>
<div class="col">
<?php echo wbwbeer_pagination(); ?>
</div>
</div>
</div>
<?php get_footer(); ?>