	<?php 
	$count=1;
	if (have_posts()) : while (have_posts()) : the_post();			
	$gab_iframe = get_post_meta($post->ID, 'iframe', true);
	?>				
			
		<article id="post-<?php the_ID(); ?>" <?php post_class('post'); ?>>
				
				<div class="head">
					<h2 class="entry-title">
						<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'gabfire' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark">
							<?php the_title(); ?>
						</a>
					</h2>
					
					<p class="metadata-top">
						<i class="fa fa-calendar"></i> <?php echo get_the_date('') ?> 
						<?php _e('by','gabfire'); ?> 
						<?php the_author_posts_link(); ?>
						<span class="postcomment"><i class="fa fa-comment-o"></i> <?php comments_popup_link(__('No Comment','gabfire'), __('1 Comment','gabfire'), __('% Comments','gabfire'));?></span>
					</p>
				</div><!-- /post head -->
				
				<div class="entry">
					<?php
						if($gab_iframe !== '') {	
							$media_width = 538;
							$media_height = 300;
							$media_class = 'aligncenter';
						} else {
							$media_width = 200;
							$media_height = 150;
							$media_class = 'alignleft';							
						}
			
						gabfire_media(array(
							'name' => 'qs-body', 
							'imgtag' => 1,
							'link' => 1,
							'enable_video' => 1,
							'enable_thumb' => 1, 
							'catch_image' => 1,
							'resize_type' => 'c', /* c to crop, h to resize only height, w to resize only width */
							'media_width' => $media_width, 
							'media_height' => $media_height, 
							'thumb_align' => $media_class,
							'enable_default' => of_get_option('of_qs_enfea6'),
							'default_name' => 'latest_news.jpg'
						)); 
					?>
					<p><?php echo gabfire_limit_words(get_the_excerpt(), 55); ?>&hellip;</p>
					
					<div class="clear"></div>
				</div><!-- /entry -->
				
				<div class="metadata-bot">
					<?php if( get_post_type() == 'post' ) { ?>
					<div class="cats">
						<i class="fa fa-folder-open-o"></i> <?php the_category(' // ') ?>
					</div>
					<?php } ?>
					
					<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'gabfire' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark" class="btn btn-default">
						<?php _e('Read More', 'gabfire'); ?> <i class="fa fa-chevron-circle-right"></i>
					</a>
				</div><!-- /metadata -->

		</article><!-- /post -->
		
	<?php $count++; endwhile; else : ?>
		<div class="post">
			<h2 class="archiveTitle"><?php _e('Sorry, nothing matched your criteria','gabfire');?></h2>
		</div>
	<?php endif; ?>