X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=759bff1f36f318808577fd7302f86fdcdf6cb383;hb=28c20b86be8b40cecba0d83080879f81c49e07ad;hp=0525acd0eadb00f71a129757422a9a09fe92ef08;hpb=dc953a0c9234074471ece73cce091ed1dd02d70f;p=platal.git
diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl
index 0525acd..759bff1 100644
--- a/templates/profile/profile.tpl
+++ b/templates/profile/profile.tpl
@@ -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}
@@ -181,10 +182,10 @@ function chgMainWinLoc(strPage)
{if $corps && ($corps->current || $corps->original)}
{if $corps->current}
- - Corps actuel : {$corps->current_name} {$corps->current_rank}
+
- Corps actuel : {$corps->current_name} {$corps->current_rank}
{/if}
{if $corps->original}
- - Corps d'origine : {$corps->original_name}
+
- Corps d'origine : {$corps->original_name}
{/if}
{/if}
@@ -229,13 +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()}
{if $job->address()}
- {include file="geoloc/address.tpl" address=$job->address() titre="Adresse : " for=$job->company->name pos="left"}
- {elseif $job->company->address}
- {include file="geoloc/address.tpl" address=$job->company->address titre="Addresse : " for=$job->company->name pos="left"}
- {/if}
- {if $job->phones()}
- {display_phones tels=$job->phones()}
+ {include file="geoloc/address.tpl" address=$job->address() titre="Adresse : " for=$job->company->name pos="left" phones=$phones}
+ {elseif $phones}
+ {display_phones tels=$phones}
{/if}
{/foreach}