<?php get_header(); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
	<div class="d2-title-bar"><h1><?php the_title(); ?></h1></div>
	<main class="container uw-body" tabindex="-1">
	<div class="pagecontent standard">
	    <div>

	<nav class="uw-breadcrumbs" role="navigation" aria-label="breadcrumbs"><ul><li><a href="/" title="Department of Electrical Engineering">Home</li><li><a href="/research/" title="Research Areas">Research Areas</a></li><li class="current"><span><?php the_title(); ?></span></li></ul></nav>

		<?php the_content(); ?>
          <h2>Latest News</h2>
	    <?php
	    include_once( 'includes/uweeViewNews.php' );
	    $news = new uweeViewNews();
	    $news->setPosts( 6 );
	    $news->addClasses( 'block--spotlight-tiles--research' );
	    $news->displayRobust(false,'h3'); ?>

	    </div>
	    <div>
              <img class="single-research-icon" alt="Icon" src="<?php echo get_field('icon'); ?>"/>
	      <h2>Researchers</h2>
		<?php
		include_once( 'includes/uweeViewPeople.php' );
		$researchers = new uweeViewPeople();
		$researchers->addRelationship( 'researchareas' );
		$researchers->setPosts( -1 );
		$researchers->displayList();
		?>
		<?php
		include_once( 'includes/uweeViewLabs.php' );
		$labs = new uweeViewLabs();
		$labs->setPosts( -1 );
		$labs->displayTiles(); ?>
		<?php
		include_once( 'includes/uweeViewProjects.php' );
		$projects = new uweeViewProjects();
		$projects->displayList();
		?>
		<?php
		include_once( 'includes/uweeViewPublications.php' );
		$publications = new uweeViewPublications();
		$publications->displayList();?>
	    </div>
	</div>
	</main>
<?php endwhile; else : ?>
<main class="container uw-body full" tabindex="-1">
	<p>Not found.</p>
</main>
<?php endif; ?>
<?php get_footer(); ?>
