Skip to content

Commit 1e28a16

Browse files
committed
Search.php
Definição dos modelos de página de busca, busca de categorias, tags e autor. Busca funcionando normalmente.
1 parent 13cf178 commit 1e28a16

File tree

8 files changed

+48
-12
lines changed

8 files changed

+48
-12
lines changed

archive.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
get_header(); ?>
1212

13-
<section id="primary" class="content-area">
13+
<section id="primary" class="content-area main-wrapper">
1414
<div id="content" class="site-content" role="main">
1515

1616
<?php if ( have_posts() ) : ?>

content-arquivo.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<article class="bloco fundo-branco">
22
<p class="categoria texto-preto serif"><?php the_category( ', ' , 'texto-amarelo' ); ?></p>
33
<a href="<?php echo the_permalink(); ?>"><h1 class="titulo texto-preto"><?php echo get_the_title(); ?></h1>
4-
<a href="<?php the_author_posts_link( '' ); ?>"><p class="autor serif"><?php the_author_url(); ?></p></a>
4+
<p class="autor serif"><?php the_author_posts_link(); ?></p>
55
</article>

content-search.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<article class="bloco fundo-branco">
2+
<p class="categoria texto-preto serif"><?php the_category( ', ' , 'texto-amarelo' ); ?></p>
3+
<a href="<?php echo the_permalink(); ?>"><h1 class="titulo texto-preto"><?php echo get_the_title(); ?></h1>
4+
<p class="autor serif"><?php the_author_posts_link(); ?></p>
5+
</article>

css/style.css

Lines changed: 8 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

css/style.css.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

no-results.php

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,12 @@
99
*/
1010
?>
1111

12-
<article id="post-0" class="post no-results not-found">
12+
<section class="arquivo-wrapper row fundo-branco">
13+
<div class="col-md-10 col-sm-10 col-xs-12 limpa-float centralizado">
14+
15+
<article id="post-0" class="post no-results not-found">
1316
<header class="entry-header">
14-
<h1 class="entry-title"><?php _e( 'Nothing Found', 'calvero' ); ?></h1>
17+
<h1 class="entry-title"><?php _e( 'Ops, desculpe, mas...', 'calvero' ); ?></h1>
1518
</header><!-- .entry-header -->
1619

1720
<div class="entry-content">
@@ -21,7 +24,7 @@
2124

2225
<?php elseif ( is_search() ) : ?>
2326

24-
<p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'calvero' ); ?></p>
27+
<p class="serif"><?php _e( 'sua busca não retornou nenhum resultado. Quer tentar novamente?.', 'calvero' ); ?></p>
2528
<?php get_search_form(); ?>
2629

2730
<?php else : ?>
@@ -31,4 +34,7 @@
3134

3235
<?php endif; ?>
3336
</div><!-- .entry-content -->
34-
</article><!-- #post-0 .post .no-results .not-found -->
37+
</article><!-- #post-0 .post .no-results .not-found -->
38+
39+
</div>
40+
</section>

sass/basico.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,17 @@
331331

332332
.arquivo-wrapper, .busca-wrapper{
333333
padding-top:6.5em;
334+
335+
min-height: 80vh;
336+
337+
#s {
338+
border:0;
339+
border-bottom: 1px solid $cinza-claro;
340+
display: block;
341+
padding: 0.5em 1em;
342+
343+
background: transparent url(../images/icons/pesquisar-pr.png) no-repeat center right / 15px;
344+
}
334345
}
335346

336347
// Estilos para footer

search.php

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,17 @@
88

99
get_header(); ?>
1010

11-
<section id="primary" class="content-area">
12-
<div id="content" class="site-content row fundo-cinza" role="main">
11+
<section id="primary" class="content-area main-wrapper">
12+
<div id="content" class="site-content" role="main">
13+
14+
1315

1416
<?php if ( have_posts() ) : ?>
17+
<section class="busca-wrapper row fundo-branco">
18+
<div class="col-md-10 col-sm-10 col-xs-12 limpa-float centralizado">
1519

1620
<header class="page-header">
17-
<h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'calvero' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
21+
<h1 class="page-title"><?php printf( __( 'Resultados para: %s', 'calvero' ), '<span>' . get_search_query() . '</span>' ); ?></h1>
1822
</header><!-- .page-header -->
1923

2024
<?php calvero_content_nav( 'nav-above' ); ?>
@@ -31,8 +35,11 @@
3135
<?php else : ?>
3236

3337
<?php get_template_part( 'no-results', 'search' ); ?>
34-
38+
</div>
39+
</section>
3540
<?php endif; ?>
41+
42+
3643

3744
</div><!-- #content .site-content -->
3845
</section><!-- #primary .content-area -->

0 commit comments

Comments
 (0)