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

46 lines
1.3 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
printf( __( 'Posts by %s', 'wpv' ), "<a href='".get_author_posts_url(get_the_author_meta( 'id' ))."' rel='me'>".get_the_author()."</a>" );
?></h1>
</header>
<div class="clearfix page-wrapper">
<article id="post-<?php the_ID(); ?>" <?php post_class($layout_type); ?>>
<div class="page-content">
<?php if ( get_the_author_meta( 'description' ) ) : ?>
<div id="entry-author-info" class="wire-pad">
<div id="author-avatar">
<?php echo get_avatar( get_the_author_meta( 'user_email' ), 60 ); ?>
</div><!-- #author-avatar -->
<div id="author-description">
<h4><?php printf( __( 'About %s', 'wpv' ), get_the_author() ); ?></h4>
<?php the_author_meta( 'description' ); ?>
</div><!-- #author-description -->
<div class="clearfix"></div>
</div><!-- #entry-author-info -->
<?php endif; ?>
<?php rewind_posts() ?>
<?php get_template_part('loop', 'category') ?>
</div><!-- .entry-content -->
</article>
</div>
<?php endif ?>
<?php get_footer(); ?>