|
@@ -4,49 +4,78 @@
|
|
|
{% set image_basename_thumb = image_parts.basename %}
|
|
|
{% set image_page_thumb = image_parts.dirname == '.' ? module : module.find(image_parts.dirname) %}
|
|
|
|
|
|
-{% 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 %}
|
|
|
+ {% set titleHyp = item.title|lower|hyphenize %}
|
|
|
|
|
|
- <div id="{{titleHyp}}" class="{{section}} __thumbnails">
|
|
|
+ {% 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">
|
|
|
<div class="__title">
|
|
|
- <p>{{item.title}}</p>
|
|
|
+ <div class="__d-inline">
|
|
|
+ <span>{{item.title}}</span>
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- <div class="__thumb">
|
|
|
+
|
|
|
+ <div class="__thumb __hover">
|
|
|
|
|
|
{% if section == 'pack' %}
|
|
|
<a href="#">
|
|
|
- {% endif %}
|
|
|
-
|
|
|
- <div class="__images ">
|
|
|
- {{ image_page_thumb.media[image_basename_thumb].html() }}
|
|
|
- <div class="__sub-title">
|
|
|
- <p>{{item.sous_title}}</p>
|
|
|
+ <div class="__images">
|
|
|
+ {% include 'components/thumbnails/img_tbn.html.twig' with { list: 'true'} %}
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ {% include 'components/buttons/btn.html.twig' with { btn: 'more'} %}
|
|
|
+ </a>
|
|
|
|
|
|
- {% if section == 'pack' %}
|
|
|
+ {% else %}
|
|
|
+
|
|
|
+ <div class="__images">
|
|
|
+ {% include 'components/thumbnails/img_tbn.html.twig' with { list: 'true'} %}
|
|
|
+ </div>
|
|
|
{% include 'components/buttons/btn.html.twig' with { btn: 'more'} %}
|
|
|
- {% endif %}
|
|
|
|
|
|
- {% if section == 'pack' %}
|
|
|
- </a>
|
|
|
{% endif %}
|
|
|
|
|
|
</div>
|
|
|
+ {% if section == 'pack' %}
|
|
|
+ {% include 'components/learn_more/more.html.twig' %}
|
|
|
+ {% endif %}
|
|
|
+
|
|
|
</div>
|
|
|
+
|
|
|
{% endfor %}
|
|
|
|
|
|
-{% for item in module.header.list %}
|
|
|
+{% if section == 'pack' %}
|
|
|
+ <div id="envie" class="{{section}} __thumbnails">
|
|
|
+
|
|
|
+ <div class="__title">
|
|
|
+ <div class="__d-inline">
|
|
|
+ <span>{{module.header.title_envie}}</span>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ <div class="__thumb">
|
|
|
+ <a target="_blank" href="{{module.header.btn_url_envie}}">
|
|
|
+ <div class="__images ">
|
|
|
+ {% include 'components/thumbnails/img_tbn.html.twig' with { list: 'false'} %}
|
|
|
+ </div>
|
|
|
+ {% include 'components/buttons/btn.html.twig' with { btn: 'envie'} %}
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+
|
|
|
+ </div>
|
|
|
+{% endif %}
|
|
|
+
|
|
|
+{% for item in module.header.list_offres %}
|
|
|
|
|
|
{% set titleHyp = item.title|lower|hyphenize %}
|
|
|
+
|
|
|
{% if titleHyp == "bien-tre" %}
|
|
|
{% set color = "__blue" %}
|
|
|
{% elseif titleHyp == "nature" %}
|
|
@@ -57,11 +86,23 @@
|
|
|
{% set color = "__grey" %}
|
|
|
{% endif %}
|
|
|
|
|
|
- {% if section == 'pack' %}
|
|
|
- <div id="{{titleHyp}}" class="__more {{color}} ">
|
|
|
- <div class="__details">
|
|
|
- {% include 'components/learn_more.html.twig' %}
|
|
|
+ <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 ">
|
|
|
+ {{ image_page_thumb.media[image_basename_thumb].html() }}
|
|
|
+ </div>
|
|
|
</div>
|
|
|
- {% endif %}
|
|
|
+
|
|
|
+ </div>
|
|
|
+
|
|
|
{% endfor %}
|