{% set idchildtype=-100 %}
{% set idparent=-100 %}
{% set tbtag=[] %}
{% set tbname=[] %}
{% for child in childs %}
{% if loop.first %}
{{ child.childtype.name|replace({"Embed ":""}) }}
{% if not nopagination %}
{% endif %}
{% if not isalpha and child.childtype.id!=30 %}
{% endif %}
{% endif %}
{% if isalpha or child.childtype.id==30 %}
{% if child.idparent != idparent %}
{% if not loop.first %}
{% endif %}
{{ child.nameparent }}
{% set idparent=child.idparent %}
{% set tbname = tbname|merge({("MAP"~child.idparent):child.nameparent}) %}
{% endif %}
{% endif %}
{% set tagsclass="" %}
{% for tag in child.tags %}
{% set tagid=tag.id|replace({" ":""}) %}
{% if tag.id not in tbtag %}
{% set tbtag = tbtag|merge({(tagid):tag.id}) %}
{% endif %}
{% set tagsclass=tagsclass~" tag-"~tagid %}
{%endfor%}
{% if child.childtype.id==10 %}
{% set url = "/"~appAlias~"/uploads/child/"~child.id~"/"~child.filename %}
{{ child.name }}
En savoir plus
{% elseif child.childtype.id==12 or child.childtype.id==13 or child.childtype.id==30 %}
{% if child.childtype.id==12 or child.childtype.id==30 %}
{% set background="/"~appAlias~"/uploads/child/"~child.id~"/thumb/"~child.filename %}
{% else %}
{% set background=child.url %}
{% endif %}
{% set style="height:auto;background-position: center ; background-size: cover; background-image: url("~background~")" %}
{% elseif child.childtype.id==16 or child.childtype.id==17 %}
{% set style="" %}
{%if child.image %}
{% set background=child.image|replace({"**appAlias**":appAlias}) %}
{% set style="height:auto;background-position: center ; background-size: cover; background-image: url("~background~")" %}
{% else %}
{%endif%}