HEX
Server: Apache
System: Linux webd001.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: mciraet (192513)
PHP: 8.2.31
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/mciraet/www/wp-content/themes/movedo-child/single.php
<?php get_header(); ?>

<?php the_post(); ?>



<?php movedo_grve_print_header_title( 'post' ); ?>

<?php movedo_grve_print_header_breadcrumbs( 'post' ); ?>

<?php movedo_grve_print_anchor_menu( 'post' ); ?>



<?php $navbar_layout = movedo_grve_option( 'post_nav_bar_layout', 'layout-1' ); ?>

<div class="grve-single-wrapper">

<div id="overlay"></div>

    <div id="grve-content" class="clearfix <?php echo movedo_grve_sidebar_class(); ?>">

        <div class="grve-content-wrapper">

            <!-- MAIN CONTENT -->

            <div id="grve-main-content">

                <div class="grve-main-content-wrapper clearfix">

                    <h2 class="title-post"><?php the_title(); ?></h2>


                    <?php if ( has_post_thumbnail() ) : ?>

                        <div class="featured-image">

                            <?php the_post_thumbnail(); ?>

                        </div>

                    <?php endif; ?>



                    <div class="review">

                        <div><?php the_field( 'google_maps' ); ?></div>

                        <div class="review__pros nom"><?php the_field( 'nom-prenom' ); ?></div>



                        <?php

                            $field = get_field_object('adresse');



                            echo "<div class='review__cons adresse'><img src='https://testeocene1.be/wp-content/uploads/2024/03/location-e1711460272661.png'><h3 class='h4-ACF'>" . $field['label'] . "</h3><div class='custom-field'>";

                            the_field('adresse');

                            echo "</div></div>";

                            ?>



<?php
$field = get_field_object('date-une');

echo "<div class='review__cons adresse'>
        <img class='icone-agenda' src='https://testeocene1.be/wp-content/uploads/2024/03/calendar-e1711460388169.png'>
        <h3 class='h4-ACF'>" . $field['label'] . "</h3>
        <div class='custom-field field-agenda'>";


$dates = [
    'date-une', 'date-deux', 'date-trois', 'date-quatre', 'date-cinq',
    'date-six', 'date-sept', 'date-huit', 'date-neuf', 'date-dix',
    'date-onze', 'date-douze', 'date-treize', 'date-quatorze', 'date-quinze'
];


$contribution = get_field('contribution');

$last_date_index = -1;
foreach ($dates as $index => $date) {
    if (get_field($date)) {
        $last_date_index = $index;
    }
}

foreach ($dates as $index => $date) {

    $date_value = get_field($date);

    $heure_fin = get_field('heure_fin' . ($index + 1)); 

    if ($date_value) {
        echo "<div class='date-block'>";
        echo $date_value . '<br>';

        if ($heure_fin) {
            echo "<span class='heure-fin'> - " . esc_html($heure_fin) . "</span><br>";
        }

        echo "</div>"; 
    }
}

if ($last_date_index !== -1) {
    if (is_array($contribution)) {
        foreach ($contribution as $value) {
            echo "<span class='contribution'>" . esc_html($value) . "</span><br>";
        }
    } else {

        echo "<span class='contribution'>" . esc_html($contribution) . "</span><br>";
    }
}

echo "</div></div>";
?>



<?php

$field_entree = get_field_object('prix');

$prix_value = get_field('prix');



if ($prix_value) {

    echo "<div class='review__cons prix'>";

    echo "<img class='icon-prix' src='https://testeocene1.be/wp-content/uploads/2024/03/euro-e1711460311904.png'>";

    echo "<h3 class='h4-ACF'>" . esc_html($field_entree['label']) . "</h3>";

    echo "<div class='custom-field'>";

    echo esc_html($prix_value);

    echo "</div>";

    echo "</div>";

}


$field_entree = get_field_object('info-rdv');

$infoRdv_value = get_field('info-rdv');



if ($infoRdv_value) {

    echo "<div class='review__cons prix'>";

    echo "<img class='icon-prix' src='https://www.job-otb.be/wp-content/uploads/2024/03/clock-e1711460337166.png'>";

    echo "<h3 class='h4-ACF'>" . esc_html($field_entree['label']) . "</h3>";

    echo "<div class='custom-field'>";

    echo esc_html($infoRdv_value);

    echo "</div>";

    echo "</div>";

}
?>





<?php



// Champ Parking

$field_parking = get_field_object('parking');

$parking_value = get_field('parking');



if ($parking_value) {

    echo "<div class='review__cons parking'>";

    echo "<img class='icon-parking' src='https://testeocene1.be/wp-content/uploads/2024/03/p-e1711460242456.png'>";

    echo "<h3 class='h4-ACF'>" . $field_parking['label'] . "</h3>";

    echo "<div class='custom-field'>";

    echo wp_kses_post($parking_value);

    echo "</div>";

    echo "</div>";

}








// Champs ACF
$field_contact_tel = get_field_object('contact-tel');
$field_contact_mail = get_field_object('contact-mail');
$field_contact_duplicate_tel = get_field('contact-duplicate'); 
$field_contact_duplicate_mail = get_field('contactmail-duplicate'); 

$contact_tel = get_field('contact-tel'); 
$contact_mail = get_field('contact-mail'); 


if ($contact_tel || $field_contact_duplicate_tel || $contact_mail || $field_contact_duplicate_mail) {
    echo "<div class='review__cons rdv'>";
    echo "<img src='https://testeocene1.be/wp-content/uploads/2024/03/clock-e1711460337166.png'>";

    if ($field_contact_tel && isset($field_contact_tel['label'])) {
        echo "<h3 class='h4-ACF'>" . esc_html($field_contact_tel['label']) . "</h3>";
    }

    if ($contact_tel) {
        echo "<div class='acf-tel'>";
        echo "<a href='tel:" . esc_attr($contact_tel) . "'>" . esc_html($contact_tel) . "</a>";
        echo "</div>";
    }

    if ($field_contact_duplicate_tel && is_array($field_contact_duplicate_tel)) {
        foreach ($field_contact_duplicate_tel as $duplicate) {
            if (isset($duplicate['contact-tel']) && $duplicate['contact-tel']) {
                echo "<div class='acf-tel'>";
                echo "<a href='tel:" . esc_attr($duplicate['contact-tel']) . "'>" . esc_html($duplicate['contact-tel']) . "</a>";
                echo "</div>";
            }
        }
    }

    if ($contact_mail) {
        echo "<div class='acf-mail'>";
        echo "<a href='mailto:" . esc_attr($contact_mail) . "'>" . esc_html($contact_mail) . "</a>";
        echo "</div>";
    }

    if ($field_contact_duplicate_mail && is_array($field_contact_duplicate_mail)) {
        foreach ($field_contact_duplicate_mail as $duplicate) {
            if (isset($duplicate['contact-mail']) && $duplicate['contact-mail']) {
                echo "<div class='acf-mail'>";
                echo "<a href='mailto:" . esc_attr($duplicate['contact-mail']) . "'>" . esc_html($duplicate['contact-mail']) . "</a>";
                echo "</div>";
            }
        }
    }

    echo "</div>";
}


       


$field_website = get_field_object('website');
$website_value = get_field('website');

if ($website_value) {

    $current_language = function_exists('pll_current_language') ? pll_current_language() : 'fr';

    $button_text = ($current_language === 'nl') ? 'Bezoek de website' : 'Visiter le site';

    echo "<div class='review__cons website'>";
    echo "<img src='https://testeocene1.be/wp-content/uploads/2024/03/www-e1711460189170.png'>";
    echo "<h3 class='h4-ACF'>" . $field_website['label'] . "</h3>";
    echo "<div class='custom-field acf-mail'>";
    echo "<a href='" . esc_url($website_value) . "' class='btn btn-primary' target='_blank' rel='noopener noreferrer'>" . $button_text . "</a>";
    echo "</div>";
    echo "</div>";
}

$field_facebook = get_field_object('facebook');
$facebook_value = get_field('facebook');

if ($facebook_value) {

    $current_language = function_exists('pll_current_language') ? pll_current_language() : 'fr';

    $button_text = ($current_language === 'nl') ? 'Facebook' : 'Facebook';

    echo "<div class='review__cons website'>";
    echo "<img src='https://testeocene1.be/wp-content/uploads/2024/03/www-e1711460189170.png'>";
    echo "<h3 class='h4-ACF'>" . $field_facebook['label'] . "</h3>";
    echo "<div class='custom-field acf-mail'>";
    echo "<a href='" . esc_url($facebook_value) . "' class='btn btn-primary' target='_blank' rel='noopener noreferrer'>" . $button_text . "</a>";
    echo "</div>";
    echo "</div>";
}

?>


<div class="review__cons icon">

    <ul>

        <?php


        $categories = get_the_category();

        foreach ($categories as $cat) {

            $category_image_url = z_taxonomy_image_url($cat->term_id);

            if (!empty($category_image_url)) {

                $category_title = $cat->cat_name;

                echo '<li>';

                echo '<img src="' . esc_url($category_image_url) . '" alt="' . esc_attr($category_title) . '" title="' . esc_attr($category_title) . '">';

                echo '<a href="' . esc_url(get_category_link($cat->term_id)) . '" style="display: none;">' . esc_html($category_title) . '</a>';

                echo '</li>';

            }

        }

        ?>

    </ul>

</div>



					</div>

                    </div>

                    <?php

                    get_template_part( 'content', get_post_format() );

                    //Post Pagination

                    wp_link_pages();

                    ?>
                 <!--   ?php
                   // Ajout de la carte en fonction de la langue
                        if (function_exists('pll_current_language')) {
                            $current_language = pll_current_language();

                            // Si la langue est le français, afficher la carte pour la version française
                            if ($current_language == 'fr') {
                                echo do_shortcode('[put_wpgm id=10]'); // Remplacez "1" par l'ID de votre carte française
                            }

                            // Si la langue est le néerlandais, afficher la carte pour la version néerlandaise
                            elseif ($current_language == 'nl') {
                                echo do_shortcode('[put_wpgm id=8]'); // Remplacez "2" par l'ID de votre carte néerlandaise
                            }
                        } else {
                            // Si Polylang n'est pas disponible, afficher une carte par défaut
                            echo do_shortcode('[wpgmp id="1"]'); // Carte par défaut (française)
                        }
                        ?>-->

                </div>

            </div>

        

  



</div>

<?php get_footer(); ?>