j1-template 2021.1.19 → 2021.1.20

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 (56) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/default.html +3 -120
  3. data/assets/data/cookieconsent.html +7 -4
  4. data/assets/data/gallery_customizer.html +106 -19
  5. data/assets/data/quicklinks.html +0 -2
  6. data/assets/data/rtext_resizer.html +130 -0
  7. data/assets/themes/j1/adapter/js/clipboard.js +26 -4
  8. data/assets/themes/j1/adapter/js/j1.js +9 -3
  9. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +17 -27
  10. data/assets/themes/j1/adapter/js/rtextResizer.js +293 -0
  11. data/assets/themes/j1/core/js/template.js +1 -1
  12. data/assets/themes/j1/core/js/template.js.map +1 -1
  13. data/assets/themes/j1/core/js/template.min.js +1 -1
  14. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  15. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.js +7 -0
  16. data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.js +56 -44
  17. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +1 -1
  18. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +1 -1
  19. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +12 -2
  20. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +1 -1
  21. data/assets/themes/j1/modules/twemoji/css/picker/twemoji-picker.css +1 -1
  22. data/assets/themes/j1/modules/twemoji/css/picker/twemoji-picker.min.css +1 -1
  23. data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.js +35 -6
  24. data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.min.js +1 -1
  25. data/lib/j1/version.rb +1 -1
  26. data/lib/starter_web/Gemfile +1 -1
  27. data/lib/starter_web/_config.yml +1 -1
  28. data/lib/starter_web/_data/_defaults/resources.yml +29 -11
  29. data/lib/starter_web/_data/apps/justifiedGallery.yml +40 -0
  30. data/lib/starter_web/_data/blocks/footer.yml +3 -5
  31. data/lib/starter_web/_data/resources.yml +24 -3
  32. data/lib/starter_web/_includes/attributes.asciidoc +4 -2
  33. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  34. data/lib/starter_web/assets/images/modules/attics/franck-1920x1280.jpg +0 -0
  35. data/lib/starter_web/assets/images/pages/roundtrip/500_themes/themes-menu-1280x800.jpg +0 -0
  36. data/lib/starter_web/assets/images/pages/videos/szabo-viktor-1920x1280.jpg +0 -0
  37. data/lib/starter_web/assets/videos/tiktok/einhorn.jpg +0 -0
  38. data/lib/starter_web/assets/videos/tiktok/waluschka.jpg +0 -0
  39. data/lib/starter_web/package.json +1 -1
  40. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +4 -1
  41. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +2 -0
  42. data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +2 -2
  43. data/lib/starter_web/pages/public/legal/de/100_impress.adoc +1 -1
  44. data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +272 -126
  45. data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +27 -50
  46. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +243 -198
  47. data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +338 -275
  48. data/lib/starter_web/pages/public/previewer/rouge.adoc +1 -1
  49. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +3 -3
  50. data/lib/starter_web/pages/public/tictok.adoc +127 -0
  51. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  52. data/lib/starter_web/utilsrv/package.json +1 -1
  53. metadata +10 -5
  54. data/assets/themes/j1/modules/kofax.7z +0 -0
  55. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.new.js +0 -111
  56. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.old.js +0 -103
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1123ba1664201396a2a746e6a9ecc45fe624d06648cd2e55da400f2d996c738d
4
- data.tar.gz: cc6ebb01e986b5e52cf87ba142161dd1542177331576b55ad9877199b64f54ed
3
+ metadata.gz: 51ecc688c61c30398bf7f60daddbfa196364746b46d1acbb70c239ac694053ae
4
+ data.tar.gz: 502cb2fa06f3d3a36e567136622bc7380b02515686bec6908569a60df3f33d86
5
5
  SHA512:
