{% set qr_type = qr_type | default('url') %} {% set qr_label = qr_label | default('') %} {% set type_data = type_data | default({}) %} {% set footer_name = footer_name | default('') %} {% set footer_url = footer_url | default('') %} {# ═══════════════════════════════════════════════════════════ URL / PDF — auto-redirect (spinner only) ═══════════════════════════════════════════════════════════ #} {% if qr_type in ('url', 'pdf') %}
{% if qr_type == 'pdf' %} {% else %} {% endif %}
{% if qr_label %}
{{ qr_label }}
{% endif %}

Taking you to your destination…

Requesting location…
{% else %} {# ── GPS collecting mini-card ── #}
Collecting anonymous scan data…
{# ═══════════════════════════════════════ vCard ═══════════════════════════════════════ #} {% if qr_type == 'vcard' %}
{% set initials = '' %} {% if type_data.name %} {% set parts = type_data.name.split(' ') %} {% if parts | length >= 2 %} {% set initials = (parts[0][0] ~ parts[-1][0]) | upper %} {% else %} {% set initials = parts[0][0:2] | upper %} {% endif %} {% else %} {% set initials = 'QR' %} {% endif %}
{{ initials }}
{{ type_data.name or 'Contact' }}
{% if type_data.title or type_data.org %}

{% if type_data.title %}{{ type_data.title }}{% endif %}{% if type_data.title and type_data.org %} · {% endif %}{% if type_data.org %}{{ type_data.org }}{% endif %}

{% endif %}
{% if type_data.phone %} Phone {{ type_data.phone }} {% endif %} {% if type_data.email %} Email {{ type_data.email }} {% endif %} {% if type_data.website %} Website {{ type_data.website }} {% endif %} {% if type_data.address %}
Address {{ type_data.address | replace(';', ', ') }}
{% endif %}
{# ═══════════════════════════════════════ Text ═══════════════════════════════════════ #} {% elif qr_type == 'text' %}
{{ qr_label or 'Text' }}
{{ type_data.text or '' }}
Copied to clipboard
{# ═══════════════════════════════════════ SMS ═══════════════════════════════════════ #} {% elif qr_type == 'sms' %}
{{ qr_label or 'SMS Message' }}
To {{ type_data.phone or '' }}
{% if type_data.body %}
You will send
{{ type_data.body }}
{% else %}

(No message body pre-filled)

{% endif %} Open SMS
{# ═══════════════════════════════════════ Email ═══════════════════════════════════════ #} {% elif qr_type == 'email' %}
{{ qr_label or 'Email' }}
To {{ type_data.to or '' }}
{% if type_data.subject %}
Subject {{ type_data.subject }}
{% endif %} {% if type_data.body %}
Message
{{ type_data.body }}
{% endif %}
{% set mailto_href = 'mailto:' ~ (type_data.to or '') %} {% set params = [] %} {% if type_data.subject %}{% set params = params + ['subject=' ~ (type_data.subject | urlencode)] %}{% endif %} {% if type_data.body %}{% set params = params + ['body=' ~ (type_data.body | urlencode)] %}{% endif %} {% set mailto_href = mailto_href ~ ('?' ~ params | join('&') if params else '') %} Send Email
{# ═══════════════════════════════════════ Phone ═══════════════════════════════════════ #} {% elif qr_type == 'phone' %}
{% if qr_label %}
{{ qr_label }}
{% endif %}
Phone number
{{ type_data.number or '' }}
Call Now
{# ═══════════════════════════════════════ Multi-URL ═══════════════════════════════════════ #} {% elif qr_type == 'multi_url' %}
{% if qr_label %}
{{ qr_label }}

Choose a link below

{% endif %}
{% for item in type_data.url_list %} {% set item_url = item.url if item is mapping else item %} {% set item_title = item.title if item is mapping else '' %} {% else %}

No links configured.

{% endfor %}
{# ═══════════════════════════════════════ App ═══════════════════════════════════════ #} {% elif qr_type == 'app' %}
{{ qr_label or 'Download App' }}

Available on the following platforms

{% if type_data.ios %}
iOS App Store
{% endif %} {% if type_data.android %}
Android Google Play
{% endif %}
{% if type_data.ios %} Open on App Store {% endif %} {% if type_data.android %} Open on Google Play {% endif %}
{# ═══════════════════════════════════════ Fallback ═══════════════════════════════════════ #} {% else %}
{{ qr_label or 'QR Code' }}

Tap the button below to continue.

Open Link
{% endif %} {% endif %}{# end url/pdf split #} {# ── Footer ── #} {% if footer_name or footer_url %} {% endif %}