|
Apollo_
发表于 2022-5-12 08:59:23
|
显示全部楼层
- 1.文件: config/settings_schema.json
- {
- "name": "theme_info",
- "theme_name": "ShowTime",
- "theme_author": "Mile High Themes",
- "theme_version": "5.1.1",
- "theme_documentation_url": "https:\/\/help.milehighthemes.com\/",
- "theme_support_email": "support@milehighthemes.com"
- },
- // 添加下面代码
- {
- "name": "Paypal",
- "settings": [
- {
- "type": "image_picker",
- "id": "paypal",
- "label": "Paypal image"
- }
- ]
- },
- 2. snippets 新增 paypal
- {% if settings.paypal %}
- <img src="{{ settings.paypal | img_url: 'master' }}">
- {% endif %}
- {% include 'paypal' %}
复制代码 |
|