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
+1 -1
View File
@@ -1,5 +1,5 @@
<?php /** Typical buyer project scenarios. @package Fragrance_Trade */ if ( ! fragrance_trade_show_section( 'b2b_show_projects' ) ) { return; } ?>
<section id="projects" class="b2b-section projects-section">
<div class="container"><div class="section-heading text-center mx-auto"><p class="section-eyebrow"><?php esc_html_e( '项目案例', 'fragrance-trade' ); ?></p><h2><?php echo esc_html( fragrance_trade_get_mod( 'b2b_projects_title' ) ); ?></h2><p><?php echo esc_html( fragrance_trade_get_mod( 'b2b_projects_text' ) ); ?></p></div>
<div class="project-grid mt-5"><?php for ( $index = 1; $index <= 3; $index++ ) : ?><article class="project-card"><p class="project-meta"><?php echo esc_html( fragrance_trade_get_mod( 'b2b_project_' . $index . '_meta' ) ); ?></p><h3><?php echo esc_html( fragrance_trade_get_mod( 'b2b_project_' . $index . '_title' ) ); ?></h3><p><?php echo esc_html( fragrance_trade_get_mod( 'b2b_project_' . $index . '_text' ) ); ?></p><a href="#rfq" class="text-link"><?php esc_html_e( '咨询类似项目', 'fragrance-trade' ); ?> <span aria-hidden="true">→</span></a></article><?php endfor; ?></div></div>
<div class="project-grid mt-5"><?php for ( $index = 1; $index <= 3; $index++ ) : ?><article class="project-card"><p class="project-meta"><?php echo esc_html( fragrance_trade_get_mod( 'b2b_project_' . $index . '_meta' ) ); ?></p><h3><?php echo esc_html( fragrance_trade_get_mod( 'b2b_project_' . $index . '_title' ) ); ?></h3><p><?php echo esc_html( fragrance_trade_get_mod( 'b2b_project_' . $index . '_text' ) ); ?></p><a href="#rfq" class="text-link"><?php esc_html_e( '咨询类似服务', 'fragrance-trade' ); ?> <span aria-hidden="true">→</span></a></article><?php endfor; ?></div></div>
</section>