From 26ffa901f8e904639b0f3139e0c41c657c3593e9 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Tue, 3 Sep 2024 12:58:26 -0400 Subject: [PATCH] fix: apply nodebb/nodebb-theme-harmony@f40603ea5cb994385c19438c529ffb3ed5d45cf3 - Removes chat header widget area and adds topic breadcrumb option to quickstart theme cc @barisusakli --- lib/theme.js | 7 ++----- templates/admin/plugins/theme-quickstart.tpl | 4 ++++ 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/lib/theme.js b/lib/theme.js index d8c6e5e..ecac492 100644 --- a/lib/theme.js +++ b/lib/theme.js @@ -11,6 +11,7 @@ const library = module.exports; const defaults = { enableQuickReply: 'on', + enableBreadcrumbs: 'on', centerHeaderElements: 'off', mobileTopicTeasers: 'off', stickyToolbar: 'on', @@ -129,11 +130,6 @@ library.defineWidgetAreas = async function (areas) { template: 'account/profile.tpl', location: 'profile-aboutme-after', }, - { - name: 'Chat Header', - template: 'chats.tpl', - location: 'header', - }, ]); return areas; @@ -147,6 +143,7 @@ library.loadThemeConfig = async function (uid) { const config = { ...defaults, ...themeConfig, ...(_.pick(userConfig, Object.keys(defaults))) }; config.enableQuickReply = config.enableQuickReply === 'on'; + config.enableBreadcrumbs = config.enableBreadcrumbs === 'on'; config.centerHeaderElements = config.centerHeaderElements === 'on'; config.mobileTopicTeasers = config.mobileTopicTeasers === 'on'; config.stickyToolbar = config.stickyToolbar === 'on'; diff --git a/templates/admin/plugins/theme-quickstart.tpl b/templates/admin/plugins/theme-quickstart.tpl index cc7921a..289011a 100644 --- a/templates/admin/plugins/theme-quickstart.tpl +++ b/templates/admin/plugins/theme-quickstart.tpl @@ -8,6 +8,10 @@ +
+ + +