forked from wpbrasil/odin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patharchive.php
30 lines (30 loc) · 1.31 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
<?php get_header(); ?>
<div id="primary">
<section id="content" role="main">
<?php if ( have_posts() ) : ?>
<header class="page-header">
<h1 class="page-title" itemprop="name headline">
<?php
if ( is_day() ) {
echo __( 'Arquivos diários: ', 'odin' ) . '<span>' . get_the_date() . '</span>';
} elseif ( is_month() ) {
echo __( 'Arquivos Mensais: ', 'odin' ) . '<span>' . get_the_date( 'F Y' ) . '</span>';
} elseif ( is_year() ) {
echo __( 'Arquivos anuais: ', 'odin' ) . '<span>' . get_the_date( 'Y' ) . '</span>';
} else {
_e( 'Arquivos do Blog', 'odin' );
}
?>
</h1>
</header>
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'content', get_post_format() ); ?>
<?php endwhile; ?>
<?php echo odin_pagination(); ?>
<?php else : ?>
<?php get_template_part( 'no-results' ); ?>
<?php endif; ?>
</section><!-- #content -->
</div><!-- #primary -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>