6
- metadata.gz: 74fc43c1b71a114844d7e384f9384ad6c5366a3b45aee4400e01afa7bfa0c0dc6cd86a4d5a4307fcf0d60170ff2886065faa7646e8f28863503a16002bd0be2b
7
- data.tar.gz: 9f0372eb8e5fd1541b94616d8c121eaf0e80d61a6adeb190af9c8bc862244fe44b63d516adc73888ff6cdb17c30c219639ab1a8da2bcc86c27263169e4c9a39d
6
+ metadata.gz: 4be3c494e1907ff3768a47ebe10cfce678f6e6a71df2d8c45d41920e17d1b3384bca928b2b221f9ce4ab4672534740e19d9580943a8d8043af231dd27e049350
7
+ data.tar.gz: 7fb913619b313f5dd8ec15648fce0e9466eb71599d3ac8cdd093ac453be8984216ab8f468f1aca32bf43eb401b747c1a3af1faee80a1834f1651b3ace7a4a34a
@@ -224,127 +224,10 @@ layout: compress
224
224
  <div id="{{webhook_options.xhr_container_id}}"></div>
225
225
  {% endif %}
226
226
 
227
- {% comment %} Place container for R-Text resizer modals (deactivated)
228
- ------------------------------------------------------------------------------
229
- <!-- [INFO ] [j1.layout.default.html ] [ place container for R-Text resizer modals ] -->
230
- <div id="rtext_resizer">
231
- <div class="modal fade right" id="fluidModalRTextResizer" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
232
- <div class="modal-dialog modal-side modal-top-right modal-notify modal-success" role="document">
233
- <!-- Content -->
234
- <div class="modal-content">
235
- <!--Header-->
236
- <div class="modal-header">
237
- <p class="lead">Text Resizer</p>
238
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
239
- <i class="mdi mdi-close mdi-dark mdi-48px"></i>
240
- </button>
241
- </div>
242
- <!-- Body -->
243
- <div class="modal-body">
244
- <div class="text align-left">
245
- <p>
246
- Change the text size for the main window by the switches from below:
247
- </p>
248
- </div>
249
- <div class="ml-3 mt-5 mb-5">
250
- <div class="switch">
251
- <label>
252
- <input id="textsize-300" name="textsize-300" type="checkbox" checked>
253
- 300 - Default Size
254
- </label>
255
- </div>
256
- <div class="switch">
257
- <label>
258
- <input id="textsize-400" name="textsize-400" type="checkbox">
259
- 400 - Larger Size
260
- </label>
261
- </div>
262
- <div class="switch">
263
- <label>
264
- <input id="textsize-500" name="textsize-500" type="checkbox">
265
- 500 - Largest Size
266
- </label>
267
- </div>
268
- </div>
269
- </div>
270
- <!-- END Content -->
271
- </div>
272
- </div>
273
- </div>
274
- <!-- [INFO ] [j1.layout.default.html ] [ end modals for r-text resizer ] -->
275
- ------------------------------------------------------------------------------ {% endcomment %}
276
-
277
- {% comment %} JS for R-Text (deactivated)
278
- ------------------------------------------------------------------------------
279
- <!-- [INFO ] [j1.layout.default.html ] [ place JS for R-Text resizer modals ] -->
280
- <script>
281
- // Set global variables
282
- var environment = '{{environment}}';
283
- var logger = log4javascript.getLogger('j1.template.rtext-resizer');
284
- var $el = $("main[class*='r-text']");
285
- var base_classes = $("main[class*='r-text']").attr('class').replace(/r-text-[0-9]*/g, '');
286
- var r_text_default = ' r-text-300';
287
- var r_text_larger = ' r-text-400';
288
- var r_text_largest = ' r-text-500';
289
- var cl;
290
- var value;
291
-
292
- $('input:checkbox[name="textsize-300"]').on('click', function (e) {
293
- value = $(this).is(':checked');
294
-
295
- $('input:checkbox[name="textsize-400"]').prop('checked', false);
296
- $('input:checkbox[name="textsize-500"]').prop('checked', false);
297
-
298
- if (value == true) {
299
- cl = r_text_default;
300
- }
301
- $el.attr('class', base_classes + cl);
302
-
303
- if(environment === 'development') {
304
- logText = 'Changed textsize to: ' +cl;
305
- logger.info(logText);
306
- }
307
- e.stopPropagation();
308
- });
309
-
310
- $('input:checkbox[name="textsize-400"]').on('click', function (e) {
311
- value = $(this).is(':checked');
312
-
313
- $('input:checkbox[name="textsize-300"]').prop('checked', false);
314
- $('input:checkbox[name="textsize-500"]').prop('checked', false);
315
-
316
- if (value == true) {
317
- cl = r_text_larger;
318
- }
319
- $el.attr('class', base_classes + cl);
320
-
321
- if(environment === 'development') {
322
- logText = 'Changed textsize to: ' +cl;
323
- logger.info(logText);
324
- }
325
- e.stopPropagation();
326
- });
327
-
328
- $('input:checkbox[name="textsize-500"]').on('click', function (e) {
329
- value = $(this).is(':checked');
330
-
331
- $('input:checkbox[name="textsize-300"]').prop('checked', false);
332
- $('input:checkbox[name="textsize-400"]').prop('checked', false);
333
-
334
- if (value == true) {
335
- cl = r_text_largest;
336
- }
337
- $el.attr('class', base_classes + cl);
338
-
339
- if(environment === 'development') {
340
- logText = 'Changed textsize to: ' +cl;
341
- logger.info(logText);
342
- }
343
- e.stopPropagation();
344
- });
345
- </script>
346
- <!-- [INFO ] [j1.layout.default.html ] [ end JS for r-text resizer ] -->
227
+ {% comment %} Place container for the r-text resizer
347
228
  ------------------------------------------------------------------------------ {% endcomment %}
