{% set theme = app.session.get('theme') %} {% if theme is not empty %} {{ include('@Theme/'~theme~'/function.html.twig') }} {% endif %} {% import "@CadolesPortal/Pagewidget/constants.twig" as constants %} {% set stylewidget = constants.mystylewidget(entity) %} {% set stylewidgetmenu = constants.mystylewidgetmenu(entity) %} {% set stylewidgetheader = constants.mystylewidgetheader(entity) %} {% set stylewidgetbody = constants.mystylewidgetbody(entity) %} {% set stylewidgetbodyreverse = constants.mystylewidgetbodyreverse(entity) %} {% set color = app.session.get('color') %} {% set colorbodyback = entity.colorbodyback %} {% if colorbodyback is null %} {% set colorbodyback = color['main'] %} {% endif %} {% set colorbodyfont = entity.colorbodyfont %} {% if colorbodyfont is null %} {% set colorbodyfont = color['fontcolorhover'] %} {% endif %} {%if mini %}
{% if entity.icon %} {% else %} {% endif %}
{% else %}
{% if canupdate %} {% endif %} {% if canadd %} {% endif %} {% if look=="list" %} {% else %} {% endif %}
{% if entity.icon %} {% else %} {% endif %} {{ entity.name }}
{% if files|length>0 or canadd %}
{% if canadd %}
{% endif %} {% for file in files|sort %} {% if loop.index==1 and not canadd %}
{% endif %}
{% if canadd %} {% endif %}
{% endfor %} {% if canadd %} {% endif %}
{% endif %}
{% endif %}