<?php /* Template Name: logistic */ ?>

<?php get_header();?>



 <section class="mainsingle">
     
<div class="container">
    <?php if(get_field('the_content_logitic')): ?>
 <div class="thelogistictop">
     <div class="row">
         <?php $thelogistictop = .2 ; while(has_sub_field('the_content_logitic')): ?>
         <div class="col-md-6 mb-5 wow fadeInUp" data-wow-delay= '<?php echo $thelogistictop ?>s' >
             <div class="thlogicontetn">
                 <?php
                 $imageabout = get_sub_field('the_imagethe_content_logitic');
                 if ($imageabout) {
                     $imgabout_url   = $imageabout['url'];
                     $imgabout_title = $imageabout['title'];
                     $imgabout_alt   = $imageabout['alt'];
                     if (empty($imgabout_alt)) {
                         $imgabout_alt = $imgabout_title;
                     }
                 }
                 ?>

                 <img class="img-fluid"
                      src="<?php echo esc_url($imgabout_url); ?>"
                      alt="<?php echo esc_attr($imgabout_alt); ?>"
                      title="<?php echo esc_attr($imgabout_title); ?>" />
                      <h4><?php the_sub_field('the_titlethe_content_logitic') ?></h4>
                      <div class="thlogicontetndes">
                          <?php the_sub_field('the_descriptionthe_content_logitic') ?>
                      </div>
             </div>
         </div>
        <?php $thelogistictop+= .2; endwhile; ?>
     </div>
 </div>
<?php endif; ?>
        <div class="row">
            <?php if (has_post_thumbnail()) { ?>
                <div class="col-lg-12 d-flex justify-content-center mb-5 wow fadeInUp">
                    <div class="singimg">
                        <?php
                        $thumbnail_id = get_post_thumbnail_id();
                        $title = get_the_title($thumbnail_id);
                        $alt = get_post_meta($thumbnail_id, '_wp_attachment_image_alt', true) ?: $title ;
                        ?>
                        <img src="<?php echo get_the_post_thumbnail_url(null, 'full'); ?>"
                             class="img-fluid"
                             alt="<?php echo esc_attr($alt); ?>"
                             title="<?php echo esc_attr($title); ?>" />
                    </div>
                </div>
            <?php } ?>
            <?php if(have_posts()) :  while(have_posts()) : the_post(); ?>
                <div class="col-lg-12 d-flex justify-content-center wow fadeInUp">
                    <div class="singcont">
                        <?php the_content(); ?>
                    </div>
                </div>
            <?php endwhile;  else :  endif;   ?>
        </div>
</div>

 </section>


<?php get_footer();?>


