コード例 #1
0
	</section>
	<!-- End page slider area. -->

<svg id="BrokenLineBefore" xmlns="http://www.w3.org/2000/svg" version="1.1" width="100%" height="100" viewBox="0 0 100 102" preserveAspectRatio="none">
		<path d="M0 0 L66.5 50 L100 0"></path>
</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 ) ;
    ?>
コード例 #2
0
			<p><?php 
echo $testimonial_single['nom'];
?>
</p>
			<img src="<?php 
echo $testimonial_single['photo'];
?>
" alt="<?php 
echo $testimonial_single['nom'];
?>
" >
		</section>
		<section class="liens">
		<?php 
// pour identifier le groupe auquel appartient ce témoignage
$liste = ac_list_testimonial(0);
// liste de tous les témoignages
foreach ($liste as $item) {
    if ($item["id"] == $id) {
        $groupe = $item["group_id"];
        break;
    } else {
        $groupe = "Pas de groupe défini...";
    }
}
// var_dump( $liste );
?>

		</br>
		
			<a href="<?php