nodebb-theme-harmony 1.0.23 → 1.0.24
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 +2 -2
- package/library.js +1 -1
- package/package.json +1 -1
- package/plugin.json +1 -2
- package/templates/account/theme.tpl +8 -8
- package/templates/admin/plugins/harmony.tpl +7 -7
- package/templates/partials/sidebar/logged-out-menu.tpl +2 -2
- package/templates/partials/sidebar-left.tpl +2 -2
- package/templates/partials/skin-switcher.tpl +2 -2
- package/languages/en-GB/harmony.json +0 -14
- package/languages/he/harmony.json +0 -14
package/lib/controllers.js
CHANGED
|
@@ -15,8 +15,8 @@ Controllers.renderThemeSettings = async (req, res, next) => {
|
|
|
15
15
|
return next();
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
-
userData.title = '[[harmony:settings.title]]';
|
|
19
|
-
userData.breadcrumbs = helpers.buildBreadcrumbs([{ text: userData.username, url: `/user/${userData.userslug}` }, { text: '[[harmony:settings.title]]' }]);
|
|
18
|
+
userData.title = '[[themes/harmony:settings.title]]';
|
|
19
|
+
userData.breadcrumbs = helpers.buildBreadcrumbs([{ text: userData.username, url: `/user/${userData.userslug}` }, { text: '[[themes/harmony:settings.title]]' }]);
|
|
20
20
|
|
|
21
21
|
res.render('account/theme', userData);
|
|
22
22
|
};
|
package/library.js
CHANGED
package/package.json
CHANGED
package/plugin.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<!-- IMPORT partials/account/header.tpl -->
|
|
2
2
|
|
|
3
3
|
<div class="mb-3 d-flex justify-content-between">
|
|
4
|
-
<h3 class="fw-semibold fs-5">[[harmony:settings.title]]</h3>
|
|
4
|
+
<h3 class="fw-semibold fs-5">[[themes/harmony:settings.title]]</h3>
|
|
5
5
|
|
|
6
6
|
<button id="save" type="button" class="btn btn-primary">[[global:save_changes]]</button>
|
|
7
7
|
</div>
|
|
@@ -9,25 +9,25 @@
|
|
|
9
9
|
<form id="theme-settings" role="form">
|
|
10
10
|
<div class="form-check mb-3">
|
|
11
11
|
<input class="form-check-input" type="checkbox" id="enableQuickReply" name="enableQuickReply" {{{ if config.theme.enableQuickReply }}}checked{{{ end }}}>
|
|
12
|
-
<label class="form-check-label" for="enableQuickReply">[[harmony:settings.enableQuickReply]]</label>
|
|
12
|
+
<label class="form-check-label" for="enableQuickReply">[[themes/harmony:settings.enableQuickReply]]</label>
|
|
13
13
|
</div>
|
|
14
14
|
|
|
15
15
|
<div class="form-check mb-3">
|
|
16
16
|
<input class="form-check-input" type="checkbox" id="centerHeaderElements" name="centerHeaderElements" {{{ if config.theme.centerHeaderElements }}}checked{{{ end }}}>
|
|
17
|
-
<label class="form-check-label" for="centerHeaderElements">[[harmony:settings.centerHeaderElements]]</label>
|
|
17
|
+
<label class="form-check-label" for="centerHeaderElements">[[themes/harmony:settings.centerHeaderElements]]</label>
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
20
|
<div class="form-check mb-3">
|
|
21
21
|
<input class="form-check-input" type="checkbox" id="mobileTopicTeasers" name="mobileTopicTeasers" {{{ if config.theme.mobileTopicTeasers }}}checked{{{ end }}}>
|
|
22
|
-
<label class="form-check-label" for="mobileTopicTeasers">[[harmony:settings.mobileTopicTeasers]]</label>
|
|
22
|
+
<label class="form-check-label" for="mobileTopicTeasers">[[themes/harmony:settings.mobileTopicTeasers]]</label>
|
|
23
23
|
</div>
|
|
24
24
|
|
|
25
25
|
<div class="form-check mb-3">
|
|
26
26
|
<input class="form-check-input" type="checkbox" id="stickyToolbar" name="stickyToolbar" {{{ if config.theme.stickyToolbar }}}checked{{{ end }}}>
|
|
27
27
|
<label class="form-check-label" for="stickyToolbar">
|
|
28
|
-
[[harmony:settings.stickyToolbar]]
|
|
28
|
+
[[themes/harmony:settings.stickyToolbar]]
|
|
29
29
|
<p class="form-text mb-0">
|
|
30
|
-
[[harmony:settings.stickyToolbar.help]]
|
|
30
|
+
[[themes/harmony:settings.stickyToolbar.help]]
|
|
31
31
|
</p>
|
|
32
32
|
</label>
|
|
33
33
|
</div>
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
<div class="form-check mb-3">
|
|
36
36
|
<input class="form-check-input" type="checkbox" id="autohideBottombar" name="autohideBottombar" {{{ if config.theme.autohideBottombar }}}checked{{{ end }}}>
|
|
37
37
|
<label class="form-check-label" for="autohideBottombar">
|
|
38
|
-
[[harmony:settings.autohideBottombar]]
|
|
38
|
+
[[themes/harmony:settings.autohideBottombar]]
|
|
39
39
|
<p class="form-text mb-0">
|
|
40
|
-
[[harmony:settings.autohideBottombar.help]]
|
|
40
|
+
[[themes/harmony:settings.autohideBottombar.help]]
|
|
41
41
|
</p>
|
|
42
42
|
</label>
|
|
43
43
|
</div>
|
|
@@ -4,31 +4,31 @@
|
|
|
4
4
|
<form role="form" class="harmony-settings">
|
|
5
5
|
<div class="form-check form-switch">
|
|
6
6
|
<input type="checkbox" class="form-check-input" id="enableQuickReply" name="enableQuickReply" />
|
|
7
|
-
<label for="enableQuickReply" class="form-check-label">[[harmony:settings.enableQuickReply]]</label>
|
|
7
|
+
<label for="enableQuickReply" class="form-check-label">[[themes/harmony:settings.enableQuickReply]]</label>
|
|
8
8
|
</div>
|
|
9
9
|
<div class="form-check form-switch">
|
|
10
10
|
<input type="checkbox" class="form-check-input" id="centerHeaderElements" name="centerHeaderElements" />
|
|
11
|
-
<label for="centerHeaderElements" class="form-check-label">[[harmony:settings.centerHeaderElements]]</label>
|
|
11
|
+
<label for="centerHeaderElements" class="form-check-label">[[themes/harmony:settings.centerHeaderElements]]</label>
|
|
12
12
|
</div>
|
|
13
13
|
<div class="form-check form-switch">
|
|
14
14
|
<input type="checkbox" class="form-check-input" id="mobileTopicTeasers" name="mobileTopicTeasers" />
|
|
15
|
-
<label for="mobileTopicTeasers" class="form-check-label">[[harmony:settings.mobileTopicTeasers]]</label>
|
|
15
|
+
<label for="mobileTopicTeasers" class="form-check-label">[[themes/harmony:settings.mobileTopicTeasers]]</label>
|
|
16
16
|
</div>
|
|
17
17
|
<div class="form-check form-switch">
|
|
18
18
|
<input type="checkbox" class="form-check-input" id="stickyToolbar" name="stickyToolbar" />
|
|
19
19
|
<div for="stickyToolbar" class="form-check-label">
|
|
20
|
-
[[harmony:settings.stickyToolbar]]
|
|
20
|
+
[[themes/harmony:settings.stickyToolbar]]
|
|
21
21
|
<p class="form-text">
|
|
22
|
-
[[harmony:settings.stickyToolbar.help]]
|
|
22
|
+
[[themes/harmony:settings.stickyToolbar.help]]
|
|
23
23
|
</p>
|
|
24
24
|
</div>
|
|
25
25
|
</div>
|
|
26
26
|
<div class="form-check form-switch">
|
|
27
27
|
<input type="checkbox" class="form-check-input" id="autohideBottombar" name="autohideBottombar" />
|
|
28
28
|
<div for="autohideBottombar" class="form-check-label">
|
|
29
|
-
[[harmony:settings.autohideBottombar]]
|
|
29
|
+
[[themes/harmony:settings.autohideBottombar]]
|
|
30
30
|
<p class="form-text">
|
|
31
|
-
[[harmony:settings.autohideBottombar.help]]
|
|
31
|
+
[[themes/harmony:settings.autohideBottombar.help]]
|
|
32
32
|
</p>
|
|
33
33
|
</div>
|
|
34
34
|
</div>
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
|
|
28
28
|
{{{ if config.searchEnabled }}}
|
|
29
29
|
<li component="sidebar/search" class="visible-open nav-item mx-2 search">
|
|
30
|
-
<div class="d-flex gap-2 py-1 px-2 align-items-center" title="[[harmony:login-register-to-search]]">
|
|
30
|
+
<div class="d-flex gap-2 py-1 px-2 align-items-center" title="[[themes/harmony:login-register-to-search]]">
|
|
31
31
|
<i class="fa fa-fw fa-search text-muted"></i>
|
|
32
|
-
<span class="nav-text visible-open text-xs text-muted">[[harmony:login-register-to-search]]</span>
|
|
32
|
+
<span class="nav-text visible-open text-xs text-muted">[[themes/harmony:login-register-to-search]]</span>
|
|
33
33
|
</a>
|
|
34
34
|
</a>
|
|
35
35
|
{{{ end }}}
|
|
@@ -33,10 +33,10 @@
|
|
|
33
33
|
{{{ end }}}
|
|
34
34
|
|
|
35
35
|
<div class="sidebar-toggle m-2 d-none d-lg-block">
|
|
36
|
-
<a href="#" role="button" component="sidebar/toggle" class="nav-btn d-flex gap-2 align-items-center p-2 pointer nav-link w-100 text-nowrap" title="[[harmony:expand]]">
|
|
36
|
+
<a href="#" role="button" component="sidebar/toggle" class="nav-btn d-flex gap-2 align-items-center p-2 pointer nav-link w-100 text-nowrap" title="[[themes/harmony:expand]]">
|
|
37
37
|
<i class="fa fa-fw fa-angles-right"></i>
|
|
38
38
|
<i class="fa fa-fw fa-angles-left"></i>
|
|
39
|
-
<span class="nav-text visible-open fw-semibold small lh-1">[[harmony:collapse]]</span>
|
|
39
|
+
<span class="nav-text visible-open fw-semibold small lh-1">[[themes/harmony:collapse]]</span>
|
|
40
40
|
</a>
|
|
41
41
|
</div>
|
|
42
42
|
</div>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<div class="dropend m-2" component="skinSwitcher" title="[[harmony:skins]]">
|
|
1
|
+
<div class="dropend m-2" component="skinSwitcher" title="[[themes/harmony:skins]]">
|
|
2
2
|
<a data-bs-toggle="dropdown" href="#" role="button" class="nav-link nav-btn position-relative">
|
|
3
3
|
<span class="justify-content-between w-100">
|
|
4
4
|
<span class="d-flex gap-2 align-items-center text-nowrap truncate-open">
|
|
5
5
|
<span>
|
|
6
6
|
<i component="skinSwitcher/icon" class="fa fa-fw fa-paintbrush"></i>
|
|
7
7
|
</span>
|
|
8
|
-
<span class="nav-text small visible-open fw-semibold">[[harmony:skins]]</span>
|
|
8
|
+
<span class="nav-text small visible-open fw-semibold">[[themes/harmony:skins]]</span>
|
|
9
9
|
</span>
|
|
10
10
|
</span>
|
|
11
11
|
</a>
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"skins": "Skins",
|
|
3
|
-
"collapse": "Collapse",
|
|
4
|
-
"expand": "Expand",
|
|
5
|
-
"login-register-to-search": "Login or register to search.",
|
|
6
|
-
"settings.title": "Theme settings",
|
|
7
|
-
"settings.enableQuickReply": "Enable quick reply",
|
|
8
|
-
"settings.centerHeaderElements": "Center header elements",
|
|
9
|
-
"settings.mobileTopicTeasers": "Show topic teasers on mobile",
|
|
10
|
-
"settings.stickyToolbar": "Sticky toolbar",
|
|
11
|
-
"settings.stickyToolbar.help": "The toolbar on topic and category pages will stick to the top of the page",
|
|
12
|
-
"settings.autohideBottombar": "Auto hide bottom bar",
|
|
13
|
-
"settings.autohideBottombar.help": "The bottom bar on mobile view will be hidden when the page is scrolled down"
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"skins": "עיצובים",
|
|
3
|
-
"collapse": "כיווץ",
|
|
4
|
-
"expand": "הרחבה",
|
|
5
|
-
"login-register-to-search": "התחבר או הירשם כדי לחפש.",
|
|
6
|
-
"settings.title": "הגדרות ערכת נושא",
|
|
7
|
-
"settings.enableQuickReply": "אפשר תשובה מהירה",
|
|
8
|
-
"settings.centerHeaderElements": "מרכז אלמנטים של כותרת",
|
|
9
|
-
"settings.mobileTopicTeasers": "הצג טיזרים לנושאים בנייד",
|
|
10
|
-
"settings.stickyToolbar": "סרגל כלים דביק",
|
|
11
|
-
"settings.stickyToolbar.help": "סרגל הכלים בדפי נושאים וקטגוריות ייצמד לראש העמוד",
|
|
12
|
-
"settings.autohideBottombar": "הסתר אוטומטית את הסרגל התחתון",
|
|
13
|
-
"settings.autohideBottombar.help": "הסרגל התחתון בתצוגת הנייד יוסתר כאשר הדף ייגלל מטה"
|
|
14
|
-
}
|