<?php get_header();?>


		<!-- section -->
		<section>

			<h1>Események</h1>

			<?php if (have_posts()): while (have_posts()): the_post();?>


		<article id="post-<?php the_ID();?>" <?php post_class();?>>

			<!-- post thumbnail -->
			<?php if (has_post_thumbnail()): // Check if thumbnail exists ?>
				<a class="thumbnailwrapper" href="<?php the_permalink();?>" title="<?php the_title();?>">
					<?php the_post_thumbnail('home-thumbnail');?>
				</a>
				<?php endif;?>
			<!-- /post thumbnail -->

			<div class="metadata">
				<div class="categories">
					<?php the_category(' | ');?>
				</div>
				<div class="postedon">
					<?php the_time('Y. m. d.');?>
				</div>


			</div>


			<!-- post title -->
			<h2>
				<a href="<?php the_permalink();?>" title="<?php the_title();?>"><?php the_title();?></a>
			</h2>
			<!-- /post title -->



		</article>


		<?php endwhile;?>

	<?php else: ?>

<!-- article -->
<article>
	<h2><?php _e('Sorry, nothing to display.', 'dis2019');?></h2>
</article>
<!-- /article -->

<?php endif;?>

			

		</section>
		<!-- /section -->




<?php get_footer();?>