j1-template 2024.3.13 → 2024.3.14
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/layouts/content_generator_news_panel_posts.html +1 -1
- data/_includes/themes/j1/layouts/layout_resource_generator.html +1 -4
- data/_includes/themes/j1/procedures/blocks/footer/boxes/social_media_icons.proc +24 -23
- data/_includes/themes/j1/procedures/layouts/content_writer.proc +4 -3
- data/_includes/themes/j1/procedures/layouts/default_writer.proc +37 -6
- data/_includes/themes/j1/procedures/layouts/module_writer.proc +31 -95
- data/_includes/themes/j1/procedures/layouts/resource_writer.proc +51 -29
- data/assets/data/amplitude.28.html +887 -0
- data/assets/data/amplitude.29.html +923 -0
- data/assets/data/amplitude.html +311 -46
- data/assets/data/banner.html +9 -7
- data/assets/data/masterslider.html +128 -7
- data/assets/data/panel.html +16 -65
- data/assets/theme/j1/adapter/js/amplitude.23.js +1165 -0
- data/assets/theme/j1/adapter/js/amplitude.24.js +1164 -0
- data/assets/theme/j1/adapter/js/amplitude.25.js +1268 -0
- data/assets/theme/j1/adapter/js/amplitude.js +294 -117
- data/assets/theme/j1/adapter/js/attic.js +14 -11
- data/assets/theme/j1/adapter/js/docsearch.js +2 -2
- data/assets/theme/j1/adapter/js/fab.js +2 -2
- data/assets/theme/j1/adapter/js/j1.js +8 -8
- data/assets/theme/j1/adapter/js/lazyLoader.js +60 -10
- data/assets/theme/j1/adapter/js/masonry.js +1 -1
- data/assets/theme/j1/adapter/js/masterslider.js +2 -2
- data/assets/theme/j1/adapter/js/particles.js +2 -2
- data/assets/theme/j1/adapter/js/scroller.js +2 -2
- data/assets/theme/j1/adapter/js/slick.js +2 -2
- data/assets/theme/j1/adapter/js/themes.js +1 -1
- data/assets/theme/j1/adapter/js/translator.js +2 -2
- data/assets/theme/j1/adapter/js/waves.js +1 -1
- data/assets/theme/j1/core/css/animate.css +1634 -1070
- data/assets/theme/j1/core/css/animate.css.map +1 -0
- data/assets/theme/j1/core/css/animate.min.css +2 -1
- data/assets/theme/j1/core/css/animate.min.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/fontawesome.css +3060 -1538
- data/assets/theme/j1/core/css/icon-fonts/fontawesome.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/fontawesome.min.css +2 -1
- data/assets/theme/j1/core/css/icon-fonts/fontawesome.min.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/iconify.css +2308 -1153
- data/assets/theme/j1/core/css/icon-fonts/iconify.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/iconify.min.css +2 -1
- data/assets/theme/j1/core/css/icon-fonts/iconify.min.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdi.css +16716 -8423
- data/assets/theme/j1/core/css/icon-fonts/mdi.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdi.min.css +2 -1
- data/assets/theme/j1/core/css/icon-fonts/mdi.min.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdib.css +5554 -2766
- data/assets/theme/j1/core/css/icon-fonts/mdib.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdib.min.css +2 -1
- data/assets/theme/j1/core/css/icon-fonts/mdib.min.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdil.css +742 -441
- data/assets/theme/j1/core/css/icon-fonts/mdil.css.map +1 -0
- data/assets/theme/j1/core/css/icon-fonts/mdil.min.css +2 -1
- data/assets/theme/j1/core/css/icon-fonts/mdil.min.css.map +1 -0
- data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.css +6552 -3980
- data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.css.map +1 -0
- data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.min.css +2 -5
- data/assets/theme/j1/core/css/themes/bootstrap/bootstrap.min.css.map +1 -0
- data/assets/theme/j1/core/css/themes/unodark/bootstrap.css +6818 -4131
- data/assets/theme/j1/core/css/themes/unodark/bootstrap.css.map +1 -0
- data/assets/theme/j1/core/css/themes/unodark/bootstrap.min.css +2 -5
- data/assets/theme/j1/core/css/themes/unodark/bootstrap.min.css.map +1 -0
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css +18568 -11577
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.css.map +1 -0
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css +2 -35
- data/assets/theme/j1/core/css/themes/unolight/bootstrap.min.css.map +1 -0
- data/assets/theme/j1/core/css/vendor.css +1771 -1043
- data/assets/theme/j1/core/css/vendor.css.map +1 -0
- data/assets/theme/j1/core/css/vendor.min.css +2 -1
- data/assets/theme/j1/core/css/vendor.min.css.map +1 -0
- data/assets/theme/j1/core/js/template.js +399 -447
- data/assets/theme/j1/core/js/template.min.js +7 -7
- data/assets/theme/j1/core/js/template.min.js.map +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/amplitude.css +4 -2
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.css +39 -4
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/compact.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.css +57 -17
- data/assets/theme/j1/modules/amplitudejs/css/theme/uno/dark/player/large.min.css +1 -1
- data/assets/theme/j1/modules/amplitudejs/icons/player/blue/pause.png +0 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/blue/play.png +0 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/blue/play.svg +87 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-backward.svg +60 -0
- data/assets/theme/j1/modules/amplitudejs/icons/player/dark/skip-forward.svg +59 -0
- data/assets/theme/j1/modules/amplitudejs/js/amplitude.js +65 -21
- data/assets/theme/j1/modules/amplitudejs/js/amplitude.min.js +1 -1
- data/assets/theme/j1/modules/amplitudejs/js/tech/ytp.js +113 -0
- data/assets/theme/j1/modules/iconPicker/js/universal-icon-picker.js +471 -471
- data/assets/theme/j1/modules/j1LazyLoader/LICENSE +21 -0
- data/assets/theme/j1/modules/j1LazyLoader/js/j1Lazy.js +870 -0
- data/assets/theme/j1/modules/js-cookies/js/js.cookie.js +3 -3
- data/assets/theme/j1/modules/lazyCssLoader/js/main.0.js +166 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/main.1.js +65 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/main.js +66 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/plugins/examplePlugin.js +13 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/plugins/my-plugin.js +25 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/plugins/plugin-interface.js +9 -0
- data/assets/theme/j1/modules/lazyCssLoader/js/plugins/pluginA.js +46 -0
- data/assets/theme/j1/modules/lazyLoader/js/plugins/README.md +324 -0
- data/assets/theme/j1/modules/lazyLoader/js/plugins/jquery.lazy.picture.js +188 -0
- data/assets/theme/j1/modules/lightGallery/js/lightgallery.js +1 -1
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.0.js +794 -0
- data/assets/theme/j1/modules/lightGallery/js/plugins/lg-video.js +151 -67
- data/assets/theme/j1/modules/slimSelect/js/select.js +1 -1
- data/assets/theme/j1/modules/slimSelect/js/select.min.js +3 -3
- data/assets/theme/j1/modules/themeSwitcher/js/switcher.js +2 -1
- data/assets/theme/j1/modules/videojs/js/plugins/players/dm/dailymotion.min.js +1 -1
- data/assets/theme/j1/modules/videojs/js/plugins/players/dm/icon/scalable/dailymotion.svg +62 -0
- data/assets/theme/j1/modules/videojs/js/plugins/players/yt/v3.0.0/youtube.js +832 -0
- data/assets/theme/j1/modules/videojs/js/plugins/players/yt/v3.0.0/youtube.min.js +17 -0
- data/assets/theme/j1/modules/videojs/js/plugins/players/yt/youtube.min.js +1 -1
- data/assets/theme/j1/modules/videojs/js/video.js +2 -2
- data/lib/j1/version.rb +1 -1
- data/lib/starter_web/README.md +577 -560
- data/lib/starter_web/_config.yml +2 -2
- data/lib/starter_web/_data/blocks/footer.yml +10 -5
- data/lib/starter_web/_data/blocks/panel.yml +2 -2
- data/lib/starter_web/_data/layouts/default.yml +14 -3
- data/lib/starter_web/_data/modules/amplitude.yml +145 -0
- data/lib/starter_web/_data/modules/defaults/amplitude.yml +29 -7
- data/lib/starter_web/_data/modules/defaults/lazyLoader.yml +2 -2
- data/lib/starter_web/_data/modules/gallery.yml +136 -0
- data/lib/starter_web/_data/modules/lazyLoader.0.yml +118 -0
- data/lib/starter_web/_data/modules/lazyLoader.yml +68 -31
- data/lib/starter_web/_data/modules/masonry.yml +4 -4
- data/lib/starter_web/_data/modules/masterslider.yml +118 -12
- data/lib/starter_web/_data/modules/navigator_menu.yml +831 -803
- data/lib/starter_web/_data/resources.yml +154 -190
- data/lib/starter_web/_data/templates/feed.xml +1 -1
- data/lib/starter_web/_includes/attributes.asciidoc +1 -0
- data/lib/starter_web/_plugins/asciidoctor/amplitude-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/dailymotion-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/gallery-block.rb +4 -2
- data/lib/starter_web/_plugins/asciidoctor/masonry-block.rb +1 -1
- data/lib/starter_web/_plugins/asciidoctor/videojs-block.rb +58 -46
- data/lib/starter_web/_plugins/asciidoctor/vimeo-block.rb +26 -19
- data/lib/starter_web/_plugins/asciidoctor/youtube-block.rb +30 -40
- data/lib/starter_web/_plugins/index/lunr.rb +1 -1
- data/lib/starter_web/assets/image/icons/lanus/favicon.ico +0 -0
- data/lib/starter_web/assets/image/icons/lanus/lanus-512x512.png +0 -0
- data/lib/starter_web/assets/image/icons/lanus/lanus.ico +0 -0
- data/lib/starter_web/assets/image/icons/lanus/lanus.png +0 -0
- data/lib/starter_web/assets/image/icons/lanus/scalable/lanus.svg +76 -0
- data/lib/starter_web/assets/image/icons/lanus/scalable/lanus_sw.svg +62 -0
- data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x-28 - social.svg +86 -0
- data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x-28.svg +64 -0
- data/lib/starter_web/assets/image/modules/icons/social/scalable/icon-twitter-x.svg +1 -0
- data/lib/starter_web/assets/image/modules/icons/social/twitter_x.png +0 -0
- data/lib/starter_web/package.json +7 -18
- data/lib/starter_web/pages/public/amplitude_yt_tester.adoc +218 -0
- data/lib/starter_web/pages/public/features/template.adoc +18 -8
- data/lib/starter_web/pages/public/features/template.asciidoc +758 -0
- data/lib/starter_web/pages/public/lazy_loader_tester.adoc +402 -0
- data/lib/starter_web/pages/public/manuals/ytdl/man.adoc +3020 -0
- data/lib/starter_web/pages/public/manuals/ytdl/man.md +2378 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/attributes.asciidoc +0 -16
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/amplitudejs.large.css.asciidoc +505 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.hover.html +69 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.nested.html +75 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/frame.textarea.html +57 -0
- data/lib/starter_web/pages/public/tools/previewer/_includes/documents/my.content.html +112 -0
- data/lib/starter_web/pages/public/tools/previewer/preview_amplitudejs.adoc +172 -0
- data/lib/starter_web/pages/public/tour/_includes/attributes.asciidoc +2 -2
- data/lib/starter_web/pages/public/tour/_includes/documents/419_advanced_modals_demo.asciidoc +16 -16
- data/lib/starter_web/pages/public/tour/asciidoc_extensions.adoc +13 -3
- data/lib/starter_web/pages/public/tour/bootstrap_themes.adoc +12 -3
- data/lib/starter_web/pages/public/tour/highlghter_rouge.adoc +13 -3
- data/lib/starter_web/pages/public/tour/icon_fonts.adoc +12 -3
- data/lib/starter_web/pages/public/tour/modal_extentions.adoc +12 -6
- data/lib/starter_web/pages/public/tour/{playback_audio.adoc → play_audio.adoc} +207 -188
- data/lib/starter_web/pages/public/tour/{playback_video.adoc → play_video.adoc} +49 -51
- data/lib/starter_web/pages/public/tour/present_images.adoc +27 -5
- data/lib/starter_web/pages/public/tour/quicksearch.adoc +13 -3
- data/lib/starter_web/pages/public/tour/responsive_tables.adoc +13 -4
- data/lib/starter_web/pages/public/tour/typography.adoc +12 -3
- metadata +90 -22
- /data/assets/theme/j1/modules/{lazyLoader → j1LazyLoader/js}/plugins/README.md +0 -0
- /data/assets/theme/j1/modules/{lazyLoader/plugins/jquery.lazy.picture.js → j1LazyLoader/js/plugins/picture.js} +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.ajax.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.ajax.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.av.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.av.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.iframe.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.iframe.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.noop.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.noop.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.picture.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.script.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.script.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.vimeo.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.vimeo.min.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.youtube.js +0 -0
- /data/assets/theme/j1/modules/lazyLoader/{plugins → js/plugins}/jquery.lazy.youtube.min.js +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b5be7836bc33acb8bf5f1b59fec31b90911672b3ef04b852c17cd24b67ae3bad
|
4
|
+
data.tar.gz: dca09ed5424070053b2c02d61e8693dab770e985d766a2d39f88eaf749611794
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e48f1e2eb39763739bcbcaa8c691c0aa86007fb8d6d6642bf03262b431e2c07434e19eb8f81a73a10e5df1aa29ee2d844777a2b4fe0eff9ed7fc192de37ce3c
|
7
|
+
data.tar.gz: 38cc045d0abf8a18225ae76917e8be24a3460150922a6c26f67d05dd66371eb679a0d1f86d986b3dcc26490369b3fb79c828f5c96c34501217c397c46d0bf485
|
@@ -443,7 +443,7 @@
|
|
443
443
|
|
444
444
|
{% comment %} Reset element variables (already processed)
|
445
445
|
------------------------------------------------------------------------ {% endcomment %}
|
446
|
-
{% assign panel_settings =
|
446
|
+
{% assign panel_settings = false %}
|
447
447
|
|
448
448
|
{% comment %} END NEWS panel
|
449
449
|
------------------------------------------------------------------------ {% endcomment %}
|
@@ -11,9 +11,6 @@
|
|
11
11
|
# J1 Template is licensed under the MIT License.
|
12
12
|
# See: https://github.com/jekyll-one-org/j1-template/blob/main/LICENSE
|
13
13
|
# -----------------------------------------------------------------------------
|
14
|
-
# NOTE:
|
15
|
-
# Do NOT add any RESOURCES here. Go for ...
|
16
|
-
# -----------------------------------------------------------------------------
|
17
14
|
# Test data:
|
18
15
|
# liquid_var: {{ liquid_var | debug }}
|
19
16
|
# -----------------------------------------------------------------------------
|
@@ -42,7 +39,7 @@
|
|
42
39
|
{% if element[0] == 'resource' %}
|
43
40
|
{% assign resource = element[1] %}
|
44
41
|
<!-- [INFO ] [j1.layout_resource_generator.html ] [ process resource: {{resource.id}} ] -->
|
45
|
-
{% include {{
|
42
|
+
{% include {{resource_writer}} region=placement global=globals resource=resource %}
|
46
43
|
{% endif %}
|
47
44
|
{% endfor %}
|
48
45
|
{% endfor %}
|
@@ -26,34 +26,35 @@
|
|
26
26
|
{% comment %} Main
|
27
27
|
-------------------------------------------------------------------------------- {% endcomment %}
|
28
28
|
<!-- [INFO ] [social_media_icons.proc ] [ place icons configured ] -->
|
29
|
-
<ul class="social-icons">
|
29
|
+
<ul class="lazy social-icons">
|
30
30
|
{% for icon in icons %}
|
31
31
|
|
32
32
|
{% assign key = icon[0] %}
|
33
33
|
{% assign value = icon[1] %}
|
34
34
|
|
35
|
-
{% if key == 'amazon' and value.enabled %}<li><a id="footerAmazonButton" href="{{value.href}}" aria-label="footerAmazonButton" data-original-title="Amazon" class="rounded-circle social_amazon "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
36
|
-
{% if key == 'behance' and value.enabled %}<li><a id="footerBehanceButton" href="{{value.href}}" aria-label="footerBehanceButton" data-original-title="Behance" class="rounded-circle social_behance "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
37
|
-
{% if key == 'blogger' and value.enabled %}<li><a id="footerBloggerButton" href="{{value.href}}" aria-label="footerBloggerButton" data-original-title="Blogger" class="rounded-circle social_blogger "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
38
|
-
{% if key == 'dribbble' and value.enabled %}<li><a id="footerDribbbleButton" href="{{value.href}}" aria-label="footerDribbbleButton" data-original-title="Dribbble" class="rounded-circle social_dribbble "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
39
|
-
{% if key == 'dropbox' and value.enabled %}<li><a id="footerDropboxButton" href="{{value.href}}" aria-label="footerDropboxButton" data-original-title="Dropbox" class="rounded-circle social_dropbox "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
40
|
-
{% if key == 'evernote' and value.enabled %}<li><a id="footerEvernoteButton" href="{{value.href}}" aria-label="footerEvernoteButton" data-original-title="Evernote" class="rounded-circle social_evernote "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
41
|
-
{% if key == 'facebook' and value.enabled %}<li><a id="footerFacebookButton" href="{{value.href}}" aria-label="footerFacebookButton" data-original-title="Facebook" class="rounded-circle social_facebook "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
42
|
-
{% if key == 'forrst' and value.enabled %}<li><a id="footerForrstButton" href="{{value.href}}" aria-label="footerForrstButton" data-original-title="Forrst" class="rounded-circle social_forrst "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
43
|
-
{% if key == 'github' and value.enabled %}<li><a id="footerGithubButton" href="{{value.href}}" aria-label="footerGithubButton" data-original-title="Github" class="rounded-circle social_github "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
44
|
-
{% if key == 'googleplus' and value.enabled %}<li><a id="footerGooglePlusButton" href="{{value.href}}" aria-label="footerGooglePlusButton" data-original-title="GooglePlus" class="rounded-circle social_github "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
45
|
-
{% if key == 'instagram' and value.enabled %}<li><a id="footerTnstagramButton" href="{{value.href}}" aria-label="footerTnstagramButton" data-original-title="Instagram" class="rounded-circle social_instagram "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
46
|
-
{% if key == 'linkedin' and value.enabled %}<li><a id="footerLinkedinButton" href="{{value.href}}" aria-label="footerLinkedinButton" data-original-title="linkedin" class="rounded-circle social_linkedin "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
47
|
-
{% if key == 'pintrest' and value.enabled %}<li><a id="footerPintrestButton" href="{{value.href}}" aria-label="footerPintrestButton" data-original-title="Pintrest" class="rounded-circle social_pintrest "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
48
|
-
{% if key == 'rss' and value.enabled %}<li><a id="footerRssButton" href="{{value.href}}" aria-label="footerRssButton" data-original-title="RSS" class="rounded-circle social_rss "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
49
|
-
{% if key == 'skype' and value.enabled %}<li><a id="footerSkypeButton" href="{{value.href}}" aria-label="footerSkypeButton" data-original-title="Skype" class="rounded-circle social_skype "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
50
|
-
{% if key == 'spotify' and value.enabled %}<li><a id="footerSpotifyButton" href="{{value.href}}" aria-label="footerSpotifyButton" data-original-title="Spotify" class="rounded-circle social_spotify "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
51
|
-
{% if key == 'twitter' and value.enabled %}<li><a id="footerTwitterButton" href="{{value.href}}" aria-label="footerTwitterButton" data-original-title="Twitter" class="rounded-circle social_twitter "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
52
|
-
{% if key == '
|
53
|
-
{% if key == '
|
54
|
-
{% if key == '
|
55
|
-
{% if key == '
|
56
|
-
{% if key == '
|
35
|
+
{% if key == 'amazon' and value.enabled %}<li><a id="footerAmazonButton" href="{{value.href}}" aria-label="footerAmazonButton" data-original-title="Amazon" class="lazy rounded-circle social_amazon "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
36
|
+
{% if key == 'behance' and value.enabled %}<li><a id="footerBehanceButton" href="{{value.href}}" aria-label="footerBehanceButton" data-original-title="Behance" class="lazy rounded-circle social_behance "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
37
|
+
{% if key == 'blogger' and value.enabled %}<li><a id="footerBloggerButton" href="{{value.href}}" aria-label="footerBloggerButton" data-original-title="Blogger" class="lazy rounded-circle social_blogger "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
38
|
+
{% if key == 'dribbble' and value.enabled %}<li><a id="footerDribbbleButton" href="{{value.href}}" aria-label="footerDribbbleButton" data-original-title="Dribbble" class="lazy rounded-circle social_dribbble "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
39
|
+
{% if key == 'dropbox' and value.enabled %}<li><a id="footerDropboxButton" href="{{value.href}}" aria-label="footerDropboxButton" data-original-title="Dropbox" class="lazy rounded-circle social_dropbox "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
40
|
+
{% if key == 'evernote' and value.enabled %}<li><a id="footerEvernoteButton" href="{{value.href}}" aria-label="footerEvernoteButton" data-original-title="Evernote" class="lazy rounded-circle social_evernote "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
41
|
+
{% if key == 'facebook' and value.enabled %}<li><a id="footerFacebookButton" href="{{value.href}}" aria-label="footerFacebookButton" data-original-title="Facebook" class="lazy rounded-circle social_facebook "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
42
|
+
{% if key == 'forrst' and value.enabled %}<li><a id="footerForrstButton" href="{{value.href}}" aria-label="footerForrstButton" data-original-title="Forrst" class="lazy rounded-circle social_forrst "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
43
|
+
{% if key == 'github' and value.enabled %}<li><a id="footerGithubButton" href="{{value.href}}" aria-label="footerGithubButton" data-original-title="Github" class="lazy rounded-circle social_github "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
44
|
+
{% if key == 'googleplus' and value.enabled %}<li><a id="footerGooglePlusButton" href="{{value.href}}" aria-label="footerGooglePlusButton" data-original-title="GooglePlus" class="lazy rounded-circle social_github "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
45
|
+
{% if key == 'instagram' and value.enabled %}<li><a id="footerTnstagramButton" href="{{value.href}}" aria-label="footerTnstagramButton" data-original-title="Instagram" class="lazy rounded-circle social_instagram "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
46
|
+
{% if key == 'linkedin' and value.enabled %}<li><a id="footerLinkedinButton" href="{{value.href}}" aria-label="footerLinkedinButton" data-original-title="linkedin" class="lazy rounded-circle social_linkedin "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
47
|
+
{% if key == 'pintrest' and value.enabled %}<li><a id="footerPintrestButton" href="{{value.href}}" aria-label="footerPintrestButton" data-original-title="Pintrest" class="lazy rounded-circle social_pintrest "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
48
|
+
{% if key == 'rss' and value.enabled %}<li><a id="footerRssButton" href="{{value.href}}" aria-label="footerRssButton" data-original-title="RSS" class="lazy rounded-circle social_rss "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
49
|
+
{% if key == 'skype' and value.enabled %}<li><a id="footerSkypeButton" href="{{value.href}}" aria-label="footerSkypeButton" data-original-title="Skype" class="lazy rounded-circle social_skype "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
50
|
+
{% if key == 'spotify' and value.enabled %}<li><a id="footerSpotifyButton" href="{{value.href}}" aria-label="footerSpotifyButton" data-original-title="Spotify" class="lazy rounded-circle social_spotify "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
51
|
+
{% if key == 'twitter' and value.enabled %}<li><a id="footerTwitterButton" href="{{value.href}}" aria-label="footerTwitterButton" data-original-title="Twitter" class="lazy rounded-circle social_twitter "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
52
|
+
{% if key == 'twitter_x' and value.enabled %}<li><a id="footerTwitterXButton" href="{{value.href}}" aria-label="footerTwitterXButton" data-original-title="Twitter_X" class="lazy rounded-circle social_twitter_x "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
53
|
+
{% if key == 'vimeo' and value.enabled %}<li><a id="footerVimeoButton" href="{{value.href}}" aria-label="footerVimeoButton" data-original-title="Vimeo" class="lazy rounded-circle social_vimeo "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
54
|
+
{% if key == 'vk' and value.enabled %}<li><a id="footerVkButton" href="{{value.href}}" aria-label="footerVkButton" data-original-title="VK" class="lazy rounded-circle social_vk "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
55
|
+
{% if key == 'xing' and value.enabled %}<li><a id="footerXingButton" href="{{value.href}}" aria-label="footerXingButton" data-original-title="Xing" class="lazy rounded-circle social_xing "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
56
|
+
{% if key == 'yahoo' and value.enabled %}<li><a id="footerYahooButton" href="{{value.href}}" aria-label="footerYahooButton" data-original-title="Yahoo" class="lazy rounded-circle social_yahoo "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
57
|
+
{% if key == 'youtube' and value.enabled %}<li><a id="footerYoutubeButton" href="{{value.href}}" aria-label="footerYoutubeButton" data-original-title="Youtube" class="lazy rounded-circle social_youtube "target="_blank" rel="noopener noreferrer"></a></li>{% endif %}
|
57
58
|
|
58
59
|
{% endfor %}
|
59
60
|
</ul>
|
@@ -72,7 +72,7 @@
|
|
72
72
|
{% when 'body-main' %}
|
73
73
|
|
74
74
|
{% if placement == 'body-main' %}
|
75
|
-
<!-- [INFO ] [j1.layout.content_writer.proc ] [ load region 'body-main'
|
75
|
+
<!-- [INFO ] [j1.layout.content_writer.proc ] [ load region: 'body-main', layout: '{{page.layout}}' ] -->
|
76
76
|
{% if type == 'async' %}
|
77
77
|
<div id="{{id}}" class="{{class}}"></div>
|
78
78
|
{% elsif type == 'sync' %}
|
@@ -86,7 +86,7 @@
|
|
86
86
|
{% when 'body-footer' %}
|
87
87
|
|
88
88
|
{% if placement == 'body-footer' %}
|
89
|
-
<!-- [INFO ] [j1.layout.content_writer.proc ] [ load region body-footer
|
89
|
+
<!-- [INFO ] [j1.layout.content_writer.proc ] [ load region: 'body-footer', layout: '{{page.layout}}' ] -->
|
90
90
|
{% if type == 'async' %}
|
91
91
|
<div id="{{id}}" class="{{class}}"></div>
|
92
92
|
{% elsif type == 'sync' %}
|
@@ -107,4 +107,5 @@
|
|
107
107
|
<!-- [INFO ] [j1.layout.content_writer.proc ] [ placement for all lane items finished ] -->
|
108
108
|
<!-- [DEBUG ] [j1.layout.content_writer.proc ] [ reset all lane items ] -->
|
109
109
|
<!-- [INFO ] [j1.layout.content_writer.proc ] [ end processing ] -->
|
110
|
-
|
110
|
+
|
111
|
+
{% assign items = false %}
|
@@ -76,7 +76,26 @@
|
|
76
76
|
{% capture path %}{{base}}/{{path}}/{{file}}{% endcapture %}
|
77
77
|
{% include {{ path }} region='head' %}
|
78
78
|
{% endif %}
|
79
|
-
{% endif %}
|
79
|
+
{% endif %}
|
80
|
+
{% comment %} end placement: 'head'
|
81
|
+
-------------------------------------------------------------------------- {% endcomment %}
|
82
|
+
<!-- [INFO ] [j1.layout.default_writer.proc ] [ layout: '{{page.layout}}', end placement: 'head' ] -->
|
83
|
+
|
84
|
+
{% comment %} Collect the BODY region
|
85
|
+
------------------------------------------------------------------------ {% endcomment %}
|
86
|
+
{% when 'body' %}
|
87
|
+
{% if placement == 'body' %}
|
88
|
+
<!-- [INFO ] [j1.layout.default_writer.proc ] [ start processing: load region body, layout: {{page.layout}} ] -->
|
89
|
+
{% if type == 'async' %}
|
90
|
+
<div id="{{ id }}" class="{{ class }}"></div>
|
91
|
+
{% elsif type == 'sync' %}
|
92
|
+
{% capture path %}{{base}}/{{path}}/{{file}}{% endcapture %}
|
93
|
+
{% include {{ path }} region='body' %}
|
94
|
+
{% endif %}
|
95
|
+
{% endif %}
|
96
|
+
{% comment %} end placement: 'body'
|
97
|
+
------------------------------------------------------------------------ {% endcomment %}
|
98
|
+
<!-- [INFO ] [j1.layout.default_writer.proc ] [ layout: '{{page.layout}}', end placement: 'body' ] -->
|
80
99
|
|
81
100
|
{% comment %} Collect the BODY-NAVIGATION region
|
82
101
|
-------------------------------------------------------------------------- {% endcomment %}
|
@@ -90,6 +109,9 @@
|
|
90
109
|
{% include {{ path }} region='body-navigation' %}
|
91
110
|
{% endif %}
|
92
111
|
{% endif %}
|
112
|
+
{% comment %} end placement: 'body-navigation'
|
113
|
+
------------------------------------------------------------------------ {% endcomment %}
|
114
|
+
<!-- [INFO ] [j1.layout.default_writer.proc ] [ layout: '{{page.layout}}', end placement: 'body-navigation' ] -->
|
93
115
|
|
94
116
|
{% comment %} Collect the BODY-HEADER region
|
95
117
|
-------------------------------------------------------------------------- {% endcomment %}
|
@@ -103,7 +125,10 @@
|
|
103
125
|
{% capture path %}{{base}}/{{path}}/{{file}}{% endcapture %}
|
104
126
|
{% include {{ path }} region='body-header' %}
|
105
127
|
{% endif %}
|
106
|
-
{% endif %}
|
128
|
+
{% endif %}
|
129
|
+
{% comment %} end placement: 'body-header'
|
130
|
+
------------------------------------------------------------------------ {% endcomment %}
|
131
|
+
<!-- [INFO ] [j1.layout.default_writer.proc ] [ layout: '{{page.layout}}', end placement: 'body-header' ] -->
|
107
132
|
|
108
133
|
{% comment %} Collect the BODY-FOOTER region
|
109
134
|
-------------------------------------------------------------------------- {% endcomment %}
|
@@ -116,7 +141,10 @@
|
|
116
141
|
{% capture path %}{{base}}/{{path}}/{{file}}{% endcapture %}
|
117
142
|
{% include {{ path }} region='body-footer' %}
|
118
143
|
{% endif %}
|
119
|
-
{% endif %}
|
144
|
+
{% endif %}
|
145
|
+
{% comment %} end placement: 'body-footer'
|
146
|
+
------------------------------------------------------------------------ {% endcomment %}
|
147
|
+
<!-- [INFO ] [j1.layout.default_writer.proc ] [ layout: '{{page.layout}}', end placement: 'body-footer' ] -->
|
120
148
|
|
121
149
|
{% else %}
|
122
150
|
{% comment %} Exception: Unknown region
|
@@ -147,8 +175,10 @@
|
|
147
175
|
</div>
|
148
176
|
|
149
177
|
{% endcase %}
|
150
|
-
{% endif %}
|
151
|
-
|
178
|
+
{% endif %}
|
179
|
+
{% comment %} END if (lane) enabled {% endcomment %}
|
180
|
+
|
181
|
+
<!-- [INFO ] [j1.layout.default_writer.proc ] [ layout: '{{page.layout}}', end processing: load regions ] -->
|
152
182
|
{% endfor %}
|
153
183
|
{% endfor %}
|
154
184
|
|
@@ -157,4 +187,5 @@
|
|
157
187
|
<!-- [INFO ] [j1.layout.default_writer.proc ] [ placement for all lane items finished ] -->
|
158
188
|
<!-- [DEBUG ] [j1.layout.default_writer.proc ] [ reset all lane items ] -->
|
159
189
|
<!-- [INFO ] [j1.layout.default_writer.proc ] [ end processing ] -->
|
160
|
-
|
190
|
+
|
191
|
+
{% assign items = false %}
|
@@ -48,8 +48,6 @@ NO need to load this again
|
|
48
48
|
{% assign dependency_check_cycle = resource_globals.dependency_check_cycle %}
|
49
49
|
{% assign dependency_check_max_count = resource_globals.dependency_check_timeout %}
|
50
50
|
|
51
|
-
{% assign depends = '' %}
|
52
|
-
|
53
51
|
{% comment %} helpers
|
54
52
|
-------------------------------------------------------------------------------- {% endcomment %}
|
55
53
|
{% capture adapter_prefix %}j1.adapter.{% endcapture %}
|
@@ -65,21 +63,7 @@ NO need to load this again
|
|
65
63
|
|
66
64
|
{% if resource_settings.enabled and placement == 'body-footer' %}
|
67
65
|
|
68
|
-
{% comment %}
|
69
|
-
------------------------------------------------------------------------------ {% endcomment %}
|
70
|
-
{% if resource_settings.dependencies %}
|
71
|
-
<!-- [INFO ] [j1.layout.module_writer.proc ] [ dependencies detected: {{resource_settings.dependencies | split:','}} ] -->
|
72
|
-
|
73
|
-
{% comment %} create dependency conditions (depends)
|
74
|
-
---------------------------------------------------------------------------- {% endcomment %}
|
75
|
-
{% for dependency in resource_settings.dependencies %}
|
76
|
-
{% capture depends %}{{depends|append:{{adapter_prefix}}{{dependency}}{{state_condition}}{% endcapture %}
|
77
|
-
{% if forloop.last %}{% else %}{% capture depends %}{{depends|append:' && '}}{% endcapture %}{% endif %}
|
78
|
-
{% endfor %}
|
79
|
-
{% endif %}
|
80
|
-
|
81
|
-
{% comment %} NOTE:
|
82
|
-
Module default values collected by J1 Adapter
|
66
|
+
{% comment %} Module default values collected by J1 Adapter
|
83
67
|
------------------------------------------------------------------------------ {% endcomment %}
|
84
68
|
|
85
69
|
{% comment %} collect frontmatter|page options (page)
|
@@ -105,15 +89,21 @@ NO need to load this again
|
|
105
89
|
{% endfor %}
|
106
90
|
{% endif %}
|
107
91
|
|
108
|
-
|
109
92
|
{% if layout_valid and resource_valid and resource_settings.enabled %}
|
110
93
|
|
111
94
|
{% comment %} process all data keys
|
95
|
+
<!-- [INFO ] [j1.layout.module_writer.proc ] [ data_value: '{{data_value}}' ] -->
|
112
96
|
---------------------------------------------------------------------------- {% endcomment %}
|
113
97
|
{% for data_var in resource_settings.data %}
|
98
|
+
{% assign data_key = data_var[0] %}
|
114
99
|
|
115
|
-
{%
|
116
|
-
{%
|
100
|
+
{% comment %} NOTE: data_var[1] is of type ARRAY
|
101
|
+
-------------------------------------------------------------------------- {% endcomment %}
|
102
|
+
{% if data_var[1] == empty %}
|
103
|
+
{% assign data_value = false %}
|
104
|
+
{% else %}
|
105
|
+
{% assign data_value = data_var[1] %}
|
106
|
+
{% endif %}
|
117
107
|
|
118
108
|
{% comment %}
|
119
109
|
--------------------------------------------------------------------------
|
@@ -122,46 +112,29 @@ NO need to load this again
|
|
122
112
|
wrong adapter placements
|
123
113
|
-------------------------------------------------------------------------- {% endcomment %}
|
124
114
|
|
125
|
-
{% if data_key == 'init_function' and resource_settings.id != "j1_footer" %}
|
115
|
+
{% if data_key == 'init_function' and data_value and resource_settings.id != "j1_footer" %}
|
126
116
|
|
127
|
-
<!-- [INFO ] [j1.layout.module_writer.proc ] [ place J1 adapter for resource: {{resource_settings.id}} ] -->
|
117
|
+
<!-- [INFO ] [j1.layout.module_writer.proc ] [ place J1 adapter for resource ID: {{resource_settings.id}} ] -->
|
128
118
|
<script>
|
129
119
|
$(function() {
|
130
120
|
{% comment %} place initializer|s
|
131
121
|
-------------------------------------------------------------------- {% endcomment %}
|
132
122
|
{% for init_function in data_value %}
|
133
123
|
|
134
|
-
{% comment %} pass
|
124
|
+
{% comment %} pass MODULE SPECIFIC frontmatter options
|
135
125
|
------------------------------------------------------------------ {% endcomment %}
|
136
126
|
{% if frontmatter_options %}
|
137
127
|
// [INFO ] [j1.layout.module_writer.proc ] [ pass module specific frontmatter options for: {{resource_settings.id}} ]
|
138
128
|
{% capture frontmatter_options %}{{frontmatter_options}}, {"layout": "{{page.layout}}", "title": "{{page.title}}", "tagline": "{{page.tagline}}", "scrollbar": "{{page.scrollbar}}", "toc": "{{page.toc}}", "comments": "{{page.comments}}"}{% endcapture %}
|
139
129
|
var settings = $.extend({}, {{frontmatter_options}});
|
140
130
|
|
141
|
-
{
|
142
|
-
|
143
|
-
{% if resource_settings.dependencies %}
|
144
|
-
var interval_count = 0;
|
145
|
-
var dependencies_met_{{resource_settings.id}} = setInterval(function() {
|
146
|
-
var max_count = {{dependency_check_max_count}};
|
147
|
-
interval_count += 1;
|
148
|
-
if ( {{depends}} ) {
|
149
|
-
{{init_function}} (settings);
|
150
|
-
clearInterval(dependencies_met_{{resource_settings.id}});
|
151
|
-
}
|
152
|
-
if (interval_count > max_count) {
|
153
|
-
clearInterval(dependencies_met_{{resource_settings.id}});
|
154
|
-
{{init_function}} (settings);
|
155
|
-
}
|
156
|
-
}, {{dependency_check_cycle}});
|
157
|
-
{% else %}
|
158
|
-
{{init_function}} (settings);
|
159
|
-
{% endif %}
|
131
|
+
{{init_function}} (settings);
|
132
|
+
|
160
133
|
{% else %}
|
161
134
|
{% comment %} no module specific frontmatter options
|
162
135
|
---------------------------------------------------------------- {% endcomment %}
|
163
136
|
|
164
|
-
{% comment %} pass
|
137
|
+
{% comment %} pass DEFAULT settings
|
165
138
|
---------------------------------------------------------------- {% endcomment %}
|
166
139
|
{% if resource_settings.pass_init_data %}
|
167
140
|
|
@@ -169,49 +142,14 @@ NO need to load this again
|
|
169
142
|
{% capture settings %}{"tts": "{{page.tts}}", "layout": "{{page.layout}}", "title": "{{page.title}}", "tagline": "{{page.tagline}}", "fab_menu_id": "{{page.fab_menu_id}}", "scrollbar": "{{page.scrollbar}}", "toc": "{{page.toc}}", "comments": "{{page.comments}}", "scrollDynamicPagesTopOnChange": "{{page.scrollDynamicPagesTopOnChange}}"}{% endcapture %}
|
170
143
|
var settings = $.extend({}, {{settings}});
|
171
144
|
|
172
|
-
{
|
173
|
-
|
174
|
-
{% if resource_settings.dependencies %}
|
175
|
-
// Initialize module if resource_settings.dependencies reached state 'finished'
|
176
|
-
var interval_count = 0;
|
177
|
-
var max_count = {{dependency_check_max_count}};
|
178
|
-
var dependencies_met_{{resource_settings.id}} = setInterval(function() {
|
179
|
-
interval_count += 1;
|
180
|
-
if ( {{depends}} ) {
|
181
|
-
{{init_function}} (settings);
|
182
|
-
clearInterval(dependencies_met_{{resource_settings.id}});
|
183
|
-
}
|
184
|
-
if (interval_count > max_count) {
|
185
|
-
clearInterval(dependencies_met_{{resource_settings.id}});
|
186
|
-
{{init_function}} (settings);
|
187
|
-
}
|
188
|
-
}, {{dependency_check_cycle}});
|
189
|
-
{% else %}
|
190
|
-
{{init_function}} (settings);
|
191
|
-
{% endif %}
|
145
|
+
{{init_function}} (settings);
|
146
|
+
|
192
147
|
{% else %}
|
193
|
-
{% comment %}
|
148
|
+
{% comment %} NO DEFAULT settings
|
194
149
|
-------------------------------------------------------------- {% endcomment %}
|
195
150
|
|
196
|
-
{
|
197
|
-
|
198
|
-
{% if resource_settings.dependencies %}
|
199
|
-
var interval_count = 0;
|
200
|
-
var max_count = {{dependency_check_max_count}};
|
201
|
-
var dependencies_met_{{resource_settings.id}} = setInterval(function() {
|
202
|
-
interval_count += 1;
|
203
|
-
if ({{depends}}) {
|
204
|
-
{{init_function}}();
|
205
|
-
clearInterval(dependencies_met_{{resource_settings.id}});
|
206
|
-
}
|
207
|
-
if (interval_count > max_count) {
|
208
|
-
clearInterval(dependencies_met_{{resource_settings.id}});
|
209
|
-
{{init_function}}();
|
210
|
-
}
|
211
|
-
}, {{dependency_check_cycle}});
|
212
|
-
{% else %}
|
213
|
-
{{init_function}}();
|
214
|
-
{% endif %}
|
151
|
+
{{init_function}}();
|
152
|
+
|
215
153
|
{% endif %}
|
216
154
|
{% endif %}
|
217
155
|
{% endfor %}
|
@@ -227,18 +165,16 @@ NO need to load this again
|
|
227
165
|
<!-- [DEBUG ] [j1.layout.module_writer.proc ] [ reset all data_keys ] -->
|
228
166
|
|
229
167
|
{% comment %} reset all data keys
|
230
|
-
----------------------------------------------------------------------------
|
231
|
-
{% assign is_placed = true %}
|
232
|
-
{% assign name = nil %}
|
233
|
-
{% assign resource_settings.enabled = nil %}
|
234
|
-
{% assign resource_settings.id = nil %}
|
235
|
-
{% assign resource_settings.comment = nil %}
|
236
|
-
{% assign resource_settings.layout = nil %}
|
237
|
-
{% assign resource_settings.required = nil %}
|
238
|
-
{% assign resource_settings.pass_init_data = nil %}
|
239
|
-
{% assign resource_settings.dependencies = nil %}
|
240
|
-
{% assign depends = nil %}
|
241
|
-
{% assign resource_settings.data = nil %}
|
242
168
|
---------------------------------------------------------------------------- {% endcomment %}
|
169
|
+
{% assign is_placed = true %}
|
170
|
+
{% assign name = false %}
|
171
|
+
{% assign resource_settings.enabled = false %}
|
172
|
+
{% assign resource_settings.id = false %}
|
173
|
+
{% assign resource_settings.comment = false %}
|
174
|
+
{% assign resource_settings.layout = false %}
|
175
|
+
{% assign resource_settings.required = false %}
|
176
|
+
{% assign resource_settings.pass_init_data = false %}
|
177
|
+
{% assign resource_settings.data = false %}
|
178
|
+
|
243
179
|
{% endif %}
|
244
180
|
{% endif %}
|
@@ -31,7 +31,7 @@
|
|
31
31
|
-------------------------------------------------------------------------------- {% endcomment %}
|
32
32
|
{% assign is_placed = false %}
|
33
33
|
|
34
|
-
{% if page.
|
34
|
+
{% if page.debug %}
|
35
35
|
<!-- [DEBUG ] [j1.layout.resource_writer.proc ] [ process resource: {{resource_settings}} ] -->
|
36
36
|
{% endif %}
|
37
37
|
|
@@ -48,14 +48,34 @@
|
|
48
48
|
<!-- [DEBUG ] [j1.layout.resource_writer.proc ] [ placement detected as: {{is_placed}} ] -->
|
49
49
|
{% endif %}
|
50
50
|
|
51
|
-
{%
|
51
|
+
{% comment %} place resource ENABLED
|
52
|
+
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ layout: '{{page.layout}}', resource_id: '{{resource_settings.id}}', placement: '{{placement}}' ] -->
|
53
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
54
|
+
{% if resource_settings.enabled %}
|
52
55
|
|
53
|
-
{% if resource_settings.
|
56
|
+
{% if resource_settings.script_load == 'sync' %}
|
57
|
+
{% assign script_load = '' %}
|
58
|
+
{% else %}
|
59
|
+
{% assign script_load = resource_settings.script_load %}
|
60
|
+
{% endif %}
|
61
|
+
|
62
|
+
{% assign resource_region = resource_settings.region %}
|
63
|
+
|
64
|
+
{% comment %} place resource for theregion configured (resources.yml)
|
65
|
+
if placement == 'head' or placement == 'body'
|
66
|
+
-------------------------------------------------------------------------------- {% endcomment %}
|
67
|
+
{% if placement == resource_region %}
|
68
|
+
|
69
|
+
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ resource_id: '{{resource_settings.id}}', script_load: '{{script_load}}' ] -->
|
70
|
+
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ placement_region: '{{placement}}', resource_region: '{{resource_region}}' ] -->
|
54
71
|
|
55
72
|
{% assign layout_valid = false %}
|
56
73
|
{% for layout in resource_settings.layout %}
|
57
74
|
{% assign layout = layout|downcase %}
|
58
|
-
{% if layout == page.layout or layout ==
|
75
|
+
{% if layout == page.layout or layout == 'all' %}
|
76
|
+
{% assign layout_valid = true %}
|
77
|
+
{% assign layout = page.layout|downcase %}
|
78
|
+
{% endif %}
|
59
79
|
{% endfor %}
|
60
80
|
|
61
81
|
{% assign resource_valid = false %}
|
@@ -63,7 +83,9 @@
|
|
63
83
|
{% assign resource_valid = true %}
|
64
84
|
{% else %}
|
65
85
|
{% for resource in page.resources %}
|
66
|
-
{% if resource == resource_settings.id %}
|
86
|
+
{% if resource == resource_settings.id %}
|
87
|
+
{% assign resource_valid = true %}
|
88
|
+
{% endif %}
|
67
89
|
{% endfor %}
|
68
90
|
{% endif %}
|
69
91
|
|
@@ -79,20 +101,20 @@
|
|
79
101
|
{% assign data_value = data_var[1] %}
|
80
102
|
|
81
103
|
{% if page.debug %}
|
82
|
-
<!-- [DEBUG ] [j1.layout.resource_writer.proc ] [ placement detected as: {{is_placed}} ] -->
|
83
|
-
<!-- [DEBUG ] [j1.layout.resource_writer.proc ] [ process data_key: {{data_key}} ] -->
|
104
|
+
<!-- [DEBUG ] [j1.layout.resource_writer.proc ] [ placement detected as: '{{is_placed}}' ] -->
|
105
|
+
<!-- [DEBUG ] [j1.layout.resource_writer.proc ] [ process data_key: '{{data_key}}' ] -->
|
84
106
|
{% endif %}
|
85
107
|
|
86
108
|
{% if page.debug %}
|
87
|
-
<!-- [DEBUG ] [j1.layout.resource_writer.proc ] [ process data_value: {{data_value}} ] -->
|
109
|
+
<!-- [DEBUG ] [j1.layout.resource_writer.proc ] [ process data_value: '{{data_value}}' ] -->
|
88
110
|
{% endif %}
|
89
111
|
|
90
|
-
{% comment %} process data key 'files'
|
112
|
+
{% comment %} process data key of type 'files'
|
91
113
|
-------------------------------------------------------------------------- {% endcomment %}
|
92
|
-
{% if data_key == 'files' %}
|
114
|
+
{% if data_key == 'files' and layout_valid %}
|
93
115
|
|
94
|
-
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ layout: {{layout}}, {{resource_settings.comment}} ] -->
|
95
|
-
<!-- [INFO ] [j1.layout.resource_writer.proc ] [
|
116
|
+
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ layout: '{{page.layout}}', comment: '{{resource_settings.comment}}' ] -->
|
117
|
+
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ place resource|s of type '{{data_key}}' for resource_id: '{{resource_settings.id}}' ] -->
|
96
118
|
|
97
119
|
{% for file in data_value %}
|
98
120
|
|
@@ -108,15 +130,15 @@
|
|
108
130
|
{% case resource_ext %}
|
109
131
|
{% when 'json' %}
|
110
132
|
{% if url_detected > 1 %}
|
111
|
-
<script {{
|
133
|
+
<script {{script_load}} type="application/json" src="{{file}}"></script>
|
112
134
|
{% else %}
|
113
|
-
<script {{
|
135
|
+
<script {{script_load}} type="application/json" src="{{base_path}}/{{file}}"></script>
|
114
136
|
{% endif %}
|
115
137
|
{% when 'js' %}
|
116
138
|
{% if url_detected > 1 %}
|
117
|
-
<script {{
|
139
|
+
<script {{script_load}} src="{{file}}"></script>
|
118
140
|
{% else %}
|
119
|
-
<script {{
|
141
|
+
<script {{script_load}} src="{{base_path}}/{{file}}"></script>
|
120
142
|
{% endif %}
|
121
143
|
{% when 'css' %}
|
122
144
|
{% if url_detected > 1 %}
|
@@ -138,13 +160,13 @@
|
|
138
160
|
{% endfor %}
|
139
161
|
{% endif %}
|
140
162
|
|
141
|
-
{% comment %} process data key 'css'
|
163
|
+
{% comment %} process data key of type 'css'
|
142
164
|
-------------------------------------------------------------------------- {% endcomment %}
|
143
|
-
{% if data_key == 'css' %}
|
165
|
+
{% if data_key == 'css' and layout_valid %}
|
144
166
|
{% for locator in data_value %}
|
145
167
|
|
146
|
-
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ layout: {{layout}}, {{resource_settings.comment}} ] -->
|
147
|
-
<!-- [INFO ] [j1.layout.resource_writer.proc ] [
|
168
|
+
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ layout: '{{page.layout}}', comment: '{{resource_settings.comment}}' ] -->
|
169
|
+
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ place resource|s of type '{{data_key}}' for resource_id: '{{resource_settings.id}}' ] -->
|
148
170
|
|
149
171
|
{% include {{select_location}} location=location locator=locator %}
|
150
172
|
{% assign my_location = {{location_source}} %}
|
@@ -160,23 +182,23 @@
|
|
160
182
|
{% endfor %}
|
161
183
|
{% endif %}
|
162
184
|
|
163
|
-
{% comment %} process data key 'js'
|
185
|
+
{% comment %} process data key of type 'js'
|
164
186
|
-------------------------------------------------------------------------- {% endcomment %}
|
165
|
-
{% if data_key == 'js' %}
|
187
|
+
{% if data_key == 'js' and layout_valid %}
|
166
188
|
{% for locator in data_value %}
|
167
189
|
|
168
|
-
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ layout: {{layout}} {{resource_settings.comment}} ] -->
|
169
|
-
<!-- [INFO ] [j1.layout.resource_writer.proc ] [
|
190
|
+
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ layout: '{{page.layout}}' , comment: '{{resource_settings.comment}}' ] -->
|
191
|
+
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ place resource|s of type '{{data_key}}' for resource_id: '{{resource_settings.id}}' ] -->
|
170
192
|
|
171
193
|
{% include {{select_location}} location=location locator=locator %}
|
172
194
|
{% assign my_location = {{location_source}} %}
|
173
195
|
|
174
196
|
{% if environment == 'development' %}
|
175
|
-
{% if location == 'remote' %} <script {{
|
176
|
-
{% if location == 'local' %} <script {{
|
197
|
+
{% if location == 'remote' %} <script {{script_load}} src="{{my_location}}.js"></script> {% endif %}
|
198
|
+
{% if location == 'local' %} <script {{script_load}} src="{{my_location}}.js"></script> {% endif %}
|
177
199
|
{% else %}
|
178
|
-
{% if location == 'remote' %} <script {{
|
179
|
-
{% if location == 'local' %} <script {{
|
200
|
+
{% if location == 'remote' %} <script {{script_load}} src="{{my_location}}.min.js"></script> {% endif %}
|
201
|
+
{% if location == 'local' %} <script {{script_load}} src="{{my_location}}.min.js"></script> {% endif %}
|
180
202
|
{% endif %}
|
181
203
|
|
182
204
|
{% endfor %}
|
@@ -191,4 +213,4 @@
|
|
191
213
|
<!-- [INFO ] [j1.layout.resource_writer.proc ] [ placement for all data_keys finished ] -->
|
192
214
|
|
193
215
|
{% endif %}
|
194
|
-
{% endif %}
|
216
|
+
{% endif %} {% endif %}
|