nodebb-theme-harmony 1.0.0-beta.111 → 1.0.0-beta.112
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/library.js +11 -1
- package/package.json +1 -1
- package/templates/account/profile.tpl +17 -0
package/library.js
CHANGED
|
@@ -118,6 +118,16 @@ library.defineWidgetAreas = async function (areas) {
|
|
|
118
118
|
template: 'global',
|
|
119
119
|
location: 'brand-header',
|
|
120
120
|
},
|
|
121
|
+
{
|
|
122
|
+
name: 'About me (before)',
|
|
123
|
+
template: 'account/profile.tpl',
|
|
124
|
+
location: 'profile-aboutme-before',
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'About me (after)',
|
|
128
|
+
template: 'account/profile.tpl',
|
|
129
|
+
location: 'profile-aboutme-after',
|
|
130
|
+
},
|
|
121
131
|
]);
|
|
122
132
|
|
|
123
133
|
return areas;
|
|
@@ -140,7 +150,7 @@ async function loadThemeConfig(uid) {
|
|
|
140
150
|
}
|
|
141
151
|
|
|
142
152
|
library.getThemeConfig = async function (config) {
|
|
143
|
-
config.theme = await loadThemeConfig(config.uid)
|
|
153
|
+
config.theme = await loadThemeConfig(config.uid);
|
|
144
154
|
config.openDraftsOnPageLoad = false;
|
|
145
155
|
return config;
|
|
146
156
|
};
|
package/package.json
CHANGED
|
@@ -1,10 +1,27 @@
|
|
|
1
1
|
<!-- IMPORT partials/account/header.tpl -->
|
|
2
|
+
|
|
3
|
+
{{{ if widgets.profile-aboutme-before.length }}}
|
|
4
|
+
<div data-widget-area="profile-aboutme-before">
|
|
5
|
+
{{{each widgets.profile-aboutme-before}}}
|
|
6
|
+
{./html}
|
|
7
|
+
{{{end}}}
|
|
8
|
+
</div>
|
|
9
|
+
{{{ end }}}
|
|
10
|
+
|
|
2
11
|
{{{ if aboutme }}}
|
|
3
12
|
<div component="aboutme" class="text-sm text-break">
|
|
4
13
|
{aboutmeParsed}
|
|
5
14
|
</div>
|
|
6
15
|
{{{ end }}}
|
|
7
16
|
|
|
17
|
+
{{{ if widgets.profile-aboutme-after.length }}}
|
|
18
|
+
<div data-widget-area="profile-aboutme-after">
|
|
19
|
+
{{{each widgets.profile-aboutme-after}}}
|
|
20
|
+
{./html}
|
|
21
|
+
{{{end}}}
|
|
22
|
+
</div>
|
|
23
|
+
{{{ end }}}
|
|
24
|
+
|
|
8
25
|
<div class="account-stats container">
|
|
9
26
|
<div class="row row-cols-2 row-cols-xl-3 row-cols-xxl-4 g-2">
|
|
10
27
|
{{{ if !reputation:disabled }}}
|