<article id="post-<?php the_ID(); ?>" <?php post_class($post_class); ?>>
		<?php 
		if($image_url <> ""){
			echo '<figure class="post-loop-img">
					<a href="'.get_permalink().'" style="background-image: url('.$image_url.')" ></a>
				  </figure>';
		}
		?>
	  <!-- Text Start -->
	  <div class="blog_text webkit">
	          <div class="text">
	              <h2 class="heading-color cs-post-title"><a href="<?php the_permalink(); ?>" class="cs-colrhvr"><?php the_title(); ?></a></h2>
	          </div>
	          <?php //cs_posted_on(); ?> 
                <ul class="post-options">
                    <li><i class="fa fa-calendar"></i><time><?php echo get_the_date(); ?></time></li>
                
                	<?php if( have_rows('autori_articol') ): ?>
                		<li><i class="fa fa-user"></i>
					 		<span class="autori">
								<?php $i = 1; while( have_rows('autori_articol') ): the_row(); ?>
									
									<?php 
										$autorID = get_sub_field_object('autor_articol')['value']->ID;
										$autorName = get_sub_field_object('autor_articol')['value']->post_title;
									?>
							 		
							 		<?php if($i > 1){echo ", ";} echo $autorName; ?>
							 		
								<?php $i++; endwhile; ?>
							</span>
						 </li>
					<?php endif; ?>
					
                </ul>
	      <p><?php echo cs_get_the_excerpt($default_excerpt_length,true); ?></p>
	  </div>
	 <!-- Text End -->
</article>