{% set widgethaveheader=entity.viewheader %} {% set widgetname="item" %} {%if widgethaveheader %} {% set widgetstyle=(entity.colorheaderback ? "border-color:"~entity.colorheaderback~";" : "border-color:var(--colorbgbodydark);") %} {% set widgetstylemenu=(entity.colorheaderback ? "background-color:"~entity.colorheaderback~";" : "background-color:var(--colorbgbodydark);")~(entity.colorheaderfont ? "color:"~entity.colorheaderfont~";" : "color:var(--colorfttitledark);") %} {%else%} {% set widgetstyle=(entity.colorbodyback ? "border-color:"~entity.colorbodyback~";" : "border-color:var(--colorbgbodydark);") %} {% set widgetstylemenu="background-color:var(--colorbgbodydark); color: var(--colorfttitledark); padding:10px; border-radius: 5px;" %} {%endif%} {% set widgetstyleheader=(entity.colorheaderback ? "background-color:"~entity.colorheaderback~";" : "background-color:var(--colorbgbodydark);")~(entity.colorheaderfont ? "color:"~entity.colorheaderfont~";" : "color:var(--colorfttitledark);") %} {% set widgetstylebody=(entity.colorbodyback ? "background-color:"~entity.colorbodyback~";" : "background-color:var(--colorbgbodylight);")~(entity.colorbodyfont ? "color:"~entity.colorbodyfont~";" : "color:var(--colorfttitlelight);") %} {% set widgeicon= entity.icon ? path('app_minio_image',{file:entity.icon.label}) : path('app_minio_image',{file:"icon/icon_pin.png"}) %} {% if modedesktop==0 %} {% set itemsize="item-verysmall" %} {% elseif modedesktop==1 %} {% set itemsize="item-small" %} {% elseif modedesktop==2 %} {% set itemsize="item-medium" %} {% elseif modedesktop==3 %} {% set itemsize="item-large" %} {% elseif modedesktop==4 %} {% set itemsize="item-list" %} {% endif %} {% if app.user %} {% set username = app.user.username %} {% else %} {% set username = "" %} {% endif %} {% set colorbodyfont = "" %} {% if entity.colorbodyfont is not null %} {% set colorbodyfont = "color: #" ~ entity.colorbodyfont %} {% endif %}
{% if canadd %} {% endif %} {% if canupdate %} {% endif %} {% if canadd and access!="admin"%} {% endif %}
{%if widgethaveheader %}
{{ entity.name }}
{%endif%}
{% set havemenu=false %} {% set havebookmark=false %} {% if menu and withbookmark!= 2 and bookmarks is not empty and itemcategorys|length > 1 %} {% set havemenu=true %}
{% if menuall %}
Tout
{% endif %} {% if bookmarks is not empty %}
{% endif %} {% for itemcategory in itemcategorys %}
{{itemcategory.label}}
{% endfor %}
{% endif %} {% if search %} {% set havemenu=true %}
 
{% endif %} {% if (bookmarks is not empty or canadd ) and (withbookmark==0 or withbookmark==2) %} {% if withbookmark==0 and itemcategorys|length > 1 %}

Favoris

{% endif %}
{% for bookmark in bookmarks %} {% set havebookmark=true %} {% if bookmark.item %} {% set bookmarktitle = bookmark.item.title %} {% set bookmarksubtitle = bookmark.item.subtitle %} {% set bookmarkbackgroundcolor = bookmark.item.color ? bookmark.item.color : app.session.get('colorbgbodydark')|raw %} {% set bookmarktarget = bookmark.item.target %} {% set bookmarkurl = ( bookmark.item.protected and not app.user ? path("app_login") : bookmark.item.url|replace({'#login#': username}) ) %} {% set bookmarkcontent = bookmark.item.content %} {% set bookmarkicon = (bookmark.item.icon ? bookmark.item.icon.label : "icon/icon_pin.png") %} {% else %} {% set bookmarktitle = bookmark.title %} {% set bookmarksubtitle = bookmark.subtitle %} {% set bookmarkbackgroundcolor = bookmark.color ? bookmark.color : app.session.get('colorbgbodydark')|raw %} {% set bookmarktarget = bookmark.target %} {% set bookmarkurl = bookmark.url|replace({'#login#': username}) %} {% set bookmarkcontent = bookmark.content %} {% set bookmarkicon = bookmark.icon ? bookmark.icon.label : "icon/icon_pin.png" %} {% endif %}
{% if bookmarktarget == 'frame' %} {% else %} {% endif %}

{{ bookmarktitle }}

{{ bookmarksubtitle|nl2br }}
{% if bookmarkcontent %} {% endif %}
{{ bookmarkcontent|raw }}
{% endfor %} {% if (canadd) %} {% endif %}
{% endif %} {% for itemcategory in itemcategorys %} {% if itemcategorys|length > 1 or havebookmark %}

{{itemcategory.label}}

{% endif %}
{% for item in items %} {% if item.itemcategory==itemcategory %}
{% set url=item.url|replace({'#login#': username}) %} {% if item.protected and not app.user %} {% set url=path('app_login') %} {% endif %} {% if item.target == 'frame' %} {% else %} {% endif %} {% if item.icon %} {% else %} {% endif %}

{{ item.title }}

{{ item.subtitle|nl2br }}
{% if canadd %} {% endif %} {% if item.content %} {% endif %}
{{ item.content|raw }}
{% endif %} {% endfor %}
{% endfor %}