{% 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 colormain = constants.mycolormain() %} {% set stylewidget = constants.mystylewidget(entity) %} {% set stylewidgetmenu = constants.mystylewidgetmenu(entity) %} {% set stylewidgetheader = constants.mystylewidgetheader(entity) %} {% set stylewidgetbody = constants.mystylewidgetbody(entity) %} {% if modedesktop==0 %} {% set stylegrid="" %} {% elseif modedesktop==1 %} {% set stylegrid="grid-medium" %} {% elseif modedesktop==2 %} {% set stylegrid="grid-small" %} {% elseif modedesktop==3 %} {% set stylegrid="grid-list" %} {% endif %} {% set colorbodyfont = "" %} {% if entity.colorbodyfont is not null %} {% set colorbodyfont = "color: #" ~ entity.colorbodyfont %} {% endif %} {% if app.user %} {% set username = app.user.username %} {% else %} {% set username = "" %} {% endif %} {%if mini %}
{% else %}