appscms-tools-theme 3.7.9 → 3.8.1

Sign up to get free protection for your applications and to get access to all the features.
data/_layouts/home.html CHANGED
@@ -168,33 +168,37 @@
168
168
  <div class="row">
169
169
  {%- endif -%}
170
170
  <div class="col-md-6 order-0">
171
- {%- if featureData.HOW_TO_CONTENT.YoutubeVideoUrl -%}
171
+ {%- if homeData.HOW_TO_CONTENT.YoutubeVideoUrl.size > 0 -%}
172
172
  <div class="how-to-video-wrapper">
173
- <iframe
174
- width="500"
175
- height="315"
176
- src="https://www.youtube.com/embed/{{featureData.HOW_TO_CONTENT.YoutubeVideoUrl}}?autoplay=1&mute=1"
177
- >
173
+ {% assign video_url = homeData.HOW_TO_CONTENT.YoutubeVideoUrl %}
174
+ {% assign video_id = "" %}
175
+ {% if video_url contains "youtu.be/" %}
176
+ {% assign parts = video_url | split: "/" %}
177
+ {% assign video_id = parts[3] %}
178
+ {% elsif video_url contains "youtube.com/watch" %}
179
+ {% assign params = video_url | split: "?" | last | split: "&" %}
180
+ {% for param in params %}
181
+ {% if param contains "v=" %}
182
+ {% assign video_id = param | split: "=" | last %}
183
+ {% endif %}
184
+ {% endfor %}
185
+ {% endif %}
186
+ {%- if site.monumetricId -%}
187
+ <iframe class="youtubeVideoPlayer mb-5" width="400" height="315"
188
+ src="https://www.youtube.com/embed/{{video_id}}?autoplay=1&mute=1" allowfullscreen>
189
+ </iframe>
190
+ {%- else -%}
191
+ <iframe class="youtubeVideoPlayer mb-5" width="500" height="315"
192
+ src="https://www.youtube.com/embed/{{video_id}}?autoplay=1&mute=1" allowfullscreen>
178
193
  </iframe>
194
+ {%- endif -%}
179
195
  </div>
180
196
  {%- else -%}
181
197
  <div class="how-to-img-wrapper">
182
- <img
183
- class="how-to-leftimg"
184
- height="180px"
185
- width="300px"
186
- src="{{homeData.HOW_TO_CONTENT.logoImageUrl}}"
187
- loading="lazy"
188
- alt="{{homeData.HOW_TO_CONTENT.logoImageAlt | default: 'how to image' }}"
189
- {%-
190
- if
191
- site.crossorigin
192
- -%}
193
- crossorigin
194
- {%-
195
- endif
196
- -%}
197
- />
198
+ <img class="how-to-leftimg" height="180px" width="300px"
199
+ src="{{homeData.HOW_TO_CONTENT.logoImageUrl}}" loading="lazy"
200
+ alt="{{homeData.HOW_TO_CONTENT.logoImageAlt | default: 'how to image' }}" {%- if site.crossorigin
201
+ -%} crossorigin {%- endif -%} />
198
202
  </div>
199
203
  {%- endif -%}
200
204
  </div>
@@ -206,7 +210,7 @@
206
210
  </h3>
207
211
  <ol class="how-to-list">
208
212
  {% for data in homeData.HOW_TO_CONTENT.steps %}
209
-
213
+
210
214
  <li id="step{{forloop.index}}" class="how-to-list-item">
211
215
  <span>{{forloop.index}}.</span>{{data | replace:
212
216
  "$variable", page.value}}
@@ -215,7 +219,7 @@
215
219
  </ol>
216
220
  </div>
217
221
  </div>
