{# Template de génération de carte de visite digitale PWA Génère un fichier HTML autonome (standalone) avec CSS + JS inline Variables : b (Beneficiaire), theme (array CSS vars), cardType (essentiel|premium|forcevente), slug #} {% set fullName = (b.prenom ?? '') ~ ' ' ~ (b.nom ?? '') %} {% set fullName = fullName|trim %} {% set entreprise = b.entreprise ?? '' %} {% set fonction = b.fonction ?? '' %} {% set mobile = b.mobile ?? '' %} {% set fixe = b.fixe ?? '' %} {% set email = 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 = cardType in ['premium', 'forcevente'] %} {% set isForceVente = cardType == 'forcevente' %} {# vCard data URL #} {% set vcardData = 'BEGIN:VCARD\nVERSION:3.0\nN:' ~ (b.nom ?? '') ~ ';' ~ (b.prenom ?? '') ~ ';;;\nFN:' ~ fullName ~ '\n' %} {% if entreprise %}{% set vcardData = vcardData ~ 'ORG:' ~ entreprise ~ '\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 email %}{% set vcardData = vcardData ~ 'EMAIL;TYPE=WORK:' ~ email ~ '\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' %}
{# ═══ Apple iOS PWA ═══ #}🔒 Les données saisies sont transmises au professionnel titulaire de cette carte à des fins de mise en relation (Art. 6.1.a RGPD — consentement). Vous disposez d'un droit d'accès, de rectification et de suppression. Politique de confidentialité.
Fini le gaspillage de cartes papier !
Une carte permanente, toujours à jour, partageable à l'infini.
À partir de 199€ • ROI immédiat