wagtail-cjkcms 24.12.3__py2.py3-none-any.whl → 25.1.1__py2.py3-none-any.whl
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.
- cjkcms/__init__.py +1 -1
- cjkcms/blocks/content_blocks.py +1 -9
- cjkcms/migrations/0023_alter_navbar_language.py +18 -0
- cjkcms/static/cjkcms/css/cjkcms-front.css +28 -2
- cjkcms/templates/cjkcms/blocks/base_link_block.html +48 -53
- cjkcms/templates/cjkcms/snippets/navbar.html +5 -9
- cjkcms/templates/cjkcms/snippets/navbar_search_button.html +18 -0
- cjkcms/templates/cjkcms/snippets/navbar_search_modal.html +34 -0
- cjkcms/templatetags/cjkcms_tags.py +16 -3
- cjkcms/tests/media/images/test_OSPIkp8.original.png +0 -0
- cjkcms/tests/media/images/test_YBCJmYS.original.png +0 -0
- cjkcms/tests/media/images/test_q0QJ4UA.original.png +0 -0
- cjkcms/tests/media/original_images/test_OSPIkp8.png +0 -0
- cjkcms/tests/media/original_images/test_YBCJmYS.png +0 -0
- cjkcms/tests/media/original_images/test_q0QJ4UA.png +0 -0
- {wagtail_cjkcms-24.12.3.dist-info → wagtail_cjkcms-25.1.1.dist-info}/METADATA +1 -1
- {wagtail_cjkcms-24.12.3.dist-info → wagtail_cjkcms-25.1.1.dist-info}/RECORD +21 -13
- cjkcms/templates/cjkcms/snippets/navbar_search.html +0 -47
- {wagtail_cjkcms-24.12.3.dist-info → wagtail_cjkcms-25.1.1.dist-info}/LICENSE +0 -0
- {wagtail_cjkcms-24.12.3.dist-info → wagtail_cjkcms-25.1.1.dist-info}/WHEEL +0 -0
- {wagtail_cjkcms-24.12.3.dist-info → wagtail_cjkcms-25.1.1.dist-info}/entry_points.txt +0 -0
- {wagtail_cjkcms-24.12.3.dist-info → wagtail_cjkcms-25.1.1.dist-info}/top_level.txt +0 -0
cjkcms/__init__.py
CHANGED
cjkcms/blocks/content_blocks.py
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
Content blocks are for building complex, nested HTML structures that usually
|
3
3
|
contain sub-blocks, and may require javascript to function properly.
|
4
4
|
"""
|
5
|
+
|
5
6
|
from django.utils.translation import gettext_lazy as _
|
6
7
|
from wagtail import blocks
|
7
8
|
from wagtail.documents.blocks import DocumentChooserBlock
|
@@ -180,15 +181,6 @@ class NavBaseLinkBlock(BaseBlock):
|
|
180
181
|
required=False,
|
181
182
|
label=_("Image"),
|
182
183
|
)
|
183
|
-
visible_for = blocks.ChoiceBlock(
|
184
|
-
choices=cms_settings.CJKCMS_AUTH_VISIBILITY_CHOICES,
|
185
|
-
default=cms_settings.CJKCMS_AUTH_VISIBILITY_DEFAULT,
|
186
|
-
required=False,
|
187
|
-
label=_("Item visibility"),
|
188
|
-
help_text=_(
|
189
|
-
"DEPRECATED. Use the visibility options in the `Advanced Settings`. "
|
190
|
-
),
|
191
|
-
)
|
192
184
|
|
193
185
|
|
194
186
|
class NavExternalLinkBlock(NavBaseLinkBlock):
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# Generated by Django 5.1.4 on 2024-12-31 20:17
|
2
|
+
|
3
|
+
from django.db import migrations, models
|
4
|
+
|
5
|
+
|
6
|
+
class Migration(migrations.Migration):
|
7
|
+
|
8
|
+
dependencies = [
|
9
|
+
('cjkcms', '0022_cjkcmspage_breadcrumb_label_and_more'),
|
10
|
+
]
|
11
|
+
|
12
|
+
operations = [
|
13
|
+
migrations.AlterField(
|
14
|
+
model_name='navbar',
|
15
|
+
name='language',
|
16
|
+
field=models.CharField(blank=True, choices=[], default='_all_', help_text='Select a language to limit display to specific locale.', max_length=10, verbose_name='Show in language'),
|
17
|
+
),
|
18
|
+
]
|
@@ -253,13 +253,39 @@ License: https://github.com/coderedcorp/coderedcms/blob/dev/LICENSE
|
|
253
253
|
}
|
254
254
|
|
255
255
|
.-fixed-img-offset {
|
256
|
-
margin-top:
|
256
|
+
margin-top: 104px;
|
257
257
|
}
|
258
258
|
|
259
259
|
.-fixed-offset {
|
260
|
-
margin-top:
|
260
|
+
margin-top: 104px;
|
261
261
|
}
|
262
262
|
|
263
|
+
.cjkcms-navbar-center-fixed-img-offset {
|
264
|
+
margin-top: 175px;
|
265
|
+
}
|
266
|
+
|
267
|
+
.cjkcms-navbar-center-fixed-offset {
|
268
|
+
margin-top: 104px;
|
269
|
+
}
|
270
|
+
|
271
|
+
.cjkcms-navbar-center {
|
272
|
+
text-align: center;
|
273
|
+
}
|
274
|
+
|
275
|
+
.cjkcms-navbar-center .navbar-collapse {
|
276
|
+
justify-content: center;
|
277
|
+
}
|
278
|
+
|
279
|
+
.cjkcms-navbar-center .navbar-brand {
|
280
|
+
margin: 0;
|
281
|
+
}
|
282
|
+
|
283
|
+
.cjkcms-navbar-center .navbar-brand img {
|
284
|
+
height: 150px;
|
285
|
+
width: auto;
|
286
|
+
}
|
287
|
+
|
288
|
+
|
263
289
|
[class^="container"] [class^="container"] {
|
264
290
|
width: 100%;
|
265
291
|
padding: 0;
|
@@ -1,61 +1,56 @@
|
|
1
1
|
{% load cjkcms_tags wagtailcore_tags wagtailimages_tags %}
|
2
2
|
|
3
3
|
{% block menu_item %}
|
4
|
-
{%
|
5
|
-
{%
|
6
|
-
|
7
|
-
{%
|
8
|
-
<
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
4
|
+
{% if value.page.live or value.link or value.document %}
|
5
|
+
{% is_menu_item_dropdown value as has_dropdown %}
|
6
|
+
<li class="{{liclass}} {% if has_dropdown %}dropdown{% endif %}">
|
7
|
+
{% is_active_page page value.page as is_active_url %}
|
8
|
+
<a href="{% block url %}#{% endblock %}"
|
9
|
+
{% if value.settings.custom_id %}id="{{value.settings.custom_id}}"{% endif %}
|
10
|
+
class="{{aclass}} {% if has_dropdown %}dropdown-toggle{% endif %}
|
11
|
+
{% if is_active_url %}active{% endif %}
|
12
|
+
{{value.settings.custom_css_class}}"
|
13
|
+
{% if has_dropdown %}data-bs-toggle="dropdown"
|
14
|
+
data-mdb-dropdown-init
|
15
|
+
data-mdb-ripple-init
|
16
|
+
role="button"
|
17
|
+
aria-haspopup="true"
|
18
|
+
aria-expanded="false"
|
19
|
+
{% endif %}
|
20
|
+
{% if ga_event_label %}
|
21
|
+
data-ga-event-label="{{ ga_event_label }}"
|
22
|
+
{% endif %}
|
23
|
+
{% if ga_event_category %}
|
24
|
+
data-ga-event-category="{{ ga_event_category }}"
|
25
|
+
{% endif %}
|
26
|
+
>
|
27
|
+
{% if value.image %}
|
28
|
+
{% image value.image max-200x200 as img %}
|
29
|
+
<img src="{{img.url}}" class="w-100" alt="{{img.image.title}}"/>
|
30
|
+
{% elif value.display_text %}
|
31
|
+
{% link_display value.display_text as dt %}
|
32
|
+
{{dt|safe}}
|
33
|
+
{% elif value.page %}
|
34
|
+
{{value.page.title}}
|
35
|
+
{% elif value.document %}
|
36
|
+
{{value.document.title}}
|
21
37
|
{% endif %}
|
22
|
-
|
23
|
-
data-ga-event-label="{{ ga_event_label }}"
|
24
|
-
{% endif %}
|
25
|
-
{% if ga_event_category %}
|
26
|
-
data-ga-event-category="{{ ga_event_category }}"
|
27
|
-
{% endif %}
|
28
|
-
>
|
29
|
-
{% if value.image %}
|
30
|
-
{% image value.image max-200x200 as img %}
|
31
|
-
<img src="{{img.url}}" class="w-100" alt="{{img.image.title}}"/>
|
32
|
-
{% elif value.display_text %}
|
33
|
-
{% link_display value.display_text as dt %}
|
34
|
-
{{dt|safe}}
|
35
|
-
{% elif value.page %}
|
36
|
-
{{value.page.title}}
|
37
|
-
{% elif value.document %}
|
38
|
-
{{value.document.title}}
|
39
|
-
{% endif %}
|
40
|
-
</a>
|
38
|
+
</a>
|
41
39
|
|
42
40
|
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
41
|
+
{% if has_dropdown %}
|
42
|
+
<ul class="dropdown-menu">
|
43
|
+
{% for sub_link in value.sub_links %}
|
44
|
+
{% include_block sub_link with liclass="" aclass="dropdown-item" %}
|
45
|
+
{% endfor %}
|
46
|
+
{% if value.show_child_links %}
|
47
|
+
{% for child in value.page.specific.get_index_children %}
|
48
|
+
{% is_active_page page child as is_active_child %}
|
49
|
+
<li><a class="dropdown-item {% if is_active_child %}active{% endif %}" href="{% pageurl child %}">{{child.title}}</a></li>
|
47
50
|
{% endfor %}
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
{% endif %}
|
54
|
-
</ul>
|
55
|
-
{% endif %} {# has_dropdown #}
|
56
|
-
</li>
|
57
|
-
{% endif %} {# value.page.live or value.link or value.document #}
|
58
|
-
{% else %} {# csi #}
|
59
|
-
{# NO SHOW #}
|
60
|
-
{% endif %} {# csi #}
|
51
|
+
{% endif %}
|
52
|
+
</ul>
|
53
|
+
{% endif %} {# has_dropdown #}
|
54
|
+
</li>
|
55
|
+
{% endif %} {# value.page.live or value.link or value.document #}
|
61
56
|
{% endblock %}
|
@@ -50,7 +50,7 @@
|
|
50
50
|
{% endif %}
|
51
51
|
|
52
52
|
{% if settings.cjkcms.LayoutSettings.navbar_search %}
|
53
|
-
{% include "cjkcms/snippets/
|
53
|
+
{% include "cjkcms/snippets/navbar_search_button.html" %}
|
54
54
|
{% endif %}
|
55
55
|
</div>
|
56
56
|
|
@@ -62,11 +62,7 @@
|
|
62
62
|
</div><!-- /.container -->
|
63
63
|
{% endif %}
|
64
64
|
|
65
|
-
{#
|
66
|
-
{% if settings.cjkcms.LayoutSettings.
|
67
|
-
|
68
|
-
|
69
|
-
{% else %}
|
70
|
-
<div class="{{settings.cjkcms.LayoutSettings.navbar_format}}-fixed-offset {{settings.cjkcms.LayoutSettings.navbar_collapse_mode}}"></div>
|
71
|
-
{% endif %}
|
72
|
-
{% endif %}
|
65
|
+
{# Search Modal must be injected outside of the nav, because if the nav is fixed/sticky it breaks the modal #}
|
66
|
+
{% if settings.cjkcms.LayoutSettings.navbar_search and "popup" in settings.cjkcms.LayoutSettings.search_format %}
|
67
|
+
{% include "cjkcms/snippets/navbar_search_modal.html" %}
|
68
|
+
{% endif %}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
{% load wagtailcore_tags cjkcms_tags django_bootstrap5 i18n %}
|
2
|
+
<form action="{% url 'cjkcms_search' %}" method="GET" class="row row-cols-lg-auto g-3 align-items-center">
|
3
|
+
{% csrf_token %}
|
4
|
+
{% get_searchform request as form %}
|
5
|
+
{% bootstrap_form_errors form type='non_fields' %}
|
6
|
+
{% if settings.cjkcms.LayoutSettings.search_format == "" or settings.cjkcms.LayoutSettings.search_format|slice:":3" == "box" %}
|
7
|
+
{% bootstrap_field form.s layout='inline' show_label=False %}
|
8
|
+
{% endif %}
|
9
|
+
{% if "button" in settings.cjkcms.LayoutSettings.search_format %}
|
10
|
+
<button type="button" class="{{ settings.cjkcms.LayoutSettings.searchbutton_class }}"
|
11
|
+
{% if 'popup' in settings.cjkcms.LayoutSettings.search_format %}
|
12
|
+
data-mdb-ripple-init data-mdb-modal-init data-mdb-target="#searchModal"
|
13
|
+
data-bs-toggle="modal" data-bs-target="#searchModal"
|
14
|
+
{% endif %}
|
15
|
+
>{{ settings.cjkcms.LayoutSettings.searchbutton_label | richtext }}</button>
|
16
|
+
{% endif %}
|
17
|
+
|
18
|
+
</form>
|
@@ -0,0 +1,34 @@
|
|
1
|
+
{% load wagtailcore_tags cjkcms_tags django_bootstrap5 i18n %}
|
2
|
+
|
3
|
+
|
4
|
+
<form action="{% url 'cjkcms_search' %}" method="GET" class="row row-cols-lg-auto g-3 align-items-center">
|
5
|
+
{% csrf_token %}
|
6
|
+
{% get_searchform request as form %}
|
7
|
+
{% bootstrap_form_errors form type='non_fields' %}
|
8
|
+
<div id="searchModal" class="modal fade" tabindex="-1" aria-labelledby="searchModalLabel" aria-hidden="true">
|
9
|
+
<div class="modal-dialog">
|
10
|
+
<div class="modal-content">
|
11
|
+
<div class="modal-header">
|
12
|
+
<h5 class="modal-title" id="searchModalLabel">Search</h5>
|
13
|
+
<button type="button" class="btn-close" data-bs-dismiss="modal" data-mdb-dismiss="modal" aria-label="Close"></button>
|
14
|
+
</div>
|
15
|
+
<div class="modal-body">
|
16
|
+
{% bootstrap_form form layout='inline' %}
|
17
|
+
</div>
|
18
|
+
<div class="modal-footer">
|
19
|
+
<button type="submit" class="{{ settings.cjkcms.LayoutSettings.searchbutton_class }}">
|
20
|
+
{{ settings.cjkcms.LayoutSettings.searchbutton_label | richtext }}
|
21
|
+
</button>
|
22
|
+
</div>
|
23
|
+
</div>
|
24
|
+
</div>
|
25
|
+
</div>
|
26
|
+
<script>
|
27
|
+
var myModal = document.getElementById('searchModal')
|
28
|
+
var myInput = document.getElementById('id_s')
|
29
|
+
|
30
|
+
myModal.addEventListener('shown.bs.modal', function () {
|
31
|
+
myInput.focus()
|
32
|
+
})
|
33
|
+
</script>
|
34
|
+
</form>
|
@@ -132,12 +132,25 @@ def get_pictures(collection_id, tag=None):
|
|
132
132
|
@register.simple_tag(takes_context=True)
|
133
133
|
def get_navbar_css(context):
|
134
134
|
layout = LayoutSettings.for_request(context["request"])
|
135
|
-
fixed = "
|
135
|
+
fixed = "sticky-top" if layout.navbar_fixed else ""
|
136
|
+
|
137
|
+
# if layout.navba_class is not set, but layout.navbar_fixed is set,
|
138
|
+
# we need a background color for the navbar to protect from overlapping
|
139
|
+
# content below when scrolling. So, try to guess the navbar class:
|
140
|
+
# if layout.color_scheme is set, use that, else use "navbar-light bg-light"
|
141
|
+
if not layout.navbar_class and layout.navbar_fixed:
|
142
|
+
if layout.color_scheme:
|
143
|
+
layout.navbar_class = (
|
144
|
+
f"navbar-{layout.color_scheme} bg-{layout.color_scheme}"
|
145
|
+
)
|
146
|
+
else:
|
147
|
+
layout.navbar_class = "navbar-light bg-light"
|
148
|
+
|
136
149
|
return " ".join(
|
137
150
|
[
|
138
151
|
fixed,
|
139
152
|
layout.navbar_collapse_mode,
|
140
|
-
layout.color_scheme,
|
153
|
+
# layout.color_scheme,
|
141
154
|
layout.navbar_format,
|
142
155
|
layout.navbar_class,
|
143
156
|
]
|
@@ -322,4 +335,4 @@ def is_not_page(model):
|
|
322
335
|
|
323
336
|
@register.filter(name="not_starts_with")
|
324
337
|
def not_starts_with(value, arg):
|
325
|
-
return not value.startswith(arg)
|
338
|
+
return not value.startswith(arg)
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
cjkcms/.DS_Store,sha256=cYcT7MpEwyMj1-CAvcue4ODbL87U2KGsmN7HYD4O8SY,6148
|
2
|
-
cjkcms/__init__.py,sha256=
|
2
|
+
cjkcms/__init__.py,sha256=Gd5b9OJXHXfK7Yt9rNDp_IWo2PAad3jaOmD2knTL7Zo,272
|
3
3
|
cjkcms/apps.py,sha256=VA5Z1YerImetvN8KsjPTMSn1fSo6O1JkBJdK5y5ubJY,173
|
4
4
|
cjkcms/fields.py,sha256=dE0DuNIjX7jhA-5GjSmR2l66EDH2kq3vuxL9WyRALCY,3191
|
5
5
|
cjkcms/forms.py,sha256=_uu_FR8odz40lD-Rmw0tlK7-xxxa8THHfV2-1ZJYsIM,361
|
@@ -17,7 +17,7 @@ cjkcms/bin/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
17
17
|
cjkcms/bin/cjkcms.py,sha256=i11hhB11COQhTk05y7mkeIkUYcFjhI8-QxLkN3tCxgg,5763
|
18
18
|
cjkcms/blocks/__init__.py,sha256=a54EtWyH8UPqszlVEeOtFCvBW2WmbaW1vR4sZuN9Hf0,3542
|
19
19
|
cjkcms/blocks/base_blocks.py,sha256=uKp6QO3iOPT4P0H0yOumvL7faPvLQK9Dj-D8iqlvqQ4,11616
|
20
|
-
cjkcms/blocks/content_blocks.py,sha256
|
20
|
+
cjkcms/blocks/content_blocks.py,sha256=-bIh3BCNYx0N7iK3mpfnLOzIsSMItgpLeC9Cqg-_dTc,9759
|
21
21
|
cjkcms/blocks/html_blocks.py,sha256=rXdR1uxFYDYjOXpxndItxacWstiME8CdqZgB6d5qAYE,9543
|
22
22
|
cjkcms/blocks/layout_blocks.py,sha256=n2oVyL-ZQQaEA00HU6YraR59YF065o-OK7WuAahGuiw,3406
|
23
23
|
cjkcms/blocks/searchable_html_block.py,sha256=i1rWv4vwwvZ9fxkASwPKl87-TqVHkXOFyohH3ve7pYk,171
|
@@ -56,6 +56,7 @@ cjkcms/migrations/0019_layoutsettings_searchbox_input_class_and_more.py,sha256=S
|
|
56
56
|
cjkcms/migrations/0020_socialmediasettings_github_and_more.py,sha256=flCSiw6wB32wsxSln2NA66zWkxrJLhNfL1O3UInH2to,1044
|
57
57
|
cjkcms/migrations/0021_remove_layoutsettings_navbar_color_scheme_and_more.py,sha256=lOOyu3QHjnjZY3HwXWCvUBxngm-t_sk4TvuxZ2Cq_j4,2723
|
58
58
|
cjkcms/migrations/0022_cjkcmspage_breadcrumb_label_and_more.py,sha256=UqXcsDPMsJOewtU3aTl1R4ZE5I45ykiIEepQBALzno0,812
|
59
|
+
cjkcms/migrations/0023_alter_navbar_language.py,sha256=TnMs5fzf-PmirNn6CgYh5pUwwHhaYKPDCjqnZqrj8Ok,547
|
59
60
|
cjkcms/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
60
61
|
cjkcms/models/__init__.py,sha256=f99GmxfFxGtQl8JvZFz8rAtklCIesLoSccyhhi2xgPU,232
|
61
62
|
cjkcms/models/admin_sidebar.py,sha256=Q8jdlIY1fBxUq8fygYdmOLjDwIRs3rFO0Mze9e2STpM,752
|
@@ -148,7 +149,7 @@ cjkcms/static/cjkcms/bi/fonts/bootstrap-icons.woff2,sha256=z-RbmB0bkbFzNho0z85fY
|
|
148
149
|
cjkcms/static/cjkcms/css/cjkcms-admin.css,sha256=I_ca37IMgYbh75CrhRenPvu3TzMVFgmDO2246fGijkI,846
|
149
150
|
cjkcms/static/cjkcms/css/cjkcms-custom-theme-disabled.css,sha256=n176w4XXEO7MdisDllr8_6pVmyRAEQM7QbAPvSVU5YU,2432
|
150
151
|
cjkcms/static/cjkcms/css/cjkcms-editor.css,sha256=rqUeJtq7TNyNpBvSkTOKzpFMUZ-Vh3K075EcmAvG05Q,1104
|
151
|
-
cjkcms/static/cjkcms/css/cjkcms-front.css,sha256=
|
152
|
+
cjkcms/static/cjkcms/css/cjkcms-front.css,sha256=s_fkt-YKud6BuhKYtAW13EfSKKU3x_HcnVnMuHyhgzo,5316
|
152
153
|
cjkcms/static/cjkcms/images/avatars/default.png,sha256=f8QXRtZ1j3s2CItnnL8XbbhgfW2yPHKnijwG3d5qdb0,535
|
153
154
|
cjkcms/static/cjkcms/images/avatars/default.svg,sha256=kVYNxHtkb6nHbTCXyDG3qvS_-IgS9PknIf2I8KI9MrE,384
|
154
155
|
cjkcms/static/cjkcms/images/icons/calendar-day.svg,sha256=S6Wk7QnGUEkSzabH8ob5Vqoum1MBRNuQ4imz-in9n6Y,581
|
@@ -189,7 +190,7 @@ cjkcms/templates/cjkcms/blocks/accordion_block.html,sha256=9gsMZMflXqdYcFVqf8YOs
|
|
189
190
|
cjkcms/templates/cjkcms/blocks/article_block_card.html,sha256=37Xb0XNGVSyWP8gXVGh742eZmW-3hFSmEAfCe5QOrvo,974
|
190
191
|
cjkcms/templates/cjkcms/blocks/article_masonry_card.html,sha256=rW1fDJrERAw_1u391An7F8mvqmrvM2xLcXS9gAgfwuM,1132
|
191
192
|
cjkcms/templates/cjkcms/blocks/base_block.html,sha256=i1iRaLNqVF5Cd_Tv56TbXrA8uBCChnRMRagN047Rx2I,188
|
192
|
-
cjkcms/templates/cjkcms/blocks/base_link_block.html,sha256=
|
193
|
+
cjkcms/templates/cjkcms/blocks/base_link_block.html,sha256=3SBZGZ6_kn2NGWK8U2Uri_0Kqh8YCdjmGSSlMXF8TbQ,2336
|
193
194
|
cjkcms/templates/cjkcms/blocks/button_block.html,sha256=skwQN6x0FWBYGEQbX1hIg1prgO0AarmzjzdsjmPyvdg,875
|
194
195
|
cjkcms/templates/cjkcms/blocks/card_block.html,sha256=Z5wzPM7-X3QWx5B_CAO2e5ei9OyNwUD4m4h_HV2Bj5c,746
|
195
196
|
cjkcms/templates/cjkcms/blocks/card_blurb.html,sha256=QUIK1Xv7cIvTA17wXSp0FKCSobQhBWqLqPIWMNvd2u8,856
|
@@ -298,9 +299,10 @@ cjkcms/templates/cjkcms/snippets/breadcrumbs.html,sha256=3flWNTJ568V4l9HTuYK5vZ7
|
|
298
299
|
cjkcms/templates/cjkcms/snippets/footer.html,sha256=_QUtV_LHgGjh-XLzw5Fd_Lxdrx9on5G0luFaa6oirB0,430
|
299
300
|
cjkcms/templates/cjkcms/snippets/frontend_assets.html,sha256=2q24FFzOiM2USJiI1tuNTdJZGvRQnMPjAwTA0AlGNiU,1656
|
300
301
|
cjkcms/templates/cjkcms/snippets/frontend_scripts.html,sha256=kO3lpKZylriXj27ff6ubtDXkpqOwqSZM256iM6cCuHM,510
|
301
|
-
cjkcms/templates/cjkcms/snippets/navbar.html,sha256=
|
302
|
+
cjkcms/templates/cjkcms/snippets/navbar.html,sha256=wdF_eJMuHf2sdUMCeINs48FmjrcisNej55jQ8M4ZJXg,2828
|
302
303
|
cjkcms/templates/cjkcms/snippets/navbar_lang_selector.html,sha256=sn7KLDentGOsMZ9CNAxdAGLYO3a_mYfSUhJ6iZzteOE,836
|
303
|
-
cjkcms/templates/cjkcms/snippets/
|
304
|
+
cjkcms/templates/cjkcms/snippets/navbar_search_button.html,sha256=yV6xIWQ3_BdrTEPVp3j0WKqChPui7oC0Zl3C2fUrpes,1075
|
305
|
+
cjkcms/templates/cjkcms/snippets/navbar_search_modal.html,sha256=dcFnSw9FjDQWoa_wilUXOUd5CkpjpyOyuqzhXE5sEPk,1474
|
304
306
|
cjkcms/templates/cjkcms/snippets/social_media.html,sha256=63Yd0X5I5WhshRlv23H6Hy8e2rBUnrzXedTP5HqP3lE,330
|
305
307
|
cjkcms/templates/cjkcms/snippets/social_media_icons.html,sha256=0xR9CdZEhB1hm52LGn1kKCtx4rSl8nO4DPwPua-Oq3M,2829
|
306
308
|
cjkcms/templates/cjkcms/snippets/social_media_nav_block.html,sha256=1eavf1UyigPkVgrHMQ3kgfnaEvzXnF22J-YxK5hshn0,173
|
@@ -315,7 +317,7 @@ cjkcms/templates/wagtailadmin/shared/cr_main_nav_2fix.html,sha256=BAhkDE8_8KbhUO
|
|
315
317
|
cjkcms/templates/wagtailadmin/tables/thumbnail_cell.html,sha256=RzMT-tBnnDOgL-zexKanZTTpCEX1bMybFL2p_zvOEV4,578
|
316
318
|
cjkcms/templatetags/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
317
319
|
cjkcms/templatetags/auth_extras.py,sha256=IIxQ5n9FaQVZmhW-yW1XM5p2OjIemtqVoX-O-UcCns8,327
|
318
|
-
cjkcms/templatetags/cjkcms_tags.py,sha256=
|
320
|
+
cjkcms/templatetags/cjkcms_tags.py,sha256=hijLNrcc-ORLe88cyQzjtQW2PjbCvH5CEsYr9p5UT7U,9754
|
319
321
|
cjkcms/templatetags/friendly_loader.py,sha256=Zwopb9NNNN6IuDJCMFlwKuhmJC0hi4uTPEZSAxeakYY,4962
|
320
322
|
cjkcms/templatetags/gravatar.py,sha256=JG5MB6HUFso15J8gZ_te5FTMYAuo4km8rzMKKvLLh-E,1127
|
321
323
|
cjkcms/templatetags/txtutils_tags.py,sha256=UMojdiLt6Jpijc-2QLusPc-qXX9bqFZf0JbqqPsfnWQ,1223
|
@@ -337,17 +339,23 @@ cjkcms/tests/test_webpage.py,sha256=PvXeXbawigObsdi_YpQNuHFx3Lqi6wM3ktVHZsxYbr4,
|
|
337
339
|
cjkcms/tests/urls.py,sha256=_ksKz7HBHJtQK3HxC9cmJMX_dt6n4alx3FXjcL-cu28,850
|
338
340
|
cjkcms/tests/media/images/test.original.png,sha256=nLMtadXZhXXbt6DTm5enrysKX7cfWiUudtbS2X7mSzI,1938
|
339
341
|
cjkcms/tests/media/images/test_6mZL9NZ.original.png,sha256=nLMtadXZhXXbt6DTm5enrysKX7cfWiUudtbS2X7mSzI,1938
|
342
|
+
cjkcms/tests/media/images/test_OSPIkp8.original.png,sha256=nLMtadXZhXXbt6DTm5enrysKX7cfWiUudtbS2X7mSzI,1938
|
343
|
+
cjkcms/tests/media/images/test_YBCJmYS.original.png,sha256=nLMtadXZhXXbt6DTm5enrysKX7cfWiUudtbS2X7mSzI,1938
|
344
|
+
cjkcms/tests/media/images/test_q0QJ4UA.original.png,sha256=nLMtadXZhXXbt6DTm5enrysKX7cfWiUudtbS2X7mSzI,1938
|
340
345
|
cjkcms/tests/media/original_images/test.png,sha256=xJDvcufuQ-AM1HT-zgMxYEORko4rdK_8MSHU-puJNW8,2306
|
341
346
|
cjkcms/tests/media/original_images/test_6mZL9NZ.png,sha256=xJDvcufuQ-AM1HT-zgMxYEORko4rdK_8MSHU-puJNW8,2306
|
347
|
+
cjkcms/tests/media/original_images/test_OSPIkp8.png,sha256=xJDvcufuQ-AM1HT-zgMxYEORko4rdK_8MSHU-puJNW8,2306
|
348
|
+
cjkcms/tests/media/original_images/test_YBCJmYS.png,sha256=xJDvcufuQ-AM1HT-zgMxYEORko4rdK_8MSHU-puJNW8,2306
|
349
|
+
cjkcms/tests/media/original_images/test_q0QJ4UA.png,sha256=xJDvcufuQ-AM1HT-zgMxYEORko4rdK_8MSHU-puJNW8,2306
|
342
350
|
cjkcms/tests/testapp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
343
351
|
cjkcms/tests/testapp/apps.py,sha256=EwyrkWTu-_OoLoERBTlqkqfPIIrEsbHY3kbCxgrv_7I,169
|
344
352
|
cjkcms/tests/testapp/models.py,sha256=Rkn9KHrGbLzrKjP4y_gwtXma1_fJOZNU7ekb689fJEU,488
|
345
353
|
cjkcms/tests/testapp/migrations/0001_initial.py,sha256=hxr-r-42IQEGr_OsZkxXXCW7wbxAHuI_OLOkn-seJUU,4942
|
346
354
|
cjkcms/tests/testapp/migrations/0002_create_homepage.py,sha256=EfsxHh1oyqwahW9RVpTvaRDx_CHtFSJQahKEr7XC5Gg,1999
|
347
355
|
cjkcms/tests/testapp/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
348
|
-
wagtail_cjkcms-
|
349
|
-
wagtail_cjkcms-
|
350
|
-
wagtail_cjkcms-
|
351
|
-
wagtail_cjkcms-
|
352
|
-
wagtail_cjkcms-
|
353
|
-
wagtail_cjkcms-
|
356
|
+
wagtail_cjkcms-25.1.1.dist-info/LICENSE,sha256=KHsCh1fKOZzvcKe1a9h3FlDjTjK_UurO3wHK55TnHHo,1538
|
357
|
+
wagtail_cjkcms-25.1.1.dist-info/METADATA,sha256=OQ5gQBEprn8G9fZmNRYUdY9jsLVFhOJrDtPfMclifTQ,3120
|
358
|
+
wagtail_cjkcms-25.1.1.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
|
359
|
+
wagtail_cjkcms-25.1.1.dist-info/entry_points.txt,sha256=FzoiFENdZ1uebNztyz6GlswkumQspd5VjWbR9MUIH_8,50
|
360
|
+
wagtail_cjkcms-25.1.1.dist-info/top_level.txt,sha256=8wJGOGo1pG5nO5akfcMzA7i3ndj5868I8w35vTT0JJM,7
|
361
|
+
wagtail_cjkcms-25.1.1.dist-info/RECORD,,
|
@@ -1,47 +0,0 @@
|
|
1
|
-
{% load wagtailcore_tags cjkcms_tags django_bootstrap5 i18n %}
|
2
|
-
<form action="{% url 'cjkcms_search' %}" method="GET" class="row row-cols-lg-auto g-3 align-items-center">
|
3
|
-
{% csrf_token %}
|
4
|
-
{% get_searchform request as form %}
|
5
|
-
{% bootstrap_form_errors form type='non_fields' %}
|
6
|
-
{% if settings.cjkcms.LayoutSettings.search_format == "" or settings.cjkcms.LayoutSettings.search_format|slice:":3" == "box" %}
|
7
|
-
{% bootstrap_field form.s layout='inline' show_label=False %}
|
8
|
-
{% endif %}
|
9
|
-
{% if "button" in settings.cjkcms.LayoutSettings.search_format %}
|
10
|
-
<button type="button" class="{{ settings.cjkcms.LayoutSettings.searchbutton_class }}"
|
11
|
-
{% if 'popup' in settings.cjkcms.LayoutSettings.search_format %}
|
12
|
-
data-mdb-toggle="modal" data-bs-toggle="modal"
|
13
|
-
data-bs-target="#search-modal" data-mdb-target="#search-modal"
|
14
|
-
onclick="focusInputField()"
|
15
|
-
{% endif %}
|
16
|
-
>{{ settings.cjkcms.LayoutSettings.searchbutton_label | richtext }}</button>
|
17
|
-
{% endif %}
|
18
|
-
|
19
|
-
{% if "popup" in settings.cjkcms.LayoutSettings.search_format %}
|
20
|
-
<div id="search-modal" class="modal" style="display: none;">
|
21
|
-
<div class="modal-dialog">
|
22
|
-
<div class="modal-content">
|
23
|
-
<div class="modal-header">
|
24
|
-
<h5 class="modal-title">Search</h5>
|
25
|
-
<button type="button" class="btn-close" data-bs-dismiss="modal" data-mdb-dismiss="modal" aria-label="Close"></button>
|
26
|
-
</div>
|
27
|
-
<div class="modal-body">
|
28
|
-
{% bootstrap_form form layout='inline' %}
|
29
|
-
</div>
|
30
|
-
<div class="modal-footer">
|
31
|
-
<button type="submit" class="{{ settings.cjkcms.LayoutSettings.searchbutton_class }}">
|
32
|
-
{{ settings.cjkcms.LayoutSettings.searchbutton_label | richtext }}
|
33
|
-
</button>
|
34
|
-
</div>
|
35
|
-
</div>
|
36
|
-
</div>
|
37
|
-
</div>
|
38
|
-
<script>
|
39
|
-
function focusInputField() {
|
40
|
-
var inputField = document.querySelector('#search-modal input[type="text"]');
|
41
|
-
if (inputField) {
|
42
|
-
inputField.focus();
|
43
|
-
}
|
44
|
-
}
|
45
|
-
</script>
|
46
|
-
{% endif %}
|
47
|
-
</form>
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|