<?php
/**
 * @package WordPress
 * @subpackage Classic_Theme
 */
get_header();
?>
<div id="container-wrap"><div id="container-bottom" class="clearfix">
		<div id="content">
			<div class="post_wrapper">
						<?php if (have_posts()) : ?>
							<?php while (have_posts()) : the_post(); ?>
								<?php if ( version_compare( $wp_version, '2.7', '>=' ) ) { ?>
									<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
									<?php } else { ?>
									<div id="post-<?php the_ID(); ?>" class="post post-<?php the_ID(); ?>">
								<?php } ?>

								<div class="post-top">
									<h1 class="title"><?php the_title(); ?></h1>
                                    <div class="post-data"><span class="post-date"></span></div>
									<?php the_content(); ?>
									<?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>
								</div>

							</div>
					<?php endwhile; ?>
					<?php else : ?>
						<div class="notfound"><p>Content Not Found!</p><p>Please try again.</p></div>
					<?php endif; ?>
                    <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
                        <div class="wp-pagenavi">
                        <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
                        <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
                        </div>
					<?php } ?>
			</div>
		</div>
				<?php get_sidebar(); ?>
				<div class="clear"></div>
				
</div></div>
<?php get_footer(); ?>
