nodebb-theme-persona 13.0.15 → 13.0.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nodebb-theme-persona",
3
- "version": "13.0.15",
3
+ "version": "13.0.17",
4
4
  "nbbpm": {
5
5
  "compatibility": "^3.0.0"
6
6
  },
package/scss/mobile.scss CHANGED
@@ -33,7 +33,7 @@
33
33
  }
34
34
  }
35
35
 
36
- @include media-breakpoint-down(md) {
36
+ @include media-breakpoint-down(lg) {
37
37
  #panel {
38
38
  background-color: inherit;
39
39
  min-height: 100%;
@@ -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 -->
@@ -21,7 +21,9 @@
21
21
  <a class="dropdown-item" role="menu-item">{../level}
22
22
  <span component="category-markup" style="{{{ if ../match }}}font-weight: bold;{{{end}}}">
23
23
  <div class="category-item d-inline-block">
24
+ {{{ if ./icon }}}
24
25
  {buildCategoryIcon(@value, "24px", "rounded-circle")}
26
+ {{{ end }}}
25
27
  {./name}
26
28
  </div>
27
29
  </span>
@@ -0,0 +1,55 @@
1
+ <div id="results" class="search-results col-md-12" data-search-query="{search_query}">
2
+ {{{ if matchCount }}}
3
+ <div class="alert alert-info">[[search:results_matching, {matchCount}, {search_query}, {time}]] </div>
4
+ {{{ else }}}
5
+ {{{ if search_query }}}
6
+ <div class="alert alert-warning">[[search:no-matches]]</div>
7
+ {{{ end }}}
8
+ {{{ end }}}
9
+
10
+ {{{each posts}}}
11
+ <div class="topic-row card clearfix mb-3">
12
+ <div class="card-body">
13
+ <div>
14
+ <a href="{config.relative_path}/user/{./user.userslug}">{buildAvatar(./user, "24px", true)}</a>
15
+ <span class="search-result-text search-result-title"><a href="{config.relative_path}/post/{posts.pid}">{./topic.title}</a></span>
16
+ </div>
17
+
18
+ {{{ if showAsPosts }}}
19
+ <div class="search-result-text">
20
+ {./content}
21
+ <p class="fade-out"></p>
22
+ </div>
23
+ {{{ end }}}
24
+
25
+ <small class="post-info float-end">
26
+ <a href="{config.relative_path}/category/{./category.slug}">
27
+ <div class="category-item d-inline-block">
28
+ {buildCategoryIcon(./category, "24px", "rounded-circle")}
29
+ {./category.name}
30
+ </div>
31
+ </a> &bull;
32
+ <span class="timeago" title="{./timestampISO}"></span>
33
+ </small>
34
+ </div>
35
+ </div>
36
+ {{{end}}}
37
+
38
+ {{{ if users.length }}}
39
+ <!-- IMPORT partials/users_list.tpl -->
40
+ {{{ end }}}
41
+
42
+ {{{ if tags.length }}}
43
+ <!-- IMPORT partials/tags_list.tpl -->
44
+ {{{ end }}}
45
+
46
+ {{{ if categories.length }}}
47
+ <ul class="categories">
48
+ {{{each categories}}}
49
+ <!-- IMPORT partials/categories/item.tpl -->
50
+ {{{end}}}
51
+ </ul>
52
+ {{{ end }}}
53
+
54
+ <!-- IMPORT partials/paginator.tpl -->
55
+ </div>
@@ -32,17 +32,17 @@
32
32
  </div>
33
33
 
34
34
  <h2 component="topic/header" class="title mb-1">
35
- <i component="topic/scheduled" class="fa fa-clock-o <!-- IF !topics.scheduled -->hide<!-- ENDIF !topics.scheduled -->" title="[[topic:scheduled]]"></i>
36
- <i component="topic/pinned" class="fa fa-thumb-tack <!-- IF (topics.scheduled || !topics.pinned) -->hide<!-- ENDIF (topics.scheduled || !topics.pinned) -->" title="{{{ if !../pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {../pinExpiryISO}]]{{{ end }}}"></i>
37
- <i component="topic/locked" class="fa fa-lock <!-- IF !topics.locked -->hide<!-- ENDIF !topics.locked -->" title="[[topic:locked]]"></i>
38
- <i component="topic/moved" class="fa fa-arrow-circle-right <!-- IF !topics.oldCid -->hide<!-- ENDIF !topics.oldCid -->" title="[[topic:moved]]"></i>
35
+ <i component="topic/scheduled" class="fa fa-clock-o {{{ if !topics.scheduled }}}hide{{{ end }}}" title="[[topic:scheduled]]"></i>
36
+ <i component="topic/pinned" class="fa fa-thumb-tack {{{ if (topics.scheduled || !topics.pinned) }}}hide{{{ end }}}" title="{{{ if !../pinExpiry }}}[[topic:pinned]]{{{ else }}}[[topic:pinned-with-expiry, {../pinExpiryISO}]]{{{ end }}}"></i>
37
+ <i component="topic/locked" class="fa fa-lock {{{ if !topics.locked }}}hide{{{ end }}}" title="[[topic:locked]]"></i>
38
+ <i component="topic/moved" class="fa fa-arrow-circle-right {{{ if !topics.oldCid }}}hide{{{ end }}}" title="[[topic:moved]]"></i>
39
39
  {{{each topics.icons}}}{@value}{{{end}}}
40
40
 
41
- <!-- IF !topics.noAnchor -->
42
- <a href="{config.relative_path}/topic/{topics.slug}<!-- IF topics.bookmark -->/{topics.bookmark}<!-- ENDIF topics.bookmark -->">{topics.title}</a>
43
- <!-- ELSE -->
44
- <span>{topics.title}</span>
45
- <!-- ENDIF !topics.noAnchor -->
41
+ {{{ if topics.noAnchor }}}
42
+ <span>{./title}</span>
43
+ {{{ else }}}
44
+ <a href="{config.relative_path}/topic/{./slug}{{{ if ./bookmark }}}/{./bookmark}{{{ end }}}">{./title}</a>
45
+ {{{ end }}}
46
46
  </h2>
47
47
  <div class="info">
48
48
  <!-- IF !template.category -->
@@ -2,7 +2,7 @@
2
2
 
3
3
  <div class="search">
4
4
  <div class="row">
5
- <div class="<!-- IF widgets.sidebar.length -->col-lg-9 col-sm-12<!-- ELSE -->col-lg-12<!-- ENDIF widgets.sidebar.length -->">
5
+ <div class="{{{ if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
6
6
  <form id="advanced-search" class="mb-3">
7
7
  <div class="mb-3">
8
8
  <div class="row">
@@ -172,61 +172,9 @@
172
172
  </div>
173
173
  </form>
174
174
 
175
- <div id="results" class="search-results col-md-12" data-search-query="{search_query}">
176
- <!-- IF matchCount -->
177
- <div class="alert alert-info">[[search:results_matching, {matchCount}, {search_query}, {time}]] </div>
178
- <!-- ELSE -->
179
- <!-- IF search_query -->
180
- <div class="alert alert-warning">[[search:no-matches]]</div>
181
- <!-- ENDIF search_query -->
182
- <!-- ENDIF matchCount -->
183
-
184
- {{{each posts}}}
185
- <div class="topic-row card clearfix mb-3">
186
- <div class="card-body">
187
- <a href="{config.relative_path}/user/{posts.user.userslug}">{buildAvatar(posts.user, "24px", true)}</a>
188
- <span class="search-result-text search-result-title"><a href="{config.relative_path}/post/{posts.pid}">{posts.topic.title}</a></span>
189
- <br/>
190
- <!-- IF showAsPosts -->
191
- <div class="search-result-text">
192
- {posts.content}
193
- <p class="fade-out"></p>
194
- </div>
195
- <!-- ENDIF showAsPosts -->
196
-
197
- <small class="post-info float-end">
198
- <a href="{config.relative_path}/category/{posts.category.slug}">
199
- <div class="category-item d-inline-block">
200
- {buildCategoryIcon(./category, "24px", "rounded-circle")}
201
- {posts.category.name}
202
- </div>
203
- </a> &bull;
204
- <span class="timeago" title="{posts.timestampISO}"></span>
205
- </small>
206
- </div>
207
- </div>
208
- {{{end}}}
209
-
210
- <!-- IF users.length -->
211
- <!-- IMPORT partials/users_list.tpl -->
212
- <!-- ENDIF users.length -->
213
-
214
- <!-- IF tags.length -->
215
- <!-- IMPORT partials/tags_list.tpl -->
216
- <!-- ENDIF tags.length -->
217
-
218
- {{{ if categories.length }}}
219
- <ul class="categories">
220
- {{{each categories}}}
221
- <!-- IMPORT partials/categories/item.tpl -->
222
- {{{end}}}
223
- </ul>
224
- {{{ end }}}
225
-
226
- <!-- IMPORT partials/paginator.tpl -->
227
- </div>
175
+ <!-- IMPORT partials/search-results.tpl -->
228
176
  </div>
229
- <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 <!-- IF !widgets.sidebar.length -->hidden<!-- ENDIF !widgets.sidebar.length -->">
177
+ <div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
230
178
  {{{each widgets.sidebar}}}
231
179
  {{widgets.sidebar.html}}
232
180
  {{{end}}}
package/templates/tos.tpl CHANGED
@@ -1,4 +1,4 @@
1
- <h3>[[register:terms_of_use]]</h3>
2
- <hr/>
3
-
4
- {termsOfUse}
1
+ <h3>[[register:terms_of_use]]</h3>
2
+ <hr/>
3
+
4
+ {termsOfUse}
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
  }