nodebb-theme-harmony 1.0.42 → 1.0.43
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/controllers.js +3 -1
- package/library.js +1 -1
- package/package.json +1 -1
- package/templates/admin/plugins/harmony.tpl +43 -40
package/lib/controllers.js
CHANGED
|
@@ -6,7 +6,9 @@ const accountHelpers = require.main.require('./src/controllers/accounts/helpers'
|
|
|
6
6
|
const helpers = require.main.require('./src/controllers/helpers');
|
|
7
7
|
|
|
8
8
|
Controllers.renderAdminPage = (req, res) => {
|
|
9
|
-
res.render('admin/plugins/harmony', {
|
|
9
|
+
res.render('admin/plugins/harmony', {
|
|
10
|
+
title: '[[themes/harmony:theme-name]]',
|
|
11
|
+
});
|
|
10
12
|
};
|
|
11
13
|
|
|
12
14
|
Controllers.renderThemeSettings = async (req, res, next) => {
|
package/library.js
CHANGED
package/package.json
CHANGED
|
@@ -1,45 +1,48 @@
|
|
|
1
|
-
<div class="
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
<
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
<
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
<input type="checkbox" class="form-check-input" id="stickyToolbar" name="stickyToolbar" />
|
|
19
|
-
<div for="stickyToolbar" class="form-check-label">
|
|
20
|
-
[[themes/harmony:settings.stickyToolbar]]
|
|
21
|
-
<p class="form-text">
|
|
22
|
-
[[themes/harmony:settings.stickyToolbar.help]]
|
|
23
|
-
</p>
|
|
1
|
+
<div class="acp-page-container">
|
|
2
|
+
<!-- IMPORT admin/partials/settings/header.tpl -->
|
|
3
|
+
|
|
4
|
+
<div class="row m-0">
|
|
5
|
+
<div id="spy-container" class="col-12 col-md-8 px-0 mb-4" tabindex="0">
|
|
6
|
+
<form role="form" class="harmony-settings">
|
|
7
|
+
<div class="form-check form-switch">
|
|
8
|
+
<input type="checkbox" class="form-check-input" id="enableQuickReply" name="enableQuickReply" />
|
|
9
|
+
<label for="enableQuickReply" class="form-check-label">[[themes/harmony:settings.enableQuickReply]]</label>
|
|
10
|
+
</div>
|
|
11
|
+
<div class="form-check form-switch">
|
|
12
|
+
<input type="checkbox" class="form-check-input" id="centerHeaderElements" name="centerHeaderElements" />
|
|
13
|
+
<label for="centerHeaderElements" class="form-check-label">[[themes/harmony:settings.centerHeaderElements]]</label>
|
|
14
|
+
</div>
|
|
15
|
+
<div class="form-check form-switch">
|
|
16
|
+
<input type="checkbox" class="form-check-input" id="mobileTopicTeasers" name="mobileTopicTeasers" />
|
|
17
|
+
<label for="mobileTopicTeasers" class="form-check-label">[[themes/harmony:settings.mobileTopicTeasers]]</label>
|
|
24
18
|
</div>
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
</
|
|
19
|
+
<div class="form-check form-switch">
|
|
20
|
+
<input type="checkbox" class="form-check-input" id="stickyToolbar" name="stickyToolbar" />
|
|
21
|
+
<div for="stickyToolbar" class="form-check-label">
|
|
22
|
+
[[themes/harmony:settings.stickyToolbar]]
|
|
23
|
+
<p class="form-text">
|
|
24
|
+
[[themes/harmony:settings.stickyToolbar.help]]
|
|
25
|
+
</p>
|
|
26
|
+
</div>
|
|
33
27
|
</div>
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
28
|
+
<div class="form-check form-switch">
|
|
29
|
+
<input type="checkbox" class="form-check-input" id="autohideBottombar" name="autohideBottombar" />
|
|
30
|
+
<div for="autohideBottombar" class="form-check-label">
|
|
31
|
+
[[themes/harmony:settings.autohideBottombar]]
|
|
32
|
+
<p class="form-text">
|
|
33
|
+
[[themes/harmony:settings.autohideBottombar.help]]
|
|
34
|
+
</p>
|
|
35
|
+
</div>
|
|
39
36
|
</div>
|
|
40
|
-
|
|
41
|
-
|
|
37
|
+
<div class="form-check form-switch">
|
|
38
|
+
<input type="checkbox" class="form-check-input" id="chatModals" name="chatModals" />
|
|
39
|
+
<div for="chatModals" class="form-check-label">
|
|
40
|
+
[[themes/harmony:settings.chatModals]]
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
43
|
+
</form>
|
|
44
|
+
</div>
|
|
45
|
+
|
|
46
|
+
<!-- IMPORT admin/partials/settings/toc.tpl -->
|
|
42
47
|
</div>
|
|
43
48
|
</div>
|
|
44
|
-
|
|
45
|
-
<!-- IMPORT admin/partials/save_button.tpl -->
|