fix contact
This commit is contained in:
61
index.php
61
index.php
@@ -38,6 +38,7 @@ $demo_lessons = get_demo_lessons();
|
||||
<h1 class="logo">Pilates Studio</h1>
|
||||
<?php endif; ?>
|
||||
<nav class="nav">
|
||||
<a href="#contact" class="btn btn-outline">📅 Richiedi Lezione Live</a>
|
||||
<?php if (is_logged_in()): ?>
|
||||
<?php if (is_admin()): ?>
|
||||
<a href="admin/dashboard.php" class="btn btn-secondary">Area Admin</a>
|
||||
@@ -57,6 +58,7 @@ $demo_lessons = get_demo_lessons();
|
||||
<!-- Hero Section -->
|
||||
<section class="hero">
|
||||
<div class="container">
|
||||
<?php echo display_flash_message(); ?>
|
||||
<div class="hero-content">
|
||||
<h2 class="hero-title">Trasforma il tuo corpo con il Pilates</h2>
|
||||
<p class="hero-subtitle">Videolezioni professionali e sessioni live per tutti i livelli</p>
|
||||
@@ -163,6 +165,65 @@ $demo_lessons = get_demo_lessons();
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Sezione Contatti per Lezioni Live -->
|
||||
<section id="contact" class="contact-section">
|
||||
<div class="container">
|
||||
<div class="contact-content">
|
||||
<div class="contact-text">
|
||||
<h2 class="section-title">Richiedi una Lezione Live</h2>
|
||||
<p>Vuoi prenotare una sessione live personalizzata? Contattami per maggiori informazioni e disponibilità.</p>
|
||||
<div class="contact-info">
|
||||
<div class="contact-item">
|
||||
<span class="contact-icon">📧</span>
|
||||
<div>
|
||||
<strong>Email</strong>
|
||||
<a href="mailto:<?php echo ADMIN_EMAIL; ?>"><?php echo ADMIN_EMAIL; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php if (defined('CONTACT_PHONE') && !empty(CONTACT_PHONE)): ?>
|
||||
<div class="contact-item">
|
||||
<span class="contact-icon">📱</span>
|
||||
<div>
|
||||
<strong>Telefono</strong>
|
||||
<a href="tel:<?php echo CONTACT_PHONE; ?>"><?php echo CONTACT_PHONE; ?></a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
<?php if (defined('CONTACT_WHATSAPP') && !empty(CONTACT_WHATSAPP)): ?>
|
||||
<div class="contact-item">
|
||||
<span class="contact-icon">💬</span>
|
||||
<div>
|
||||
<strong>WhatsApp</strong>
|
||||
<a href="https://wa.me/<?php echo preg_replace('/[^0-9]/', '', CONTACT_WHATSAPP); ?>" target="_blank">
|
||||
<?php echo CONTACT_WHATSAPP; ?>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="contact-form-wrapper">
|
||||
<form id="contact-form" class="contact-form" action="contact.php" method="POST">
|
||||
<h3>Invia un Messaggio</h3>
|
||||
<div class="form-group">
|
||||
<input type="text" name="name" class="form-control" placeholder="Il tuo nome *" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="email" name="email" class="form-control" placeholder="La tua email *" required>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="tel" name="phone" class="form-control" placeholder="Telefono (opzionale)">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<textarea name="message" class="form-control" rows="5" placeholder="Il tuo messaggio *" required></textarea>
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary" style="width: 100%;">Invia Richiesta</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- Footer -->
|
||||
<footer class="footer">
|
||||
<div class="container">
|
||||
|
||||
Reference in New Issue
Block a user