appscms-tools-theme 3.8.0 → 3.8.2

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/_layouts/post.html CHANGED
@@ -143,6 +143,24 @@
143
143
  <p class="mb-3"> <a class="featureLink" style="font-size: 13px"
144
144
  href="{{item.url}}">{{item.name}}</a></p>
145
145
  {%- endfor -%}
146
+ {%- elsif site.relatedPages -%}
147
+ {% assign blogPostPath = page.path %}
148
+
149
+
150
+ {% for entry in site.data.blog.relatedblogs %}
151
+ {% if entry.path == blogPostPath %}
152
+ <h2>Related Features:</h2>
153
+ <ul class="list-unstyled">
154
+ {% for feature in entry.relatedFeatures %}
155
+ {% assign parts = feature.webpageUrl | split: '/' %}
156
+ {% assign lastPart = parts | last %}
157
+ {% assign subParts = lastPart | split: '-' %}
158
+ <li><a class="featureLink" style="font-size: 13px" href="{{ site.baseurl }}{{ feature.webpageUrl }}">{{ subParts[0] | capitalize }} {{ subParts[1] }}</a></li>
159
+
160
+ {% endfor %}
161
+ </ul>
162
+ {% endif %}
163
+ {% endfor %}
146
164
  {% else %}
147
165
  <h3 class="font-weight-bolder">Checkout out these features</h3>
148
166
  <br>
data/assets/.DS_Store CHANGED
Binary file