This commit is contained in:
afornerot 2024-11-01 10:28:07 +01:00
parent e383dd8b83
commit a098c9ecba
1 changed files with 9 additions and 1 deletions

View File

@ -265,6 +265,7 @@
{% set appthumbwidth=app.session.get("appthumbwidth") %} {% set appthumbwidth=app.session.get("appthumbwidth") %}
{% set appthumbheight=app.session.get("appthumbheight") %} {% set appthumbheight=app.session.get("appthumbheight") %}
{% set classmini="" %}
{% if appthumbwidth==0 %} {% if appthumbwidth==0 %}
{% set class="" %} {% set class="" %}
{% if loop.index < 40 %} {% if loop.index < 40 %}
@ -286,6 +287,13 @@
{% set class="grid-item-size-2" %} {% set class="grid-item-size-2" %}
{% endif %} {% endif %}
{% endif %} {% endif %}
{% set position = (loop.index - 1) % 10 + 1 %}
{% if position == 1 or position == 8 %}
{% set classmini = 'grid-item-mini-50' %}
{% else %}
{% set classmini = 'grid-item-mini-25' %}
{% endif %}
{% elseif appthumbwidth==1 %} {% set class="" %} {% elseif appthumbwidth==1 %} {% set class="" %}
{% elseif appthumbwidth==2 %} {% set class="grid-item-size-2" %} {% elseif appthumbwidth==2 %} {% set class="grid-item-size-2" %}
{% endif %} {% endif %}
@ -304,7 +312,7 @@
{% endif %} {% endif %}
<a href="{{ path("app_illustration_view",{"by":"home","idcat":illustration.category.id,"id":illustration.id}) }}"> <a href="{{ path("app_illustration_view",{"by":"home","idcat":illustration.category.id,"id":illustration.id}) }}">
<div id="illustration{{illustration.id}}" class="grid-item grid-item-size {{class}} cssfilter no-cache-bg" data-width="{{illustration.width}}" data-background-image="/{{ appAlias }}/uploads/illustration/{{source}}" data-height="{{illustration.height}}" style="height:auto;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/illustration/{{source}}");"> <div id="illustration{{illustration.id}}" class="grid-item grid-item-size {{class}} {{classmini}} cssfilter no-cache-bg" data-width="{{illustration.width}}" data-background-image="/{{ appAlias }}/uploads/illustration/{{source}}" data-height="{{illustration.height}}" style="height:auto;background-position: center ; background-size: cover; background-image: url(/{{ appAlias }}/uploads/illustration/{{source}}");">
</div> </div>
</a> </a>
{% endfor %} {% endfor %}