<?php
/*
* Content display template for category default
*/
?>
<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
    <?php if (is_sticky() && is_home() && !is_paged()): ?>
    <div class="sticky-text">
        <?php esc_attr_e("FEATURED", "efpose"); ?>
    </div>
    <?php endif; ?>
    <div class="entry-content categorydefaultcontent-wrapper">
        <?php $thumb = get_post_thumbnail_id();
		$img_url = wp_get_attachment_url( $thumb,'full' ); //get full URL to image (use "large" or "medium" if the images too big)
		$image = aq_resize( $img_url, 500, 475, true ); //resize & crop the image
		?>
        <?php if($image) : ?>
        <div class="categorydefaultcontent-image">
            <div class="abs-definition">
				<?php if ( function_exists("efpose_get_post_view")) { ?>
				<?php echo efpose_get_post_view();} else {} ?>
			</div>
            <img src="<?php echo esc_url( $image ); ?>" /></div>
        <?php endif; ?>
        <div class="categorydefaultcontent-text">
            <header class="index-content">
                <h2><a class="entry-title" href="<?php the_permalink(); ?>">
                    <?php the_title(); ?>
                    </a></h2>
                <div class="index-content-author">
                    <div class="module6-time"> <a href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" rel="author"> <?php printf( __( ' %s', 'efpose' ), get_the_author() ); ?></a>
                        <?php if(get_the_author_meta('Position') ): ?>
                        <?php esc_attr_e('/', 'efpose'); ?>
                        <?php echo get_the_author_meta('Position'); ?>
                        <?php endif; ?>
                        <?php $category = get_the_category();
					if ($category) { echo '- <a href="' . esc_url(get_category_link($category[0]->term_id)) . '" title="' . sprintf( esc_attr__("View all posts in %s", "efpose"), $category[0]->name ) . '" ' . ">" . $category[0]->name . "</a> -";}
					?>
                        <?php echo get_the_date(); ?> </div>
                </div>
            </header>
            <?php echo efpose_content(33); ?>
            <footer class="entry-meta">
                <?php esc_html_e('TAGS: ', 'efpose'); ?>
                <?php $before = '#';
				$seperator = '#'; // blank instead of comma
				$after = '';
				the_tags( $before, $seperator, $after );
				?>
            </footer>
        </div>
        <?php wp_link_pages([
			"before" => '<div class="page-links">' . __("Pages:", "efpose"),
			"after" => "</div>",
		]); ?>
    </div>
</article>