webseite/templates/blocks/flow_one_innerbox_section.html

42 lines
1.6 KiB
HTML
Raw Normal View History

2021-06-24 23:44:12 +02:00
{#- Image Selection -#}
{{- '\n ' -}} <div class="content__inner_third_box">
{{- '\n ' -}} <h2 class="content__inner_third_heading">{{ this.title }}</h2>
{%- if this.box_image is defined and this.box_image != '' -%}
{%- set image = record.attachments.images.get(this.box_image) -%}
{{- '\n ' -}} <img class="content__inner_third_image content__half_box_image" src="{{ image|url }}"
2021-08-31 22:50:02 +02:00
{{- '\n ' -}} width="{{ image.width / 2 | int }}"
2021-06-24 23:44:12 +02:00
{%- if this.image_alt is defined and this.image_alt != "" -%}
{{- ' ' -}}
alt="{{ this.image_alt }}"
{%- endif -%}
{{- ' ' -}}
2021-09-05 04:23:55 +02:00
srcset="
{%- set img_list = image.path.split('.') -%}
{#
{%- for option in ranger(int(bag('image-resize', 'option', 'range'))) -%}
{%- for item in img_list -%}
{%- if loop.index == loop.length -%}
{{- '-' -}}
{{- option -}}
{{- '.webp -}}
{%- elif loop.index == 1 -%}
{{ item }}
{%- else -%}
.{{- item -}}
{%- endif -%}
{%- endfor -%}
{%- endfor -%}
#}
" /> <!-- YYY -->
2021-06-24 23:44:12 +02:00
{%- endif -%}
{%- if this.box_content is defined and this.box_content != "" -%}
{{- '\n ' -}}
{{ this.box_content }}
{%- endif -%}
{{- '\n ' -}} <div class="content__button_box">
{{- '\n ' -}} <button class="content__button">
{{- '\n ' -}} <a class="content__inner_third_button_link" href="{{ this.box_url }}">{{ this.box_link }}</a>
{{- '\n ' -}} </button>
{{- '\n ' -}} </div>
{{- '\n ' -}} </div>