<?php
/**
 * The Template for displaying all single posts.
 *
 * @package thimpress
 */

get_header();
/**
 * thim_wrapper_loop_start hook
 *
 * @hooked thim_wrapper_loop_end - 1
 * @hooked thim_wapper_page_title - 5
 * @hooked thim_wrapper_loop_start - 30
 */

do_action( 'thim_wrapper_loop_start' );

?>
	<div class="page-content">
		<?php
		while ( have_posts() ) :
			the_post();
			$testimonial_id = get_the_ID();
			?>
			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
				<div class="image">
					<?php echo thim_get_feature_image( get_post_thumbnail_id(), 'full', 200, 200 ); ?>
				</div>
				<div class="content">
					<h3 class="title"><?php echo get_the_title(); ?></h3>
					<?php
					$regency = get_post_meta( $testimonial_id, 'regency', true );
					echo '<div class="regency">' . esc_attr( $regency ) . '</div>';
					?>
					<div class="entry-content">
						<?php the_content(); ?>
					</div>
				</div>
			</article>

			<div class="clear"></div>
			<?php
		endwhile; // end of the loop.
		?>
	</div>
<?php
/**
 * thim_wrapper_loop_end hook
 *
 * @hooked thim_wrapper_loop_end - 10
 * @hooked thim_wrapper_div_close - 30
 */
do_action( 'thim_wrapper_loop_end' );

get_footer();
