wagtail-cjkcms 24.12.4__py2.py3-none-any.whl → 25.1.2__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 +0 -11
- cjkcms/settings.py +0 -4
- cjkcms/templates/cjkcms/blocks/base_link_block.html +48 -53
- cjkcms/templates/cjkcms/snippets/navbar_search_modal.html +1 -1
- cjkcms/tests/media/images/test_OSPIkp8.original.png +0 -0
- cjkcms/tests/media/original_images/test_OSPIkp8.png +0 -0
- {wagtail_cjkcms-24.12.4.dist-info → wagtail_cjkcms-25.1.2.dist-info}/METADATA +1 -1
- {wagtail_cjkcms-24.12.4.dist-info → wagtail_cjkcms-25.1.2.dist-info}/RECORD +13 -11
- {wagtail_cjkcms-24.12.4.dist-info → wagtail_cjkcms-25.1.2.dist-info}/LICENSE +0 -0
- {wagtail_cjkcms-24.12.4.dist-info → wagtail_cjkcms-25.1.2.dist-info}/WHEEL +0 -0
- {wagtail_cjkcms-24.12.4.dist-info → wagtail_cjkcms-25.1.2.dist-info}/entry_points.txt +0 -0
- {wagtail_cjkcms-24.12.4.dist-info → wagtail_cjkcms-25.1.2.dist-info}/top_level.txt +0 -0
cjkcms/__init__.py
CHANGED
cjkcms/blocks/content_blocks.py
CHANGED
@@ -182,17 +182,6 @@ class NavBaseLinkBlock(BaseBlock):
|
|
182
182
|
label=_("Image"),
|
183
183
|
)
|
184
184
|
|
185
|
-
if cms_settings.CJKCMS_NAVBAR_SHOW_VISIBLE_FOR:
|
186
|
-
visible_for = blocks.ChoiceBlock(
|
187
|
-
choices=cms_settings.CJKCMS_AUTH_VISIBILITY_CHOICES,
|
188
|
-
default=cms_settings.CJKCMS_AUTH_VISIBILITY_DEFAULT,
|
189
|
-
required=False,
|
190
|
-
label=_("Item visibility"),
|
191
|
-
help_text=_(
|
192
|
-
"DEPRECATED. Use the visibility options in the `Advanced Settings`. "
|
193
|
-
),
|
194
|
-
)
|
195
|
-
|
196
185
|
|
197
186
|
class NavExternalLinkBlock(NavBaseLinkBlock):
|
198
187
|
"""
|
cjkcms/settings.py
CHANGED
@@ -485,10 +485,6 @@ class _DefaultSettings:
|
|
485
485
|
CJKCMS_VERSION_MONITOR_TOKEN = "" # blank token = disabled version monitor api
|
486
486
|
CJKCMS_VERSION_MONITOR_ALLOWED_DOMAINS = [] # disallow from any domain by default
|
487
487
|
|
488
|
-
CJKCMS_NAVBAR_SHOW_VISIBLE_FOR = (
|
489
|
-
False # safety fallback for a deprecated and removed feature
|
490
|
-
)
|
491
|
-
|
492
488
|
def __getattribute__(self, attr: str):
|
493
489
|
# First load from Django settings.
|
494
490
|
# If it does not exist, load from _DefaultSettings.
|
@@ -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 %}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{% load wagtailcore_tags cjkcms_tags django_bootstrap5 i18n %}
|
2
2
|
|
3
3
|
|
4
|
-
<form action="{% url 'cjkcms_search' %}" method="GET" class="
|
4
|
+
<form action="{% url 'cjkcms_search' %}" method="GET" class="align-items-center">
|
5
5
|
{% csrf_token %}
|
6
6
|
{% get_searchform request as form %}
|
7
7
|
{% bootstrap_form_errors form type='non_fields' %}
|
Binary file
|
Binary file
|
@@ -1,11 +1,11 @@
|
|
1
1
|
cjkcms/.DS_Store,sha256=cYcT7MpEwyMj1-CAvcue4ODbL87U2KGsmN7HYD4O8SY,6148
|
2
|
-
cjkcms/__init__.py,sha256=
|
2
|
+
cjkcms/__init__.py,sha256=RI73zzmj0s76wmYc4FBSwTWLrcw6x-wH0xtBF9JbySY,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
|
6
6
|
cjkcms/image_formats.py,sha256=d4zRshuybwxSRL8UpBH31dFBr32o4HNexa0ks5PX3TI,1833
|
7
7
|
cjkcms/search_urls.py,sha256=92XkGTJRrQQyA061wWl1l5C0vq6INVJPXOrpcgp3aoU,125
|
8
|
-
cjkcms/settings.py,sha256=
|
8
|
+
cjkcms/settings.py,sha256=ODBpl3Fn3yCX0CYogt0OIGD-2IGaijefwpdZngx3Bnc,20324
|
9
9
|
cjkcms/urls.py,sha256=k5tEHWI4Umi2PWvGdNJ-FZ9OCy6AS3Y2S7k5jNOpgt0,644
|
10
10
|
cjkcms/utils.py,sha256=u4pkPxAwqH3SgyIcmvk7I5L3w-eIcz0Rphmv0Y1DRpA,2006
|
11
11
|
cjkcms/views.py,sha256=NWy3pBBcLUOH6WjEJh03N2sND4oToiyiy6_spgXdUcY,4389
|
@@ -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
|
@@ -190,7 +190,7 @@ cjkcms/templates/cjkcms/blocks/accordion_block.html,sha256=9gsMZMflXqdYcFVqf8YOs
|
|
190
190
|
cjkcms/templates/cjkcms/blocks/article_block_card.html,sha256=37Xb0XNGVSyWP8gXVGh742eZmW-3hFSmEAfCe5QOrvo,974
|
191
191
|
cjkcms/templates/cjkcms/blocks/article_masonry_card.html,sha256=rW1fDJrERAw_1u391An7F8mvqmrvM2xLcXS9gAgfwuM,1132
|
192
192
|
cjkcms/templates/cjkcms/blocks/base_block.html,sha256=i1iRaLNqVF5Cd_Tv56TbXrA8uBCChnRMRagN047Rx2I,188
|
193
|
-
cjkcms/templates/cjkcms/blocks/base_link_block.html,sha256=
|
193
|
+
cjkcms/templates/cjkcms/blocks/base_link_block.html,sha256=3SBZGZ6_kn2NGWK8U2Uri_0Kqh8YCdjmGSSlMXF8TbQ,2336
|
194
194
|
cjkcms/templates/cjkcms/blocks/button_block.html,sha256=skwQN6x0FWBYGEQbX1hIg1prgO0AarmzjzdsjmPyvdg,875
|
195
195
|
cjkcms/templates/cjkcms/blocks/card_block.html,sha256=Z5wzPM7-X3QWx5B_CAO2e5ei9OyNwUD4m4h_HV2Bj5c,746
|
196
196
|
cjkcms/templates/cjkcms/blocks/card_blurb.html,sha256=QUIK1Xv7cIvTA17wXSp0FKCSobQhBWqLqPIWMNvd2u8,856
|
@@ -302,7 +302,7 @@ cjkcms/templates/cjkcms/snippets/frontend_scripts.html,sha256=kO3lpKZylriXj27ff6
|
|
302
302
|
cjkcms/templates/cjkcms/snippets/navbar.html,sha256=wdF_eJMuHf2sdUMCeINs48FmjrcisNej55jQ8M4ZJXg,2828
|
303
303
|
cjkcms/templates/cjkcms/snippets/navbar_lang_selector.html,sha256=sn7KLDentGOsMZ9CNAxdAGLYO3a_mYfSUhJ6iZzteOE,836
|
304
304
|
cjkcms/templates/cjkcms/snippets/navbar_search_button.html,sha256=yV6xIWQ3_BdrTEPVp3j0WKqChPui7oC0Zl3C2fUrpes,1075
|
305
|
-
cjkcms/templates/cjkcms/snippets/navbar_search_modal.html,sha256=
|
305
|
+
cjkcms/templates/cjkcms/snippets/navbar_search_modal.html,sha256=_9jUjJsk2Q1Ya05b5OguZENZl7XGgqjoMe-YDo3cOD4,1449
|
306
306
|
cjkcms/templates/cjkcms/snippets/social_media.html,sha256=63Yd0X5I5WhshRlv23H6Hy8e2rBUnrzXedTP5HqP3lE,330
|
307
307
|
cjkcms/templates/cjkcms/snippets/social_media_icons.html,sha256=0xR9CdZEhB1hm52LGn1kKCtx4rSl8nO4DPwPua-Oq3M,2829
|
308
308
|
cjkcms/templates/cjkcms/snippets/social_media_nav_block.html,sha256=1eavf1UyigPkVgrHMQ3kgfnaEvzXnF22J-YxK5hshn0,173
|
@@ -339,10 +339,12 @@ cjkcms/tests/test_webpage.py,sha256=PvXeXbawigObsdi_YpQNuHFx3Lqi6wM3ktVHZsxYbr4,
|
|
339
339
|
cjkcms/tests/urls.py,sha256=_ksKz7HBHJtQK3HxC9cmJMX_dt6n4alx3FXjcL-cu28,850
|
340
340
|
cjkcms/tests/media/images/test.original.png,sha256=nLMtadXZhXXbt6DTm5enrysKX7cfWiUudtbS2X7mSzI,1938
|
341
341
|
cjkcms/tests/media/images/test_6mZL9NZ.original.png,sha256=nLMtadXZhXXbt6DTm5enrysKX7cfWiUudtbS2X7mSzI,1938
|
342
|
+
cjkcms/tests/media/images/test_OSPIkp8.original.png,sha256=nLMtadXZhXXbt6DTm5enrysKX7cfWiUudtbS2X7mSzI,1938
|
342
343
|
cjkcms/tests/media/images/test_YBCJmYS.original.png,sha256=nLMtadXZhXXbt6DTm5enrysKX7cfWiUudtbS2X7mSzI,1938
|
343
344
|
cjkcms/tests/media/images/test_q0QJ4UA.original.png,sha256=nLMtadXZhXXbt6DTm5enrysKX7cfWiUudtbS2X7mSzI,1938
|
344
345
|
cjkcms/tests/media/original_images/test.png,sha256=xJDvcufuQ-AM1HT-zgMxYEORko4rdK_8MSHU-puJNW8,2306
|
345
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
|
346
348
|
cjkcms/tests/media/original_images/test_YBCJmYS.png,sha256=xJDvcufuQ-AM1HT-zgMxYEORko4rdK_8MSHU-puJNW8,2306
|
347
349
|
cjkcms/tests/media/original_images/test_q0QJ4UA.png,sha256=xJDvcufuQ-AM1HT-zgMxYEORko4rdK_8MSHU-puJNW8,2306
|
348
350
|
cjkcms/tests/testapp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
@@ -351,9 +353,9 @@ cjkcms/tests/testapp/models.py,sha256=Rkn9KHrGbLzrKjP4y_gwtXma1_fJOZNU7ekb689fJE
|
|
351
353
|
cjkcms/tests/testapp/migrations/0001_initial.py,sha256=hxr-r-42IQEGr_OsZkxXXCW7wbxAHuI_OLOkn-seJUU,4942
|
352
354
|
cjkcms/tests/testapp/migrations/0002_create_homepage.py,sha256=EfsxHh1oyqwahW9RVpTvaRDx_CHtFSJQahKEr7XC5Gg,1999
|
353
355
|
cjkcms/tests/testapp/migrations/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
354
|
-
wagtail_cjkcms-
|
355
|
-
wagtail_cjkcms-
|
356
|
-
wagtail_cjkcms-
|
357
|
-
wagtail_cjkcms-
|
358
|
-
wagtail_cjkcms-
|
359
|
-
wagtail_cjkcms-
|
356
|
+
wagtail_cjkcms-25.1.2.dist-info/LICENSE,sha256=KHsCh1fKOZzvcKe1a9h3FlDjTjK_UurO3wHK55TnHHo,1538
|
357
|
+
wagtail_cjkcms-25.1.2.dist-info/METADATA,sha256=mA-dMT4EB-kxWHPaNArE4iQWEzC2kmkK9DJhdPNBrmg,3120
|
358
|
+
wagtail_cjkcms-25.1.2.dist-info/WHEEL,sha256=pxeNX5JdtCe58PUSYP9upmc7jdRPgvT0Gm9kb1SHlVw,109
|
359
|
+
wagtail_cjkcms-25.1.2.dist-info/entry_points.txt,sha256=FzoiFENdZ1uebNztyz6GlswkumQspd5VjWbR9MUIH_8,50
|
360
|
+
wagtail_cjkcms-25.1.2.dist-info/top_level.txt,sha256=8wJGOGo1pG5nO5akfcMzA7i3ndj5868I8w35vTT0JJM,7
|
361
|
+
wagtail_cjkcms-25.1.2.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|