lylme_spage/template/quality6.0/config.php
2024-05-06 00:33:18 +08:00

26 lines
960 B
PHP
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
/**
* 主题自定义配置表单
* @param array $theme_config 表单配置
* 参数说明:
* type配置项表单类型目前支持[text单行文本,textarea:多行文本,select下拉菜单checkbox:多选框,radio:单选color:颜色]建议使用radio(单选)替代switch(开关)
* name表单参数的键在主题调用时传入需唯一
* title配置项标题文字
* description配置项提示文字
* value默认值
* enum枚举值下拉菜单和多选框数组类型。需包含键值对,键为参数值,值为显示的文本
* verify表单验证方式支持类型[required必填url网站number数字email邮箱等]
*/
$theme_config = [
[
'type' => 'text',
'name' => 'background_video',
'title' => '视频背景',
'description' => '不填不启用请填写视频的url视频大小不建议超过10M',
"value" => ''
]
];