218
- {%- if site.monumetricId and page.url != '/' and page.lang == "en"
222
+ {%- if site.monumetricId and page.url != '/' and page.lang == 'en'
219
223
  -%}
220
224
  </div>
221
225
  </div>
@@ -261,7 +265,12 @@
261
265
  </div>
262
266
  </section>
263
267
  {%- endif -%} {%- endif -%} {%- include share/socialshare.html -%} {%-
264
- include Rating/rating.html -%} {%- if homeData.USPS -%} {%- include
268
+ include Rating/rating.html -%}
269
+ {%- if homeData.infographics.size > 0 -%}
270
+ {%- include infographics/infographics.html -%}
271
+ {%- endif -%}
272
+
273
+ {%- if homeData.USPS -%} {%- include
265
274
  /Usp/usp.html -%} {%- endif -%} {%- if homeData.display_formats -%}
266
275
  <div class="container file-detail-table">
267
276
  {%- include fileformat/fileformatdetail.html -%}
data/assets/.DS_Store CHANGED
Binary file
@@ -779,3 +779,6 @@ body {
779
779
  .upload-from-drives img {
780
780
  cursor: pointer;
781
781
  }
782
+ #appscms-tools-section a {
783
+ text-decoration: none;
784
+ }
data/assets/js/theme.js CHANGED
@@ -1,107 +1,105 @@
1
- ---
2
- ---
3
-
4
-
5
- console.log('');
6
- if ("{{ site.safeui }}"==="true") {
7
- document.addEventListener("DOMContentLoaded", function () {
8
- var safuiAlert = document.querySelector("#safeui-alert");
9
- if (safuiAlert) {
10
- setTimeout(function () {
11
- safuiAlert.style.transition = "1s";
12
- safuiAlert.style.height = "0";
13
- safuiAlert.style.paddingTop = "0";
14
- safuiAlert.style.paddingBottom = "0";
15
- safuiAlert.style.marginTop = "0";
16
- safuiAlert.style.marginBottom = "0";
17
- setTimeout(function () {
18
- safuiAlert.parentNode.removeChild(safuiAlert);
19
- }, 1000);
20
- }, 10000);
21
- }
22
- });
23
- let getLayout = document.getElementById("header");
24
- const layout = getLayout.dataset.layout;
25
- if (layout == "feature-1") {
26
- var removeNav = () => {
27
- let homeLink = document.getElementById("home-link");
28
- homeLink.style.marginRight = "10px";
29
- document.getElementById("h1-img-wrapper").prepend(homeLink);
30
-
31
- document.getElementById("header").style.display = "none";
32
- document.querySelector(".feature1-h1").style.width = "100%";
33
- document.querySelector(".feature1-h2").style.display = "none";
34
- console.log(document.querySelector(".feature1-flex-container"));
35
- document.querySelector(".feature1-flex-container").style.paddingTop =
36
- "0rem";
37
- document.querySelector(".feature1-flex-container").style.paddingBottom =
38
- "0rem";
39
- };
40
- } else {
41
- var removeNav = () => {
42
- let homeLink = document.getElementById("home-link");
43
- homeLink.style.marginRight = "10px";
44
- document.getElementById("h1-img-wrapper").prepend(homeLink);
45
- document
46
- .getElementById("h1-img-wrapper")
47
- .style.setProperty("align-items", "unset", "important");
48
- document.getElementById("header").style.display = "none";
49
- document.getElementById("h1-img").style.display = "none";
50
- document.getElementById("feature-h1").style.width = "100%";
51
- document.getElementById("feature-h2").style.display = "none";
52
- let safeUiAlert = document.getElementById("safeui-alert");
53
- if (safeUiAlert) {
54
- safeUiAlert.style.display = "none";
55
- }
56
- };
57
- }
58
- }
59
-
60
-
61
-
62
- if ("{{ site.removeBootstrapJs }}"==="true") {
63
- const languagesModal = document.querySelector("#staticBackdrop");
64
- const intModalBtn = document.querySelector("#int-modal-btn");
65
- const closeBtn = document.querySelector("#close-modal");
66
-
67
- if(intModalBtn){
68
- intModalBtn.addEventListener("click", () => {
69
- languagesModal.style.display = "block";
70
- languagesModal.classList.add("show");
71
- let modal = document.createElement("div");
72
- modal.classList.add("modal-backdrop", "show");
73
- document.body.appendChild(modal);
74
- });
75
- closeBtn.addEventListener("click", () => {
76
- languagesModal.style.display = "none";
77
- languagesModal.classList.remove("show");
78
- let modal = document.querySelector(".modal-backdrop");
79
- document.body.removeChild(modal);
80
- });
81
- }
82
- let navbarDropdown = document.querySelector("#navbarDropdown");
83
- let dropmenu = document.querySelector(".dropmenu");
84
- navbarDropdown.addEventListener("click", () => {
85
- if (dropmenu.classList.contains("show")) {
86
- dropmenu.classList.remove("show");
87
- dropmenu.style.display = "none"
88
- } else {
89
- dropmenu.classList.add("show");
90
- dropmenu.style.display = "block"
91
- dropmenu.style.padding = ".5rem 0"
92
- }
93
- });
94
- const navbarToggler=document.querySelector('.navbar-toggler')
95
- const navBar=document.querySelector('#navbarSupportedContent')
96
- navbarToggler.addEventListener('click',()=>{
97
- if (navBar.classList.contains("show")) {
98
- navBar.classList.remove("show");
99
- navBar.style.display = "none"
100
- } else {
101
- navBar.classList.add("show");
102
- navBar.style.display = "block"
103
- }
104
- })
105
- }
106
-
107
-
1
+ ---
2
+ ---
3
+
4
+
5
+ console.log('');
6
+ if ("{{ site.safeui }}"==="true") {
7
+ document.addEventListener("DOMContentLoaded", function () {
8
+ var safuiAlert = document.querySelector("#safeui-alert");
9
+ if (safuiAlert) {
10
+ setTimeout(function () {
11
+ safuiAlert.style.transition = "1s";
12
+ safuiAlert.style.height = "0";
13
+ safuiAlert.style.paddingTop = "0";
14
+ safuiAlert.style.paddingBottom = "0";
15
+ safuiAlert.style.marginTop = "0";
16
+ safuiAlert.style.marginBottom = "0";
17
+ setTimeout(function () {
18
+ safuiAlert.parentNode.removeChild(safuiAlert);
19
+ }, 1000);
20
+ }, 10000);
21
+ }
22
+ });
23
+ let getLayout = document.getElementById("header");
24
+ const layout = getLayout.dataset.layout;
25
+ if (layout == "feature-1") {
26
+ var removeNav = () => {
27
+ let homeLink = document.getElementById("home-link");
28
+ homeLink.style.marginRight = "10px";
29
+ document.getElementById("h1-img-wrapper").prepend(homeLink);
30
+
31
+ document.getElementById("header").style.display = "none";
32
+ document.querySelector(".feature1-h1").style.width = "100%";
33
+ document.querySelector(".feature1-h2").style.display = "none";
34
+ console.log(document.querySelector(".feature1-flex-container"));
35
+ document.querySelector(".feature1-flex-container").style.paddingTop =
36
+ "0rem";
37
+ document.querySelector(".feature1-flex-container").style.paddingBottom =
38
+ "0rem";
39
+ };
40
+ } else {
41
+ var removeNav = () => {
42
+ let homeLink = document.getElementById("home-link");
43
+ homeLink.style.marginRight = "10px";
44
+ document.getElementById("h1-img-wrapper").prepend(homeLink);
45
+ document
46
+ .getElementById("h1-img-wrapper")
47
+ .style.setProperty("align-items", "unset", "important");
48
+ document.getElementById("header").style.display = "none";
49
+ document.getElementById("h1-img").style.display = "none";
50
+ document.getElementById("feature-h1").style.width = "100%";
51
+ document.getElementById("feature-h2").style.display = "none";
52
+ let safeUiAlert = document.getElementById("safeui-alert");
53
+ if (safeUiAlert) {
54
+ safeUiAlert.style.display = "none";
55
+ }
56
+ };
57
+ }
58
+ }
59
+
60
+
61
+
62
+ if ("{{ site.removeBootstrapJs }}"==="true") {
63
+ const languagesModal = document.querySelector("#staticBackdrop");
64
+ const intModalBtn = document.querySelector("#int-modal-btn");
65
+ const closeBtn = document.querySelector("#close-modal");
66
+
67
+ if(intModalBtn){
68
+ intModalBtn.addEventListener("click", () => {
69
+ languagesModal.style.display = "block";
70
+ languagesModal.classList.add("show");
71
+ let modal = document.createElement("div");
72
+ modal.classList.add("modal-backdrop", "show");
73
+ document.body.appendChild(modal);
74
+ });
75
+ closeBtn.addEventListener("click", () => {
76
+ languagesModal.style.display = "none";
77
+ languagesModal.classList.remove("show");
78
+ let modal = document.querySelector(".modal-backdrop");
79
+ document.body.removeChild(modal);
80
+ });
81
+ }
82
+ let navbarDropdown = document.querySelector("#navbarDropdown");
83
+ let dropmenu = document.querySelector(".dropmenu");
84
+ navbarDropdown.addEventListener("click", () => {
85
+ if (dropmenu.classList.contains("show")) {
86
+ dropmenu.classList.remove("show");
87
+ dropmenu.style.display = "none"
88
+ } else {
89
+ dropmenu.classList.add("show");
90
+ dropmenu.style.display = "block"
91
+ dropmenu.style.padding = ".5rem 0"
92
+ }
93
+ });
94
+ const navbarToggler=document.querySelector('.navbar-toggler')
95
+ const navBar=document.querySelector('#navbarSupportedContent')
96
+ navbarToggler.addEventListener('click',()=>{
97
+ if (navBar.classList.contains("show")) {
98
+ navBar.classList.remove("show");
99
+ navBar.style.display = "none"
100
+ } else {
101
+ navBar.classList.add("show");
102
+ navBar.style.display = "block"
103
+ }
104
+ })
105
+ }
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: 3.7.9
4
+ version: 3.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - vivek-appscms
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-05 00:00:00.000000000 Z
11
+ date: 2023-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -508,7 +508,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
508
508
  - !ruby/object:Gem::Version
509
509
  version: '0'
510
510
  requirements: []
511
- rubygems_version: 3.4.10
511
+ rubygems_version: 3.3.7
512
512
  signing_key:
513
513
  specification_version: 4
514
514
  summary: Appscms theme for all tools