-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
52 lines (46 loc) · 1.55 KB
/
archive.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
47
48
49
50
51
52
<?php get_header(); ?>
<!-- Page Header -->
<header class="masthead" style="background-image: url(<?php header_image(); ?>)">
<div class="overlay"></div>
<div class="container">
<div class="row">
<div class="col-lg-12 col-md-10 mx-auto">
<div class="site-heading">
<?php
the_archive_title('<h1><small>', '</small></h1>');
the_archive_description();
?>
</div>
</div>
</div>
</div>
</header>
<!-- Main Content -->
<div class="container">
<div class="row">
<?php if(is_active_sidebar('pesquisar-tags-categorias')) { dynamic_sidebar('pesquisar-tags-categorias'); } ?>
<div class="col-lg-8 col-md-10 mx-auto">
<?php
if ( have_posts() ) :
while ( have_posts() ) : the_post();
get_template_part('template-parts/content', get_post_format() );
endwhile;
?>
<div class="clearfix">
<span class="float-right">
<?php next_posts_link("Mais antigos →"); ?>
</span>
<span class="float-left">
<?php previous_posts_link("← Mais novos");?>
</span>
</div>
<div class="clearfix">
<?php else : ?>
<h2>Ops...nenhum conteúdo encontrado</h2>
<?php endif; ?>
</div>
</div>
</div>
</div>
<hr>
<?php get_footer(); ?>