-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.php
35 lines (27 loc) · 1 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
<?php get_header(); ?>
<main class="leowp-search">
<section class="leowp-container">
<div class="leowp-container__center">
<?php if( have_posts() ): ?>
<header class="leowp-heading">
<h2 class="leowp-heading__title"><?php printf( esc_html__( 'Mostrando Resultados Para: %s', 'leowp-workflow' ), '<strong>'.get_search_query().'</strong>' ); ?></h2>
</header>
<div class="leowp-loop">
<?php while (have_posts()) : ?>
<?php the_post(); ?>
<?php get_template_part('content/content-search'); ?>
<?php endwhile; ?>
</div>
<?php else: ?>
<header class="leowp-heading">
<h2 class="leowp-heading__title"><?php printf( esc_html__( 'Ops: Não encontramos nada para o termo pesquisado :/' ) ); ?></h2>
<p class="leowp-heading__tagline">Pesquise novamente utilizando o formulário abaixo.</p>
</header>
<div class="leowp-search__form">
<?php get_search_form(); ?>
</div>
<?php endif; ?>
</div>
</section>
</main>
<?php get_footer(); ?>