<?php
/**
 * The template used to display Author Archive pages
 *
 * @package WordPress
 * @subpackage Twenty Ten
 * @since 3.0.0
 */
?>
<?php get_header(); ?>
<?php
global $current_user;
if(isset($_GET['author_name'])) :
	$curauth = get_userdatabylogin($author_name);
else :
	$curauth = get_userdata(intval($author));
endif;
?>
  <div id="wrapper" class="clearfix">
            
       <div id="content" class="content_index clearfix">
         <?php if ( get_option( 'ptthemes_breadcrumbs' )) {  ?>
        <div class="breadcrumb clearfix">
            <div class="breadcrumb_in"><?php yoast_breadcrumb('','');  ?></div>
        </div>
    <?php } ?>
    <h1><?php echo $curauth->display_name; ?> </h1>
        
        			 
<?php if(have_posts()) : ?>
<ul class="category_list_view">
    <?php while(have_posts()) : the_post();
	$post_images = bdw_get_images($post->ID,'large');
	$current_post_id = $post->ID;
	?> 
    <?php get_the_post_content('author_listing_li');?>
    
    
    
    <?php endwhile;?>
</ul>
 <div class="pagination">       
       <span class="i_previous" > <?php previous_posts_link(__('Previous')) ?> </span>
       <span class="i_next" ><?php next_posts_link(__('Next')) ?> </span>
        <?php if (function_exists('wp_pagenavi')) { ?>
        <?php wp_pagenavi(); ?>
        <?php } ?>
      </div>
	<?php else : ?>
    <p class="message" ><?php echo LISTING_NOT_AVAIL_MSG;?> </p> 
<?php endif; ?>      
</div> <!-- content #end -->
<div id="sidebar">
<?php dynamic_sidebar(6);  ?>
</div>

 </div> <!-- wrapper #end -->
<div id="bottom"></div>
 <?php get_footer(); ?>