{% 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 color = app.session.get('color') %} {% set colorbodyfont = entity.colorbodyfont %} {% if colorbodyfont is null %} {% set colorbodyfont = color['fontcolorhover'] %} {% endif %} {% set colorbodyback = entity.colorbodyback %} {% if colorbodyback is null %} {% set colorbodyback = color['main'] %} {% endif %} {% set colorbodyfont = entity.colorbodyfont %} {% if colorbodyfont is null %} {% if colorbodyback==color['fontcolorhover'] %} {% set colorbodyfont = color['main'] %} {% else %} {% set colorbodyfont = color['fontcolorhover'] %} {% endif %} {% endif %} {% if modelist==0 %} {% set stylegrid="grid-preview" %} {% elseif modelist==1 %} {% set stylegrid="grid-list" %} {% endif %} {%if mini %}
{% else %} {% endif %}