<?php
/**
 *	Template for standart Posts
 */

?>

<?php
$postClass = 'blog-post post-preview';
$postId = get_the_ID();
$lightbox = etheme_get_option('blog_lightbox');
$blog_slider = etheme_get_option('blog_slider');

?>

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

	<?php
	$width = etheme_get_option('blog_page_image_width');
	$height = etheme_get_option('blog_page_image_height');
	$crop = etheme_get_option('blog_page_image_cropping');
	?>

	<h3 class="post-title"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3>

	<?php $images = etheme_get_images($width,$height,$crop); ?>

	<?php if ( !empty($images) && has_post_thumbnail() ) : ?>

		<div class="image">
			<img width="733" height="301" class="img-responsive img-rounded" alt="" src="<?php echo $images[0]; ?>" />
		</div>

	<?php endif; ?>

	<div class="post-meta">

		<?php if ( is_sticky() && is_home() && ! is_paged() ) { ?>
			<span class="meta-sticky">
				<a href="<?php the_permalink(); ?>"><i class="icon-tag"></i><?php _e( 'Sticky!', WFT_DOMAIN ); ?></a>
			</span>
		<?php } else { ?>
			<span class="meta-date">
				<a href="<?php the_permalink(); ?>"><i class="icon-clock-alt"></i><?php the_time(get_option('date_format')); ?></a>
			</span>
		<?php } ?>
		<span class="meta-author">
			<i class="icon-user-2"></i><?php the_author_posts_link(); ?>
		</span>
		<span class="meta-tags">
			<i class="icon-tag-1"></i><?php the_category(',&nbsp;') ?>
		</span>
		<?php if(comments_open() && !post_password_required()) { ?>
			<span class="meta-comment">
				<i class="icon-chat-1"></i><?php comments_popup_link('0', '1 Comment', '% Comments', 'post-comments-count'); ?>
			</span>
		<?php } ?>

	</div>

	<?php the_content(__('Read More', WFT_DOMAIN)); ?>
	<div class="clearfix"></div>

	<?php

	$post_pages = wp_link_pages(array('echo' => 0));

	if ( $post_pages ) { ?>

		<div class="post-navigation">
			<?php echo $post_pages; ?>
		</div>

	<?php } //endif; ?>
</div>