j1-template 2022.0.6 → 2022.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/_includes/themes/j1/modules/ads/google_ad_content_home.html +11 -0
- data/_includes/themes/j1/modules/ads/google_ad_top_home.html +11 -0
- data/_layouts/default.html +0 -57
- data/apps/public/cc/index.adoc +0 -1
- data/assets/data/article_navigator/index.html +0 -1
- data/assets/data/news_panel_posts/index.html +0 -1
- data/assets/error_pages/HTTP444.html +4 -4
- data/assets/error_pages/HTTP445.html +7 -6
- data/assets/error_pages/HTTP446.html +110 -0
- data/assets/error_pages/HTTP447.html +110 -0
- data/assets/error_pages/HTTP448.html +111 -0
- data/assets/themes/j1/adapter/js/advertising.js +416 -0
- data/assets/themes/j1/adapter/js/cookieConsent.js +72 -37
- data/assets/themes/j1/adapter/js/framer.js +0 -3
- data/assets/themes/j1/adapter/js/j1.js +120 -212
- data/assets/themes/j1/adapter/js/rouge.js +1 -1
- data/assets/themes/j1/adapter/js/scroller.js +1 -1
- data/assets/themes/j1/adapter/js/themer.js +0 -1
- data/assets/themes/j1/adapter/js/translator.js +147 -98
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.css +6 -0
- data/assets/themes/j1/core/css/themes/unodark/bootstrap.min.css +1 -1
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.css +6 -0
- data/assets/themes/j1/core/css/themes/unolight/bootstrap.min.css +1 -1
- data/assets/themes/j1/modules/advertising/js/google/adInitializer.js +117 -0
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.js +29 -13
- data/assets/themes/j1/modules/cookieConsent/js/cookieConsent.min.js +1 -1
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +1 -1
- data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +1 -1
- data/assets/themes/j1/modules/scroller/js/scroller.js +1 -1
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.js +0 -1
- data/assets/themes/j1/modules/themeSwitcher/js/switcher.min.js +1 -1
- data/assets/themes/j1/modules/translator/js/translator.js +98 -63
- data/assets/themes/j1/modules/translator/js/translator.min.js +1 -1
- data/lib/j1/version.rb +3 -3
- data/lib/starter_web/Gemfile +1 -1
- data/lib/starter_web/_config.yml +2 -7
- data/lib/starter_web/_data/layouts/default.yml +7 -7
- data/lib/starter_web/_data/layouts/home.yml +24 -0
- data/lib/starter_web/_data/modules/advertising.yml +137 -10
- data/lib/starter_web/_data/modules/cookies.yml +30 -0
- data/lib/starter_web/_data/modules/defaults/advertising.yml +105 -0
- data/lib/starter_web/_data/modules/defaults/cookieconsent.yml +3 -3
- data/lib/starter_web/_data/modules/defaults/cookies.yml +112 -0
- data/lib/starter_web/_data/modules/navigator_menu.yml +10 -1
- data/lib/starter_web/_data/resources.yml +24 -0
- data/lib/starter_web/_includes/attributes.asciidoc +6 -1
- data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_content_home.html +11 -0
- data/lib/starter_web/_includes/themes/j1/modules/ads/google_ad_top_home.html +11 -0
- data/lib/starter_web/_plugins/lunr_index.rb +1 -1
- data/lib/starter_web/index.html +0 -1
- data/lib/starter_web/package.json +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/100_converter.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/200_themes.adoc +1 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +0 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +0 -1
- data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +0 -1
- data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +1 -2
- data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -2
- data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -2
- data/lib/starter_web/pages/public/blog/navigator/archive.html +1 -2
- data/lib/starter_web/pages/public/blog/navigator/index.html +1 -2
- data/lib/starter_web/pages/public/learn/quickstart.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.adoc +4 -3
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.ads.asciidoc +265 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_images.no_ads.asciidoc +237 -0
- data/lib/starter_web/pages/public/learn/roundtrip/100_present_videos.adoc +64 -2
- data/lib/starter_web/pages/public/learn/roundtrip/200_typography.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/300_icon_fonts.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/400_asciidoc_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/410_bs_modals_extentions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/420_responsive_tables_extensions.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/500_themes.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/600_quicksearch.adoc +1 -1
- data/lib/starter_web/pages/public/learn/roundtrip/_includes/google-ad.js +130 -0
- data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +2 -12
- data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/200_impress.adoc +0 -1
- data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +2 -12
- data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +0 -1
- data/lib/starter_web/pages/public/manuals/dropdown-help.adoc +1 -1
- data/lib/starter_web/pages/public/panels/intro_panel/panel.adoc +1 -1
- data/lib/starter_web/pages/public/previewer/preview_bootstrap_theme.adoc +1 -1
- data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
- data/lib/starter_web/utilsrv/package.json +1 -1
- metadata +17 -47
- data/_includes/themes/j1/modules/connectors/ad/custom-provider.html +0 -30
- data/_includes/themes/j1/modules/connectors/ad/google-adsense.html +0 -62
- data/_includes/themes/j1/modules/connectors/ads +0 -56
- data/lib/starter_web/pages/_test_pages/100_side-bar-tester.adoc +0 -244
- data/lib/starter_web/pages/_test_pages/_includes/attributes.asciidoc +0 -110
- data/lib/starter_web/pages/_test_pages/_includes/documents/100_gistblock.asciidoc +0 -28
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_info.asciidoc +0 -14
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_left_warning.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_bottom_right_danger.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_central_success.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_full_height_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_table_bs_modal_examples.asciidoc +0 -47
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_info.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_left_info.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/410_top_right_success.asciidoc +0 -11
- data/lib/starter_web/pages/_test_pages/_includes/documents/419_advanced_modals_demo.asciidoc +0 -337
- data/lib/starter_web/pages/_test_pages/_includes/documents/tables/bs_modal_examples.asciidoc +0 -47
- data/lib/starter_web/pages/_test_pages/accordion-01-tester.adoc +0 -220
- data/lib/starter_web/pages/_test_pages/accordion-02-tester.adoc +0 -177
- data/lib/starter_web/pages/_test_pages/accordion-03-tester.adoc +0 -148
- data/lib/starter_web/pages/_test_pages/attribute-changes-01-tester.adoc +0 -226
- data/lib/starter_web/pages/_test_pages/backdrop-tester.adoc +0 -109
- data/lib/starter_web/pages/_test_pages/button-tester-1.adoc +0 -127
- data/lib/starter_web/pages/_test_pages/card-tester.adoc +0 -128
- data/lib/starter_web/pages/_test_pages/cookieConsent.adoc +0 -96
- data/lib/starter_web/pages/_test_pages/deepl.0.adoc +0 -258
- data/lib/starter_web/pages/_test_pages/deepl.adoc +0 -204
- data/lib/starter_web/pages/_test_pages/desandro-button.adoc +0 -171
- data/lib/starter_web/pages/_test_pages/desandro.adoc +0 -147
- data/lib/starter_web/pages/_test_pages/flipcard-1-tester.adoc +0 -308
- data/lib/starter_web/pages/_test_pages/formular-01-tester.adoc +0 -167
- data/lib/starter_web/pages/_test_pages/formular-02-tester.adoc +0 -727
- data/lib/starter_web/pages/_test_pages/google-translate-tester.0.adoc +0 -113
- data/lib/starter_web/pages/_test_pages/google-translate-tester.1.adoc +0 -233
- data/lib/starter_web/pages/_test_pages/google-translate-tester.3.adoc +0 -149
- data/lib/starter_web/pages/_test_pages/google-translate-tester.4.adoc +0 -239
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-2.adoc +0 -183
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-3.adoc +0 -235
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-4.adoc +0 -222
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester-5.adoc +0 -119
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.1.adoc +0 -236
- data/lib/starter_web/pages/_test_pages/infinite-scroll-tester.adoc +0 -225
- data/lib/starter_web/pages/_test_pages/list-group-tester.adoc +0 -265
- data/lib/starter_web/pages/_test_pages/tictok.adoc +0 -127
@@ -10,7 +10,7 @@ tags: [ Asciidoctor, PDF, Converter ]
|
|
10
10
|
permalink: /pages/public/skeleton/documentation/100_converter/
|
11
11
|
regenerate: false
|
12
12
|
|
13
|
-
resources: [ lightbox, clipboard, rouge ]
|
13
|
+
resources: [ animate, lightbox, clipboard, rouge ]
|
14
14
|
resource_options:
|
15
15
|
- toccer:
|
16
16
|
collapseDepth: 2
|
@@ -9,7 +9,7 @@ tags: [ Asciidoctor, PDF, Converter ]
|
|
9
9
|
permalink: /pages/public/skeleton/documentation/200_themes/
|
10
10
|
regenerate: false
|
11
11
|
|
12
|
-
resources: [ lightbox, clipboard, rouge ]
|
12
|
+
resources: [ animate, lightbox, clipboard, rouge ]
|
13
13
|
resource_options:
|
14
14
|
- toccer:
|
15
15
|
collapseDepth: 2
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
layout: page
|
3
|
-
title:
|
3
|
+
title: Starter Blog
|
4
4
|
tagline: posts by category
|
5
5
|
date: 2023-01-01 01:00:00 +100
|
6
6
|
description: Browse articles by category
|
@@ -17,7 +17,6 @@ pagination:
|
|
17
17
|
permalink: /page:num/
|
18
18
|
|
19
19
|
analytics: true
|
20
|
-
advertising: false
|
21
20
|
comments: false
|
22
21
|
|
23
22
|
exclude_from_search: true
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
layout: page
|
3
|
-
title:
|
3
|
+
title: Starter Blog
|
4
4
|
tagline: posts by date
|
5
5
|
description: Browse articles by date
|
6
6
|
|
@@ -16,7 +16,6 @@ pagination:
|
|
16
16
|
permalink: /page:num/
|
17
17
|
|
18
18
|
analytics: true
|
19
|
-
advertising: false
|
20
19
|
comments: false
|
21
20
|
|
22
21
|
exclude_from_search: true
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
layout: page
|
3
|
-
title:
|
3
|
+
title: Starter Blog
|
4
4
|
tagline: posts by tag
|
5
5
|
description: >
|
6
6
|
Browse articles by tag
|
@@ -17,7 +17,6 @@ pagination:
|
|
17
17
|
permalink: /page:num/
|
18
18
|
|
19
19
|
analytics: true
|
20
|
-
advertising: false
|
21
20
|
comments: false
|
22
21
|
|
23
22
|
exclude_from_search: true
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
layout: page
|
3
|
-
title: Blog
|
3
|
+
title: Starter Blog
|
4
4
|
tagline: all posts
|
5
5
|
description: Create index pages for articles this website
|
6
6
|
|
@@ -16,7 +16,6 @@ pagination:
|
|
16
16
|
permalink: /page:num/
|
17
17
|
|
18
18
|
analytics: false
|
19
|
-
advertising: false
|
20
19
|
comments: false
|
21
20
|
|
22
21
|
exclude_from_search: true
|
@@ -1,6 +1,6 @@
|
|
1
1
|
---
|
2
2
|
layout: blog_archive
|
3
|
-
title:
|
3
|
+
title: Starter Blog
|
4
4
|
tagline: explore posts
|
5
5
|
description: >
|
6
6
|
Navigate through all articles tis website
|
@@ -18,7 +18,6 @@ toc: true
|
|
18
18
|
fab_menu_id: default
|
19
19
|
|
20
20
|
analytics: true
|
21
|
-
advertising: false
|
22
21
|
comments: false
|
23
22
|
|
24
23
|
regenerate: true # needed to update pagination pages
|
@@ -16,8 +16,10 @@ permalink: /pages/public/learn/roundtrip/present_im
|
|
16
16
|
regenerate: false
|
17
17
|
|
18
18
|
resources: [
|
19
|
-
|
20
|
-
justifiedGallery,
|
19
|
+
animate, clipboard,
|
20
|
+
carousel, justifiedGallery,
|
21
|
+
lightbox, lightGallery,
|
22
|
+
rouge
|
21
23
|
]
|
22
24
|
resource_options:
|
23
25
|
- attic:
|
@@ -120,7 +122,6 @@ LightGallery can do this by the following example.
|
|
120
122
|
|
121
123
|
gallery::jg_old_times[]
|
122
124
|
|
123
|
-
|
124
125
|
== J1 Carousel App
|
125
126
|
|
126
127
|
J1 Carousel is based on OWL Carousel V1 in the latest (and unfortunately
|
@@ -0,0 +1,265 @@
|
|
1
|
+
---
|
2
|
+
title: Roundtrip
|
3
|
+
tagline: present images
|
4
|
+
date: 2020-11-03 00:00:00 +100
|
5
|
+
description: >
|
6
|
+
Welcome to the preview page focussing on the image module. This page
|
7
|
+
shows some valuable features of the J1 Template to manage your image-based
|
8
|
+
content using lightboxes, carousels (slider), and galleries.
|
9
|
+
|
10
|
+
categories: [ Roundtrip ]
|
11
|
+
tags: [ Introduction, Module, Image ]
|
12
|
+
|
13
|
+
fab_menu_id: page_ctrl_simple
|
14
|
+
|
15
|
+
permalink: /pages/public/learn/roundtrip/present_images/
|
16
|
+
regenerate: false
|
17
|
+
|
18
|
+
resources: [
|
19
|
+
animate, advertising, clipboard,
|
20
|
+
carousel, justifiedGallery,
|
21
|
+
lightbox, lightGallery,
|
22
|
+
rouge
|
23
|
+
]
|
24
|
+
resource_options:
|
25
|
+
- attic:
|
26
|
+
padding_top: 400
|
27
|
+
padding_bottom: 50
|
28
|
+
opacity: 0.5
|
29
|
+
slides:
|
30
|
+
- url: /assets/images/pages/roundtrip/images-1920x1280-bw.jpg
|
31
|
+
alt: Photo by Ricardo Gomez Angel on Unsplash
|
32
|
+
badge:
|
33
|
+
type: unsplash
|
34
|
+
author: Ricardo Gomez Angel
|
35
|
+
href: https://unsplash.com/@ripato/portfolio
|
36
|
+
---
|
37
|
+
|
38
|
+
// Page Initializer
|
39
|
+
// =============================================================================
|
40
|
+
// Enable the Liquid Preprocessor
|
41
|
+
:page-liquid:
|
42
|
+
|
43
|
+
// Set (local) page attributes here
|
44
|
+
// -----------------------------------------------------------------------------
|
45
|
+
// :page--attr: <attr-value>
|
46
|
+
:images-dir: {imagesdir}/pages/roundtrip/100_present_images
|
47
|
+
|
48
|
+
// Load Liquid procedures
|
49
|
+
// -----------------------------------------------------------------------------
|
50
|
+
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
51
|
+
|
52
|
+
// Load page attributes
|
53
|
+
// -----------------------------------------------------------------------------
|
54
|
+
{% include {{load_attributes}} scope="all" %}
|
55
|
+
|
56
|
+
// Page content
|
57
|
+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
58
|
+
|
59
|
+
++++
|
60
|
+
<!-- insert gad container -->
|
61
|
+
<div id="xxx..xx" class="mb-5">
|
62
|
+
<!-- display-ad-horizontal-1 -->
|
63
|
+
<ins class="adsbygoogle"
|
64
|
+
style="display:block"
|
65
|
+
data-ad-client="ca-pub-xxxx..xxx"
|
66
|
+
data-ad-slot="xxxx..xx"
|
67
|
+
data-ad-format="auto"
|
68
|
+
data-full-width-responsive="true">
|
69
|
+
</ins>
|
70
|
+
</div>
|
71
|
+
++++
|
72
|
+
|
73
|
+
// Include sub-documents (if any)
|
74
|
+
// -----------------------------------------------------------------------------
|
75
|
+
[role="dropcap"]
|
76
|
+
Welcome to the first preview page focussing on the image module. This page
|
77
|
+
shows some valuable features of the J1 Template to manage your image-based
|
78
|
+
content using lightboxes, carousels (slider), and galleries.
|
79
|
+
|
80
|
+
The image module offers complex functionality based on powerful OpenSource
|
81
|
+
libraries like JustifiedGallery for high-end, masonry-styled preview maps.
|
82
|
+
J1 Template uses the jQuery plugin Owl Carousel as a base for image sliders.
|
83
|
+
A carousel app (slider) lets you present your images as shows.
|
84
|
+
|
85
|
+
Lightboxes like LightGallery or Lightbox V2 support your web for enlarged
|
86
|
+
image views of your picture or video content. Have a look, a quick tour
|
87
|
+
of what J1 can do for image data. Have fun!
|
88
|
+
|
89
|
+
++++
|
90
|
+
<!-- insert gad container -->
|
91
|
+
<div id="xxx..xx" class="mb-5">
|
92
|
+
<!-- display-ad-horizontal-2 -->
|
93
|
+
<ins class="adsbygoogle"
|
94
|
+
style="display:block"
|
95
|
+
data-ad-client="ca-pub-xxxx..xxx"
|
96
|
+
data-ad-slot="xxxx..xx"
|
97
|
+
data-ad-format="auto"
|
98
|
+
data-full-width-responsive="true">
|
99
|
+
</ins>
|
100
|
+
</div>
|
101
|
+
++++
|
102
|
+
|
103
|
+
== J1 Lightboxes
|
104
|
+
|
105
|
+
A Lightbox is, in general, a helper which displays enlarged, almost
|
106
|
+
screen-filling versions of images (or videos) while dimming the remainder
|
107
|
+
of the page. The technique, introduced by Lightbox V2, gained widespread
|
108
|
+
popularity thanks to its simple style. The term lightbox has been employed
|
109
|
+
since then for Javascript libraries to support such functionality.
|
110
|
+
|
111
|
+
For the J1 Template, two different lightboxes are available:
|
112
|
+
|
113
|
+
* Lightbox V2 (lightbox)
|
114
|
+
* LightGallery
|
115
|
+
|
116
|
+
The default tool employed by J1 Template is Lightbox V2, a Javascript library
|
117
|
+
written by _Lokesh Dhakar_. The name of that (build-in) is *lightbox*.
|
118
|
+
For more complex use cases, like a thumbnail gallery preview or video support,
|
119
|
+
LightGallery can be used alternatively.
|
120
|
+
|
121
|
+
NOTE: The name LightGallery implies a sort of a Gallery, but the library is a
|
122
|
+
_lightbox_. And, LightGallery provides much more functionality on image-based
|
123
|
+
data rather than enlarged displaying of images. See the examples below to check
|
124
|
+
for the differences in comparison to the simpler Lightbox V2 lightbox.
|
125
|
+
|
126
|
+
Both lightboxes are fully integrated to be used as standalone modules or
|
127
|
+
used as helpers *under-the-hood* by other apps or modules focussing on
|
128
|
+
image-data like gallery or carousel, the build-in carousel module.
|
129
|
+
|
130
|
+
== Lightbox Examples
|
131
|
+
|
132
|
+
Find below an example of using the lightbox Lightbox standalone. See how
|
133
|
+
single (individual) images are linked for use with Lightbox.
|
134
|
+
|
135
|
+
.Lightbox block for standalone images
|
136
|
+
lightbox::example-standalone[ 400, {data-images-standalone} ]
|
137
|
+
|
138
|
+
Lightbox supports image groups (image sets). Click on the images below to
|
139
|
+
see how Lightbox manages a group of images.
|
140
|
+
|
141
|
+
.Lightbox block for grouped images
|
142
|
+
lightbox::example-group[ 400, {data-images-group}, group ]
|
143
|
+
|
144
|
+
=== LightGallery Example
|
145
|
+
|
146
|
+
LightGallery provides more complex functions on image data. The module
|
147
|
+
supports a gallery-style thumbnail preview plus image resizing, a download
|
148
|
+
dialog, sharing provider support, and more helpful. Check what
|
149
|
+
LightGallery can do this by the following example.
|
150
|
+
|
151
|
+
gallery::jg_old_times[]
|
152
|
+
|
153
|
+
== J1 Carousel App
|
154
|
+
|
155
|
+
J1 Carousel is based on OWL Carousel V1 in the latest (and unfortunately
|
156
|
+
last) version of 1.3.3. OWL Carousel is a clean and neat jQuery slider plugin
|
157
|
+
for creating fully responsive and touch-enabled carousel sliders.
|
158
|
+
|
159
|
+
NOTE: OWL Carousel V1 is no longer available on the Internet; for an
|
160
|
+
unknown reason. Anyway, the J1 Template is using this version of OWL
|
161
|
+
Carousel is a build-in carousel module because the software does an excellent
|
162
|
+
job, is based on an MIT license with no issues using them for private and
|
163
|
+
business use. And offers a lot of great features!
|
164
|
+
|
165
|
+
=== Simple Text Carousel
|
166
|
+
|
167
|
+
A slider or carousel is typically used for displaying images. Still, the
|
168
|
+
implementation for the J1 Template supports a lot more sources to be
|
169
|
+
displayed as a slide show: simple text, for example.
|
170
|
+
|
171
|
+
.Simple text carousel
|
172
|
+
carousel::demo_text_carousel[role="mb-3"]
|
173
|
+
|
174
|
+
Important statements or topics can be placed, e.g., on top of an article or
|
175
|
+
a paragraph, to give them better visibility. In one line, you can present
|
176
|
+
many facts to know animated for the reader's attention within a single
|
177
|
+
line. No much space is needed!
|
178
|
+
|
179
|
+
=== Parallax Text Carousel
|
180
|
+
|
181
|
+
A more eye-minded type of text-based slide show is a parallax text slider. If
|
182
|
+
you want to emphasize your statements focussing the meaning, this kind of a
|
183
|
+
slide show may be interesting. Image-based slide shows may draw off the
|
184
|
+
reader's attention from the text, therefore a pure text-based presentation
|
185
|
+
maybe the better choice.
|
186
|
+
|
187
|
+
.Parallax text carousel
|
188
|
+
carousel::demo_text_carousel_parallax[role="mb-3"]
|
189
|
+
|
190
|
+
Parallax text shows can be placed as banners on a page. For text shows,
|
191
|
+
different animations are available. Internally, J1 Template uses some of
|
192
|
+
the great CSS styles offered by _animate.css_.
|
193
|
+
|
194
|
+
TIP: Have a look a https://daneden.github.io/animate.css/[Dan Eden's home page]
|
195
|
+
to see all the possible dynamic styles you can create based on pure CSS. Some
|
196
|
+
of them are implemented for OWL Carousel for animation. See the documentation
|
197
|
+
for the CAROUSEL Module for more details.
|
198
|
+
|
199
|
+
=== Simple Image Carousel
|
200
|
+
|
201
|
+
Carousels are mostly used for pictures data to animate the images as a series.
|
202
|
+
Find with the following some examples of how to use a carousel for your image
|
203
|
+
data.
|
204
|
+
|
205
|
+
A simple image show is useful, for example, as an animated (or not animated)
|
206
|
+
banner presenting exciting things about your site or the products offered.
|
207
|
+
|
208
|
+
.Simple Image Carousel
|
209
|
+
carousel::demo_simple[role="mb-3"]
|
210
|
+
|
211
|
+
=== Carousel + Caption + Lightbox
|
212
|
+
|
213
|
+
Carousels are used for an exceptionally compact form of image galleries.
|
214
|
+
This example shows some pictures having individual caption text and supports
|
215
|
+
a lightbox to enlarge images full size. For the example below, an almost simple
|
216
|
+
lightbox is used: Lightbox V2; or short: lightbox.
|
217
|
+
|
218
|
+
.Nice cats
|
219
|
+
carousel::demo_cats[role="mb-3"]
|
220
|
+
|
221
|
+
The J1 module lightbox is a simple Lightbox but offers a bunch of impressive
|
222
|
+
features for displaying images. For example, the lightbox can display all
|
223
|
+
images (of a carousel) as a group. If one picture is opened in the lightbox,
|
224
|
+
others are browsed by easy-to-use control buttons.
|
225
|
+
|
226
|
+
=== One Slide Carousel + Lightbox
|
227
|
+
|
228
|
+
The build-in Carousel carousel supports multiple and single image shows.
|
229
|
+
Here you find an example of a single image slide show with controls enabled
|
230
|
+
to browse all images back and forth. An indicator below the slider shows how
|
231
|
+
many images the show contains.
|
232
|
+
|
233
|
+
.Single Slide Carousel and a Lightbox
|
234
|
+
carousel::demo_oneslide[role="mb-3"]
|
235
|
+
|
236
|
+
== JustifiedGallery
|
237
|
+
|
238
|
+
JustifiedGallery is a great jQuery plugin to create responsive, infinite,
|
239
|
+
and high-quality justified image galleries. J1 Template combines the Gallery
|
240
|
+
with the lightboxes supported to enlarge the images of a gallery.
|
241
|
+
|
242
|
+
See JustifiedGallery in action - and for sure, all that you see is even
|
243
|
+
responsive. Change the size of your current browser window, by width or height,
|
244
|
+
to see what will happen!
|
245
|
+
|
246
|
+
Pictures you've made are typically not even in size. Images may have the
|
247
|
+
same size (resolution), but some are orientated landscapes, or others
|
248
|
+
may be portraits. For that reason, a more powerful gallery is needed to create
|
249
|
+
so-called justified views.
|
250
|
+
|
251
|
+
JustifiedGallery uses a so-called masonry grid layout. It works by
|
252
|
+
placing elements in an optimal position based on available horizontal and
|
253
|
+
vertical space. Sort of like mason fitting stones in a wall. You'll have
|
254
|
+
seen it in use all over the Internet!
|
255
|
+
|
256
|
+
.Masonry grid layout of JustifiedGallery
|
257
|
+
gallery::jg_customizer[]
|
258
|
+
|
259
|
+
== What next
|
260
|
+
|
261
|
+
Hopefully, you've enjoyed exploring the possibilities J1 offers for managing
|
262
|
+
and displaying digital image content. But much, much more can the J1 do for
|
263
|
+
your web.
|
264
|
+
|
265
|
+
Incredible? See the next example page link:{url-roundtrip--present-videos}[Present videos].
|
@@ -0,0 +1,237 @@
|
|
1
|
+
---
|
2
|
+
title: Roundtrip
|
3
|
+
tagline: present images
|
4
|
+
date: 2020-11-03 00:00:00 +100
|
5
|
+
description: >
|
6
|
+
Welcome to the preview page focussing on the image module. This page
|
7
|
+
shows some valuable features of the J1 Template to manage your image-based
|
8
|
+
content using lightboxes, carousels (slider), and galleries.
|
9
|
+
|
10
|
+
categories: [ Roundtrip ]
|
11
|
+
tags: [ Introduction, Module, Image ]
|
12
|
+
|
13
|
+
fab_menu_id: page_ctrl_simple
|
14
|
+
|
15
|
+
permalink: /pages/public/learn/roundtrip/present_images/
|
16
|
+
regenerate: false
|
17
|
+
|
18
|
+
resources: [
|
19
|
+
animate, clipboard,
|
20
|
+
carousel, justifiedGallery,
|
21
|
+
lightbox, lightGallery,
|
22
|
+
rouge
|
23
|
+
]
|
24
|
+
resource_options:
|
25
|
+
- attic:
|
26
|
+
padding_top: 400
|
27
|
+
padding_bottom: 50
|
28
|
+
opacity: 0.5
|
29
|
+
slides:
|
30
|
+
- url: /assets/images/pages/roundtrip/images-1920x1280-bw.jpg
|
31
|
+
alt: Photo by Ricardo Gomez Angel on Unsplash
|
32
|
+
badge:
|
33
|
+
type: unsplash
|
34
|
+
author: Ricardo Gomez Angel
|
35
|
+
href: https://unsplash.com/@ripato/portfolio
|
36
|
+
---
|
37
|
+
|
38
|
+
// Page Initializer
|
39
|
+
// =============================================================================
|
40
|
+
// Enable the Liquid Preprocessor
|
41
|
+
:page-liquid:
|
42
|
+
|
43
|
+
// Set (local) page attributes here
|
44
|
+
// -----------------------------------------------------------------------------
|
45
|
+
// :page--attr: <attr-value>
|
46
|
+
:images-dir: {imagesdir}/pages/roundtrip/100_present_images
|
47
|
+
|
48
|
+
// Load Liquid procedures
|
49
|
+
// -----------------------------------------------------------------------------
|
50
|
+
{% capture load_attributes %}themes/{{site.template.name}}/procedures/global/attributes_loader.proc{%endcapture%}
|
51
|
+
|
52
|
+
// Load page attributes
|
53
|
+
// -----------------------------------------------------------------------------
|
54
|
+
{% include {{load_attributes}} scope="all" %}
|
55
|
+
|
56
|
+
// Page content
|
57
|
+
// ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
58
|
+
|
59
|
+
// Include sub-documents (if any)
|
60
|
+
// -----------------------------------------------------------------------------
|
61
|
+
[role="dropcap"]
|
62
|
+
Welcome to the first preview page focussing on the image module. This page
|
63
|
+
shows some valuable features of the J1 Template to manage your image-based
|
64
|
+
content using lightboxes, carousels (slider), and galleries.
|
65
|
+
|
66
|
+
The image module offers complex functionality based on powerful OpenSource
|
67
|
+
libraries like JustifiedGallery for high-end, masonry-styled preview maps.
|
68
|
+
J1 Template uses the jQuery plugin Owl Carousel as a base for image sliders.
|
69
|
+
A carousel app (slider) lets you present your images as shows.
|
70
|
+
|
71
|
+
Lightboxes like LightGallery or Lightbox V2 support your web for enlarged
|
72
|
+
image views of your picture or video content. Have a look, a quick tour
|
73
|
+
of what J1 can do for image data. Have fun!
|
74
|
+
|
75
|
+
== J1 Lightboxes
|
76
|
+
|
77
|
+
A Lightbox is, in general, a helper which displays enlarged, almost
|
78
|
+
screen-filling versions of images (or videos) while dimming the remainder
|
79
|
+
of the page. The technique, introduced by Lightbox V2, gained widespread
|
80
|
+
popularity thanks to its simple style. The term lightbox has been employed
|
81
|
+
since then for Javascript libraries to support such functionality.
|
82
|
+
|
83
|
+
For the J1 Template, two different lightboxes are available:
|
84
|
+
|
85
|
+
* Lightbox V2 (lightbox)
|
86
|
+
* LightGallery
|
87
|
+
|
88
|
+
The default tool employed by J1 Template is Lightbox V2, a Javascript library
|
89
|
+
written by _Lokesh Dhakar_. The name of that (build-in) is *lightbox*.
|
90
|
+
For more complex use cases, like a thumbnail gallery preview or video support,
|
91
|
+
LightGallery can be used alternatively.
|
92
|
+
|
93
|
+
NOTE: The name LightGallery implies a sort of a Gallery, but the library is a
|
94
|
+
_lightbox_. And, LightGallery provides much more functionality on image-based
|
95
|
+
data rather than enlarged displaying of images. See the examples below to check
|
96
|
+
for the differences in comparison to the simpler Lightbox V2 lightbox.
|
97
|
+
|
98
|
+
Both lightboxes are fully integrated to be used as standalone modules or
|
99
|
+
used as helpers *under-the-hood* by other apps or modules focussing on
|
100
|
+
image-data like gallery or carousel, the build-in carousel module.
|
101
|
+
|
102
|
+
== Lightbox Examples
|
103
|
+
|
104
|
+
Find below an example of using the lightbox Lightbox standalone. See how
|
105
|
+
single (individual) images are linked for use with Lightbox.
|
106
|
+
|
107
|
+
.Lightbox block for standalone images
|
108
|
+
lightbox::example-standalone[ 400, {data-images-standalone} ]
|
109
|
+
|
110
|
+
Lightbox supports image groups (image sets). Click on the images below to
|
111
|
+
see how Lightbox manages a group of images.
|
112
|
+
|
113
|
+
.Lightbox block for grouped images
|
114
|
+
lightbox::example-group[ 400, {data-images-group}, group ]
|
115
|
+
|
116
|
+
=== LightGallery Example
|
117
|
+
|
118
|
+
LightGallery provides more complex functions on image data. The module
|
119
|
+
supports a gallery-style thumbnail preview plus image resizing, a download
|
120
|
+
dialog, sharing provider support, and more helpful. Check what
|
121
|
+
LightGallery can do this by the following example.
|
122
|
+
|
123
|
+
gallery::jg_old_times[]
|
124
|
+
|
125
|
+
== J1 Carousel App
|
126
|
+
|
127
|
+
J1 Carousel is based on OWL Carousel V1 in the latest (and unfortunately
|
128
|
+
last) version of 1.3.3. OWL Carousel is a clean and neat jQuery slider plugin
|
129
|
+
for creating fully responsive and touch-enabled carousel sliders.
|
130
|
+
|
131
|
+
NOTE: OWL Carousel V1 is no longer available on the Internet; for an
|
132
|
+
unknown reason. Anyway, the J1 Template is using this version of OWL
|
133
|
+
Carousel is a build-in carousel module because the software does an excellent
|
134
|
+
job, is based on an MIT license with no issues using them for private and
|
135
|
+
business use. And offers a lot of great features!
|
136
|
+
|
137
|
+
=== Simple Text Carousel
|
138
|
+
|
139
|
+
A slider or carousel is typically used for displaying images. Still, the
|
140
|
+
implementation for the J1 Template supports a lot more sources to be
|
141
|
+
displayed as a slide show: simple text, for example.
|
142
|
+
|
143
|
+
.Simple text carousel
|
144
|
+
carousel::demo_text_carousel[role="mb-3"]
|
145
|
+
|
146
|
+
Important statements or topics can be placed, e.g., on top of an article or
|
147
|
+
a paragraph, to give them better visibility. In one line, you can present
|
148
|
+
many facts to know animated for the reader's attention within a single
|
149
|
+
line. No much space is needed!
|
150
|
+
|
151
|
+
=== Parallax Text Carousel
|
152
|
+
|
153
|
+
A more eye-minded type of text-based slide show is a parallax text slider. If
|
154
|
+
you want to emphasize your statements focussing the meaning, this kind of a
|
155
|
+
slide show may be interesting. Image-based slide shows may draw off the
|
156
|
+
reader's attention from the text, therefore a pure text-based presentation
|
157
|
+
maybe the better choice.
|
158
|
+
|
159
|
+
.Parallax text carousel
|
160
|
+
carousel::demo_text_carousel_parallax[role="mb-3"]
|
161
|
+
|
162
|
+
Parallax text shows can be placed as banners on a page. For text shows,
|
163
|
+
different animations are available. Internally, J1 Template uses some of
|
164
|
+
the great CSS styles offered by _animate.css_.
|
165
|
+
|
166
|
+
TIP: Have a look a https://daneden.github.io/animate.css/[Dan Eden's home page]
|
167
|
+
to see all the possible dynamic styles you can create based on pure CSS. Some
|
168
|
+
of them are implemented for OWL Carousel for animation. See the documentation
|
169
|
+
for the CAROUSEL Module for more details.
|
170
|
+
|
171
|
+
=== Simple Image Carousel
|
172
|
+
|
173
|
+
Carousels are mostly used for pictures data to animate the images as a series.
|
174
|
+
Find with the following some examples of how to use a carousel for your image
|
175
|
+
data.
|
176
|
+
|
177
|
+
A simple image show is useful, for example, as an animated (or not animated)
|
178
|
+
banner presenting exciting things about your site or the products offered.
|
179
|
+
|
180
|
+
.Simple Image Carousel
|
181
|
+
carousel::demo_simple[role="mb-3"]
|
182
|
+
|
183
|
+
=== Carousel + Caption + Lightbox
|
184
|
+
|
185
|
+
Carousels are used for an exceptionally compact form of image galleries.
|
186
|
+
This example shows some pictures having individual caption text and supports
|
187
|
+
a lightbox to enlarge images full size. For the example below, an almost simple
|
188
|
+
lightbox is used: Lightbox V2; or short: lightbox.
|
189
|
+
|
190
|
+
.Nice cats
|
191
|
+
carousel::demo_cats[role="mb-3"]
|
192
|
+
|
193
|
+
The J1 module lightbox is a simple Lightbox but offers a bunch of impressive
|
194
|
+
features for displaying images. For example, the lightbox can display all
|
195
|
+
images (of a carousel) as a group. If one picture is opened in the lightbox,
|
196
|
+
others are browsed by easy-to-use control buttons.
|
197
|
+
|
198
|
+
=== One Slide Carousel + Lightbox
|
199
|
+
|
200
|
+
The build-in Carousel carousel supports multiple and single image shows.
|
201
|
+
Here you find an example of a single image slide show with controls enabled
|
202
|
+
to browse all images back and forth. An indicator below the slider shows how
|
203
|
+
many images the show contains.
|
204
|
+
|
205
|
+
.Single Slide Carousel and a Lightbox
|
206
|
+
carousel::demo_oneslide[role="mb-3"]
|
207
|
+
|
208
|
+
== JustifiedGallery
|
209
|
+
|
210
|
+
JustifiedGallery is a great jQuery plugin to create responsive, infinite,
|
211
|
+
and high-quality justified image galleries. J1 Template combines the Gallery
|
212
|
+
with the lightboxes supported to enlarge the images of a gallery.
|
213
|
+
|
214
|
+
See JustifiedGallery in action - and for sure, all that you see is even
|
215
|
+
responsive. Change the size of your current browser window, by width or height,
|
216
|
+
to see what will happen!
|
217
|
+
|
218
|
+
Pictures you've made are typically not even in size. Images may have the
|
219
|
+
same size (resolution), but some are orientated landscapes, or others
|
220
|
+
may be portraits. For that reason, a more powerful gallery is needed to create
|
221
|
+
so-called justified views.
|
222
|
+
|
223
|
+
JustifiedGallery uses a so-called masonry grid layout. It works by
|
224
|
+
placing elements in an optimal position based on available horizontal and
|
225
|
+
vertical space. Sort of like mason fitting stones in a wall. You'll have
|
226
|
+
seen it in use all over the Internet!
|
227
|
+
|
228
|
+
.Masonry grid layout of JustifiedGallery
|
229
|
+
gallery::jg_customizer[]
|
230
|
+
|
231
|
+
== What next
|
232
|
+
|
233
|
+
Hopefully, you've enjoyed exploring the possibilities J1 offers for managing
|
234
|
+
and displaying digital image content. But much, much more can the J1 do for
|
235
|
+
your web.
|
236
|
+
|
237
|
+
Incredible? See the next example page link:{url-roundtrip--present-videos}[Present videos].
|