appscms-tools-theme 3.5.5 → 3.5.7

Sign up to get free protection for your applications and to get access to all the features.
data/_layouts/home.html CHANGED
@@ -2,290 +2,224 @@
2
2
  = page.folderName %} {% assign homeData= site.data[folder][lang][file] %}
3
3
  <!DOCTYPE html>
4
4
  <html lang="{{page.lang}}">
5
- {% include head/index.html %}
5
+ {% include head/index.html %}
6
6
 
7
- <body>
8
- {% include header/index.html %} {%- if homeData.nofileupload -%}
9
- <div
10
- id="safeui-alert"
11
- class="alert alert-{{homeData.variant | default: 'info'}} fade show text-center"
12
- role="alert"
13
- >
14
- <div class="container">
15
- {%- if homeData.alertmsg -%} {{homeData.alertmsg}} {%- else -%} We do
16
- not upload any files to server, hence your data is 100% secure. {%-
17
- endif -%}
7
+ <body>
8
+ {% include header/index.html %} {%- if homeData.nofileupload -%}
9
+ <div id="safeui-alert" class="alert alert-{{homeData.variant | default: 'info'}} fade show text-center" role="alert">
10
+ <div class="container">
11
+ {%- if homeData.alertmsg -%} {{homeData.alertmsg}} {%- else -%} We do
12
+ not upload any files to server, hence your data is 100% secure. {%-
13
+ endif -%}
14
+ </div>
15
+ </div>
16
+ {%- endif -%} {%- if homeData.h1 or homeData.h2 -%}
17
+ <div class="flex-container mb-1">
18
+ <div class="flex-class py-5">
19
+ <div class="d-flex justify-content-center align-items-center">
20
+ <span class="fHhdVc">
21
+ <div class="div-cont feature-img mr-2">
22
+ {%- if homeData.img -%}
23
+ <img loading="lazy" style="width:{{homeData.imgwidth}};height:{{homeData.imgheight}};"
24
+ src="{{homeData.img}}" alt="{{homeData.imgalt}}" {%- if site.crossorigin -%} crossorigin {%- endif -%} />
25
+ {%- endif -%}
26
+ </div>
27
+ </span>
28
+ <h1 class="home-top-h1">
29
+ {%- for word in homeData.h1 -%} {%- if forloop.first == true -%}
30
+ {{word | capitalize }} {%- else -%} {{word}} {%- endif -%} {%-
31
+ endfor -%}
32
+ </h1>
18
33
  </div>
34
+ <h2 class="home-top-h2">
35
+ {%- for word in homeData.h2 -%} {%- if forloop.first == true -%}
36
+ {{word | capitalize }} {%- else -%} {{word}} {%- endif -%} {%- endfor
37
+ -%}
38
+ </h2>
19
39
  </div>
20
- {%- endif -%} {%- if homeData.h1 or homeData.h2 -%}
21
- <div class="flex-container mb-1">
22
- <div class="flex-class py-5">
23
- <div class="d-flex justify-content-center align-items-center">
24
- <span class="fHhdVc">
25
- <div class="div-cont feature-img mr-2">
26
- {%- if homeData.img -%}
27
- <img
28
- loading="lazy"
29
- style="width:{{homeData.imgwidth}};height:{{homeData.imgheight}};"
30
- src="{{homeData.img}}"
31
- alt="{{homeData.imgalt}}"
32
- {%-
33
- if
34
- site.crossorigin
35
- -%}
36
- crossorigin
37
- {%-
38
- endif
39
- -%}
40
- />
41
- {%- endif -%}
42
- </div>
43
- </span>
44
- <h1 class="home-top-h1">
45
- {%- for word in homeData.h1 -%} {%- if forloop.first == true -%}
46
- {{word | capitalize }} {%- else -%} {{word}} {%- endif -%} {%-
47
- endfor -%}
48
- </h1>
40
+ </div>
41
+ {%- endif -%} {%- if homeData.features -%} {%- if site.monumetricId and
42
+ page.url != '/' and page.lang == "en" -%}
43
+ <div class="container">
44
+ <div class="row">
45
+ <div class="col-md-9 mx-auto">
46
+ {%- endif -%}
47
+ <div class="flex-container">
48
+ <div class="flex-class">
49
+ <ul class="home-features">
50
+ {% for product in homeData.features %}
51
+ <li style="background:{{product.color}}" class="home-feature-box">
52
+ <div class="home-inner-box">
53
+ <div class="div-cont feature-img" height="36px" width="36px">
54
+ <img loading="lazy" src="{{product.icon}}" height="36px" width="36px" alt="star icon" {%- if
55
+ site.crossorigin -%} crossorigin {%- endif -%} />
56
+ </div>
57
+ </div>
58
+ <div class="home-feature-desc">{{product.description}}</div>
59
+ <a class="home-feature-name" href="{{product.url}}">{{product.name}}</a>
60
+ </li>
61
+ {% endfor %}
62
+ </ul>
63
+ </div>
49
64
  </div>
