appscms-tools-theme 5.1.3 → 5.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/_layouts/aboutUs.html +6 -1
  3. data/_layouts/allAuthors.html +6 -1
  4. data/_layouts/appscms-about.html +6 -1
  5. data/_layouts/appscms-author.html +4 -1
  6. data/_layouts/appscms-authors.html +6 -1
  7. data/_layouts/appscms-blog.html +6 -1
  8. data/_layouts/appscms-contact.html +6 -1
  9. data/_layouts/appscms-disclaimer.html +6 -1
  10. data/_layouts/appscms-download.html +4 -1
  11. data/_layouts/appscms-feature-result.html +6 -1
  12. data/_layouts/appscms-feature.html +6 -1
  13. data/_layouts/appscms-help.html +8 -2
  14. data/_layouts/appscms-home.html +9 -8
  15. data/_layouts/appscms-post.html +4 -1
  16. data/_layouts/appscms-privacy-policy.html +6 -1
  17. data/_layouts/appscms-terms-and-conditions.html +4 -1
  18. data/_layouts/author.html +4 -1
  19. data/_layouts/blog-1.html +6 -1
  20. data/_layouts/blog.html +6 -1
  21. data/_layouts/contactUs.html +4 -1
  22. data/_layouts/contenttool-feature.html +6 -1
  23. data/_layouts/contenttool-home.html +6 -1
  24. data/_layouts/devtool-blog.html +6 -1
  25. data/_layouts/devtool-feature.html +56 -52
  26. data/_layouts/devtool-home.html +54 -50
  27. data/_layouts/disclaimer.html +126 -121
  28. data/_layouts/download.html +4 -1
  29. data/_layouts/feature-1.html +367 -243
  30. data/_layouts/feature-download.html +4 -1
  31. data/_layouts/feature.html +447 -300
  32. data/_layouts/featureResultPage.html +6 -1
  33. data/_layouts/fileInfo.html +43 -37
  34. data/_layouts/filecomparison.html +122 -78
  35. data/_layouts/help.html +22 -21
  36. data/_layouts/home-1.html +212 -178
  37. data/_layouts/home.html +6 -1
  38. data/_layouts/homeResultPage.html +38 -20
  39. data/_layouts/post.html +4 -1
  40. data/_layouts/privacyPolicy.html +783 -635
  41. data/_layouts/profile.html +6 -1
  42. data/_layouts/termAndCondition.html +4 -1
  43. data/assets/.DS_Store +0 -0
  44. data/assets/js/googledrive.js +6 -4
  45. data/assets/js/multiselect.js +141 -114
  46. metadata +2 -2
@@ -2,351 +2,498 @@
2
2
  = page.folderName %} {% assign featureData= 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 site.safeui -%}
9
- <div class="alert alert-{{featureData.variant | default: 'info'}} fade show text-center" role="alert"
10
- id="safeui-alert">
11
- <div class="container">
12
- {%- if featureData.alertmsg -%} {{featureData.alertmsg}} {%- else -%} We
13
- do not upload any files to server, hence your data is 100% secure. {%-
14
- endif -%}
7
+ <body
8
+ data-developer-key="{{ site.developerKey }}"
9
+ data-client-id="{{ site.clientId }}"
10
+ data-app-id="{{ site.appId }}"
11
+ data-dropbox-apikey="{{ site.dropboxapikey }}"
12
+ >
13
+ {% include header/index.html %} {%- if site.safeui -%}
14
+ <div
15
+ class="alert alert-{{featureData.variant | default: 'info'}} fade show text-center"
16
+ role="alert"
17
+ id="safeui-alert"
18
+ >
19
+ <div class="container">
20
+ {%- if featureData.alertmsg -%} {{featureData.alertmsg}} {%- else -%} We
21
+ do not upload any files to server, hence your data is 100% secure. {%-
22
+ endif -%}
23
+ </div>
15
24
  </div>
16
- </div>
17
- {%- endif -%} {%- if page.layout != "frame" and page.layout !=
18
- "photo-effects-home" and page.layout != "video" and page.layout != "audio"
19
- -%} {%- if site.newFeatureBox -%}
20
- <div class="appscms-sidebar-left"></div>
21
- <div class="appscms-sidebar-right"></div>
22
- {%- endif -%}
25
+ {%- endif -%} {%- if page.layout != "frame" and page.layout !=
26
+ "photo-effects-home" and page.layout != "video" and page.layout != "audio"
27
+ -%} {%- if site.newFeatureBox -%}
28
+ <div class="appscms-sidebar-left"></div>
29
+ <div class="appscms-sidebar-right"></div>
30
+ {%- endif -%}
23
31
 
24
- <div class="flex-container pb-3">
25
- <div class="flex-class py-4 mt-4 mt-md-0">
26
- <div id="h1-img-wrapper" class="d-flex justify-content-center align-items-center">
27
- <span id="h1-img" class="fHhdVc">
28
- <div class="div-cont feature-img mr-2">
29
- {%- if featureData.img -%}
30
- <img style="width:{{featureData.imgwidth}};height:{{featureData.imgheight}};" src="{{featureData.img}}"
31
- alt="{{featureData.imgalt}}" {%- if site.crossorigin -%} crossorigin {%- endif -%} />
32
- {%- else -%}
33
- <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 36 36"
34
- fill="#000">
35
- <path
36
- d="M6,6 L9,18 L6,30 L18,27 L30,30 L27,18 L30,6 L18,9 L6,6 Z M3,3 L18,6.75 L33,3 L29.25,18 L33,33 L18,29.25 L3,33 L6.75,18 L3,3 Z">
37
- </path>
38
- </svg>
39
- {%- endif -%}
40
- </div>
41
- </span>
42
- {%- assign featureh1 = featureData.H1 | replace: "$variable",
43
- page.value -%}
44
- <h1 id="feature-h1" class="feature-h1">
45
- {%- for word in featureh1-%} {%- if forloop.first == true -%} {{word
32
+ <div class="flex-container pb-3">
33
+ <div class="flex-class py-4 mt-4 mt-md-0">
34
+ <div
35
+ id="h1-img-wrapper"
36
+ class="d-flex justify-content-center align-items-center"
37
+ >
38
+ <span id="h1-img" class="fHhdVc">
39
+ <div class="div-cont feature-img mr-2">
40
+ {%- if featureData.img -%}
41
+ <img
42
+ style="width:{{featureData.imgwidth}};height:{{featureData.imgheight}};"
43
+ src="{{featureData.img}}"
44
+ alt="{{featureData.imgalt}}"
45
+ {%-
46
+ if
47
+ site.crossorigin
48
+ -%}
49
+ crossorigin
50
+ {%-
51
+ endif
52
+ -%}
53
+ />
54
+ {%- else -%}
55
+ <svg
56
+ xmlns="http://www.w3.org/2000/svg"
57
+ xmlns:xlink="http://www.w3.org/1999/xlink"
58
+ viewBox="0 0 36 36"
59
+ fill="#000"
60
+ >
61
+ <path
62
+ d="M6,6 L9,18 L6,30 L18,27 L30,30 L27,18 L30,6 L18,9 L6,6 Z M3,3 L18,6.75 L33,3 L29.25,18 L33,33 L18,29.25 L3,33 L6.75,18 L3,3 Z"
63
+ ></path>
64
+ </svg>
65
+ {%- endif -%}
66
+ </div>
67
+ </span>
68
+ {%- assign featureh1 = featureData.H1 | replace: "$variable",
69
+ page.value -%}
70
+ <h1 id="feature-h1" class="feature-h1">
71
+ {%- for word in featureh1-%} {%- if forloop.first == true -%} {{word
72
+ | capitalize }} {%- else -%} {{word}} {%- endif -%} {%- endfor -%}
73
+ </h1>
74
+ </div>
75
+ {%- assign featureh2 = featureData.H2 | replace: "$variable", page.value
76
+ -%}
77
+ <h2 id="feature-h2" class="feature-h2">
78
+ {%- for word in featureh2 -%} {%- if forloop.first == true -%} {{word
46
79
  | capitalize }} {%- else -%} {{word}} {%- endif -%} {%- endfor -%}
47
- </h1>
80
+ </h2>
48
81
  </div>
49
- {%- assign featureh2 = featureData.H2 | replace: "$variable", page.value
50
- -%}
51
- <h2 id="feature-h2" class="feature-h2">
52
- {%- for word in featureh2 -%} {%- if forloop.first == true -%} {{word
53
- | capitalize }} {%- else -%} {{word}} {%- endif -%} {%- endfor -%}
54
- </h2>
55
82
  </div>
56
- </div>
57
83
 
58
- {%- endif -%} {%- if site.noFeatureBox == true -%}
59
- <div class="feature-content-box" id="theme-content-box">{{content}}</div>
60
- {%- elsif site.newFeatureBox and page.newBox -%}
61
- <div class="feature-content-box" id="theme-content-box">
62
- <div class="container">
63
- {%- assign boxColor =
64
- site.data[page.folderName][page.lang][page.fileName].color -%} {%- if
65
- page.removeBox != true -%}
66
- <div class="custom-box" data-color="{{boxColor}}">
67
- <div style="display: none" id="file-loader">
68
- <img src="/assets/images/spinner.gif" alt="spinner" {%- if site.crossorigin -%} crossorigin {%- endif -%} />
69
- <p>Please Wait ,Loading Your file</p>
70
- </div>
71
- <div class="saving-file-download-wrap" style="display: none">
72
- <img loading="lazy" class="trust-img" src="/trust.svg" alt="trust" {%- if site.crossorigin -%} crossorigin {%-
73
- endif -%} />
74
- <p class="text-white my-2">Thanks for your patience</p>
75
- <button class="btn" id="download-zip">Download</button>
76
- </div>
77
- <div class="file-input" id="inputbox" style="color: #fff">
78
- <div class="m-auto">
79
- <div class="d-flex justify-content-center align-items-center">
80
- <div id="Inputbox" class="boxes" style="background: {{boxColor}};">
81
- <img height="21px" width="21px" src="/assets/images/add.svg" alt="add" {%- if site.crossorigin -%}
82
- crossorigin {%- endif -%} />
83
- <span class="ml-3 file-text">CHOOSE FILE</span>
84
- </div>
85
- <div class="file-pick-dropdown" style="background:{{boxColor}}">
86
- <i class="fas fa-angle-down arrow-sign"></i>
87
- <div class="file-picker-dropdown" style="display: none">
88
- <button id="filepicker">
89
- <svg class="mr-3" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">
90
- <path id="Path" d="M8.33331 3H15.6666L23 15H15.6666L8.33331 3Z" fill="#FFC107"></path>
91
- <path id="Path_2" d="M4.6012 21L8.30086 15H23L19.3333 21H4.6012Z" fill="#1976D2"></path>
92
- <path id="Path_3" d="M1 15.0625L4.60119 21L12 9L8.33333 3L1 15.0625Z" fill="#4CAF50"></path>
93
- </svg>
94
- Google Drive
95
- </button>
96
- <button id="dropbox">
97
- <svg class="mr-3" viewBox="0 0 24 24" fill="#0061FF" xmlns="http://www.w3.org/2000/svg">
98
- <path id="icon"
99
- d="M12.0146 6.57367L6.50732 10.1473L12.0146 13.721L6.50732 17.2947L1 13.6912L6.50732 10.1176L1 6.57367L6.50732 3L12.0146 6.57367ZM6.47803 18.4263L11.9854 14.8527L17.4927 18.4263L11.9854 22L6.47803 18.4263ZM12.0146 13.6912L17.522 10.1176L12.0146 6.57367L17.4927 3L23 6.57367L17.4927 10.1473L23 13.721L17.4927 17.2947L12.0146 13.6912Z">
100
- </path>
101
- </svg>
102
- Dropbox
103
- </button>
84
+ {%- endif -%} {%- if site.noFeatureBox == true -%}
85
+ <div class="feature-content-box" id="theme-content-box">{{content}}</div>
86
+ {%- elsif site.newFeatureBox and page.newBox -%}
87
+ <div class="feature-content-box" id="theme-content-box">
88
+ <div class="container">
89
+ {%- assign boxColor =
90
+ site.data[page.folderName][page.lang][page.fileName].color -%} {%- if
91
+ page.removeBox != true -%}
92
+ <div class="custom-box" data-color="{{boxColor}}">
93
+ <div style="display: none" id="file-loader">
94
+ <img
95
+ src="/assets/images/spinner.gif"
96
+ alt="spinner"
97
+ {%-
98
+ if
99
+ site.crossorigin
100
+ -%}
101
+ crossorigin
102
+ {%-
103
+ endif
104
+ -%}
105
+ />
106
+ <p>Please Wait ,Loading Your file</p>
107
+ </div>
108
+ <div class="saving-file-download-wrap" style="display: none">
109
+ <img
110
+ loading="lazy"
111
+ class="trust-img"
112
+ src="/trust.svg"
113
+ alt="trust"
114
+ {%-
115
+ if
116
+ site.crossorigin
117
+ -%}
118
+ crossorigin
119
+ {%-
120
+ endif
121
+ -%}
122
+ />
123
+ <p class="text-white my-2">Thanks for your patience</p>
124
+ <button class="btn" id="download-zip">Download</button>
125
+ </div>
126
+ <div class="file-input" id="inputbox" style="color: #fff">
127
+ <div class="m-auto">
128
+ <div class="d-flex justify-content-center align-items-center">
129
+ <div
130
+ id="Inputbox"
131
+ class="boxes"
132
+ style="background: {{boxColor}};"
133
+ >
134
+ <img
135
+ height="21px"
136
+ width="21px"
137
+ src="/assets/images/add.svg"
138
+ alt="add"
139
+ {%-
140
+ if
141
+ site.crossorigin
142
+ -%}
143
+ crossorigin
144
+ {%-
145
+ endif
146
+ -%}
147
+ />
148
+ <span class="ml-3 file-text">CHOOSE FILE</span>
149
+ </div>
150
+ <div class="file-pick-dropdown" style="background:{{boxColor}}">
151
+ <i class="fas fa-angle-down arrow-sign"></i>
152
+ <div class="file-picker-dropdown" style="display: none">
153
+ <button id="filepicker">
154
+ <svg
155
+ class="mr-3"
156
+ viewBox="0 0 24 24"
157
+ xmlns="http://www.w3.org/2000/svg"
158
+ >
159
+ <path
160
+ id="Path"
161
+ d="M8.33331 3H15.6666L23 15H15.6666L8.33331 3Z"
162
+ fill="#FFC107"
163
+ ></path>
164
+ <path
165
+ id="Path_2"
166
+ d="M4.6012 21L8.30086 15H23L19.3333 21H4.6012Z"
167
+ fill="#1976D2"
168
+ ></path>
169
+ <path
170
+ id="Path_3"
171
+ d="M1 15.0625L4.60119 21L12 9L8.33333 3L1 15.0625Z"
172
+ fill="#4CAF50"
173
+ ></path>
174
+ </svg>
175
+ Google Drive
176
+ </button>
177
+ <button id="dropbox">
178
+ <svg
179
+ class="mr-3"
180
+ viewBox="0 0 24 24"
181
+ fill="#0061FF"
182
+ xmlns="http://www.w3.org/2000/svg"
183
+ >
184
+ <path
185
+ id="icon"
186
+ d="M12.0146 6.57367L6.50732 10.1473L12.0146 13.721L6.50732 17.2947L1 13.6912L6.50732 10.1176L1 6.57367L6.50732 3L12.0146 6.57367ZM6.47803 18.4263L11.9854 14.8527L17.4927 18.4263L11.9854 22L6.47803 18.4263ZM12.0146 13.6912L17.522 10.1176L12.0146 6.57367L17.4927 3L23 6.57367L17.4927 10.1473L23 13.721L17.4927 17.2947L12.0146 13.6912Z"
187
+ ></path>
188
+ </svg>
189
+ Dropbox
190
+ </button>
191
+ </div>
104
192
  </div>
105
193
  </div>
106
194
  </div>
195
+ <p id="dropfile" class="text-dark">or drop your file here</p>
196
+ <p id="error" class="p-3"></p>
107
197
  </div>
108
- <p id="dropfile" class="text-dark">or drop your file here</p>
109
- <p id="error" class="p-3"></p>
110
198
  </div>
111
- </div>
112
- <div class="workspace">
113
- <div class="row mx-auto">
114
- <div class="col-md-10 mx-auto">{{content}}</div>
199
+ <div class="workspace">
200
+ <div class="row mx-auto">
201
+ <div class="col-md-10 mx-auto">{{content}}</div>
202
+ </div>
115
203
  </div>
204
+ {%- endif -%}
116
205
  </div>
117
- {%- endif -%}
118
206
  </div>
119
- </div>
120
- {%- else -%} {%- if page.noBox == true -%}
121
- <div class="feature-content-box" id="theme-content-box">{{content}}</div>
122
- {%- else -%}
123
- <div class="box-padding" id="theme-content-box">
124
- <div class="d-flex" id="__cond-922051">
125
- <div class="flex-container">
126
- <div class="flex-class">
127
- <div class="d-flex flex-column">
128
- <div class="box"
129
- style="background:{{featureData.color}};min-height:{{featureData.height}};width:{{featureData.width}}">
130
- <div class="box-border"></div>
131
- <div class="content-box">{{content}}</div>
207
+ {%- else -%} {%- if page.noBox == true -%}
208
+ <div class="feature-content-box" id="theme-content-box">{{content}}</div>
209
+ {%- else -%}
210
+ <div class="box-padding" id="theme-content-box">
211
+ <div class="d-flex" id="__cond-922051">
212
+ <div class="flex-container">
213
+ <div class="flex-class">
214
+ <div class="d-flex flex-column">
215
+ <div
216
+ class="box"
217
+ style="background:{{featureData.color}};min-height:{{featureData.height}};width:{{featureData.width}}"
218
+ >
219
+ <div class="box-border"></div>
220
+ <div class="content-box">{{content}}</div>
221
+ </div>
132
222
  </div>
133
223
  </div>
134
224
  </div>
135
225
  </div>
136
226
  </div>
137
- </div>
138
- {%- endif -%} {%- endif -%} {%- if page.layout == "batch" -%}
139
- <div class="w-100 line" style="border-top: 1px solid rgb(224, 224, 224)"></div>
140
- {%- endif -%}
227
+ {%- endif -%} {%- endif -%} {%- if page.layout == "batch" -%}
228
+ <div
229
+ class="w-100 line"
230
+ style="border-top: 1px solid rgb(224, 224, 224)"
231
+ ></div>
232
+ {%- endif -%}
141
233
 
142
- <div class="container mt-4 mb-5">
143
- <div class="row px-0">
144
- {%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%}
145
- <div class="col-md-9 mx-auto">
146
- <div class="row">
147
- {%- endif -%} {% assign totalHeaderCount = 0 %} {% for data in
148
- featureData.TEXTUAL_CONTENT %} {% assign words = data.header |
149
- split: " " %} {% assign word_count = words | size %} {% assign
150
- totalHeaderCount = totalHeaderCount | plus: word_count %} {% endfor
151
- %} {% for data in featureData.TEXTUAL_CONTENT %}
152
- <div
153
- class="{%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%} col-md-6 my-4 {%- else -%} col-md-4 my-4 {%- endif -%}">
154
- <div>
155
- <img class="feature-card-img" src="{{data.logoUrl}}" loading="lazy" height="48px" width="48px"
156
- alt="{{data.header}}" {%- if site.crossorigin -%} crossorigin {%- endif -%} />
234
+ <div class="container mt-4 mb-5">
235
+ <div class="row px-0">
236
+ {%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%}
237
+ <div class="col-md-9 mx-auto">
238
+ <div class="row">
239
+ {%- endif -%} {% assign totalHeaderCount = 0 %} {% for data in
240
+ featureData.TEXTUAL_CONTENT %} {% assign words = data.header |
241
+ split: " " %} {% assign word_count = words | size %} {% assign
242
+ totalHeaderCount = totalHeaderCount | plus: word_count %} {% endfor
243
+ %} {% for data in featureData.TEXTUAL_CONTENT %}
244
+ <div
245
+ class="{%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%} col-md-6 my-4 {%- else -%} col-md-4 my-4 {%- endif -%}"
246
+ >
247
+ <div>
248
+ <img
249
+ class="feature-card-img"
250
+ src="{{data.logoUrl}}"
251
+ loading="lazy"
252
+ height="48px"
253
+ width="48px"
254
+ alt="{{data.header}}"
255
+ {%-
256
+ if
257
+ site.crossorigin
258
+ -%}
259
+ crossorigin
260
+ {%-
261
+ endif
262
+ -%}
263
+ />
157
264
 
158
- {%- if totalHeaderCount > site.count_of_words_in_headings -%}
159
- <h2 class="feature-card-title">
160
- {{data.header | replace: "$variable", page.value}}
161
- </h2>
162
- {%- else -%}
163
- <div class="feature-card-title">
164
- {{data.header | replace: "$variable", page.value}}
165
- </div>
166
- {%- endif -%}
167
- <div class="feature-card-desc">
168
- {{data.content | replace: "$variable", page.value}}
265
+ {%- if totalHeaderCount > site.count_of_words_in_headings -%}
266
+ <h2 class="feature-card-title">
267
+ {{data.header | replace: "$variable", page.value}}
268
+ </h2>
269
+ {%- else -%}
270
+ <div class="feature-card-title">
271
+ {{data.header | replace: "$variable", page.value}}
272
+ </div>
273
+ {%- endif -%}
274
+ <div class="feature-card-desc">
275
+ {{data.content | replace: "$variable", page.value}}
276
+ </div>
169
277
  </div>
170
278
  </div>
279
+ {% endfor %} {%- if site.monumetricId and page.url != '/' and
280
+ page.lang == 'en' -%}
171
281
  </div>
172
- {% endfor %} {%- if site.monumetricId and page.url != '/' and
173
- page.lang == 'en' -%}
174
282
  </div>
283
+ {%- endif -%}
175
284
  </div>
176
- {%- endif -%}
177
285
  </div>
178
- </div>
179
- <section class="how-to-section">
180
- <div class="container">
181
- <div class="row">
182
- {%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%}
183
- <div class="col-md-9 mx-auto">
184
- <div class="row">
185
- {%- endif -%}
186
- <div class="col-md-6 order-0">
187
- {%- if featureData.HOW_TO_CONTENT.YoutubeVideoUrl.size > 0 -%}
188
- <div class="how-to-video-wrapper">
189
- {% assign video_url =
190
- featureData.HOW_TO_CONTENT.YoutubeVideoUrl %} {% assign
191
- video_id = "" %} {% if video_url contains "youtu.be/" %} {%
192
- assign parts = video_url | split: "/" %} {% assign video_id =
193
- parts[3] %} {% elsif video_url contains "youtube.com/watch" %}
194
- {% assign params = video_url | split: "?" | last | split: "&"
195
- %} {% for param in params %} {% if param contains "v=" %} {%
196
- assign video_id = param | split: "=" | last %} {% endif %} {%
197
- endfor %} {% endif %}
198
- {%- if site.monumetricId -%}
199
- <div class="how-to-video h-100 w-100" data-videoid="{{video_id}}">
200
- <img class="youtubeVideoPlayer" width="100%" height="100%" id="thumbnail-img" alt="thumbnail-img" />
201
- <div class="youtube-play-btn-wrapper">
202
- <button class="play-btn btn btn-primary" onClick="loadVideo()">►</button>
286
+ <section class="how-to-section">
287
+ <div class="container">
288
+ <div class="row">
289
+ {%- if site.monumetricId and page.url != '/' and page.lang == 'en' -%}
290
+ <div class="col-md-9 mx-auto">
291
+ <div class="row">
292
+ {%- endif -%}
293
+ <div class="col-md-6 order-0">
294
+ {%- if featureData.HOW_TO_CONTENT.YoutubeVideoUrl.size > 0 -%}
295
+ <div class="how-to-video-wrapper">
296
+ {% assign video_url =
297
+ featureData.HOW_TO_CONTENT.YoutubeVideoUrl %} {% assign
298
+ video_id = "" %} {% if video_url contains "youtu.be/" %} {%
299
+ assign parts = video_url | split: "/" %} {% assign video_id =
300
+ parts[3] %} {% elsif video_url contains "youtube.com/watch" %}
301
+ {% assign params = video_url | split: "?" | last | split: "&"
302
+ %} {% for param in params %} {% if param contains "v=" %} {%
303
+ assign video_id = param | split: "=" | last %} {% endif %} {%
304
+ endfor %} {% endif %} {%- if site.monumetricId -%}
305
+ <div
306
+ class="how-to-video h-100 w-100"
307
+ data-videoid="{{video_id}}"
308
+ >
309
+ <img
310
+ class="youtubeVideoPlayer"
311
+ width="100%"
312
+ height="100%"
313
+ id="thumbnail-img"
314
+ alt="thumbnail-img"
315
+ />
316
+ <div class="youtube-play-btn-wrapper">
317
+ <button
318
+ class="play-btn btn btn-primary"
319
+ onClick="loadVideo()"
320
+ >
321
+
322
+ </button>
323
+ </div>
203
324
  </div>
325
+ {%- else -%}
326
+ <div
327
+ class="how-to-video h-100 w-100"
328
+ data-videoid="{{video_id}}"
329
+ >
330
+ <img
331
+ class="youtubeVideoPlayer"
332
+ width="100%"
333
+ height="100%"
334
+ id="thumbnail-img"
335
+ alt="thumbnail-img"
336
+ />
337
+ <div class="youtube-play-btn-wrapper">
338
+ <button
339
+ class="play-btn btn btn-primary"
340
+ onClick="loadVideo()"
341
+ >
342
+
343
+ </button>
344
+ </div>
345
+ </div>
346
+ {%- endif -%}
204
347
  </div>
205
348
  {%- else -%}
206
- <div class="how-to-video h-100 w-100" data-videoid="{{video_id}}">
207
- <img class="youtubeVideoPlayer" width="100%" height="100%" id="thumbnail-img" alt="thumbnail-img" />
208
- <div class="youtube-play-btn-wrapper">
209
- <button class="play-btn btn btn-primary" onClick="loadVideo()">►</button>
210
- </div>
349
+ <div class="how-to-img-wrapper">
350
+ <img
351
+ class="how-to-leftimg"
352
+ height="180px"
353
+ width="300px"
354
+ src="{{featureData.HOW_TO_CONTENT.logoImageUrl}}"
355
+ loading="lazy"
356
+ alt="{{featureData.HOW_TO_CONTENT.logoImageAlt | default: 'how to image' }}"
357
+ {%-
358
+ if
359
+ site.crossorigin
360
+ -%}
361
+ crossorigin
362
+ {%-
363
+ endif
364
+ -%}
365
+ />
211
366
  </div>
212
367
  {%- endif -%}
213
368
  </div>
214
- {%- else -%}
215
- <div class="how-to-img-wrapper">
216
- <img class="how-to-leftimg" height="180px" width="300px"
217
- src="{{featureData.HOW_TO_CONTENT.logoImageUrl}}" loading="lazy"
218
- alt="{{featureData.HOW_TO_CONTENT.logoImageAlt | default: 'how to image' }}" {%- if site.crossorigin
219
- -%} crossorigin {%- endif -%} />
220
- </div>
221
- {%- endif -%}
222
- </div>
223
- <div class="col-md-6 order-1">
224
- <div class="how-to-right">
225
- <h3 class="how-to-title text-left">
226
- {{featureData.HOW_TO_CONTENT.heading | replace: "$variable",
227
- page.value}}
228
- </h3>
229
- <ol class="how-to-list">
230
- {% for data in featureData.HOW_TO_CONTENT.steps %}
369
+ <div class="col-md-6 order-1">
370
+ <div class="how-to-right">
371
+ <h3 class="how-to-title text-left">
372
+ {{featureData.HOW_TO_CONTENT.heading | replace: "$variable",
373
+ page.value}}
374
+ </h3>
375
+ <ol class="how-to-list">
376
+ {% for data in featureData.HOW_TO_CONTENT.steps %}
231
377
 
232
- <li id="step{{forloop.index}}" class="how-to-list-item">
233
- <span>{{forloop.index}}.</span>{{data | replace:
234
- "$variable", page.value}}
235
- </li>
236
- {% endfor %}
237
- </ol>
378
+ <li id="step{{forloop.index}}" class="how-to-list-item">
379
+ <span>{{forloop.index}}.</span>{{data | replace:
380
+ "$variable", page.value}}
381
+ </li>
382
+ {% endfor %}
383
+ </ol>
384
+ </div>
238
385
  </div>
386
+ {%- if site.monumetricId and page.url != '/' and page.lang == 'en'
387
+ -%}
239
388
  </div>
240
- {%- if site.monumetricId and page.url != '/' and page.lang == 'en'
241
- -%}
242
389
  </div>
390
+ {%- endif -%}
243
391
  </div>
244
- {%- endif -%}
245
392
  </div>
246
- </div>
247
- </section>
393
+ </section>
248
394
 
249
- {%- if page.layout == "feature" -%} {%- include bookmark.html -%} {%- endif
250
- -%} {%- assign showFaqs= true -%} {%- for item in site.noFaqsList -%} {%- if
251
- item == page.lang -%} {%- assign showFaqs = false -%} {%- break -%} {%- else
252
- -%} {%- assign showFaqs = true -%} {%- endif -%} {%- endfor -%} {%- if
253
- showFaqs == true -%} {%- if featureData.FAQ.size>0 -%}
254
- <section class="faq-section">
255
- <div class="container">
256
- <div class="row">
257
- <div class="col-md-8 mx-auto">
258
- <div class="faq">
259
- <h3 class="feature-h1 text-center mb-4">
260
- {{featureData.faqheading | default: 'Frequently Asked
261
- Questions'}}
262
- </h3>
263
- <ul class="list-unstyled">
264
- {% for data in featureData.FAQ %}
265
- <li>
266
- <h3 class="faq-question" itemprop="name">
267
- {{data.question | replace: "$variable", page.value}}<em style="transform: rotate(-135deg)">
268
- <i></i></em>
269
- </h3>
270
- <div style="display: block">
271
- <p class="faq-answer" itemprop="text">
272
- {{data.answer | replace: "$variable", page.value}}
273
- </p>
274
- </div>
275
- </li>
276
- {% endfor %}
277
- </ul>
395
+ {%- if page.layout == "feature" -%} {%- include bookmark.html -%} {%- endif
396
+ -%} {%- assign showFaqs= true -%} {%- for item in site.noFaqsList -%} {%- if
397
+ item == page.lang -%} {%- assign showFaqs = false -%} {%- break -%} {%- else
398
+ -%} {%- assign showFaqs = true -%} {%- endif -%} {%- endfor -%} {%- if
399
+ showFaqs == true -%} {%- if featureData.FAQ.size>0 -%}
400
+ <section class="faq-section">
401
+ <div class="container">
402
+ <div class="row">
403
+ <div class="col-md-8 mx-auto">
404
+ <div class="faq">
405
+ <h3 class="feature-h1 text-center mb-4">
406
+ {{featureData.faqheading | default: 'Frequently Asked
407
+ Questions'}}
408
+ </h3>
409
+ <ul class="list-unstyled">
410
+ {% for data in featureData.FAQ %}
411
+ <li>
412
+ <h3 class="faq-question" itemprop="name">
413
+ {{data.question | replace: "$variable", page.value}}<em
414
+ style="transform: rotate(-135deg)"
415
+ >
416
+ <i></i
417
+ ></em>
418
+ </h3>
419
+ <div style="display: block">
420
+ <p class="faq-answer" itemprop="text">
421
+ {{data.answer | replace: "$variable", page.value}}
422
+ </p>
423
+ </div>
424
+ </li>
425
+ {% endfor %}
426
+ </ul>
427
+ </div>
278
428
  </div>
279
429
  </div>
280
430
  </div>
431
+ </section>
432
+ {%- endif -%} {%- endif -%} {%- include share/socialshare.html -%} {%-
433
+ include Rating/rating.html -%} {%- if featureData.infographics.size > 0 -%}
434
+ {%- include infographics/infographics.html -%} {%- endif -%} {%- include
435
+ /Usp/usp.html -%} {%- if featureData.display_formats -%}
436
+ <div class="container compare-table">
437
+ {%- include fileformat/fileformatdetail.html -%}
438
+ </div>
439
+ {%- endif -%} {%- if featureData.compare_formats -%}
440
+ <div class="container file-detail-table">
441
+ {%- include fileformat/comparisonfiles.html -%}
281
442
  </div>
282
- </section>
283
- {%- endif -%} {%- endif -%} {%- include share/socialshare.html -%} {%-
284
- include Rating/rating.html -%} {%- if featureData.infographics.size > 0 -%}
285
- {%- include infographics/infographics.html -%} {%- endif -%} {%- include
286
- /Usp/usp.html -%} {%- if featureData.display_formats -%}
287
- <div class="container compare-table">
288
- {%- include fileformat/fileformatdetail.html -%}
289
- </div>
290
- {%- endif -%} {%- if featureData.compare_formats -%}
291
- <div class="container file-detail-table">
292
- {%- include fileformat/comparisonfiles.html -%}
293
- </div>
294
-
295
- {%- endif -%} {%- if site.userTrackingCount -%} {%- include
296
- userTracking.html -%} {%- endif -%} {%- assign langen = "en" -%} {%- if
297
- site.data[folder][langen][file].categories -%} {% assign categories=
298
- site.data[folder][langen][file].categories %} {%- else -%} {% assign
299
- categories= page.categories %} {%- endif -%} {%- if
300
- site.data[folder][langen][file].tags -%} {% assign tags=
301
- site.data[folder][langen][file].tags %} {%- else -%} {% assign tags=
302
- page.tags %} {%- endif -%} {%- if featureData.posts.size > 0 -%} {%- include
303
- customblog/pageRelatedPosts.html -%} {%- else -%} {%- if categories.size > 0
304
- or tags.size > 0 -%} {%- include section/related_categories_post.html -%}
305
- {%- else -%} {%- include section/recent_posts.html -%} {%- endif -%} {%-
306
- endif -%} {%- if site.customblogdata -%} {%- if categories.size> 0 or
307
- tags.size>0-%} {%- include customblog/relatedposts.html -%} {%- else -%} {%-
308
- include customblog/recentposts.html -%} {% endif %} {%- endif -%}
309
-
310
- {%- if featureData.author.size > 0 -%}
311
- {% include featurePageAuthors/featurePageAuthors.html %}
312
- {%- endif -%}
313
-
314
- {% include
315
- footer/index.html %} {%- if site.customCode -%} {%- include customCode.html
316
- -%} {%- endif -%} {% include script.html %}
317
-
318
-
319
443
 
320
- {%- if featureData.HOW_TO_CONTENT.YoutubeVideoUrl.size > 0 -%}
321
- <script>
322
- let videoContainer = document.querySelector('.how-to-video');
323
- let thumbnail = document.getElementById('thumbnail-img');
324
- let videoId = videoContainer.getAttribute("data-videoid")
325
- let thumbnailUrl = 'https://img.youtube.com/vi/' + videoId + '/maxresdefault.jpg';
326
- console.log(videoId)
444
+ {%- endif -%} {%- if site.userTrackingCount -%} {%- include
445
+ userTracking.html -%} {%- endif -%} {%- assign langen = "en" -%} {%- if
446
+ site.data[folder][langen][file].categories -%} {% assign categories=
447
+ site.data[folder][langen][file].categories %} {%- else -%} {% assign
448
+ categories= page.categories %} {%- endif -%} {%- if
449
+ site.data[folder][langen][file].tags -%} {% assign tags=
450
+ site.data[folder][langen][file].tags %} {%- else -%} {% assign tags=
451
+ page.tags %} {%- endif -%} {%- if featureData.posts.size > 0 -%} {%- include
452
+ customblog/pageRelatedPosts.html -%} {%- else -%} {%- if categories.size > 0
453
+ or tags.size > 0 -%} {%- include section/related_categories_post.html -%}
454
+ {%- else -%} {%- include section/recent_posts.html -%} {%- endif -%} {%-
455
+ endif -%} {%- if site.customblogdata -%} {%- if categories.size> 0 or
456
+ tags.size>0-%} {%- include customblog/relatedposts.html -%} {%- else -%} {%-
457
+ include customblog/recentposts.html -%} {% endif %} {%- endif -%} {%- if
458
+ featureData.author.size > 0 -%} {% include
459
+ featurePageAuthors/featurePageAuthors.html %} {%- endif -%} {% include
460
+ footer/index.html %} {%- if site.customCode -%} {%- include customCode.html
461
+ -%} {%- endif -%} {% include script.html %} {%- if
462
+ featureData.HOW_TO_CONTENT.YoutubeVideoUrl.size > 0 -%}
463
+ <script>
464
+ let videoContainer = document.querySelector(".how-to-video");
465
+ let thumbnail = document.getElementById("thumbnail-img");
466
+ let videoId = videoContainer.getAttribute("data-videoid");
467
+ let thumbnailUrl =
468
+ "https://img.youtube.com/vi/" + videoId + "/maxresdefault.jpg";
469
+ console.log(videoId);
327
470
 
328
- // Function to load video
329
- function loadVideo() {
330
- videoContainer.innerHTML = '<iframe loading="lazy" class="youtubeVideoPlayer" width="100%" height="100%" src="https://www.youtube.com/embed/' + videoId + '?autoplay=1&mute=1" allowfullscreen></iframe>';
331
- }
332
- // Function to handle lazy loading of the thumbnail
333
- function lazyLoadThumbnail(entries, observer) {
334
- entries.forEach(entry => {
335
- if (entry.isIntersecting) {
336
- // Load thumbnail when it becomes visible
337
- thumbnail.src = thumbnailUrl;
338
- // Stop observing once loaded
339
- observer.unobserve(entry.target);
340
- }
471
+ // Function to load video
472
+ function loadVideo() {
473
+ videoContainer.innerHTML =
474
+ '<iframe loading="lazy" class="youtubeVideoPlayer" width="100%" height="100%" src="https://www.youtube.com/embed/' +
475
+ videoId +
476
+ '?autoplay=1&mute=1" allowfullscreen></iframe>';
477
+ }
478
+ // Function to handle lazy loading of the thumbnail
479
+ function lazyLoadThumbnail(entries, observer) {
480
+ entries.forEach((entry) => {
481
+ if (entry.isIntersecting) {
482
+ // Load thumbnail when it becomes visible
483
+ thumbnail.src = thumbnailUrl;
484
+ // Stop observing once loaded
485
+ observer.unobserve(entry.target);
486
+ }
487
+ });
488
+ }
489
+ // Set up the Intersection Observer
490
+ var observer = new IntersectionObserver(lazyLoadThumbnail, {
491
+ threshold: 0.1,
341
492
  });
342
- }
343
- // Set up the Intersection Observer
344
- var observer = new IntersectionObserver(lazyLoadThumbnail, { threshold: 0.1 });
345
- observer.observe(thumbnail);
346
- // Optionally, you can add an event listener to trigger video loading on click or other interactions
347
- thumbnail.addEventListener('click', loadVideo);
348
- </script>
349
- {%- endif -%}
350
- </body>
351
-
352
- </html>
493
+ observer.observe(thumbnail);
494
+ // Optionally, you can add an event listener to trigger video loading on click or other interactions
495
+ thumbnail.addEventListener("click", loadVideo);
496
+ </script>
497
+ {%- endif -%}
498
+ </body>
499
+ </html>