-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
46 lines (35 loc) · 1.49 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
37
38
39
40
41
42
43
44
45
46
<?php get_header(); ?>
<div class="the-body-content">
<div class="fuid-container banner">
<div class="mk-bgimg"> </div>
<div class="the-b-img">
<div class="the-actual-img" style="background-image: url('<?php $thumb_id = get_post_thumbnail_id();
$thumb_url = wp_get_attachment_image_src($thumb_id, 'thumbnail-size', true);
echo $thumb_url[0]; ?>')">
</div>
</div>
<div class="container">
<div class="content">
<div class="ms-caption">
<h2><?php printf(__('Search Results for: %s', 'shape'), '<span class="results-name">' . get_search_query() . '</span>'); ?></h2>
</div>
</div>
</div>
</div>
<div class="container">
<?php if (have_posts()) :
while (have_posts()) : the_post(); ?>
<div class="the-results">
<a href="<?php the_permalink(); ?>">
<h3><?php the_title(); ?></h3>
<?php the_excerpt(); ?>
</a>
</div>
<?php endwhile; ?>
<?php wp_reset_postdata(); ?>
<?php else : ?>
<p class="no-search-results"><?php esc_html_e('Sorry, There are no results for your search'); ?></p>
<?php endif; ?>
</div>
</div>
<?php get_footer(); ?>