This repository has been archived by the owner on Oct 17, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
archive.php
executable file
·59 lines (51 loc) · 2.18 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
53
54
55
56
57
58
59
<?php
/**
* The template for displaying Archive pages.
*
* Used to display archive-type pages if nothing more specific matches a query.
* For example, puts together date-based pages if no date.php file exists.
*
* If you'd like to further customize these archive views, you may create a
* new template file for each specific one. For example, Twenty Twelve already
* has tag.php for Tag archives, category.php for Category archives, and
* author.php for Author archives.
*
* Learn more: http://codex.wordpress.org/Template_Hierarchy
*
* @package WordPress
* @subpackage Twenty_Twelve
* @since Twenty Twelve 1.0
*/
get_header(); ?>
<section id="primary" class="content archive">
<div class="row-fluid span12">
<div class="span8">
<?php if ( have_posts() ) : ?>
<header class="archive-header">
<h1 class="blue-block"><strong>Arquivo:</strong> <?php
if ( is_day() ) :
echo get_the_date();
elseif ( is_month() ) :
echo get_the_date('m/Y');
elseif ( is_year() ) :
echo get_the_date('Y');
endif;
?></h1>
</header><!-- .archive-header -->
<?php while ( have_posts() ) : the_post(); ?>
<?php get_template_part( 'archive', 'post' ); ?>
<?php endwhile; ?>
<div class="nav-previous"> <?php previous_posts_link( '<< Página Anterior' ); ?></div>
<div class="nav-next"> <?php next_posts_link( 'Próxima Página >>' ); ?></div>
<?php else : ?>
<?php get_template_part( 'content', 'none' ); ?>
<?php endif; ?>
</div>
<div class="span4 right-column">
<?php if (is_active_sidebar('content-right-column-1')) : ?>
<?php dynamic_sidebar('content-right-column-1'); ?>
<?php endif; ?>
</div>
</div><!-- #content -->
</section><!-- #primary -->
<?php get_footer(); ?>