j1_template 2019.4.10 → 2019.4.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_cc_test_data/_config.yml +1 -1
- data/lib/starter_web/_config.yml +1 -1
- data/lib/starter_web/assets/themes/j1/core/js/j1.js +9 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/start/downloads/quickstarter/100_linux_starter.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +15 -50
- data/lib/j1_app/j1_auth_manager/_unused/auth_manager.before_merge_added.rb +0 -1267
- data/lib/j1_app/j1_auth_manager/_unused/auth_manager.new.rb +0 -1121
- data/lib/j1_app/j1_auth_manager/_unused/auth_manager.no_cookie.mgmt.rb +0 -1130
- data/lib/j1_app/j1_auth_manager/_unused/auth_manager.ok.rb +0 -1130
- data/lib/j1_app/j1_auth_manager/_unused/auth_manager.org.2.rb +0 -1086
- data/lib/j1_app/j1_auth_manager/_unused/auth_manager.org.rb +0 -1548
- data/lib/j1_app/j1_auth_manager/_unused/auth_manager.update.web_cookie.rb +0 -1333
- data/lib/j1_app/j1_auth_manager/_unused/auth_manager_ui.2.erb +0 -198
- data/lib/j1_app/j1_auth_manager/_unused/auth_manager_ui.additional_inits.erb +0 -254
- data/lib/j1_app/j1_auth_manager/_unused/auth_manager_ui.manage.cookies.erb +0 -255
- data/lib/starter_web/assets/_data/_temp/_banner.html +0 -421
- data/lib/starter_web/assets/_data/_temp/_panel.html +0 -585
- data/lib/starter_web/assets/_data/_temp/banner.case.snippet.html.asciidoc +0 -91
- data/lib/starter_web/assets/_data/_temp/banner.new.html.asciidoc +0 -559
- data/lib/starter_web/assets/_data/_temp/banner.with.defaults.html.asciidoc +0 -547
- data/lib/starter_web/assets/_data/_temp/footer.html.new +0 -228
- data/lib/starter_web/assets/_data/_temp/footer.html.org +0 -234
- data/lib/starter_web/assets/_data/_temp/footer.old.html +0 -231
- data/lib/starter_web/assets/_data/_temp/footer_new.html +0 -226
- data/lib/starter_web/assets/_data/_temp/footer_old.html +0 -222
- data/lib/starter_web/assets/_data/_temp/menu.old.html +0 -462
- data/lib/starter_web/assets/_data/_temp/panel.new.html +0 -560
- data/lib/starter_web/assets/_data/_temp/panel.old.html +0 -597
- data/lib/starter_web/assets/_data/_temp/panel.org.html +0 -597
- data/lib/starter_web/assets/_data/animate.json +0 -120
- data/lib/starter_web/assets/_data/ascii_code_table.json +0 -1794
- data/lib/starter_web/assets/_data/authclient.html +0 -365
- data/lib/starter_web/assets/_data/banner.html +0 -431
- data/lib/starter_web/assets/_data/carousel.json +0 -110
- data/lib/starter_web/assets/_data/colors.json +0 -43
- data/lib/starter_web/assets/_data/cookie_consent.html +0 -225
- data/lib/starter_web/assets/_data/countries.json +0 -974
- data/lib/starter_web/assets/_data/font_sizes.json +0 -43
- data/lib/starter_web/assets/_data/fontawesome_icons.json +0 -5525
- data/lib/starter_web/assets/_data/footer.html +0 -239
- data/lib/starter_web/assets/_data/galleries.json +0 -160
- data/lib/starter_web/assets/_data/mdi_icons.json +0 -14641
- data/lib/starter_web/assets/_data/menu.html +0 -469
- data/lib/starter_web/assets/_data/messages.yml +0 -130
- data/lib/starter_web/assets/_data/objects.json +0 -458
- data/lib/starter_web/assets/_data/panel.html +0 -501
- data/lib/starter_web/assets/_data/panel.new.html +0 -498
- data/lib/starter_web/assets/_data/quicklinks.html +0 -178
- data/lib/starter_web/assets/_data/search.yml +0 -131
- data/lib/starter_web/assets/_data/sidebar.html +0 -261
- data/lib/starter_web/assets/_data/themes.json +0 -59
- data/lib/starter_web/assets/_data/twa_v1.json +0 -6978
- data/lib/starter_web/assets/_data/twa_v2.json +0 -12812
- data/lib/starter_web/assets/_data/webhook.html +0 -190
@@ -1,231 +0,0 @@
|
|
1
|
-
---
|
2
|
-
regenerate: true
|
3
|
-
---
|
4
|
-
{% capture cache %}
|
5
|
-
|
6
|
-
{% comment %}
|
7
|
-
# -----------------------------------------------------------------------------
|
8
|
-
# ~/assets/data/footer.html
|
9
|
-
# Liquid procedure to generate HTML (data) portion of the page footer for
|
10
|
-
# (fragmented) AJAX load
|
11
|
-
#
|
12
|
-
# Product/Info:
|
13
|
-
# https://jekyll.one
|
14
|
-
#
|
15
|
-
# Copyright (C) 2019 Juergen Adams
|
16
|
-
#
|
17
|
-
# J1 Template is licensed under the MIT License.
|
18
|
-
# See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
|
19
|
-
#
|
20
|
-
# -----------------------------------------------------------------------------
|
21
|
-
# Test data:
|
22
|
-
# {{ variable | debug }}
|
23
|
-
#
|
24
|
-
# -----------------------------------------------------------------------------
|
25
|
-
{% endcomment %}
|
26
|
-
|
27
|
-
<!-- [INFO ] [j1.assets.data.footer ] [Footer generated: {{site.time}}] -->
|
28
|
-
|
29
|
-
{% comment %} Liquid procedures
|
30
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
31
|
-
{% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %}
|
32
|
-
{% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
|
33
|
-
{% capture about_box %}themes/{{site.template.name}}/modules/footers/boxes/about_box.proc{% endcapture %}
|
34
|
-
{% capture news_box %}themes/{{site.template.name}}/modules/footers/boxes/news_box.proc{% endcapture %}
|
35
|
-
{% capture links_box %}themes/{{site.template.name}}/modules/footers/boxes/links_box.proc{% endcapture %}
|
36
|
-
{% capture contacts_box %}themes/{{site.template.name}}/modules/footers/boxes/contacts_box.proc{% endcapture %}
|
37
|
-
{% capture legal_statements %}themes/{{site.template.name}}/modules/footers/boxes/legal_statements.proc{% endcapture %}
|
38
|
-
{% capture social_media_icons %}themes/{{site.template.name}}/modules/footers/boxes/social_media_icons.proc{% endcapture %}
|
39
|
-
|
40
|
-
|
41
|
-
{% comment %} Process YML config data
|
42
|
-
================================================================================ {% endcomment %}
|
43
|
-
|
44
|
-
{% comment %} Set config files
|
45
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
46
|
-
{% assign footer_config_defaults = site.data.blocks.defaults.footer %}
|
47
|
-
{% assign footer_config_settings = site.data.blocks.footer %}
|
48
|
-
|
49
|
-
{% comment %} Set config data
|
50
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
51
|
-
{% assign footer_config_defaults = footer_config_defaults.defaults %}
|
52
|
-
{% assign footer_config_settings = footer_config_settings.settings %}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
{% comment %} Variables
|
57
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
58
|
-
|
59
|
-
{% comment %} Set HELPER variables
|
60
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
61
|
-
{% capture footer_config_file_name %}~/_data/modules/footer.yml{% endcapture %}
|
62
|
-
|
63
|
-
|
64
|
-
{% comment %} Main
|
65
|
-
================================================================================ {% endcomment %}
|
66
|
-
{% for items in footer_config_settings %}
|
67
|
-
{% assign key = items[0] %}
|
68
|
-
{% assign value = items[1] %}
|
69
|
-
{% assign footer_config = value %}
|
70
|
-
|
71
|
-
{% for items in footer_config %}
|
72
|
-
{% for footers in items %}
|
73
|
-
|
74
|
-
{% if debug %} footers: {{ footers }} {% endif %}
|
75
|
-
|
76
|
-
{% comment %} parse settings for MAIN keys
|
77
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
78
|
-
{% for footer in footers %}
|
79
|
-
{% assign data_type = footer | is_type %}
|
80
|
-
{% if data_type == 'hash' %}
|
81
|
-
{% assign footer_settings = footer %}
|
82
|
-
{% endif %}
|
83
|
-
{% endfor %}
|
84
|
-
|
85
|
-
{% if debug %} <!-- footer_settings.boxes: {{ footer_settings.boxes }} --> {% endif %}
|
86
|
-
|
87
|
-
|
88
|
-
{% comment %} process current footer
|
89
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
90
|
-
{% if footer_settings.enabled %}
|
91
|
-
|
92
|
-
{% assign enabled_boxes = 0 %}
|
93
|
-
{% assign footer_options = footer_config_defaults.footer | merge: footer_settings %}
|
94
|
-
{% if debug %} <!-- footer_options: {{ footer_options }} --> {% endif %}
|
95
|
-
|
96
|
-
{% comment %} Calculate number of enabled footer boxes
|
97
|
-
------------------------------------------------------------------------ {% endcomment %}
|
98
|
-
{% for property in footer_options.boxes %}
|
99
|
-
{% if debug %} <!-- property: {{property}} --> {% endif %}
|
100
|
-
{% if property.enabled %} {% assign enabled_boxes = enabled_boxes | plus:1 %} {% endif %}
|
101
|
-
{% endfor %}
|
102
|
-
{% assign footer_box_width_md = 12 | divided_by:enabled_boxes %}
|
103
|
-
<!-- [INFO ] [j1.assets.data.footer ] [Set footer box column width to: {{ footer_box_width_md }}] -->
|
104
|
-
|
105
|
-
<div id="{{footer_config_defaults.container-id}}" class="{{footer_options.theme}}">
|
106
|
-
<div class="footer">
|
107
|
-
|
108
|
-
<div class="container">
|
109
|
-
<div class="row">
|
110
|
-
|
111
|
-
{% comment %} Collect footer config data
|
112
|
-
------------------------------------------------------------------ {% endcomment %}
|
113
|
-
{% for box in footer_options.boxes %}
|
114
|
-
|
115
|
-
{% comment %} COLLECT|PLACE footer boxes
|
116
|
-
---------------------------------------------------------------- {% endcomment %}
|
117
|
-
{% case box.type %}
|
118
|
-
|
119
|
-
{% comment %} PLACE AboutBox
|
120
|
-
---------------------------------------------------------------- {% endcomment %}
|
121
|
-
{% when 'about' %}
|
122
|
-
{% if box.enabled %}
|
123
|
-
{% include {{about_box}} title=box.title text=box.text justify=box.justify %}
|
124
|
-
{% endif %}
|
125
|
-
|
126
|
-
{% comment %} Reset element variable
|
127
|
-
-------------------------------------------------------------- {% endcomment %}
|
128
|
-
{% assign footer_options.boxes = nil %}
|
129
|
-
|
130
|
-
{% comment %} PLACE NewsBox
|
131
|
-
---------------------------------------------------------------- {% endcomment %}
|
132
|
-
{% when 'news' %}
|
133
|
-
{% if box.enabled %}
|
134
|
-
{% include {{news_box}} title=box.title category=box.category max_posts=box.max_posts posts=site.posts %}
|
135
|
-
{% endif %}
|
136
|
-
|
137
|
-
{% comment %} Reset element variable
|
138
|
-
-------------------------------------------------------------- {% endcomment %}
|
139
|
-
{% assign footer_options.boxes = nil %}
|
140
|
-
|
141
|
-
{% comment %} PLACE LinksBox
|
142
|
-
--------------------------------------------------------------- {% endcomment %}
|
143
|
-
{% when 'references' %}
|
144
|
-
{% if box.enabled %}
|
145
|
-
{% include {{links_box}} title=box.title links=box.links %}
|
146
|
-
{% endif %}
|
147
|
-
|
148
|
-
{% comment %} Reset element variable
|
149
|
-
-------------------------------------------------------------- {% endcomment %}
|
150
|
-
{% assign footer_options.boxes = nil %}
|
151
|
-
|
152
|
-
{% comment %} PLACE ContactsBox
|
153
|
-
--------------------------------------------------------------- {% endcomment %}
|
154
|
-
{% when 'contact' %}
|
155
|
-
{% if box.enabled %}
|
156
|
-
{% include {{contacts_box}} %}
|
157
|
-
{% endif %}
|
158
|
-
|
159
|
-
{% comment %} Reset element variable
|
160
|
-
-------------------------------------------------------------- {% endcomment %}
|
161
|
-
{% assign footer_options.boxes = nil %}
|
162
|
-
|
163
|
-
{% else %}
|
164
|
-
{% comment %} Collect EXCEPTION
|
165
|
-
-------------------------------------------------------------- {% endcomment %}
|
166
|
-
{% unless box.type == 'exception_container' %}
|
167
|
-
<div id="exception_container">
|
168
|
-
<div id="{{panel_settings.id}}" class="container-fluid no-padding">
|
169
|
-
<div class="col-md-12 col-sm-12 col-xs-12 no-padding">
|
170
|
-
<div class="box">
|
171
|
-
<div class="content content-danger">
|
172
|
-
<h2 class="notoc">
|
173
|
-
<i class="mdi mdi-alarm-light mdi-3x mdi-md-red mr-1"></i>
|
174
|
-
panel of type <big>{{panel_settings.type}}</big> not found
|
175
|
-
</h2>
|
176
|
-
<h4 class="notoc box-title">Check your configuration at {{panel_config_file_name}}</h4>
|
177
|
-
<div class="box-description">
|
178
|
-
Don't worry about this. Maybe you've a typo in the panel configuration.
|
179
|
-
Check the panel config file for the unknown type. <br />
|
180
|
-
Check for something wrong like:
|
181
|
-
<div class="mt-2 mb-2">
|
182
|
-
<b>id: {{panel_settings.id}}</b> <br />
|
183
|
-
<b>type: {{panel_settings.type}}</b> <br />
|
184
|
-
<b>comment: {{panel_settings.comment}}</b>
|
185
|
-
</div>
|
186
|
-
</div>
|
187
|
-
</div>
|
188
|
-
</div>
|
189
|
-
</div>
|
190
|
-
</div> <!-- End panel {{panel_settings.id}} -->
|
191
|
-
</div> <!-- End exception_container -->
|
192
|
-
{% endunless %}
|
193
|
-
|
194
|
-
{% endcase %}
|
195
|
-
|
196
|
-
{% comment %} END footer boxes
|
197
|
-
---------------------------------------------------------------- {% endcomment %}
|
198
|
-
|
199
|
-
{% endfor %}
|
200
|
-
</div>
|
201
|
-
</div>
|
202
|
-
</div>
|
203
|
-
|
204
|
-
{% comment %} COLLECT|PLACE copyright|issue date information
|
205
|
-
---------------------------------------------------------------------- {% endcomment %}
|
206
|
-
<div class="copyright">
|
207
|
-
<div class="container">
|
208
|
-
<div class="row">
|
209
|
-
<!-- [INFO ] [j1.assets.data.footer ] [Enable horizontal list using id #inline] -->
|
210
|
-
<div class="col-md-10" id="inline">
|
211
|
-
{% include {{legal_statements}} legals=footer_options.legals %}
|
212
|
-
</div>
|
213
|
-
<div class="col-md-2">
|
214
|
-
{% include {{social_media_icons}} icons=footer_options.icons %}
|
215
|
-
</div>
|
216
|
-
</div>
|
217
|
-
</div>
|
218
|
-
</div>
|
219
|
-
|
220
|
-
</div>
|
221
|
-
|
222
|
-
{% endif %}
|
223
|
-
|
224
|
-
{% endfor %}
|
225
|
-
{% endfor %}
|
226
|
-
{% endfor %}
|
227
|
-
|
228
|
-
{% endcapture %}
|
229
|
-
|
230
|
-
{{ cache | pretty_print | remove:'<html><body>' | remove:'</body></html>' | strip_empty_lines }}
|
231
|
-
{% assign cache = nil %}
|
@@ -1,226 +0,0 @@
|
|
1
|
-
---
|
2
|
-
regenerate: true
|
3
|
-
---
|
4
|
-
{% capture cache %}
|
5
|
-
|
6
|
-
{% comment %}
|
7
|
-
# -----------------------------------------------------------------------------
|
8
|
-
# ~/assets/data/footer.html
|
9
|
-
# Liquid procedure to generate HTML (data) portion of the page footer for
|
10
|
-
# (fragmented) AJAX load
|
11
|
-
#
|
12
|
-
# Product/Info:
|
13
|
-
# https://jekyll.one
|
14
|
-
#
|
15
|
-
# Copyright (C) 2019 Juergen Adams
|
16
|
-
#
|
17
|
-
# J1 Template is licensed under the MIT License.
|
18
|
-
# See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
|
19
|
-
#
|
20
|
-
# -----------------------------------------------------------------------------
|
21
|
-
# Test data:
|
22
|
-
# {{ variable | debug }}
|
23
|
-
#
|
24
|
-
# -----------------------------------------------------------------------------
|
25
|
-
{% endcomment %}
|
26
|
-
|
27
|
-
<!-- [INFO ] [j1.assets.data.footer ] [Footer generated: {{site.time}}] -->
|
28
|
-
|
29
|
-
{% comment %} Liquid procedures
|
30
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
31
|
-
{% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %}
|
32
|
-
{% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
|
33
|
-
{% capture about_box %}themes/{{site.template.name}}/modules/footers/boxes/about_box.proc{% endcapture %}
|
34
|
-
{% capture news_box %}themes/{{site.template.name}}/modules/footers/boxes/news_box.proc{% endcapture %}
|
35
|
-
{% capture links_box %}themes/{{site.template.name}}/modules/footers/boxes/links_box.proc{% endcapture %}
|
36
|
-
{% capture contacts_box %}themes/{{site.template.name}}/modules/footers/boxes/contacts_box.proc{% endcapture %}
|
37
|
-
{% capture legal_statements %}themes/{{site.template.name}}/modules/footers/boxes/legal_statements.proc{% endcapture %}
|
38
|
-
{% capture social_media_icons %}themes/{{site.template.name}}/modules/footers/boxes/social_media_icons.proc{% endcapture %}
|
39
|
-
|
40
|
-
|
41
|
-
{% comment %} Process YML config data
|
42
|
-
================================================================================ {% endcomment %}
|
43
|
-
|
44
|
-
{% comment %} Set config files
|
45
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
46
|
-
{% assign footer_config_defaults = site.data.blocks.defaults.footer_new %}
|
47
|
-
{% assign footer_config_settings = site.data.blocks.footer_new %}
|
48
|
-
|
49
|
-
{% comment %} Set config data
|
50
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
51
|
-
{% assign footer_config_defaults = footer_config_defaults.defaults %}
|
52
|
-
{% assign footer_config_settings = footer_config_settings.settings %}
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
{% comment %} Variables
|
57
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
58
|
-
|
59
|
-
{% comment %} Set HELPER variables
|
60
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
61
|
-
{% capture footer_config_file_name %}~/_data/modules/footer.yml{% endcapture %}
|
62
|
-
|
63
|
-
|
64
|
-
{% comment %} Main
|
65
|
-
================================================================================ {% endcomment %}
|
66
|
-
{% for items in footer_config_settings %}
|
67
|
-
{% assign key = items[0] %}
|
68
|
-
{% assign value = items[1] %}
|
69
|
-
{% assign footer_config = value %}
|
70
|
-
|
71
|
-
{% for items in footer_config %}
|
72
|
-
{% for footers in items %}
|
73
|
-
|
74
|
-
{% if debug %} footers: {{ footers }} {% endif %}
|
75
|
-
|
76
|
-
|
77
|
-
{% comment %} parse settings for MAIN keys
|
78
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
79
|
-
{% for footer in footers %}
|
80
|
-
{% assign data_type = footer | is_type %}
|
81
|
-
{% if data_type == 'hash' %}
|
82
|
-
{% assign footer_settings = footer %}
|
83
|
-
|
84
|
-
{% assign id = footer_settings.id %}
|
85
|
-
{% assign enabled = footer_settings.enabled %}
|
86
|
-
{% assign type = footer_settings.type %}
|
87
|
-
{% assign theme = footer_settings.theme %}
|
88
|
-
{% assign issue = footer_settings.issue %}
|
89
|
-
{% assign icons = footer_settings.icons %}
|
90
|
-
{% assign legals = footer_settings.legals %}
|
91
|
-
{% assign boxes = footer_settings.boxes %}
|
92
|
-
|
93
|
-
{% endif %}
|
94
|
-
{% endfor %}
|
95
|
-
|
96
|
-
{% comment %} <!-- footer_settings.boxes: {{ footer_settings.boxes }} --> {% endcomment %}
|
97
|
-
|
98
|
-
|
99
|
-
{% comment %} process current footer
|
100
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
101
|
-
{% if footer_settings.enabled %}
|
102
|
-
|
103
|
-
{% assign enabled_boxes = 0 %}
|
104
|
-
{% assign footer_options = footer_config_defaults.footer | merge: footer_settings %}
|
105
|
-
{% if debug %} <!-- footer_options: {{ footer_options }} --> {% endif %}
|
106
|
-
|
107
|
-
{% comment %} Calculate number of enabled footer boxes
|
108
|
-
------------------------------------------------------------------------ {% endcomment %}
|
109
|
-
{% for property in footer_options.boxes %}
|
110
|
-
{% if debug %} <!-- property: {{property}} --> {% endif %}
|
111
|
-
{% if property.enabled %} {% assign enabled_boxes = enabled_boxes | plus:1 %} {% endif %}
|
112
|
-
{% endfor %}
|
113
|
-
{% assign footer_box_width_md = 12 | divided_by:enabled_boxes %}
|
114
|
-
<!-- [INFO ] [j1.assets.data.footer ] [Set footer box column width to: {{ footer_box_width_md }}] -->
|
115
|
-
|
116
|
-
<div id="{{footer_config_defaults.container-id}}" class="{{footer_options.theme}}">
|
117
|
-
<div class="footer">
|
118
|
-
|
119
|
-
<div class="container">
|
120
|
-
<div class="row">
|
121
|
-
|
122
|
-
{% comment %} Collect footer config data
|
123
|
-
------------------------------------------------------------------ {% endcomment %}
|
124
|
-
{% for box in footer_options.boxes %}
|
125
|
-
|
126
|
-
{% comment %} COLLECT|PLACE footer boxes
|
127
|
-
---------------------------------------------------------------- {% endcomment %}
|
128
|
-
{% case box.type %}
|
129
|
-
|
130
|
-
{% comment %} PLACE AboutBox
|
131
|
-
---------------------------------------------------------------- {% endcomment %}
|
132
|
-
{% when 'about' %}
|
133
|
-
{% if box.enabled %}
|
134
|
-
{% include {{about_box}} title=box.title text=box.text %}
|
135
|
-
{% endif %}
|
136
|
-
|
137
|
-
{% comment %} PLACE NewsBox
|
138
|
-
---------------------------------------------------------------- {% endcomment %}
|
139
|
-
{% when 'news' %}
|
140
|
-
{% if box.enabled %}
|
141
|
-
{% include {{news_box}} category=box.category max_posts=box.max_posts posts=site.posts %}
|
142
|
-
{% endif %}
|
143
|
-
|
144
|
-
{% comment %} PLACE LinksBox
|
145
|
-
--------------------------------------------------------------- {% endcomment %}
|
146
|
-
{% when 'references' %}
|
147
|
-
{% if box.enabled %}
|
148
|
-
{% include {{links_box}} links=box.links %}
|
149
|
-
{% endif %}
|
150
|
-
|
151
|
-
{% comment %} PLACE ContactsBox
|
152
|
-
--------------------------------------------------------------- {% endcomment %}
|
153
|
-
{% when 'contact' %}
|
154
|
-
{% if box.enabled %}
|
155
|
-
{% include {{contacts_box}} %}
|
156
|
-
{% endif %}
|
157
|
-
|
158
|
-
{% else %}
|
159
|
-
{% comment %} Collect EXCEPTION
|
160
|
-
-------------------------------------------------------------- {% endcomment %}
|
161
|
-
{% unless box.type == 'exception_container' %}
|
162
|
-
<div id="exception_container">
|
163
|
-
<div id="{{panel_settings.id}}" class="container-fluid no-padding">
|
164
|
-
<div class="col-md-12 col-sm-12 col-xs-12 no-padding">
|
165
|
-
<div class="box">
|
166
|
-
<div class="content content-danger">
|
167
|
-
<h2 class="notoc">
|
168
|
-
<i class="mdi mdi-alarm-light mdi-3x mdi-md-red mr-1"></i>
|
169
|
-
panel of type <big>{{panel_settings.type}}</big> not found
|
170
|
-
</h2>
|
171
|
-
<h4 class="notoc box-title">Check your configuration at {{panel_config_file_name}}</h4>
|
172
|
-
<div class="box-description">
|
173
|
-
Don't worry about this. Maybe you've a typo in the panel configuration.
|
174
|
-
Check the panel config file for the unknown type. <br />
|
175
|
-
Check for something wrong like:
|
176
|
-
<div class="mt-2 mb-2">
|
177
|
-
<b>id: {{panel_settings.id}}</b> <br />
|
178
|
-
<b>type: {{panel_settings.type}}</b> <br />
|
179
|
-
<b>comment: {{panel_settings.comment}}</b>
|
180
|
-
</div>
|
181
|
-
</div>
|
182
|
-
</div>
|
183
|
-
</div>
|
184
|
-
</div>
|
185
|
-
</div> <!-- End panel {{panel_settings.id}} -->
|
186
|
-
</div> <!-- End exception_container -->
|
187
|
-
{% endunless %}
|
188
|
-
|
189
|
-
{% endcase %}
|
190
|
-
|
191
|
-
{% comment %} END footer boxes
|
192
|
-
---------------------------------------------------------------- {% endcomment %}
|
193
|
-
|
194
|
-
{% endfor %}
|
195
|
-
</div>
|
196
|
-
</div>
|
197
|
-
</div>
|
198
|
-
|
199
|
-
{% comment %} COLLECT|PLACE copyright|issue date information
|
200
|
-
---------------------------------------------------------------------- {% endcomment %}
|
201
|
-
<div class="copyright">
|
202
|
-
<div class="container">
|
203
|
-
<div class="row">
|
204
|
-
<!-- [INFO ] [j1.assets.data.footer ] [Enable horizontal list using id #inline] -->
|
205
|
-
<div class="col-md-10" id="inline">
|
206
|
-
{% include {{legal_statements}} legals=footer_options.legals %}
|
207
|
-
</div>
|
208
|
-
<div class="col-md-2">
|
209
|
-
{% include {{social_media_icons}} icons=footer_options.icons %}
|
210
|
-
</div>
|
211
|
-
</div>
|
212
|
-
</div>
|
213
|
-
</div>
|
214
|
-
|
215
|
-
</div>
|
216
|
-
|
217
|
-
{% endif %}
|
218
|
-
|
219
|
-
{% endfor %}
|
220
|
-
{% endfor %}
|
221
|
-
{% endfor %}
|
222
|
-
|
223
|
-
{% endcapture %}
|
224
|
-
|
225
|
-
{{ cache | pretty_print | remove:'<html><body>' | remove:'</body></html>' | strip_empty_lines }}
|
226
|
-
{% assign cache = nil %}
|
@@ -1,222 +0,0 @@
|
|
1
|
-
---
|
2
|
-
regenerate: true
|
3
|
-
---
|
4
|
-
{% capture cache %}
|
5
|
-
|
6
|
-
{% comment %}
|
7
|
-
# -----------------------------------------------------------------------------
|
8
|
-
# ~/assets/data/footer.html
|
9
|
-
# Liquid procedure to generate HTML (data) portion of the page footer for
|
10
|
-
# (fragmented) AJAX load
|
11
|
-
#
|
12
|
-
# Product/Info:
|
13
|
-
# https://jekyll.one
|
14
|
-
#
|
15
|
-
# Copyright (C) 2019 Juergen Adams
|
16
|
-
#
|
17
|
-
# J1 Template is licensed under the MIT License.
|
18
|
-
# See: https://github.com/jekyll-one-org/j1_template/blob/master/LICENSE
|
19
|
-
#
|
20
|
-
# -----------------------------------------------------------------------------
|
21
|
-
# Test data:
|
22
|
-
# {{ variable | debug }}
|
23
|
-
#
|
24
|
-
# -----------------------------------------------------------------------------
|
25
|
-
{% endcomment %}
|
26
|
-
|
27
|
-
<!-- [INFO ] [j1.assets.data.footer ] [Footer generated: {{site.time}}] -->
|
28
|
-
|
29
|
-
{% comment %} Liquid procedures
|
30
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
31
|
-
{% capture select_color %}themes/{{site.template.name}}/procedures/global/select_color.proc{% endcapture %}
|
32
|
-
{% capture select_icon_size %}themes/{{site.template.name}}/procedures/global/select_icon_size.proc{% endcapture %}
|
33
|
-
{% capture about_box %}themes/{{site.template.name}}/modules/footers/boxes/about_box.proc{% endcapture %}
|
34
|
-
{% capture news_box %}themes/{{site.template.name}}/modules/footers/boxes/news_box.proc{% endcapture %}
|
35
|
-
{% capture links_box %}themes/{{site.template.name}}/modules/footers/boxes/links_box.proc{% endcapture %}
|
36
|
-
{% capture contacts_box %}themes/{{site.template.name}}/modules/footers/boxes/contacts_box.proc{% endcapture %}
|
37
|
-
{% capture legal_statements %}themes/{{site.template.name}}/modules/footers/boxes/legal_statements.proc{% endcapture %}
|
38
|
-
{% capture social_media_icons %}themes/{{site.template.name}}/modules/footers/boxes/social_media_icons.proc{% endcapture %}
|
39
|
-
|
40
|
-
{% comment %} Variables
|
41
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
42
|
-
|
43
|
-
{% comment %} Set config data
|
44
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
45
|
-
{% assign footer_config_file = site.data.modules.j1_footer %}
|
46
|
-
{% assign footer_config = footer_config_file.footer %}
|
47
|
-
|
48
|
-
{% comment %} Set global settings
|
49
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
50
|
-
{% assign footer_id = footer_config_file.global.id %}
|
51
|
-
{% assign footer_theme = footer_config_file.global.theme %}
|
52
|
-
|
53
|
-
{% comment %} Set base icons and sizes
|
54
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
55
|
-
<!-- [INFO ] [j1.assets.data.footer ] [initialize default menu icon properties] -->
|
56
|
-
{% assign nav_menu_icon_family = nav_menu_options.icon_family %}
|
57
|
-
{% assign nav_menu_icon_style = nav_menu_options.icon_style %}
|
58
|
-
{% assign nav_menu_icon_color = nav_menu_options.icon_color %}
|
59
|
-
{% assign nav_menu_icon_size = nav_menu_options.icon_size %}
|
60
|
-
|
61
|
-
{% assign icon_family = nav_menu_icon_family | strip | downcase %}
|
62
|
-
|
63
|
-
{% if icon_family == 'fontawesome' or icon_family == 'fontawesome5' %}
|
64
|
-
{% assign nav_menu_icon_family = 'fa' %}
|
65
|
-
{% assign nav_menu_icon_style = nav_menu_icon_style %}
|
66
|
-
{% elsif icon_family == 'mdi' %}
|
67
|
-
{% assign nav_menu_icon_family = 'mdi' %}
|
68
|
-
{% assign nav_menu_icon_style = nav_menu_icon_style %}
|
69
|
-
{% else %}
|
70
|
-
{% assign nav_menu_icon_family = 'mdi' %}
|
71
|
-
{% assign nav_menu_icon_style = nav_menu_icon_style %}
|
72
|
-
{% endif %}
|
73
|
-
|
74
|
-
{% include {{select_color}} color=nav_menu_icon_color fallback="#9E9E9E" %}
|
75
|
-
{% assign nav_menu_icon_color = color %}
|
76
|
-
|
77
|
-
{% include {{select_icon_size}} family=nav_menu_icon_family size=nav_menu_icon_size %}
|
78
|
-
{% assign nav_menu_icon_size = size %}
|
79
|
-
|
80
|
-
|
81
|
-
{% comment %} Main
|
82
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
83
|
-
{% assign enabled_boxes = 0 %}
|
84
|
-
|
85
|
-
{% comment %} Calculate number of enabled FooterBoxes
|
86
|
-
-------------------------------------------------------------------------------- {% endcomment %}
|
87
|
-
{% for item in footer_config %}
|
88
|
-
{% if item.footer_box %}
|
89
|
-
{% for boxes in item.footer_box %}
|
90
|
-
{% for box in boxes %}
|
91
|
-
{% for property in box %}
|
92
|
-
{% if property.enabled %} {% assign enabled_boxes = enabled_boxes | plus:1 %} {% endif %}
|
93
|
-
{% endfor %}
|
94
|
-
{% endfor %}
|
95
|
-
{% endfor %}
|
96
|
-
{% endif %}
|
97
|
-
{% endfor %}
|
98
|
-
{% assign footer_box_width_md = 12 | divided_by:enabled_boxes %}
|
99
|
-
<!-- [INFO ] [j1.assets.data.footer ] [Set footer column width to: {{ footer_box_width_md }}] -->
|
100
|
-
|
101
|
-
<div id="{{footer_id}}" class="{{footer_theme}}">
|
102
|
-
<div class="footer">
|
103
|
-
|
104
|
-
<div class="container">
|
105
|
-
<div class="row">
|
106
|
-
|
107
|
-
{% comment %} Collect footer config data
|
108
|
-
-------------------------------------------------------------------------- {% endcomment %}
|
109
|
-
{% for item in footer_config %}
|
110
|
-
{% for box in item.footer_box %}
|
111
|
-
{% for item in box %}
|
112
|
-
{% assign box_type = item[1].type %}
|
113
|
-
{% assign box_enabled = item[1].enabled %}
|
114
|
-
{% assign title = item[1].title %}
|
115
|
-
{% assign address = item[1].address.enabled %}
|
116
|
-
{% assign address_1 = item[1].address.address_1 %}
|
117
|
-
{% assign address_2 = item[1].address.address_2 %}
|
118
|
-
{% assign phone = item[1].phone.enabled %}
|
119
|
-
{% assign phone_1 = item[1].phone.phone_1 %}
|
120
|
-
{% assign phone_2 = item[1].phone.phone_2 %}
|
121
|
-
{% assign internet = item[1].internet.enabled %}
|
122
|
-
{% assign mail = item[1].internet.mail %}
|
123
|
-
{% assign www = item[1].internet.www %}
|
124
|
-
{% assign text = item[1].text %}
|
125
|
-
{% assign align = item[1].align %}
|
126
|
-
{% assign posts_category = item[1].selected_category %}
|
127
|
-
{% assign max_posts = item[1].max_posts %}
|
128
|
-
{% assign links = item[1].links %}
|
129
|
-
|
130
|
-
|
131
|
-
{% comment %} COLLECT|PLACE footer boxes
|
132
|
-
-------------------------------------------------------------------- {% endcomment %}
|
133
|
-
{% case box_type %}
|
134
|
-
|
135
|
-
{% comment %} PLACE AboutBox
|
136
|
-
-------------------------------------------------------------------- {% endcomment %}
|
137
|
-
{% when 'AboutBox' %}
|
138
|
-
{% if box_enabled %} {% include {{about_box}} %} {% endif %}
|
139
|
-
|
140
|
-
{% comment %} PLACE NewsBox
|
141
|
-
-------------------------------------------------------------------- {% endcomment %}
|
142
|
-
{% when 'NewsBox' %}
|
143
|
-
{% if box_enabled %}
|
144
|
-
{% assign posts_collate = site.posts %}
|
145
|
-
{% include {{news_box}} category=posts_category max_posts=max_posts items=posts_collate %}
|
146
|
-
{% endif %}
|
147
|
-
|
148
|
-
{% comment %} PLACE LinksBox
|
149
|
-
-------------------------------------------------------------------- {% endcomment %}
|
150
|
-
{% when 'LinksBox' %}
|
151
|
-
{% if box_enabled %}
|
152
|
-
{% include {{links_box}} links=links %}
|
153
|
-
{% endif %}
|
154
|
-
|
155
|
-
{% comment %} PLACE ContactsBox
|
156
|
-
-------------------------------------------------------------------- {% endcomment %}
|
157
|
-
{% when 'ContactsBox' %}
|
158
|
-
{% if box_enabled %}
|
159
|
-
{% include {{contacts_box}} %}
|
160
|
-
{% endif %}
|
161
|
-
|
162
|
-
{% else %}
|
163
|
-
{% comment %} Exception: no footer box of given type found
|
164
|
-
------------------------------------------------------------------ {% endcomment %}
|
165
|
-
<div class="row">
|
166
|
-
<div class="col-md-6 col-md-offset-3">
|
167
|
-
<div class="card raised-z10 mt-5">
|
168
|
-
<div class="content content-danger">
|
169
|
-
<h4 class="notoc">
|
170
|
-
<i class="zmdi zmdi-alert-triangle zmdi-hc-3x pl-3"></i>
|
171
|
-
Footer Box <i>{{type}}</i> not found
|
172
|
-
</h4>
|
173
|
-
<h4 class="notoc card-title">Check your configuration</h4>
|
174
|
-
<div class="card-description">
|
175
|
-
Don't worry about this. May you've a typo in the panel's configuration.
|
176
|
-
Check the panel config file for the unknown type. A line contains
|
177
|
-
something wrong like 'type: {{type}}'. Have a look at:
|
178
|
-
</div>
|
179
|
-
<div class="mb-5">
|
180
|
-
<h5 class="notoc">{{footer_config}}</h5>
|
181
|
-
</div>
|
182
|
-
</div>
|
183
|
-
</div>
|
184
|
-
</div>
|
185
|
-
</div>
|
186
|
-
|
187
|
-
{% endcase %}
|
188
|
-
|
189
|
-
{% comment %} END footer boxes
|
190
|
-
-------------------------------------------------------------------- {% endcomment %}
|
191
|
-
|
192
|
-
{% endfor %}
|
193
|
-
{% endfor %}
|
194
|
-
{% endfor %}
|
195
|
-
</div> <!-- end row -->
|
196
|
-
</div> <!-- end container -->
|
197
|
-
|
198
|
-
</div> <!-- end footer main -->
|
199
|
-
|
200
|
-
{% comment %} COLLECT|PLACE copyright|issue date information
|
201
|
-
------------------------------------------------------------------------------ {% endcomment %}
|
202
|
-
<div class="copyright">
|
203
|
-
<div class="container">
|
204
|
-
<div class="row">
|
205
|
-
<!-- [INFO ] [j1.assets.data.footer ] [Enable horizontal list using id #inline] -->
|
206
|
-
<div class="col-md-10" id="inline">
|
207
|
-
{% include {{legal_statements}} footer_config=footer_config %}
|
208
|
-
</div>
|
209
|
-
<div class="col-md-2">
|
210
|
-
{% include {{social_media_icons}} footer_config=footer_config %}
|
211
|
-
</div>
|
212
|
-
</div> <!-- End Container -->
|
213
|
-
</div>
|
214
|
-
</div> <!-- End Copyright -->
|
215
|
-
|
216
|
-
</div> <!-- end footer -->
|
217
|
-
|
218
|
-
{% endcapture %}
|
219
|
-
|
220
|
-
{{ cache | pretty_print | remove:'<html><body>' | remove:'</body></html>' | strip_empty_lines }}
|
221
|
-
{% assign cache = nil %}
|
222
|
-
|