From 33432b12b80da99e17d4a076d4053e171c57b01c Mon Sep 17 00:00:00 2001 From: Seaton Jiang Date: Sat, 21 Aug 2021 10:41:16 +0800 Subject: [PATCH] feat: add admin bar menu --- inc/theme-options.php | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/inc/theme-options.php b/inc/theme-options.php index 1de1f79..fbdafe2 100644 --- a/inc/theme-options.php +++ b/inc/theme-options.php @@ -4,7 +4,7 @@ * 主题选项 * @author Seaton Jiang * @license GPL-3.0 License - * @version 2021.08.20 + * @version 2021.08.21 */ defined('ABSPATH') || exit; @@ -67,7 +67,10 @@ function getrobots() CSF::createOptions($prefix, array( 'menu_title' => __('主题设置', 'kratos'), 'menu_slug' => 'kratos-options', - 'show_bar_menu' => false, + 'show_search' => false, + 'show_all_options' => false, + 'sticky_header' => false, + 'admin_bar_menu_icon' => 'dashicons-admin-generic', 'framework_title' => '主题设置Kratos v' . THEME_VERSION . '', 'theme' => 'light', 'footer_credit' => '感谢使用 Kratos 主题开始创作,欢迎加入交流群:734508',