forked from Jonnyauk/Wonderflux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathloop-content-no-search-results.php
36 lines (32 loc) · 1 KB
/
loop-content-no-search-results.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
/**
* Wonderflux no search results returned content template part
*
* Customise this in your child theme by:
* - Copying this file to your child theme and customising - it will over-ride this file
*
* @package Wonderflux
*/
$search_val = trim(get_search_query());
?>
<div id="post-0" class="post-0 type-error format-standard hentry single-post paged-return-0 first-in-loop last-in-loop">
<h1 class="entry-title">
<?php
if (!empty($search_val))
printf( esc_html__( 'No search results found for: %s', 'wonderflux' ), '<span>' . $search_val . '</span>' );
else
_e( 'No search value entered', 'wonderflux' );
?>
</h1>
<div class="entry-content">
<p>
<?php
if (!empty($search_val))
esc_html_e( 'Sorry, nothing matched your search criteria. Please try again with some different keywords.', 'wonderflux' );
else
esc_html_e( 'Sorry, you did not enter a search keyword. Please try again with some different keywords.', 'wonderflux' );
?>
</p>
<?php get_search_form(); ?>
</div>
</div>