X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=ea76a362652acc2ddc7509ffce5910b76a4e1fec;hb=22771578c2d44fe4488546116a84e1561f083ed7;hp=823f592b2f92e8706fe1663c0bbb9dbd3c5f4e44;hpb=e50f74d50fb29c50325120aec408611c9407c6d9;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 823f592..ea76a36 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -41,13 +41,12 @@ $($.closeOnEsc); //]]> {/literal} -
{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 && $view->isVisible(#Visibility::EXPORT_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 +54,7 @@ $($.closeOnEsc); {if $binets|@count}
Binet{if count($binets) > 1}s{/if} : {', '|implode:$profile->getBinetsNames()}
{/if} - {if $owner && $view eq 'private'} + {if $owner && $view->isVisible(#Visibility::EXPORT_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 +67,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 +91,7 @@ $($.closeOnEsc);
{if $profile->isFemale()}•{/if} - {if $view eq 'private'}{$profile->private_name}{else}{$profile->public_name}{/if} + {if $view->isVisible(#Visibility::EXPORT_PRIVATE#)}{$profile->private_name}{else}{$profile->public_name}{/if} {if $logged}  {if !$profile->isDead()}{* @@ -122,7 +120,7 @@ $($.closeOnEsc); {/if}
- {if $logged && $view eq 'private' && $owner && $owner->state eq 'active'} + {if $logged && $view->isVisible(#Visibility::EXPORT_AX#) && $owner && $owner->state eq 'active'}
Fiche mise à jour
le {$profile->last_change|date_format} @@ -131,9 +129,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 && $view->isVisible(#Visibility::EXPORT_AX#)) || count($phones) > 0}
- {if $logged && $view eq 'private'} + {if $logged && $view->isVisible(#Visibility::EXPORT_AX#)} {/if} - {if $view eq 'public'} + {if $view->level() eq #Visibility::VIEW_PUBLIC#}
Cette fiche est publique et visible par tout internaute,
vous pouvez aussi voir celle réservée aux X.
- {elseif $view eq 'ax'} + {elseif $view->level() eq #Visibility::VIEW_AX#}
Cette fiche est privée et ne recense que les informations transmises à l'AX.