<?php 

/** Loads the WordPress Environment and Template */
require_once './wp-config.php';
require_once './wp-load.php';
require_once './wp-includes/wp-db.php';
require_once './wp-includes/pluggable.php';
// require_once './wp-blog-header.php';

$pid = $_POST['pid'];
// echo $pid;

$args = array('p' => $pid, 'post_type' => 'themes');
$loop = new WP_Query($args);
?>
<?php while ( $loop->have_posts() ) : $loop->the_post(); ?>
    <?php global $post; ?>

    <div class="row position-relative mb-5 mx-0">
            <div class="col-12 mb-5 px-0">
            <?php echo do_shortcode( ' '. the_field('map_ifream_') .' ' );  ?>
            </div>
            <div class="container">
                <div class="row">
                    <div class="col-12 col-xl-4 col-lg-5 col-md-6 col-sm-12 py-5 px-5 position-absolute align-self-center bg-color-golden contact_board">
                        <h1 class="text-uppercase text-color-blue gotham_medium my-5">Contact<span class="text-white">&nbsp;Us</span><br></h1>
                        <?php $ab = get_field('address_bar'); if( !empty($ab) ): ?>
                        <div class="media text-white my-5">
                            <i class="fa fa-map-marker text-white mr-3" style="font-size: 30px;"></i>
                            <div class="media-body dealers_name_and_address">
                                <?php echo do_shortcode( ' '. the_field('address_bar') .' ' );  ?>
                            </div>
                        </div><?php endif; ?>
                        <?php $eb = get_field('email_bar'); if( !empty($eb) ): ?>
                        <p class="d-flex align-items-center text-white my-5">
                            <i class="fa fa-envelope mr-3 text-white dealers_email_id" style="font-size: 23px;"></i>
                            <?php echo do_shortcode( ' '. the_field('email_bar') .' ' );  ?>
                        </p><?php endif; ?>
                        <?php $nb = get_field('number_bar'); if( !empty($nb) ): ?>
                        <div class="media text-white mt-5">
                            <i class="fa fa-fax text-white mr-3" style="font-size: 23px;"></i>
                            <div class="media-body">
                                 
                                <?php echo do_shortcode( ' '. the_field('number_bar') .' ' );  ?>
                                 
                            </div>
                        </div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
        </div>
    
												
												
<?php endwhile; ?>
