EstudioJuridicoAlmagro_Web/www/archive.php
2013-03-01 18:06:10 +00:00

40 lines
1.0 KiB
PHP

<?php
/**
* @package WordPress
* @subpackage Progressio
*/
$layout_type = 'full';
define('WPV_LAYOUT', 'no-sidebars');
get_header(); ?>
<?php if ( have_posts() ): the_post(); ?>
<header class="page-header">
<h1><?php
if ( is_day() ) : ?>
<?php printf( __( 'Daily Archives: <span>%s</span>', 'wpv' ), get_the_date() ); ?>
<?php elseif ( is_month() ) : ?>
<?php printf( __( 'Monthly Archives: <span>%s</span>', 'wpv' ), get_the_date('F Y') ); ?>
<?php elseif ( is_year() ) : ?>
<?php printf( __( 'Yearly Archives: <span>%s</span>', 'wpv' ), get_the_date('Y') ); ?>
<?php else : ?>
<?php _e( 'Blog Archives', 'wpv' ); ?>
<?php endif;
?></h1>
</header>
<div class="clearfix page-wrapper">
<article id="post-<?php the_ID(); ?>" <?php post_class($layout_type); ?>>
<div class="page-content">
<?php rewind_posts() ?>
<?php get_template_part('loop', 'archive') ?>
</div><!-- .entry-content -->
</article>
</div>
<?php endif ?>
<?php get_footer(); ?>