refactor: 多页面门店重构 — CPT + 页面模板 + README 更新

- CPT: service(服务项目) + case(案例作品集) + case_type 分类
- 页面: 关于门店/常见问题/预约联系 + archive/single 模板
- 首页精简为 hero+trust+service-teaser+case-teaser+cta
- 主题激活自动迁移 Customizer 产品数据为 service 文章
- 预约表单: nonce+honeypot+rate-limit, URL 参数预填服务
- 联系页: 门店地址/电话/营业时间/百度地图导航
- Customizer 面板改为门店语境(13 板块)
- header CTA 改为预约, helpers 更新为门店口径
- README.md 全面更新为门店多页面架构文档
This commit is contained in:
2026-07-24 15:37:40 +08:00
parent 2a64ce8daa
commit 8a2890f8b4
31 changed files with 1427 additions and 837 deletions
+9 -9
View File
@@ -1,23 +1,23 @@
<?php
/** B2B factory hero. @package Fragrance_Trade */
/** Hero — minimalist luxury. @package Fragrance_Trade */
$title = fragrance_trade_get_mod( 'b2b_hero_title' );
?>
<section id="intro" class="b2b-hero">
<div class="container">
<div class="row">
<div class="col-xl-10 col-lg-11">
<div class="col-xl-9 col-lg-10">
<p class="section-eyebrow"><?php echo esc_html( fragrance_trade_get_mod( 'b2b_hero_eyebrow' ) ); ?></p>
<h1><?php echo esc_html( $title ); ?></h1>
<p class="b2b-hero-lead"><?php echo esc_html( fragrance_trade_get_mod( 'b2b_hero_text' ) ); ?></p>
<div class="d-flex flex-wrap gap-3 mt-4">
<a class="btn btn-b2b-primary" href="<?php echo esc_url( fragrance_trade_get_mod( 'b2b_hero_primary_url' ) ); ?>"><?php echo esc_html( fragrance_trade_get_mod( 'b2b_hero_primary_label' ) ); ?></a>
<a class="btn btn-b2b-secondary" href="<?php echo esc_url( fragrance_trade_get_mod( 'b2b_hero_secondary_url' ) ); ?>"><?php echo esc_html( fragrance_trade_get_mod( 'b2b_hero_secondary_label' ) ); ?></a>
<a class="btn btn-b2b-primary btn-lg" href="<?php echo esc_url( fragrance_trade_get_mod( 'b2b_hero_primary_url' ) ); ?>"><?php echo esc_html( fragrance_trade_get_mod( 'b2b_hero_primary_label' ) ); ?></a>
<a class="btn btn-b2b-outline btn-lg" href="<?php echo esc_url( fragrance_trade_get_mod( 'b2b_hero_secondary_url' ) ); ?>"><?php echo esc_html( fragrance_trade_get_mod( 'b2b_hero_secondary_label' ) ); ?></a>
</div>
<ul class="hero-proof-list list-unstyled d-flex flex-wrap gap-3 mt-5 mb-0" aria-label="<?php esc_attr_e( '制造服务', 'fragrance-trade' ); ?>">
<li><?php esc_html_e( '膜料研发', 'fragrance-trade' ); ?></li>
<li><?php esc_html_e( '裁切包装', 'fragrance-trade' ); ?></li>
<li><?php esc_html_e( '出口支持', 'fragrance-trade' ); ?></li>
</ul>
<ul class="hero-proof-list" aria-label="<?php esc_attr_e( '施工服务', 'fragrance-trade' ); ?>">
<li><?php esc_html_e( '选膜咨询', 'fragrance-trade' ); ?></li>
<li><?php esc_html_e( '专业施工', 'fragrance-trade' ); ?></li>
<li><?php esc_html_e( '售后保障', 'fragrance-trade' ); ?></li>
</ul>
</div>
</div>
</div>