<?php

/**

 * The template for displaying games in section box or on archive pages

 *

 * @package GameKing

 * @subpackage Template

 * @since GameKing 1.0

 */

?>

	<div id="post-<?php the_ID(); ?>" <?php $item_format = is_video() ? 'video' : 'post'; post_class('item cf item-'.$item_format); ?>>

		<?php

			// Set image size based on section view, only for section box

			global $section_view;

			$thumb_size = 'custom-large';

			if(!empty($check_view)) {

				if($check_view == 'list-large')

					$thumb_size = 'custom-large';

				elseif($check_view == 'grid-mini')

					$thumb_size = 'custom-small';

				elseif($check_view == 'grid-small')

					$thumb_size = 'custom-medium';	

			}

			dp_thumb_html($thumb_size);

		?>

			

		<div class="data">

			<h2 class="title"><a href="<?php the_permalink(); ?>" title="<?php printf(__('Permalink to %s', 'dp'), get_the_title()); ?>"><?php the_title(); ?></a></h2>

			

			

					

			<p class="stats"><?php echo dp_get_post_stats(); ?></p>



			<p class="desc"><?php dp_excerpt(); ?></p>

		</div>

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