| Server IP : 145.239.37.162 / Your IP : 216.73.217.81 Web Server : Apache System : Linux webm003.cluster130.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 : verseaa ( 38250) PHP Version : 7.4.33 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/verseaa/www/wp-content/themes/verseau/templates/ |
Upload File : |
<?php
$comments = [];
if (have_rows('groupe_commentaire', 10)) :
while (have_rows('groupe_commentaire', 10)) : the_row();
$comment = [
'note' => intval(get_sub_field('note')),
'commentaire' => get_sub_field('commentaire'),
'nom' => get_sub_field('auteur'),
'entreprise' => get_sub_field('entreprise')
];
$comments[] = $comment;
endwhile;
// No rows found
endif;
?>
<!-- ------------------------------ -->
<section id="verseau-6">
<div class="container">
<h2>Ils nous font confiance</h2>
<div class="comments-group">
<?php
foreach ($comments as $comment) { ?>
<div class="comment-element">
<div class="note">
<?php
for ($i = 1; $i <= $comment['note']; $i++) {
require get_template_directory() . '/images/star-filled.svg';
};
for ($i = 0; $i < (5 - $comment['note']); $i++) {
require get_template_directory() . '/images/star-not-filled.svg';
};
?>
</div>
<p class="comment-text">
<?php echo $comment['commentaire']; ?>
</p>
<p class="comment-author">
<?php echo $comment['nom']; ?>
<?php
if (isset($comment['entreprise'])) {
?> <br>
<span><?php echo $comment['entreprise']; ?></span>
<?php
}
?>
</p>
</div>
<?php } ?>
</div>
</div>
</section>