	<?php get_header(); ?>
	<div id="container">
		<div id="content">
		<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
			<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
				<h2><?php the_title(); ?></h2>
				<small>Posted <?php echo my_entry_published_link(); ?> by <?php the_author_posts_link(); ?></small>
				<div <?php post_class(); ?>>
					<?php the_content(); ?>
					<?php wp_link_pages(array( 'before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number' )); ?>
				</div>
			</div>
			<div id="single">
				<div class="post-details">
					<h3 class="highlighted-heading">Post Details</h3>
					<ul>
					<li><strong>Post Title</strong>: <?php the_title(); ?></li>
					<li><strong>Date Posted</strong>: <?php echo my_entry_published_link(); ?></li>
					<li><strong>Author</strong>: <?php the_author_posts_link(); ?></li>
					<li><strong>Filed As</strong>: <?php the_category(', ') ?></li>
					<li><strong>Tags</strong>: <?php the_tags( ' ', ', ', ' '); ?></li>
					<?php if (function_exists('wp_get_shortlink')) { ?>
						<li><strong>Shortlink</strong>:
							<input type='text' value='<?php echo wp_get_shortlink(get_the_ID()); ?>' onclick='this.focus(); this.select();' />
						</li>
					<?php } ?>
					<li>You can follow any responses to this entry through the <?php post_comments_feed_link( 'RSS 2.0' ); ?> feed.
					<?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
					// Both Comments and Pings are open ?>
					You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
					<?php } elseif (!( 'open' == $post-> comment_status ) && ( 'open' == $post->ping_status ) ) {
					// Only Pings are Open ?>
					Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
					<?php } elseif (( 'open' == $post-> comment_status ) && !( 'open' == $post->ping_status ) ) {
					// Comments are open, Pings are not ?>
					You can skip to the end and leave a response. Pinging is currently not allowed.
					<?php } elseif (!( 'open' == $post-> comment_status ) && !( 'open' == $post->ping_status ) ) {
					// Neither Comments, nor Pings are open ?>
					Both comments and pings are currently closed.
					<?php } edit_post_link( 'Edit','','.' ); ?></li>
					</ul>
				</div>
				<div class="single-block">
					<div class="nav">
						<div class="navigation-left"><?php previous_post_link( '&laquo; %link' ) ?></div>
						<div class="navigation-right"><?php next_post_link( '%link &raquo;' ) ?></div>
					</div>
				</div>
				<div>
					<div class="single-block">
						<?php comments_template('', true); ?>
					</div>
				</div>
			<?php endwhile; else: ?>
				<div>
					<p>Sorry, no posts matched your criteria.</p>
				</div>
			<?php endif; ?>
		</div>
	</div>
	<?php get_sidebar(); ?>
	<?php get_footer(); ?>