<?php $wp_query = new WP_Query(array('cat'=>of_get_option('category_news'), 'posts_per_page'=>of_get_option('postnumber_news'), 'paged'=>$paged)); ?>
<?php if ($wp_query->have_posts()) : while($wp_query->have_posts()) : $wp_query->the_post(); ?>
<?php if (isset($_POST['featurevid'])){ $custom = get_post_custom($post->ID); $featurevid = $custom['featurevid'][0]; } ?>
<?php if ( has_post_thumbnail()) { $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'featured-medium'); } ?>
<?php global $more; $more = 0; ?>

<!-- BEGIN .information -->
<div class="information">
	
<?php if ( has_post_thumbnail() || ( get_post_meta($post->ID, 'featurevid', true) ) ) { ?>
	
	<!-- BEGIN .six columns -->
	<div class="six columns">
		
		<?php if ( get_post_meta($post->ID, 'featurevid', true) ) { ?>
			<div class="feature-vid"><?php echo get_post_meta($post->ID, 'featurevid', true); ?></div>
		<?php } else { ?>
			<a class="feature-img background-cover" style="background-image: url(<?php echo $thumb[0]; ?>);" href="<?php the_permalink(); ?>" rel="bookmark" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'organicthemes' ), the_title_attribute( 'echo=0' ) ) ); ?>"></a>
		<?php } ?>

	<!-- END .six columns -->
	</div>

	<!-- BEGIN .twelve columns -->
	<div class="ten columns">
	
		<div class="holder">
	
		<!-- BEGIN .article -->
		<div class="article">
		
			<h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
			
			<div class="excerpt">
				<?php the_excerpt(); ?>
			</div>
			
			<div class="post-author">
				<p class="align-left"><i class="icon-time"></i> &nbsp;<?php _e("Posted on", 'organicthemes'); ?> <?php the_time(__("F j, Y", 'organicthemes')); ?></p>
				<p class="align-right"><i class="icon-comment"></i> &nbsp;<a href="<?php the_permalink(); ?>#comments"><?php comments_number(__("Comment", 'organicthemes'), __("1 Comment", 'organicthemes'), '% Comments'); ?></a></p>
			</div>
		
		<!-- END .article -->
		</div>
		
		</div>
	
	<!-- END .twelve columns -->
	</div>

<?php } else { ?>

	<!-- BEGIN .sixteen columns -->
	<div class="sixteen columns">
	
		<!-- BEGIN .article -->
		<div class="article">
			
			<h2 class="title"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
			
			<div class="excerpt">
				<?php the_excerpt(); ?>
			</div>
			
			<div class="post-author">
				<p class="align-left"><i class="icon-time"></i> &nbsp;<?php _e("Posted on", 'organicthemes'); ?> <?php the_time(__("F j, Y", 'organicthemes')); ?></p>
				<p class="align-right"><i class="icon-comment"></i> &nbsp;<a href="<?php the_permalink(); ?>#comments"><?php comments_number(__("Comment", 'organicthemes'), __("1 Comment", 'organicthemes'), '% Comments'); ?></a></p>
			</div>
		
		<!-- END .article -->
		</div>
	
	<!-- END .sixteen columns -->
	</div>

<?php } ?>

<!-- END .information -->
</div>

<?php endwhile; ?>

<?php if ($wp_query->max_num_pages > 1) { ?>
	<!-- BEGIN .pagination -->
	<div class="pagination">
		<?php echo natural_get_pagination_links(); ?>
	<!-- END .pagination -->
	</div>
<?php } ?>

<?php else : ?>

<!-- BEGIN .article -->
<div class="article">

	<h2 class="title"><?php _e("No Posts Found", 'organicthemes'); ?></h2>
	<p><?php _e("We're sorry, but no posts have been found. Create a post to be added to this section, and configure your theme options.", 'organicthemes'); ?></p>

<!-- END .article -->
</div>

<?php endif; ?>
<?php wp_reset_postdata(); ?>