<!-- Start .wishbone_postloop -->
<?php 
	$nothumbclass = '';
	if( !has_post_thumbnail() ){
		$nothumbclass = " wishbone_nothumb";
	}
?>
<article <?php post_class( 'wishbone_postloop'.esc_attr( $nothumbclass ) ) ?> id="wishbone_std-post-<?php the_ID(); ?>">
	<!-- POST AUTHOR & DATE -->
	<div class="wishbone_upinfo">
		<?php echo get_avatar( get_the_author_meta('ID') , 35 ); ?>
		<div class="wishbone_authorname">
			<?php the_author_posts_link(); ?>
			<div class="wishbone_posttime">
				<?php printf( _x( '%s ago', '%s = human-readable time difference', 'jt-wishbone' ), human_time_diff( get_the_time( 'U' ), current_time( 'timestamp' ) ) ); ?>
			</div>
		</div>
	</div> <!-- .wishbone_upinfo -->

	<!-- POST THUMBNAIL -->
	<div class="wishbone_postthumb">
		<?php
		if( has_post_thumbnail() ) { ?>
			<a href="<?php the_permalink(); ?>">
				<?php the_post_thumbnail( 'wishbone_stdthumb' );?>
			</a>
		<?php } ?>
	</div> <!-- end .wishbone_postthumb -->

	<!-- POST DETAIL WRAPPER -->
	<div class="wishbone_innerpost">
		<div class="wishbone_fakebackground"></div>
		<!-- POST Identity -->
		<div class="wishbone_postidentity">
			<?php wishbone_postsymbol(); ?>
		</div>
		<!-- TITLE -->
		<div class="wishbone_posttitle">
			<h2><a href="<?php the_permalink(); ?>"><?php the_title() ?></a></h2>
		</div> <!-- end .wishbone_posttitle -->

		<!-- CATEGORY -->
		<div class="wishbone_postcat">
			<div class="wishbone_postcatdecor">
				<div class="wishbone_postcatdecor_inner">
					<?php the_category( ' - ' ) ?>
				</div> <!-- end .wishbone_postcat -->
			</div> <!-- end .wishbone_postcat -->
		</div> <!-- end .wishbone_postcat -->

		<!-- POST TEXT -->
		<div class="wishbone_postexcerpt">
			<?php
			$content = '';
			$content = get_the_excerpt();
			$trimmed_content = wp_trim_words( $content, 50, null );
			echo '<p>';
			echo wishbone_pass_html( $trimmed_content );
			echo '</p>';
			?>
		</div> <!-- end .wishbone_postexcerpt -->

		<!-- READMORE -->
		<div class="wishbone_readmore">
			<a href="<?php the_permalink() ?>"><?php esc_html_e('CONTINUE READING', 'jt-wishbone') ?> <?php lnr_icon('lnr-arrow-right'); ?></a>
		</div> <!-- end .wishbone_readmore -->
	</div> <!-- end .wishbone_innerpost -->

	<div class="wishbone_postfooter">
		<div class="small-4 column">
			<?php echo wishbone_get_simple_likes_button( $post->ID ); ?>
		</div>
		<div class="small-4 column">
			<a href="<?php the_permalink(); ?>#comments">
				<svg class="lnr lnr-bubble"><use xlink:href="<?php echo get_template_directory_uri(); ?>/assets/svg/svgdefs.svg#lnr-bubble"></use></svg>
				<?php echo get_comments_number(); ?>
			</a>
		</div>
		<div class="small-4 column">
			<a href="#" class="wishbone_sharetrigger">
				<svg class="lnr lnr-exit-up"><use xlink:href="<?php echo get_template_directory_uri(); ?>/assets/svg/svgdefs.svg#lnr-exit-up"></use></svg>
				<?php esc_html_e('Share', 'jt-wishbone') ?>
			</a>
		</div>

		<!-- POST SHARER -->
		<div class="wishbone_postsharer">
			<?php
			$social_share = wishbone_option('social_share');
			$thumb = get_post_thumbnail_id();
			$img_url = wp_get_attachment_url( $thumb );
			 ?>
			<a href="#" data-type="twitter" data-url="<?php the_permalink(); ?>" data-description="<?php echo substr(get_the_title(), 0,140); ?>" class="prettySocial"><i class="icon-twitter"></i></a>

			<a href="#" data-type="facebook" data-url="<?php the_permalink(); ?>" data-title="<?php the_permalink(); ?>" data-description="<?php echo get_the_excerpt(); ?>" data-media="<?php echo esc_attr($img_url); ?>" class="prettySocial"><i class="icon-facebook"></i></a>

			<a href="#" data-type="googleplus" data-url="<?php the_permalink(); ?>" data-description="<?php echo get_the_excerpt(); ?>" class="prettySocial"><i class="icon-google"></i></a>

			<a href="#" data-type="pinterest" data-url="<?php the_permalink(); ?>" data-description="<?php echo get_the_excerpt(); ?>" data-media="<?php echo esc_attr($img_url); ?>" class="prettySocial"><i class="icon-pinterest"></i></a>

			<a href="#" data-type="linkedin" data-url="<?php the_permalink(); ?>" data-title="<?php the_permalink(); ?>" data-description="<?php echo get_the_excerpt(); ?>" data-media="<?php echo esc_attr($img_url); ?>" class="prettySocial"><i class="icon-linkedin"></i></a>

			<div class="wishbone_share_close">
				<?php lnr_icon('lnr-cross-circle'); ?>
			</div>
		</div>
	</div>
</article> <!-- end .wishbone_postloop -->
