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}}
{{end}}
{{if $email}}
{{end}}
{{if $addr}}
{{end}}
{{if $hours}}
{{end}}
{{with index .ThemesExt "whatsapp_link"}}
{{/*
WhatsApp 直聊。外贸买家最常用的即时渠道,比等邮件往返快一个数量级。
⚠️ 只在配置了链接时才出现 —— 放一个点了没反应的按钮不如不放。
*/}}
{{end}}
{{else}}
☎
Phone
{{$phone}}
✉
Email
{{$email}}
⌂
Address
{{$addr}}
⏱
Business hours
{{$hours}}
✆
WhatsApp
Chat with us →
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=),用它预填留言正文:买家不用再描述一遍
自己看的是哪一款,客服也不用追问。
*/}}
{{end}}
{{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"}}