<div style="display: none">
	<?php 
	if(has_post_thumbnail()){ 
		the_post_thumbnail('listeo-listing-grid'); 
	} else {
		$gallery = (array) get_post_meta( $post->ID, '_gallery', true );
		if(!empty($gallery)){
			$ids = array_keys($gallery);
			if(!empty($ids[0])){ 
				echo  wp_get_attachment_image($ids[0],'listeo-listing-grid'); 
			}	
		} else { ?>
				<img src="<?php echo get_listeo_core_placeholder_image(); ?>" alt="">
		<?php } 
	}  ?>
</div><?php 
					