X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=6128b541ddccc6048cfd36dc6522c20931c32425;hb=3eecf0af78053b349c716279ae0ba00a2af5fdb0;hp=0694db38a0f3b6f7a0765d055e9f8678633631ad;hpb=b11cf21e6583592e9c38b3d0a217f425d539cfab;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index 0694db3..6128b54 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -1,6 +1,6 @@ {**************************************************************************} {* *} -{* Copyright (C) 2003-2008 Polytechnique.org *} +{* Copyright (C) 2003-2009 Polytechnique.org *} {* http://opensource.polytechnique.org/ *} {* *} {* This program is free software; you can redistribute it and/or modify *} @@ -41,7 +41,7 @@ function chgMainWinLoc(strPage)
- {if $photo_url}Photo de {$x.forlife}{/if} + {if $photo_url}Photo de {$user->login()}{/if} {if $logged && ( $x.section|smarty:nodefaults || $x.binets_join|smarty:nodefaults || $x.gpxs_join|smarty:nodefaults)}

À l'X...

{if $x.section}
Section : {$x.section}
{/if} @@ -57,27 +57,27 @@ function chgMainWinLoc(strPage)
- {if $x.sexe}•{/if} - {$x.prenom} {if $x.nom_usage eq ""}{$x.nom}{else}{$x.nom_usage} ({$x.nom}){/if} + {if $user->isFemale()}•{/if} + {$user->fullName()}{if $x.nom_usage neq ""} ({$x.nom}){/if} {if $logged} {if $x.nickname} (alias {$x.nickname}){/if} {/if} {if $x.web} {icon name="world_go" title="Site Web"}{/if} {if $logged} -  {if !$x.dcd}{* +  {if !$x.dcd}{* *}{icon name=vcard title="Afficher la carte de visite"}{/if} {if !$x.is_contact} - + {icon name=add title="Ajouter à mes contacts"} {else} - + {icon name=cross title="Retirer de mes contacts"} {/if} {if hasPerm('admin')} - + {icon name=wrench title="administrer user"} {/if} - {if $x.forlife eq $smarty.session.forlife} + {if $user->login() eq $smarty.session.hruid} {icon name="user_edit" title="Modifier ma fiche"} {/if} {/if} @@ -93,27 +93,27 @@ function chgMainWinLoc(strPage) {if $logged} {/if} {if $x.mobile}
- Mobile : {$x.mobile} + {if $x.dcd}Dernier m{else}M{/if}obile : {$x.mobile}
{/if}
@@ -123,21 +123,26 @@ function chgMainWinLoc(strPage) {if $x.iso3166} {$x.nationalite}  {/if} - X {$x.promo} - {if ($x.promo_sortie-3 > $x.promo)} + X {$user->promo()} + {if $x.promo_sortie && ($x.promo_sortie-3 > $x.promo)} - X {math equation="a-b" a=$x.promo_sortie b=3} {/if} {if $x.applis_join}  - Formation : {$x.applis_join|smarty:nodefaults} {/if} {if $logged && $x.is_referent} - [Ma fiche référent] + [Ma fiche référent] {/if}
{if $x.adr}

Contact :

+ {if $x.dcd} + {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} {assign var=pos value="right"} @@ -145,13 +150,13 @@ function chgMainWinLoc(strPage) {assign var=pos value="left"} {/if} {if $address.active} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Mon adresse actuelle :" + {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} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse secondaire :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" secondaire :" for="`$x.prenom` `$x.nom`" pos=$pos} {else} - {include file="geoloc/address.tpl" address=$address titre_div=true titre="Adresse principale :" + {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" principale :" for="`$x.prenom` `$x.nom`" pos=$pos} {/if} {if $smarty.foreach.adresses.iteration is even}
{/if} @@ -193,7 +198,7 @@ function chgMainWinLoc(strPage)
Cette fiche est publique et visible par tout internaute,
- vous pouvez aussi voir celle réservée aux X. + vous pouvez aussi voir celle réservée aux X.
{elseif $view eq 'ax'}