<?php
/**
 * Template part for displaying single post Standard hero content - Layout 1
 */
if ( ! defined( 'ABSPATH' ) ) { exit; } // Exit if accessed directly

$img_bottom = !empty(rivax_get_option('single-hero-1-bottom-img'));
?>
<div class="single-hero-1">
	<?php if($img_bottom) {get_template_part('template-parts/post/hero/title-section');} ?>
    <?php if(has_post_thumbnail() && empty(rivax_get_option('single-hero-1-disable-img'))): ?>
    <div class="image-container">
        <?php
        $img_size = !empty(rivax_get_option('single-hero-1-full-img'))? 'full' : 'rivax-large';
        the_post_thumbnail($img_size, array( 'title' => get_the_title() ));
        ?>
		<?php rivax_single_hero_caption () ?>
    </div>
	<?php endif; ?>
    <?php if(!$img_bottom) {get_template_part('template-parts/post/hero/title-section');} ?>
</div>