{**************************************************************************} {* *} {* Copyright (C) 2003-2010 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 *} {* *} {**************************************************************************} {assign var=dead value=$profile->deathdate} {if $smarty.session.auth ge AUTH_COOKIE} {assign var=withAuth value=true} {assign var=user value=$profile->owner()} {if $user == null} {assign var=hasowner value=false} {assign var=registered value=false} {else} {assign var=hasowner value=true} {if $user->state neq 'pending'} {assign var=registered value=true} {else} {assign var=registered value=false} {/if} {/if} {else} {* Without auth, all profiles appear as registered and with owner *} {assign var=hasowner value=true} {assign var=registered value=true} {assign var=withAuth value=false} {/if}
{if $profile->isFemale()}•{/if} {if !$dead && $registered}{/if} {$profile->full_name} {if !$dead && $registered}{/if}
{foreach from=$profile->nationalities() item=nat} {$nat}  {/foreach} {$profile->promo()}{* *}{if $dead}, {"décédé"|sex:"décédée":$profile} le {$profile->deathdate|date_format}{/if} {if $withAuth} {if $registered || (!$dead && $hasowner)} {if !$registered && !$dead && $hasowner} {if !$smarty.session.user->isWatchedUser($profile)} {* *}{icon name=add title="Ajouter à la liste de mes surveillances"} {else} {* *}{icon name=cross title="Retirer de la liste de mes surveillances"} {/if} {elseif $registered} {if !$dead} {* *}{icon name=vcard title="Afficher la carte de visite"} {if !$smarty.session.user->isContact($profile)} {* *}{icon name=add title="Ajouter à mes contacts"} {else} {* *}{icon name=cross title="Retirer de mes contacts"} {/if} {/if} {/if} {/if} {/if}
{if !$dead} {assign var=address value=$profile->getMainAddress()} {if $profile->mobile || ($address && $address->country)} {if $address && $address->country} {/if} {if $profile->mobile && !$dead} {/if}
Géographie : {if $address->locality}{$address->locality}, {/if}{$address->country}
Mobile : {$profile->mobile}
{/if} {/if}
{* vim:set et sw=2 sts=2 sws=2 enc=utf-8: *}