webseite/templates/blocks/flow_one_innerbox_section.html
L3D fd742c7049 redesign website (!1)
Co-authored-by: L3D <l3d@see-base.de>
Reviewed-on: https://backwesen.de/c3woc/webseite/pulls/1
2022-05-18 00:35:37 +02:00

24 lines
1.2 KiB
HTML

{#- 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 ' -}} <a href="{{ this.box_url }}">
{{- '\n ' -}} <img class="content__inner_third_image content__half_box_image" src="{{ image | imagessrcwebp }}" width="{{ image | firstwidth }}"
{{- '\n ' -}} srcset="{{ image | imagessrcsetwebp }}"
{%- if this.image_alt is defined and this.image_alt != "" -%}
{{- ' ' -}}
alt="{{ this.image_alt }}"
{%- endif -%}/>
{{- '\n ' -}} </a>
{%- 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>