fix fichier manquants
This commit is contained in:
@@ -0,0 +1,34 @@
|
||||
{% for item in module.header.list %}
|
||||
|
||||
{% set titleHyp = item.title|lower|hyphenize %}
|
||||
|
||||
{% if titleHyp == "bien-tre" %}
|
||||
{% set color = "__blue" %}
|
||||
{% elseif titleHyp == "nature" %}
|
||||
{% set color = "__green" %}
|
||||
{% elseif titleHyp == "gastronomie" %}
|
||||
{% set color = "__red" %}
|
||||
{% else %}
|
||||
{% set color = "__grey" %}
|
||||
{% endif %}
|
||||
|
||||
<div id="{{titleHyp}}" class="{{section}} __thumbnails">
|
||||
{% set image_parts = pathinfo(item.a_file) %}
|
||||
{% set image_basename_thumb = image_parts.basename %}
|
||||
{% set image_page_thumb = image_parts.dirname == '.' ? module : module.find(image_parts.dirname) %}
|
||||
|
||||
<div class="__title">
|
||||
<div class="__d-inline">
|
||||
<span>{{item.title}}</span>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="__thumb">
|
||||
<div class="__images ">
|
||||
{% include 'components/thumbnails/img_tbn.html.twig' with { list: 'true'} %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
{% endfor %}
|
Reference in New Issue
Block a user