X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=63efbf6bdd068079c7137ac5bfc95f3788493893;hb=8dda254648e0ebf8ba0e6a7b2d58acff730ada2c;hp=79abc503c1ec97a34ee6219f05fa8d351843ffd4;hpb=09e54905d120cbd7cc885d0b1f6c0c464eaf1f82;p=platal.git
diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl
index 79abc50..63efbf6 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}
@@ -154,8 +155,8 @@ function chgMainWinLoc(strPage)
{/if}
@@ -206,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}
@@ -226,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}