{{- $context := .context -}} {{- $position := .block.position -}} {{- $title := .block.title -}} {{- $is_carousel := false -}} {{- with .block.data -}} {{ if gt (len .testimonials) 1 }} {{- $is_carousel = true -}} {{ end }}
{{ if $title -}}
{{ partial "blocks/title" (dict "title" $title "context" $context ) }}
{{ end -}}
{{- if $is_carousel }}
{{ end -}} {{ range .testimonials }} {{ $is_long := gt (len .text) 150 }}

{{- partial "PrepareHTML" .text -}}

{{ if or .photo .author .job -}}
{{ if .photo -}}
{{- partial "commons/image.html" (dict "image" .photo "alt" .author "mobile" "192x192" "tablet" "192x192" "desktop" "192x192" ) -}}
{{- end }} {{ if or .author .job -}} {{- if .author -}} {{ partial "PrepareHTML" .author }}
{{- end }} {{- partial "PrepareHTML" .job -}}
{{- end }}
{{ end }} {{ end }} {{- if $is_carousel }}
{{ end -}}
{{- end -}}