{# Template Multi-Cartes — Hub avec Slider V2 Navigation : swipe tactile (mobile/tablette) + flèches latérales (desktop) + dots Variables : - beneficiaires : array of Beneficiaire - themes : array of theme arrays (indexed by beneficiaire id) - logoFiles : array of logo filenames (indexed by beneficiaire id) - entreprise : nom de l'entreprise principale #} {% set nbSlides = beneficiaires|length %} {# ═══ Apple iOS PWA ═══ #} {{ entreprise ?: 'NUM-ECARD' }} — Multi-Cartes {# ===== FLÈCHES DESKTOP ===== #}
{# ===== SLIDER CONTAINER ===== #}
{% for b in beneficiaires %} {% set t = themes[b.id] %} {% set fullName = ((b.prenom ?? '') ~ ' ' ~ (b.nom ?? ''))|trim %} {% set bEntreprise = b.entreprise ?? '' %} {% set fonction = b.fonction ?? '' %} {% set mobile = b.mobile ?? '' %} {% set fixe = b.fixe ?? '' %} {% set bEmail = b.email ?? '' %} {% set siteWeb = b.siteWeb ?? '' %} {% set adresse = b.adresse ?? '' %} {% set slogan = b.slogan ?? '' %} {% set linkedin = b.linkedin ?? '' %} {% set facebook = b.facebook ?? '' %} {% set youtube = b.youtube ?? '' %} {% set tiktok = b.tiktok ?? '' %} {% set insta = b.insta ?? '' %} {% set xTwitter = b.x ?? '' %} {% set threads = b.threads ?? '' %} {% set zoom = b.zoom ?? '' %} {% set googleMeet = b.googleMeet ?? '' %} {% set microsoftTeams = b.microsoftTeams ?? '' %} {% set service1 = b.service1 ?? '' %} {% set service2 = b.service2 ?? '' %} {% set service3 = b.service3 ?? '' %} {% set service4 = b.service4 ?? '' %} {% set hasServices = service1 or service2 or service3 or service4 %} {% set hasSocials = linkedin or facebook or youtube or tiktok or insta or xTwitter or threads %} {% set isPremium = true %} {% set logoFile = logoFiles[b.id]|default(null) %} {% set vcardData = 'BEGIN:VCARD\nVERSION:3.0\nN:' ~ (b.nom ?? '') ~ ';' ~ (b.prenom ?? '') ~ ';;;\nFN:' ~ fullName ~ '\n' %} {% if bEntreprise %}{% set vcardData = vcardData ~ 'ORG:' ~ bEntreprise ~ '\n' %}{% endif %} {% if fonction %}{% set vcardData = vcardData ~ 'TITLE:' ~ fonction ~ '\n' %}{% endif %} {% if mobile %}{% set vcardData = vcardData ~ 'TEL;TYPE=CELL,VOICE:' ~ mobile ~ '\n' %}{% endif %} {% if fixe %}{% set vcardData = vcardData ~ 'TEL;TYPE=WORK,VOICE:' ~ fixe ~ '\n' %}{% endif %} {% if bEmail %}{% set vcardData = vcardData ~ 'EMAIL;TYPE=WORK:' ~ bEmail ~ '\n' %}{% endif %} {% if siteWeb %}{% set vcardData = vcardData ~ 'URL:' ~ siteWeb ~ '\n' %}{% endif %} {% if adresse %}{% set vcardData = vcardData ~ 'ADR;TYPE=WORK:;;' ~ adresse ~ '\n' %}{% endif %} {% set vcardData = vcardData ~ 'END:VCARD' %} {# ===== SLIDE ===== #}
{# HEADER #}
{% if logoFile %} {% else %} {# Pas de logo → initiales nom/prénom dans un cercle aux couleurs du thème #} {% set initialesNP = (b.prenom ?? '')|slice(0,1)|upper ~ (b.nom ?? '')|slice(0,1)|upper %} {% endif %}
{{ bEntreprise ?: 'NUM-ECARD' }}
{% if slogan %}
{{ slogan }}
{% elseif bEntreprise %} {# Pas de slogan mais entreprise → initiales entreprise #} {% set mots = bEntreprise|split(' ') %} {% set initialesE = '' %} {% for mot in mots %} {% if mot|length > 0 %} {% set initialesE = initialesE ~ mot|slice(0,1)|upper %} {% endif %} {% endfor %}
{{ initialesE }}
{% endif %}
{# PROFILE #}
{{ fullName }}
{% if fonction %}
{{ fonction }}
{% endif %}
{# CONTACT BUTTONS #}
{% if mobile %} Mobile ({{ mobile }}) {% endif %} {% if fixe %} Fixe ({{ fixe }}) {% endif %} {% if bEmail %} {{ bEmail }} {% endif %} Ajouter aux contacts
{# STATS #} {% if b.expertise is defined and b.expertise or b.seances is defined and b.seances or b.satisfaction is defined and b.satisfaction %}
{% if b.expertise is defined and b.expertise %}
{{ b.expertise }}
ans d'exp.
{% endif %} {% if b.seances is defined and b.seances %}
{{ b.seances }}
réalisations
{% endif %} {% if b.satisfaction is defined and b.satisfaction %}
{{ b.satisfaction }}%
satisfaction
{% endif %}
{% endif %} {# SERVICES #} {% if hasServices %}

Nos services

{% if service1 %}{{ service1 }}{% endif %} {% if service2 %}{{ service2 }}{% endif %} {% if service3 %}{{ service3 }}{% endif %} {% if service4 %}{{ service4 }}{% endif %}
{% endif %} {# ADDRESS #} {% if adresse %} {% endif %} {# SOCIAL #} {% if hasSocials %} {% endif %} {# VISIOCONFÉRENCE #} {% if zoom or googleMeet or microsoftTeams %} {% endif %} {# SHARE #} {# ===== PUSH NOTIFICATIONS ===== #}
{# ===== FIN PUSH ===== #} {# CTA NUM-ECARD #}
🚀

Vous aussi, passez au digital !

Fini le gaspillage de cartes papier !
Une carte permanente, toujours à jour, partageable à l'infini.
À partir de 199€ • ROI immédiat

⚡ Commander votre carte
{# SITE WEB #} {% if siteWeb %} {% endif %}
{# END SLIDE #} {% endfor %}
{# ===== SLIDER DOTS ===== #} {% if nbSlides > 1 %}
{% for b in beneficiaires %}
{% endfor %}
← glisser pour changer de carte →
{% endif %}
✅ Lien copié !
{# ===== PWA INSTALL ===== #}