'global', 'title' => '全局&功能', 'sections' => [ 'common' => [ 'key' => 'common', 'title' => '常用功能', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'comment', 'title' => '评论功能', 'fields' => [ ['key' => 'comment_enabled', 'label' => '开启评论', 'type' => 'switch', 'default' => true], ]], ['key' => 'performance', 'title' => '性能优化', 'fields' => [ ['key' => 'lazyload_enabled', 'label' => '图片懒加载', 'type' => 'switch', 'default' => true], ]], ['key' => 'avatar', 'title' => '头像服务', 'fields' => [ ['key' => 'avatar_source', 'label' => '头像服务源', 'type' => 'select', 'default' => 'cn.cravatar.com', 'options' => [ ['label' => 'Cravatar (国内推荐)', 'value' => 'cn.cravatar.com'], ['label' => 'Gravatar 国内镜像', 'value' => 'cn.gravatar.com'], ['label' => 'Gravatar 官方', 'value' => 'gravatar.com'], ]], ]], ['key' => 'filing', 'title' => '备案信息', 'fields' => [ ['key' => 'icp_filing', 'label' => 'ICP 备案号', 'type' => 'input', 'default' => ''], ['key' => 'footer_text', 'label' => '页脚附加文字', 'type' => 'input', 'default' => ''], ]], ], ], 'logo' => [ 'key' => 'logo', 'title' => 'LOGO图像', 'version' => '1.0.0', 'option_key' => 'aksrt_seo_settings', 'groups' => [ ['key' => 'logo', 'title' => 'Logo 设置', 'fields' => [ ['key' => 'site_logo', 'label' => '站点 Logo', 'type' => 'media', 'default' => ''], ['key' => 'site_logo_dark', 'label' => '暗色模式 Logo', 'type' => 'media', 'default' => ''], ['key' => 'logo_width', 'label' => 'Logo 宽度', 'type' => 'number', 'default' => 150, 'min' => 50, 'max' => 400], ['key' => 'logo_text', 'label' => 'Logo 文字', 'type' => 'input', 'default' => ''], ]], ['key' => 'favicon', 'title' => '站点图标', 'fields' => [ ['key' => 'site_favicon', 'label' => '浏览器图标', 'type' => 'media', 'default' => ''], ['key' => 'site_icon', 'label' => '移动端图标', 'type' => 'media', 'default' => ''], ]], ], ], 'seo' => [ 'key' => 'seo', 'title' => 'SEO优化', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'basic', 'title' => 'SEO基础', 'fields' => [ ['key' => 'seo_enabled', 'label' => '启用核心SEO优化', 'type' => 'switch', 'default' => true], ['key' => 'seo_ai_enabled', 'label' => 'AI生成SEO内容', 'type' => 'switch', 'default' => false], ['key' => 'seo_connector', 'label' => 'SEO连接符', 'type' => 'input', 'default' => '-'], ['key' => 'seo_title', 'label' => 'SEO标题(title)', 'type' => 'textarea', 'default' => ''], ['key' => 'seo_keywords', 'label' => 'SEO关键字(keywords)', 'type' => 'textarea', 'default' => ''], ['key' => 'seo_description', 'label' => 'SEO描述(description)', 'type' => 'textarea', 'default' => ''], ]], ['key' => 'ai-seo', 'title' => 'AI SEO', 'fields' => [ ['key' => 'ai_seo_title_prompt', 'label' => '标题提示词', 'type' => 'textarea', 'default' => ''], ['key' => 'ai_seo_keywords_prompt', 'label' => '关键词提示词', 'type' => 'textarea', 'default' => ''], ['key' => 'ai_seo_description_prompt', 'label' => '描述提示词', 'type' => 'textarea', 'default' => ''], ]], ['key' => 'baidu', 'title' => '百度SEO', 'fields' => [ ['key' => 'seo_baidu_push', 'label' => '百度链接自动提交', 'type' => 'switch', 'default' => false], ['key' => 'seo_baidu_normal', 'label' => '百度普通收录', 'type' => 'switch', 'default' => false], ['key' => 'seo_baidu_fast', 'label' => '百度快速收录', 'type' => 'switch', 'default' => false], ['key' => 'seo_baidu_token', 'label' => '百度准入密钥Token', 'type' => 'input', 'default' => ''], ]], ['key' => 'image', 'title' => '图片SEO', 'fields' => [ ['key' => 'seo_image_optimize', 'label' => '搜索引擎图片展示优化', 'type' => 'switch', 'default' => true], ['key' => 'seo_image_default', 'label' => '默认图像', 'type' => 'media', 'default' => ''], ['key' => 'seo_image_always_default', 'label' => '固定使用默认图像', 'type' => 'switch', 'default' => false], ['key' => 'seo_auto_alt', 'label' => '文章图片自动添加alt', 'type' => 'switch', 'default' => true], ]], ['key' => 'redirect', 'title' => '外链重定向', 'fields' => [ ['key' => 'seo_go_link', 'label' => '启用外链重定向', 'type' => 'switch', 'default' => true], ['key' => 'seo_go_link_nonce', 'label' => '外链重定向鉴权', 'type' => 'switch', 'default' => true], ['key' => 'seo_go_link_post', 'label' => '文章内容外链重定向', 'type' => 'switch', 'default' => true], ['key' => 'seo_go_link_exclude', 'label' => '排除域名', 'type' => 'textarea', 'default' => ''], ]], ['key' => 'advanced', 'title' => '高级SEO', 'fields' => [ ['key' => 'seo_no_category', 'label' => '分类URL去除category', 'type' => 'switch', 'default' => false], ['key' => 'seo_jsonld', 'label' => '启用JSON-LD', 'type' => 'switch', 'default' => true], ['key' => 'seo_jsonld_single', 'label' => '文章页JSON-LD', 'type' => 'switch', 'default' => true], ['key' => 'seo_jsonld_page', 'label' => '页面JSON-LD', 'type' => 'switch', 'default' => true], ]], ], ], 'lazyload' => [ 'key' => 'lazyload', 'title' => '懒加载设置', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'basic', 'title' => '懒加载开关', 'fields' => [ ['key' => 'lazyload_enabled', 'label' => '图像异步懒加载', 'type' => 'switch', 'default' => true], ['key' => 'lazyload_animation', 'label' => '懒加载动画效果', 'type' => 'select', 'default' => 'blur', 'options' => [ ['label' => '淡出淡入', 'value' => 'fade'], ['label' => '高斯模糊', 'value' => 'blur'], ['label' => '放大缩小', 'value' => 'scale'], ]], ['key' => 'lazyload_placeholder', 'label' => '懒加载预载图', 'type' => 'media', 'default' => ''], ['key' => 'lazyload_blur', 'label' => '模糊预览', 'type' => 'switch', 'default' => true], ]], ['key' => 'scope', 'title' => '懒加载范围', 'fields' => [ ['key' => 'lazyload_avatar', 'label' => '头像懒加载', 'type' => 'switch', 'default' => true], ['key' => 'lazyload_content', 'label' => '文章内容图片懒加载', 'type' => 'switch', 'default' => false], ['key' => 'lazyload_comment', 'label' => '评论内容图片懒加载', 'type' => 'switch', 'default' => true], ['key' => 'lazyload_private', 'label' => '私信聊天图片懒加载', 'type' => 'switch', 'default' => true], ['key' => 'lazyload_slider', 'label' => '幻灯片图片懒加载', 'type' => 'switch', 'default' => true], ['key' => 'lazyload_cover', 'label' => '封面图片懒加载', 'type' => 'switch', 'default' => true], ['key' => 'lazyload_other', 'label' => '其它图片懒加载', 'type' => 'switch', 'default' => true], ['key' => 'lazyload_widget', 'label' => '小工具图片懒加载', 'type' => 'switch', 'default' => true], ]], ], ], 'layout' => [ 'key' => 'layout', 'title' => '显示&布局', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'color', 'title' => '色彩方案', 'fields' => [ ['key' => 'theme_mode', 'label' => '默认主题模式', 'type' => 'radio', 'default' => 'time-auto', 'options' => [ ['label' => '浅色', 'value' => 'white-theme'], ['label' => '深色', 'value' => 'dark-theme'], ['label' => '跟随系统', 'value' => 'time-auto'], ]], ['key' => 'theme_mode_button', 'label' => '主题切换按钮位置', 'type' => 'checkbox', 'default' => ['pc_nav', 'm_menu'], 'options' => [ ['label' => 'PC 顶部导航', 'value' => 'pc_nav'], ['label' => '移动端菜单', 'value' => 'm_menu'], ]], ['key' => 'theme_skin', 'label' => '预设主题色', 'type' => 'palette', 'default' => 'f04494', 'options' => [ ['label' => '玫红', 'value' => 'ff1856'], ['label' => '粉色', 'value' => 'f04494'], ['label' => '紫色', 'value' => 'ae53f3'], ['label' => '靛蓝', 'value' => '627bf5'], ['label' => '天蓝', 'value' => '00a2e3'], ['label' => '青绿', 'value' => '16b597'], ['label' => '翠绿', 'value' => '36af18'], ['label' => '黄绿', 'value' => '8fb107'], ['label' => '棕金', 'value' => 'b18c07'], ['label' => '橘橙', 'value' => 'e06711'], ['label' => '朱红', 'value' => 'f74735'], ]], ['key' => 'primary_color', 'label' => '自定义主题色', 'type' => 'color', 'default' => '#f04494'], ['key' => 'dark_primary_color', 'label' => '暗色模式主题色', 'type' => 'color', 'default' => '#f04494'], ['key' => 'border_radius', 'label' => '全局圆角', 'type' => 'slider', 'default' => 8, 'min' => 0, 'max' => 20], ['key' => 'theme_main_radius', 'label' => '卡片圆角 (px)', 'type' => 'number', 'default' => 12, 'min' => 0, 'max' => 30, 'help' => '独立卡片圆角,不填则使用全局圆角 +4'], ['key' => 'close_backdrop', 'label' => '关闭毛玻璃效果', 'type' => 'switch', 'default' => false], ]], ['key' => 'layout', 'title' => '布局设置', 'fields' => [ ['key' => 'container_max_width', 'label' => '内容最大宽度', 'type' => 'number', 'default' => 1200, 'min' => 0, 'max' => 1600], ['key' => 'sidebar_enabled', 'label' => '开启侧边栏', 'type' => 'switch', 'default' => true], ['key' => 'sidebar_position', 'label' => '侧边栏位置', 'type' => 'radio', 'default' => 'right', 'options' => [ ['label' => '左侧', 'value' => 'left'], ['label' => '右侧', 'value' => 'right'], ]], ['key' => 'sidebar_width', 'label' => '侧边栏宽度', 'type' => 'number', 'default' => 300, 'min' => 200, 'max' => 400], ['key' => 'sidebar_home_enabled', 'label' => '首页侧边栏', 'type' => 'switch', 'default' => true], ['key' => 'sidebar_category_enabled', 'label' => '分类页侧边栏', 'type' => 'switch', 'default' => true], ['key' => 'sidebar_tag_enabled', 'label' => '标签页侧边栏', 'type' => 'switch', 'default' => true], ['key' => 'sidebar_single_enabled', 'label' => '文章页侧边栏', 'type' => 'switch', 'default' => true], ['key' => 'sidebar_page_enabled', 'label' => '页面侧边栏', 'type' => 'switch', 'default' => true], ['key' => 'sidebar_search_enabled', 'label' => '搜索页侧边栏', 'type' => 'switch', 'default' => true], ]], ['key' => 'typography', 'title' => '字体设置', 'fields' => [ ['key' => 'font_family', 'label' => '正文字体', 'type' => 'select', 'default' => 'system', 'options' => [ ['label' => '系统默认', 'value' => 'system'], ['label' => '思源黑体', 'value' => 'noto-sans-sc'], ['label' => '思源宋体', 'value' => 'noto-serif-sc'], ['label' => '自定义', 'value' => 'custom'], ]], ]], ['key' => 'performance', 'title' => '性能优化', 'fields' => [ ['key' => 'qj_loading', 'label' => '全站加载动画', 'type' => 'switch', 'default' => false], ['key' => 'qj_dh_xs', 'label' => '加载动画样式', 'type' => 'select', 'default' => 'no1', 'options' => [ ['label' => '样式 1', 'value' => 'no1'], ['label' => '样式 2', 'value' => 'no2'], ['label' => '样式 3', 'value' => 'no3'], ['label' => '样式 4', 'value' => 'no4'], ['label' => '样式 5', 'value' => 'no5'], ['label' => '样式 6', 'value' => 'no6'], ['label' => '样式 7', 'value' => 'no7'], ['label' => '样式 8', 'value' => 'no8'], ['label' => '样式 9', 'value' => 'no9'], ['label' => '样式 10', 'value' => 'no10'], ]], ]], ['key' => 'avatar', 'title' => '头像设置', 'fields' => [ ['key' => 'avatar_source', 'label' => '头像服务源', 'type' => 'select', 'default' => 'cn.cravatar.com', 'options' => [ ['label' => 'Cravatar (国内推荐)', 'value' => 'cn.cravatar.com'], ['label' => 'Gravatar 国内镜像', 'value' => 'cn.gravatar.com'], ['label' => 'Gravatar 官方', 'value' => 'gravatar.com'], ], 'help' => '国内站点建议优先选 Cravatar'], ]], ], ], 'code-highlight' => [ 'key' => 'code-highlight', 'title' => '代码高亮', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'basic', 'title' => '代码高亮设置', 'fields' => [ ['key' => 'highlight_kg', 'label' => '代码高亮开关', 'type' => 'switch', 'default' => true], ['key' => 'highlight_hh', 'label' => '显示行号', 'type' => 'switch', 'default' => false], ['key' => 'highlight_btn', 'label' => '显示扩展按钮', 'type' => 'switch', 'default' => true], ['key' => 'highlight_maxheight', 'label' => '最大高度(px,0=不限)', 'type' => 'number', 'default' => 400, 'min' => 0, 'max' => 2000], ]], ['key' => 'theme', 'title' => '主题设置', 'fields' => [ ['key' => 'highlight_zt', 'label' => '日间默认主题', 'type' => 'select', 'default' => 'enlighter', 'options' => [ ['label' => '浅色: Enlighter', 'value' => 'enlighter'], ['label' => '浅色: Bootstrap', 'value' => 'bootstrap4'], ['label' => '浅色: Classic', 'value' => 'classic'], ['label' => '浅色: Beyond', 'value' => 'beyond'], ['label' => '浅色: Mowtwo', 'value' => 'mowtwo'], ['label' => '浅色: Eclipse', 'value' => 'eclipse'], ['label' => '浅色: Droide', 'value' => 'droide'], ['label' => '浅色: Minimal', 'value' => 'minimal'], ['label' => '浅色: Rowhammer', 'value' => 'rowhammer'], ['label' => '浅色: Godzilla', 'value' => 'godzilla'], ['label' => '深色: Dracula', 'value' => 'dracula'], ['label' => '深色: Atomic', 'value' => 'atomic'], ['label' => '深色: Monokai', 'value' => 'monokai'], ]], ['key' => 'highlight_dark_zt', 'label' => '暗色默认主题', 'type' => 'select', 'default' => 'monokai', 'options' => [ ['label' => '深色: Dracula', 'value' => 'dracula'], ['label' => '深色: Atomic', 'value' => 'atomic'], ['label' => '深色: Monokai', 'value' => 'monokai'], ['label' => '浅色: Enlighter', 'value' => 'enlighter'], ['label' => '浅色: Bootstrap', 'value' => 'bootstrap4'], ]], ]], ], ], 'system-notice' => [ 'key' => 'system-notice', 'title' => '系统公告', 'version' => '2.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'basic', 'title' => '公告设置', 'fields' => [ ['key' => 'system_notice_enabled', 'label' => '启用系统公告', 'type' => 'switch', 'default' => true], ['key' => 'system_notice_policy', 'label' => '显示对象', 'type' => 'select', 'default' => '', 'options' => [ ['label' => '所有访客', 'value' => ''], ['label' => '仅登录用户', 'value' => 'signin'], ['label' => '仅 VIP 会员', 'value' => 'vip'], ['label' => '仅非 VIP', 'value' => 'free'], ['label' => '仅认证用户', 'value' => 'auth'], ]], ['key' => 'system_notice_title', 'label' => '公告标题', 'type' => 'input', 'default' => ''], ['key' => 'system_notice_content', 'label' => '公告内容', 'type' => 'textarea', 'default' => ''], ]], ['key' => 'buttons', 'title' => '按钮组(留空则不显示)', 'fields' => [ ['key' => 'system_notice_btn1_text', 'label' => '按钮 1 文案', 'type' => 'input', 'default' => ''], ['key' => 'system_notice_btn1_link', 'label' => '按钮 1 链接', 'type' => 'input', 'default' => ''], ['key' => 'system_notice_btn1_color', 'label' => '按钮 1 颜色', 'type' => 'select', 'default' => 'primary', 'options' => [ ['label' => '主题色', 'value' => 'primary'], ['label' => '成功绿', 'value' => 'success'], ['label' => '警告橙', 'value' => 'warning'], ['label' => '危险红', 'value' => 'danger'], ['label' => '信息蓝', 'value' => 'info'], ['label' => '深紫', 'value' => 'purple'], ['label' => '深灰', 'value' => 'dark'], ]], ['key' => 'system_notice_btn2_text', 'label' => '按钮 2 文案', 'type' => 'input', 'default' => ''], ['key' => 'system_notice_btn2_link', 'label' => '按钮 2 链接', 'type' => 'input', 'default' => ''], ['key' => 'system_notice_btn2_color', 'label' => '按钮 2 颜色', 'type' => 'select', 'default' => 'primary', 'options' => [ ['label' => '主题色', 'value' => 'primary'], ['label' => '成功绿', 'value' => 'success'], ['label' => '警告橙', 'value' => 'warning'], ['label' => '危险红', 'value' => 'danger'], ['label' => '信息蓝', 'value' => 'info'], ['label' => '深紫', 'value' => 'purple'], ['label' => '深灰', 'value' => 'dark'], ]], ['key' => 'system_notice_btn3_text', 'label' => '按钮 3 文案', 'type' => 'input', 'default' => ''], ['key' => 'system_notice_btn3_link', 'label' => '按钮 3 链接', 'type' => 'input', 'default' => ''], ['key' => 'system_notice_btn3_color', 'label' => '按钮 3 颜色', 'type' => 'select', 'default' => 'primary', 'options' => [ ['label' => '主题色', 'value' => 'primary'], ['label' => '成功绿', 'value' => 'success'], ['label' => '警告橙', 'value' => 'warning'], ['label' => '危险红', 'value' => 'danger'], ['label' => '信息蓝', 'value' => 'info'], ['label' => '深紫', 'value' => 'purple'], ['label' => '深灰', 'value' => 'dark'], ]], ['key' => 'system_notice_btn4_text', 'label' => '按钮 4 文案', 'type' => 'input', 'default' => ''], ['key' => 'system_notice_btn4_link', 'label' => '按钮 4 链接', 'type' => 'input', 'default' => ''], ['key' => 'system_notice_btn4_color', 'label' => '按钮 4 颜色', 'type' => 'select', 'default' => 'primary', 'options' => [ ['label' => '主题色', 'value' => 'primary'], ['label' => '成功绿', 'value' => 'success'], ['label' => '警告橙', 'value' => 'warning'], ['label' => '危险红', 'value' => 'danger'], ['label' => '信息蓝', 'value' => 'info'], ['label' => '深紫', 'value' => 'purple'], ['label' => '深灰', 'value' => 'dark'], ]], ]], ['key' => 'style', 'title' => '样式设置', 'fields' => [ ['key' => 'system_notice_size', 'label' => '弹窗尺寸', 'type' => 'select', 'default' => '', 'options' => [ ['label' => '默认', 'value' => ''], ['label' => '迷你', 'value' => 'modal-mini'], ['label' => '小号', 'value' => 'modal-sm'], ['label' => '大号', 'value' => 'modal-lg'], ]], ['key' => 'system_notice_radius', 'label' => '按钮圆角', 'type' => 'switch', 'default' => false, 'help' => '开启后弹窗按钮使用圆角样式'], ['key' => 'system_notice_class', 'label' => '公告样式类', 'type' => 'input', 'default' => ''], ['key' => 'system_notice_title_icon', 'label' => '标题图标', 'type' => 'icon', 'default' => ''], ['key' => 'system_notice_title_class', 'label' => '标题背景配色', 'type' => 'select', 'default' => '', 'options' => [ ['label' => '无', 'value' => ''], ['label' => '炫彩黄', 'value' => 'jb-yellow'], ['label' => '炫彩蓝', 'value' => 'jb-blue'], ['label' => '炫彩绿', 'value' => 'jb-green'], ['label' => '炫彩紫', 'value' => 'jb-purple'], ['label' => '炫彩红', 'value' => 'jb-red'], ['label' => '炫彩橙', 'value' => 'jb-orange'], ], 'help' => '弹窗标题区域的背景配色方案'], ['key' => 'system_notice_title_style', 'label' => '标题样式', 'type' => 'input', 'default' => ''], ]], ['key' => 'expire', 'title' => '过期设置', 'fields' => [ ['key' => 'system_notice_expires', 'label' => '弹窗周期(小时)', 'type' => 'number', 'default' => 24, 'min' => 0, 'max' => 720, 'help' => '0 表示永不过期'], ]], ], ], 'search' => [ 'key' => 'search', 'title' => '搜索功能', 'version' => '2.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'basic', 'title' => '搜索基础', 'fields' => [ ['key' => 'search_mode', 'label' => '搜索模式', 'type' => 'radio', 'default' => 'default', 'options' => [ ['label' => '默认搜索', 'value' => 'default'], ['label' => 'AJAX 实时搜索', 'value' => 'ajax'], ['label' => '跳转搜索', 'value' => 'redirect'], ]], ['key' => 'search_placeholder', 'label' => '搜索框提示文字', 'type' => 'input', 'default' => '开启精彩搜索'], ]], ['key' => 'content-types', 'title' => '搜索内容类型', 'fields' => [ ['key' => 'search_type_post', 'label' => '文章', 'type' => 'switch', 'default' => true], ['key' => 'search_type_user', 'label' => '用户', 'type' => 'switch', 'default' => false], ['key' => 'search_type_category', 'label' => '分类', 'type' => 'switch', 'default' => true], ['key' => 'search_type_tag', 'label' => '标签', 'type' => 'switch', 'default' => true], ['key' => 'search_type_product', 'label' => '商品', 'type' => 'switch', 'default' => false], ['key' => 'search_type_topic', 'label' => '帖子', 'type' => 'switch', 'default' => false], ['key' => 'search_default_type', 'label' => '默认类型', 'type' => 'select', 'default' => 'post', 'options' => [ ['label' => '文章', 'value' => 'post'], ['label' => '用户', 'value' => 'user'], ['label' => '分类', 'value' => 'category'], ['label' => '标签', 'value' => 'tag'], ['label' => '商品', 'value' => 'product'], ['label' => '帖子', 'value' => 'topic'], ]], ]], ['key' => 'features', 'title' => '搜索功能', 'fields' => [ ['key' => 'search_history_enabled', 'label' => '搜索历史', 'type' => 'switch', 'default' => true], ['key' => 'hot_search_enabled', 'label' => '热门搜索', 'type' => 'switch', 'default' => true], ['key' => 'hot_search_keywords', 'label' => '热门搜索关键词', 'type' => 'textarea', 'default' => ''], ['key' => 'search_suggestions_enabled', 'label' => '搜索建议', 'type' => 'switch', 'default' => false], ['key' => 'search_posts', 'label' => '搜索框热门文章', 'type' => 'switch', 'default' => true, 'help' => '在搜索面板中显示热门文章列表'], ['key' => 'search_no_page', 'label' => '排除页面', 'type' => 'switch', 'default' => true, 'help' => '搜索结果中排除页面(仅显示文章)'], ['key' => 'search_exclude_cats', 'label' => '排除分类', 'type' => 'textarea', 'default' => '', 'help' => '搜索结果中排除的分类 ID(逗号分隔)'], ['key' => 'search_custom_key_s', 'label' => '自定义匹配范围', 'type' => 'switch', 'default' => true, 'help' => '启用后可配置搜索匹配字段范围(标题/内容/分类/标签等)'], ['key' => 'search_custom_key', 'label' => '匹配字段', 'type' => 'textarea', 'default' => 'title,content', 'help' => '搜索匹配的字段范围(逗号分隔:title/content/excerpt/category/tag/author)'], ['key' => 'search_facets', 'label' => '搜索结果筛选', 'type' => 'switch', 'default' => false, 'help' => '启用搜索结果 taxonomy 筛选面板'], ['key' => 'search_facets_order', 'label' => '筛选排序', 'type' => 'textarea', 'default' => "category\ntag", 'help' => '筛选 fieldset 显示顺序(每行一个 taxonomy slug)'], ]], ['key' => 'category-search', 'title' => '分类搜索', 'fields' => [ ['key' => 'search_cat', 'label' => '启用分类搜索', 'type' => 'switch', 'default' => true, 'help' => '在搜索框旁显示分类选择器'], ['key' => 'search_cat_in', 'label' => '默认分类', 'type' => 'input', 'default' => '', 'help' => '默认搜索的分类 ID(留空为全部分类)'], ['key' => 'search_more_cat_obj', 'label' => '显示更多分类', 'type' => 'switch', 'default' => true, 'help' => '展开显示全部分类列表'], ]], ['key' => 'popular', 'title' => '热门搜索', 'fields' => [ ['key' => 'search_popular_title', 'label' => '标题', 'type' => 'input', 'default' => '热门搜索'], ['key' => 'search_popular_key_num', 'label' => '显示数量', 'type' => 'number', 'default' => 20, 'min' => 1, 'max' => 50], ['key' => 'search_popular_sticky', 'label' => '置顶词(每行一个)', 'type' => 'textarea', 'default' => ''], ]], ['key' => 'meilisearch', 'title' => 'Meilisearch 集成', 'fields' => [ ['key' => 'search_ms_enabled', 'label' => '启用 Meilisearch', 'type' => 'switch', 'default' => false, 'help' => '启用后搜索请求将发送至 Meilisearch 服务器'], ['key' => 'search_ms_api_url', 'label' => 'API 地址', 'type' => 'input', 'default' => '', 'help' => 'Meilisearch 服务器 URL'], ['key' => 'search_ms_api_key', 'label' => 'API Key', 'type' => 'input', 'default' => '', 'help' => 'Meilisearch Search API Key(只读密钥)'], ['key' => 'search_ms_index_prefix', 'label' => '索引前缀', 'type' => 'input', 'default' => 'aksrt', 'help' => '索引名称前缀'], ['key' => 'search_ms_synonyms', 'label' => '同义词(JSON)', 'type' => 'textarea', 'default' => '', 'help' => 'Meilisearch 同义词配置 JSON'], ]], ], ], 'email' => [ 'key' => 'email', 'title' => '邮件事件', 'version' => '2.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'global', 'title' => '全局设置', 'fields' => [ ['key' => 'email_footer_text', 'label' => '邮件页脚文字', 'type' => 'textarea', 'default' => ''], ['key' => 'email_site_branding', 'label' => '显示站点品牌', 'type' => 'switch', 'default' => true], ['key' => 'email_template_mode', 'label' => '邮件格式', 'type' => 'radio', 'default' => 'plain', 'options' => [ ['label' => '纯文本', 'value' => 'plain'], ['label' => 'HTML', 'value' => 'html'], ]], ['key' => 'email_private_receive_limit', 'label' => '私信邮件接收组', 'type' => 'select', 'default' => 'all', 'options' => [ ['label' => '所有用户', 'value' => 'all'], ['label' => 'VIP 及以上', 'value' => 'vip'], ['label' => 'VIP2 及以上', 'value' => 'vip2'], ['label' => '仅管理员', 'value' => 'admin'], ], 'help' => '限制哪些用户组可以收到私信邮件通知'], ]], ['key' => 'branding', 'title' => '邮件品牌', 'fields' => [ ['key' => 'mail_showname', 'label' => '发件人名称', 'type' => 'input', 'default' => '', 'help' => '覆盖系统默认发件人名称'], ['key' => 'mail_title_prefix', 'label' => '主题前缀', 'type' => 'input', 'default' => '', 'help' => '自动添加在所有邮件主题前面,如【站点名】'], ['key' => 'mail_description', 'label' => '邮件底部说明', 'type' => 'textarea', 'default' => '', 'help' => '附加在邮件页脚文字之后,留空不显示'], ['key' => 'mail_more_content', 'label' => '邮件附加内容', 'type' => 'textarea', 'default' => '', 'help' => '附加在邮件内容末尾的补充说明'], ]], ['key' => 'reg_verify_link', 'title' => '注册验证链接', 'fields' => [ ['key' => 'email_reg_verify_link_enabled', 'label' => '启用', 'type' => 'switch', 'default' => true], ['key' => 'email_reg_verify_link_subject', 'label' => '主题', 'type' => 'input', 'default' => ''], ['key' => 'email_reg_verify_link_content', 'label' => '内容模板', 'type' => 'textarea', 'default' => ''], ['key' => 'email_reg_verify_link_html', 'label' => 'HTML 格式', 'type' => 'switch', 'default' => false], ]], ['key' => 'reg_verify_code', 'title' => '注册验证码', 'fields' => [ ['key' => 'email_reg_verify_code_enabled', 'label' => '启用', 'type' => 'switch', 'default' => true], ['key' => 'email_reg_verify_code_subject', 'label' => '主题', 'type' => 'input', 'default' => ''], ['key' => 'email_reg_verify_code_content', 'label' => '内容模板', 'type' => 'textarea', 'default' => ''], ['key' => 'email_reg_verify_code_html', 'label' => 'HTML 格式', 'type' => 'switch', 'default' => false], ]], ['key' => 'reg_success', 'title' => '注册成功通知', 'fields' => [ ['key' => 'email_reg_success_enabled', 'label' => '启用', 'type' => 'switch', 'default' => true], ['key' => 'email_reg_success_subject', 'label' => '主题', 'type' => 'input', 'default' => ''], ['key' => 'email_reg_success_content', 'label' => '内容模板', 'type' => 'textarea', 'default' => ''], ['key' => 'email_reg_success_html', 'label' => 'HTML 格式', 'type' => 'switch', 'default' => false], ]], ['key' => 'password_reset', 'title' => '密码重置', 'fields' => [ ['key' => 'email_password_reset_enabled', 'label' => '启用', 'type' => 'switch', 'default' => true], ['key' => 'email_password_reset_subject', 'label' => '主题', 'type' => 'input', 'default' => ''], ['key' => 'email_password_reset_content', 'label' => '内容模板', 'type' => 'textarea', 'default' => ''], ['key' => 'email_password_reset_html', 'label' => 'HTML 格式', 'type' => 'switch', 'default' => false], ]], ['key' => 'change_code', 'title' => '邮箱变更验证码', 'fields' => [ ['key' => 'email_change_code_enabled', 'label' => '启用', 'type' => 'switch', 'default' => true], ['key' => 'email_change_code_subject', 'label' => '主题', 'type' => 'input', 'default' => ''], ['key' => 'email_change_code_content', 'label' => '内容模板', 'type' => 'textarea', 'default' => ''], ['key' => 'email_change_code_html', 'label' => 'HTML 格式', 'type' => 'switch', 'default' => false], ]], ['key' => 'change_notice', 'title' => '邮箱变更通知', 'fields' => [ ['key' => 'email_change_notice_enabled', 'label' => '启用', 'type' => 'switch', 'default' => true], ['key' => 'email_change_notice_subject', 'label' => '主题', 'type' => 'input', 'default' => ''], ['key' => 'email_change_notice_content', 'label' => '内容模板', 'type' => 'textarea', 'default' => ''], ['key' => 'email_change_notice_html', 'label' => 'HTML 格式', 'type' => 'switch', 'default' => false], ]], ], ], 'custom-code' => [ 'key' => 'custom-code', 'title' => '自定义代码', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'css', 'title' => '自定义 CSS', 'fields' => [ ['key' => 'custom_css', 'label' => '自定义 CSS', 'type' => 'code', 'language' => 'css', 'default' => ''], ]], ['key' => 'code', 'title' => '头部 & 底部代码', 'fields' => [ ['key' => 'head_code', 'label' => '头部 HTML 代码', 'type' => 'code', 'default' => '', 'help' => '在 中输出,支持 meta/link/style/script 等任意 HTML'], ['key' => 'foot_code', 'label' => '底部 HTML 代码', 'type' => 'code', 'default' => '', 'help' => '在 前输出,支持任意 HTML'], ]], ['key' => 'stats', 'title' => '统计代码', 'fields' => [ ['key' => 'trackcode', 'label' => '统计代码', 'type' => 'code', 'default' => '', 'help' => '百度统计/GA/CNZZ/51la 等,自动在 head 中输出'], ]], ], ], 'i18n' => [ 'key' => 'i18n', 'title' => '多语言翻译', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'basic', 'title' => '基础配置', 'fields' => [ ['key' => 'i18n_enabled', 'label' => '启用多语言', 'type' => 'switch', 'default' => false], ['key' => 'i18n_default_lang', 'label' => '默认语言', 'type' => 'select', 'default' => 'zh-CN', 'options' => [ ['label' => '简体中文', 'value' => 'zh-CN'], ['label' => 'English', 'value' => 'en'], ['label' => '繁體中文', 'value' => 'zh-TW'], ['label' => '日本語', 'value' => 'ja'], ['label' => '한국어', 'value' => 'ko'], ['label' => 'Français', 'value' => 'fr'], ['label' => 'Deutsch', 'value' => 'de'], ['label' => 'Español', 'value' => 'es'], ['label' => 'Русский', 'value' => 'ru'], ]], ['key' => 'i18n_auto_detect', 'label' => '自动检测浏览器语言', 'type' => 'switch', 'default' => true, 'help' => '基于浏览器 Accept-Language 自动切换(AKSRT 方案,区别于 zibll IP 定位方案)'], ]], ['key' => 'languages', 'title' => '语言管理', 'fields' => [ ['key' => 'i18n_available_langs', 'label' => '可用语言列表', 'type' => 'textarea', 'default' => "zh-CN|简体中文\nen|English\nzh-TW|繁體中文\nja|日本語\nko|한국어\nfr|Français\nde|Deutsch\nes|Español\nru|Русский", 'help' => '每行一个语言,格式:代码|名称(9 种内置语言)'], ['key' => 'i18n_nomenclature', 'label' => '自定义术语', 'type' => 'code', 'default' => '', 'help' => 'JSON 格式自定义翻译术语(key => 翻译),对齐 zibll nomenclature'], ]], ['key' => 'display', 'title' => '展示设置', 'fields' => [ ['key' => 'i18n_switcher_position', 'label' => '语言切换器位置', 'type' => 'radio', 'default' => 'footer', 'options' => [ ['label' => '导航栏', 'value' => 'header'], ['label' => '页脚', 'value' => 'footer'], ['label' => '导航栏+页脚', 'value' => 'both'], ['label' => '隐藏', 'value' => 'none'], ]], ['key' => 'i18n_url_strategy', 'label' => 'URL 策略', 'type' => 'radio', 'default' => 'query', 'options' => [ ['label' => '查询参数', 'value' => 'query'], ['label' => '路径前缀', 'value' => 'path'], ['label' => '子域名', 'value' => 'subdomain'], ]], ]], ], ], ], ]; } }