<?php get_header(); ?>

<div id="main">
	<div id="content">
	
<?php if ( have_posts() ) the_post(); ?>

			<h1 class="archive">
<?php if ( is_day() ) : ?>
				<?php printf( __( 'Artigos do Dia: <strong>%s</strong>', 'ari' ), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
				<?php printf( __( 'Artigos do Mês: <strong>%s</strong>', 'ari' ), get_the_date('F Y') ); ?>
<?php elseif ( is_year() ) : ?>
				<?php printf( __( 'Artigos do Ano: <strong>%s</strong>', 'ari' ), get_the_date('Y') ); ?>
<?php else : ?>
				<?php _e( 'Arquivo dos Artigos', 'ari' ); ?>
<?php endif; ?>
			</h1>

<?php rewind_posts();
	 get_template_part( 'loop', 'archive' );
?>
	</div>
	<!--end Content-->

<?php get_sidebar('secondary'); ?>

</div>
<!--end Main-->

<?php get_footer(); ?>