-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch.php
More file actions
44 lines (42 loc) · 1.78 KB
/
search.php
File metadata and controls
44 lines (42 loc) · 1.78 KB
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
<?php
/**
* @package WordPress
* @subpackage Facile
* @since Facile 1.0
*/
get_header();
?>
<div class="container main" id="main">
<div class="row mt-4">
<div class="col-xl-8 col-lg-8 post-list">
<?php if (get_theme_mod('enable_breadcrumbs', false)): ?>
<nav aria-label="<?php _e('Breadcrumbs', 'facile'); ?>" class="breadcrumb-nav bg">
<?php custom_breadcrumbs(); ?>
</nav>
<?php endif; ?>
<header class="archive-title mb-5">
<h1><?php printf(__('Posts containing the keyword <b>%s</b>', 'facile'), get_search_query()); ?></h1>
</header>
<?php if (have_posts()): ?>
<?php while (have_posts()): ?>
<?php the_post(); ?>
<?php get_template_part('content'); ?>
<?php endwhile; ?>
<?php else: ?>
<article class="no-content">
<hr>
<h4 class="mb-3" role="alert"><?php printf(__('No posts found containing <b>%s</b>!', 'facile'), get_search_query()); ?></h4>
<p><?php _e('You can try the following:', 'facile'); ?></p>
<ol class="pl-3 mb-5">
<li><?php _e('Try searching with different keywords', 'facile'); ?></li>
<li><?php _e('Browse posts by category in the section to the right or below', 'facile'); ?></li>
<li><?php _e('Browse posts by tags in the tag cloud section to the right or below', 'facile'); ?></li>
</ol>
</article>
<?php endif; ?>
<?php post_list_pagination(); ?>
</div>
<?php get_sidebar(); ?>
</div>
</div>
<?php get_footer(); ?>