X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=63efbf6bdd068079c7137ac5bfc95f3788493893;hb=8dda254648e0ebf8ba0e6a7b2d58acff730ada2c;hp=df3cf2c512e7a3ae546dd7877d6d52846c89e0be;hpb=77d4417766e20c5b2b33613f1198893d470ba6b2;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index df3cf2c..63efbf6 100644 --- a/templates/profile/profile.tpl +++ b/templates/profile/profile.tpl @@ -42,7 +42,7 @@ function chgMainWinLoc(strPage)
{assign var=photo value=$profile->getPhoto(false)} - {if $photo}Photo de {$profile->fullName()}{/if} + {if $photo}Photo de {$profile->fullName()}{/if} {if $logged && $view eq 'private' && ( $profile->section|smarty:nodefaults || $profile->getBinets()|smarty:nodefaults || ($owner && $owner->groups()|smarty:nodefaults))}

À l'X…

@@ -62,7 +62,8 @@ function chgMainWinLoc(strPage) {/if} - {assign var=networking value=$profile->getNetworking(0)} + {* 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} @@ -86,10 +87,7 @@ function chgMainWinLoc(strPage)
{if $profile->isFemale()}•{/if} - name_tooltip neq ""}class="hinted" title="{$profile->name_tooltip}"{/if}>{$profile->shortName()} - {if $logged} - {if $profile->nickname} (alias {$profile->nickname}){/if} - {/if} + {if $logged}{$profile->private_name}{else}{$profile->public_name}{/if} {if $logged}  {if !$profile->isDead()}{* @@ -157,8 +155,8 @@ function chgMainWinLoc(strPage) {/if}
- {foreach from=$profile->nationalities() item=nat} - {$nat}  + {foreach from=$profile->nationalities() item=country key=code} + {$code}  {/foreach} {$profile->promo()} @@ -179,14 +177,17 @@ function chgMainWinLoc(strPage) {assign var=corps value=$profile->getCorps()} {if $corps && ($corps->current || $corps->original)} -
    +
      {if $corps->current} -
    • Corps actuel : {$corps->current_name} {$corps->current_rank}
    • +
    • + Corps actuel : {$corps->current_name} + {if $corps->current_rank}({$corps->current_rank}){/if} +
    • {/if} - {if $corps->original} + {if $corps->current != $corps->original && $corps->original}
    • Corps d'origine : {$corps->original_name}
    • {/if} -
    +
{/if}
@@ -209,13 +210,13 @@ function chgMainWinLoc(strPage) {/if} {if $address->hasFlag('current')} {include file="geoloc/address.tpl" address=$address titre_div=true titre=$address_name|@cat:" actuelle :" - for="`$profile->firstname` `$profile->lastname`" pos=$pos} + 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="`$profile->firstname` `$profile->lastname`" 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="`$profile->firstname` `$profile->lastname`" pos=$pos} + for="`$profile->firstname` `$profile->lastname`" pos=$pos phones=null} {/if} {if $smarty.foreach.addresses.iteration is even}
{/if} {/foreach} @@ -229,11 +230,11 @@ function chgMainWinLoc(strPage) {foreach from=$jobs item="job" key="i"} {if $i neq 0}
{/if} {include file="include/emploi.tpl" job=$job} - {assign var=phones value=$job->phones()} + {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=$phones} - {elseif $phones} - {display_phones tels=$phones} + {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}