From 2d3d8ca62fe951eb9ca9ba5c85ed50a19ae9b8da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=BA=A6=E5=BF=B5?= Date: Mon, 21 Sep 2020 11:43:06 +0800 Subject: [PATCH] feat: add option for multiple users (#287) * feat: add option for multiple users * chore: fix typo --- inc/theme-options.php | 7 +++++++ pages/page-content.php | 3 +++ pages/page-toolbar.php | 6 ++++++ 3 files changed, 16 insertions(+) diff --git a/inc/theme-options.php b/inc/theme-options.php index 5bc2ba5..2b051ad 100644 --- a/inc/theme-options.php +++ b/inc/theme-options.php @@ -195,6 +195,13 @@ function kratos_options() 'type' => 'upload', ); + $options[] = array( + 'name' => __('多人创作', 'kratos'), + 'desc' => __('在文章列表显示文章作者,在文章页面页脚显示作者介绍', 'kratos'), + 'id' => 'multiusers', + 'type' => 'checkbox', + ); + $options[] = array( 'name' => __('收录配置', 'kratos'), 'type' => 'heading', diff --git a/pages/page-content.php b/pages/page-content.php index 2b8a10f..7faefce 100644 --- a/pages/page-content.php +++ b/pages/page-content.php @@ -26,6 +26,9 @@
+ + + diff --git a/pages/page-toolbar.php b/pages/page-toolbar.php index 17a49a0..03efe87 100644 --- a/pages/page-toolbar.php +++ b/pages/page-toolbar.php @@ -8,9 +8,15 @@ ?>
+ + +

+

+

+