<?php

/**

 * The Template for displaying all single posts.

 *

 * @package GameKing

 * @subpackage Template

 * @since GameKing 1.0

 */



global $post;



// Get video layout

$video_layout = get_post_meta($post->ID, 'armor_layout', true);

if(!$video_layout)

	$video_layout = get_option('armor_single_layout');

if(!$video_layout)

	$video_layout = 'standard';



// Check the current post is a video post and get template based on the video layout



	if($video_layout == 'game-post')

		get_template_part('single-standard-game'); 

	else

		get_template_part('single-standard'); 

	

	return;





get_header(); ?>







<div id="main"><div class="wrap cf">

	

	

	<div id="content" role="main">

	<div class="section-header">

    <h3 class="section-title"><?php the_title(); ?></h3>

	</div>

		<?php while (have_posts()) : the_post(); global $post;?>

		

		<div <?php post_class(); ?> id="post-<?php the_ID(); ?>">

		

		<div id="details" class="section-box">

			

				<p id="meta">

					<span class="author"><?php _e('Added by', 'dp'); ?> <?php the_author_posts_link(); ?></span>

					<span class="time"><?php _e('on', 'dp'); ?> <?php the_time('Y-m-d'); ?></span>

					

					<?php edit_post_link(__('Edit', 'dp'), ' <span class="sep">/</span> '); ?>

				</p>



				<div class="entry-content rich-content">

					<?php the_content(); ?>

					<?php wp_link_pages(array('before' => '<p class="entry-nav pag-nav"><span>'.__('Pages:', 'dp').'</span> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>

				</div><!-- end .entry-content -->

			

				<div id="extras">

					<h4><?php _e('Category:', 'dp'); ?></h4> <?php the_category(', '); ?>

					<?php the_tags('<h4>'.__('Tags:', 'dp').'</h4>', ', ', ''); ?>

				</div>

				<div style="margin-top:10px;">

			<?php dp_addthis(); ?>

			</div>

		</div><!--end #deatils-->

		</div><!-- end #post-<?php the_ID(); ?> -->

		

		<?php dp_related_posts(array('number'=>get_option('dp_related_posts'))); ?>



        <?php comments_template('', true); ?>



		<?php endwhile; ?>

	</div><!-- end #content -->



	<?php get_sidebar(); ?>



</div></div><!-- end #main -->

	

<?php get_footer(); ?>