<?php
/**
 * Template part for displaying posts
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package BBase_Code
 */

?>

<div id="post-<?php the_ID(); ?>" <?php post_class( 'news-item' ); ?>>
	<div class="wrap-img">
		<a href="<?php the_permalink() ?>">
			<img src="<?php echo custom_image_size( get_the_ID(), 675, 350, true ) ?>" alt="<?php the_title_attribute() ?>">
		</a>
	</div>
	<div class="wrap-info">
		<a href="<?php the_permalink() ?>" class="post-title"><?php the_title() ?></a>
		<div class="date"><?php the_time( "d-m-Y" ) ?></div>
		<div class="des"><?php echo wp_trim_words( get_the_excerpt(), 30, '...' ) ?></div>
	</div>                
</div>
