nodebb-theme-persona 12.1.12 → 12.1.13
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
CHANGED
|
@@ -69,6 +69,16 @@ library.defineWidgetAreas = async function (areas) {
|
|
|
69
69
|
});
|
|
70
70
|
|
|
71
71
|
areas = areas.concat([
|
|
72
|
+
{
|
|
73
|
+
name: 'Main post header',
|
|
74
|
+
template: 'topic.tpl',
|
|
75
|
+
location: 'mainpost-header',
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
name: 'Main post footer',
|
|
79
|
+
template: 'topic.tpl',
|
|
80
|
+
location: 'mainpost-footer',
|
|
81
|
+
},
|
|
72
82
|
{
|
|
73
83
|
name: 'Account Header',
|
|
74
84
|
template: 'account/profile.tpl',
|
package/package.json
CHANGED
|
@@ -60,10 +60,9 @@
|
|
|
60
60
|
<div class="form-group">
|
|
61
61
|
<h2 class="h4" for="state">[[flags:state]]</h2>
|
|
62
62
|
<select class="form-control" id="state" name="state" disabled>
|
|
63
|
-
|
|
64
|
-
<option value="
|
|
65
|
-
|
|
66
|
-
<option value="rejected">[[flags:state-rejected]]</option>
|
|
63
|
+
{{{ each states }}}
|
|
64
|
+
<option value="{@key}">{./label}</option>
|
|
65
|
+
{{{ end }}}
|
|
67
66
|
</select>
|
|
68
67
|
</div>
|
|
69
68
|
<div class="form-group">
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
<div class="form-group">
|
|
2
|
-
<label for="agree-terms">[[register:terms_of_use]]</label>
|
|
3
|
-
<div class="tos">{termsOfUse}</div>
|
|
4
|
-
<div class="checkbox">
|
|
5
|
-
<label>
|
|
6
|
-
<input type="checkbox" name="agree-terms" id="agree-terms"> [[register:agree_to_terms_of_use]]
|
|
7
|
-
</label>
|
|
8
|
-
</div>
|
|
1
|
+
<div class="form-group">
|
|
2
|
+
<label for="agree-terms">[[register:terms_of_use]]</label>
|
|
3
|
+
<div class="tos">{termsOfUse}</div>
|
|
4
|
+
<div class="checkbox">
|
|
5
|
+
<label>
|
|
6
|
+
<input type="checkbox" name="agree-terms" id="agree-terms"> [[register:agree_to_terms_of_use]]
|
|
7
|
+
</label>
|
|
8
|
+
</div>
|
|
9
9
|
</div>
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
<!-- IF ../isSection -->
|
|
2
|
-
{../name}
|
|
3
|
-
<!-- ELSE -->
|
|
4
|
-
<!-- IF ../link -->
|
|
5
|
-
<a href="{../link}" itemprop="url">
|
|
6
|
-
<!-- ELSE -->
|
|
7
|
-
<a href="{config.relative_path}/category/{../slug}" itemprop="url">
|
|
8
|
-
<!-- ENDIF ../link -->
|
|
9
|
-
{../name}
|
|
10
|
-
</a>
|
|
1
|
+
<!-- IF ../isSection -->
|
|
2
|
+
{../name}
|
|
3
|
+
<!-- ELSE -->
|
|
4
|
+
<!-- IF ../link -->
|
|
5
|
+
<a href="{../link}" itemprop="url">
|
|
6
|
+
<!-- ELSE -->
|
|
7
|
+
<a href="{config.relative_path}/category/{../slug}" itemprop="url">
|
|
8
|
+
<!-- ENDIF ../link -->
|
|
9
|
+
{../name}
|
|
10
|
+
</a>
|
|
11
11
|
<!-- ENDIF ../isSection -->
|
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
{{{ if (!./index && widgets.mainpost-header.length) }}}
|
|
2
|
+
<div data-widget-area="mainpost-header">
|
|
3
|
+
{{{ each widgets.mainpost-header }}}
|
|
4
|
+
{widgets.mainpost-header.html}
|
|
5
|
+
{{{ end }}}
|
|
6
|
+
</div>
|
|
7
|
+
{{{ end }}}
|
|
8
|
+
|
|
1
9
|
<div class="clearfix post-header">
|
|
2
10
|
<div class="icon pull-left">
|
|
3
11
|
<a href="<!-- IF posts.user.userslug -->{config.relative_path}/user/{posts.user.userslug}<!-- ELSE -->#<!-- ENDIF posts.user.userslug -->">
|
|
@@ -76,7 +84,7 @@
|
|
|
76
84
|
</a>
|
|
77
85
|
{{{ end }}}
|
|
78
86
|
|
|
79
|
-
<small class="pull-right">
|
|
87
|
+
<small class="pull-right" component="post/actions">
|
|
80
88
|
<!-- IMPORT partials/topic/reactions.tpl -->
|
|
81
89
|
<span class="post-tools">
|
|
82
90
|
<a component="post/reply" href="#" class="no-select <!-- IF !privileges.topics:reply -->hidden<!-- ENDIF !privileges.topics:reply -->">[[topic:reply]]</a>
|
|
@@ -103,4 +111,11 @@
|
|
|
103
111
|
</small>
|
|
104
112
|
</div>
|
|
105
113
|
<div component="post/replies/container"></div>
|
|
106
|
-
</div>
|
|
114
|
+
</div>
|
|
115
|
+
{{{ if (!./index && widgets.mainpost-footer.length) }}}
|
|
116
|
+
<div data-widget-area="mainpost-footer">
|
|
117
|
+
{{{ each widgets.mainpost-footer }}}
|
|
118
|
+
{widgets.mainpost-footer.html}
|
|
119
|
+
{{{ end }}}
|
|
120
|
+
</div>
|
|
121
|
+
{{{ end }}}
|
package/theme.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
{
|
|
2
|
-
"id": "nodebb-theme-persona",
|
|
3
|
-
"name": "Persona",
|
|
4
|
-
"description": "The default theme for NodeBB. Uses a standard approach to forum design.",
|
|
5
|
-
"url": "https://github.com/psychobunny/nodebb-theme-persona",
|
|
6
|
-
"screenshot": "screenshot.png"
|
|
1
|
+
{
|
|
2
|
+
"id": "nodebb-theme-persona",
|
|
3
|
+
"name": "Persona",
|
|
4
|
+
"description": "The default theme for NodeBB. Uses a standard approach to forum design.",
|
|
5
|
+
"url": "https://github.com/psychobunny/nodebb-theme-persona",
|
|
6
|
+
"screenshot": "screenshot.png"
|
|
7
7
|
}
|