<?php

add_filter("wpex_candidate_single_blocks", function ($blocks) {

	$blocks = array();

	$blocks["title"] = function () {
		global $post;
		?>
		<header class="candidate-title-block">
			<h1 class="candidate-title"><?php echo esc_html( get_the_title( $post ) ); ?> (<?php the_field( "person_id", $post ); ?>)</h1>
			<h2 class="candidate-tagline"><?php the_field( "title", $post ); ?></h2>
		</header>
		<?php
	};

	$blocks["content"] = function() {
		global $post;
		?>
		<div class="candidate-content">
			<div class="first-column">
				<?php echo apply_filters("the_content", $post->post_content); ?>
			</div>
		</div>
		<?php
	};

	return $blocks;

});
