j1-template 2021.1.18 → 2021.1.22

Sign up to get free protection for your applications and to get access to all the features.
Files changed (101) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/layouts/content_generator_post.html +2 -1
  3. data/_includes/themes/j1/layouts/layout_metadata_generator.html +3 -0
  4. data/_includes/themes/j1/procedures/global/attributes_loader.proc +4 -0
  5. data/_includes/themes/j1/procedures/posts/collate_timeline.proc +12 -7
  6. data/_includes/themes/j1/procedures/posts/create_series_header.proc +21 -11
  7. data/_layouts/default.html +3 -120
  8. data/assets/data/banner.html +19 -18
  9. data/assets/data/cookieconsent.html +7 -4
  10. data/assets/data/gallery_customizer.html +106 -19
  11. data/assets/data/panel.html +30 -19
  12. data/assets/data/quicklinks.html +0 -2
  13. data/assets/data/rtext_resizer.html +130 -0
  14. data/assets/error_pages/HTTP204.html +3 -1
  15. data/assets/error_pages/HTTP400.html +3 -1
  16. data/assets/error_pages/HTTP401.html +3 -1
  17. data/assets/error_pages/HTTP403.html +3 -1
  18. data/assets/error_pages/HTTP404.html +3 -1
  19. data/assets/error_pages/HTTP444.html +3 -1
  20. data/assets/error_pages/HTTP500.html +3 -1
  21. data/assets/error_pages/HTTP501.html +3 -1
  22. data/assets/error_pages/HTTP502.html +3 -1
  23. data/assets/error_pages/HTTP503.html +6 -2
  24. data/assets/themes/j1/adapter/js/clipboard.js +26 -4
  25. data/assets/themes/j1/adapter/js/cookieConsent.js +19 -2
  26. data/assets/themes/j1/adapter/js/j1.js +38 -2
  27. data/assets/themes/j1/adapter/js/justifiedGalleryCustomizer.js +17 -27
  28. data/assets/themes/j1/adapter/js/rtextResizer.js +293 -0
  29. data/assets/themes/j1/adapter/js/themer.js +10 -6
  30. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.css +49 -3
  31. data/assets/themes/j1/core/css/themes/uno-light/bootstrap.min.css +1 -1
  32. data/assets/themes/j1/core/css/vendor.css +187 -0
  33. data/assets/themes/j1/core/css/vendor.min.css +1 -1
  34. data/assets/themes/j1/core/js/template.js +2 -2
  35. data/assets/themes/j1/core/js/template.js.map +1 -1
  36. data/assets/themes/j1/core/js/template.min.js +2 -2
  37. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  38. data/assets/themes/j1/modules/lightGallery/js/core/j1/lightgallery-x.js +7 -0
  39. data/assets/themes/j1/modules/lightGallery/js/modules/j1/j1-x-video.js +56 -44
  40. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.css +1 -1
  41. data/assets/themes/j1/modules/mdiPreviewer/css/previewer.min.css +1 -1
  42. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.js +12 -2
  43. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.min.js +1 -1
  44. data/assets/themes/j1/modules/twemoji/css/picker/twemoji-picker.css +1 -1
  45. data/assets/themes/j1/modules/twemoji/css/picker/twemoji-picker.min.css +1 -1
  46. data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.js +35 -6
  47. data/assets/themes/j1/modules/twemoji/js/picker/twemoji-picker.min.js +1 -1
  48. data/lib/j1/version.rb +1 -1
  49. data/lib/starter_web/Gemfile +1 -1
  50. data/lib/starter_web/_config.yml +2 -2
  51. data/lib/starter_web/_data/_defaults/resources.yml +29 -11
  52. data/lib/starter_web/_data/apps/justifiedGallery.yml +40 -0
  53. data/lib/starter_web/_data/blocks/banner.yml +8 -8
  54. data/lib/starter_web/_data/blocks/footer.yml +5 -7
  55. data/lib/starter_web/_data/blocks/panel.yml +27 -17
  56. data/lib/starter_web/_data/resources.yml +24 -3
  57. data/lib/starter_web/_includes/attributes.asciidoc +13 -2
  58. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  59. data/lib/starter_web/assets/images/modules/attics/franck-1920x1280.jpg +0 -0
  60. data/lib/starter_web/assets/images/pages/roundtrip/500_themes/themes-menu-1280x800.jpg +0 -0
  61. data/lib/starter_web/assets/images/pages/videos/szabo-viktor-1920x1280.jpg +0 -0
  62. data/lib/starter_web/assets/videos/tiktok/einhorn.jpg +0 -0
  63. data/lib/starter_web/assets/videos/tiktok/waluschka.jpg +0 -0
  64. data/lib/starter_web/collections/posts/public/featured/_posts/0000-00-00-welcome-to-j1.adoc.erb +1 -0
  65. data/lib/starter_web/collections/posts/public/featured/_posts/2020-01-01-about-cookies.adoc +1 -2
  66. data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-01-site-generators.adoc +1 -1
  67. data/lib/starter_web/collections/posts/public/featured/_posts/2021-03-03-about-j1.adoc +1 -2
  68. data/lib/starter_web/collections/posts/public/featured/_posts/_includes/attributes.asciidoc +7 -1
  69. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-01-post-test-series.adoc +1 -3
  70. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-02-post-test-series.adoc +1 -3
  71. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-03-post-test-series.adoc +1 -3
  72. data/lib/starter_web/collections/posts/public/series/_posts/2020-01-04-post-test-series.adoc +2 -3
  73. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-20-minneapolis.adoc +2 -1
  74. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-24-narcisse-snake-dens.adoc +2 -2
  75. data/lib/starter_web/collections/posts/public/wikipedia/_posts/2016-11-26-columbia-river.adoc +2 -2
  76. data/lib/starter_web/collections/posts/public/wikipedia/_posts/_includes/attributes.asciidoc +7 -0
  77. data/lib/starter_web/package.json +1 -1
  78. data/lib/starter_web/pages/public/asciidoc_skeletons/book/_includes/attributes.asciidoc +7 -1
  79. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/_includes/attributes.asciidoc +7 -1
  80. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +3 -1
  81. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +3 -1
  82. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +3 -1
  83. data/lib/starter_web/pages/public/blog/navigator/archive.html +3 -2
  84. data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +1 -1
  85. data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +4 -1
  86. data/lib/starter_web/pages/public/learn/roundtrip/_includes/attributes.asciidoc +11 -0
  87. data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +2 -2
  88. data/lib/starter_web/pages/public/legal/de/100_impress.adoc +1 -1
  89. data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +272 -126
  90. data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +27 -50
  91. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +243 -198
  92. data/lib/starter_web/pages/public/previewer/_includes/attributes.asciidoc +6 -0
  93. data/lib/starter_web/pages/public/previewer/md_color_palette.adoc +338 -275
  94. data/lib/starter_web/pages/public/previewer/rouge.adoc +1 -1
  95. data/lib/starter_web/pages/public/previewer/twitter_emoji_preview.adoc +3 -3
  96. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  97. data/lib/starter_web/utilsrv/package.json +1 -1
  98. metadata +9 -5
  99. data/assets/themes/j1/modules/kofax.7z +0 -0
  100. data/assets/themes/j1/modules/mdiPreviewer/js/previewer.new.js +0 -111
  101. 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: aa01cf574f18489413430d77f6ef69779d295abbfb682aa4c3ee3ee231d47809
