[ {{ collection from="events" }} { "title" : "{{ title | sanitize }}", "bg_jpg" : "{{ glide:image width="550" height="550" absolute="true" quality="75" }}", "bg_webp" : "{{ glide:image width="500" height="500" absolute="true" format="webp" }}", "bgColor" : "{{ image | color }}", "id" : "{{ id }}", "hidden" : {{ hidden ? "true" : "false"}}, "theme" : [{{ if theme }}{{ theme }}"{{ value }}"{{ if !last }},{{ /if }}{{ /theme }}{{ /if }}], "score" : {{ score ?? "0" }}, "gender" : [{{ gender }}"{{ value }}"{{ if !last }},{{ /if }}{{ /gender }}], "orientation" : [{{ orientation }}"{{ value }}"{{ if !last }},{{ /if }}{{ /orientation }}], "county" : [{{ if county }}{{ county }}"{{ value }}"{{ if !last }},{{ /if }}{{ /county }}{{ /if }}], "age_min" : {{ age_min ?? "0" }}, "age_max" : {{ age_max ?? "0" }}, "score_gender" : {{ score_gender ?? "0" }}, "score_county" : {{ score_county ?? "0" }}, "score_orientation" : {{ score_orientation ?? "0" }}, "place": { {{ place }}"title": "{{ title }}", "county":"{{ county }}", "street":"{{ street }}", "zip":"{{ zip }}", "city":"{{ city }}"{{ /place }} }, "organizer": { {{ organizer }}"title": "{{ title }}", "county":"{{ county }}", "street":"{{ street }}", "zip":"{{ zip }}", "city":"{{ city }}", "logo_light" : "{{ glide:logo_light width="200" height="200" absolute="true" quality="75" }}", "logo_dark" : "{{ glide:logo_dark width="200" height="200" absolute="true" quality="75" }}"{{ /organizer }} }, "score_age" : {{ score_age ?? "0" }}, "dates" : [{{ dates }} "{{date format="Y-m-d\TH:i:s.Z\Z" }}" {{ if !last }},{{ /if }} {{ /dates }}], "content" : [{{ content }} {{ if type == "p" }}{ "t" : "p", "v" : "{{ text | raw | nl2br | spaceless | sanitize }}" }{{ /if }} {{ if type == "title" }}{ "t" : "{{ size }}", "v" : "{{ text | sanitize }}" }{{ /if }} {{ if type == "contact" }}{ "t" : "ct", "v" : "{{ text | sanitize }}", "n" : "{{ name | sanitize }}", "id" : "{{ id }}" }{{ /if }} {{ if type == "events" }}{ "t" : "e", "v": [{{ entries }}"{{ id }}"{{ if !last }},{{ /if }}{{ /entries }}] }{{ /if }} {{ if !last }},{{ /if }} {{ /content }}] }{{ if !last }},{{ /if }} {{ /collection }} ]