<?php get_header(); ?>
<div class="container py-5">
    <div class="row">
        <div class="col-12">
            <?php if (function_exists('rank_math_the_breadcrumbs')) rank_math_the_breadcrumbs(); ?>
        </div>
    </div>
</div>
<div class="container single_header">
    <div class="row">

            <?php

                $thumb_id = get_post_thumbnail_id();
                $thumb_url = wp_get_attachment_image_src($thumb_id, 'c_slider', true);
                $header_img_url = $thumb_url[0];

                echo '<img alt="'.get_the_title().'" src="'.$header_img_url.'" class="img-fluid d-none">';

            $title = get_the_title();

            ?>
        <div class="col-12 emploi_img" style="background:url(<?php echo $header_img_url;?>) no-repeat center center / cover;">
        </div>
        <div class="col-12 col-lg-8 offset-lg-2">
            <div class="single_header_bloc bg-beige">
                <h1 class="white h3 text-center"><?php echo $title;?></h1>
                <div class="social">
                <ul class="list-inline social_share job_share">
                    <?php
                    if(get_field('job_type')){
                    ?>
                    <li class="list-inline-item brown">
                        <span class="icon icon-briefcase-alt"></span>
                        <?php echo get_field('job_type');?>
                    </li>
                    <?php
                    }
                    ?>
                    <?php
                    if(get_field('job_location')){
                        ?>
                        <li class="list-inline-item brown">
                            <span class="icon icon-map-marker"></span>
                            <?php echo get_field('job_location');?>
                        </li>
                        <?php
                    }
                    ?>
                </ul>
                </div>
            </div>
        </div>
    </div>
    <div class="row">
        <div class="col-12 p-5 col-lg-10 offset-lg-1 post_content">
        <?php the_content();?>
        </div>
        <div class="col-12 p-5 col-lg-8 offset-lg-2 post_content">
            <?php echo do_shortcode('[contact-form-7 id="253" title="Emploi"]');?>
        </div>

    </div>
</div>




<?php get_footer(); ?>
