{% if isField is not defined -%} {% set isField = false -%} {% endif -%} {% set thumbUrl = element.getThumbUrl(45, 45) -%} {% if thumbUrl -%} {% set thumbClass = 'thumb'~element.id -%} {% includeCss '.'~thumbClass~' { background-image: url('~thumbUrl~'); }' -%} {% includeHiResCss '.'~thumbClass~' { background-image: url('~element.getThumbUrl(90, 90)~'); }' -%} {% endif -%}