svg
This commit is contained in:
parent
e383dd8b83
commit
a098c9ecba
|
@ -265,6 +265,7 @@
|
|||
{% set appthumbwidth=app.session.get("appthumbwidth") %}
|
||||
{% set appthumbheight=app.session.get("appthumbheight") %}
|
||||
|
||||
{% set classmini="" %}
|
||||
{% if appthumbwidth==0 %}
|
||||
{% set class="" %}
|
||||
{% if loop.index < 40 %}
|
||||
|
@ -286,6 +287,13 @@
|
|||
{% set class="grid-item-size-2" %}
|
||||
{% 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==2 %} {% set class="grid-item-size-2" %}
|
||||
{% endif %}
|
||||
|
@ -304,7 +312,7 @@
|
|||
{% endif %}
|
||||
|
||||
<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>
|
||||
</a>
|
||||
{% endfor %}
|
||||
|
|
Loading…
Reference in New Issue