{* $Id$ *} {title} {if $user ne $userwatch} {tr}Profile picture:{/tr} {$userwatch} {else} {tr}Pick your profile picture{/tr} {/if} {/title} {if $user eq $userwatch} {include file='tiki-mytiki_bar.tpl'} {else}
{assign var=thisuserwatch value=$userwatch|escape} {button href="tiki-user_preferences.php?view_user=$thisuserwatch" class="btn btn-primary" _text="{tr}User Preferences{/tr}"}
{/if}

{if $user eq $userwatch}{tr}Your current profile picture{/tr}{else}{tr}Profile picture{/tr}{/if}

{if $avatar}
{if isset($user_picture_id)}{tr}Thumbnail{/tr}
{/if} {$avatar}
{if isset($user_picture_id)}
{tr}Full size{/tr}
{/if} {else} {tr}no profile picture{/tr} {/if} {if sizeof($avatars) eq 0 and $avatar} {icon name='remove'} {/if} {if sizeof($avatars) > 0} {if $showall eq 'y'}

{if $user eq $userwatch}{tr}Pick user profile picture from the library{/tr}{else}{tr}Pick user profile picture{/tr}{/if} {tr}Hide all{/tr} {$numav} {tr}icons{/tr}

{section name=im loop=$avatars} {/section}
{else} {jq} var avatars = new Array(); {{section name=ix loop=$avatars} avatars[{$smarty.section.ix.index}] = '{$avatars[ix]}'; {if $smarty.section.ix.index eq $yours} {assign var="yours" value=$avatars[ix]} {/if} {/section}} var pepe=1; function addavt() { pepe++; if(pepe > avatars.length-1) { pepe =0; } document.getElementById('avtimg').src=avatars[pepe]; document.getElementById('avatar').value=avatars[pepe]; } function subavt() { pepe--; if(pepe < 0 ) { pepe=avatars.length-1 } document.getElementById('avtimg').src=avatars[pepe]; document.getElementById('avatar').value=avatars[pepe]; } {/jq}

{tr}Pick user profile picture from the library{/tr} {tr}Show all{/tr} {$numav} {tr}Items{/tr}

{if $user ne $userwatch}{/if}
{/if} {/if}
{tr}Upload your own profile picture{/tr} {if $user ne $userwatch}{/if}
{if $prefs.user_store_file_gallery_picture neq 'y'}{tr}File (only .gif, .jpg and .png images approximately 45px × 45px){/tr}{else}{tr}File (only .gif, .jpg and .png images){/tr}{/if}: