{% 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) %} {% set stylewidgetbodyreverse = constants.mystylewidgetbodyreverse(entity) %} {% set permgroup = app.session.get('permgroup') %} {% set canadd = false %} {% if is_granted('ROLE_ADMIN') or (is_granted('ROLE_MODO') and (permgroup=="ROLE_MODO" or permgroup=="ROLE_ANIM" or permgroup=="ROLE_USER")) or (is_granted('ROLE_ANIM') and (permgroup=="ROLE_ANIM" or permgroup=="ROLE_USER")) or (is_granted('ROLE_USER') and permgroup=="ROLE_USER") %} {% set canadd = true %} {% endif %} {% if mini %}
{% else %} {% endif %}