50
- <h2 class="home-top-h2">
51
- {%- for word in homeData.h2 -%} {%- if forloop.first == true -%}
52
- {{word | capitalize }} {%- else -%} {{word}} {%- endif -%} {%- endfor
53
- -%}
54
- </h2>
65
+ {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%}
55
66
  </div>
56
67
  </div>
57
- {%- endif -%} {%- if homeData.features -%} {%- if site.monumetricId and
58
- page.url != '/' and page.lang == "en" -%}
59
- <div class="container">
60
- <div class="row">
61
- <div class="col-md-9 mx-auto">
68
+ </div>
69
+ {%- endif -%} {%- endif -%}
70
+ <div class="home-content-box" id="theme-content-box">{{content}}</div>
71
+ {%- if homeData.TEXTUAL_CONTENT -%}
72
+ <div class="container mt-4 mb-4">
73
+ <div class="row px-0">
74
+ {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%}
75
+ <div class="col-md-9 mx-auto">
76
+ <div class="row">
62
77
  {%- endif -%}
63
- <div class="flex-container">
64
- <div class="flex-class">
65
- <ul class="home-features">
66
- {% for product in homeData.features %}
67
- <li
68
- style="background:{{product.color}}"
69
- class="home-feature-box"
70
- >
71
- <div class="home-inner-box">
72
- <div
73
- class="div-cont feature-img"
74
- height="36px"
75
- width="36px"
76
- >
77
- <img
78
- loading="lazy"
79
- src="{{product.icon}}"
80
- height="36px"
81
- width="36px"
82
- alt="star icon"
83
- {%-
84
- if
85
- site.crossorigin
86
- -%}
87
- crossorigin
88
- {%-
89
- endif
90
- -%}
91
- />
92
- </div>
93
- </div>
94
- <div class="home-feature-desc">{{product.description}}</div>
95
- <a class="home-feature-name" href="{{product.url}}"
96
- >{{product.name}}</a
97
- >
98
- </li>
99
- {% endfor %}
100
- </ul>
78
+ {% assign totalHeaderCount = 0 %}
79
+ {% for data in homeData.TEXTUAL_CONTENT %}
80
+ {% assign words = data.header | split: " " %}
81
+ {% assign word_count = words | size %}
82
+ {% assign totalHeaderCount = totalHeaderCount | plus: word_count %}
83
+ {% endfor %}
84
+ {% for data in homeData.TEXTUAL_CONTENT %}
85
+ <div
86
+ class="{%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%} col-md-6 my-4 {%- else -%} col-md-4 my-4 {%- endif -%}">
87
+ <div>
88
+ <img class="feature-card-img" height="48px" width="48px" loading="lazy" src="{{data.logoUrl}}"
89
+ alt="{{data.header}}" {%- if site.crossorigin -%} crossorigin {%- endif -%} />
90
+
91
+ {%- if totalHeaderCount > site.count_of_words_in_headings -%}
92
+ <h2 class="feature-card-title">{{data.header | replace: "$variable", page.value}}</h2>
93
+ {%- else -%}
94
+ <div class="feature-card-title">
95
+ {{data.header | replace: "$variable", page.value}}
96
+ </div>
97
+ {%- endif -%}
98
+ <div class="feature-card-desc">
99
+ {{data.content | replace: "$variable", page.value}}
100
+ </div>
101
101
  </div>
102
102
  </div>
103
- {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%}
103
+ {% endfor %} {%- if site.monumetricId and page.url != '/' and
104
+ page.lang == "en" -%}
104
105
  </div>
105
106
  </div>
107
+ {%- endif -%}
106
108
  </div>
107
- {%- endif -%} {%- endif -%}
108
- <div class="home-content-box" id="theme-content-box">{{content}}</div>
109
- {%- if homeData.TEXTUAL_CONTENT -%}
110
- <div class="container mt-4 mb-4">
111
- <div class="row px-0">
109
+ </div>
110
+ {%- endif -%} {%- if homeData.HOW_TO_CONTENT -%}
111
+ <section class="how-to-section">
112
+ <div class="container">
113
+ <div class="row">
112
114
  {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%}
113
115
  <div class="col-md-9 mx-auto">
114
116
  <div class="row">
