{% extends 'base.html.twig' %} {% block title %}{{app.session.get("appname")}} - {{child.name}}{% endblock %} {% block menuuser %} {% if is_granted('ROLE_ADMIN') %}
  • {% endif %} {% endblock %} {% block beforebody %} {% if not child.childheaders is empty %} {% endif %} {% endblock %} {% block body %} {% set haveside=true %} {% if catparent!="blog" and child.tags is empty and contacts is empty and ressources is empty and links is empty %} {% set haveside=false %} {% endif %} {%if pages and pages|length > 1%}
    {% for page in pages %} {{ page.name }} {% endfor %}
    {% endif %}
    {%if haveside %}
    {% endif %}

    {{child.name}}

    {% if child.subname %}
    {{child.subname}}
    {% endif %}
    {% if child.childtype.haveurl and child.url %}Site = {{child.url}}
    {%endif%}
    {{child.description|raw}}
    {% if images %}

    Galerie Photos

    {% for image in images %} {% if image.childtype.id==12 %} {% set background=path("app_minio_image",{file:"child/"~image.id~"/thumb/"~image.filename}) %} {% else %} {% set background=image.url %} {% endif %} {% set style="height:auto;background-position: center ; background-size: cover; background-image: url("~background~")" %} {% endfor %}
    {% endif %} {% if videos %}

    Videos

    {% for video in videos %} {% if video.childtype.id==14 %} {% set url = path("app_minio_image",{file:"child/"~video.id~"/"~video.filename }) %} {% else %} {% endif %} {% endfor %}
    {% endif %} {% if bibliographys %}
    {% if separator=="d" %} {% set separator="g" %} {%else%} {% set separator="d" %} {%endif%}
    {% endif %}
    {% if haveside %}
    {% if not child.tags is empty %}
    {% for tag in child.tags %} {% if loop.first %}

    Tags

    {%endif%} {{tag.id}} {% endfor %}
    {% endif %}

    Autres Publications

    {% for otherchidblog in child.childblogs[0].blog.childblogs[0] %} {{otherchidblog.child.name}}
    {% endfor %}
    {% if not ressources is empty %}

    Ressources

    {% for ressource in ressources %} {% if ressource.childtype.id==16 %} {% set filename="/"~appAlias~"/uploads/child/"~ressource.id~"/"~ressource.filename %} {% else %} {% set filename=ressource.url %} {% endif %}
    {{ ressource.name}}
    {{ ressource.subname}}
    {% endfor %}
    {% endif %} {% if not links is empty %} {% endif %}
    {% if is_granted('ROLE_ADMIN') %}
    {% if not parent.externalcode is empty %} {{parent.externalcode}} = {{parent.externalid}}
    {%endif%}
    {% endif %}
    {% endif %}
    {% endblock %}