j1-template 2022.0.2 → 2022.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/_includes/themes/j1/modules/connectors/analytic/google-analytics.html +3 -13
  3. data/_includes/themes/j1/modules/connectors/comment/hyvor.html +4 -5
  4. data/_includes/themes/j1/procedures/global/create_bs_button.proc +4 -4
  5. data/_includes/themes/j1/procedures/posts/pager.proc +2 -2
  6. data/_layouts/default.html +3 -11
  7. data/assets/data/private.json +1 -5
  8. data/assets/data/quicklinks.html +62 -47
  9. data/assets/themes/j1/adapter/js/cookieConsent.js +18 -13
  10. data/assets/themes/j1/adapter/js/j1.js +17 -17
  11. data/assets/themes/j1/adapter/js/translator.js +10 -6
  12. data/assets/themes/j1/core/js/template.js +139 -65
  13. data/assets/themes/j1/core/js/template.min.js +5 -5
  14. data/assets/themes/j1/core/js/template.min.js.map +1 -1
  15. data/assets/themes/j1/modules/cryptoJS/js/aes.js +35 -0
  16. data/assets/themes/j1/modules/cryptoJS/js/aes.min.js +35 -0
  17. data/assets/themes/j1/modules/cryptoJS/js/hmac-md5.js +21 -0
  18. data/assets/themes/j1/modules/cryptoJS/js/hmac-ripemd160.js +31 -0
  19. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha1.js +17 -0
  20. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha224.js +19 -0
  21. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha256.js +18 -0
  22. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha3.js +21 -0
  23. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha384.js +27 -0
  24. data/assets/themes/j1/modules/cryptoJS/js/hmac-sha512.js +25 -0
  25. data/assets/themes/j1/modules/cryptoJS/js/md5.js +19 -0
  26. data/assets/themes/j1/modules/cryptoJS/js/pbkdf2.js +19 -0
  27. data/assets/themes/j1/modules/cryptoJS/js/rabbit-legacy.js +36 -0
  28. data/assets/themes/j1/modules/cryptoJS/js/rabbit.js +36 -0
  29. data/assets/themes/j1/modules/cryptoJS/js/rc4.js +33 -0
  30. data/assets/themes/j1/modules/cryptoJS/js/ripemd160.js +29 -0
  31. data/assets/themes/j1/modules/cryptoJS/js/sha1.js +15 -0
  32. data/assets/themes/j1/modules/cryptoJS/js/sha224.js +17 -0
  33. data/assets/themes/j1/modules/cryptoJS/js/sha256.js +16 -0
  34. data/assets/themes/j1/modules/cryptoJS/js/sha3.js +19 -0
  35. data/assets/themes/j1/modules/cryptoJS/js/sha384.js +25 -0
  36. data/assets/themes/j1/modules/cryptoJS/js/sha512.js +23 -0
  37. data/assets/themes/j1/modules/cryptoJS/js/tripledes.js +51 -0
  38. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.2.js +460 -0
  39. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.js +379 -353
  40. data/assets/themes/j1/modules/deeplAPI/js/deeplAPI.min.js +1 -1
  41. data/assets/themes/j1/modules/gtag-opt-in/js/gtag-opt-in.js +93 -1
  42. data/assets/themes/j1/modules/scroller/js/scroller.js +6 -6
  43. data/assets/themes/j1/modules/scroller/js/scroller.min.js +1 -1
  44. data/exe/j1 +6 -7
  45. data/lib/j1/commands/generate.rb +15 -16
  46. data/lib/j1/version.rb +3 -3
  47. data/lib/starter_web/Gemfile +7 -1
  48. data/lib/starter_web/_config.yml +1 -1
  49. data/lib/starter_web/_data/_defaults/private.yml +3 -2
  50. data/lib/starter_web/_data/builder/defaults/blog_navigator.yml +50 -44
  51. data/lib/starter_web/_data/modules/defaults/navigator.yml +31 -11
  52. data/lib/starter_web/_data/modules/translator.yml +3 -3
  53. data/lib/starter_web/_data/private.yml +3 -2
  54. data/lib/starter_web/_data/resources.yml +27 -2
  55. data/lib/starter_web/_includes/attributes.asciidoc +1 -1
  56. data/lib/starter_web/_plugins/encodeBase64.rb +46 -0
  57. data/lib/starter_web/_plugins/encryptAES.rb +53 -0
  58. data/lib/starter_web/_plugins/filters.rb +2 -1
  59. data/lib/starter_web/_plugins/lunr_index.rb +1 -1
  60. data/lib/starter_web/_plugins/minifyJSON.rb +2 -2
  61. data/lib/starter_web/package.json +1 -1
  62. data/lib/starter_web/pages/public/asciidoc_skeletons/documentation/documentation.adoc +1 -1
  63. data/lib/starter_web/pages/public/asciidoc_skeletons/multi-document/multi.adoc +1 -1
  64. data/lib/starter_web/pages/public/asciidoc_skeletons/simple-document/simple.adoc +1 -1
  65. data/lib/starter_web/pages/public/blog/navigator/archive/categoryview.html +0 -21
  66. data/lib/starter_web/pages/public/blog/navigator/archive/dateview.html +1 -1
  67. data/lib/starter_web/pages/public/blog/navigator/archive/tagview.html +1 -0
  68. data/lib/starter_web/pages/public/blog/navigator/archive.html +1 -1
  69. data/lib/starter_web/pages/public/learn/quickstart.adoc +1 -1
  70. data/lib/starter_web/pages/public/learn/where_to_go.adoc +1 -1
  71. data/lib/starter_web/pages/public/legal/de/100_copyright.adoc +1 -1
  72. data/lib/starter_web/pages/public/legal/de/100_impress.adoc +1 -1
  73. data/lib/starter_web/pages/public/legal/de/300_privacy.adoc +1 -1
  74. data/lib/starter_web/pages/public/legal/de/400_comment_policy.adoc +1 -1
  75. data/lib/starter_web/pages/public/legal/en/100_copyright.adoc +1 -1
  76. data/lib/starter_web/pages/public/legal/en/200_impress.adoc +1 -1
  77. data/lib/starter_web/pages/public/legal/en/300_privacy.adoc +1 -1
  78. data/lib/starter_web/pages/public/legal/en/400_comment_policy.adoc +1 -1
  79. data/lib/starter_web/utilsrv/_defaults/package.json +1 -1
  80. data/lib/starter_web/utilsrv/package.json +1 -1
  81. metadata +29 -5
  82. data/lib/j1/commands/help.rb +0 -32
  83. data/lib/j1/commands/module.rb +0 -69
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6c31477f87609e60552f0ffa76b8f36daab38d8915affbef9fca29e185a13dbd
4
- data.tar.gz: 65f2a6293c1f9f05e31c8576f528d30e397b4a790236e0a25a7672b0b3adb705
3
+ metadata.gz: 2bb3d3d9ec50c3accd1a12762ce25a50af83caa99dafd1bee48bccb375cc572c
4
+ data.tar.gz: 32221fe28fbf693fb2a43063a673ed63c1ee394471959abd7c1b9270b1c36929
5
5
  SHA512:
6
- metadata.gz: eff73da4fb89bb43588bfe63bae111e880693ecf423c34051251b4fce2e2014b4de5c392b7dc9161d2bbe7342a1ce52d46f704c2ce5fac526dfc98a9ad4fd3f6
7
- data.tar.gz: 7425d1165d8e388f640cf8d0cdbcf78b9ba7f48d1dd98a5943b446a1e197b35a7555af4086c4ac7d788a27343493b4a35bd30a1affdc843b208efe9e6e66dcb4
6
+ metadata.gz: 3c0e049981164833e1aec1719c26e570e0828033fa19ac63fbd7054af416ffb119f451574329a480020fa5af13a31b1b89020d8f58418cd38a6cdde80769b4e6
7
+ data.tar.gz: 416606126e81685ff50f3ad4bdc8c01c58ff9184af618d876f3b3618414874bdf1e76ce27712a8c1b744779aa3851032d7c3a3a31acf16a5c283ebdb06e8a9b5
@@ -25,16 +25,6 @@
25
25
 
26
26
  {% comment %} Main
27
27
  -------------------------------------------------------------------------------- {% endcomment %}
28
-
29
- <!-- load the GA library -->
30
- <script async src="https://www.googletagmanager.com/gtag/js?id={{tracking_id}}"></script>
31
-
32
- <!-- GA depends on the cookie consent and is enabled/disabled on OptIn/Out-->
33
- <!--
34
- <script>
35
- window.dataLayer = window.dataLayer || [];
36
- function gtag(){dataLayer.push(arguments);}
37
- gtag('js', new Date());
38
- gtag('config', '{{tracking_id}}');
39
- </script>
40
- -->
28
+ <!-- [INFO ] [j1.modules.connectors.analytics ] [ GA depends on the cookie consent and is enabled/disabled dynamically on OptIn/Out ] -->
29
+ <!-- [INFO ] [j1.modules.connectors.analytics ] [ if analytics enabled, load the GA library statically by default ] -->
30
+ <script async id="google-tag-manager" src="https://www.googletagmanager.com/gtag/js?id={{tracking_id}}"></script>
@@ -23,11 +23,10 @@
23
23
  {% comment %} Variables
24
24
  -------------------------------------------------------------------------------- {% endcomment %}
25
25
 
26
-
27
26
  {% comment %} Main
27
+ <!-- thread container places dynamically by j1 adapter
28
28
  -------------------------------------------------------------------------------- {% endcomment %}
29
- <!-- [INFO ] [j1.modules.connectors.hyvor ] [ place the thread container: start ] -->
30
- <div id="hyvor-talk-view"></div>
31
29
  <!-- [INFO ] [j1.modules.connectors.hyvor ] [ connector depends on the cookie consent (personalization) ] -->
32
- <!-- [INFO ] [j1.modules.connectors.hyvor ] [ connector (dynamic) JS is enabled/disabled on OptIn/Out ] -->
33
- <!-- [INFO ] [j1.modules.connectors.hyvor ] [ place the thread container: end ] -->
30
+ <!-- [INFO ] [j1.modules.connectors.hyvor ] [ connector is enabled/disabled dynamically by j1 adapter on OptIn/Out ] -->
31
+ <!-- [INFO ] [j1.modules.connectors.hyvor ] [ thread container disabled, placed dynamically by j1 adapter ] -->
32
+ <!-- div id="hyvor-talk-view"></div -->
@@ -79,7 +79,7 @@
79
79
  {% if button_tagline %}
80
80
  {% if button_href and button_target %}
81
81
  {% capture bs_button_html %}
82
- <a id="#{{button_id}}" href="{{button_href}}" target="{{button_target}}" rel="noopener" class="{{button_class}}" style="{{button_style}}">
82
+ <a id="{{button_id}}" href="{{button_href}}" target="{{button_target}}" rel="noopener" class="{{button_class}}" style="{{button_style}}">
83
83
  <i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-3"></i>
84
84
  <span class="float-right text-left mt-2">
85
85
  {{button_title}}
@@ -89,7 +89,7 @@
89
89
  {% endcapture %}
90
90
  {% elsif button_href %}
91
91
  {% capture bs_button_html %}
92
- <a id="#{{button_id}}" href="{{button_href}}" class="{{button_class}}" style="{{button_style}}">
92
+ <a id="{{button_id}}" href="{{button_href}}" class="{{button_class}}" style="{{button_style}}">
93
93
  <i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-3"></i>
94
94
  <span class="float-right text-left mt-2">
95
95
  {{button_title}}
@@ -103,7 +103,7 @@
103
103
  {% else %}
104
104
  {% if button_href and button_target %}
105
105
  {% capture bs_button_html %}
106
- <a id="#{{button_id}}" href="{{button_href}}" target="{{button_target}}" rel="noopener" class="{{button_class}}" style="{{button_style}}">
106
+ <a id="{{button_id}}" href="{{button_href}}" target="{{button_target}}" rel="noopener" class="{{button_class}}" style="{{button_style}}">
107
107
  <i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-1"></i>
108
108
  <span class="float-right text-left">
109
109
  {{button_title}}
@@ -112,7 +112,7 @@
112
112
  {% endcapture %}
113
113
  {% elsif button_href %}
114
114
  {% capture bs_button_html %}
115
- <a id="#{{button_id}}" href="{{button_href}}" class="{{button_class}}" style="{{button_style}}">
115
+ <a id="{{button_id}}" href="{{button_href}}" class="{{button_class}}" style="{{button_style}}">
116
116
  <i class="{{icon_family}} {{icon_family}}-{{button_icon}} {{icon_family}}-{{button_icon_size}} {{icon_family}}-{{button_icon_color}} mr-1"></i>
117
117
  <span class="float-right text-left">
118
118
  {{button_title}}
@@ -100,9 +100,9 @@
100
100
 
101
101
  <!-- [INFO ] [procedures.global.pager.proc ] [Calculate BackURL from User State Cookie for page: {{page.title}}] -->
102
102
  if (re.test(last_pager)) {
103
- last_pager_url = '<li class="page-item"><a class="page-link" href="' + last_pager + '" title="Back to Top Page">{{pager_back_button_text}}</a></li>';
103
+ last_pager_url = '<li class="page-item"><a class="page-link" href="' + last_pager + '" title="Back to {{pager_back_button_text}}">{{pager_back_button_text}}</a></li>';
104
104
  } else {
105
- last_pager_url = '<li class="page-item disabled"><a class="page-link" title="Back to Top Page">{{pager_back_button_text}}</a></li>';
105
+ last_pager_url = '<li class="page-item disabled"><a class="page-link" title="Back to {{pager_back_button_text}}">{{pager_back_button_text}}</a></li>';
106
106
  }
107
107
  document.write( last_pager_url );
108
108
  j1.writeCookie({
@@ -121,23 +121,15 @@ layout: compress
121
121
  {% comment %} collect the head section (region head)
122
122
  ------------------------------------------------------------------------------ {% endcomment %}
123
123
  <head data-proofer-ignore>
124
+
124
125
  {% comment %}
125
126
  <link rel="stylesheet" href="https://pro.fontawesome.com/releases/v5.6.3/css/all.css" integrity="sha384-LRlmVvLKVApDVGuspQFnRQJjkv0P7/YFrw84YYQtmYG4nK8c+M+NlmYDCv0rKWpG" crossorigin="anonymous">
126
127
  {% endcomment %}
127
128
  <!-- [INFO ] [j1.layout.default.html ] [ call default_writer for region: 'head' ] -->
128
129
  {% include {{default_writer}} region='head' items=lanes_collate %}
129
130
  <!-- [INFO ] [j1.layout.default.html ] [ end default_writer for region: 'head' ] -->
130
- </head>
131
131
 
132
- {% comment %} collect the body section (region body-*)
133
- ------------------------------------------------------------------------------
134
- {% if body_scrollbar %}
135
- <body>
136
- {% else %}
137
- <body class="hide-scrollbar">
138
- {% endif %}
139
- ------------------------------------------------------------------------------
140
- {% endcomment %}
132
+ </head>
141
133
 
142
134
  <body>
143
135
 
@@ -174,7 +166,6 @@ layout: compress
174
166
 
175
167
  </div>
176
168
  <!-- [INFO ] [j1.layout.default.html ] [ end suppress flicker ] -->
177
- <!-- [INFO ] [j1.layout.default.html ] [ end default writer] -->
178
169
 
179
170
  <!-- [INFO ] [j1.layout.default.html ] [ place noscript info|error page ] -->
180
171
  {% assign language = site.language %}
@@ -230,6 +221,7 @@ layout: compress
230
221
  <!-- [INFO ] [j1.layout.default.html ] [ place hidden color selector/themes: bg-primary ] -->
231
222
  <div id="bg-primary" class="bg-primary" style="display: none"></div>
232
223
 
224
+ <!-- [INFO ] [j1.layout.default.html ] [ end default writer] -->
233
225
  </body>
234
226
 
235
227
  {% comment %} Place container for WebHook modals
@@ -45,9 +45,5 @@ exclude_from_search: true
45
45
  {{ private_settings | json }}
46
46
 
47
47
  {% endcapture %}
48
- {% if production %}
49
- {{ cache | minifyJSON }}
50
- {% else %}
51
- {{ cache | strip_empty_lines }}
52
- {% endif %}
48
+ {{ cache | encodeBase64 }}
53
49
  {% assign cache = nil %}
@@ -78,30 +78,15 @@ exclude_from_search: true
78
78
  -------------------------------------------------------------------------------- {% endcomment %}
79
79
  {% assign icon_family = quicklinks_options.icon_family | downcase %}
80
80
 
81
- {% assign cookies_icon = quicklinks_options.cookies_icon %}
82
-
83
- {% assign translate_icon = quicklinks_options.translate_icon %}
84
-
85
- {% assign search_icon = quicklinks_options.top_search_icon %}
86
- {% assign sidebar_icon = quicklinks_options.sidebar_icon %}
87
-
88
- {% assign signin_icon = auth_client_config.signin_icon %}
89
- {% assign signout_icon = auth_client_config.signout_icon %}
90
-
91
- {% assign control_center_icon = cc_app_config_options.quicklinks_icon %}
92
- {% assign control_center_url = cc_app_config_options.quicklinks_url %}
93
-
94
- {% assign translator_icon = quicklinks_options.translator_icon %}
95
-
81
+ {% comment %} Link buttons
82
+ -------------------------------------------------------------------------------- {% endcomment %}
96
83
  {% assign home_icon = quicklinks_options.home_icon %}
97
84
  {% assign home_url = quicklinks_options.home_url %}
98
-
99
- {% assign r_text_icon = quicklinks_options.r_text_icon %}
100
-
101
- {% assign toc_icon = quicklinks_options.toc_icon %}
85
+ {% assign home_label = quicklinks_options.home_label %}
102
86
 
103
87
  {% assign back_icon = quicklinks_options.back_icon %}
104
88
  {% assign back_url = quicklinks_options.back_url %}
89
+ {% assign back_label = quicklinks_options.back_label %}
105
90
 
106
91
  {% assign disqus_icon = quicklinks_options.disqus_icon %}
107
92
  {% assign github_icon = quicklinks_options.github_icon %}
@@ -115,15 +100,50 @@ exclude_from_search: true
115
100
  {% assign facebook_url = quicklinks_options.facebook_url %}
116
101
  {% assign twitter_url = quicklinks_options.twitter_url %}
117
102
 
103
+ {% assign disqus_label = quicklinks_options.disqus_label %}
104
+ {% assign github_label = quicklinks_options.github_label %}
105
+ {% assign patreon_label = quicklinks_options.patreon_label %}
106
+ {% assign facebook_label = quicklinks_options.facebook_label %}
107
+ {% assign twitter_label = quicklinks_options.twitter_label %}
108
+
109
+ {% comment %} Action buttons
110
+ -------------------------------------------------------------------------------- {% endcomment %}
111
+ {% assign cookies_icon = quicklinks_options.cookies_icon %}
112
+ {% assign cookies_action = quicklinks_options.cookies_action %}
113
+ {% assign cookies_label = quicklinks_options.cookies_label %}
114
+
115
+ {% assign translate_icon = quicklinks_options.translate_icon %}
116
+ {% assign translate_action = quicklinks_options.translate_action %}
117
+ {% assign translate_label = quicklinks_options.translate_label %}
118
+
119
+ {% assign quicksearch_icon = quicklinks_options.quicksearch_icon %}
120
+ {% assign quicksearch_action = quicklinks_options.quicksearch_action %}
121
+ {% assign quicksearch_label = quicklinks_options.quicksearch_label %}
122
+
123
+ {% assign translator_icon = quicklinks_options.translator_icon %}
124
+ {% assign translator_action = quicklinks_options.translator_action %}
125
+ {% assign translator_label = quicklinks_options.translator_label %}
126
+
127
+ {% assign r_text_icon = quicklinks_options.r_text_icon %}
128
+ {% assign r_text_action = quicklinks_options.r_text_action %}
129
+ {% assign r_text_label = quicklinks_options.r_text_label %}
130
+
131
+ {% comment %} Legacy buttons
132
+ -------------------------------------------------------------------------------- {% endcomment %}
133
+ {% assign signin_icon = auth_client_config.signin_icon %}
134
+ {% assign signout_icon = auth_client_config.signout_icon %}
118
135
  {% assign signin_modal_id = auth_client_config.signin_modal_id %}
119
136
 
137
+ {% assign control_center_icon = cc_app_config_options.quicklinks_icon %}
138
+ {% assign control_center_url = cc_app_config_options.quicklinks_url %}
139
+
120
140
 
121
141
  {% comment %} Show|Hide Quicksearch icon
122
142
  -------------------------------------------------------------------------------- {% endcomment %}
123
143
  {% if quick_search_options.enabled %}
124
- {% assign show_quick_search_icon = true %}
144
+ {% assign show_quicksearch_icon = true %}
125
145
  {% else %}
126
- {% assign show_quick_search_icon = false %}
146
+ {% assign show_quicksearch_icon = false %}
127
147
  {% endif %}
128
148
 
129
149
  {% comment %} Show|Hide Translator icon
@@ -154,19 +174,9 @@ exclude_from_search: true
154
174
  {% assign show_control_center_icon = false %}
155
175
  {% endif %}
156
176
 
157
- {% comment %} Show|Hide Sidebar icon
158
- -------------------------------------------------------------------------------- {% endcomment %}
159
- {% if quicklinks_options.sidebar %}
160
- {% assign show_sidebar_icon = true %}
161
- {% else %}
162
- {% assign show_sidebar_icon = false %}
163
- {% endif %}
164
-
165
- {% assign show_sidebar_icon = false %}
166
-
167
177
  {% comment %} Show|Hide RSizer icon
168
178
  -------------------------------------------------------------------------------- {% endcomment %}
169
- {% if quicklinks_options.r_text_sizer %}
179
+ {% if quicklinks_options.r_text_icon %}
170
180
  {% assign show_r_text_icon = true %}
171
181
  {% else %}
172
182
  {% assign show_r_text_icon = false %}
@@ -238,24 +248,29 @@ exclude_from_search: true
238
248
 
239
249
  <ul id="{{quicklinks_options.xhr_data_element}}" class="navbar-nav show">
240
250
 
241
- {% if back_url != "none" %}<li id="quickLinksHomeButton" class="nav-item"><a id="page_back_id" class="nav-icon" href="{{back_url}}" aria-label="Page back"><i class="{{icon_family}} {{icon_family}}-{{back_icon}} {{icon_size}}"></i></a></li>{% endif %}
242
- {% if home_url != "none" %}<li id="quickLinksHomeButton" class="nav-item"><a id="home_id" class="nav-icon" href="{{home_url}}" aria-label="Home"><i class="{{icon_family}} {{icon_family}}-{{home_icon}} {{icon_size}}"></i></a></li>{% endif %}
243
- {% if disqus_url != "none" %}<li id="quickLinksDisqusButton" class="nav-item"><a id="disqus_id" class="nav-icon" href="{{disqus_url}}" aria-label="Disqus" target="blank"><i class="{{icon_family}} {{icon_family}}-{{disqus_icon}} {{icon_size}}"></i></a></li>{% endif %}
244
- {% if github_url != "none" %}<li id="quickLinksGithubButton" class="nav-item"><a id="github_id" class="nav-icon" href="{{github_url}}" aria-label="Github" target="blank"><i class="{{icon_family}} {{icon_family}}-{{github_icon}} {{icon_size}}"></i></a></li>{% endif %}
245
- {% if patreon_url != "none" %}<li id="quickLinksPatreonButton" class="nav-item"><a id="patreon_id" class="nav-icon" href="{{patreon_url}}" aria-label="Patreon" target="blank"><i class="{{icon_family}} {{icon_family}}-{{patreon_icon}} {{icon_size}}"></i></a></li>{% endif %}
246
- {% if facebook_url != "none" %}<li id="quickLinksFacebookButton" class="nav-item"><a id="facebook_id" class="nav-icon" href="{{facebook_url}}" aria-label="Facebook" target="blank"><i class="{{icon_family}} {{icon_family}}-{{facebook_icon}} {{icon_size}}"></i></a></li>{% endif %}
247
- {% if twitter_url != "none" %}<li id="quickLinksTwitterButton" class="nav-item"><a id="twitter_id" class="nav-icon" href="{{twitter_url}}" aria-label="Twitter" target="blank"><i class="{{icon_family}} {{icon_family}}-{{twitter_icon}} {{icon_size}}"></i></a></li>{% endif %}
248
- {% if show_auth_manager_icon %}<li id="quickLinksSignInOutButton" class="nav-item" style="display: none;"><a class="nav-icon" id="navLinkSignInOut" aria-label="SignOut" href="#" data-bs-toggle="modal" data-bs-target="#{{signin_modal_id}}"><i id="iconSignInOut" class="{{icon_family}} {{icon_family}}-{{signin_icon}} {{icon_size}}"></i></a></li>{% endif %}
249
- {% if show_cookieconsent_icon %}<li id="quickLinksCookieButton" class="nav-item" style="display: block;"><a href="#" aria-label="Cookie Consent"><i class="{{icon_family}} {{icon_family}}-{{cookies_icon}} {{icon_size}}"></i></a></li>{% endif %}
250
- {% if show_quick_search_icon %}<li id="quickLinksSearchButton" class="nav-item search"><a class="nav-icon" href="#" aria-label="Search"><i class="{{icon_family}} {{icon_family}}-{{search_icon}} {{icon_size}}"></i></a></li>{% endif %}
251
- {% if show_control_center_icon %}<li id="quickLinksControlCenterButton" class="nav-item control-center" style="display: block;"><a class="nav-icon" href="{{control_center_url}}" aria-label="ControlCenter"><i class="{{icon_family}} {{icon_family}}-{{control_center_icon}} {{icon_size}}"></i></a></li>{% endif %}
252
- {% if show_r_text_icon %}<li id="quickLinksRTextButton" class="nav-item control-center" style="display: block;"><a class="nav-icon" href="#" aria-label="TextResizer" data-bs-toggle="modal" data-bs-target="#fluidModalRTextResizer"><i class="{{icon_family}} {{icon_family}}-{{r_text_icon}} {{icon_size}}"></i></a></li>{% endif %}
253
- {% if show_google_translate_icon %}<li id="quickLinksTranslateButton" class="nav-item" style="display: block;"><a href="#" aria-label="Google Translate"><i class="{{icon_family}} {{icon_family}}-{{translate_icon}} {{icon_size}}"></i></a></li>{% endif %}
251
+ {% comment %} Link buttons
252
+ ------------------------------------------------------------------------------ {% endcomment %}
253
+ {% if back_url != "none" %}<li id="quickLinksBackButton" class="nav-item"><a id="page_back_id" class="nav-icon" href="{{back_url}}" aria-label="{{back_label}}"><i class="{{icon_family}} {{icon_family}}-{{back_icon}} {{icon_size}}"></i></a></li>{% endif %}
254
+ {% if home_url != "none" %}<li id="quickLinksHomeButton" class="nav-item"><a id="home_id" class="nav-icon" href="{{home_url}}" aria-label="{{home_label}}"><i class="{{icon_family}} {{icon_family}}-{{home_icon}} {{icon_size}}"></i></a></li>{% endif %}
255
+ {% if disqus_url != "none" %}<li id="quickLinksDisqusButton" class="nav-item"><a id="disqus_id" class="nav-icon" href="{{disqus_url}}" aria-label="{{disqus_label}}" target="blank"><i class="nav-icon {{icon_family}} {{icon_family}}-{{disqus_icon}} {{icon_size}}"></i></a></li>{% endif %}
256
+ {% if github_url != "none" %}<li id="quickLinksGithubButton" class="nav-item"><a id="github_id" class="nav-icon" href="{{github_url}}" aria-label="{{github_label}}" target="blank"><i class="nav-icon {{icon_family}} {{icon_family}}-{{github_icon}} {{icon_size}}"></i></a></li>{% endif %}
257
+ {% if patreon_url != "none" %}<li id="quickLinksPatreonButton" class="nav-item"><a id="patreon_id" class="nav-icon" href="{{patreon_url}}" aria-label="{{patreon_label}}" target="blank"><i class="nav-icon {{icon_family}} {{icon_family}}-{{patreon_icon}} {{icon_size}}"></i></a></li>{% endif %}
258
+ {% if facebook_url != "none" %}<li id="quickLinksFacebookButton" class="nav-item"><a id="facebook_id" class="nav-icon" href="{{facebook_url}}" aria-label="{{facebook_label}}" target="blank"><i class="nav-icon {{icon_family}} {{icon_family}}-{{facebook_icon}} {{icon_size}}"></i></a></li>{% endif %}
259
+ {% if twitter_url != "none" %}<li id="quickLinksTwitterButton" class="nav-item"><a id="twitter_id" class="nav-icon" href="{{twitter_url}}" aria-label="{{twitter_label}}" target="blank"><i class="nav-icon {{icon_family}} {{icon_family}}-{{twitter_icon}} {{icon_size}}"></i></a></li>{% endif %}
260
+
261
+ {% comment %} Action buttons
262
+ ------------------------------------------------------------------------------ {% endcomment %}
263
+ {% if show_quicksearch_icon %}<li id="quickLinksSearchButton" class="nav-item {{quicksearch_action}}"><a class="nav-icon" href="#" aria-label="{{quicksearch_label}}"><i class="nav-icon {{icon_family}} {{icon_family}}-{{quicksearch_icon}} {{icon_size}}"></i></a></li>{% endif %}
264
+ {% if show_auth_manager_icon %}<li id="quickLinksSignInOutButton" class="nav-item sign-inout" style="display: none;"><a class="nav-icon" id="navLinkSignInOut" aria-label="SignOut" href="#" data-bs-toggle="modal" data-bs-target="#{{signin_modal_id}}"><i id="iconSignInOut" class="nav-icon {{icon_family}} {{icon_family}}-{{signin_icon}} {{icon_size}}"></i></a></li>{% endif %}
265
+ {% if show_cookieconsent_icon %}<li id="quickLinksCookieButton" class="nav-item {{cookies_action}}" style="display: block;"><a href="#" aria-label="{{cookies_label}}"><i class="nav-icon {{icon_family}} {{icon_family}}-{{cookies_icon}} {{icon_size}}"></i></a></li>{% endif %}
266
+ {% if show_r_text_icon %}<li id="quickLinksRTextButton" class="nav-item {{r_text_action}}" style="display: block;"><a class="nav-icon" href="#" aria-label="{{r_text_label}}" data-bs-toggle="modal" data-bs-target="#fluidModalRTextResizer"><i class="nav-icon {{icon_family}} {{icon_family}}-{{r_text_icon}} {{icon_size}}"></i></a></li>{% endif %}
267
+ {% if show_google_translate_icon %}<li id="quickLinksTranslateButton" class="nav-item {{translate_action}}" style="display: block;"><a href="#" aria-label="{{translate_label}}"><i class="nav-icon {{icon_family}} {{icon_family}}-{{translate_icon}} {{icon_size}}"></i></a></li>{% endif %}
254
268
 
255
269
  {% comment %} Unused
256
270
  --------------------------------------------------------------------------------
257
- {% if show_translator_icon %}<li id="quickLinksLanguageButton" class="nav-item translator"><a class="nav-icon" href="#void" aria-label="Translator"><i class="{{icon_family}} {{icon_family}}-{{translator_icon}} {{icon_size}}"></i></a></li>{% endif %}
258
- {% if show_google_translate_lang %}<li id="quickLinksTranslateLangButton" class="nav-item" style="display: block;"><a href="javascript:j1.translator.showDialog()" aria-label="Google Translate"><i class="flag-icon flag-icon-{{translate_lang}} rectangle size-md"></i></a></li>{% endif %}
271
+ {% if show_control_center_icon %}<li id="quickLinksControlCenterButton" class="nav-item control-center" style="display: block;"><a class="nav-icon" href="{{control_center_url}}" aria-label="ControlCenter"><i class="{{icon_family}} {{icon_family}}-{{control_center_icon}} {{icon_size}}"></i></a></li>{% endif %}
272
+ {% if show_translator_icon %}<li id="quickLinksLanguageButton" class="nav-item translator"><a class="nav-icon" href="#void" aria-label="Translator"><i class="nav-icon {{icon_family}} {{icon_family}}-{{translator_icon}} {{icon_size}}"></i></a></li>{% endif %}
273
+ {% if show_google_translate_lang %}<li id="quickLinksTranslateLangButton" class="nav-item" style="display: block;"><a href="javascript:j1.translator.showDialog()" aria-label="Google Translate"><i class="nav-icon flag-icon flag-icon-{{translate_lang}} rectangle size-md"></i></a></li>{% endif %}
259
274
  -------------------------------------------------------------------------------- {% endcomment %}
260
275
 
261
276
  </ul>
@@ -190,10 +190,12 @@ j1.adapter['cookieConsent'] = (function (j1, window) {
190
190
  logger.info('\n' + 'state: ' + _this.getState());
191
191
  logger.debug('\n' + 'module initialized successfully');
192
192
 
193
- $('#quickLinksCookieButton').click(function(e) {
194
- logger.info('\n' + 'call default action');
195
- j1.cookieConsent.showDialog();
196
- });
193
+ // Click events moved to Navigator (core)
194
+ //
195
+ // $('#quickLinksCookieButton').click(function(e) {
196
+ // logger.info('\n' + 'call default action');
197
+ // j1.cookieConsent.showDialog();
198
+ // });
197
199
 
198
200
  clearInterval(dependencies_met_page_ready);
199
201
  }
@@ -267,15 +269,18 @@ j1.adapter['cookieConsent'] = (function (j1, window) {
267
269
  $('#quickLinksCookieButton').css('display', 'block');
268
270
  }
269
271
 
270
- logger.debug('\n' + 'j1 cookies found:' + j1Cookies.length);
271
- j1Cookies.forEach(item => console.log('j1.core.switcher: ' + item));
272
- logger.debug('\n' + 'ga cookies found:' + gaCookies.length);
273
- gaCookies.forEach(item => console.log('j1.core.switcher: ' + item));
274
-
275
- if (user_agent.includes('iPad')) {
276
- logger.warn('\n' + 'product detected : ' + platform.product);
277
- logger.warn('\n' + 'skip deleting (unwanted) cookies for this platform');
278
- }
272
+ // jadams, 2021-11-29: disabled additional logs to verify the existance
273
+ // of J1 and GA cookies (testing only)
274
+ //
275
+ // logger.debug('\n' + 'j1 cookies found:' + j1Cookies.length);
276
+ // j1Cookies.forEach(item => console.log('j1.core.switcher: ' + item));
277
+ // logger.debug('\n' + 'ga cookies found:' + gaCookies.length);
278
+ // gaCookies.forEach(item => console.log('j1.core.switcher: ' + item));
279
+ //
280
+ // if (user_agent.includes('iPad')) {
281
+ // logger.warn('\n' + 'product detected : ' + platform.product);
282
+ // logger.warn('\n' + 'skip deleting (unwanted) cookies for this platform');
283
+ // }
279
284
 
280
285
  // Manage Google Analytics OptIn/Out
281
286
  // See: https://github.com/luciomartinez/gtag-opt-in/wiki
@@ -776,7 +776,7 @@ var j1 = (function () {
776
776
  }
777
777
  } else {
778
778
  logText = '\n' + 'no banner found in site';
779
- logger.warn(logText);
779
+ logger.debug(logText);
780
780
  return false;
781
781
  }
782
782
  return true;
@@ -879,7 +879,7 @@ var j1 = (function () {
879
879
  }
880
880
  } else {
881
881
  logText = '\n' + 'no panel found in site';
882
- logger.warn(logText);
882
+ logger.debug(logText);
883
883
  return false;
884
884
  }
885
885
  return true;
@@ -931,7 +931,7 @@ var j1 = (function () {
931
931
  selector.load(footer_data_path, cb_load_closure(id));
932
932
  } else {
933
933
  logText = '\n' + 'data not loaded';
934
- logger.warn(logText);
934
+ logger.debug(logText);
935
935
  j1.setXhrDataState(id, 'not loaded');
936
936
  j1.setXhrDomState(id, 'pending');
937
937
  return false;
@@ -1041,8 +1041,8 @@ var j1 = (function () {
1041
1041
  setTimeout (function() {
1042
1042
  // Manage providers for personalization OptIn/Out (Comments|Ads)
1043
1043
  if (!user_consent.personalization) {
1044
- logger.warn('\n' + 'disable comment provider: ' + comment_provider);
1045
- logger.warn('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
1044
+ logger.debug('\n' + 'disable comment provider: ' + comment_provider);
1045
+ logger.debug('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
1046
1046
  $('#leave-a-comment').remove();
1047
1047
  if (comment_provider === 'disqus') {
1048
1048
  $('#dsq-count-scr').remove();
@@ -1079,7 +1079,7 @@ var j1 = (function () {
1079
1079
  // no dropcaps if translation enabled
1080
1080
  if (user_translate.translationEnabled) {
1081
1081
  logger.info('\n' + 'translation enabled: ' + user_translate.translationEnabled);
1082
- logger.warn('\n' + 'skipped processing of dropcaps');
1082
+ logger.debug('\n' + 'skipped processing of dropcaps');
1083
1083
  } else {
1084
1084
  // initialize dropcaps
1085
1085
  logger.info('\n' + 'post processing: createDropCap');
@@ -1107,7 +1107,7 @@ var j1 = (function () {
1107
1107
  logger.info('\n' + 'tracking disabled, tracking id found: ' + tracking_id);
1108
1108
  }
1109
1109
  } else {
1110
- logger.warn('\n' + 'tracking not allowed, privacy settings for analysis: ' + user_consent.analysis);
1110
+ logger.debug('\n' + 'tracking not allowed, privacy settings for analysis: ' + user_consent.analysis);
1111
1111
  }
1112
1112
 
1113
1113
  // show|hide cookie icon (should MOVED to Cookiebar ???)
@@ -1155,8 +1155,8 @@ var j1 = (function () {
1155
1155
  // for GDPR compliance, themes feature may disabled on
1156
1156
  // privacy settings
1157
1157
  if (!user_consent.personalization) {
1158
- logger.warn('\n' + 'disable themes feature because of privacy settings');
1159
- logger.warn('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
1158
+ logger.debug('\n' + 'disable themes feature because of privacy settings');
1159
+ logger.debug('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
1160
1160
  $("#themes_menu").hide();
1161
1161
  } else {
1162
1162
  $("#themes_menu").show();
@@ -1198,8 +1198,8 @@ var j1 = (function () {
1198
1198
 
1199
1199
  // Manage providers for personalization OptIn/Out (Comments|Ads)
1200
1200
  if (!user_consent.personalization) {
1201
- logger.warn('\n' + 'disable comment provider: ' + comment_provider);
1202
- logger.warn('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
1201
+ logger.debug('\n' + 'disable comment provider: ' + comment_provider);
1202
+ logger.debug('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
1203
1203
  $('#leave-a-comment').remove();
1204
1204
  if (comment_provider === 'disqus') {
1205
1205
  $('#dsq-count-scr').remove();
@@ -1260,7 +1260,7 @@ var j1 = (function () {
1260
1260
  // no dropcaps if translation enabled
1261
1261
  if (user_translate.translationEnabled) {
1262
1262
  logger.info('\n' + 'translation enabled: ' + user_translate.translationEnabled);
1263
- logger.warn('\n' + 'skipped processing of dropcaps');
1263
+ logger.debug('\n' + 'skipped processing of dropcaps');
1264
1264
  } else {
1265
1265
  // initialize dropcaps
1266
1266
  logger.info('\n' + 'post processing: createDropCap');
@@ -1289,7 +1289,7 @@ var j1 = (function () {
1289
1289
  logger.info('\n' + 'tracking disabled, tracking id found: ' + tracking_id);
1290
1290
  }
1291
1291
  } else {
1292
- logger.warn('\n' + 'tracking not allowed, privacy settings for analysis: ' + user_consent.analysis);
1292
+ logger.debug('\n' + 'tracking not allowed, privacy settings for analysis: ' + user_consent.analysis);
1293
1293
  }
1294
1294
 
1295
1295
  logger.info('\n' + 'mode detected: web');
@@ -1338,8 +1338,8 @@ var j1 = (function () {
1338
1338
  // for GDPR compliance, themes feature may disabled on
1339
1339
  // privacy settings
1340
1340
  if (!user_consent.personalization) {
1341
- logger.warn('\n' + 'disable themes feature because of privacy settings');
1342
- logger.warn('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
1341
+ logger.debug('\n' + 'disable themes feature because of privacy settings');
1342
+ logger.debug('\n' + 'personalization not allowed, privacy settings for personalization: ' + user_consent.personalization);
1343
1343
  $("#themes_menu").hide();
1344
1344
  } else {
1345
1345
  $("#themes_menu").show();
@@ -1594,7 +1594,7 @@ var j1 = (function () {
1594
1594
  if (options.xhr_data_element !== '') {
1595
1595
  logger.info('\n' + 'XHR data element found: ' + options.xhr_data_element);
1596
1596
  } else {
1597
- logger.warn('\n' + 'no XHR data element found, loading data aborted');
1597
+ logger.debug('\n' + 'no XHR data element found, loading data aborted');
1598
1598
  return;
1599
1599
  }
1600
1600
 
@@ -1626,7 +1626,7 @@ var j1 = (function () {
1626
1626
  // failsafe - prevent XHR load errors
1627
1627
  if (id != '#undefined') {
1628
1628
  logText = '\n' + 'data not loaded on id:' + id;
1629
- logger.warn(logText);
1629
+ logger.debug(logText);
1630
1630
  j1.setXhrDataState(id, 'not loaded');
1631
1631
  j1.setXhrDomState(id, 'not loaded');
1632
1632
  // Set processing state to 'finished' to complete module load
@@ -98,7 +98,6 @@ j1.adapter['translator'] = (function (j1, window) {
98
98
  var secure;
99
99
  var logText;
100
100
  var cookie_written;
101
- var modal_language;
102
101
  var navigator_language;
103
102
  var translation_language;
104
103
  var ddSourceLanguage;
@@ -171,7 +170,6 @@ j1.adapter['translator'] = (function (j1, window) {
171
170
  domain = hostname.substring(hostname.lastIndexOf('.', hostname.lastIndexOf('.') - 1) + 1);
172
171
  cookie_domain = (domain.includes('.')) ? '.' + domain : domain;
173
172
  secure = (url.protocol.includes('https')) ? true : false;
174
- modal_language = "{{site.language}}";
175
173
  navigator_language = navigator.language || navigator.userLanguage; // userLanguage for MS IE compatibility
176
174
  translation_language = navigator_language.split('-')[0];
177
175
  cookie_names = j1.getCookieNames();
@@ -270,6 +268,10 @@ j1.adapter['translator'] = (function (j1, window) {
270
268
  expires: 365
271
269
  });
272
270
 
271
+ if (moduleOptions.dialogLanguage === 'auto') {
272
+ moduleOptions.dialogLanguage = '{{contentLanguage}}';
273
+ }
274
+
273
275
  j1.translator = new Translator({
274
276
  contentURL: moduleOptions.contentURL, // dialog content (modals) for all supported languages
275
277
  cookieName: moduleOptions.cookieName, // the name of the User State Cookie (primary data)
@@ -302,10 +304,12 @@ j1.adapter['translator'] = (function (j1, window) {
302
304
  }
303
305
  }
304
306
 
305
- $('#quickLinksTranslateButton').click(function(e) {
306
- logger.info('\n' + 'call default action');
307
- j1.translator.showDialog();
308
- });
307
+ // Click events moved to Navigator (core)
308
+ //
309
+ // $('#quickLinksTranslateButton').click(function(e) {
310
+ // logger.info('\n' + 'call default action');
311
+ // j1.translator.showDialog();
312
+ // });
309
313
 
310
314
  _this.setState('finished');
311
315
  logger.info('\n' + 'state: ' + _this.getState());