j1_template_mde 2018.4.33 → 2018.4.34

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.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/layout_shim_generator.html +1 -1
  3. data/_includes/themes/j1/modules/navigator/generator.html +16 -3
  4. data/lib/j1/commands/generate.rb +4 -4
  5. data/lib/j1/version.rb +1 -1
  6. data/lib/starter_web/Gemfile +1 -1
  7. data/lib/starter_web/_config.yml +1 -1
  8. data/lib/starter_web/_data/j1_config.yml +24 -7
  9. data/lib/starter_web/_data/modules/j1_cookie_consent.yml +12 -7
  10. data/lib/starter_web/_data/modules/j1_navigator.yml +61 -50
  11. data/lib/starter_web/_data/modules/j1_navigator_menu.yml +4 -6
  12. data/lib/starter_web/assets/data/cookie_consent.html +12 -11
  13. data/lib/starter_web/assets/data/menu.html +3 -2
  14. data/lib/starter_web/assets/data/quicklinks.html +149 -0
  15. data/lib/starter_web/assets/data/sidebar.html +271 -0
  16. data/lib/starter_web/assets/images/pages/roundtrip/package.json +1 -1
  17. data/lib/starter_web/assets/themes/j1/core/css/theme_extensions.css +8 -5
  18. data/lib/starter_web/assets/themes/j1/core/css/theme_extensions.min.css +1 -1
  19. data/lib/starter_web/assets/themes/j1/core/css/uno.css +8 -5
  20. data/lib/starter_web/assets/themes/j1/core/css/uno.min.css +1 -1
  21. data/lib/starter_web/assets/themes/j1/core/js/adapter/algolia.js +1 -1
  22. data/lib/starter_web/assets/themes/j1/core/js/adapter/back2top.js +3 -3
  23. data/lib/starter_web/assets/themes/j1/core/js/adapter/bs_gallery.js +2 -2
  24. data/lib/starter_web/assets/themes/j1/core/js/adapter/cookie_consent.js +36 -25
  25. data/lib/starter_web/assets/themes/j1/core/js/adapter/custom.js +1 -1
  26. data/lib/starter_web/assets/themes/j1/core/js/adapter/iframer.js +1 -1
  27. data/lib/starter_web/assets/themes/j1/core/js/adapter/lightbox.js +1 -1
  28. data/lib/starter_web/assets/themes/j1/core/js/adapter/logger.js +1 -1
  29. data/lib/starter_web/assets/themes/j1/core/js/adapter/master_header.js +2 -2
  30. data/lib/starter_web/assets/themes/j1/core/js/adapter/navigator.js +108 -23
  31. data/lib/starter_web/assets/themes/j1/core/js/adapter/scroller.js +1 -1
  32. data/lib/starter_web/assets/themes/j1/core/js/adapter/searcher.js +1 -1
  33. data/lib/starter_web/assets/themes/j1/core/js/adapter/stickybits.js +1 -1
  34. data/lib/starter_web/assets/themes/j1/core/js/adapter/switcher.js +1 -1
  35. data/lib/starter_web/assets/themes/j1/core/js/adapter/template.js +145 -74
  36. data/lib/starter_web/assets/themes/j1/core/js/adapter/toccer.js +5 -5
  37. data/lib/starter_web/assets/themes/j1/core/js/template.js +1 -1
  38. data/lib/starter_web/assets/themes/j1/core/js/template.js.map +1 -1
  39. data/lib/starter_web/assets/themes/j1/core/js/template.min.js +1 -1
  40. data/lib/starter_web/j1_config.yml +223 -0
  41. data/lib/starter_web/package.json +1 -1
  42. data/lib/starter_web/pages/public/about/about_site.adoc +33 -4
  43. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +130 -14
  44. data/lib/starter_web/pages/public/legal/en/400_license_agreement.adoc +2 -4
  45. data/lib/starter_web/pages/public/start/downloads/quickstarter/000_includes/tables/100_quickstart_installation_packages.asciidoc +1 -1
  46. metadata +5 -4
  47. data/lib/starter_web/assets/data/_authclient.html +0 -365
  48. data/lib/starter_web/pages/public/about/about_you.adoc +0 -139
@@ -10,10 +10,10 @@
10
10
  # Copyright (C) 2019 Juergen Adams
11
11
  #
12
12
  # J1 Template is licensed under the MIT License.
13
- # See: https://github.com/jekyll-one/j1_template_mde/blob/master/LICENSE
13
+ # See: https://github.com/jekyll-one/j1_template_mde/blob/master/LICENSE
14
14
  # ------------------------------------------------------------------------------
15
15
 
16
- - item: Start
16
+ - item: Start
17
17
  sublevel:
18
18
  - title: Read Me First
19
19
  href: /pages/public/start/read_me_first/
@@ -56,7 +56,7 @@
56
56
  - title: Web in a Day
57
57
  icon: rocket
58
58
  dropdown:
59
- - title: Meet & Greet Jekyll
59
+ - title: Meet & Greet Jekyll
60
60
  href: /pages/public/start/kickstarter/web_in_a_day/intro/
61
61
  icon: flag-checkered
62
62
  - title: Getting prepared
@@ -221,7 +221,7 @@
221
221
  target: blank
222
222
  icon: language-css3
223
223
  - title: JSON Editor
224
- href: https://jsoneditoronline.org/
224
+ href: https://jsoneditoronline.org/
225
225
  target: blank
226
226
  icon: json
227
227
  - title: YAML Parser
@@ -254,8 +254,6 @@
254
254
  - title: This site
255
255
  icon: home-outline
256
256
  href: /pages/public/about/site
257
- - title: About You
258
- href: /pages/public/about/you/
259
257
  icon: account
260
258
  - title: Become a Patron
261
259
  icon: patreon
@@ -38,7 +38,7 @@ regenerate: true
38
38
 
39
39
  {% comment %} Set config data
40
40
  -------------------------------------------------------------------------------- {% endcomment %}
41
- {% assign config = consent_settings | merge: consent_defaults %}
41
+ {% assign config = consent_settings | merge: consent_defaults %}
42
42
 
43
43
 
44
44
  {% comment %} Set config options
@@ -74,13 +74,13 @@ regenerate: true
74
74
  <div class="modal-body">
75
75
 
76
76
  <!-- About cookies -->
77
- <div class="row px-4">
77
+ <div class="px-2">
78
78
  <p class="pt-1 pr-2">{{config.policy_about}}</p>
79
79
  </div>
80
80
 
81
81
  <!-- Cookie categories -->
82
82
  {% if config.categories.enabled %}
83
- <div class="row px-4 mt-2">
83
+ <div class="px-2">
84
84
  <h6 class="card-subtitle text-muted mb-2">{{config.categories.category_title}}</h6>
85
85
  <table class="tableblock frame-all grid-all stretch table-responsive mr-2">
86
86
  <colgroup>
@@ -143,7 +143,7 @@ regenerate: true
143
143
  </a>
144
144
  {% endif %}
145
145
  </div> <!-- END Footer -->
146
-
146
+
147
147
  <!-- Hidden Content -->
148
148
  <div class="cookie-policy">
149
149
  {% if config.buttons.policy_button_text %}
@@ -154,8 +154,8 @@ regenerate: true
154
154
  <h6 class="notoc category text-gray">{{config.cookie_policy_tagline | asciidocify}}</h6>
155
155
  <div class="card-description">{{ config.cookie_policy_text | asciidocify}}</div>
156
156
  </div>
157
- </div>
158
- </div>
157
+ </div>
158
+ </div>
159
159
  {% endif %}
160
160
  </div> <!-- END Hidden Content -->
161
161
  </div> <!-- END Content -->
@@ -174,8 +174,8 @@ regenerate: true
174
174
  <div class="modal-body">
175
175
  <div class="row px-4">
176
176
  <p class="pt-1 pr-2">
