<?php

/**

 * Category Template

 *

 * The template for displaying Category Archive pages.

 *

 * @package GameKing

 * @subpackage Template

 * @since GameKing 1.0

 */



get_header(); ?>



<?php get_template_part('cat-featured'); ?>



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



	<?php // Middle Navigation

				if(get_option('dp_middle_nav_status')) {

					$nav_menu = wp_nav_menu(array('theme_location'=>'middle', 'container'=>'', 'depth'=>1, 'echo'=>0, 'fallback_cb' => '')); 



					// The fallback menu

					if(empty($nav_menu))

						$nav_menu = '<ul class="menu">'.wp_list_categories(array('show_option_all'=>'', 'title_li'=>'', 'echo'=>0)).'</ul>';	

					echo '<div id="middle-nav" style="margin-bottom: 20px;">'.$nav_menu.'</div><!-- end #middle-nav -->';

				}

			?>

			

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

	<?php get_template_part('loop-header'); ?>

	

		<?php if (have_posts()) : global $loop_view; ?>

	

			<?php get_template_part('loop-actions'); ?>

		

			<div class="loop-content switchable-view <?php echo $loop_view; ?>" data-view="<?php echo $loop_view; ?>">

				<div class="nag cf">

					<?php while (have_posts()) : the_post();

						get_template_part('item-video');

					endwhile; ?>

				</div>

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

			

			<?php get_template_part('loop-nav'); ?>

		

		<?php else : ?>

		

			<?php get_template_part('loop-error'); ?>

		

		<?php endif; ?>

	

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



	<?php get_sidebar(); ?>



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



<?php get_footer(); ?>