j1-template 2021.1.1 → 2021.1.2
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.
- checksums.yaml +4 -4
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +14 -6
- data/_includes/themes/j1/modules/connectors/ads +3 -5
- data/_includes/themes/j1/modules/connectors/analytics +4 -2
- data/_includes/themes/j1/modules/connectors/comments +7 -6
- data/_includes/themes/j1/modules/connectors/translator +3 -4
- data/_includes/themes/j1/modules/navigator/generator.html +2 -38
- data/_includes/themes/j1/modules/navigator/generator.org.html +232 -0
- data/_includes/themes/j1/procedures/global/create_bs_button.proc +64 -22
- data/_includes/themes/j1/procedures/posts/collate_timeline.proc +10 -7
- data/assets/data/panel.html +12 -9
- data/assets/themes/j1/adapter/js/navigator.js +55 -10
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +102 -54
- data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +3 -3
- data/lib/starter_web/_data/blocks/banner.yml +28 -24
- data/lib/starter_web/_data/builder/blog_navigator.yml +5 -1
- data/lib/starter_web/_data/j1_config.yml +2 -2
- data/lib/starter_web/_data/layouts/blog_archive.yml +9 -0
- data/lib/starter_web/_data/layouts/default.yml +16 -26
- data/lib/starter_web/_data/modules/navigator_menu.yml +1 -1
- data/lib/starter_web/_data/resources.yml +4 -1
- data/lib/starter_web/_includes/attributes.asciidoc +1 -1
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/assets/images/modules/attics/christa-dodoo-1920x1280.jpg +0 -0
- data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +0 -6
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +0 -4
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +0 -4
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +0 -4
- data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +0 -4
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +3 -0
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +3 -0
- data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +3 -0
- data/lib/starter_web/index.html +2 -2
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/blog/navigator/archive.html +40 -21
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +40 -22
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +40 -21
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +41 -10
- data/lib/starter_web/pages/public/blog/navigator/index.html +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.org.asciidoc +244 -0
- data/lib/starter_web/pages/public/learn/where_to_go.adoc +0 -16
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2ed0126c99cc3071cfcafcc4327d406fb539da49c343fc20b8734d840e5d39df
|
|
4
|
+
data.tar.gz: 5b7d1fbfa8d720e84453ef58c59330ee5d857bccbbfa31469a62b52a63d27f6a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2d164e0c994ca79e25908973f912e0b4dc95742e67f96b45fbdab54a156175185a4d91ae683a276198d74f8e4d981d59b289de5dc4bb817f8dab10d472784895
|
|
7
|
+
data.tar.gz: b0a651b2a288290e8c2ece079ef587e13f18545e6f4dc0af06cd82511b21185d026ab78c2fa140472bbae67ebac49f49c08067c78a089d1a8132fc655a49b8cf
|
|
@@ -26,6 +26,20 @@
|
|
|
26
26
|
{% comment %} Main
|
|
27
27
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
28
28
|
|
|
29
|
+
<!-- Google Adsense -->
|
|
30
|
+
<script data-ad-client="{{publisher_id}}"
|
|
31
|
+
async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
|
|
32
|
+
</script>
|
|
33
|
+
|
|
34
|
+
{% comment %} to be checked
|
|
35
|
+
--------------------------------------------------------------------------------
|
|
36
|
+
<script data-ad-client="{{publisher_id}}"
|
|
37
|
+
async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
|
|
38
|
+
</script>
|
|
39
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
40
|
+
|
|
41
|
+
{% comment %} to be checked
|
|
42
|
+
--------------------------------------------------------------------------------
|
|
29
43
|
<script data-ad-client="{{publisher_id}}"
|
|
30
44
|
$(document).ready(function() {
|
|
31
45
|
var dependencies_met_page_finished = setInterval (function () {
|
|
@@ -35,12 +49,6 @@
|
|
|
35
49
|
}
|
|
36
50
|
}, 25); // END dependencies_met_page_finished
|
|
37
51
|
</script>
|
|
38
|
-
|
|
39
|
-
{% comment %} to be checked
|
|
40
|
-
--------------------------------------------------------------------------------
|
|
41
|
-
<script data-ad-client="{{publisher_id}}"
|
|
42
|
-
async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js">
|
|
43
|
-
</script>
|
|
44
52
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
45
53
|
|
|
46
54
|
{% comment %} Old Ads code
|
|
@@ -24,16 +24,14 @@
|
|
|
24
24
|
{% assign advertising = site.data.j1_config.advertising.enabled %}
|
|
25
25
|
{% assign advertising_provider = site.data.j1_config.advertising.provider %}
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
{% comment %} Main
|
|
29
28
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
30
|
-
<!-- [INFO ] [j1.modules.connectors.ads ] [ detected advertising (
|
|
29
|
+
<!-- [INFO ] [j1.modules.connectors.ads ] [ detected advertising (j1_config): {{advertising}} ] -->
|
|
31
30
|
<!-- [INFO ] [j1.modules.connectors.ads ] [ detected advertising (page): {{page.advertising}}} ] -->
|
|
32
|
-
<!-- [INFO ] [j1.modules.connectors.ads ] [ detected advertising (provider): {{advertising_provider}}} ] -->
|
|
33
|
-
<!-- [INFO ] [j1.modules.connectors.ads ] [ start processing load region head, layout: {{page.layout}} ] -->
|
|
34
31
|
|
|
35
32
|
{% if advertising and page.advertising %}
|
|
36
|
-
|
|
33
|
+
<!-- [INFO ] [j1.modules.connectors.ads ] [ detected advertising provider (j1_config): {{advertising_provider}}} ] -->
|
|
34
|
+
<!-- [INFO ] [j1.modules.connectors.ads ] [ start processing load region head, layout: {{page.layout}} ] -->
|
|
37
35
|
{% case advertising_provider %}
|
|
38
36
|
{% when "google" %}
|
|
39
37
|
<!-- [INFO ] [j1.modules.connectors.ads ] [ place provider: Google Adsense ] -->
|
|
@@ -27,10 +27,12 @@
|
|
|
27
27
|
|
|
28
28
|
{% comment %} Main
|
|
29
29
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
30
|
+
<!-- [INFO ] [j1.modules.connectors.analytics ] [ detected analytics (j1_config): {{analytics}} ] -->
|
|
31
|
+
<!-- [INFO ] [j1.modules.connectors.analytics ] [ detected analytics (page): {{page.analytics}}} ] -->
|
|
30
32
|
|
|
31
|
-
<!-- [INFO ] [j1.modules.connectors.analytics ] [ start processing load region head, layout: {{page.layout}} ] -->
|
|
32
33
|
{% if analytics and page.analytics %}
|
|
33
|
-
|
|
34
|
+
<!-- [INFO ] [j1.modules.connectors.analytics ] [ detected analytics provider (j1_config): {{analytics_provider}}} ] -->
|
|
35
|
+
<!-- [INFO ] [j1.modules.connectors.analytics ] [ start processing load region head, layout: {{page.layout}} ] -->
|
|
34
36
|
{% case analytics_provider %}
|
|
35
37
|
{% when "google" %}
|
|
36
38
|
<!-- [INFO ] [j1.modules.connectors.analytics ] [ place Google Analytics ] -->
|
|
@@ -26,21 +26,22 @@
|
|
|
26
26
|
|
|
27
27
|
{% comment %} Main
|
|
28
28
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
29
|
+
<!-- [INFO ] [j1.modules.connectors.comments ] [ detected comments (j1_config): {{comments}} ] -->
|
|
30
|
+
<!-- [INFO ] [j1.modules.connectors.comments ] [ detected comments (page): {{page.comments}}} ] -->
|
|
29
31
|
|
|
30
|
-
<!-- [INFO ] [j1.layout.connectors.comments ] [ start processing load region head, layout: {{page.layout}} ] -->
|
|
31
32
|
{% if comments and page.comments %}
|
|
32
|
-
|
|
33
|
+
<!-- [INFO ] [j1.modules.connectors.comments ] [ start processing load region head, layout: {{page.layout}} ] -->
|
|
33
34
|
{% case comment_provider %}
|
|
34
35
|
{% when "disqus" %}
|
|
35
|
-
<!-- [INFO ] [j1.
|
|
36
|
+
<!-- [INFO ] [j1.modules.connectors.comments ] [ place comment provider DISQUS ] -->
|
|
36
37
|
{% include themes/{{site.template.name}}/modules/connectors/comment/disqus.html %}
|
|
37
38
|
{% when "facebook" %}
|
|
38
|
-
<!-- [INFO ] [j1.
|
|
39
|
+
<!-- [INFO ] [j1.modules.connectors.comments ] [ place comment provider FACEBOOK ] -->
|
|
39
40
|
{% include themes/{{site.template.name}}/procedures/provider/comment/facebook.html %}
|
|
40
41
|
{% when "custom" %}
|
|
41
|
-
<!-- [INFO ] [j1.
|
|
42
|
+
<!-- [INFO ] [j1.modules.connectors.comments ] [ place comment provider CUSTOM ] -->
|
|
42
43
|
{% include themes/{{site.template.name}}/procedures/provider/comment/custom-provider.html %}
|
|
43
44
|
{% endcase %}
|
|
44
45
|
|
|
45
46
|
{% endif %}
|
|
46
|
-
<!-- [INFO ] [j1.
|
|
47
|
+
<!-- [INFO ] [j1.modules.connectors.comments ] [ end processing ] -->
|
|
@@ -24,13 +24,13 @@
|
|
|
24
24
|
{% assign translation = site.data.j1_config.translation.enabled %}
|
|
25
25
|
{% assign translation_provider = site.data.j1_config.translation.provider %}
|
|
26
26
|
|
|
27
|
-
|
|
28
27
|
{% comment %} Main
|
|
29
28
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
29
|
+
<!-- [INFO ] [j1.modules.connectors.translation ] [ detected translation (j1_config): {{translation}} ] -->
|
|
30
|
+
<!-- [INFO ] [j1.modules.connectors.translation ] [ detected translation (page): {{page.translation}}} ] -->
|
|
30
31
|
|
|
31
|
-
<!-- [INFO ] [j1.modules.connectors.translator ] [ start processing load region head, layout: {{page.layout}} ] -->
|
|
32
32
|
{% if translation %}
|
|
33
|
-
|
|
33
|
+
<!-- [INFO ] [j1.modules.connectors.translator ] [ start processing load region head, layout: {{page.layout}} ] -->
|
|
34
34
|
{% case translation_provider %}
|
|
35
35
|
{% when "google" %}
|
|
36
36
|
<!-- [INFO ] [j1.modules.connectors.translator ] [ place Google Translator ] -->
|
|
@@ -42,4 +42,3 @@
|
|
|
42
42
|
|
|
43
43
|
{% endif %}
|
|
44
44
|
<!-- [INFO ] [j1.modules.connectors.translator ] [ end processing ] -->
|
|
45
|
-
|
|
@@ -50,23 +50,9 @@
|
|
|
50
50
|
{% assign navigator_defaults = site.data.modules.defaults.navigator.defaults %}
|
|
51
51
|
{% assign navigator_settings = site.data.modules.navigator.settings %}
|
|
52
52
|
|
|
53
|
-
{% comment %} Cookie Consent module NOT used anymore
|
|
54
|
-
--------------------------------------------------------------------------------
|
|
55
|
-
{% assign consent_defaults = site.data.modules.defaults.cookie_consent.defaults %}
|
|
56
|
-
{% assign consent_settings = site.data.modules.cookie_consent.settings %}
|
|
57
|
-
{% assign cookie_consent_options = consent_defaults | merge: consent_settings %}
|
|
58
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
|
59
|
-
|
|
60
53
|
{% assign cookiebar_defaults = site.data.modules.defaults.cookiebar.defaults %}
|
|
61
54
|
{% assign cookiebar_settings = site.data.modules.cookiebar.settings %}
|
|
62
55
|
|
|
63
|
-
{% comment %} SSM module NOT used anymore
|
|
64
|
-
--------------------------------------------------------------------------------
|
|
65
|
-
{% assign ssm_settings = modules.ssm.settings %}
|
|
66
|
-
{% assign ssm_defaults = modules.defaults.ssm.defaults %}
|
|
67
|
-
{% assign ssm_options = ssm_defaults | merge: ssm_settings %}
|
|
68
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
|
69
|
-
|
|
70
56
|
{% comment %} Set config data
|
|
71
57
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
72
58
|
{% assign nav_bar_defaults = navigator_defaults.nav_bar %}
|
|
@@ -92,7 +78,6 @@
|
|
|
92
78
|
{% assign auth_manager_options = authentication_options.j1_auth %}
|
|
93
79
|
{% assign nav_mmenu_options = nav_mmenu_defaults | merge: nav_mmenu_settings %}
|
|
94
80
|
|
|
95
|
-
|
|
96
81
|
{% comment %} Set navBarOptions
|
|
97
82
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
98
83
|
{% assign brand_position = nav_bar_options.brand_position %}
|
|
@@ -126,16 +111,7 @@
|
|
|
126
111
|
{% comment %} Main
|
|
127
112
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
128
113
|
|
|
129
|
-
{% comment %} Generate
|
|
130
|
-
--------------------------------------------------------------------------------
|
|
131
|
-
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ check for ssm ] -->
|
|
132
|
-
{% if ssm_options.enabled %}
|
|
133
|
-
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place ssm container for AJAX load ] -->
|
|
134
|
-
<nav id="ssm-container" class="ssm-btns-right ssm-anim-slide no-r-text"></nav>
|
|
135
|
-
{% endif %}
|
|
136
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
|
137
|
-
|
|
138
|
-
{% comment %} Generate TopSearch container
|
|
114
|
+
{% comment %} Generate search container
|
|
139
115
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
140
116
|
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ check for topsearch ] -->
|
|
141
117
|
{% if topsearch_options.enabled %}
|
|
@@ -148,19 +124,8 @@
|
|
|
148
124
|
-------------------------------------------------------------------------------- {% endcomment %}
|
|
149
125
|
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ start processing: mmenu ] -->
|
|
150
126
|
{% for item in nav_mmenu_options.menus %}
|
|
151
|
-
<!-- [INFO ] [j1.modules.navigator.generator.html ] [
|
|
152
|
-
|
|
153
|
-
{% comment %} Condition DISABLED for testing
|
|
154
|
-
--------------------------------------------------------------------------------
|
|
155
|
-
{% if item.menu.enabled %}
|
|
156
|
-
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place mmenu container for AJAX load ] -->
|
|
127
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place mmenu container {{item.menu.xhr_container_id}} for AJAX load ] -->
|
|
157
128
|
<nav id="{{item.menu.xhr_container_id}}"></nav>
|
|
158
|
-
{% endif %}
|
|
159
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
|
160
|
-
|
|
161
|
-
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place mmenu container for AJAX load ] -->
|
|
162
|
-
<nav id="{{item.menu.xhr_container_id}}"></nav>
|
|
163
|
-
|
|
164
129
|
{% endfor %}
|
|
165
130
|
|
|
166
131
|
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ start processing: navigation ] -->
|
|
@@ -168,7 +133,6 @@
|
|
|
168
133
|
|
|
169
134
|
{% comment %} Place brand image
|
|
170
135
|
------------------------------------------------------------------------------ {% endcomment %}
|
|
171
|
-
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ end processing: sidebar ] -->
|
|
172
136
|
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ start processing: main menue ] -->
|
|
173
137
|
{% if brand_position == "left" %}
|
|
174
138
|
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place brand image to the: left ] -->
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
{% comment %}
|
|
2
|
+
# -----------------------------------------------------------------------------
|
|
3
|
+
# ~/_includes/themes/j1/modules/navigator/generator.html
|
|
4
|
+
# Liquid HTML template to create the Navigation System for J1 Template
|
|
5
|
+
# (includes all containers needed for MMenu)
|
|
6
|
+
#
|
|
7
|
+
# Product/Info:
|
|
8
|
+
# https://jekyll.one
|
|
9
|
+
#
|
|
10
|
+
# Copyright (C) 2021 Juergen Adams
|
|
11
|
+
#
|
|
12
|
+
# J1 Template is licensed under the MIT License.
|
|
13
|
+
# See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
|
|
14
|
+
#
|
|
15
|
+
# -----------------------------------------------------------------------------
|
|
16
|
+
# Test data:
|
|
17
|
+
# liquid_var: {{ liquid_var | debug }}
|
|
18
|
+
#
|
|
19
|
+
# -----------------------------------------------------------------------------
|
|
20
|
+
{% endcomment %}
|
|
21
|
+
|
|
22
|
+
{% comment %} Liquid procedures
|
|
23
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
24
|
+
{% include themes/{{site.template.name}}/procedures/global/setup.proc %}
|
|
25
|
+
{% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %}
|
|
26
|
+
{% capture topsearch_create %}themes/{{site.template.name}}/modules/navigator/procedures/topsearch.proc{% endcapture %}
|
|
27
|
+
|
|
28
|
+
{% comment %} Not longer used (loaded via AJAX)
|
|
29
|
+
--------------------------------------------------------------------------------
|
|
30
|
+
{% capture sidebar_create %}themes/{{site.template.name}}/modules/navigator/procedures/sidebar.proc{% endcapture %}
|
|
31
|
+
{% capture quicklinks_create %}themes/{{site.template.name}}/modules/navigator/procedures/quicklinks.proc{% endcapture %}
|
|
32
|
+
--------------------------------------------------------------------------------
|
|
33
|
+
{% endcomment %}
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
{% comment %} Process YML config data
|
|
37
|
+
================================================================================ {% endcomment %}
|
|
38
|
+
|
|
39
|
+
{% comment %} Set config files
|
|
40
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
41
|
+
{% assign template_config = site.data.j1_config %}
|
|
42
|
+
{% assign blocks = site.data.blocks %}
|
|
43
|
+
{% assign modules = site.data.modules %}
|
|
44
|
+
|
|
45
|
+
{% comment %} Set config files
|
|
46
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
47
|
+
{% assign authentication_defaults = modules.defaults.authentication.defaults %}
|
|
48
|
+
{% assign authentication_settings = modules.authentication.settings %}
|
|
49
|
+
|
|
50
|
+
{% assign navigator_defaults = site.data.modules.defaults.navigator.defaults %}
|
|
51
|
+
{% assign navigator_settings = site.data.modules.navigator.settings %}
|
|
52
|
+
|
|
53
|
+
{% comment %} Cookie Consent module NOT used anymore
|
|
54
|
+
--------------------------------------------------------------------------------
|
|
55
|
+
{% assign consent_defaults = site.data.modules.defaults.cookie_consent.defaults %}
|
|
56
|
+
{% assign consent_settings = site.data.modules.cookie_consent.settings %}
|
|
57
|
+
{% assign cookie_consent_options = consent_defaults | merge: consent_settings %}
|
|
58
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
59
|
+
|
|
60
|
+
{% assign cookiebar_defaults = site.data.modules.defaults.cookiebar.defaults %}
|
|
61
|
+
{% assign cookiebar_settings = site.data.modules.cookiebar.settings %}
|
|
62
|
+
|
|
63
|
+
{% comment %} SSM module NOT used anymore
|
|
64
|
+
--------------------------------------------------------------------------------
|
|
65
|
+
{% assign ssm_settings = modules.ssm.settings %}
|
|
66
|
+
{% assign ssm_defaults = modules.defaults.ssm.defaults %}
|
|
67
|
+
{% assign ssm_options = ssm_defaults | merge: ssm_settings %}
|
|
68
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
69
|
+
|
|
70
|
+
{% comment %} Set config data
|
|
71
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
72
|
+
{% assign nav_bar_defaults = navigator_defaults.nav_bar %}
|
|
73
|
+
{% assign nav_bar_settings = navigator_settings.nav_bar %}
|
|
74
|
+
{% assign nav_quicklinks_defaults = navigator_defaults.nav_quicklinks %}
|
|
75
|
+
{% assign nav_quicklinks_settings = navigator_settings.nav_quicklinks %}
|
|
76
|
+
{% assign nav_topsearch_defaults = navigator_defaults.nav_topsearch %}
|
|
77
|
+
{% assign nav_topsearch_settings = navigator_settings.nav_topsearch %}
|
|
78
|
+
|
|
79
|
+
{% assign nav_authclient_defaults = authentication_defaults.auth_client %}
|
|
80
|
+
{% assign nav_authclient_settings = authentication_settings.auth_client %}
|
|
81
|
+
|
|
82
|
+
{% assign nav_mmenu_defaults = navigator_defaults.nav_mmenu %}
|
|
83
|
+
{% assign nav_mmenu_settings = navigator_settings.nav_mmenu %}
|
|
84
|
+
|
|
85
|
+
{% comment %} Set config options
|
|
86
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
87
|
+
{% assign nav_bar_options = nav_bar_defaults | merge: nav_bar_settings %}
|
|
88
|
+
{% assign quicklinks_options = nav_quicklinks_defaults | merge: nav_quicklinks_settings %}
|
|
89
|
+
{% assign topsearch_options = nav_topsearch_defaults | merge: nav_topsearch_settings %}
|
|
90
|
+
{% assign authclient_options = nav_authclient_defaults | merge: nav_authclient_settings %}
|
|
91
|
+
{% assign authentication_options = authentication_defaults | merge: authentication_settings %}
|
|
92
|
+
{% assign auth_manager_options = authentication_options.j1_auth %}
|
|
93
|
+
{% assign nav_mmenu_options = nav_mmenu_defaults | merge: nav_mmenu_settings %}
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
{% comment %} Set navBarOptions
|
|
97
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
98
|
+
{% assign brand_position = nav_bar_options.brand_position %}
|
|
99
|
+
{% assign nav_fixed = nav_bar_options.fixed %}
|
|
100
|
+
{% assign nav_style = nav_bar_options.style %}
|
|
101
|
+
{% assign nav_color = nav_bar_options.color %}
|
|
102
|
+
|
|
103
|
+
{% comment %} Set global settings
|
|
104
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
105
|
+
{% assign nav_bar_id = navigator_defaults.nav_bar.xhr_container_id %}
|
|
106
|
+
{% assign nav_menu_id = navigator_defaults.nav_menu.xhr_container_id %}
|
|
107
|
+
{% assign nav_mmenu_id = navigator_defaults.nav_mmenu.xhr_container_id %}
|
|
108
|
+
{% assign nav_sidebar_id = navigator_defaults.nav_sidebar.xhr_container_id %}
|
|
109
|
+
{% assign nav_quicklinks_id = navigator_defaults.nav_quicklinks.xhr_container_id %}
|
|
110
|
+
{% assign authclient_modals_id = authclient_options.xhr_container_id %}
|
|
111
|
+
{% assign nav_navbar_media_breakpoint = navigator_defaults.nav_bar.media_breakpoint %}
|
|
112
|
+
|
|
113
|
+
{% comment %} Set navBarProperties
|
|
114
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
115
|
+
{% if nav_fixed %}
|
|
116
|
+
{% assign nav_bar_fixed = 'navbar-fixed' %}
|
|
117
|
+
{% if nav_style == 'overlay' %} {% assign nav_bar_style = 'navbar-transparent' %} {% endif %}
|
|
118
|
+
{% endif %}
|
|
119
|
+
|
|
120
|
+
{% if nav_color == 'light' %}
|
|
121
|
+
{% assign nav_bar_color = 'light' %}
|
|
122
|
+
{% endif %}
|
|
123
|
+
|
|
124
|
+
{% capture nav_bar_default_css_classes %}navbar navigator navbar-expand-{{nav_navbar_media_breakpoint}} navbar-default{% endcapture %}
|
|
125
|
+
|
|
126
|
+
{% comment %} Main
|
|
127
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
128
|
+
|
|
129
|
+
{% comment %} Generate SSM container (not used anymore)
|
|
130
|
+
--------------------------------------------------------------------------------
|
|
131
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ check for ssm ] -->
|
|
132
|
+
{% if ssm_options.enabled %}
|
|
133
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place ssm container for AJAX load ] -->
|
|
134
|
+
<nav id="ssm-container" class="ssm-btns-right ssm-anim-slide no-r-text"></nav>
|
|
135
|
+
{% endif %}
|
|
136
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
137
|
+
|
|
138
|
+
{% comment %} Generate TopSearch container
|
|
139
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
140
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ check for topsearch ] -->
|
|
141
|
+
{% if topsearch_options.enabled %}
|
|
142
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ start processing: topsearch ] -->
|
|
143
|
+
{% include {{ topsearch_create }} options=topsearch_options %}
|
|
144
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ end processing: topsearch ] -->
|
|
145
|
+
{% endif %}
|
|
146
|
+
|
|
147
|
+
{% comment %} Place MMobile NAV menu containers (HTML data loaded via AJAX)
|
|
148
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
149
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ start processing: mmenu ] -->
|
|
150
|
+
{% for item in nav_mmenu_options.menus %}
|
|
151
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ processing: {{item.menu.xhr_container_id}} ] -->
|
|
152
|
+
|
|
153
|
+
{% comment %} Condition DISABLED for testing
|
|
154
|
+
--------------------------------------------------------------------------------
|
|
155
|
+
{% if item.menu.enabled %}
|
|
156
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place mmenu container for AJAX load ] -->
|
|
157
|
+
<nav id="{{item.menu.xhr_container_id}}"></nav>
|
|
158
|
+
{% endif %}
|
|
159
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
160
|
+
|
|
161
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place mmenu container for AJAX load ] -->
|
|
162
|
+
<nav id="{{item.menu.xhr_container_id}}"></nav>
|
|
163
|
+
|
|
164
|
+
{% endfor %}
|
|
165
|
+
|
|
166
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ start processing: navigation ] -->
|
|
167
|
+
<nav id="{{nav_bar_id}}" class="{{nav_bar_default_css_classes}} {{nav_bar_color}} {{nav_bar_fixed}} {{nav_bar_style}}">
|
|
168
|
+
|
|
169
|
+
{% comment %} Place brand image
|
|
170
|
+
------------------------------------------------------------------------------ {% endcomment %}
|
|
171
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ end processing: sidebar ] -->
|
|
172
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ start processing: main menue ] -->
|
|
173
|
+
{% if brand_position == "left" %}
|
|
174
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place brand image to the: left ] -->
|
|
175
|
+
{% if site.brand.image %}
|
|
176
|
+
<a href="#" id="navbar-brand" class="navbar-brand"> <img src="{{ site.data.j1_config.image_path }}/{{ site.brand.image }}" height="{{ site.brand.image_height }}" alt="{{ site.brand.text }}"></a>
|
|
177
|
+
{% else %}
|
|
178
|
+
<a href="#" id="navbar-brand" class="navbar-brand"> <b><font color="{{site.brand.text_color}}">{{ site.brand.text }}</font></b></a>
|
|
179
|
+
{% endif %}
|
|
180
|
+
<button id="navbar-toggler" type="button" class="navigator navbar-toggler animated fadeIn" data-toggle="collapse" data-target="#{{nav_menu_id}}" aria-controls="{{nav_menu_id}}" aria-expanded="false" aria-label="Toggle navigation">
|
|
181
|
+
<i class="mdi mdi-menu mdi-48px"></i>
|
|
182
|
+
</button>
|
|
183
|
+
{% elsif brand_position == "right" %}
|
|
184
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place brand to the: right ] -->
|
|
185
|
+
{% if site.brand.image %}
|
|
186
|
+
<a href="#" id="navbar-brand" class="navbar-brand"> <img src="{{ site.data.j1_config.image_path }}/{{ site.brand.image }}" height="{{ site.brand.image_height }}" alt="{{ site.brand.text }}"></a>
|
|
187
|
+
{% else %}
|
|
188
|
+
<a href="#" id="navbar-brand" class="navbar-brand"> <b><font color="{{site.brand.text_color}}">{{ site.brand.text }}</font></b></a>
|
|
189
|
+
{% endif %}
|
|
190
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place mobile menu button to the: left ] -->
|
|
191
|
+
<button id="mmenu-button" type="button" class="navigator navbar-toggler animated fadeIn" data-toggle="collapse" data-target="#{{nav_menu_id}}" aria-controls="{{nav_menu_id}}" aria-expanded="false" aria-label="Toggle navigation">
|
|
192
|
+
<i class="mdi mdi-menu mdi-36px"></i>
|
|
193
|
+
</button>
|
|
194
|
+
{% else %}
|
|
195
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place brand to default position: left ] -->
|
|
196
|
+
{% if site.brand.image %}
|
|
197
|
+
<a href="#" id="navbar-brand" class="navbar-brand"> <img src="{{ site.data.j1_config.image_path }}/{{ site.brand.image }}" height="{{ site.brand.image_height }}" alt="{{ site.brand.text }}"></a>
|
|
198
|
+
{% else %}
|
|
199
|
+
<a href="#" id="navbar-brand" class="navbar-brand"> <b><font color="{{site.brand.text_color}}">{{ site.brand.text }}</font></b></a>
|
|
200
|
+
{% endif %}
|
|
201
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place menu toggler to the: right ] -->
|
|
202
|
+
<button id="navbar-toggler" type="button" class="navigator navbar-toggler animated fadeIn" data-toggle="collapse" data-target="#{{nav_menu_id}}" aria-controls="{{nav_menu_id}}" aria-expanded="false" aria-label="Toggle navigation">
|
|
203
|
+
<i class="mdi mdi-menu mdi-48px"></i>
|
|
204
|
+
</button>
|
|
205
|
+
{% endif %}
|
|
206
|
+
|
|
207
|
+
{% comment %} Place Desktop NAV menu container (HTML data loaded via AJAX)
|
|
208
|
+
------------------------------------------------------------------------------ {% endcomment %}
|
|
209
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ start processing: nav bar ] -->
|
|
210
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place nav menu container for AJAX load (desktop) ] -->
|
|
211
|
+
<div id="{{nav_menu_id}}" class="collapse"></div>
|
|
212
|
+
|
|
213
|
+
{% comment %} Place|Hide Quicklinks container (HTML data loaded via AJAX)
|
|
214
|
+
------------------------------------------------------------------------------ {% endcomment %}
|
|
215
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ check for quicklinks ] -->
|
|
216
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ quicklinks enabled: {{quicklinks_options.enabled}} ] -->
|
|
217
|
+
{% if quicklinks_options.enabled %}
|
|
218
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place container for: quicklinks ] -->
|
|
219
|
+
<div id="{{nav_quicklinks_id}}" class="attr-nav collapse navbar-collapse justify-content-end"></div>
|
|
220
|
+
{% endif %}
|
|
221
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ end processing for: quicklinks ] -->
|
|
222
|
+
|
|
223
|
+
</nav>
|
|
224
|
+
|
|
225
|
+
{% comment %} Place container for sign in|out dialog used by J1 AuthClient
|
|
226
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
227
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ check for: authclient ] -->
|
|
228
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ authclient enabled: {{auth_manager_options.enabled}} ] -->
|
|
229
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ place container for: authclient ] -->
|
|
230
|
+
<div id="{{authclient_modals_id}}" class="authclient_modals"></div>
|
|
231
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ end processing: auth_client ] -->
|
|
232
|
+
<!-- [INFO ] [j1.modules.navigator.generator.html ] [ end processing: navigation ] -->
|
|
@@ -57,31 +57,73 @@
|
|
|
57
57
|
{% comment %} Create BS link button
|
|
58
58
|
------------------------------------------------------------------------------ {% endcomment %}
|
|
59
59
|
|
|
60
|
-
{% for item in button_data %}
|
|
61
|
-
|
|
62
|
-
{%
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
60
|
+
{% for item in button_data %} {% for button in item[1] %}
|
|
61
|
+
{% assign key = button[0] %}
|
|
62
|
+
{% assign value = button[1] %}
|
|
63
|
+
{% if key == 'title' %} {% assign button_title = value %} {% endif %}
|
|
64
|
+
{% if key == 'tagline' %} {% assign button_tagline = value %} {% endif %}
|
|
65
|
+
{% if key == 'class' %} {% assign button_class = value %} {% endif %}
|
|
66
|
+
{% if key == 'style' %} {% assign button_style = value %} {% endif %}
|
|
67
|
+
{% if key == 'icon' %} {% assign button_icon = value %} {% endif %}
|
|
68
|
+
{% if key == 'icon_color' %} {% assign button_icon_color = value %} {% endif %}
|
|
69
|
+
{% if key == 'icon_size' %} {% assign button_icon_size = value %} {% endif %}
|
|
70
|
+
{% if key == 'href' %} {% assign button_href = value %} {% endif %}
|
|
71
|
+
{% if key == 'target' %} {% assign button_target = value %} {% endif %}
|
|
72
|
+
{% endfor %} {% endfor %}
|
|
73
|
+
|
|
74
|
+
{% comment %} jadams, 2021-04-24:
|
|
75
|
+
TODO, mr-x on font-icon are to be scaled on icon-size (fixed on: mr-3)
|
|
76
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
|
77
|
+
|
|
78
|
+
{% if button_tagline %}
|
|
79
|
+
{% if button_href and button_target %}
|
|
80
|
+
{% capture bs_button_html %}
|
|
81
|
+
<a href="{{button_href}}" target="{{button_target}}" rel="noopener" class="{{button_class}}" style="{{button_style}}">
|
|
82
|
+
<i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-3"></i>
|
|
83
|
+
<span class="float-right text-left mt-2">
|
|
84
|
+
{{button_title}}
|
|
85
|
+
<span class="d-block r-text-200 text-lowercase">{{button_tagline}}</span>
|
|
86
|
+
</span>
|
|
87
|
+
</a>
|
|
88
|
+
{% endcapture %}
|
|
89
|
+
{% elsif button_href %}
|
|
90
|
+
{% capture bs_button_html %}
|
|
91
|
+
<a href="{{button_href}}" class="{{button_class}}" style="{{button_style}}">
|
|
92
|
+
<i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-3"></i>
|
|
93
|
+
<span class="float-right text-left mt-2">
|
|
94
|
+
{{button_title}}
|
|
95
|
+
<span class="d-block r-text-200 text-lowercase">{{button_tagline}}</span>
|
|
96
|
+
</span>
|
|
97
|
+
</a>
|
|
98
|
+
{% endcapture %}
|
|
99
|
+
{% else %}
|
|
100
|
+
{% capture bs_button_html %}INFO: No valid value for parameter href found{% endcapture %}
|
|
101
|
+
{% endif %}
|
|
81
102
|
{% else %}
|
|
82
|
-
{%
|
|
103
|
+
{% if button_href and button_target %}
|
|
104
|
+
{% capture bs_button_html %}
|
|
105
|
+
<a href="{{button_href}}" target="{{button_target}}" rel="noopener" class="{{button_class}}" style="{{button_style}}">
|
|
106
|
+
<i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-1"></i>
|
|
107
|
+
<span class="float-right text-left">
|
|
108
|
+
{{button_title}}
|
|
109
|
+
</span>
|
|
110
|
+
</a>
|
|
111
|
+
{% endcapture %}
|
|
112
|
+
{% elsif button_href %}
|
|
113
|
+
{% capture bs_button_html %}
|
|
114
|
+
<a href="{{button_href}}" class="{{button_class}}" style="{{button_style}}">
|
|
115
|
+
<i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-1"></i>
|
|
116
|
+
<span class="float-right text-left">
|
|
117
|
+
{{button_title}}
|
|
118
|
+
</span>
|
|
119
|
+
</a>
|
|
120
|
+
{% endcapture %}
|
|
121
|
+
{% else %}
|
|
122
|
+
{% capture bs_button_html %}INFO: No valid value for parameter href found{% endcapture %}
|
|
123
|
+
{% endif %}
|
|
83
124
|
{% endif %}
|
|
84
125
|
|
|
126
|
+
|
|
85
127
|
{% when 'input' %}
|
|
86
128
|
{% comment %} Create BS link button
|
|
87
129
|
------------------------------------------------------------------------------ {% endcomment %}
|