X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=templates%2Fprofile%2Fprofile.tpl;h=926f8079bdecb5f7f4e175bf89555bbfb0ead9a4;hb=da40b2a4216f093da983f3ec6f7d9e9cf9497e2d;hp=e1e8210a0708d5638bfedddf1b4148bb5acd93e7;hpb=98d7a2d3ee35bbd3cf9891d4db60a6b262e8d798;p=platal.git diff --git a/templates/profile/profile.tpl b/templates/profile/profile.tpl index e1e8210..926f807 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} @@ -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 $view eq 'private'}{$profile->private_name}{else}{$profile->public_name}{/if} {if $logged}  {if !$profile->isDead()}{* @@ -154,11 +152,13 @@ function chgMainWinLoc(strPage) {/if}
+ {else} +
{/if}
- {foreach from=$profile->nationalities() item=nat} - {$nat}  + {foreach from=$profile->nationalities() item=country key=code} + {$code}  {/foreach} {$profile->promo()} @@ -172,21 +172,24 @@ function chgMainWinLoc(strPage)  - Formation :
    {foreach from=$educations item=edu} -
  • {display_education edu=$edu profile=$profile}
  • +
  • {display_education edu=$edu profile=$profile full=true}
  • {/foreach}
{/if} {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 +212,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 +232,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}