appscms-tools-theme 3.8.0 → 3.8.1

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.
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
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.8.0
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