115
- {%- endif -%}
116
- {% assign totalHeaderCount = 0 %}
117
- {% for data in homeData.TEXTUAL_CONTENT %}
118
- {% assign words = data.header | split: " " %}
119
- {% assign word_count = words | size %}
120
- {% assign totalHeaderCount = totalHeaderCount | plus: word_count %}
121
- {% endfor %}
122
- {% for data in homeData.TEXTUAL_CONTENT %}
123
- <div
124
- class="{%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%} col-md-6 my-4 {%- else -%} col-md-4 my-4 {%- endif -%}"
125
- >
126
- <div>
127
- <img
128
- class="feature-card-img"
129
- height="48px"
130
- width="48px"
131
- loading="lazy"
132
- src="{{data.logoUrl}}"
133
- alt="{{data.header}}"
134
- {%-
135
- if
136
- site.crossorigin
137
- -%}
138
- crossorigin
139
- {%-
140
- endif
141
- -%}
142
- />
143
- <div class="feature-card-title">
144
- {%- if totalHeaderCount > site.count_of_words_in_headings -%}
145
- <h2 class="feature_heading" style="font-size: 16px; font-weight: 900;">{{data.header | replace: "$variable", page.value}}</h2>
146
- {%- else -%}
147
- {{data.header | replace: "$variable", page.value}}
148
- {%- endif -%}
149
- </div>
150
- <div class="feature-card-desc">
151
- {{data.content | replace: "$variable", page.value}}
152
- </div>
117
+ {%- endif -%}
118
+ <div class="col-md-6 order-0">
119
+ {%- if featureData.HOW_TO_CONTENT.YoutubeVideoUrl -%}
120
+ <div class="how-to-video-wrapper">
121
+ <iframe width="500" height="315"
122
+ src="https://www.youtube.com/embed/{{featureData.HOW_TO_CONTENT.YoutubeVideoUrl}}?autoplay=1&mute=1">
123
+ </iframe>
153
124
  </div>
154
- </div>
155
- {% endfor %} {%- if site.monumetricId and page.url != '/' and
156
- page.lang == "en" -%}
157
- </div>
158
- </div>
159
- {%- endif -%}
160
- </div>
161
- </div>
162
- {%- endif -%} {%- if homeData.HOW_TO_CONTENT -%}
163
- <section class="how-to-section">
164
- <div class="container">
165
- <div class="row">
166
- {%- if site.monumetricId and page.url != '/' and page.lang == "en" -%}
167
- <div class="col-md-9 mx-auto">
168
- <div class="row">
169
- {%- endif -%}
170
- <div class="col-md-6 order-0">
171
- {%- if featureData.HOW_TO_CONTENT.YoutubeVideoUrl -%}
172
- <div class="how-to-video-wrapper">
173
- <iframe width="500" height="315" src="https://www.youtube.com/embed/{{featureData.HOW_TO_CONTENT.YoutubeVideoUrl}}?autoplay=1&mute=1">
174
- </iframe>
175
- </div>
176
- {%- else -%}
177
- <div class="how-to-img-wrapper">
178
- <img
179
- class="how-to-leftimg"
180
- height="180px"
181
- width="300px"
182
- src="{{homeData.HOW_TO_CONTENT.logoImageUrl}}"
183
- loading="lazy"
184
- alt="{{homeData.HOW_TO_CONTENT.logoImageAlt | default: 'how to image' }}"
185
- {%-
186
- if
187
- site.crossorigin
188
- -%}
189
- crossorigin
190
- {%-
191
- endif
192
- -%}
193
- />
194
- </div>
195
- {%- endif -%}
125
+ {%- else -%}
126
+ <div class="how-to-img-wrapper">
127
+ <img class="how-to-leftimg" height="180px" width="300px" src="{{homeData.HOW_TO_CONTENT.logoImageUrl}}"
128
+ loading="lazy" alt="{{homeData.HOW_TO_CONTENT.logoImageAlt | default: 'how to image' }}" {%- if
129
+ site.crossorigin -%} crossorigin {%- endif -%} />
196
130
  </div>
197
- <div class="col-md-6 order-1">
198
- <div class="how-to-right">
199
- <h3 class="how-to-title text-left">
200
- {{homeData.HOW_TO_CONTENT.heading | replace: "$variable",
201
- page.value}}
202
- </h3>
203
- <ol class="how-to-list">
204
- {% for data in homeData.HOW_TO_CONTENT.steps %}
131
+ {%- endif -%}
132
+ </div>
133
+ <div class="col-md-6 order-1">
134
+ <div class="how-to-right">
135
+ <h3 class="how-to-title text-left">
136
+ {{homeData.HOW_TO_CONTENT.heading | replace: "$variable",
137
+ page.value}}
138
+ </h3>
139
+ <ol class="how-to-list">
140
+ {% for data in homeData.HOW_TO_CONTENT.steps %}
205
141
 