4
- data.tar.gz: 7c1ca8d541741b15a9088c672455b4b315f1235672fbe15d3b2307e80c748036
3
+ metadata.gz: c099a5b2dbbcd100e4d23f86d6c85f0a0bf6621779b49a57229595d8e9496553
4
+ data.tar.gz: 971523404db89f2cea6788b777adee94a0acbe83427c928516cd9696eff7695d
5
5
  SHA512:
6
- metadata.gz: d12662ee484c5c29de662747de3839b9ceac0f628a4bb4cc9a2ff0710258b8593ab0e4d834d5b217543b1ef44178f077013b7246171111395028a74eea21519b
7
- data.tar.gz: 1b7779503fcd407413681efe3eb529dbf08b3bdf6ebc0cec1636005d985ca9cba8a13c89b1b22e3e17dc885c12775bef5557ac2fa3b5001d7acc61398dae8545
6
+ metadata.gz: 8f9bf76cfe0b8becfcaa32e12198465c2e1eab907dc56c552e2f7d869d4641fd21557c5e53c1173d6ce8eb7a535ca2baa0bfe3962bc87e96f3f4ebaae10a1129
7
+ data.tar.gz: a4726d2714bb21ffd7adce7ef7e8957b5b3325f713252157df37f0deb5feb9e310af301fcd00a0dfb5691af8b90f138056816e74b13133a50a899ab04c740b55
@@ -52,7 +52,7 @@
52
52
  {% assign rtext_size = 0 %}
53
53
  {% endif %}
54
54
 
55
- {% comment %} language detection
55
+ {% comment %} i18n: language detection
56
56
  -------------------------------------------------------------------------------- {% endcomment %}
57
57
  {% if site.language == "en" %}
58
58
  {% assign language = "en" %}
@@ -62,6 +62,7 @@
62
62
  {% assign language = "en" %}
63
63
  {% endif %}
64
64
 
65
+
65
66
  {% comment %} Main
66
67
  -------------------------------------------------------------------------------- {% endcomment %}
67
68
  <!-- [INFO ] [j1.layout.content_generator_post.html ] [ begin content ] -->
@@ -55,6 +55,9 @@
55
55
  <!-- [INFO ] [j1.layout.meta_data_generator.html ] [ initial zoom level when the page is first loaded by the browser ] -->
56
56
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
57
57
 
58
+ <!-- [INFO ] [j1.layout.meta_data_generator.html ] [ added version info for the templte ] -->
59
+ <meta name="template version" content="{{site.version}}" />
60
+
58
61
  {% if template_config.translation.enabled %}
59
62
  <!-- [INFO ] [j1.layout.meta_data_generator.html ] [ add google translator meta tag to enable customized translations ] -->
60
63
  <meta name="google-translate-customization" />
@@ -91,6 +91,7 @@
91
91
  {% if scope == "global" %}
92
92
  include::{globalincludedir}/attributes.asciidoc[tag=tags]
93
93
  include::{globalincludedir}/attributes.asciidoc[tag=urls]
94
+ include::{globalincludedir}/attributes.asciidoc[tag=footnotes]
94
95
  include::{globalincludedir}/attributes.asciidoc[tag=data]
95
96
  include::{globalincludedir}/attributes.asciidoc[tag=tables]
96
97
  include::{globalincludedir}/attributes.asciidoc[tag=documents]
@@ -99,11 +100,13 @@ include::{globalincludedir}/attributes.asciidoc[tag=authors]
99
100
  {% elsif scope == "local" %}
100
101
  include::{includedir}/attributes.asciidoc[tag=tags]
101
102
  include::{includedir}/attributes.asciidoc[tag=urls]
103
+ include::{includedir}/attributes.asciidoc[tag=footnotes]
102
104
  include::{includedir}/attributes.asciidoc[tag=data]
103
105
  include::{includedir}/attributes.asciidoc[tag=authors]
104
106
  {% elsif scope == "all" %}
105
107
  include::{globalincludedir}/attributes.asciidoc[tag=tags]
106
108
  include::{globalincludedir}/attributes.asciidoc[tag=urls]
109
+ include::{globalincludedir}/attributes.asciidoc[tag=footnotes]
107
110
  include::{globalincludedir}/attributes.asciidoc[tag=data]
108
111
  include::{globalincludedir}/attributes.asciidoc[tag=tables]
109
112
  include::{globalincludedir}/attributes.asciidoc[tag=documents]
@@ -111,6 +114,7 @@ include::{globalincludedir}/attributes.asciidoc[tag=products]
111
114
  include::{globalincludedir}/attributes.asciidoc[tag=authors]
112
115
  include::{includedir}/attributes.asciidoc[tag=tags]
113
116
  include::{includedir}/attributes.asciidoc[tag=urls]
117
+ include::{includedir}/attributes.asciidoc[tag=footnotes]
114
118
  include::{includedir}/attributes.asciidoc[tag=data]
115
119
  include::{includedir}/attributes.asciidoc[tag=authors]
116
120
  {% else %}
@@ -77,6 +77,8 @@
77
77
  <!-- Use custom collator -->
78
78
  {% include themes/{{site.template.name}}/procedures/custom/posts_collate %}
79
79
  {% else %}
80
+ {% comment %} NOTE: header_title NOT used
81
+ ---------------------------------------------------------------------------- {% endcomment %}
80
82
  <!-- Use j1 blog timeline collator -->
81
83
  {% if header_title %}
82
84
  <div class="row timeline-header-box">
@@ -107,14 +109,14 @@
107
109
 
108
110
  <li class="{{blog_position}}">
109
111
  <div class="timeline-badge"><i class="tmicon rounded-x hidden-xs"></i></div>
110
-
111
112
  <div class="card raised-z5 timeline-panel">
112
113
 
114
+ {% comment %} jadams, 2021-08-05:
115
+ NOTE: Changed headerlevel form h3 -> h2
116
+ ---------------------------------------------------------------------- {% endcomment %}
113
117
  <!-- div class="timeline-title" -->
114
118
  <div class="card-header bg-primary pt-4 pb-3">
115
- <!-- a href="{{post.url}}" -->
116
- <h3 id="{{1000000 | rand}}" class="md-white">{{post.title}}</h3>
117
- <!-- /a -->
119
+ <h2 id="{{1000000 | rand}}" class="md-white">{{post.title}}</h2>
118
120
  </div>
119
121
 
120
122
  <!-- Collect icon data from frontmatter -->
@@ -157,8 +159,10 @@
157
159
  <div class="timeline-tagline">
158
160
  <p class="card-subtitle text-muted">{{post.tagline}}</p>
159
161
  </div>
162
+ <!-- place excerpt -->
160
163
  <div class="timeline-excerpt mb-4">
