X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=13004b4585bc8d85d2f26147df711189701c1485;hb=79270914e952308fb164792b4c1b0879a23ce5d1;hp=c5a2517b686aed5f8f4e04237d017a5d1283f25d;hpb=d82359a556779137f8a90d0312b3098a2db6f482;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index c5a2517..13004b4 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -47,7 +47,7 @@ $($.closeOnEsc); {assign var=photo value=$profile->getPhoto(false)} {if $photo}Photo de {$profile->fullName()}{/if} - {if $logged && $view eq 'private' && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups(true,true)|smarty:nodefaults))} + {if $logged && $profile->isVisible(#ProfileVisibility::VIS_AX#) && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups(true,true)|smarty:nodefaults))}

À l'X…

{if $profile->section}
Section : {$profile->section}
{/if} @@ -55,7 +55,7 @@ $($.closeOnEsc); {if $binets|@count}
Binet{if count($binets) > 1}s{/if} : {', '|implode:$profile->getBinetsNames()}
{/if} - {if $owner && $view eq 'private'} + {if $owner && $profile->isVisible(#ProfileVisibility::VIS_AX#)} {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 :
@@ -68,8 +68,7 @@ $($.closeOnEsc); {/if} - {* 458752 stands for 0x70000 = Profile::NETWORKING_ALL *} - {assign var=networking value=$profile->getNetworking(458752)} + {assign var=networking value=$profile->getNetworking(#Profile::NETWORKING_ALL#)} {if count($networking) > 0}

Sur le web...

{foreach from=$networking item=network} @@ -93,7 +92,7 @@ $($.closeOnEsc);
{if $profile->isFemale()}•{/if} - {if $view eq 'private'}{$profile->private_name}{else}{$profile->public_name}{/if} + {if $profile->isVisible(#ProfileVisibility::VIS_PRIVATE#)}{$profile->private_name}{else}{$profile->public_name}{/if} {if $logged}  {if !$profile->isDead()}{* @@ -122,7 +121,7 @@ $($.closeOnEsc); {/if}
- {if $logged && $view eq 'private'} + {if $logged && $profile->isVisible(#ProfileVisibility::VIS_AX#) && $owner && $owner->state eq 'active'}
Fiche mise à jour
le {$profile->last_change|date_format} @@ -131,9 +130,9 @@ $($.closeOnEsc); {* 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 ($logged && $profile->isVisible(#ProfileVisibility::VIS_AX#)) || count($phones) > 0}
- {if $logged && $view eq 'private'} + {if $logged && $profile->isVisible(#ProfileVisibility::VIS_AX#)}