'post_list', 'title' => '文章&列表', 'sections' => [ 'list' => AKSRT_Admin_Schema_Post_List_List::build(), 'thumb' => [ 'key' => 'thumb', 'title' => '列表缩略图', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'source', 'title' => '图片来源', 'fields' => [ ['key' => 'thumb_priority', 'label' => '图片优先级', 'type' => 'input', 'default' => 'featured,attachment,resource,custom'], ['key' => 'thumb_fallback', 'label' => '无图时处理', 'type' => 'radio', 'default' => 'placeholder', 'options' => [ ['label' => '显示占位图', 'value' => 'placeholder'], ['label' => '隐藏缩略图', 'value' => 'hide'], ['label' => '随机封面', 'value' => 'random'], ]], ['key' => 'thumb_spare_images', 'label' => '备用缩略图', 'type' => 'gallery', 'default' => [], 'dependsOn' => ['key' => 'thumb_fallback', 'value' => 'random'], 'description' => '当 thumb_fallback 为 random 时从此图库随机选取'], ['key' => 'thumb_aspect_ratio', 'label' => '图片比例', 'type' => 'select', 'default' => '16:9', 'options' => [ ['label' => '16:9 宽屏', 'value' => '16:9'], ['label' => '4:3 标准', 'value' => '4:3'], ['label' => '1:1 正方形', 'value' => '1:1'], ['label' => '自适应', 'value' => 'auto'], ]], ['key' => 'list_thumb_fit', 'label' => '缩略图填充方式', 'type' => 'radio', 'default' => 'cover', 'options' => [ ['label' => '填充裁剪', 'value' => 'cover'], ['label' => '完整显示', 'value' => 'contain'], ]], ['key' => 'list_thumb_slides_s', 'label' => '幻灯片缩略图', 'type' => 'switch', 'default' => true, 'description' => '允许幻灯片作为列表缩略图'], ['key' => 'list_thumb_video_s', 'label' => '视频缩略图', 'type' => 'switch', 'default' => true, 'description' => '鼠标悬停时自动播放视频缩略图'], ['key' => 'list_thumb_video_mute_s', 'label' => '视频缩略图静音', 'type' => 'switch', 'default' => true, 'dependsOn' => ['key' => 'list_thumb_video_s', 'value' => true], 'description' => '视频缩略图播放时静音'], ['key' => 'thumb_postfirstimg_s', 'label' => '自动获取文章首图', 'type' => 'switch', 'default' => true, 'description' => '自动从文章内容中提取第一张图片作为缩略图'], ['key' => 'thumb_catimg_s', 'label' => '自动获取分类封面', 'type' => 'switch', 'default' => true, 'description' => '无特色图时使用分类封面图作为缩略图'], ['key' => 'thumb_postfirstimg_size', 'label' => '首图尺寸', 'type' => 'radio', 'default' => 'medium', 'dependsOn' => ['key' => 'thumb_postfirstimg_s', 'value' => true], 'options' => [ ['label' => '缩略图', 'value' => 'thumbnail'], ['label' => '中等', 'value' => 'medium'], ['label' => '大', 'value' => 'large'], ['label' => '原始', 'value' => 'full'], ], 'description' => '自动获取文章首图时使用的 WP 图片尺寸'], ]], ['key' => 'multi', 'title' => '多图模式', 'fields' => [ ['key' => 'thumb_multi_enabled', 'label' => '多图卡片', 'type' => 'switch', 'default' => false], ['key' => 'thumb_multi_count', 'label' => '最多显示几张', 'type' => 'number', 'default' => 3, 'min' => 2, 'max' => 6, 'dependsOn' => ['key' => 'thumb_multi_enabled', 'value' => true]], ['key' => 'mult_thumb_cat', 'label' => '按分类多图显示', 'type' => 'taxonomy_select', 'taxonomy' => 'category', 'multiple' => true, 'default' => [], 'dependsOn' => ['key' => 'thumb_multi_enabled', 'value' => true]], ['key' => 'thumb_lazy', 'label' => '懒加载', 'type' => 'switch', 'default' => true, 'dependsOn' => ['key' => 'thumb_multi_enabled', 'value' => true]], ]], ], ], 'page' => [ 'key' => 'page', 'title' => '文章页面', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'navigation', 'title' => '文章导航', 'fields' => [ ['key' => 'post_toc_enabled', 'label' => '目录树导航', 'type' => 'switch', 'default' => true], ['key' => 'post_toc_depth', 'label' => '目录深度', 'type' => 'number', 'default' => 3, 'min' => 1, 'max' => 6], ['key' => 'article_nav_mobile_nav_s', 'label' => '移动端弹出菜单', 'type' => 'switch', 'default' => true, 'description' => '在移动端弹出菜单中显示目录导航'], ['key' => 'post_reading_progress', 'label' => '阅读进度条', 'type' => 'switch', 'default' => true], ['key' => 'breadcrumbs_single_s', 'label' => '面包屑导航', 'type' => 'switch', 'default' => true], ['key' => 'breadcrumbs_home_text', 'label' => '面包屑首页文字', 'type' => 'input', 'default' => '首页', 'depends_on' => 'breadcrumbs_single_s'], ['key' => 'breadcrumbs_single_text', 'label' => '末项显示「正文」', 'type' => 'switch', 'default' => true, 'depends_on' => 'breadcrumbs_single_s', 'description' => '关闭后末项显示文章标题'], ['key' => 'post_prevnext_s', 'label' => '上一篇/下一篇', 'type' => 'switch', 'default' => true], ['key' => 'post_authordesc_s', 'label' => '作者简介', 'type' => 'switch', 'default' => true], ['key' => 'post_single_hide_time_s', 'label' => '隐藏文章时间', 'type' => 'switch', 'default' => false], ]], ['key' => 'cover', 'title' => '封面展示', 'fields' => [ ['key' => 'post_article_image_cover', 'label' => '图片封面', 'type' => 'switch', 'default' => true, 'description' => '文章有特色图时自动展示封面'], ['key' => 'post_article_image_cover_scale', 'label' => '封面高度比例(%)', 'type' => 'number', 'default' => 35, 'min' => 10, 'max' => 100], ['key' => 'post_article_slide_cover', 'label' => '幻灯片封面', 'type' => 'switch', 'default' => true, 'description' => '文章有图集时以轮播形式展示封面'], ['key' => 'post_article_video_cover', 'label' => '视频封面', 'type' => 'switch', 'default' => true, 'description' => '文章有视频时以视频播放器作为封面'], ['key' => 'post_article_video_cover_scale', 'label' => '视频封面高度比例(%)', 'type' => 'number', 'default' => 56, 'min' => 20, 'max' => 100], ]], ['key' => 'media', 'title' => '媒体功能', 'fields' => [ ['key' => 'post_lightbox', 'label' => '图片灯箱', 'type' => 'switch', 'default' => true], ['key' => 'post_lightbox_thumbs', 'label' => '灯箱缩略图', 'type' => 'switch', 'default' => true], ['key' => 'post_lightbox_zoom', 'label' => '灯箱缩放', 'type' => 'switch', 'default' => true], ['key' => 'post_lightbox_full', 'label' => '灯箱全屏', 'type' => 'switch', 'default' => true], ['key' => 'post_lightbox_down', 'label' => '灯箱下载', 'type' => 'switch', 'default' => false], ['key' => 'post_lightbox_play', 'label' => '灯箱播放', 'type' => 'switch', 'default' => false], ]], ['key' => 'related', 'title' => '相关推荐', 'fields' => [ ['key' => 'post_related_enabled', 'label' => '显示相关推荐', 'type' => 'switch', 'default' => true], ['key' => 'post_related_count', 'label' => '推荐数量', 'type' => 'number', 'default' => 6, 'min' => 1, 'max' => 20], ['key' => 'post_related_style', 'label' => '展示样式', 'type' => 'radio', 'default' => 'img', 'options' => [ ['label' => '图文卡片', 'value' => 'img'], ['label' => '列表', 'value' => 'list'], ['label' => '纯文字', 'value' => 'text'], ], 'description' => '对齐 Zibll 相关文章三种样式'], ['key' => 'post_related_source', 'label' => '推荐来源', 'type' => 'radio', 'default' => 'category', 'options' => [ ['label' => '同分类/标签/专题', 'value' => 'category'], ['label' => '同标签', 'value' => 'tag'], ['label' => '随机', 'value' => 'random'], ]], // Legacy alias kept so old saved values still round-trip. ['key' => 'post_related_type', 'label' => '推荐方式(兼容)', 'type' => 'radio', 'default' => 'category', 'options' => [ ['label' => '同分类', 'value' => 'category'], ['label' => '同标签', 'value' => 'tag'], ['label' => '随机', 'value' => 'random'], ]], ['key' => 'post_related_orderby', 'label' => '推荐排序', 'type' => 'select', 'default' => 'views', 'options' => [ ['label' => '浏览量', 'value' => 'views'], ['label' => '随机', 'value' => 'rand'], ['label' => '相关度', 'value' => 'relevance'], ['label' => '时间', 'value' => 'date'], ['label' => '更新时间', 'value' => 'modified'], ]], ['key' => 'post_related_title', 'label' => '推荐标题', 'type' => 'input', 'default' => '相关推荐'], ]], ['key' => 'interactions', 'title' => '互动功能', 'fields' => [ ['key' => 'post_like_enabled', 'label' => '点赞', 'type' => 'switch', 'default' => true], ['key' => 'post_favorite_enabled', 'label' => '收藏', 'type' => 'switch', 'default' => true], ['key' => 'share_s', 'label' => '分享按钮', 'type' => 'switch', 'default' => true], ['key' => 'post_copyright_enabled', 'label' => '版权信息', 'type' => 'switch', 'default' => true], ['key' => 'post_copyright_text', 'label' => '版权默认文案', 'type' => 'textarea', 'default' => '', 'description' => '留空则自动生成"本文由 XX 原创发布"'], ['key' => 'post_wechat_share', 'label' => '微信分享', 'type' => 'switch', 'default' => false], ['key' => 'post_rewards_enabled', 'label' => '打赏功能', 'type' => 'switch', 'default' => false], ['key' => 'post_rewards_text', 'label' => '打赏文案', 'type' => 'input', 'default' => ''], ['key' => 'post_button_toptext', 'label' => '按钮上方文案', 'type' => 'input', 'default' => '喜欢就支持一下吧'], ]], ['key' => 'content', 'title' => '内容处理', 'fields' => [ ['key' => 'post_p_indent', 'label' => '段落缩进', 'type' => 'switch', 'default' => false], ['key' => 'post_maxheight_kg', 'label' => '内容高度限制', 'type' => 'switch', 'default' => false], ['key' => 'post_maxheight', 'label' => '最大高度', 'type' => 'number', 'default' => 1000, 'min' => 600, 'max' => 3000], ['key' => 'post_front_content', 'label' => '文章头部内容', 'type' => 'textarea', 'default' => ''], ['key' => 'post_after_content', 'label' => '文章底部内容', 'type' => 'textarea', 'default' => ''], ]], ['key' => 'yiyan', 'title' => '一言', 'fields' => [ ['key' => 'post_yiyan_header', 'label' => '文章头部一言', 'type' => 'switch', 'default' => false], ['key' => 'post_yiyan_footer', 'label' => '文章底部一言', 'type' => 'switch', 'default' => false], ['key' => 'post_yiyan_box', 'label' => '一言盒子', 'type' => 'switch', 'default' => false], ]], ['key' => 'meta', 'title' => 'Meta设置', 'fields' => [ ['key' => 'post_default_views_min', 'label' => '默认浏览最小值', 'type' => 'number', 'default' => 20, 'min' => 0, 'max' => 9999], ['key' => 'post_default_views_max', 'label' => '默认浏览最大值', 'type' => 'number', 'default' => 50, 'min' => 1, 'max' => 9999], ['key' => 'post_default_likes_min', 'label' => '默认点赞最小值', 'type' => 'number', 'default' => 5, 'min' => 0, 'max' => 9999], ['key' => 'post_default_likes_max', 'label' => '默认点赞最大值', 'type' => 'number', 'default' => 15, 'min' => 1, 'max' => 9999], ['key' => 'post_views_s', 'label' => '浏览统计', 'type' => 'switch', 'default' => true], ['key' => 'post_close_comments', 'label' => '关闭评论', 'type' => 'switch', 'default' => false], ]], ], ], 'filter' => [ 'key' => 'filter', 'title' => '高级筛选', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'basic', 'title' => '筛选基础', 'fields' => [ ['key' => 'filter_enabled', 'label' => '启用筛选栏', 'type' => 'switch', 'default' => false], ['key' => 'custom_filter_show', 'label' => '筛选显示页面', 'type' => 'checkbox', 'default' => ['cat', 'tag'], 'options' => [ ['label' => '分类页', 'value' => 'cat'], ['label' => '标签页', 'value' => 'tag'], ['label' => '专题页', 'value' => 'topics'], ], 'help' => '选择在哪些页面显示筛选栏'], ['key' => 'filter_categories', 'label' => '分类筛选', 'type' => 'switch', 'default' => true], ['key' => 'filter_tags', 'label' => '标签筛选', 'type' => 'switch', 'default' => false], ['key' => 'filter_sort', 'label' => '排序选项', 'type' => 'switch', 'default' => true], ['key' => 'filter_ajax_enabled', 'label' => 'AJAX 无刷新筛选', 'type' => 'switch', 'default' => true, 'help' => '启用后分类/标签/排序切换将通过 AJAX 加载,无需刷新页面'], ]], ['key' => 'ajax_dimensions', 'title' => 'AJAX 筛选维度', 'fields' => [ ['key' => 'filter_cat_show_cat', 'label' => '分类页:显示分类筛选', 'type' => 'switch', 'default' => true, 'dependsOn' => ['key' => 'filter_enabled', 'value' => true]], ['key' => 'filter_cat_show_tag', 'label' => '分类页:显示标签筛选', 'type' => 'switch', 'default' => false, 'dependsOn' => ['key' => 'filter_enabled', 'value' => true]], ['key' => 'filter_tag_show_cat', 'label' => '标签页:显示分类筛选', 'type' => 'switch', 'default' => true, 'dependsOn' => ['key' => 'filter_enabled', 'value' => true]], ['key' => 'filter_tag_show_tag', 'label' => '标签页:显示标签筛选', 'type' => 'switch', 'default' => false, 'dependsOn' => ['key' => 'filter_enabled', 'value' => true]], ['key' => 'filter_topics_show_cat', 'label' => '专题页:显示分类筛选', 'type' => 'switch', 'default' => true, 'dependsOn' => ['key' => 'filter_enabled', 'value' => true]], ['key' => 'filter_topics_show_tag', 'label' => '专题页:显示标签筛选', 'type' => 'switch', 'default' => false, 'dependsOn' => ['key' => 'filter_enabled', 'value' => true]], ]], ['key' => 'custom_filter', 'title' => '自定义筛选维度', 'fields' => [ ['key' => 'custom_filter', 'label' => '筛选维度定义', 'type' => 'repeater', 'default' => [], 'dependsOn' => ['key' => 'filter_enabled', 'value' => true], 'help' => '每项定义一个筛选维度(如"类型""地区""年份"),及其可选值列表', 'fields' => [ ['key' => 'name', 'label' => '维度名称', 'type' => 'input', 'default' => ''], ['key' => 'key', 'label' => '维度标识', 'type' => 'input', 'default' => ''], ['key' => 'vals', 'label' => '可选值', 'type' => 'repeater', 'default' => [], 'fields' => [ ['key' => 'key', 'label' => '标识', 'type' => 'input', 'default' => ''], ['key' => 'name', 'label' => '显示名', 'type' => 'input', 'default' => ''], ]], ]], ]], ['key' => 'cat_custom_filter', 'title' => '按分类绑定筛选', 'fields' => [ ['key' => 'cat_custom_filter', 'label' => '分类筛选绑定', 'type' => 'repeater', 'default' => [], 'dependsOn' => ['key' => 'filter_enabled', 'value' => true], 'help' => '为指定分类绑定不同的筛选维度组合', 'fields' => [ ['key' => 'cats', 'label' => '绑定分类', 'type' => 'taxonomy_select', 'taxonomy' => 'category', 'multiple' => true, 'default' => []], ['key' => 'cat_s', 'label' => '显示分类筛选', 'type' => 'switch', 'default' => false], ['key' => 'tag_s', 'label' => '显示标签筛选', 'type' => 'switch', 'default' => false], ['key' => 'topics_s', 'label' => '显示专题筛选', 'type' => 'switch', 'default' => false], ['key' => 'orderby_s', 'label' => '显示排序按钮', 'type' => 'switch', 'default' => true], ['key' => 'custom_filters', 'label' => '启用的自定义维度', 'type' => 'input', 'default' => '', 'help' => '逗号分隔维度标识,留空使用全部'], ]], ]], ], ], 'feature' => [ 'key' => 'feature', 'title' => '文章功能', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'tools', 'title' => '工具功能', 'fields' => [ ['key' => 'feature_print', 'label' => '打印文章', 'type' => 'switch', 'default' => true], ['key' => 'feature_word_count', 'label' => '字数统计', 'type' => 'switch', 'default' => true], ['key' => 'feature_reading_time', 'label' => '预计阅读时间', 'type' => 'switch', 'default' => true], ['key' => 'feature_pdf_export', 'label' => 'PDF 导出', 'type' => 'switch', 'default' => false], ]], ], ], 'comment' => [ 'key' => 'comment', 'title' => '评论设置', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'display', 'title' => '评论展示', 'fields' => [ ['key' => 'comment_order', 'label' => '评论排序', 'type' => 'radio', 'default' => 'asc', 'options' => [ ['label' => '正序', 'value' => 'asc'], ['label' => '倒序', 'value' => 'desc'], ]], ['key' => 'comment_per_page', 'label' => '每页评论数', 'type' => 'number', 'default' => 20, 'min' => 5, 'max' => 100], ['key' => 'comment_pagination_type', 'label' => '分页方式', 'type' => 'radio', 'default' => 'numbered', 'options' => [ ['label' => '翻页', 'value' => 'numbered'], ['label' => '加载更多', 'value' => 'load_more'], ['label' => '无限滚动', 'value' => 'infinite'], ]], ['key' => 'comment_paging_ajax_ias_s', 'label' => '评论自动加载', 'type' => 'switch', 'default' => true, 'description' => '评论无限滚动时自动触发加载'], ['key' => 'comment_paging_ajax_ias_max', 'label' => '评论最大加载页数', 'type' => 'number', 'default' => 3, 'min' => 0, 'max' => 10, 'description' => '0=不限'], ['key' => 'comment_nested_depth', 'label' => '回复嵌套深度', 'type' => 'number', 'default' => 3, 'min' => 1, 'max' => 10], ['key' => 'comment_avatar_size', 'label' => '头像大小', 'type' => 'number', 'default' => 48, 'min' => 24, 'max' => 96], ]], ['key' => 'permissions', 'title' => '评论权限', 'fields' => [ ['key' => 'comment_require_login', 'label' => '评论需要登录', 'type' => 'switch', 'default' => false], ['key' => 'comment_allow_reply', 'label' => '允许回复', 'type' => 'switch', 'default' => true], ['key' => 'comment_close_comments', 'label' => '关闭评论', 'type' => 'switch', 'default' => false], ['key' => 'comment_edit_window', 'label' => '作者自助编辑时限(分钟)', 'type' => 'number', 'default' => 10, 'min' => 0, 'max' => 1440], ]], ['key' => 'toolbar', 'title' => '评论工具栏', 'fields' => [ ['key' => 'comment_smilie', 'label' => 'Emoji表情', 'type' => 'switch', 'default' => true], ['key' => 'comment_code', 'label' => '代码插入', 'type' => 'switch', 'default' => true], ['key' => 'comment_img', 'label' => '图片上传', 'type' => 'switch', 'default' => true], ['key' => 'comment_upload_img', 'label' => '评论图片上传', 'type' => 'switch', 'default' => false], ]], ['key' => 'interaction', 'title' => '互动功能', 'fields' => [ ['key' => 'comment_like_s', 'label' => '评论点赞', 'type' => 'switch', 'default' => true], ['key' => 'comment_quick_s', 'label' => '快捷回复', 'type' => 'switch', 'default' => true], ['key' => 'comment_city_s', 'label' => '评论城市', 'type' => 'switch', 'default' => true], ['key' => 'comment_author_tag', 'label' => '作者标签', 'type' => 'switch', 'default' => true], ['key' => 'comment_corderby', 'label' => '评论排序切换', 'type' => 'switch', 'default' => true, 'description' => '前台显示最新/最早/最热切换按钮'], ]], ['key' => 'text', 'title' => '文案配置', 'fields' => [ ['key' => 'comment_empty_text', 'label' => '空评论提示', 'type' => 'input', 'default' => '暂无评论,来做第一个评论的人吧~'], ['key' => 'comment_title', 'label' => '评论区标题', 'type' => 'input', 'default' => '评论'], ['key' => 'comment_submit_text', 'label' => '提交按钮文案', 'type' => 'input', 'default' => '提交评论'], ['key' => 'comment_text', 'label' => '评论框提示', 'type' => 'input', 'default' => '说点什么吧...'], ]], ], ], 'pay' => [ 'key' => 'pay', 'title' => '付费内容', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'basic', 'title' => '付费设置', 'fields' => [ ['key' => 'post_pay_enable', 'label' => '启用付费内容', 'type' => 'switch', 'default' => false], ['key' => 'post_pay_price_default', 'label' => '默认价格', 'type' => 'number', 'default' => 0, 'min' => 0, 'max' => 9999], ['key' => 'post_pay_free_logged_show', 'label' => '登录用户显示免费', 'type' => 'switch', 'default' => false], ['key' => 'post_pay_box_position', 'label' => '付费框位置', 'type' => 'radio', 'default' => 'content', 'options' => [ ['label' => '内容前', 'value' => 'content'], ['label' => '全文遮罩', 'value' => 'mask'], ]], ['key' => 'post_pay_mark', 'label' => '付费标记', 'type' => 'input', 'default' => '付费'], ['key' => 'post_pay_show_user', 'label' => '显示购买用户', 'type' => 'switch', 'default' => false], ]], ['key' => 'download', 'title' => '下载设置', 'fields' => [ ['key' => 'post_download_enable', 'label' => '启用下载功能', 'type' => 'switch', 'default' => false], ['key' => 'post_download_remote_s', 'label' => '远程文件下载', 'type' => 'switch', 'default' => false], ['key' => 'post_download_verify_nonce', 'label' => '下载鉴权', 'type' => 'switch', 'default' => true], ['key' => 'post_download_user_log', 'label' => '用户下载日志', 'type' => 'switch', 'default' => true], ['key' => 'post_download_post_log', 'label' => '文章下载日志', 'type' => 'switch', 'default' => true], ]], ], ], 'share' => [ 'key' => 'share', 'title' => '分享设置', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'basic', 'title' => '分享设置', 'fields' => [ ['key' => 'share_wechat_s', 'label' => '微信分享', 'type' => 'switch', 'default' => false], ['key' => 'share_wechat_appid', 'label' => 'AppID', 'type' => 'input', 'default' => ''], ['key' => 'share_wechat_app_secret', 'label' => 'AppSecret', 'type' => 'input', 'default' => ''], ['key' => 'share_only_logo', 'label' => '仅显示Logo', 'type' => 'switch', 'default' => false], ['key' => 'share_img_compatible_s', 'label' => '海报兼容模式', 'type' => 'switch', 'default' => false, 'description' => '启用后使用兼容模式生成分享海报'], ['key' => 'share_img_byimg', 'label' => '海报默认图', 'type' => 'media', 'default' => ''], ['key' => 'share_logo', 'label' => '海报LOGO', 'type' => 'media', 'default' => ''], ['key' => 'share_img', 'label' => '分享图片', 'type' => 'media', 'default' => ''], ['key' => 'share_desc', 'label' => '分享描述', 'type' => 'textarea', 'default' => '扫一扫 立即查看'], ]], ], ], 'submit' => [ 'key' => 'submit', 'title' => '前台投稿', 'version' => '1.0.0', 'option_key' => 'aksrt_settings', 'groups' => [ ['key' => 'basic', 'title' => '基础配置', 'fields' => [ ['key' => 'front_submit_enabled', 'label' => '开启前台投稿', 'type' => 'switch', 'default' => true], ['key' => 'front_submit_roles', 'label' => '允许投稿的角色', 'type' => 'input', 'default' => 'author,editor,administrator'], ['key' => 'post_article_btn_txte', 'label' => '投稿按钮文案', 'type' => 'input', 'default' => '发布文章'], ['key' => 'post_article_title_strlen_limit_min', 'label' => '标题最少字数', 'type' => 'number', 'default' => 5, 'min' => 1, 'max' => 100], ['key' => 'post_article_title_strlen_limit_max', 'label' => '标题最多字数', 'type' => 'number', 'default' => 30, 'min' => 5, 'max' => 200], ['key' => 'post_t_placeholder', 'label' => '标题占位符', 'type' => 'input', 'default' => '', 'description' => '留空使用默认'], ['key' => 'post_c_placeholder', 'label' => '内容占位符', 'type' => 'textarea', 'default' => '', 'description' => '留空使用默认'], ]], ['key' => 'fields', 'title' => '表单字段', 'fields' => [ ['key' => 'front_submit_title', 'label' => '标题', 'type' => 'switch', 'default' => true], ['key' => 'front_submit_content', 'label' => '正文', 'type' => 'switch', 'default' => true], ['key' => 'front_submit_excerpt', 'label' => '摘要', 'type' => 'switch', 'default' => true], ['key' => 'front_submit_cover', 'label' => '封面图', 'type' => 'switch', 'default' => true], ['key' => 'front_submit_category', 'label' => '分类选择', 'type' => 'switch', 'default' => true], ['key' => 'post_article_cat', 'label' => '允许投稿分类', 'type' => 'taxonomy_select', 'taxonomy' => 'category', 'multiple' => true, 'default' => [], 'help' => '为空则允许全部分类'], ['key' => 'post_article_user', 'label' => '免登录归属用户', 'type' => 'user_select', 'default' => 0, 'help' => '免登录投稿时文章归属的用户,搜索选择'], ['key' => 'front_submit_tags', 'label' => '标签输入', 'type' => 'switch', 'default' => true], ['key' => 'post_article_topics_s', 'label' => '专题选择', 'type' => 'switch', 'default' => false, 'help' => '投稿时可选择专题分类'], ['key' => 'post_article_custom_filter_s', 'label' => '高级筛选选择', 'type' => 'switch', 'default' => true, 'help' => '投稿时可选择自定义筛选维度值'], ['key' => 'front_submit_custom_fields', 'label' => '自定义字段', 'type' => 'textarea', 'default' => ''], ]], ['key' => 'review', 'title' => '审核策略', 'fields' => [ ['key' => 'front_submit_review_mode', 'label' => '审核模式', 'type' => 'radio', 'default' => 'pending', 'options' => [ ['label' => '待审核', 'value' => 'pending'], ['label' => '直接发布', 'value' => 'publish'], ['label' => '自动草稿', 'value' => 'draft'], ]], ['key' => 'front_submit_cover_required', 'label' => '封面图必填', 'type' => 'switch', 'default' => false], ['key' => 'front_submit_max_images', 'label' => '正文最大图片数', 'type' => 'number', 'default' => 5, 'min' => 0, 'max' => 50], ]], ['key' => 'editor', 'title' => '编辑器设置', 'fields' => [ ['key' => 'front_submit_editor_mode', 'label' => '编辑器模式', 'type' => 'radio', 'default' => 'rich', 'options' => [ ['label' => '富文本', 'value' => 'rich'], ['label' => 'Markdown', 'value' => 'markdown'], ['label' => '纯文本', 'value' => 'plain'], ]], ['key' => 'front_submit_draft_save', 'label' => '自动保存草稿', 'type' => 'switch', 'default' => true], ['key' => 'front_submit_leave_warning', 'label' => '离开页面提醒', 'type' => 'switch', 'default' => true], ]], ['key' => 'paid', 'title' => '付费投稿权限', 'fields' => [ ['key' => 'post_article_pay_free_s', 'label' => '允许设置免费', 'type' => 'switch', 'default' => true], ['key' => 'post_article_pay_price_min', 'label' => '最低价格', 'type' => 'number', 'default' => 0, 'min' => 0, 'max' => 9999, 'help' => '投稿可设置的最低付费金额'], ['key' => 'post_article_pay_price_max', 'label' => '最高价格', 'type' => 'number', 'default' => 100, 'min' => 0, 'max' => 9999, 'help' => '投稿可设置的最高付费金额'], ['key' => 'post_article_pay_vip_price_s', 'label' => '允许设置会员价', 'type' => 'switch', 'default' => true], ['key' => 'post_article_pay_vip_1_discount', 'label' => 'VIP1 折扣(%)', 'type' => 'number', 'default' => 80, 'min' => 0, 'max' => 100, 'help' => 'VIP1 会员折扣百分比,80 即 8 折'], ['key' => 'post_article_pay_vip_2_discount', 'label' => 'VIP2 折扣(%)', 'type' => 'number', 'default' => 50, 'min' => 0, 'max' => 100, 'help' => 'VIP2 会员折扣百分比,50 即 5 折'], ]], ], ], ], ]; } }