{{include "header.html"}} {{include "nav.html"}} {{if index .ThemesExt "show_breadcrumb"}} {{if .Nav}} {{end}} {{end}} {{if .Single}} {{if .Single.Ext}} {{$banner := index .Single.Ext "banner_img"}} {{if $banner}}
{{.Single.Name}}

{{.Single.Name}}

{{end}} {{end}}

Contact

{{/* 联系方式读 .ThemesExt,读不到才回落占位文案。 🚨 原来这里写死 400-123-4567 / contact@example.com:装了这套主题的 每个站点都会展示同一串假号码,而主题文件升级会被覆盖回去。 留空时整行不显示 —— 显示一串打不通的电话比不显示更糟。 */}} {{$phone := index .ThemesExt "contact_phone"}} {{$email := index .ThemesExt "contact_email"}} {{$addr := index .ThemesExt "contact_address"}} {{$hours := index .ThemesExt "work_time"}}
{{if or $phone $email $addr $hours}} {{if $phone}}
☎
Phone
{{$phone}}
{{end}} {{if $email}}
✉
Email
{{$email}}
{{end}} {{if $addr}}
⌂
Address
{{$addr}}
{{end}} {{if $hours}}
⏱
Business hours
{{$hours}}
{{end}} {{with index .ThemesExt "whatsapp_link"}} {{/* WhatsApp 直聊。外贸买家最常用的即时渠道,比等邮件往返快一个数量级。 ⚠️ 只在配置了链接时才出现 —— 放一个点了没反应的按钮不如不放。 */}}
✆
WhatsApp
Chat with us →
{{end}} {{else}}

No contact details yet — add them under Appearance → Theme data.

{{end}}
{{if eq 1 .Site.EnableMessage}}
{{/* 询盘表单(B2B)。 ⚠️ 后端留言字段只有 nickname / message / phone / email / web_site / article_id + **ext(对象)**。外贸询盘需要的「公司名 / 目标市场 / 需求数量」不在 标准字段里,所以走 ext 扩展对象,用 `ext_` 前缀命名再在 JS 里组装 —— 既不改后端,也不会和标准字段撞名。 ⚠️ product query 由商品详情页的「Request a quote」按钮带过来 (/contact?product=),用它预填留言正文:买家不用再描述一遍 自己看的是哪一款,客服也不用追问。 */}}

{{with index $.ThemesExt "rfq_title"}}{{.}}{{else}}Request a quote{{end}}

{{with index $.ThemesExt "rfq_desc"}}

{{.}}

{{else}}

Tell us the style, quantity and delivery window. We reply within one business day.

{{end}} {{$pid := index .Request.Query "product"}}
{{/* phone 是后端留言的标准字段,不是扩展字段 —— 直接用原名。 */}}
{{if $pid}} {{end}} {{if .Site.EnableCaptcha}}
Click to refresh the code
{{end}}
{{end}}
{{end}} {{include "footer.html"}} {{include "js.html"}} {{if eq 1 .Site.EnableMessage}} {{end}}