<?php get_header(); ?>
<div id="content">	
<?php
	global $wp_query;
	$curauth = $wp_query->get_queried_object();
?>
<h2 class="pagetitle">About: <?php echo $curauth->nickname; ?></h2>
<h4>Full Name</h4>
<p><?php echo $curauth->first_name. ' ' . $curauth->last_name ;?></p>
<h4>Website</h4>
<p><a href="<?php echo $curauth->user_url; ?>"><?php echo $curauth->user_url; ?></a></p>
<h4>Details</h4>
<p><?php echo $curauth->description; ?></p>

			<h2 class="pagetitle">Posts by <?php echo $curauth->nickname; ?>:</h2>
			<ul class="authorposts">
			<!-- The Loop -->
			<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
			<li>
				<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>"><?php the_title(); ?></a>
			</li>
			<?php endwhile; else: ?>
			<p><?php _e('No posts by this author.'); ?></p>

			<?php endif; ?>
			<!-- End Loop -->			
		</ul>
		<p align="center"><?php posts_nav_link() ?></p>
	</div>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
