Files
car-t-t/page-contact.php
T
zhs123 2a64ce8daa feat: initial commit - 汽车贴膜门店 WordPress 主题 (B2B Trade v2.0.0)
- WordPress classic theme for car tinting/foil shop
- 13 homepage template parts
- Customizer panel with 13 sections
- RFQ inquiry form handler
- Bootstrap 5.3 + AOS + Colorbox frontend
- 13 SVG placeholder images
- Chinese content defaults
2026-07-24 13:52:59 +08:00

51 lines
3.6 KiB
PHP

<?php
/**
* Booking / contact page template. Reuses the secure RFQ handler.
*
* @package Fragrance_Trade
*/
get_header();
$notice = fragrance_trade_get_notice();
$notice_message = fragrance_trade_notice_message( $notice );
?>
<main id="primary" class="site-main">
<section id="rfq" class="b2b-section rfq-section">
<div class="container">
<div class="row g-5">
<div class="col-lg-4">
<p class="section-eyebrow"><?php esc_html_e( '预约到店', 'fragrance-trade' ); ?></p>
<h2><?php esc_html_e( '预约您的贴膜服务', 'fragrance-trade' ); ?></h2>
<p class="section-lead"><?php esc_html_e( '留下车型与需求,我们会尽快联系您,确认到店施工时间。', 'fragrance-trade' ); ?></p>
<div class="rfq-direct">
<h3><?php esc_html_e( '希望直接联系?', 'fragrance-trade' ); ?></h3>
<a href="<?php echo esc_url( fragrance_trade_get_inquiry_url() ); ?>"><?php esc_html_e( '通过邮件或 WhatsApp 联系我们', 'fragrance-trade' ); ?></a>
</div>
</div>
<div class="col-lg-8">
<div class="rfq-form-card">
<div class="fragrance-form-status" aria-live="polite">
<?php if ( $notice_message ) : ?><p class="notice-<?php echo esc_attr( $notice ); ?>"><?php echo esc_html( $notice_message ); ?></p><?php endif; ?>
</div>
<form action="<?php echo esc_url( admin_url( 'admin-post.php' ) ); ?>" method="post">
<input type="hidden" name="action" value="fragrance_rfq">
<?php wp_nonce_field( 'fragrance_rfq', 'fragrance_rfq_nonce' ); ?>
<div class="row g-3">
<div class="col-sm-6"><label for="rfq-name"><?php esc_html_e( '姓名 *', 'fragrance-trade' ); ?></label><input id="rfq-name" class="form-control" type="text" name="name" required maxlength="100" autocomplete="name"></div>
<div class="col-sm-6"><label for="rfq-email"><?php esc_html_e( '邮箱 *', 'fragrance-trade' ); ?></label><input id="rfq-email" class="form-control" type="email" name="email" required maxlength="190" autocomplete="email"></div>
<div class="col-sm-6"><label for="rfq-car"><?php esc_html_e( '车型 / 车牌(选填)', 'fragrance-trade' ); ?></label><input id="rfq-car" class="form-control" type="text" name="company" maxlength="150"></div>
<div class="col-sm-6"><label for="rfq-whatsapp"><?php esc_html_e( 'WhatsApp 或电话', 'fragrance-trade' ); ?></label><input id="rfq-whatsapp" class="form-control" type="text" name="whatsapp" maxlength="100" autocomplete="tel"></div>
<div class="col-12"><label for="rfq-product-type"><?php esc_html_e( '想做的项目 / 膜种 *', 'fragrance-trade' ); ?></label><input id="rfq-product-type" class="form-control" type="text" name="product_type" required maxlength="150" data-rfq-product-field></div>
<div class="col-12"><label for="rfq-message"><?php esc_html_e( '简要需求描述 *', 'fragrance-trade' ); ?></label><textarea id="rfq-message" class="form-control" name="message" rows="4" required maxlength="2000" placeholder="<?php esc_attr_e( '请描述您的车型与需求。', 'fragrance-trade' ); ?>"></textarea></div>
</div>
<div class="fragrance-honeypot" aria-hidden="true"><label for="rfq-website">Website</label><input id="rfq-website" type="text" name="fragrance_website" tabindex="-1" autocomplete="off"></div>
<p class="rfq-privacy-note"><?php esc_html_e( '我们仅会使用这些信息回复您的预约。', 'fragrance-trade' ); ?></p>
<button type="submit" class="btn btn-b2b-primary"><?php esc_html_e( '提交预约', 'fragrance-trade' ); ?></button>
</form>
</div>
</div>
</div>
</div>
</section>
</main>
<?php get_footer(); ?>