<?php
/**
 * Template part for displaying posts
 * @subpackage Geschaft Business
 * @since 1.0
 */
?>

<div id="Category-section" class="entry-content">
	<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<div class="postbox smallpostimage">
			<h4><a href="<?php echo esc_url( get_permalink() );?>"><?php the_title();?></a></h4>
			<?php
      		if ( ! is_single() ) {
        		// If not a single post, highlight the gallery.
        		if ( get_post_gallery() ) {
          			echo '<div class="entry-gallery">';
            		echo ( get_post_gallery() );
          			echo '</div>';
        		};
      		};
    		?>
        	<div class="overlay">
        		<div class="date-box">
        			<?php if( get_option('geschaft_business_date',false) != '1'){ ?>
        			<span class=""><i class="far fa-calendar-alt"></i><?php the_time( get_option( 'date_format' ) ); ?></span>
        			<?php }?>
        			<?php if( get_option('geschaft_business_admin',false) != '1'){ ?>
        			<span class="entry-author"><i class="far fa-user"></i><a href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' )) ); ?>"><?php the_author(); ?></a></span>
        			<?php }?>
        			<?php if( get_option('geschaft_business_comment',false) != '1'){ ?>
      				<span class="entry-comments"><i class="fas fa-comments"></i> <?php comments_number( __('0 Comments','geschaft-business'), __('0 Comments','geschaft-business'), __('% Comments','geschaft-business')); ?></span>
      				<?php }?>
    			</div>
        		
        	</div>
	      	<div class="clearfix"></div> 
	  	</div>
	</div>
</div>