229
+ <!-- [INFO ] [j1.layout.default.html ] [ place container for the r-text resizer modal ] -->
230
+ <div id="rtext_resizer_container"></div>
348
231
 
349
232
  {% comment %} Initialize Tooltips|Popovers
350
233
  ------------------------------------------------------------------------------ {% endcomment %}
@@ -61,6 +61,9 @@ exclude_from_search: true
61
61
  <meta name="robots" content="noindex, nofollow" />
62
62
  </head>
63
63
 
64
+ {% comment %} i18n: translations
65
+ -------------------------------------------------------------------------------- {% endcomment %}
66
+
64
67
  {% comment %} Modal cookie consent dialog (default: en-EN)
65
68
  -------------------------------------------------------------------------------- {% endcomment %}
66
69
  <div id="consent-data-en">
@@ -75,7 +78,7 @@ exclude_from_search: true
75
78
  </div>
76
79
  <p>
77
80
  <a href="#bccs-privacy" data-toggle="collapse" class="">Privacy Notice</a>
78
- <a href="#bccs-options" data-toggle="collapse" class="float-right">Settings</a>
81
+ <a href="#bccs-options" data-toggle="collapse" class="float-right">My Settings</a>
79
82
  </p>
80
83
 
81
84
  <div id="bccs-privacy" class="collapse">
@@ -85,7 +88,7 @@ exclude_from_search: true
85
88
  </div>
86
89
 
87
90
  <div id="bccs-options" class="collapse">
88
- <p class="tagline mt-4 mb-1"><b>Your settings</b></p>
91
+ <p class="tagline mt-4 mb-1"><b>Settings</b></p>
89
92
  <div class="d-inline-block g-width-50 g-height-2 bg-primary mb-3"></div>
90
93
 
91
94
  <div class="bccs-option" data-name="necessary">
@@ -164,7 +167,7 @@ exclude_from_search: true
164
167
  </div>
165
168
  <p>
166
169
  <a href="#bccs-privacy" data-toggle="collapse" class="">Datenschutzerklärung</a>
167
- <a href="#bccs-options" data-toggle="collapse" class="float-right">Einstellungen</a>
170
+ <a href="#bccs-options" data-toggle="collapse" class="float-right">Meine Einstellungen</a>
168
171
  </p>
169
172
 
170
173
  <div id="bccs-privacy" class="collapse">
@@ -174,7 +177,7 @@ exclude_from_search: true
174
177
  </div>
175
178
 
176
179
  <div id="bccs-options" class="collapse">
177
- <p class="tagline mt-4 mb-1"><b>Ihre Einstellungen</b></p>
180
+ <p class="tagline mt-4 mb-1"><b>Einstellungen</b></p>
178
181
  <div class="d-inline-block g-width-50 g-height-2 bg-primary mb-3"></div>
179
182
 
180
183
  <div class="bccs-option" data-name="necessary">
@@ -27,6 +27,10 @@ exclude_from_search: true
27
27
  {% comment %} Liquid procedures
