🤩 File Manager - Mr.X
PHP:
8.3.33
Server:
Apache
OS:
Linux 5.14.0-611.49.1.el9_7.x86_64
User:
websparkit
Navigate
Upload:
Upload
New File
New Folder
Editing:page-enquire.php
<?php /** * Enquire Page Template * * Template Name: Enquiry Form * * @package Ophiro_Ventures */ get_header(); ?> <section class="o-section" style="padding-top:calc(var(--space-5xl) + 80px);"> <div class="o-container"> <div class="o-reveal" style="text-align:center;margin-bottom:var(--space-3xl);"> <h6><?php esc_html_e( 'The Beginning', 'ophiro' ); ?></h6> <h1 style="font-size:clamp(2.5rem,5vw,4.5rem);font-weight:300;"><?php esc_html_e( 'Begin Your Discovery', 'ophiro' ); ?></h1> <div class="o-gold-line o-gold-line--center"></div> </div> <div class="o-enquire-layout"> <!-- Left: Information --> <div class="o-enquire-info o-reveal"> <h2 class="o-enquire-info__title"><?php esc_html_e( 'Let us craft something extraordinary for you.', 'ophiro' ); ?></h2> <p class="o-enquire-info__desc"> <?php esc_html_e( 'Every Ophiro journey begins with a conversation. Share your vision, and our travel architects will design an experience as singular as you are. There is no obligation — only the possibility of something remarkable.', 'ophiro' ); ?> </p> <div style="margin-top:var(--space-3xl);"> <h6 style="margin-bottom:var(--space-lg);"><?php esc_html_e( 'What Happens Next', 'ophiro' ); ?></h6> <p style="font-size:var(--text-sm);color:var(--ophiro-text-secondary);margin-bottom:var(--space-md);"> <strong style="color:var(--ophiro-gold-star);">01.</strong> <?php esc_html_e( 'Our travel architects review your enquiry within 24 hours.', 'ophiro' ); ?> </p> <p style="font-size:var(--text-sm);color:var(--ophiro-text-secondary);margin-bottom:var(--space-md);"> <strong style="color:var(--ophiro-gold-star);">02.</strong> <?php esc_html_e( 'We schedule a personal consultation at your convenience.', 'ophiro' ); ?> </p> <p style="font-size:var(--text-sm);color:var(--ophiro-text-secondary);margin-bottom:var(--space-md);"> <strong style="color:var(--ophiro-gold-star);">03.</strong> <?php esc_html_e( 'You receive a bespoke itinerary crafted exclusively for you.', 'ophiro' ); ?> </p> </div> <div style="margin-top:var(--space-3xl);padding:var(--space-xl);background:rgba(245,200,66,0.03);border-left:2px solid var(--ophiro-gold-deep);"> <p style="font-family:var(--font-display);font-size:var(--text-lg);font-style:italic;color:var(--ophiro-text-secondary);margin-bottom:var(--space-sm);"> <?php esc_html_e( '"Not a tour. A discovery."', 'ophiro' ); ?> </p> <p style="font-size:var(--text-xs);color:var(--ophiro-gold-warm);letter-spacing:var(--tracking-wider);text-transform:uppercase;"> <?php esc_html_e( 'Ophiro Ventures', 'ophiro' ); ?> </p> </div> </div> <!-- Right: Enquiry Form --> <div class="o-enquire-form o-reveal" style="transition-delay:200ms;"> <?php if ( isset( $_GET['journey'] ) ) : ?> <div style="padding:var(--space-md);background:rgba(245,200,66,0.06);border:1px solid var(--ophiro-gold-border);margin-bottom:var(--space-xl);font-size:var(--text-sm);color:var(--ophiro-text-secondary);"> <strong><?php esc_html_e( 'Interested in:', 'ophiro' ); ?></strong> <span style="color:var(--ophiro-gold-star);"><?php echo esc_html( sanitize_text_field( $_GET['journey'] ) ); ?></span> </div> <?php endif; ?> <form id="ophiro-enquiry-form" method="post" action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>"> <input type="hidden" name="action" value="ophiro_enquiry"> <?php wp_nonce_field( 'ophiro_enquiry_nonce', 'ophiro_enquiry_nonce_field' ); ?> <!-- Name --> <div class="o-form-group"> <label class="o-form-label" for="enquire-name"><?php esc_html_e( 'Your Name', 'ophiro' ); ?></label> <input type="text" id="enquire-name" name="enquire_name" class="o-form-input" required placeholder="<?php esc_attr_e( 'Full name', 'ophiro' ); ?>"> </div> <!-- Email & Phone --> <div style="display:grid;grid-template-columns:1fr 1fr;gap:var(--space-lg);"> <div class="o-form-group"> <label class="o-form-label" for="enquire-email"><?php esc_html_e( 'Email Address', 'ophiro' ); ?></label> <input type="email" id="enquire-email" name="enquire_email" class="o-form-input" required placeholder="<?php esc_attr_e( 'you@email.com', 'ophiro' ); ?>"> </div> <div class="o-form-group"> <label class="o-form-label" for="enquire-phone"><?php esc_html_e( 'Phone (Optional)', 'ophiro' ); ?></label> <input type="tel" id="enquire-phone" name="enquire_phone" class="o-form-input" placeholder="<?php esc_attr_e( '+44 ...', 'ophiro' ); ?>"> </div> </div> <!-- Travel Dates --> <div style="display:grid;grid-template-columns:1fr 1fr;gap:var(--space-lg);"> <div class="o-form-group"> <label class="o-form-label" for="enquire-date-from"><?php esc_html_e( 'Travel From', 'ophiro' ); ?></label> <input type="date" id="enquire-date-from" name="enquire_date_from" class="o-form-input"> </div> <div class="o-form-group"> <label class="o-form-label" for="enquire-date-to"><?php esc_html_e( 'Travel To', 'ophiro' ); ?></label> <input type="date" id="enquire-date-to" name="enquire_date_to" class="o-form-input"> </div> </div> <!-- Group Size --> <div class="o-form-group"> <label class="o-form-label" for="enquire-group"><?php esc_html_e( 'Group Size', 'ophiro' ); ?></label> <select id="enquire-group" name="enquire_group" class="o-form-select"> <option value=""><?php esc_html_e( 'Select group size...', 'ophiro' ); ?></option> <option value="solo"><?php esc_html_e( 'Solo Traveller', 'ophiro' ); ?></option> <option value="couple"><?php esc_html_e( 'Couple (2)', 'ophiro' ); ?></option> <option value="small"><?php esc_html_e( 'Small Group (3-4)', 'ophiro' ); ?></option> <option value="medium"><?php esc_html_e( 'Medium Group (5-8)', 'ophiro' ); ?></option> <option value="large"><?php esc_html_e( 'Large Group (9+)', 'ophiro' ); ?></option> </select> </div> <!-- Territory Mapping --> <div class="o-form-group"> <label class="o-form-label"><?php esc_html_e( 'Which Emotional Territories call to you?', 'ophiro' ); ?></label> <div class="o-checkbox-group"> <label class="o-checkbox-label"> <input type="checkbox" name="territories[]" value="wonder"> <span style="color:var(--ophiro-wonder);">✨</span> <?php esc_html_e( 'Wonder', 'ophiro' ); ?> </label> <label class="o-checkbox-label"> <input type="checkbox" name="territories[]" value="warmth"> <span style="color:var(--ophiro-warmth);">☀</span> <?php esc_html_e( 'Warmth', 'ophiro' ); ?> </label> <label class="o-checkbox-label"> <input type="checkbox" name="territories[]" value="wellspring"> <span style="color:var(--ophiro-wellspring);">🌊</span> <?php esc_html_e( 'Wellspring', 'ophiro' ); ?> </label> <label class="o-checkbox-label"> <input type="checkbox" name="territories[]" value="wild"> <span style="color:var(--ophiro-wild);">🌌</span> <?php esc_html_e( 'Wild', 'ophiro' ); ?> </label> </div> </div> <!-- Budget Tier --> <div class="o-form-group"> <label class="o-form-label" for="enquire-budget"><?php esc_html_e( 'Target Budget Tier (per person)', 'ophiro' ); ?></label> <select id="enquire-budget" name="enquire_budget" class="o-form-select"> <option value=""><?php esc_html_e( 'Select budget tier...', 'ophiro' ); ?></option> <option value="explore"><?php esc_html_e( 'Explore ($1,500 - $3,000)', 'ophiro' ); ?></option> <option value="comfort"><?php esc_html_e( 'Comfort ($3,000 - $6,000)', 'ophiro' ); ?></option> <option value="signature"><?php esc_html_e( 'Signature ($6,000 - $12,000)', 'ophiro' ); ?></option> <option value="ultra"><?php esc_html_e( 'Ultra ($12,000+)', 'ophiro' ); ?></option> </select> </div> <!-- Special Occasion --> <div class="o-form-group"> <label class="o-form-label" for="enquire-occasion"><?php esc_html_e( 'Special Occasion / Milestone Celebration', 'ophiro' ); ?></label> <select id="enquire-occasion" name="enquire_occasion" class="o-form-select"> <option value=""><?php esc_html_e( 'Select if applicable...', 'ophiro' ); ?></option> <option value="honeymoon"><?php esc_html_e( 'Honeymoon', 'ophiro' ); ?></option> <option value="anniversary"><?php esc_html_e( 'Anniversary', 'ophiro' ); ?></option> <option value="birthday"><?php esc_html_e( 'Birthday Milestone', 'ophiro' ); ?></option> <option value="proposal"><?php esc_html_e( 'Proposal', 'ophiro' ); ?></option> <option value="family"><?php esc_html_e( 'Family Reunion', 'ophiro' ); ?></option> <option value="retreat"><?php esc_html_e( 'Corporate Retreat', 'ophiro' ); ?></option> <option value="other"><?php esc_html_e( 'Other Celebration', 'ophiro' ); ?></option> </select> </div> <!-- Journey Interest --> <?php if ( isset( $_GET['journey'] ) ) : ?> <div class="o-form-group"> <label class="o-form-label" for="enquire-journey"><?php esc_html_e( 'Journey of Interest', 'ophiro' ); ?></label> <input type="text" id="enquire-journey" name="enquire_journey" class="o-form-input" value="<?php echo esc_attr( sanitize_text_field( $_GET['journey'] ) ); ?>"> </div> <?php endif; ?> <!-- Message --> <div class="o-form-group"> <label class="o-form-label" for="enquire-message"><?php esc_html_e( 'Tell Us About Your Vision', 'ophiro' ); ?></label> <textarea id="enquire-message" name="enquire_message" class="o-form-textarea" placeholder="<?php esc_attr_e( 'Share any details about what you envision for this journey...', 'ophiro' ); ?>"></textarea> </div> <!-- Submit --> <div class="o-form-group" style="margin-top:var(--space-xl);"> <button type="submit" class="o-btn o-btn--primary" style="width:100%;"> <?php esc_html_e( 'Submit Enquiry', 'ophiro' ); ?> </button> </div> <p style="font-size:var(--text-xs);color:var(--ophiro-text-muted);text-align:center;margin-top:var(--space-lg);"> <?php esc_html_e( 'Your information is kept strictly confidential. We respond within 24 hours.', 'ophiro' ); ?> </p> </form> </div> </div> </div> </section> <?php get_footer(); ?>
Save Changes
Cancel
Create New File
Create New Folder