@@ -2,7 +2,7 @@ BEGIN:VCARD
2
2
VERSION:4.0
3
3
FN;CHARSET=UTF-8:{{ profiel.getNaam (' volledig' ) }}
4
4
N;CHARSET=UTF-8:{{ (profiel .tussenvoegsel ? profiel .tussenvoegsel ~ ' ' : ' ' ) ~ profiel .achternaam }};{{ profiel .voornaam }};;;
5
- {% if profiel | is_zichtbaar(' nickname' ) -%}
5
+ {% if profiel | is_zichtbaar(' nickname' ) and profiel . nickname is defined and profiel . nickname is not null -%}
6
6
NICKNAME;CHARSET=UTF-8:{{ profiel .nickname }}
7
7
{% endif %}
8
8
{% if profiel | is_zichtbaar(' geslacht' ) -%}
@@ -12,19 +12,23 @@ UID;CHARSET=UTF-8:{{ profiel.uid }}
12
12
{% if profiel | is_zichtbaar(' gebdatum' ) -%}
13
13
BDAY:{{ profiel .gebdatum | date (' Ymd' ) }}
14
14
{% endif %}
15
- {% if profiel | is_zichtbaar(' email' ) -%}
15
+ {% if profiel | is_zichtbaar(' email' ) and profiel . email is defined and profiel . email is not null -%}
16
16
EMAIL;CHARSET=UTF-8;type=HOME,INTERNET:{{ profiel .email }}
17
17
{% endif %}
18
- {% if profiel | is_zichtbaar(' profielfoto' , ' intern' ) -%}
18
+ {% if profiel | is_zichtbaar(' profielfoto' , ' intern' ) and profiel . pasfotoInternalPath is defined and profiel . pasfotoInternalPath is not null -%}
19
19
PHOTO;ENCODING=BASE64;TYPE=JPEG:{{ profiel .pasfotoInternalPath | file_base64 }}
20
20
{% endif %}
21
- {% if profiel | is_zichtbaar(' mobiel' ) -%}
21
+ {% if profiel | is_zichtbaar(' mobiel' ) and profiel . mobiel is defined and profiel . mobiel is not null -%}
22
22
TEL;TYPE=CELL:{{ profiel .mobiel }}
23
23
{% endif %}
24
- {% if profiel | is_zichtbaar(' telefoon' ) -%}
24
+ {% if profiel | is_zichtbaar(' telefoon' ) and profiel . telefoon is defined and profiel . telefoon is not null -%}
25
25
TEL;TYPE=HOME,VOICE:{{ profiel .telefoon }}
26
26
{% endif %}
27
- {% if profiel | is_zichtbaar([' adres' , ' woonplaats' , ' postcode' , ' land' ]) -%}
27
+ {% if profiel | is_zichtbaar([' adres' , ' woonplaats' , ' postcode' , ' land' ])
28
+ and profiel .adres is defined and profiel .adres is not null
29
+ and profiel .woonplaats is defined and profiel .woonplaats is not null
30
+ and profiel .postcode is defined and profiel .postcode is not null
31
+ and profiel .land is defined and profiel .land is not null -%}
28
32
ADR;CHARSET=UTF-8;TYPE=HOME:;;{{ profiel .adres }};{{ profiel .woonplaats }};;{{ profiel .postcode }};{{ profiel .land }}
29
33
{% endif %}
30
34
REV:{{ date ().format(' c' ) }}
0 commit comments