28
28
  -------------------------------------------------------------------------------- {% endcomment %}
29
29
 
30
+ {% comment %} Set global settings
31
+ -------------------------------------------------------------------------------- {% endcomment %}
32
+ {% assign environment = site.environment %}
33
+
30
34
  {% comment %} Set config files
31
35
  -------------------------------------------------------------------------------- {% endcomment %}
32
36
  {% assign apps = site.data.apps %}
@@ -34,8 +38,6 @@ exclude_from_search: true
34
38
 
35
39
  {% comment %} Set config data
36
40
  -------------------------------------------------------------------------------- {% endcomment %}
37
- {% assign environment = site.environment %}
38
-
39
41
  {% assign customizer_defaults = apps.defaults.justifiedGalleryCustomizer.defaults %}
40
42
  {% assign customizer_settings = apps.justifiedGalleryCustomizer.settings %}
41
43
 
@@ -48,6 +50,14 @@ exclude_from_search: true
48
50
  {% assign production = true %}
49
51
  {% endif %}
50
52
 
53
+ {% comment %} i18n: language selection (supported languages: en|de)
54
+ -------------------------------------------------------------------------------- {% endcomment %}
55
+ {% if site.language == 'en' or site.language == 'de' %}
56
+ {% assign language = site.language %}
57
+ {% else %}
58
+ {% assign language = 'en' %}
59
+ {% endif %}
60
+
51
61
  <!-- [INFO ] [j1.assets.data.banner.html ] [ set meta data (robots) to exclude HTML datafiles from index ] -->
52
62
  <head>
53
63
  <meta name="robots" content="noindex, nofollow" />
@@ -57,10 +67,10 @@ exclude_from_search: true
57
67
  <div id="{{customizer_options.xhr_data_element}}">
58
68
 
59
69
  {% comment %} Main
60
- -------------------------------------------------------------------------------- {% endcomment %}
70
+ ------------------------------------------------------------------------------ {% endcomment %}
61
71
  <!-- [INFO ] [j1.gallery_customizer ] [Placement of the Drawer] -->
62
72
 
63
- <nav class="nav bmd-layout-container bmd-drawer-f-l">
73
+ <nav class="nav bmd-layout-container custom-size-300 bmd-drawer-f-l">
64
74
 
65
75
  <header class="bmd-layout-header">
66
76
  <div class="navbar navbar-dark bg-primary raised-z2 mb-2">
@@ -69,43 +79,47 @@ exclude_from_search: true
69
79
  </button>
70
80
  <ul class="nav navbar-nav">
71
81
  <li class="nav-item">
72
- <span class="navbar-text md-grey-900">Gallery: {{customizer_options.title}}</span>
82
+ <span class="navbar-text md-grey-900" style="font-size: x-large;">{{customizer_options.title}}</span>
73
83
  </li>
74
84
  </ul>
75
85
  </div>
76
86
  </header>
77
87
 
88
+ {% comment %} i18n: translations
89
+ ---------------------------------------------------------------------------- {% endcomment %}
90
+
91
+ {% if language == 'en' %}
78
92
  <div id="drw_customizer" class="bmd-layout-drawer bg-faded">
79
- <span class="navbar-brand ml-2 mb-3">Gallery Settings</span>
93
+ <span class="navbar-brand ml-2 mb-3">Settings</span>
80
94
  <form id="jg-customizer-form" class="form-horizontal">
81
95
 
82
96
  <div class="mdc-list-group">
83
- <div class="col-md-12">
84
97
 
98
+ <div class="col-md-12 mb-4">
85
99
  <div class="form-group">
86
100
  <label class="bmd-label-floating" for="rowHeight">Row Height [px]</label>
87
101
  <input id="rowHeight" name="rowHeight" class="form-control" type="number" value="{{customizer_options.gallery_settings.rowHeight}}">
88
- <span class="bmd-help">Preferred row height (min: 40px)</span>
102
+ <span class="bmd-help">Image line height (min: 100px)</span>
89
103
  </div>
90
104
  </div>
91
105
 
92
- <div class="col-md-12">
106
+ <!-- div class="col-md-12">
93
107
  <div class="form-group">
94
108
  <label class="bmd-label-floating" for="rowHeightMax">Row Height Max [px]</label>
95
109
  <input id="rowHeightMax" name="rowHeightMax" class="form-control" type="number" value="{{customizer_options.gallery_settings.maxRowHeight}}">
96
110
  <span class="bmd-help">Maximum row height</span>
97
111
  </div>
98
- </div>
112
+ </div-->
99
113
 
100
- <div class="col-md-12">
114
+ <div class="col-md-12 mb-4">
101
115
  <div class="form-group">
102
116
  <label class="bmd-label-floating" for="margins">Thumb Spacing [px]</label>
103
117
  <input id="margins" name="margins" class="form-control" type="number" value="{{customizer_options.gallery_settings.margins}}">
104
- <span class="bmd-help">Space between the images</span>
118
+ <span class="bmd-help">Space between the preview images</span>
105
119
  </div>
106
120
  </div>
107
121
 
108
- <div class="col-md-12">
122
+ <div class="col-md-12 mb-4">
109
123
  <div class="form-group">
110
124
  <label class="bmd-label-floating" for="border">Gallery Padding [px]</label>
111
125
  <input id="border" name="border" class="form-control" type="number" value="{{customizer_options.gallery_settings.border}}">
@@ -113,7 +127,7 @@ exclude_from_search: true
113
127
  </div>
114
128
  </div>
115
129
 
116
- <div class="ml-3 mt-5 mb-5">
130
+ <div class="ml-1 mt-5 mb-5">
117
131
  <div class="switch">
118
132
  <label>
119
133
  <input id="captions" name="captions" type="checkbox" checked>
@@ -143,13 +157,13 @@ exclude_from_search: true
143
157
  </div>
144
158
 
145
159
  <button type="button" name="reset-defaults"
146
- class="btn btn-raised btn-flex btn-primary ml-2"
147
- aria-label="Reset Button"
148
- style="min-width: 12rem">
149
- <i class="mdi mdi-close mdi-24px mdi-md_white mr-1"></i>Reset
160
+ class="btn btn-raised btn-flex btn-primary ml-2"
161
+ aria-label="Reset Button"
162
+ style="min-width: 12rem">
163
+ <i class="mdi mdi-close mdi-24px mdi-md_white mr-1"></i>
164
+ Reset
150
165
  </button>
151
166
 
152
-
153
167
  <!-- div class="mt-1">
154
168
  <a id="reset-defaults" href="#"
155
169
  class="btn btn-raised btn-flex btn-md btn-primary mr-2 mb-2" style="min-width: 10rem">
@@ -160,6 +174,79 @@ exclude_from_search: true
160
174
 
161
175
  </form>
162
176
  </div>
177
+ {% endif %}
178
+
179
+ {% if language == 'de' %}
180
+ <div id="drw_customizer" class="bmd-layout-drawer bg-faded">
181
+ <span class="navbar-brand ml-2 mb-3">Einstellungen</span>
182
+ <form id="jg-customizer-form" class="form-horizontal">
183
+
184
+ <div class="mdc-list-group">
185
+ <div class="col-md-12 mb-4">
186
+
187
+ <div class="form-group">
188
+ <label class="bmd-label-floating" for="rowHeight">Zeilenhöhe [px]</label>
189
+ <input id="rowHeight" name="rowHeight" class="form-control" type="number" value="{{customizer_options.gallery_settings.rowHeight}}">
190
+ <span class="bmd-help">Höhe einer Bildzeile (min: 100px)</span>
191
+ </div>
192
+ </div>
193
+
194
+ <div class="col-md-12 mb-4">
195
+ <div class="form-group">
196
+ <label class="bmd-label-floating" for="margins">Bildabstand [px]</label>
197
+ <input id="margins" name="margins" class="form-control" type="number" value="{{customizer_options.gallery_settings.margins}}">
198
+ <span class="bmd-help">Abstände der Vorschaubilder</span>
199
+ </div>
200
+ </div>
201
+
202
+ <div class="col-md-12 mb-4">
203
+ <div class="form-group">
204
+ <label class="bmd-label-floating" for="border">Gallerierahmen [px]</label>
205
+ <input id="border" name="border" class="form-control" type="number" value="{{customizer_options.gallery_settings.border}}">
206
+ <span class="bmd-help">Randgröße um die Gallerie</span>
207
+ </div>
208
+ </div>
209
+
210
+ <div class="ml-1 mt-5 mb-5">
211
+ <div class="switch">
212
+ <label>
213
+ <input id="captions" name="captions" type="checkbox" checked>
214
+ Untertitel aktivieren
215
+ </label>
216
+ </div>
217
+ <div class="switch">
218
+ <label>
219
+ <input id="random" name="random" type="checkbox">
220
+ Zufällige Bildanzeige
221
+ </label>
222
+ </div>
223
+ <div class="switch">
224
+ <label>
225
+ <input id="justify_last_row" name="justify_last_row" type="checkbox">
226
+ Letzte Reihe ausrichten
227
+ </label>
228
+ </div>
229
+ <div class="switch">
230
+ <label>
231
+ <input id="hide_last_row" name="hide_last_row" type="checkbox">
232
+ Letzte Reihe ausblenden
233
+ </label>
234
+ </div>
235
+ </div>
236
+
237
+ </div>
238
+
239
+ <button type="button" name="reset-defaults"
240
+ class="btn btn-raised btn-flex btn-primary ml-2"
241
+ aria-label="Reset Button"
242
+ style="min-width: 12rem">
243
+ <i class="mdi mdi-close mdi-24px mdi-md_white mr-1"></i>
244
+ Zurücksetzen
245
+ </button>
246
+
247
+ </form>
248
+ </div>
249
+ {% endif %}
163
250
 
164
251
  <!-- main content -->
165
252
  <div class="bmd-layout-content">
@@ -64,8 +64,6 @@ exclude_from_search: true
64
64
  {% assign quicklinks_options = nav_quicklinks_defaults | merge: nav_quicklinks_settings %}
65
65
  {% assign consent_options = consent_defaults | merge: consent_settings %}
66
66
 
67
- consent_options: {{ consent_options | debug }}
68
-
69
67
  {% comment %} Control Center disabled
70
68
  --------------------------------------------------------------------------------
71
69
  {% assign cc_app_config_options = cc_app_config_defaults | merge: cc_app_config_settings %}
