<?php
/**
 * Template part for displaying posts.
 */

?>
<article id="post-<?php the_ID(); ?>" <?php post_class('uk-article uk-margin-xlarge-bottom'); ?> data-uk-scrollspy="{cls:'uk-animation-<?php igaa_animations(); ?>', repeat: true}">

	<header class="entry-header uk-text-center">
		 
		<?php if ( is_sticky() && is_home() && ! is_paged() ) : ?>
			<span class="sticky-post"><?php _e( 'Featured', 'igaa' ); ?></span>
		<?php endif; ?>
		
		
		<?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
        
        <?php if ( 'post' === get_post_type() ) : ?>
		<div class="entry-meta uk-article-meta uk-margin-large-bottom">
			<?php igaa_posted_on(); ?>
		</div><!-- .entry-meta -->
		<?php
		endif; ?>
	</header><!-- .entry-header -->
	
    <?php igaa_post_thumbnail(); ?>
    <?php igaa_excerpt(); ?>

	<div class="entry-content uk-margin">
		<?php
			the_content( sprintf(
				/* translators: %s: Name of current post. */
				wp_kses( __( 'Continue reading %s <span class="meta-nav"></span>', 'igaa' ), array( 'span' => array( 'class' => array() ) ) ),
				the_title( '<span class="screen-reader-text">"', '"</span>', false )
			) );

			wp_link_pages( array(
				'before' => '<div class="page-links">' . esc_html__( 'Pages:', 'igaa' ),
				'after'  => '</div>',
			) );
		?>
	</div><!-- .entry-content -->

	<footer class="entry-footer uk-margin-large uk-text-center">
		<?php igaa_entry_footer(); ?>
	</footer><!-- .entry-footer -->
</article><!-- #post-## -->
