fix: apply nodebb/nodebb-theme-harmony@f40603ea5c
- Removes chat header widget area and adds topic breadcrumb option to quickstart theme cc @barisusakli
This commit is contained in:
parent
9e2cc7d51b
commit
26ffa901f8
@ -11,6 +11,7 @@ const library = module.exports;
|
|||||||
|
|
||||||
const defaults = {
|
const defaults = {
|
||||||
enableQuickReply: 'on',
|
enableQuickReply: 'on',
|
||||||
|
enableBreadcrumbs: 'on',
|
||||||
centerHeaderElements: 'off',
|
centerHeaderElements: 'off',
|
||||||
mobileTopicTeasers: 'off',
|
mobileTopicTeasers: 'off',
|
||||||
stickyToolbar: 'on',
|
stickyToolbar: 'on',
|
||||||
@ -129,11 +130,6 @@ library.defineWidgetAreas = async function (areas) {
|
|||||||
template: 'account/profile.tpl',
|
template: 'account/profile.tpl',
|
||||||
location: 'profile-aboutme-after',
|
location: 'profile-aboutme-after',
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: 'Chat Header',
|
|
||||||
template: 'chats.tpl',
|
|
||||||
location: 'header',
|
|
||||||
},
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
return areas;
|
return areas;
|
||||||
@ -147,6 +143,7 @@ library.loadThemeConfig = async function (uid) {
|
|||||||
|
|
||||||
const config = { ...defaults, ...themeConfig, ...(_.pick(userConfig, Object.keys(defaults))) };
|
const config = { ...defaults, ...themeConfig, ...(_.pick(userConfig, Object.keys(defaults))) };
|
||||||
config.enableQuickReply = config.enableQuickReply === 'on';
|
config.enableQuickReply = config.enableQuickReply === 'on';
|
||||||
|
config.enableBreadcrumbs = config.enableBreadcrumbs === 'on';
|
||||||
config.centerHeaderElements = config.centerHeaderElements === 'on';
|
config.centerHeaderElements = config.centerHeaderElements === 'on';
|
||||||
config.mobileTopicTeasers = config.mobileTopicTeasers === 'on';
|
config.mobileTopicTeasers = config.mobileTopicTeasers === 'on';
|
||||||
config.stickyToolbar = config.stickyToolbar === 'on';
|
config.stickyToolbar = config.stickyToolbar === 'on';
|
||||||
|
@ -8,6 +8,10 @@
|
|||||||
<input type="checkbox" class="form-check-input" id="enableQuickReply" name="enableQuickReply" />
|
<input type="checkbox" class="form-check-input" id="enableQuickReply" name="enableQuickReply" />
|
||||||
<label for="enableQuickReply" class="form-check-label">[[themes/harmony:settings.enableQuickReply]]</label>
|
<label for="enableQuickReply" class="form-check-label">[[themes/harmony:settings.enableQuickReply]]</label>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="form-check form-switch">
|
||||||
|
<input type="checkbox" class="form-check-input" id="enableBreadcrumbs" name="enableBreadcrumbs" />
|
||||||
|
<label for="enableBreadcrumbs" class="form-check-label">[[themes/harmony:settings.enableBreadcrumbs]]</label>
|
||||||
|
</div>
|
||||||
<div class="form-check form-switch">
|
<div class="form-check form-switch">
|
||||||
<input type="checkbox" class="form-check-input" id="centerHeaderElements" name="centerHeaderElements" />
|
<input type="checkbox" class="form-check-input" id="centerHeaderElements" name="centerHeaderElements" />
|
||||||
<label for="centerHeaderElements" class="form-check-label">[[themes/harmony:settings.centerHeaderElements]]</label>
|
<label for="centerHeaderElements" class="form-check-label">[[themes/harmony:settings.centerHeaderElements]]</label>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user