-
Notifications
You must be signed in to change notification settings - Fork 0
/
archive.php
37 lines (32 loc) · 1.38 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
<?php get_header();?>
<div class="listagem">
<h2>
<?php $post = $posts[0]; // Hack. Set $post so that the_date() works. ?>
<?php /* If this is a category archive */ if (is_category()) { ?>
<?php echo single_cat_title(); ?>
<?php /* If this is a daily archive */ } elseif (is_day()) { ?>
Publicações de <?php the_time('j \d\e F \d\e Y'); ?>
<?php /* If this is a monthly archive */ } elseif (is_month()) { ?>
Publicações de <?php the_time('F \d\e Y'); ?>
<?php /* If this is a yearly archive */ } elseif (is_year()) { ?>
Publicações de <?php the_time('Y'); ?>
<?php /* If this is an author archive */ } elseif (is_author()) { ?>
Publicações
<?php /* If this is a paged archive */ } elseif (isset($_GET['paged']) && !empty($_GET['paged'])) { ?>
Arquivo do Blog
<?php /* If this is a paged archive */ } elseif (is_tag()) { ?>
Tópicos sobre <?php echo single_cat_title(); ?>
<?php } ?>
</h2>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<?php include __DIR__. '/content.php'?>
<?php endwhile?>
<?php else: ?>
<div class="artigo">
<h2>Nada Encontrado</h2>
<p>Erro 404</p>
<p>Lamentamos mas não foram encontrados artigos.</p>
</div>
<?php endif; ?>
</div><!-- fim .listagem -->
<?php get_footer();?>