206
- <li id="step{{forloop.index}}" class="how-to-list-item">
207
- <span>{{forloop.index}}.</span>{{data | replace:
208
- "$variable", page.value}}
209
- </li>
210
- {% endfor %}
211
- </ol>
212
- </div>
142
+ <li id="step{{forloop.index}}" class="how-to-list-item">
143
+ <span>{{forloop.index}}.</span>{{data | replace:
144
+ "$variable", page.value}}
145
+ </li>
146
+ {% endfor %}
147
+ </ol>
213
148
  </div>
214
- {%- if site.monumetricId and page.url != '/' and page.lang == "en"
215
- -%}
216
149
  </div>
150
+ {%- if site.monumetricId and page.url != '/' and page.lang == "en"
151
+ -%}
217
152
  </div>
218
- {%- endif -%}
219
153
  </div>
154
+ {%- endif -%}
220
155
  </div>
221
- </section>
222
- {%- endif -%} {%- assign showFaqs = true -%} {%- for item in site.noFaqsList
223
- -%} {%- if item == page.lang -%} {%- assign showFaqs = false -%} {%- break
224
- -%} {%- else -%} {%- assign showFaqs = true -%} {%- endif -%} {%- endfor -%}
225
- {%- if showFaqs == true -%} {%- if homeData.FAQ -%}
226
- <section class="faq-section">
227
- <div class="container">
228
- <div class="row">
229
- <div class="col-md-8 mx-auto">
230
- <div class="faq">
231
- {%- if homeData.FAQ.size>0 -%}
232
- <h3 class="feature-h1 text-center mb-4">
233
- {{homeData.faqheading | default: 'Frequently Asked Questions'}}
234
- </h3>
235
- {%- endif -%}
236
- <ul class="list-unstyled">
237
- {% for data in homeData.FAQ %}
238
- <li>
239
- <h3 class="faq-question" itemprop="name">
240
- {{data.question | replace: "$variable", page.value}}<em
241
- style="transform: rotate(-135deg)"
242
- >
243
- <i></i
244
- ></em>
245
- </h3>
246
- <div style="display: block">
247
- <p class="faq-answer" itemprop="text">
248
- {{data.answer | replace: "$variable", page.value}}
249
- </p>
250
- </div>
251
- </li>
252
- {% endfor %}
253
- </ul>
254
- </div>
156
+ </div>
157
+ </section>
158
+ {%- endif -%} {%- assign showFaqs = true -%} {%- for item in site.noFaqsList
159
+ -%} {%- if item == page.lang -%} {%- assign showFaqs = false -%} {%- break
160
+ -%} {%- else -%} {%- assign showFaqs = true -%} {%- endif -%} {%- endfor -%}
161
+ {%- if showFaqs == true -%} {%- if homeData.FAQ -%}
162
+ <section class="faq-section">
163
+ <div class="container">
164
+ <div class="row">
165
+ <div class="col-md-8 mx-auto">
166
+ <div class="faq">
167
+ {%- if homeData.FAQ.size>0 -%}
168
+ <h3 class="feature-h1 text-center mb-4">
169
+ {{homeData.faqheading | default: 'Frequently Asked Questions'}}
170
+ </h3>
171
+ {%- endif -%}
172
+ <ul class="list-unstyled">
173
+ {% for data in homeData.FAQ %}
174
+ <li>
175
+ <h3 class="faq-question" itemprop="name">
176
+ {{data.question | replace: "$variable", page.value}}<em style="transform: rotate(-135deg)">
177
+ <i></i></em>
178
+ </h3>
179
+ <div style="display: block">
180
+ <p class="faq-answer" itemprop="text">
181
+ {{data.answer | replace: "$variable", page.value}}
182
+ </p>
183
+ </div>
184
+ </li>
185
+ {% endfor %}
186
+ </ul>
255
187
  </div>
256
188
  </div>
257
189
  </div>
258
- </section>
259
- {%- endif -%} {%- endif -%} {%- include share/socialshare.html -%} {%-
260
- include Rating/rating.html -%} {%- if homeData.USPS -%} {%- include
261
- /Usp/usp.html -%} {%- endif -%} {%- if homeData.display_formats -%}
262
- <div class="container file-detail-table">
263
- {%- include fileformat/fileformatdetail.html -%}
264
190
  </div>