177
- You are about to <b>disagree</b> on '<b>cookies</b> used by this site.<br />
178
- If you do so, this site is <b>unable</b> to offer you <b>any</b> of
177
+ You are about to <b>disagree</b> on '<b>cookies</b> used by this site.<br />
178
+ If you do so, this site is <b>unable</b> to offer you <b>any</b> of
179
179
  our <b>functionalities, services or support</b>.
180
180
  </p>
181
181
  </div>
@@ -195,8 +195,8 @@ regenerate: true
195
195
  {% comment %} Modal cookieRevokeCentralDanger
196
196
  -------------------------------------------------------------------------------- {% endcomment %}
197
197
  <div class="modal fade" id="cookieRevokeCentralDanger" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
198
- <div class="modal-dialog modal-notify modal-danger" role="document">
199
- <!-- Content -->
198
+ <div class="modal-dialog modal-notify modal-danger" role="document">
199
+ <!-- Content -->
200
200
  <div class="modal-content">
201
201
 
202
202
  <!--Header-->
@@ -234,7 +234,7 @@ regenerate: true
234
234
  <div class="paragraph">
235
235
  <p>
236
236
  You are about to <strong>disagree</strong> on cookies used by this site.
237
- If you do so, this site is <strong>unable</strong> to offer you any of our
237
+ If you do so, this site is <strong>unable</strong> to offer you any of our
238
238
  <strong>functionalities</strong>, <strong>services</strong> or <strong>support</strong>.
239
239
  </p>
240
240
  </div>
@@ -259,3 +259,4 @@ regenerate: true
259
259
 
260
260
  {{ cache | strip_empty_lines }}
261
261
  {% assign cache = nil %}
262
+
@@ -1,13 +1,14 @@
1
1
  ---
2
2
  regenerate: true
3
3
  ---
4
+
4
5
  {% capture cache %}
5
6
 
6
7
  {% comment %}
7
8
  # -----------------------------------------------------------------------------
8
9
  # ~/assets/data/menu.html
9
- # Liquid procedure to generate HTML (data) portion of the main menu bar for
10
- # (fragmented) AJAX load
10
+ # Liquid procedure to generate HTML portion of the main menu bar
11
+ # NOTE: Loaded dynamically by J1 NAV Manager module (AJAX)
11
12
  #
12
13
  # Product/Info:
13
14
  # https://jekyll-one.com
@@ -0,0 +1,149 @@
1
+ ---
2
+ regenerate: true
3
+ ---
4
+
5
+ {% capture cache %}
6
+
7
+ {% comment %}
8
+ # -----------------------------------------------------------------------------
9
+ # ~/assets/data/quicklinks.html
10
+ # Liquid PROCEDURE template to create the HTML portion of the quicklink bar
11
+ # NOTE: Loaded dynamically by J1 NAV Manager module (AJAX)
12
+ #
13
+ # Product/Info:
14
+ # https://jekyll-one.com
15
+ #
16
+ # Copyright (C) 2019 Juergen Adams
17
+ #
18
+ # J1 Template is licensed under the MIT License.
19
+ # See: https://github.com/jekyll-one/j1_template_mde/blob/master/LICENSE
20
+ # -----------------------------------------------------------------------------
21
+ # Test data:
22
+ # liquid_var: {{ liquid_var | debug }}
23
+ #
24
+ # -----------------------------------------------------------------------------
25
+ {% endcomment %}
26
+
27
+ {% comment %} Liquid procedures
28
+ -------------------------------------------------------------------------------- {% endcomment %}
29
+ {% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %}
30
+ {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
31
+
32
+
33
+ {% comment %} Liquid var initialization
34
+ -------------------------------------------------------------------------------- {% endcomment %}
35
+
36
+ {% comment %} Set global settings
37
+ ------------------------------------------------------------------------------ {% endcomment %}
38
+ {% assign signin_modal_id = "modalOmniSignIn" %}
39
+
40
+
41
+ {% comment %} Set config files
42
+ ------------------------------------------------------------------------------ {% endcomment %}
43
+ {% assign navigator_config = site.data.modules.j1_navigator %}
44
+ {% assign quick_search_config = site.data.modules.j1_jekyll_search %}
45
+ {% assign auth_manager_config = site.j1_auth %}
46
+ {% assign cookie_consent_config = site.data.modules.j1_cookie_consent %}
47
+
48
+ {% comment %} Set config data
49
+ ------------------------------------------------------------------------------ {% endcomment %}
50
+ {% assign nav_defaults = navigator_config.defaults %}
51
+ {% assign nav_quicklinks_default = nav_defaults.nav_quicklinks %}
52
+ {% assign nav_quicklinks_config = navigator_config.nav_quicklinks %}
53
+ {% assign consent_defaults = cookie_consent_config.defaults %}
54
+ {% assign consent_settings = cookie_consent_config.consent %}
55
+
56
+ {% comment %} Set config options
57
+ ------------------------------------------------------------------------------ {% endcomment %}
58
+ {% assign quicklinks_options = nav_quicklinks_default | merge: nav_quicklinks_config %}
59
+ {% assign consent_options = consent_defaults | merge: consent_settings %}
60
+
61
+ {% comment %} Set quicklinks properties
62
+ ------------------------------------------------------------------------------ {% endcomment %}
63
+ {% assign icon_family = quicklinks_options.icon_family | downcase %}
64
+
65
+ {% assign cookies_icon = quicklinks_options.cookies_icon %}
66
+ {% assign search_icon = quicklinks_options.top_search_icon %}
67
+ {% assign sidebar_icon = quicklinks_options.sidebar_icon %}
68
+ {% assign signin_icon = quicklinks_options.signin_icon %}
69
+ {% assign signout_icon = quicklinks_options.signout_icon %}
70
+
71
+ {% assign disqus_icon = quicklinks_options.disqus_icon %}
72
+ {% assign github_icon = quicklinks_options.github_icon %}
73
+ {% assign patreon_icon = quicklinks_options.patreon_icon %}
74
+ {% assign facebook_icon = quicklinks_options.facebook_icon %}
75
+ {% assign twitter_icon = quicklinks_options.twitter_icon %}
76
+
77
+ {% assign disqus_url = quicklinks_options.disqus_url %}
78
+ {% assign github_url = quicklinks_options.github_url %}
79
+ {% assign patreon_url = quicklinks_options.patreon_url %}
80
+ {% assign facebook_url = quicklinks_options.facebook_url %}
81
+ {% assign twitter_url = quicklinks_options.twitter_url %}
82
+
83
+ {% if quick_search_config.enabled %}
84
+ {% assign show_quick_search_icon = true %}
85
+ {% else %}
86
+ {% assign show_quick_search_icon = false %}
87
+ {% endif %}
88
+
89
+ {% if auth_manager_config.enabled %}
90
+ {% assign show_auth_manager_icon = true %}
91
+ {% else %}
92
+ {% assign show_auth_manager_icon = false %}
93
+ {% endif %}
94
+
95
+ {% if quicklinks_options.sidebar %}
96
+ {% assign show_sidebar_icon = true %}
97
+ {% else %}
98
+ {% assign show_sidebar_icon = false %}
99
+ {% endif %}
100
+
101
+ {% if consent_settings.enabled == "true" %} {% assign consent_enabled = true %} {% endif %}
102
+ {% if consent_settings.show_cookie_consent_icon == "true" %} {% assign consent_icon_enabled = true %} {% endif %}
103
+
104
+ {% if consent_enabled and consent_icon_enabled %}
105
+ {% assign show_cookie_consent_icon = true %}
106
+ {% else %}
107
+ {% assign show_cookie_consent_icon = false %}
108
+ {% endif %}
109
+
110
+ {% if quicklinks_options.icon_family == 'FontAwesome' or quicklinks_options.icon_family == 'FontAwesome4' or quicklinks_options.icon_family == 'FontAwesome5' %}
111
+ {% assign icon_family = 'fa' %}
112
+ {% elsif quicklinks_options.icon_family == 'MDI' or quicklinks_options.icon_family == 'Material Design Icons'%}
113
+ {% assign icon_family = 'mdi' %}
114
+ {% else %}
115
+ {% assign icon_family = 'mdi' %}
116
+ {% endif %}
117
+
118
+ {% include {{select_icon_size}} family=quicklinks_options.icon_family size=quicklinks_options.icon_size %}
119
+ {% assign icon_size = size %}
120
+
121
+
122
+ {% comment %} Icon color set dynamically by adapter
123
+ --------------------------------------------------------------------------------
124
+ {% include {{select_color}} color=quicklinks_options.icon_color fallback="#9E9E9E" %}
125
+ {% assign my_icon_color = color %}
126
+ {% capture icon_color %}style="color:{{my_icon_color}}"{% endcapture %}
127
+ --------------------------------------------------------------------------------
128
+ {% endcomment %}
129
+
130
+
131
+ {% comment %} Main
132
+ -------------------------------------------------------------------------------- {% endcomment %}
133
+ <ul class="navbar-nav">
134
+ {% if disqus_url != "none" %}<li nav-item><a id="disqus_id" class="nav-icon" href="{{disqus_url}}" target="_blank"><i class="{{icon_family}} {{icon_family}}-{{disqus_icon}} {{icon_size}}"></i></a></li>{% endif %}
135
+ {% if github_url != "none" %}<li nav-item><a id="github_id" class="nav-icon" href="{{github_url}}" target="_blank"><i class="{{icon_family}} {{icon_family}}-{{github_icon}} {{icon_size}}"></i></a></li>{% endif %}
136
+ {% if patreon_url != "none" %}<li nav-item><a id="patreon_id" class="nav-icon" href="{{patreon_url}}" target="_blank"><i class="{{icon_family}} {{icon_family}}-{{patreon_icon}} {{icon_size}}"></i></a></li>{% endif %}
137
+ {% if facebook_url != "none" %}<li nav-item><a id="facebook_id" class="nav-icon" href="{{facebook_url}}" target="_blank"><i class="{{icon_family}} {{icon_family}}-{{facebook_icon}} {{icon_size}}"></i></a></li>{% endif %}
138
+ {% if twitter_url != "none" %}<li nav-item><a id="twitter_id" class="nav-icon" href="{{twitter_url}}" target="_blank"><i class="{{icon_family}} {{icon_family}}-{{twitter_icon}} {{icon_size}}"></i></a></li>{% endif %}
139
+ {% if show_auth_manager_icon %}<li class="nav-item" id="quickLinksSignInOutButton" style="display: none;"><a class="nav-icon" id="navLinkSignInOut" href="#" data-toggle="modal" data-target="#{{signin_modal_id}}"><i id="iconSignInOut" class="{{icon_family}} {{icon_family}}-{{signin_icon}} {{icon_size}}"></i></a></li>{% endif %}
140
+ {% if show_cookie_consent_icon %}<li class="nav-item" id="quickLinksCookieButton" style="display: none;"><a id="cookie-state" class="nav-icon" href="#" data-toggle="modal" data-target="#cookieRevokeCentralDanger"><i class="{{icon_family}} {{icon_family}}-{{cookies_icon}} {{icon_size}}"></i></a></li>{% endif %}
141
+ {% if show_quick_search_icon %}<li class="nav-item search"><a class="nav-icon" href="#"><i class="{{icon_family}} {{icon_family}}-{{search_icon}} {{icon_size}}"></i></a></li>{% endif %}
142
+ {% if show_sidebar_icon %}<li class="nav-item side-menu"><a class="nav-icon" href="#"><i class="{{icon_family}} {{icon_family}}-{{sidebar_icon}} {{icon_size}}"></i></a></li>{% endif %}
143
+ </ul>
144
+
145
+ {% endcapture %}
146
+
147
+ {{ cache | strip_empty_lines }}
148
+ {% assign cache = nil %}
149
+
@@ -0,0 +1,271 @@
1
+ ---
2
+ regenerate: true
3
+ ---
4
+
5
+ {% capture cache %}
6
+
7
+ {% comment %}
8
+ # -----------------------------------------------------------------------------
9
+ # ~/assets/data/sidebar.html
10
+ # Liquid PROCEDURE template to create the HTML portion of the sidebar
11
+ # NOTE: Loaded dynamically by J1 NAV Manager module (AJAX)
12
+ #
13
+ # Product/Info:
14
+ # https://jekyll-one.com
15
+ #
16
+ # Copyright (C) 2019 Juergen Adams
17
+ #
18
+ # J1 Template is licensed under the MIT License.
19
+ # See: https://github.com/jekyll-one/j1_template_mde/blob/master/LICENSE
20
+ # -----------------------------------------------------------------------------
21
+ # Test data:
22
+ # liquid_var: {{ liquid_var | debug }}
23
+ #
24
+ # -----------------------------------------------------------------------------
25
+ {% endcomment %}
26
+
27
+ {% comment %} Liquid procedures
28
+ -------------------------------------------------------------------------------- {% endcomment %}
29
+ {% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %}
30
+ {% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
31
+
32
+
33
+ {% comment %} Liquid var initialization
34
+ -------------------------------------------------------------------------------- {% endcomment %}
35
+
36
+ {% comment %} Set global settings
37
+ ------------------------------------------------------------------------------ {% endcomment %}
38
+ {% assign nav_id = "navigator_nav" %}
39
+ {% assign nav_expand = "lg" %}
40
+
41
+
42
+ {% comment %} Set config files
43
+ ------------------------------------------------------------------------------ {% endcomment %}
44
+ {% assign navigator_config = site.data.modules.j1_navigator %}
45
+ {% assign nav_defaults = navigator_config.defaults %}
46
+ {% assign nav_bar_defaults = nav_defaults.nav_bar %}
47
+ {% assign nav_bar_config = navigator_config.nav_bar %}
48
+ {% assign nav_sidebar_default = nav_defaults.nav_sidebar %}
49
+ {% assign nav_sidebar_config = navigator_config.nav_sidebar %}
50
+
51
+
52
+ {% comment %} Set config files
53
+ ------------------------------------------------------------------------------ {% endcomment %}
54
+ {% assign navigator_config = site.data.modules.j1_navigator %}
55
+ {% assign sidebar_config = navigator_config.nav_sidebar %}
56
+ {% assign theme_switcher = site.data.modules.j1_theme_switcher %}
57
+
58
+
59
+ {% comment %} Set config options
60
+ ------------------------------------------------------------------------------ {% endcomment %}
61
+ {% assign nav_bar_options = nav_bar_defaults | merge: nav_bar_config %}
62
+ {% assign sidebar_options = nav_sidebar_default | merge: nav_sidebar_config %}
63
+
64
+
65
+ {% comment %} Set sidebar properties
66
+ ------------------------------------------------------------------------------ {% endcomment %}
67
+ {% assign display_user_info = sidebar_options.display_user_info %}
68
+ {% assign display_theme = sidebar_options.display_theme %}
69
+ {% assign close_icon = sidebar_options.close_icon %}
70
+
71
+
72
+ {% comment %} Main
73
+ ------------------------------------------------------------------------------ {% endcomment %}
74
+
75
+ {% if sidebar_options.icon_family == 'FontAwesome' or sidebar_options.icon_family == 'FontAwesome4' or sidebar_options.icon_family == 'FontAwesome5' %}
76
+ {% assign icon_family = 'fa' %}
77
+ {% elsif sidebar_options.icon_family == 'MDI' or sidebar_options.icon_family == 'Material Design Icons'%}
78
+ {% assign icon_family = 'mdi' %}
79
+ {% else %}
80
+ {% assign icon_family = 'mdi' %}
81
+ {% endif %}
82
+
83
+ {% include {{select_color}} color=sidebar_options.icon_color fallback="#9E9E9E" %}
84
+ {% capture icon_color %}style="color: {{color}}"{% endcapture %}
85
+
86
+ {% include {{select_icon_size}} family=icon_family size=sidebar_options.icon_size %}
87
+ {% assign icon_size = size %}
88
+
89
+
90
+ {% comment %} Main
91
+ -------------------------------------------------------------------------------- {% endcomment %}
92
+
93
+ <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [Start processing: sidebar] -->
94
+ <a href="#" class="close-side"><i class="{{icon_family}} {{icon_family}}-{{close_icon}} mdi-48px" {{icon_color}}></i></a>
95
+
96
+ {% for boxes in sidebar_config.boxes %}
97
+ {% for box in boxes %}
98
+
99
+ {% for item in box[1] %}
100
+ {% assign key = item[0] %}
101
+ {% assign value = item[1] %}
102
+ {% if key == 'enabled' %} {% assign enabled = value %} {% endif %}
103
+ {% if key == 'type' %} {% assign type = value %} {% endif %}
104
+ {% if key == 'title' %} {% assign title = value %} {% endif %}
105
+ {% if key == 'type' %} {% assign type = value %} {% endif %}
106
+ {% if key == 'links' %} {% assign links = value %} {% endif %}
107
+ {% endfor %}
108
+
109
+ {% if enabled %}
110
+ {% case type %}
111
+
112
+ {% comment %} Collect USER info
113
+ ---------------------------------------------------------------------- {% endcomment %}
114
+ {% when 'user_info' %}
115
+ <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [USER info enabled] -->
116
+ <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [Write widged placeholder: USER info] -->
117
+ <div id="user-info" class="widget">
118
+ <h4 class="heading">{{title}}</h4>
119
+ <ul id="display_user_details" class="link">
120
+ {% for link in links %}
121
+
122
+ {% if link.icon == null %}
123
+ {% assign icon = '' %}
124
+ {% else %}
125
+ {% capture icon %}<i class="{{icon_family}} {{icon_family}}-{{link.icon}} {{icon_size}} mr-2" {{icon_color}}></i>{% endcapture %}
126
+ {% endif %}
127
+
128
+ {% if link.target == nil or link.target == "" or link.target == "none" %}
129
+ {% assign target = "" %}
130
+ {% else %}
131
+ {% capture target %}target="{{link.target}}"{% endcapture %}
132
+ {% endif %}
133
+
134
+ {% if link.value == nil or link.value == "" or link.value == "none" %}
135
+ {% assign link_text = link.title %}
136
+ {% else %}
137
+ {% if link.value contains '??' %}
138
+ {% capture macro_name %}{{link.value|replace: '?',''|downcase}}{% endcapture %}
139
+ {% capture macro_id %}id="macro-{{macro_name}}"{% endcapture %}
140
+ {% else %}
141
+ {% assign macro_id = '' %}
142
+ {% endif %}
143
+ {% capture link_text %}{{link.title}}: {{link.value}}{% endcapture %}
144
+ {% endif %}
145
+
146
+ <li><a {{macro_id}} href="{{link.href|strip}}" {{target}}>{{icon}} {{link_text}}</a></li>
147
+
148
+ {% endfor %}
149
+ </ul>
150
+ </div>
151
+
152
+ {% comment %} END Collect USER info
153
+ ---------------------------------------------------------------------- {% endcomment %}
154
+
155
+ {% comment %} Reset element variables
156
+ ---------------------------------------------------------------------- {% endcomment %}
157
+ {% assign enabled = nil %}
158
+ {% assign type = nil %}
159
+ {% assign title = nil %}
160
+ {% assign type = nil %}
161
+ {% assign links = nil %}
162
+
163
+ {% comment %} Collect THEME info
164
+ ---------------------------------------------------------------------- {% endcomment %}
165
+ {% when 'theme_info' %}
166
+ <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [THEME info detected] -->
167
+ <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [Write widged placeholder: USER info] -->
168
+ <div id="theme-info" class="widget">
169
+ <h4 class="heading">{{title}}</h4>
170
+ <ul class="link">
171
+ {% for link in links %}
172
+
173
+ {% if link.icon == null %}
174
+ {% assign icon = '' %}
175
+ {% else %}
176
+ {% capture icon %}<i class="{{icon_family}} {{icon_family}}-{{link.icon}} {{icon_size}} mr-2" {{icon_color}}></i>{% endcapture %}
177
+ {% endif %}
178
+
179
+ {% if link.target == nil or link.target == "" or link.target == "none" %}
180
+ {% assign target = "" %}
181
+ {% else %}
182
+ {% capture target %}target="{{link.target}}"{% endcapture %}
183
+ {% endif %}
184
+
185
+ {% if link.value == nil or link.value == "" or link.value == "none" %}
186
+ {% assign link_text = link.title %}
187
+ {% else %}
188
+ {% if link.value contains '??' %}
189
+ {% capture macro_name %}{{link.value|replace: '?',''|downcase}}{% endcapture %}
190
+ {% capture macro_id %}id="macro-{{macro_name}}"{% endcapture %}
191
+ {% else %}
192
+ {% assign macro_id = '' %}
193
+ {% endif %}
194
+ {% capture link_text %}{{link.title}}: {{link.value}}{% endcapture %}
195
+ {% endif %}
196
+
197
+ <li><a {{macro_id}} href="{{link.href|strip}}" {{target}}>{{icon}} {{link_text}}</a></li>
198
+
199
+ {% endfor %}
200
+ </ul>
201
+ </div>
202
+ <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [End processing: THEME info] -->
203
+
204
+ {% comment %} END Collect THEME info
205
+ ---------------------------------------------------------------------- {% endcomment %}
206
+
207
+ {% comment %} Reset element variables
208
+ ---------------------------------------------------------------------- {% endcomment %}
209
+ {% assign enabled = nil %}
210
+ {% assign type = nil %}
211
+ {% assign title = nil %}
212
+ {% assign type = nil %}
213
+ {% assign links = nil %}
214
+
215
+ {% comment %} Collect SITE info
216
+ ---------------------------------------------------------------------- {% endcomment %}
217
+ {% when 'site_info' %}
218
+ <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [Start processing SITE info] -->
219
+
220
+ <div id="site-info" class="widget">
221
+ <h4 class="heading">{{title}}</h4>
222
+ <ul class="link">
223
+ {% for link in links %}
224
+ {% if link.icon == null %}
225
+ {% assign icon = "" %}
226
+ {% else %}
227
+ {% capture icon %}<i class="{{icon_family}} {{icon_family}}-{{link.icon}} {{icon_size}} mr-2" {{icon_color}}></i>{% endcapture %}
228
+ {% endif %}
229
+
230
+ {% if link.target == nil or link.target == "" or link.target == "none" %}
231
+ {% assign target = "" %}
232
+ {% else %}
233
+ {% capture target %}target="{{link.target}}"{% endcapture %}
234
+ {% endif %}
235
+
236
+ {% if link.value == nil or link.value == "" or link.value == "none" %}
237
+ {% assign link_text = link.title %}
238
+ {% else %}
239
+ {% capture link_text %}"{{link.title}}: {{link.title}}"{% endcapture %}
240
+ {% endif %}
241
+
242
+ <li><a href="{{link.href|strip}}" {{target}}>{{icon}}{{link_text}}</a></li>
243
+
244
+ {% endfor %}
245
+ </ul>
246
+ </div>
247
+
248
+ {% comment %} END Collect SITE info
249
+ ---------------------------------------------------------------------- {% endcomment %}
250
+
251
+ {% comment %} Reset element variables
252
+ ---------------------------------------------------------------------- {% endcomment %}
253
+ {% assign enabled = nil %}
254
+ {% assign type = nil %}
255
+ {% assign title = nil %}
256
+ {% assign type = nil %}
257
+ {% assign links = nil %}
258
+
259
+ {% endcase %}
260
+ {% endif %}
261
+
262
+ {% endfor %}
263
+ {% endfor %}
264
+ <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [End processing sidebar boxes] -->
265
+ <!-- [INFO ] [j1.modules.navigator.sidebar.proc ] [End processing: sidebar] -->
266
+
267
+ {% endcapture %}
268
+
269
+ {{ cache | strip_empty_lines }}
270
+ {% assign cache = nil %}
271
+