</svg>
<section id="testimonials" class="fonce">
<h2>Les derniers témoignages de nos clients</h2>
<div class="home-testimonial-boxes">
	<?php 
// rechercher le lien vers les témoignages
$read = ac_read_full_link();
$groupes_display = array(1, 2, 3);
// les trois groupes à afficher
foreach ($groupes_display as $group) {
    $liste = ac_list_testimonial($group);
    // var_dump( $liste ) ;
    foreach ($liste as $item) {
        /* récupère toutes les données du témoignage
        			la fonction n'affiche que les témoignages pour lesquels display = 1*/
        $full = ac_testimonial_everything($item['testimonial_id']);
        if (isset($full)) {
            // it's what we want to display
            $full_testimonial = $full;
            break;
            // sort du foreach
        }
    }
    // end foreach $liste
    // var_dump( $full_testimonial ) ;
    ?>

		<div class="testimonial-col col wow bounceIn animated" style="visibility: visible; -webkit-animation: bounceIn 0.2s;" data-wow-delay="0.2s">
				<?php 
    echo $full_testimonial['photo-1'][0];
    ?>
<!-- afficher contenu de la page avec témoignage complet -->

<!-- !!! le témoignage ne s'affiche avec sa mise en page que si on echo via
		la fonction wpautop - cf https://codex.wordpress.org/Function_Reference/wpautop 
		voir ligne 16 -->

	<?php 
// rechercher le lien vers les témoignages
$read = ac_read_full_link();
// will get 7 if link is http://0ac2015.atoutscuisines.com/test-affichage-temoignages/?testimonial_id=7
$id = $_GET['testimonial_id'];
// echo "<p>id du témoignage : " . $id . "</p>";
$testimonial_single = ac_testimonial_everything($id);
// var_dump( $testimonial_single );
?>
	<section class="temoignage-individuel">
		<h2>Le témoignage de <?php 
echo $testimonial_single['nom'];
?>
</h2>
		<p class="budget">Budget de cette cuisine : <?php 
echo $testimonial_single['budget'];
?>
</p>
		<p><?php 
echo wpautop($testimonial_single['temoignage']);
?>
</p>
		<section class="photo-temoin">
			<p><?php 
echo $testimonial_single['nom'];