265
- {%- endif -%} {%- if homeData.compare_formats -%}
266
- <div class="container compare-table">
267
- {%- include fileformat/comparisonfiles.html -%}
268
- </div>
269
- {%- endif -%} {%- assign langen = "en" -%} {%- if
270
- site.data[folder][langen][file].categories -%} {% assign categories=
271
- site.data[folder][langen][file].categories %} {%- else -%} {% assign
272
- categories= page.categories %} {%- endif -%} {%- if
273
- site.data[folder][langen][file].tags -%} {% assign tags=
274
- site.data[folder][langen][file].tags %} {%- else -%} {% assign tags=
275
- page.tags %} {%- endif -%} {%- if categories.size> 0 or tags.size>0-%} {%-
276
- include section/related_categories_post.html -%} {%- else -%} {%- include
277
- section/recent_posts.html -%} {% endif %} {%- if site.customblogdata -%} {%-
278
- if categories.size> 0 or tags.size>0-%} {%- include
279
- customblog/relatedposts.html -%} {%- else -%} {%- include
280
- customblog/recentposts.html -%} {% endif %} {%- endif -%}
281
-
282
-
283
-
284
- {%- if homeData.author.size > 0 -%}
285
- {% include featurePageAuthors/featurePageAuthors.html %}
286
- {%- endif -%}
287
- {% include footer/index.html %}
288
-
289
- {% include script.html %}
290
- </body>
291
- </html>
191
+ </section>
192
+ {%- endif -%} {%- endif -%} {%- include share/socialshare.html -%} {%-
193
+ include Rating/rating.html -%} {%- if homeData.USPS -%} {%- include
194
+ /Usp/usp.html -%} {%- endif -%} {%- if homeData.display_formats -%}
195
+ <div class="container file-detail-table">
196
+ {%- include fileformat/fileformatdetail.html -%}
197
+ </div>
198
+ {%- endif -%} {%- if homeData.compare_formats -%}
199
+ <div class="container compare-table">
200
+ {%- include fileformat/comparisonfiles.html -%}
201
+ </div>
202
+ {%- endif -%} {%- assign langen = "en" -%} {%- if
203
+ site.data[folder][langen][file].categories -%} {% assign categories=
204
+ site.data[folder][langen][file].categories %} {%- else -%} {% assign
205
+ categories= page.categories %} {%- endif -%} {%- if
206
+ site.data[folder][langen][file].tags -%} {% assign tags=
207
+ site.data[folder][langen][file].tags %} {%- else -%} {% assign tags=
208
+ page.tags %} {%- endif -%} {%- if categories.size> 0 or tags.size>0-%} {%-
209
+ include section/related_categories_post.html -%} {%- else -%} {%- include
210
+ section/recent_posts.html -%} {% endif %} {%- if site.customblogdata -%} {%-
211
+ if categories.size> 0 or tags.size>0-%} {%- include
212
+ customblog/relatedposts.html -%} {%- else -%} {%- include
213
+ customblog/recentposts.html -%} {% endif %} {%- endif -%}
214
+
215
+
216
+
217
+ {%- if homeData.author.size > 0 -%}
218
+ {% include featurePageAuthors/featurePageAuthors.html %}
219
+ {%- endif -%}
220
+ {% include footer/index.html %}
221
+
222
+ {% include script.html %}
223
+ </body>
224
+
225
+ </html>
data/assets/js/theme.js CHANGED
@@ -84,8 +84,11 @@ let dropmenu = document.querySelector(".dropmenu");
84
84
  navbarDropdown.addEventListener("click", () => {
85
85
  if (dropmenu.classList.contains("show")) {
86
86
  dropmenu.classList.remove("show");
87
+ dropmenu.style.display = "none"
87
88
  } else {
88
89
  dropmenu.classList.add("show");
90
+ dropmenu.style.display = "block"
91
+ dropmenu.style.padding = ".5rem 0"
89
92
  }
90
93
  });
91
94
  const navbarToggler=document.querySelector('.navbar-toggler')
@@ -93,8 +96,10 @@ const navBar=document.querySelector('#navbarSupportedContent')
93
96
  navbarToggler.addEventListener('click',()=>{
94
97
  if (navBar.classList.contains("show")) {
95
98
  navBar.classList.remove("show");
99
+ navBar.style.display = "none"
96
100
  } else {
97
101
  navBar.classList.add("show");
102
+ navBar.style.display = "block"
98
103
  }
99
104
  })
100
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.5.5
4
+ version: 3.5.7
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-05-23 00:00:00.000000000 Z
11
+ date: 2023-06-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll