appscms-tools-theme 4.9.4 → 4.9.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a145389f6807bc4a01f6c094e75c5470b692f5132f5a2cc94d4f06b7a489996
4
- data.tar.gz: 9ca6c0b39dc2593b9961c0793db2938244d8a3141d203d1f818c24b8ae3316b2
3
+ metadata.gz: 036c093f5d79f79927ec4a3172a4a707c3b47467ee557d9ba07700c8e562754e
4
+ data.tar.gz: 0f7753d8b4bdaf9f4bd6944dbcb2b8f39a4868ce8d51a4001b14260f79a1d3a0
5
5
  SHA512:
6
- metadata.gz: 7d577b46e28ae3bdf6e3f67366aa988bfefd702e646c1856bcc9d1f2d869af97cdb9761c0511787a19f220c191d1ab1b002dfe4d94985405eb4c862d52fe29df
7
- data.tar.gz: 7e64ed9dc871b4ea3a1d444c6c36a55d3fdfd0e5a6005e8ba8c7e96a5628604721e55fe70b64be927cf6ee58fdae7168e550d877304205897a8212806b3b5376
6
+ metadata.gz: 7b6f21c6a4438aec8dbf5ed2b14302b0cb5dd466622606708617794d1c07fd1627e23df91bb4e97702b03c56db728ab5848f2d03cb57d5e780c0620fd9e8d609
7
+ data.tar.gz: ccb767740b01f1bf02308b6dfdc7de315db0b76fd1bab754a90a1f4ac2c320a76384383cf62cdd4fa7e4a7feaf2b1d862c24e6a64d99aa033f92e71dca2d0929
data/_includes/.DS_Store CHANGED
Binary file
Binary file
@@ -76,13 +76,11 @@
76
76
  {%- else -%}
77
77
  <meta name="description" content="{{description}}" />
78
78
 
79
- {%- endif -%}
80
- {%- if page.customLink -%}
79
+ {%- endif -%} {%- if page.customLink -%}
81
80
  <link rel="canonical" href="{{site.url | append: page.customLink}}" />
82
81
  {%- else -%}
83
82
  <link rel="canonical" href="{{site.url | append: page.url}}" />
84
83
  {%- endif -%}
85
-
86
84
 
87
85
  <link
88
86
  rel="stylesheet"
@@ -262,18 +260,34 @@
262
260
  <meta property="og:title" content="{{title}}" />
263
261
  <meta property="og:description" content="{{description}}" />
264
262
  <meta property="og:type" content="website" />
263
+ {%- if page.customLink -%}
264
+ <meta
265
+ data-rh="true"
266
+ property="og:url"
267
+ content="{{site.url | append: page.customLink}}"
268
+ />
269
+ {%- else -%}
265
270
  <meta
266
271
  data-rh="true"
267
272
  property="og:url"
268
273
  content="{{site.url | append: page.url}}"
269
274
  />
275
+ {%- endif -%}
270
276
  <meta data-rh="true" property="og:site_name" content="{{site.name}}" />
271
277
  <meta data-rh="true" property="twitter:domain" content="{{site.url}}" />
278
+ {%- if page.customLink -%}
279
+ <meta
280
+ data-rh="true"
281
+ property="twitter:url"
282
+ content="{{site.url | append: page.customLink}}"
283
+ />
284
+ {%- else -%}
272
285
  <meta
273
286
  data-rh="true"
274
287
  property="twitter:url"
275
288
  content="{{site.url | append: page.url}}"
276
289
  />
290
+ {%- endif -%}
277
291
  <meta data-rh="true" name="twitter:title" content="{{title}}" />
278
292
  <meta data-rh="true" name="twitter:description" content="{{description}}" />
279
293
  <meta
@@ -284,17 +298,14 @@
284
298
  {% include adsense/adsense.html %} {%- if page.noindex -%}
285
299
  <meta name="robots" content="noindex" />
286
300
  {%- endif -%} {% assign whitelist_urls =
287
- site.data.noindexURLs.internatlionalization_whitelist_urls %} {% assign
288
- noindex_languages = site.data.noindexURLs.noindex_languages %} {% if
289
- noindex_languages contains page.lang %} {% unless whitelist_urls contains
290
- page.url %}
301
+ site.data.noindexURLs.internatlionalization_whitelist_urls %} {% if page.lang
302
+ != "en" %} {% unless whitelist_urls contains page.url %}
291
303
  <meta name="robots" content="noindex" />
292
304
  {% endunless %} {% endif %} {% assign blacklist_urls =
293
305
  site.data.noindexURLs.blacklist_urls %} {% if blacklist_urls contains page.url
294
306
  %}
295
307
  <meta name="robots" content="noindex" />
296
308
  {% endif %} {%- if site.pwa -%}
297
-
298
309
  <link rel="manifest" href="/assets/js/manifest.json" />
299
310
 
300
311
  {%- endif -%} {%- if site.internationalization or site.internationalizationall
@@ -1,5 +1,4 @@
1
1
  <style>
2
-
3
2
  .modal-arrow-btn {
4
3
  position: absolute;
5
4
  top: 50%;
@@ -15,14 +14,15 @@
15
14
  border-radius: 50%;
16
15
  transform: translateY(-50%);
17
16
  }
18
-
17
+
19
18
  .modal-arrow-btn.prev {
20
19
  left: 10px;
21
20
  }
22
-
21
+
23
22
  .modal-arrow-btn.next {
24
23
  right: 10px;
25
24
  }
25
+
26
26
  @media (max-width: 768px) {
27
27
  .modal-arrow-btn {
28
28
  top: 30%;
@@ -31,16 +31,16 @@
31
31
  font-size: 20px;
32
32
  line-height: 40px;
33
33
  }
34
-
34
+
35
35
  .modal-arrow-btn.prev {
36
36
  left: 5px;
37
37
  }
38
-
38
+
39
39
  .modal-arrow-btn.next {
40
40
  right: 5px;
41
41
  }
42
42
  }
43
-
43
+
44
44
  @media (max-width: 480px) {
45
45
  .modal-arrow-btn {
46
46
  width: 30px;
@@ -48,15 +48,16 @@
48
48
  font-size: 16px;
49
49
  line-height: 30px;
50
50
  }
51
-
51
+
52
52
  .modal-arrow-btn.prev {
53
53
  left: 3px;
54
54
  }
55
-
55
+
56
56
  .modal-arrow-btn.next {
57
57
  right: 3px;
58
58
  }
59
59
  }
60
+
60
61
  .modal1 {
61
62
  position: fixed;
62
63
  z-index: 1000;
@@ -71,14 +72,14 @@
71
72
  transform: scale(0.8);
72
73
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s linear 0.3s;
73
74
  }
74
-
75
+
75
76
  .modal1.show {
76
77
  opacity: 1;
77
78
  visibility: visible;
78
79
  transform: scale(1);
79
80
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0s;
80
81
  }
81
-
82
+
82
83
  .modal1-content1 {
83
84
  margin: auto;
84
85
  display: block;
@@ -89,66 +90,65 @@
89
90
  transform: translateY(-20px);
90
91
  transition: opacity 0.3s ease 0.1s, transform 0.3s ease 0.1s;
91
92
  }
92
-
93
+
93
94
  .modal1.show .modal1-content1 {
94
95
  opacity: 1;
95
96
  transform: translateY(0);
96
97
  }
97
- .modal1-body img {
98
- width: 100%;
99
- height: auto;
100
- }
101
- .close1 {
102
- position: absolute;
103
- top: 10px;
104
- right: 10px;
105
- font-size: 24px;
106
- color: #fff;
107
- cursor: pointer;
108
- }
109
- .close1:hover {
110
- color: #ccc;
111
- }
112
- </style>
113
- <div class="inforgraphics_section">
114
- <h3 class="text-center w-100 mb-5"><b>Other useful information</b></h3>
115
- <div class="wrapper">
116
- <i id="left" class="fas fa-angle-left"></i>
117
- <div class="carousel">
118
- <div class="carousel-inner">
119
- {%- if pageData.infographics -%} {% for item in pageData.infographics %}
120
- <div class="slide">
121
- <img
122
- loading="lazy"
123
- src="{{ item.image }}"
124
- alt="{{item.alt}}"
125
- draggable="false"
126
- class="infographic-img"
127
- onclick="openModal1('{{ item.image }}')"
128
- />
129
- <p class="infographic-desc">{{ item.description | capitalize }}</p>
130
- </div>
131
- {% endfor %} {%- endif -%}
98
+
99
+ .modal1-body img {
100
+ width: 100%;
101
+ height: auto;
102
+ }
103
+
104
+ .close1 {
105
+ position: absolute;
106
+ top: 10px;
107
+ right: 10px;
108
+ font-size: 24px;
109
+ color: #fff;
110
+ cursor: pointer;
111
+ }
112
+
113
+ .close1:hover {
114
+ color: #ccc;
115
+ }
116
+ </style>
117
+ <div class="inforgraphics_section">
118
+ <h3 class="text-center w-100 mb-5"><b>Other useful information</b></h3>
119
+ <div class="wrapper">
120
+ <i id="left" class="fas fa-angle-left"></i>
121
+ <div class="carousel">
122
+ <div class="carousel-inner">
123
+ {%- if pageData.infographics -%} {% for item in pageData.infographics %}
124
+ <div class="slide">
125
+ <img loading="lazy" src="{{ item.image }}" alt="{{item.alt}}" draggable="false" class="infographic-img"
126
+ onclick="openModal1('{{ item.image }}')" />
127
+ <p class="infographic-desc">{{ item.description | capitalize }}</p>
132
128
  </div>
129
+ {% endfor %} {%- endif -%}
133
130
  </div>
134
- <i id="right" class="fas fa-angle-right"></i>
135
131
  </div>
132
+ <i id="right" class="fas fa-angle-right"></i>
136
133
  </div>
137
- <div id="imageModal1" class="modal1" onclick="closeModal1()">
138
- <span class="close1" onclick="closeModal1()">&times;</span>
139
- <button class="modal-arrow-btn prev">&#10094;</button>
140
- <button class="modal-arrow-btn next">&#10095;</button>
141
- <div class="modal1-content1">
142
- <div class="modal1-body">
143
- <img id="modal1Image" src="" alt="Image" />
144
- </div>
134
+ </div>
135
+ <div id="imageModal1" class="modal1" onclick="closeModal1()">
136
+ <span class="close1" onclick="closeModal1()">&times;</span>
137
+ <button class="modal-arrow-btn prev">&#10094;</button>
138
+ <button class="modal-arrow-btn next">&#10095;</button>
139
+ <div class="modal1-content1">
140
+ <div class="modal1-body">
141
+ <img id="modal1Image" src="" alt="Image" />
145
142
  </div>
146
143
  </div>
147
- <script>
144
+ </div>
145
+
146
+
147
+ <script>
148
148
  document.addEventListener("DOMContentLoaded", () => {
149
149
  let modal_array_of_images = [];
150
150
  let current_modal_img = 0;
151
-
151
+
152
152
  // Function to update the modal image
153
153
  function updateModalImage() {
154
154
  const modal1Img = document.getElementById("modal1Image");
@@ -156,12 +156,12 @@
156
156
  modal1Img.src = modal_array_of_images[current_modal_img].src;
157
157
  }
158
158
  }
159
-
159
+
160
160
  // Function to prepare the array of images for the modal
161
161
  function readyallimages() {
162
162
  modal_array_of_images = Array.from(document.querySelectorAll('.infographic-img'));
163
163
  }
164
-
164
+
165
165
  // Function to open the modal and set the current image
166
166
  function openModal1(imageSrc) {
167
167
  const modal1 = document.getElementById("imageModal1");
@@ -170,20 +170,20 @@
170
170
  current_modal_img = modal_array_of_images.findIndex(img => img.src === imageSrc);
171
171
  updateModalImage();
172
172
  }
173
-
173
+
174
174
  // Function to close the modal
175
175
  function closeModal1() {
176
176
  const modal1 = document.getElementById("imageModal1");
177
177
  modal1.classList.remove("show");
178
178
  }
179
-
179
+
180
180
  // Add click event listeners to each infographic image
181
181
  document.querySelectorAll('.infographic-img').forEach(img => {
182
182
  img.addEventListener('click', (event) => {
183
183
  openModal1(event.target.src);
184
184
  });
185
185
  });
186
-
186
+
187
187
  // Event listeners for the modal arrow buttons
188
188
  const modal_btns = document.querySelectorAll('.modal-arrow-btn');
189
189
  modal_btns.forEach(modal_btn => {
@@ -197,22 +197,21 @@
197
197
  updateModalImage();
198
198
  });
199
199
  });
200
-
200
+
201
201
  // Event listener for the close button
202
202
  document.querySelectorAll(".close1").forEach(element => {
203
203
  element.addEventListener("click", closeModal1);
204
204
  });
205
-
205
+
206
206
  // Event listener for closing the modal when clicking outside the image
207
207
  document.getElementById("imageModal1").addEventListener("click", (event) => {
208
208
  if (event.target === document.getElementById("imageModal1")) {
209
209
  closeModal1();
210
210
  }
211
211
  });
212
-
212
+
213
213
  // Initialize modal images on page load
214
214
  readyallimages();
215
215
  });
216
-
217
- </script>
218
-
216
+
217
+ </script>
@@ -13,7 +13,7 @@
13
13
  {%- else -%}
14
14
  {%- endif -%}
15
15
  <div class="d-flex align-items-center">
16
- {%- if site.navigationSearch -%}
16
+ {%- if site.navigationSearch and page.lang == "en" -%}
17
17
  <div class="nav-search mr-4">
18
18
  <div class="search-container">
19
19
  <input type="text" class="search-input" placeholder="Search Tools">
@@ -25,9 +25,7 @@
25
25
 
26
26
  <div id="results" class="searchbarResults"></div>
27
27
  </div>
28
- {%- endif -%}
29
-
30
-
28
+ {%- endif -%}
31
29
  {%- if siteData.navItems -%}
32
30
  <div class="appscms-navbar-nav-links">
33
31
  {%- for item in siteData.navItems -%}
@@ -10,7 +10,8 @@
10
10
  <img class="mt-3" style="cursor: pointer" height="30px" width="30px" src="/assets/images/close-button.svg"
11
11
  alt="close-button" />
12
12
  </div>
13
- {%- if site.navigationSearch -%}
13
+
14
+ {%- if site.navigationSearch and page.lang == "en" -%}
14
15
  <div class="mobile-search-bar">
15
16
  <div class="mobile-search-container">
16
17
  <input type="text" class="mobile-search-input" placeholder="Search Tools">
@@ -266,8 +267,6 @@
266
267
  {%- endif -%}
267
268
 
268
269
 
269
-
270
-
271
270
  <script>
272
271
  document.addEventListener("DOMContentLoaded", function () {
273
272
  const scrollContainer = document.querySelector(".appscms-toolbar-list");
@@ -3,34 +3,14 @@ site.data.[page.folderName][lang][file] %} {%- assign dataAtt =
3
3
  "data-folderName='$folderName' data-lang='$lang' data-fileName='$fileName'
4
4
  data-tool='$tool'" -%} {%- assign $folderName = '$folderName' -%} {%- if
5
5
  site.removeJquery != true -%}
6
- <script
7
- defer
8
- src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"
9
- {%-
10
- if
11
- site.crossorigin
12
- -%}
13
- {{
14
- }}
15
- crossorigin
16
- {%-
17
- endif
18
- -%}
19
- ></script>
6
+ <script defer src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js" {%- if site.crossorigin -%} {{ }}
7
+ crossorigin {%- endif -%}></script>
20
8
  {%- endif -%} {%- if site.search -%} {%- if page.layout == "appscms-home" or
21
9
  page.layout == "contenttool-home" -%}
22
- <script
23
- defer
24
- src="/assets/js/appscms-search.js"
25
- crossorigin="anonymous"
26
- ></script>
10
+ <script defer src="/assets/js/appscms-search.js" crossorigin="anonymous"></script>
27
11
  {%- endif -%} {%- endif -%}
28
12
 
29
- <script
30
- defer
31
- src="/assets/js/appscms-theme.js"
32
- crossorigin="anonymous"
33
- ></script>
13
+ <script data-lang="{{page.lang}}" defer src="/assets/js/appscms-theme.js" crossorigin="anonymous"></script>
34
14
  <script defer src="/assets/js/appscms-infographics.js"></script>
35
15
 
36
16
  {%- if site.userTrackingCount -%} {%- include customScripts.html -%} {%- endif
@@ -39,87 +19,32 @@ page.layout == "contenttool-home" -%}
39
19
  <script defer src="/assets/js/usageTrackingEvents.js"></script>
40
20
  <script defer src="/assets/js/sharePage.js"></script>
41
21
  {%- endif -%} {%- if site.removeBootstrapJs != true -%}
42
- <script
43
- defer="defer"
44
- src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"
45
- integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns"
46
- crossorigin="anonymous"
47
- ></script>
22
+ <script defer="defer" src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"
23
+ integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script>
48
24
  {%- endif -%} {{site.data.customcdns.customcdns.jsfiles}} {%- if
49
25
  scriptData.jsfilepaths -%} {%- for path in scriptData.jsfilepaths -%} {%- assign
50
26
  asset_dir = path -%} {%- if site.versioning and asset_dir != "" -%} {%- if
51
27
  asset_dir contains "https" and asset_dir contains "https://" -%}
52
- <script
53
- defer
54
- src="{{path}}"
55
- data-folderName="{{page.folderName}}"
56
- data-lang="{{page.lang}}"
57
- data-fileName="{{page.fileName}}"
58
- data-tool="{{page.tool}}"
59
- data-permalink="{{page.permalink}}"
60
- {%-
61
- if
62
- site.crossorigin
63
- -%}
64
- {{
65
- }}
66
- crossorigin
67
- {%-
68
- endif
69
- -%}
70
- ></script>
28
+ <script defer src="{{path}}" data-folderName="{{page.folderName}}" data-lang="{{page.lang}}"
29
+ data-fileName="{{page.fileName}}" data-tool="{{page.tool}}" data-permalink="{{page.permalink}}" {%- if
30
+ site.crossorigin -%} {{ }} crossorigin {%- endif -%}></script>
71
31
  {%- else -%}
72
- <script
73
- defer
74
- src="{% ministamp { source_path: '{{ asset_dir }}', destination_path: '{{ asset_dir }}' } %}"
75
- data-folderName="{{page.folderName}}"
76
- data-lang="{{page.lang}}"
77
- data-fileName="{{page.fileName}}"
78
- data-tool="{{page.tool}}"
79
- data-permalink="{{page.permalink}}"
80
- {%-
81
- if
82
- site.crossorigin
83
- -%}
84
- {{
85
- }}
86
- crossorigin
87
- {%-
88
- endif
89
- -%}
90
- ></script>
32
+ <script defer src="{% ministamp { source_path: '{{ asset_dir }}', destination_path: '{{ asset_dir }}' } %}"
33
+ data-folderName="{{page.folderName}}" data-lang="{{page.lang}}" data-fileName="{{page.fileName}}"
34
+ data-tool="{{page.tool}}" data-permalink="{{page.permalink}}" {%- if site.crossorigin -%} {{ }} crossorigin {%- endif
35
+ -%}></script>
91
36
  {%- endif -%} {%- else -%}
92
- <script
93
- defer
94
- src="{{path}}"
95
- data-folderName="{{page.folderName}}"
96
- data-lang="{{page.lang}}"
97
- data-fileName="{{page.fileName}}"
98
- data-tool="{{page.tool}}"
99
- data-permalink="{{page.permalink}}"
100
- {%-
101
- if
102
- site.crossorigin
103
- -%}
104
- {{
105
- }}
106
- crossorigin
107
- {%-
108
- endif
109
- -%}
110
- ></script>
37
+ <script defer src="{{path}}" data-folderName="{{page.folderName}}" data-lang="{{page.lang}}"
38
+ data-fileName="{{page.fileName}}" data-tool="{{page.tool}}" data-permalink="{{page.permalink}}" {%- if
39
+ site.crossorigin -%} {{ }} crossorigin {%- endif -%}></script>
111
40
  {%- endif -%} {%- endfor -%} {%- endif -%} {%- if scriptData.jscdns -%} {%- for
112
41
  item in scriptData.jscdns -%} {{item | replace:"$folderName", page.folderName |
113
42
  replace: "$fileName", page.fileName | replace: "$lang", page.lang | replace:
114
43
  "$tool", page.tool }} {%- endfor -%} {%- endif -%} {%- assign font = "Inter" -%}
115
44
  {%- if site.removeFontAwesome != true -%}
116
- <link
117
- rel="stylesheet"
118
- href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
45
+ <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css"
119
46
  integrity="sha512-iBBXm8fW90+nuLcSKlbmrPcLa0OT92xO1BIsZ+ywDWZCvqsWgccV3gFoRBv0z+8dLJgyAHIhR35VZc2oM/gI1w=="
120
- crossorigin="anonymous"
121
- referrerpolicy="no-referrer"
122
- />
47
+ crossorigin="anonymous" referrerpolicy="no-referrer" />
123
48
  {%- endif -%} {%- include google-analytics.html -%} {%- if site.bookmark -%} {%-
124
49
  if page.layout == "appscms-feature" -%}
125
50
  <script>
@@ -141,4 +66,4 @@ if page.layout == "appscms-feature" -%}
141
66
  toaster.style.display = "none";
142
67
  }, 10000);
143
68
  </script>
144
- {%- endif -%} {%- endif -%}
69
+ {%- endif -%} {%- endif -%}
@@ -413,9 +413,10 @@
413
413
  name="twitter:image:src"
414
414
  content="{{site.url}}{{favicon}}"
415
415
  />
416
- {% include adsense/adsense.html %} {%- if page.noindex -%}
416
+ {% include adsense/adsense.html %}
417
+
418
+ {%- if page.noindex -%}
417
419
  <meta name="robots" content="noindex" />
418
-
419
420
  {%- endif -%} {%- if site.pwa -%}
420
421
 
421
422
  <link rel="manifest" href="/assets/js/manifest.json" />
data/assets/.DS_Store CHANGED
Binary file
@@ -173,7 +173,7 @@ if (processingBtn && buttonLoader) {
173
173
  }, { passive: true });
174
174
  }
175
175
 
176
- if ("{{ site.navigationSearch }}" === "true" ) {
176
+ if ("{{ site.navigationSearch }}" === "true" && document.currentScript.dataset.lang == "en") {
177
177
 
178
178
  // Fetch data from data.json
179
179
  const worker = new Worker('/search-worker.js');
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: appscms-tools-theme
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.9.4
4
+ version: 4.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-11-21 00:00:00.000000000 Z
11
+ date: 2025-01-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll