X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fcore%2Fvcard.tpl;fp=templates%2Fcore%2Fvcard.tpl;h=0000000000000000000000000000000000000000;hb=f036c8966e64d9f2bb3923bbeb278353bc7e1083;hp=1304624bc0270208f3bd890749b1f00dcb2803a9;hpb=afc337ee1f2b5918b7e2c1cfe7b981bc76b70eec;p=platal.git diff --git a/templates/core/vcard.tpl b/templates/core/vcard.tpl deleted file mode 100644 index 1304624..0000000 --- a/templates/core/vcard.tpl +++ /dev/null @@ -1,99 +0,0 @@ -{**************************************************************************} -{* *} -{* Copyright (C) 2003-2011 Polytechnique.org *} -{* http://opensource.polytechnique.org/ *} -{* *} -{* This program is free software; you can redistribute it and/or modify *} -{* it under the terms of the GNU General Public License as published by *} -{* the Free Software Foundation; either version 2 of the License, or *} -{* (at your option) any later version. *} -{* *} -{* This program is distributed in the hope that it will be useful, *} -{* but WITHOUT ANY WARRANTY; without even the implied warranty of *} -{* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *} -{* GNU General Public License for more details. *} -{* *} -{* You should have received a copy of the GNU General Public License *} -{* along with this program; if not, write to the Free Software *} -{* Foundation, Inc., *} -{* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA *} -{* *} -{**************************************************************************} -{iterate from=$users item=vcard} -BEGIN:VCARD -VERSION:3.0 -{if $vcard.nom_usage} -FN:{$vcard.prenom|vcard_enc} {$vcard.nom_usage|vcard_enc} ({$vcard.nom|vcard_enc}) -{else} -FN:{$vcard.prenom|vcard_enc} {$vcard.nom|vcard_enc} -{/if} -N:{$vcard.nom|vcard_enc};{$vcard.prenom|vcard_enc};{$vcard.nom_usage|vcard_enc};; -{if $vcard.nickname} -NICKNAME:{$vcard.nickname|vcard_enc} -{/if} -EMAIL;TYPE=internet,pref:{$vcard.bestalias}@{#globals.mail.domain#} -EMAIL;TYPE=internet:{$vcard.bestalias}@{#globals.mail.domain2#} -{if $vcard.bestalias neq $vcard.forlife} -EMAIL;TYPE=internet:{$vcard.forlife}@{#globals.mail.domain#} -EMAIL;TYPE=internet:{$vcard.forlife}@{#globals.mail.domain2#} -{/if} -{if $vcard.virtualalias} -EMAIL;TYPE=internet:{$vcard.virtualalias} -{/if} -{if $vcard.tels} -{foreach item=tel from=$vcard.tels} -{if $tel.tel_type eq 'mobile'}TEL;TYPE=cell{else}{if $tel.tel_type eq 'fax'}FAX{else}TEL{/if};TYPE=home{/if}:{$tel.display|vcard_enc} -{/foreach} -{/if} -{if $vcard.adr_pro} -{if $vcard.adr_pro[0].entreprise} -ORG:{$vcard.adr_pro[0].entreprise|vcard_enc} -{/if} -{if $vcard.adr_pro[0].poste} -TITLE:{$vcard.adr_pro[0].poste|vcard_enc} -{/if} -{if $vcard.adr_pro[0].fonction} -ROLE:{$vcard.adr_pro[0].fonction|vcard_enc} -{/if} -{if $vcard.adr_pro[0].tels} -{foreach item=tel from=$vcard.adr_pro[0].tels} -{if $tel.tel_type eq 'mobile'}TEL;TYPE=cell,work{else}{if $tel.tel_type eq 'fax'}FAX{else}TEL{/if};TYPE=work{/if}:{$tel.display|vcard_enc} -{/foreach} -{/if} -ADR;TYPE=work:{format_adr adr=$vcard.adr_pro[0]} -{/if} -{foreach item=adr from=$vcard.adr} -ADR;TYPE=home{if $adr.courier},postal{/if}:{format_adr adr=$adr} -{if $adr.tels} -{foreach item=tel from=$adr.tels} -{if $tel.tel_type eq 'mobile'}TEL;TYPE=cell,home{else}{if $tel.tel_type eq 'fax'}FAX{else}TEL{/if};TYPE=home{/if}:{$tel.display|vcard_enc} -{/foreach} -{/if} -{/foreach} -{foreach from=$vcard.networking item=nw} -{if $nw.filter eq 'web'} -URL:{$nw.address} -{/if} -{/foreach} -{if strlen(trim($vcard.freetext)) == 0} -NOTE:(X{$vcard.promo}) -{else} -NOTE:(X{$vcard.promo})\n{$vcard.freetext|miniwiki:'no_title':'text'|vcard_enc} -{/if} -{if $vcard.section} -X-SECTION:{$vcard.section} -{/if} -{if $vcard.binets_vcardjoin} -X-BINETS:{$vcard.binets_vcardjoin} -{/if} -{if $vcard.gpxs_vcardjoin} -X-GROUPS:{$vcard.gpxs_vcardjoin} -{/if} -{if $vcard.photo} -PHOTO;ENCODING=b;TYPE={$vcard.photo.attachmime}:{$vcard.photo.attach|base64_encode|vcard_enc} -{/if} -SORT-STRING:{$vcard.nom|vcard_enc} -REV:{$vcard.date|date_format:"%Y%m%dT000000Z"} -END:VCARD{"\n"} -{/iterate} -{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}