项目简介
Digit 是一个 WHMCS 8.12.0 的商业主题模板,包含主体模板、子主题、订单表单、钩子插件等完整组件,适用于搭建自动化 SaaS 或主机托管平台的客户管理后台。
技术栈
- WHMCS 8.12.0
- PHP(Smarty 模板引擎)
- HTML5 / CSS3
项目结构
text
digitwhmcs-322/
└── Digit 8.12.0/
├── template.zip # 主模板文件
├── child.zip # 子主题覆盖包
├── hooks.zip # 自定义钩子插件
├── orderform.zip # 订单表单模板
├── documentation.zip # 官方文档
├── gravatar.php # Smarty 头像函数
└── thumbnail.png # 主题预览图
核心文件说明
template.zip— Digit 主题主体包,解压后覆盖 WHMCS 模板目录child.zip— 子主题包,用于在不修改原版基础上覆盖样式orderform.zip— 购物车订单表单模板hooks.zip— WHMCS 钩子插件集合gravatar.php— Smarty 函数,根据邮箱生成 Gravatar 头像 URL
快速开始
- 将
template.zip解压,文件放入whmcs/templates/目录 - 如需子主题,将
child.zip内容放入whmcs/templates/digit/下对应路径 - 在 WHMCS 管理后台 系统设置 → 常规设置 → 模板 中切换为 Digit
gravatar.php放入whmcs/includes/hooks/即可在模板中调用{gravatar email=$user.email}
使用建议
Digit 为商业主题,原包需从官方购买授权;本存档仅供技术研究。使用前请确认 WHMCS 版本兼容性,建议先在测试环境验证所有模板标签和钩子行为。
