<?php
/**
 * @package Eighties
*/
?>

<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
	<header class="entry-header">

			<?php
				/* translators: used between list items, there is a space after the comma */
				$categories_list = get_the_category_list( __( ', ', 'eighties' ) );
				if ( $categories_list && eighties_categorized_blog() ) :
			?>

				<div class="entry-meta entry-meta-categories"><?php echo $categories_list; ?></div>

			<?php endif; ?>

			<?php if ( is_single() ) : ?>
				<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
			<?php else : ?>
				<?php the_title( '<h2 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h2>' ); ?>
			<?php endif; ?>

			<p class="entry-meta entry-meta-time">
				<?php eighties_post_format(); ?>
				<?php eighties_posted_on(); ?>
			</p>

	</header><!-- .entry-header -->

	<div class="entry-summary">
		<?php the_content( 'Read More <i class="fa fa-caret-right"></i>' ); ?>
		<?php
			wp_link_pages( array(
				'before' => '<div class="page-links">' . __( 'Pages:', 'eighties' ),
				'after'  => '</div>',
			) );
		?>
		<?php edit_post_link( __( 'Edit', 'eighties' ), '<span class="edit-link">', '</span>' ); ?>
	</div><!-- .entry-content -->

	<?php if ( is_single() ) : ?>
		<?php the_tags( '<footer class="entry-footer"><div class="entry-meta entry-meta-tags">', ' ', '</div></footer><!-- .entry-footer -->' ); ?>
	<?php endif; ?>
</article><!-- #post-## -->