Remove product form, translate footer to French, fix logo
- Removed contact form from product pages - Translated footer labels to French (Produits, Entreprise, etc.) - Improved footer logo CSS with filter for dark background - Updated legal links in French 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2485d18bf4
commit
edeeb73534
|
|
@ -42,7 +42,7 @@
|
|||
|
||||
<!-- Navigation Columns -->
|
||||
<div class="footer-column">
|
||||
<h4><?php esc_html_e('Products', 'navier-instruments'); ?></h4>
|
||||
<h4>Produits</h4>
|
||||
<?php
|
||||
wp_nav_menu(array(
|
||||
'theme_location' => 'footer',
|
||||
|
|
@ -51,10 +51,10 @@
|
|||
'depth' => 1,
|
||||
'fallback_cb' => function() {
|
||||
echo '<ul class="footer-menu">';
|
||||
echo '<li><a href="#">' . esc_html__('Air Samplers', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">' . esc_html__('Analyzers', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">' . esc_html__('Accessories', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">' . esc_html__('Software', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">Préleveurs d\'air</a></li>';
|
||||
echo '<li><a href="#">Analyseurs</a></li>';
|
||||
echo '<li><a href="#">Accessoires</a></li>';
|
||||
echo '<li><a href="#">Logiciels</a></li>';
|
||||
echo '</ul>';
|
||||
},
|
||||
));
|
||||
|
|
@ -62,7 +62,7 @@
|
|||
</div>
|
||||
|
||||
<div class="footer-column">
|
||||
<h4><?php esc_html_e('Company', 'navier-instruments'); ?></h4>
|
||||
<h4>Entreprise</h4>
|
||||
<?php
|
||||
wp_nav_menu(array(
|
||||
'theme_location' => 'footer-2',
|
||||
|
|
@ -71,10 +71,10 @@
|
|||
'depth' => 1,
|
||||
'fallback_cb' => function() {
|
||||
echo '<ul class="footer-menu">';
|
||||
echo '<li><a href="#">' . esc_html__('About Us', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">' . esc_html__('Our Values', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">' . esc_html__('Careers', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">' . esc_html__('News', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">À propos</a></li>';
|
||||
echo '<li><a href="#">Nos valeurs</a></li>';
|
||||
echo '<li><a href="#">Carrières</a></li>';
|
||||
echo '<li><a href="#">Actualités</a></li>';
|
||||
echo '</ul>';
|
||||
},
|
||||
));
|
||||
|
|
@ -82,7 +82,7 @@
|
|||
</div>
|
||||
|
||||
<div class="footer-column">
|
||||
<h4><?php esc_html_e('Contact', 'navier-instruments'); ?></h4>
|
||||
<h4>Contact</h4>
|
||||
<ul class="footer-menu footer-contact">
|
||||
<li>
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
|
|
@ -121,7 +121,7 @@
|
|||
<div class="footer-bottom-inner">
|
||||
<p class="copyright">
|
||||
© <?php echo date('Y'); ?> <?php bloginfo('name'); ?>.
|
||||
<?php esc_html_e('All rights reserved.', 'navier-instruments'); ?>
|
||||
Tous droits réservés.
|
||||
</p>
|
||||
<ul class="footer-legal">
|
||||
<?php
|
||||
|
|
@ -131,9 +131,9 @@
|
|||
'items_wrap' => '%3$s',
|
||||
'depth' => 1,
|
||||
'fallback_cb' => function() {
|
||||
echo '<li><a href="#">' . esc_html__('Privacy Policy', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">' . esc_html__('Terms of Use', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">' . esc_html__('Legal Notice', 'navier-instruments') . '</a></li>';
|
||||
echo '<li><a href="#">Politique de confidentialité</a></li>';
|
||||
echo '<li><a href="#">Conditions d\'utilisation</a></li>';
|
||||
echo '<li><a href="#">Mentions légales</a></li>';
|
||||
},
|
||||
));
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -478,117 +478,6 @@ while (have_posts()) :
|
|||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Contact Form Section -->
|
||||
<section id="contact-product" class="quote-form-section section">
|
||||
<div class="container">
|
||||
<div class="quote-form-inner">
|
||||
<div class="quote-form-content" data-reveal="fade-right">
|
||||
<span class="section-badge">Contact</span>
|
||||
<h2 class="section-title">Demande de Devis</h2>
|
||||
<p>Remplissez le formulaire pour recevoir un devis personnalisé pour le <strong><?php the_title(); ?></strong>.</p>
|
||||
|
||||
<ul class="quote-form-features">
|
||||
<li data-reveal="fade-up" data-delay="100">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<polyline points="20 6 9 17 4 12"></polyline>
|
||||
</svg>
|
||||
Réponse sous 24 heures ouvrées
|
||||
</li>
|
||||
<li data-reveal="fade-up" data-delay="150">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<polyline points="20 6 9 17 4 12"></polyline>
|
||||
</svg>
|
||||
Devis gratuit et sans engagement
|
||||
</li>
|
||||
<li data-reveal="fade-up" data-delay="200">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<polyline points="20 6 9 17 4 12"></polyline>
|
||||
</svg>
|
||||
Conseil technique personnalisé
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
<div class="contact-direct" data-reveal="fade-up" data-delay="300">
|
||||
<h4>Contact Direct</h4>
|
||||
<p>
|
||||
<a href="tel:+33620094641">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z"></path>
|
||||
</svg>
|
||||
+33 (0) 6 20 09 46 41
|
||||
</a>
|
||||
</p>
|
||||
<p>
|
||||
<a href="mailto:contact@navier-instruments.com">
|
||||
<svg width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<path d="M4 4h16c1.1 0 2 .9 2 2v12c0 1.1-.9 2-2 2H4c-1.1 0-2-.9-2-2V6c0-1.1.9-2 2-2z"></path>
|
||||
<polyline points="22,6 12,13 2,6"></polyline>
|
||||
</svg>
|
||||
contact@navier-instruments.com
|
||||
</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="quote-form-wrapper" data-reveal="fade-left">
|
||||
<h3>Formulaire de Devis</h3>
|
||||
<form id="navier-contact-form" method="post">
|
||||
<?php wp_nonce_field('navier_nonce', 'navier_contact_nonce'); ?>
|
||||
<input type="hidden" name="product_name" value="<?php echo esc_attr(get_the_title()); ?>">
|
||||
<input type="hidden" name="form_source" value="product_page">
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label for="contact-name" class="form-label">Nom complet *</label>
|
||||
<input type="text" id="contact-name" name="name" class="form-input" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="contact-company" class="form-label">Entreprise</label>
|
||||
<input type="text" id="contact-company" name="company" class="form-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-row">
|
||||
<div class="form-group">
|
||||
<label for="contact-email" class="form-label">Email *</label>
|
||||
<input type="email" id="contact-email" name="email" class="form-input" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="contact-phone" class="form-label">Téléphone</label>
|
||||
<input type="tel" id="contact-phone" name="phone" class="form-input">
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="contact-quantity" class="form-label">Quantité souhaitée</label>
|
||||
<select id="contact-quantity" name="quantity" class="form-input">
|
||||
<option value="1">1 unité</option>
|
||||
<option value="2-5">2 à 5 unités</option>
|
||||
<option value="6-10">6 à 10 unités</option>
|
||||
<option value="10+">Plus de 10 unités</option>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<div class="form-group">
|
||||
<label for="contact-message" class="form-label">Votre message</label>
|
||||
<textarea id="contact-message" name="message" class="form-textarea" placeholder="Décrivez vos besoins..."></textarea>
|
||||
</div>
|
||||
|
||||
<button type="submit" class="btn btn--primary btn--large" style="width: 100%;">
|
||||
Envoyer ma Demande
|
||||
<svg width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
||||
<line x1="22" y1="2" x2="11" y2="13"></line>
|
||||
<polygon points="22 2 15 22 11 13 2 9 22 2"></polygon>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<div id="form-response" style="margin-top: var(--spacing-md); display: none;"></div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<?php
|
||||
endwhile;
|
||||
|
||||
|
|
|
|||
|
|
@ -1092,8 +1092,16 @@ img {
|
|||
margin-bottom: var(--spacing-lg);
|
||||
}
|
||||
|
||||
.footer-logo a {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.footer-logo img {
|
||||
height: 40px;
|
||||
height: 50px;
|
||||
width: auto;
|
||||
max-width: 200px;
|
||||
filter: brightness(0) invert(1);
|
||||
}
|
||||
|
||||
.footer-logo-text {
|
||||
|
|
|
|||
Loading…
Reference in New Issue