@@ -0,0 +1,130 @@
1
+ ---
2
+ regenerate: true
3
+ exclude_from_search: true
4
+ ---
5
+ {% capture cache %}
6
+
7
+ {% comment %}
8
+ # -----------------------------------------------------------------------------
9
+ # ~/assets/data/rtext_resizer.html
10
+ # Liquid PROCEDURE to generate the HTML (data) portion used
11
+ # by J1 RText Resizer
12
+ #
13
+ # Product/Info:
14
+ # https://jekyll.one
15
+ #
16
+ # Copyright (C) 2021 Juergen Adams
17
+ #
18
+ # J1 Template is licensed under the MIT License.
19
+ # See: https://github.com/jekyll-one-org/J1 Template/blob/master/LICENSE
20
+ # -----------------------------------------------------------------------------
21
+ # Test data:
22
+ # liquid_var: {{ liquid_var | debug }}
23
+ # customizer_options: {{ customizer_options | debug }}
24
+ # -----------------------------------------------------------------------------
25
+ {% endcomment %}
26
+
27
+ {% comment %} Liquid procedures
28
+ -------------------------------------------------------------------------------- {% endcomment %}
29
+ {% comment %} Set global settings
30
+ -------------------------------------------------------------------------------- {% endcomment %}
31
+ {% assign environment = site.environment %}
32
+
33
+ {% comment %} Set config files
34
+ -------------------------------------------------------------------------------- {% endcomment %}
35
+ {% assign apps = site.data.apps %}
36
+ {% assign modules = site.data.modules %}
37
+
38
+ {% comment %} Set config data (currently NOT used)
39
+ --------------------------------------------------------------------------------
40
+ {% assign customizer_defaults = apps.defaults.justifiedGalleryCustomizer.defaults %}
41
+ {% assign customizer_settings = apps.justifiedGalleryCustomizer.settings %}
42
+
43
+ {% comment %} Set config options
44
+ -------------------------------------------------------------------------------- {% endcomment %}
45
+ {% assign customizer_options = customizer_defaults | merge: customizer_settings %}
46
+ -------------------------------------------------------------------------------- {% endcomment %}
47
+
48
+ {% assign production = false %}
49
+ {% if environment == 'prod' or environment == 'production' %}
50
+ {% assign production = true %}
51
+ {% endif %}
52
+
53
+ {% comment %} i18n: language selection (supported languages: en|de)
54
+ -------------------------------------------------------------------------------- {% endcomment %}
55
+ {% if site.language == 'en' or site.language == 'de' %}
56
+ {% assign language = site.language %}
57
+ {% else %}
58
+ {% assign language = 'en' %}
59
+ {% endif %}
60
+
61
+ {% assign language = 'en' %}
62
+
63
+ <!-- [INFO ] [j1.assets.data.banner.html ] [ set meta data (robots) to exclude HTML datafiles from index ] -->
64
+ <head>
65
+ <meta name="robots" content="noindex, nofollow" />
66
+ </head>
67
+
68
+ {% comment %} i18n: translations
69
+ -------------------------------------------------------------------------------- {% endcomment %}
70
+ <!-- div id for the resizer modal -->
71
+ <div id="rtext_resizer_modal">
72
+
73
+ {% if language == 'en' %}
74
+ <!-- [INFO ] [j1.rtext_resizer ] [HTML portion of the modal] -->
75
+ <div class="modal fade right" id="fluidModalRTextResizer" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
76
+ <div class="modal-dialog modal-side modal-top-right modal-notify modal-success" role="document">
77
+ <!-- Content -->
78
+ <div class="modal-content">
79
+ <!--Header-->
80
+ <div class="modal-header">
81
+ <p class="lead">Text Resizer</p>
82
+ <button type="button" class="close" data-dismiss="modal" aria-label="Close">
83
+ <i class="mdi mdi-close mdi-dark mdi-48px"></i>
84
+ </button>
85
+ </div>
86
+ <!-- Body -->
87
+ <div class="modal-body">
88
+ <div class="text align-left">
89
+ <p>
90
+ Change the text size for the main window by the switches from below:
91
+ </p>
92
+ </div>
93
+ <div class="ml-3 mt-5 mb-5">
94
+ <div class="switch">
95
+ <label>
96
+ <input id="textsize-300" name="textsize-300" type="checkbox" checked>
97
+ 300 - Default Size
98
+ </label>
99
+ </div>
100
+ <div class="switch">
101
+ <label>
102
+ <input id="textsize-400" name="textsize-400" type="checkbox">
103
+ 400 - Larger Size
104
+ </label>
105
+ </div>
106
+ <div class="switch">
107
+ <label>
108
+ <input id="textsize-500" name="textsize-500" type="checkbox">
109
+ 500 - Largest Size
110
+ </label>
111
+ </div>
112
+ </div>
113
+ </div>
114
+ <!-- END Content -->
115
+ </div>
116
+ </div>
117
+ </div>
118
+ <!-- [INFO ] [j1.layout.default.html ] [ end modals for r-text resizer ] -->
119
+ {% endif %}
120
+
121
+ </div>
122
+
123
+
124
+ {% endcapture %}
125
+ {% if production %}
126
+ {% capture _LINE_FEED %}{% endcapture %}{% if site.compress_html.ignore.envs contains jekyll.environment %}{{ cache | strip_html_comments }}{% else %}{% capture _content %}{{ cache | strip_html_comments }}{% endcapture %}{% assign _profile = site.compress_html.profile %}{% if site.compress_html.endings == "all" %}{% assign _endings = "html head body li dt dd p rt rp optgroup option colgroup caption thead tbody tfoot tr td th" | split: " " %}{% else %}{% assign _endings = site.compress_html.endings %}{% endif %}{% for _element in _endings %}{% capture _end %}</{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _end %}{% endfor %}{% if _profile and _endings %}{% assign _profile_endings = _content | size | plus: 1 %}{% endif %}{% for _element in site.compress_html.startings %}{% capture _start %}<{{ _element }}>{% endcapture %}{% assign _content = _content | remove: _start %}{% endfor %}{% if _profile and site.compress_html.startings %}{% assign _profile_startings = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.comments == "all" %}{% assign _comments = "<!-- -->" | split: " " %}{% else %}{% assign _comments = site.compress_html.comments %}{% endif %}{% if _comments.size == 2 %}{% capture _comment_befores %}.{{ _content }}{% endcapture %}{% assign _comment_befores = _comment_befores | split: _comments.first %}{% for _comment_before in _comment_befores %}{% if forloop.first %}{% continue %}{% endif %}{% capture _comment_outside %}{% if _carry %}{{ _comments.first }}{% endif %}{{ _comment_before }}{% endcapture %}{% capture _comment %}{% unless _carry %}{{ _comments.first }}{% endunless %}{{ _comment_outside | split: _comments.last | first }}{% if _comment_outside contains _comments.last %}{{ _comments.last }}{% assign _carry = false %}{% else %}{% assign _carry = true %}{% endif %}{% endcapture %}{% assign _content = _content | remove_first: _comment %}{% endfor %}{% if _profile %}{% assign _profile_comments = _content | size | plus: 1 %}{% endif %}{% endif %}{% assign _pre_befores = _content | split: "<pre" %}{% assign _content = "" %}{% for _pre_before in _pre_befores %}{% assign _pres = _pre_before | split: "</pre>" %}{% assign _pres_after = "" %}{% if _pres.size != 0 %}{% if site.compress_html.blanklines %}{% assign _lines = _pres.last | split: _LINE_FEED %}{% capture _pres_after %}{% for _line in _lines %}{% assign _trimmed = _line | split: " " | join: " " %}{% if _trimmed != empty or forloop.last %}{% unless forloop.first %}{{ _LINE_FEED }}{% endunless %}{{ _line }}{% endif %}{% endfor %}{% endcapture %}{% else %}{% assign _pres_after = _pres.last | split: " " | join: " " %}{% endif %}{% endif %}{% capture _content %}{{ _content }}{% if _pre_before contains "</pre>" %}<pre{{ _pres.first }}</pre>{% endif %}{% unless _pre_before contains "</pre>" and _pres.size == 1 %}{{ _pres_after }}{% endunless %}{% endcapture %}{% endfor %}{% if _profile %}{% assign _profile_collapse = _content | size | plus: 1 %}{% endif %}{% if site.compress_html.clippings == "all" %}{% assign _clippings = "html head title base link meta style body article section nav aside h1 h2 h3 h4 h5 h6 hgroup header footer address p hr blockquote ol ul li dl dt dd figure figcaption main div table caption colgroup col tbody thead tfoot tr td th" | split: " " %}{% else %}{% assign _clippings = site.compress_html.clippings %}{% endif %}{% for _element in _clippings %}{% assign _edges = " <e;<e; </e>;</e>;</e> ;</e>" | replace: "e", _element | split: ";" %}{% assign _content = _content | replace: _edges[0], _edges[1] | replace: _edges[2], _edges[3] | replace: _edges[4], _edges[5] %}{% endfor %}{% if _profile and _clippings %}{% assign _profile_clippings = _content | size | plus: 1 %}{% endif %}{{ _content }}{% if _profile %} <table id="compress_html_profile_{{ site.time | date: "%Y%m%d" }}" class="compress_html_profile"> <thead> <tr> <td>Step <td>Bytes <tbody> <tr> <td>raw <td>{{ cache | strip_html_comments | size }}{% if _profile_endings %} <tr> <td>endings <td>{{ _profile_endings }}{% endif %}{% if _profile_startings %} <tr> <td>startings <td>{{ _profile_startings }}{% endif %}{% if _profile_comments %} <tr> <td>comments <td>{{ _profile_comments }}{% endif %}{% if _profile_collapse %} <tr> <td>collapse <td>{{ _profile_collapse }}{% endif %}{% if _profile_clippings %} <tr> <td>clippings <td>{{ _profile_clippings }}{% endif %} </table>{% endif %}{% endif %}
127
+ {% else %}
128
+ {{ cache | pretty_print | remove:'<html><body>' | remove:'</body></html>' | strip_empty_lines }}
129
+ {% endif %}
130
+ {% assign cache = nil %}