Remove testimonials section from homepage

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Fares Kerkeni 2025-12-24 18:28:34 +01:00
parent aa1ee480e0
commit 2485d18bf4
1 changed files with 0 additions and 90 deletions

View File

@ -431,96 +431,6 @@ $contact_url = $contact_page ? get_permalink($contact_page) : home_url('/contact
</div> </div>
</section> </section>
<!-- Testimonials Section -->
<section id="testimonials" class="section testimonials">
<div class="container">
<div class="section-header animate animate-fade-up">
<span class="section-badge">Témoignages</span>
<h2 class="section-title">Ce que Disent nos Clients</h2>
</div>
<div class="testimonials-grid" style="display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--spacing-xl);">
<?php
$testimonials = new WP_Query(array(
'post_type' => 'navier_testimonial',
'posts_per_page' => 3,
'orderby' => 'date',
'order' => 'DESC',
));
if ($testimonials->have_posts()) :
while ($testimonials->have_posts()) : $testimonials->the_post();
?>
<div class="testimonial-card animate animate-fade-up">
<div class="testimonial-content">
<?php the_content(); ?>
</div>
<div class="testimonial-author">
<?php if (has_post_thumbnail()) : ?>
<?php the_post_thumbnail('thumbnail', array('class' => 'testimonial-avatar')); ?>
<?php else : ?>
<div class="testimonial-avatar" style="width: 56px; height: 56px; background: var(--navier-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 1.25rem;">
<?php echo esc_html(substr(get_the_title(), 0, 1)); ?>
</div>
<?php endif; ?>
<div>
<p class="testimonial-name"><?php the_title(); ?></p>
<?php
$role = get_post_meta(get_the_ID(), 'testimonial_role', true);
if ($role) :
?>
<p class="testimonial-role"><?php echo esc_html($role); ?></p>
<?php endif; ?>
</div>
</div>
</div>
<?php
endwhile;
wp_reset_postdata();
else :
// Placeholder testimonials
$placeholder_testimonials = array(
array(
'name' => 'Dr. Marie Dupont',
'role' => 'Directrice de Recherche, Institut Pasteur',
'content' => 'Navier Instruments est notre partenaire de confiance depuis plus de 10 ans. La qualité de leurs équipements et leur service client sont exceptionnels.',
),
array(
'name' => 'Jean-Pierre Martin',
'role' => 'Responsable HSE, Groupe Pharma SA',
'content' => 'Nous avons équipé l\'ensemble de nos sites de production avec les solutions Navier. La fiabilité et la précision des mesures sont remarquables.',
),
array(
'name' => 'Sophie Laurent',
'role' => 'Ingénieure Qualité, AirLab Technologies',
'content' => 'Le support technique de Navier Instruments est réactif et compétent. Ils ont su adapter leurs solutions à nos besoins spécifiques.',
),
);
foreach ($placeholder_testimonials as $testimonial) :
?>
<div class="testimonial-card animate animate-fade-up">
<div class="testimonial-content">
<p><?php echo esc_html($testimonial['content']); ?></p>
</div>
<div class="testimonial-author">
<div class="testimonial-avatar" style="width: 56px; height: 56px; background: var(--navier-primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: white; font-weight: bold; font-size: 1.25rem;">
<?php echo esc_html(substr($testimonial['name'], 0, 1)); ?>
</div>
<div>
<p class="testimonial-name"><?php echo esc_html($testimonial['name']); ?></p>
<p class="testimonial-role"><?php echo esc_html($testimonial['role']); ?></p>
</div>
</div>
</div>
<?php
endforeach;
endif;
?>
</div>
</div>
</section>
<!-- CTA Section --> <!-- CTA Section -->
<section class="section cta"> <section class="section cta">
<div class="container"> <div class="container">