{% 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 %}
{% if entity.icon %} {% else %} {% endif %}
{% else %}
{% if canadd %} {% endif %} {% if canupdate %} {% endif %} {% if canadd and access!="config"%} {% endif %} {% if look=="list" %} {% else %} {% endif %}
{% if entity.icon %} {% else %} {% endif %} {{ entity.name }}
{% if canadd or bookmarks is not empty or items is not empty %}
{% for bookmark in bookmarks %} {% if bookmark.item %}
{% if bookmark.item.content %} {% endif %} {% if canadd %} {% endif %} {% set datasonde = "" %} {% if bookmark.item.clicksonde %} {% set datasonde = "class='linktosonde' data-sondetitle='"~bookmark.item.title~"' data-sondeservice='"~bookmark.item.clicksondeservice~"'" %} {% endif %} {% if bookmark.item.target == 'frame' %} {% elseif bookmark.target == "_self" %} {% else %} {% endif %}
{%else%} {%endif%} {% endfor %} {% for item in items %} {% endfor %} {% if canadd %} {% endif %}
{% endif %}
{% endif %}