
<?php get_header();?>



<div class="single-pages ">
    <div class="container">
        <h1 class="main-header"><?php the_title(); ?>  </h1>
        <div class="row align-items-center">
            <?php   if ( has_post_thumbnail() ) { ?>
                <div class="col-lg-6">

                    <div class="top-side">
                        <?php the_post_thumbnail( 'full', array( 'class' => 'img-fluid' ) ); ?>
                    </div>
                </div>
                <div class="col-lg-6">

                    <div class="bootom-side">
                        <?php if(have_posts()) :  while(have_posts()) : the_post(); ?>
                            <?php the_content(); ?>
                        <?php endwhile;  else :  endif;   ?>
                    </div>
                </div>
            <?php }
            else {?>
                <div class="col-lg-12">

                    <div class="bootom-side">
                        <?php if(have_posts()) :  while(have_posts()) : the_post(); ?>
                            <?php the_content(); ?>
                        <?php endwhile;  else :  endif;   ?>
                    </div>
                </div>
            <?php }
            ?>

        </div>
        <?php if (have_rows('additional_content')) : ?>
            <div class="additional-content">
                <?php get_template_part('template-parts/additionalContent'); ?>
            </div>
        <?php endif; ?>
    </div>
</div>





<?php get_footer();?>