<?php get_header(); ?>



<?php $curauth = (isset($_GET['author_name'])) ? get_user_by('slug', $author_name) : get_userdata(intval($author)); ?>



<div class="bread">

<div class="container">

<div style="float:left;color:<?php echo $data['breadfontcolor']; ?>;font-size:<?php echo $data['breadfontsize']; ?>px;font-weight:<?php echo $data['breadfontweight']; ?>;line-height:32px;"><?php the_title(); ?></div>

<div style="float:right;color:<?php  echo $data['breadfontcolor']; ?>;font-size:<?php echo $data['breadfontsize']; ?>px;font-weight:<?php echo $data['breadfontweight']; ?>;line-height:32px;"><span style="color:<?php echo $data['breadfontcolor']; ?>;"><?php get_breadcrumbs(); ?></span></div> 

<div style="clear:both;"></div> 

</div>

</div>



<section id="Middle"> <!-- Begin middle -->

	<div class="container"> <!-- Begin Container -->

  		<article class="Blog"><!-- This sets the $curauth variable -->

			<h2>Posts by <?php echo $curauth->nickname; ?>:</h2> <!-- The Loop Starts -->

			<?php 

			$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;

  			query_posts(array(

			'post_type'      => 'post', // You can add a custom post type if you like

			'paged'          => $paged,

			));



			if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

       

				<div style="border-bottom:1px solid #999; margin-bottom:20px; width:100%;height:100%"> 

					<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link: <?php the_title(); ?>" >		<?php the_title(); ?></a>,<?php the_time('d M Y'); ?> in <?php the_category('&');?>



						<?php the_excerpt(); ?>

       

					<br /> <br />

  				</div>

						<?php endwhile; else: ?>

        				<p><?php _e('No posts by this author.','oft_theme'); ?></p>

    					<?php endif; ?> <!-- End Loop -->

		</article>

		<div class="Pagenatebx2">

			<?php if (function_exists("pagination")) {pagination();} ?>

		</div>

	</div> <!--/ End Container -->

</section> <!--/ End middle -->

<?php get_footer(); ?>