<div class="half-editor-image-item  sec-padding sec-bg">
    <div class="container">
        <div class="row align-items-center <?php echo(get_sub_field('content_direction') ? 'flex-md-row' : 'flex-row-reverse') ?>">
            <div class="col-md-6">
                <div class="half-image-item">
                    <img class="img-fluid img-thumbnail"
                         src="<?php the_sub_field('half_content_image'); ?>">
                </div>
            </div>
            <div class="col-md-6">
                <div class="half-editor-item">
                    <?php the_sub_field('half_content_editor'); ?>
                </div>
            </div>
        </div>
    </div>
</div>
