</div>
        </div>
    	<?php 
}
?>
        <a href="<?php 
echo getPageUrl("News");
?>
" class="more-news">More News</a>
      </div>
    </div>
    <div class="w-col w-col-4">
      <div class="news-col">
        <h3 class="news-heading">U<rteselectionmarker></rteselectionmarker>pcom<rteselectionmarker></rteselectionmarker>ing Events</h3>
        <?php 
$events = getEventsPosts(0, 4);
?>
        <?php 
foreach ($events as $key => $event) {
    ?>
        <div class="news-link-block">
          <div class="w-clearfix date-block">
            <div class="month"><?php 
    echo date("M", strtotime($event->EventDate));
    ?>
</div>
            <h1 class="date"><?php 
    echo date("d", strtotime($event->EventDate));
    ?>
</h1>
          </div>
?>
	<div data-ix="dissolve" class="w-section single-header">
		<div class="single-article-header">
			<div class="overlay-text">
				<div class="w-container">
					<h1>Upcoming Events</h1>
				</div>
			</div>
			<?php 
print_r(get_the_post_thumbnail(get_the_ID(), null, array('class' => 'singleheader-img')));
?>
		</div>
	</div>
	<div class="w-section article-sec all-news">
		<?php 
$items = getEventsPosts();
?>
		<?php 
$f = 0;
foreach ($items as $key => $item) {
    ?>
			<?php 
    if ($key % 4 == 0) {
        ?>
				<?php 
        $f = $key;
        ?>
				<div class="w-row">
			<?php 
    }
    ?>