- {if $smarty.session.auth ge AUTH_COOKIE}
+ {if $withAuth}
-
![{$c.prenom} {$c.nom}](photo/{$c.hruid})
+
{/if}
- {if $c.sexe}•{/if}
- {if !$c.dcd && ($c.inscrit || $smarty.session.auth eq AUTH_PUBLIC)}{/if}
+ {if $profile->isFemale()}•{/if}
+ {if !$dead && $registered}{/if}
-
- {if $c.iso3166}
-
![{$c.nat} {$c.nat}](images/flags/{$c.iso3166}.gif)
- {/if}
- X {$c.promo}{if $c.app0text}, {applis_fmt type=$c.app0type text=$c.app0text url=$c.app0url}{*
- *}{/if}{if $c.app1text}, {applis_fmt type=$c.app1type text=$c.app1text url=$c.app1url}{/if}{*
- *}{if $c.dcd}, décédé{if $c.sexe}e{/if} le {$c.deces|date_format}{/if}
+
+ {foreach from=$profile->nationalities() item=country key=code}
+
![{$country} {$code}](images/flags/{$code}.gif)
+ {/foreach}
+ {$profile->promo()}{*
+ *}{foreach from=$profile->getExtraEducations(4) item=edu}, {display_education edu=$edu profile=$profile full=false}{/foreach}{*
+ *}{if $dead}, {"décédé"|sex:"décédée":$profile} le {$profile->deathdate|date_format}{/if}
- {if $smarty.session.auth ge AUTH_COOKIE}
+ {if $withAuth}
+ {if $registered || (!$dead && $hasowner)}
+ {/if}
- {if hasPerm('admin')}
+ {if hasPerm('admin') && $hasowner}
{/if}
@@ -91,58 +117,59 @@
{/if}
- {if $c.wasinscrit || !$c.dcd}
- {if $c.web || $c.mobile || $c.countrytxt || $c.city || $c.region || $c.entreprise || $c.freetext || (!$c.dcd && !$c.actif )}
+ {if !$dead}
+ {assign var=address value=$profile->getMainAddress()}
+ {assign var=web value=$profile->getWebSite()}
+ {assign var=job value=$profile->getMainJob()}
+ {if $web || $profile->mobile || ($address && $address->country) || $job || !$registered || $user->lost}
- {if $c.web}
+ {if $web}
- Page web : |
- {$c.web} |
+ {$web.name} : |
+ {$web.address} |
{/if}
- {if $c.countrytxt || $c.city}
+ {if $address && $address->country}
Géographie : |
- {$c.city}{if $c.city && $c.countrytxt}, {/if}{$c.countrytxt} |
+ {if $address->locality}{$address->locality}, {/if}{$address->country} |
{/if}
- {if $c.mobile && !$c.dcd}
+ {if $profile->mobile && !$dead}
Mobile : |
- {$c.mobile} |
+ {$profile->mobile} |
{/if}
- {if $c.entreprise}
+ {if $job}
Profession : |
- {$c.entreprise} {if $c.secteur}({$c.secteur}){/if}
- {if $c.fonction} {$c.fonction}{/if}
+ {if $job->company->url|default:$job->user_site}{$job->company->name}{else}{$job->company->name}{/if}
+ {if $job->subsubsector} ({$job->subsubsector}){/if}{if $job->description} {$job->description}{/if}
|
{/if}
- {if $c.freetext}
+ {if $withAuth}
+ {if !$registered && $hasowner}
- Commentaire : |
- {$c.freetext|nl2br} |
+
+ {"Ce"|sex:"Cette":$profile} camarade n'est pas {"inscrit"|sex:"inscrite":$profile}.
+
+ |
- {/if}
- {if !$c.dcd && (!$c.actif || !$c.wasinscrit) && $smarty.session.auth ge AUTH_COOKIE}
+ {elseif $user->state neq 'disabled' && $user->lost}
- {if !$c.wasinscrit}
- Ce{if $c.sexe}tte{/if} camarade n'est pas inscrit{if $c.sexe}e{/if}.
-
- {elseif !$c.actif}
- Ce{if $c.sexe}tte{/if} camarade n'a plus d'adresse de redirection valide.
-
+ {"Ce"|sex:"Cette":$profile} camarade n'a plus d'adresse de redirection valide.
+
Si tu en connais une, n'hésite pas à nous la transmettre.
- {/if}
|
{/if}
+ {/if}
{/if}
{/if}