<?php /* Template Name:  اتصل بنا */ ?>
<?php get_header(); ?>





<div class="container baner-page">
<?php the_post_thumbnail(); ?>  
</div>

<section class="contact page">
      <div class="bg container">

      <div class="block col-12 col-md-6"><?php the_field('form', get_option('page_on_front')); ?></div>
      <div class="block col-12 col-md-6">
            <?php the_field('call', get_option('page_on_front')); ?>

            <?php if( have_rows('contact', get_option('page_on_front')) ): ?>
            <?php while( have_rows('contact', get_option('page_on_front')) ): the_row(); ?>
                
                <div class="box-call col-12">
                    <img src="<?php the_sub_field('img'); ?>" alt="">
                    <h4><?php the_sub_field('name'); ?></h4>
                    <p><?php the_sub_field('text'); ?></p>
                </div>
                  
            <?php endwhile; ?>
            <?php endif; ?>
            <div class="media col-12">
                  <?php if( have_rows('icons', 'option') ): ?>
                  <?php while( have_rows('icons', 'option') ): the_row(); ?>
                  <a target="blank" title="" href="<?php the_sub_field('link'); ?>"><?php the_sub_field('icon'); ?></a>
                  <?php endwhile; ?>
                  <?php endif; ?> 
            </div><!--  -->

      </div>


      </div>
</section>





<?php // include_once get_template_directory() . '/icons.php'; ?>




<?php get_footer(); ?>