nodebb-theme-harmony 3.1.10 → 3.1.12
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
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
<div class="imagedrop"><div>{{tx("topic:composer.drag-and-drop-images")}}</div></div>
|
|
15
15
|
</div>
|
|
16
16
|
<div>
|
|
17
|
-
<div class="d-flex justify-content-end gap-2">
|
|
17
|
+
<div class="d-flex justify-content-end align-items-center gap-2">
|
|
18
18
|
<div class="me-auto hidden" component="topic/quickreply/category-selector">
|
|
19
19
|
<!-- IMPORT partials/category/selector-dropdown-left.tpl -->
|
|
20
20
|
</div>
|
package/templates/world.tpl
CHANGED
|
@@ -11,27 +11,28 @@
|
|
|
11
11
|
</div>
|
|
12
12
|
{{{ end }}}
|
|
13
13
|
|
|
14
|
-
<div class="
|
|
15
|
-
<div class="
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
14
|
+
<div class="world flex-fill">
|
|
15
|
+
<div class="category">
|
|
16
|
+
<div class="row">
|
|
17
|
+
<div class="col-lg-3 col-sm-12 mt-2 pt-1 ">
|
|
18
|
+
<div class="category-header d-flex flex-column gap-2">
|
|
19
|
+
<div class="d-flex gap-2 align-items-center mb-1 {{{ if config.theme.centerHeaderElements }}}justify-content-center{{{ end }}}">
|
|
20
|
+
{{buildCategoryIcon(@value, "40px", "rounded-1 flex-shrink-0")}}
|
|
21
|
+
<h1 class="tracking-tight fs-2 fw-semibold mb-0 text-center">{{tx("world:name")}}</h1>
|
|
22
|
+
</div>
|
|
23
|
+
{{{ if ./descriptionParsed }}}
|
|
24
|
+
<p class="description text-secondary text-sm w-100 {{{ if config.theme.centerHeaderElements }}}text-center{{{ end }}}">
|
|
25
|
+
{{{ if (cid == "-1") }}}{{tx(./descriptionParsed)}}{{{ else }}}{{./descriptionParsed}}{{{ end }}}
|
|
26
|
+
</p>
|
|
27
|
+
{{{ end }}}
|
|
28
|
+
</div>
|
|
25
29
|
|
|
26
|
-
<div class="
|
|
27
|
-
<div class="world {{{if widgets.sidebar.length }}}col-lg-9 col-sm-12{{{ else }}}col-lg-12{{{ end }}}">
|
|
28
|
-
<div class="category">
|
|
29
|
-
<div class="row flex-row-reverse">
|
|
30
|
-
<div class="col-lg-4 col-sm-12 mt-2 pt-1 {{{ if !config.loggedIn }}}invisible{{{ end }}}">
|
|
30
|
+
<div class="{{{ if !config.loggedIn }}}invisible{{{ end }}}">
|
|
31
31
|
<form class="mb-3" role="search" method="GET" action="{config.relative_path}/search">
|
|
32
32
|
<input type="hidden" name="in" value="categories" />
|
|
33
33
|
<div class="input-group bottom-sheet">
|
|
34
|
-
<input class="form-control
|
|
34
|
+
<input class="form-control" component="category-search" name="term" type="text" autocomplete="off" placeholder="{{tx("world:category-search")}}" />
|
|
35
|
+
{{{ if categories.length }}}
|
|
35
36
|
<button class="btn btn-outline-secondary dropdown-toggle d-md-none" type="button" data-bs-toggle="dropdown">
|
|
36
37
|
<i class="fa fa-fw fa-list"></i>
|
|
37
38
|
</button>
|
|
@@ -52,6 +53,7 @@
|
|
|
52
53
|
</li>
|
|
53
54
|
{{{ end }}}
|
|
54
55
|
</ul>
|
|
56
|
+
{{{ end }}}
|
|
55
57
|
</div>
|
|
56
58
|
</form>
|
|
57
59
|
<div class="quick-search-container dropdown-menu d-block p-2 hidden">
|
|
@@ -65,43 +67,44 @@
|
|
|
65
67
|
{{{ end }}}
|
|
66
68
|
</ul>
|
|
67
69
|
</div>
|
|
70
|
+
</div>
|
|
68
71
|
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
+
<div class="col-lg-6 col-sm-12">
|
|
73
|
+
<!-- IMPORT partials/topic-list-bar.tpl -->
|
|
74
|
+
<!-- IMPORT partials/topic/quickreply.tpl -->
|
|
72
75
|
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
76
|
+
{{{ if !config.loggedIn }}}
|
|
77
|
+
<div class="alert alert-info alert-dismissible fade show">
|
|
78
|
+
<p class="fw-semibold">
|
|
79
|
+
{{tx("world:onboard.title")}}
|
|
80
|
+
</p>
|
|
81
|
+
<p>{{tx("world:onboard.what")}}</p>
|
|
82
|
+
<p>{{tx("world:onboard.why")}}</p>
|
|
83
|
+
<p>{{tx("world:onboard.how")}}</p>
|
|
84
|
+
<a href="{config.relative_path}/register" class="fw-semibold btn btn-sm btn-warning">{{tx("global:register")}}</a>
|
|
85
|
+
<a href="{config.relative_path}/login" class="fw-semibold btn btn-sm btn-info">{{tx("global:login")}}</a>
|
|
86
|
+
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="{{tx("global:close")}}"></button>
|
|
87
|
+
</div>
|
|
88
|
+
{{{ end }}}
|
|
89
|
+
|
|
90
|
+
<ul class="list-unstyled" id="world-feed">
|
|
91
|
+
{{{ each posts }}}
|
|
92
|
+
<!-- IMPORT partials/feed/item.tpl -->
|
|
85
93
|
{{{ end }}}
|
|
94
|
+
</ul>
|
|
86
95
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
</ul>
|
|
96
|
+
{{{ if config.usePagination }}}
|
|
97
|
+
<!-- IMPORT partials/paginator.tpl -->
|
|
98
|
+
{{{ end }}}
|
|
99
|
+
</div>
|
|
92
100
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
101
|
+
<div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
|
|
102
|
+
{{{ each widgets.sidebar }}}
|
|
103
|
+
{{widgets.sidebar.html}}
|
|
104
|
+
{{{ end }}}
|
|
97
105
|
</div>
|
|
98
106
|
</div>
|
|
99
107
|
</div>
|
|
100
|
-
<div data-widget-area="sidebar" class="col-lg-3 col-sm-12 {{{ if !widgets.sidebar.length }}}hidden{{{ end }}}">
|
|
101
|
-
{{{ each widgets.sidebar }}}
|
|
102
|
-
{{widgets.sidebar.html}}
|
|
103
|
-
{{{ end }}}
|
|
104
|
-
</div>
|
|
105
108
|
</div>
|
|
106
109
|
|
|
107
110
|
<div data-widget-area="footer">
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<script type="application/ld+json">{
|
|
2
|
-
"@context": "https://schema.org",
|
|
3
|
-
"@type": "BreadcrumbList",
|
|
4
|
-
"itemListElement": [{
|
|
5
|
-
"@type": "ListItem",
|
|
6
|
-
"position": 1,
|
|
7
|
-
"name": "{config.siteTitle}",
|
|
8
|
-
"item": "{breadcrumbs.0.url}"
|
|
9
|
-
}
|
|
10
|
-
{{{ each breadcrumbs }}}{{{ if !@first}}},{
|
|
11
|
-
"@type": "ListItem",
|
|
12
|
-
"position": {increment(@index, "1")},
|
|
13
|
-
"name": "{{tx(./text)}}"
|
|
14
|
-
{{{ if !@last }}},"item": "{./url}"{{{ end }}}
|
|
15
|
-
}{{{ end }}}{{{ end }}}
|
|
16
|
-
]}</script>
|