161
- {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...'|strip_html|strip_newlines|strip %}
164
+ {% comment %} {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...'|strip_html %} {% endcomment %}
165
+ {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...' %}
162
166
  <i class="timeline-icon {{icon_family}} {{icon_family}}-{{icon_name}} {{icon_family}}-{{icon_size}} {{icon_family}}-{{icon_color}}"></i>
163
167
  {{excerpt}}
164
168
  </div>
@@ -181,7 +185,7 @@
181
185
  <p class="card-subtitle text-muted">{{post.tagline}}</p>
182
186
  </div>
183
187
  <div class="timeline-excerpt mb-4">
184
- {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...'|strip_html|strip_newlines|strip %}
188
+ {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...'|strip_html %}
185
189
  {{excerpt}}
186
190
  </div>
187
191
  <div class="card-footer r-text-200 text-lowercase">
@@ -201,7 +205,8 @@
201
205
  <p class="card-subtitle text-muted">{{post.tagline}}</p>
202
206
  </div -->
203
207
  <div class="excerpt">
204
- {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...'|strip_html|strip_newlines|strip %}
208
+ {% comment %} {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...'|strip_html %} {% endcomment %}
209
+ {% assign excerpt = post.excerpt|truncatewords: truncate_words|replace:'...',' ...' %}
205
210
  {{excerpt}}
206
211
  </div>
207
212
  </div>
@@ -42,6 +42,15 @@
42
42
  {% assign post = include.post %}
43
43
  {% assign readmore = include.readmore %}
44
44
 
45
+ {% comment %} i18n: language detection
46
+ -------------------------------------------------------------------------------- {% endcomment %}
47
+ {% if site.language == "en" %}
48
+ {% assign language = "en" %}
49
+ {% elsif site.language == "de" %}
50
+ {% assign language = "de" %}
51
+ {% else %}
52
+ {% assign language = "en" %}
53
+ {% endif %}
45
54
 
46
55
  {% comment %} Main
47
56
  -------------------------------------------------------------------------------- {% endcomment %}
@@ -51,16 +60,19 @@
51
60
 
52
61
  {% capture open %}
53
62
  <div id="post_series">
54
- <!-- div class="series-navigator ml-3" -->
55
- <!-- jadams, 2021-02-28: added ml-3 -->
63
+ <!-- series navigator block -->
56
64
  <div class="series-navigator">
57
65
  <div class="container content series-navigation">
58
-
59
66
  <div class="row">
60
- <!-- div class="col-xs-12 col-md-12 col-lg-12 mb-4" -->
61
- <div class="">
62
- <h4 id="blog_series_list" class="notoc mt-2 mr-2 mb-4">This article is <strong>part <<idx>> </strong> in a <strong><<count>>-part</strong> series:</h4>
63
- <ul class="side-nav">
67
+ <div style="width: calc(100% - 5px)">
68
+ {% if site.language == "en" %}
69
+ {% assign series_heading = "This article is <strong>part <<idx>> </strong> in a <strong><<count>>-part</strong> series:" %}
70
+ {% elsif site.language == "de" %}
71
+ {% assign series_heading = "Dieser Artikel ist <strong>Teil <<idx>> </strong> einer <strong><<count>>-er</strong> Serie:" %}
72
+ {% endif %}
73
+ <!-- series heading -->
74
+ <h4 id="blog_series_list" class="notoc mt-2 mr-2 mb-4">{{series_heading}}</h4>
75
+ <ul class="side-nav" style="width: calc(100% - 5px)">
64
76
  {% endcapture %}
65
77
  {% for post in site.posts reversed %}
66
78
  {% if post.series == page.series %}
@@ -70,7 +82,7 @@
70
82
  {% assign excerpt = post.excerpt %}
71
83
  {% assign excerpt_title = post.tagline|capitalize %}
72
84
  {% endif %}
73
- {% capture list_tmp %}{{list}}{% if page.url == post.url %}<li class="current"><a data-proofer-ignore href="#">{{post.date|date: "%Y-%m-%d"}} · Part {{count}} · {{post.title}}</a>{% else %}<li><a data-proofer-ignore href="{{site.baseurl}}{{post.url}}">{{post.date|date: "%Y-%m-%d"}} · Part {{count}} · {{post.title}}</a>{% endif %}</li>{% endcapture %}
85
+ {% capture list_tmp %}{{list}}{% if page.url == post.url %}<li class="current" style="width: calc(100% - 5px)"><a data-proofer-ignore href="#" style="width: calc(100% - 5px)">{{post.date|date: "%Y-%m-%d"}} · Part {{count}} · {{post.title}}</a>{% else %}<li style="width: calc(100% - 5px)"><a data-proofer-ignore href="{{site.baseurl}}{{post.url}}" style="width: calc(100% - 5px)">{{post.date|date: "%Y-%m-%d"}} · Part {{count}} · {{post.title}}</a>{% endif %}</li>{% endcapture %}
74
86
  {% assign list = list_tmp %}
75
87
  {% endif %}
76
88
  {% endfor %}
@@ -78,11 +90,9 @@
78
90
  </ul>
79
91
  </div>
80
92
 
81
- <!-- div class="col-xs-12 col-md-12 col-lg-12 mt-2" -->
82
- <!-- jadams, 2021-02-28: added mr-3 -->
93
+ <!-- place excerpt -->
83
94
  <div class="mt-2">
84
95
  <h5 class="notoc series-exerpt-title">{{excerpt_title}}</h5>
85
- <!-- div class="series-exerpt mr-3" -->
86
96
  <div class="series-exerpt">
87
97
  <div class="paragraph">
88
98
  <p>{{excerpt}}</p>
@@ -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 %}
@@ -145,19 +145,20 @@ exclude_from_search: true
145
145
  {% for item in items[1] %}
146
146
  {% assign key = item[0] %}
147
147
  {% assign value = item[1] %}
148
- {% if key == 'enabled' %} {% assign card_enabled = value %} {% endif %}
149
- {% if key == 'width' %} {% assign card_width = value %} {% endif %}
150
- {% if key == 'type' %} {% assign card_type = value %} {% endif %}
151
- {% if key == 'icon' %} {% assign icon = value %} {% endif %}
152
- {% if key == 'icon_size' %} {% assign icon_size = value %} {% endif %}
153
- {% if key == 'icon_color' %} {% assign icon_color = value %} {% endif %}
154
- {% if key == 'image_path' %} {% assign card_image_path = value %} {% endif %}
155
- {% if key == 'animate' %} {% assign card_animate = value %} {% endif %}
156
- {% if key == 'title' %} {% assign card_title = value | strip_newlines%} {% endif %}
157
- {% if key == 'description' %} {% assign card_description = value | strip_newlines%} {% endif %}
158
- {% if key == 'tagline' %} {% assign card_tagline = value | strip_newlines%} {% endif %}
159
- {% if key == 'text' %} {% assign card_text = value | strip_newlines %} {% endif %}
160
- {% if key == 'buttons' %} {% assign card_buttons = value %} {% endif %}
148
+ {% if key == 'enabled' %} {% assign card_enabled = value %} {% endif %}
149
+ {% if key == 'width' %} {% assign card_width = value %} {% endif %}
150
+ {% if key == 'type' %} {% assign card_type = value %} {% endif %}
151
+ {% if key == 'icon' %} {% assign icon = value %} {% endif %}
152
+ {% if key == 'icon_size' %} {% assign icon_size = value %} {% endif %}
153
+ {% if key == 'icon_color' %} {% assign icon_color = value %} {% endif %}
154
+ {% if key == 'image_path' %} {% assign card_image_path = value %} {% endif %}
155
+ {% if key == 'animate' %} {% assign card_animate = value %} {% endif %}
156
+ {% if key == 'description_properties' %} {% assign card_properties = value %} {% endif %}
157
+ {% if key == 'title' %} {% assign card_title = value | strip_newlines%} {% endif %}
158
+ {% if key == 'description' %} {% assign card_description = value | strip_newlines%} {% endif %}
159
+ {% if key == 'tagline' %} {% assign card_tagline = value | strip_newlines%} {% endif %}
160
+ {% if key == 'text' %} {% assign card_text = value | strip_newlines %} {% endif %}
161
+ {% if key == 'buttons' %} {% assign card_buttons = value %} {% endif %}
161
162
  {% endfor %}
162
163
  {% if card_enabled == false %} {% assign card_items = card_items | minus:1 %} {% endif %}
163
164
  {% endfor %}
@@ -200,7 +201,7 @@ exclude_from_search: true
200
201
  {% if card_animate %} {% capture animate %}animated {{card_animate}}{% endcapture %} {% endif %}
201
202
  <!-- Heading -->
202
203
  <div class="row">
203
- <div class="{{animate}}">
204
+ <div class="{{animate}} mb-2">
204
205
  <h2 class="g-font-weight-500 mb-0">{{card_title}}</h2>
205
206
  <p class="tagline mb-0">{{card_tagline}}</p>
206
207
  <div class="d-inline-block g-width-50 g-height-2 bg-primary mb-2"></div>
@@ -210,10 +211,10 @@ exclude_from_search: true
210
211
 
211
212
  <!-- Body -->
212
213
  <div class="row {{animate}}">
213
- <div class="{{properties}}">{{card_description}}</div>
214
+ <div class="{{card_properties}}">{{card_description}}</div>
214
215
  {% if card_buttons %}
215
- <!-- Footer -->
216
- <div class="mt-1">
216
+ <!-- Footer|Button row -->
217
+ <div class="mt-1 text-center">
217
218
  {% for button_hash in card_buttons %}
218
219
  {% include {{create_bs_button}} button_data=button_hash button_type="link" %}
219
220
  {{bs_button_html}}
@@ -354,7 +355,7 @@ exclude_from_search: true
354
355
  .{{banner_settings.id}}-parallax-quote{color:#fff;padding:100px 0;position:relative;text-align:center}
355
356
  .{{banner_settings.id}}-parallax-quote:before{top:0;left:0;width:100%;height:100%;content:" ";position:absolute;{% if gridify == true %}background: url("{{gridifier}}") repeat;{% endif %}}
356
357
  .{{banner_settings.id}}-parallax-quote:after{top:0;left:0;width:100%;height:100%;content:" ";position:absolute;background:rgba(0,0,0,{{darken}})}
357
- .{{banner_settings.id}}-parallax-quote-in{z-index: 2;position:absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; padding: 20px; text-align: center; }
358
+ .{{banner_settings.id}}-parallax-quote-in{z-index: 2;position:absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; padding: 20px; text-align: center; font-family: "Roboto Slab", Helvetica, Arial, sans-serif; }
358
359
  .{{banner_settings.id}}-parallax-quote-in p{color:{{text_color}};font-size:{{card_cite_text_size}};text-transform:uppercase;line-height: 1.25;}
359
360
  {% if card_text and card_cite_text_quotes %}
360
361
  .{{banner_settings.id}}-parallax-quote-in p:after,.{{banner_settings.id}}-parallax-quote-in p:before{content:' " ';}
@@ -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">