- {if $photo_url}
![Photo de {$user->login()}]({$photo_url})
{/if}
- {if $logged && ( $x.section|smarty:nodefaults || $x.binets_join|smarty:nodefaults || $x.gpxs_join|smarty:nodefaults)}
+ {assign var=photo value=$profile->getPhoto(false)}
+ {if $photo}
![Photo de {$profile->fullName()}](photo/{$profile->hrid()}{if $with_pending_pic}/req{/if})
{/if}
+
+ {if $logged && $view eq 'private' && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups(true,true)|smarty:nodefaults))}
à l'X…
- {if $x.section}
Section : {$x.section}
{/if}
- {if $x.binets_join}
Binet{if count($x.binets) > 1}s{/if} :
- {$x.binets_join}
{/if}
- {if $x.gpxs_join}
Groupe{if count($x.gpxs) > 1}s{/if} et institution{if count($x.gpxs) > 1}s{/if} X :
-
{$x.gpxs_join|smarty:nodefaults}
{/if}
+ {if $profile->section}
Section : {$profile->section}
{/if}
+
+ {assign var=binets value=$profile->getBinets()}
+ {if $binets|@count}
Binet{if count($binets) > 1}s{/if} :
+ {', '|implode:$profile->getBinetsNames()}
{/if}
+
+ {if $owner && $view eq 'private'}
+ {assign var=groups value=$owner->groups(true,true)}
+ {if $groups|@count}
Groupe{if count($groups) > 1}s{/if} et institution{if count($groups) > 1}s{/if} X :
+
+ {foreach from=$groups item=group name=groups}
+ {if !$smarty.foreach.groups.first}, {/if}
+ {$group.nom}
+ {/foreach}
+ {/if}
+ {/if}
+
{/if}
- {if $x.freetext}
-
Commentaires :
-
{$x.freetext|miniwiki|smarty:nodefaults}
+
+ {* 458752 stands for 0x70000 = Profile::NETWORKING_ALL *}
+ {assign var=networking value=$profile->getNetworking(458752)}
+ {if count($networking) > 0}
+
Sur le web...
+ {foreach from=$networking item=network}
+
![{$network.name} {$network.name}](profile/networking/{$network.nwid})
+ {if $network.link}
+
{$network.address}
+ {else}
+ {$network.address}
+ {/if}
+
+ {/foreach}
{/if}
+
+ {if $profile->freetext}
+
Commentaires :
+
{$profile->freetext|miniwiki|smarty:nodefaults}
+ {/if}
+
- {if $logged}
+
+ {if $logged && $view eq 'private' && $owner && $owner->state eq 'active'}
Fiche mise à jour
- le {$x.date|date_format}
+ le {$profile->last_change|date_format}
{/if}
- {if $logged || $x.mobile}
+
+ {* 121634816 is Profile::PHONE_LINK_PROFILE | Profile::PHONE_TYPE_ANY = 0x7400000 *}
+ {assign var=phones value=$profile->getPhones(121634816)}
+ {if ($logged && $view eq 'private') || count($phones) > 0}
- {if $x.adr}
+
+ {assign var=addr value=$profile->getAddresses(3)}
+ {if count($addr) > 0}
Contact :
- {if $x.dcd}
+ {if $profile->isDead()}
{assign var=address_name value="Dernière adresse"}
{else}
{assign var=address_name value="Adresse"}
{/if}
- {foreach from=$x.adr item="address" name=adresses}
- {if $smarty.foreach.adresses.iteration is even}
+ {foreach from=$addr item="address" name=addresses}
+ {if $smarty.foreach.addresses.iteration is even}
{assign var=pos value="right"}
{else}
{assign var=pos value="left"}
{/if}
- {if $address.active}
+ {if $address->hasFlag('current')}
{include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" actuelle :"
- for="`$x.prenom` `$x.nom`" pos=$pos}
- {elseif $address.secondaire}
+ for="`$profile->firstname` `$profile->lastname`" pos=$pos phones=null}
+ {elseif $address->hasFlag('secondary')}
{include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" secondaire :"
- for="`$x.prenom` `$x.nom`" pos=$pos}
+ for="`$profile->firstname` `$profile->lastname`" pos=$pos phones=null}
{else}
{include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" principale :"
- for="`$x.prenom` `$x.nom`" pos=$pos}
+ for="`$profile->firstname` `$profile->lastname`" pos=$pos phones=null}
{/if}
- {if $smarty.foreach.adresses.iteration is even}
{/if}
+ {if $smarty.foreach.addresses.iteration is even}
{/if}
{/foreach}
{/if}
- {if $x.adr_pro}
+
+ {assign var=jobs value=$profile->getJobs(2)}
+ {if count($jobs) > 0}
Informations professionnelles :
- {foreach from=$x.adr_pro item="address" key="i"}
+ {foreach from=$jobs item="job" key="i"}
{if $i neq 0}
{/if}
- {include file="include/emploi.tpl" address=$address}
- {include file="geoloc/address.tpl" address=$address titre="Adresse : " for=$address.entreprise pos="left"}
+ {include file="include/emploi.tpl" job=$job}
+ {assign var=jobPhones value=$job->phones()}
+ {if $job->address()}
+ {include file="geoloc/address.tpl" address=$job->address() titre="Adresse : " for=$job->company->name pos="left" phones=$jobPhones}
+ {elseif $jobPhones|@count neq 0}
+ {display_phones tels=$jobPhones}
+ {/if}
{/foreach}
{/if}
- {if $x.medals}
-
-
Distinctions :
- {foreach from=$x.medals item=m}
-
-
![{$m.medal} {$m.medal}](profile/medal/thumb/{$m.id})
-
- {$m.medal}
{$m.grade}
+
+ {assign var=medals value=$profile->getMedals()}
+ {if count($medals) > 0}
+
+
Distinctions :
+ {foreach from=$medals item=m}
+
+
![{$m.text} {$m.text}](profile/medal/thumb/{$m.mid})
+
+ {$m.text}
{$m.grade}
+
+ {/foreach}
+
- {/foreach}
-
-
{/if}
- {if $logged && $x.cv}
+
+ {if $logged && $profile->cv}
Curriculum Vitae :
- {$x.cv|miniwiki:title|smarty:nodefaults}
+ {$profile->cv|miniwiki:title|smarty:nodefaults}
{/if}
+
{if $view eq 'public'}
{elseif $view eq 'ax'}
@@ -208,6 +288,7 @@ function chgMainWinLoc(strPage)
{/if}
+