<{include file="db:profile_header.html"}> <{if $profile_friendshipform}> <{if $hideForm}>

## <{$lang_friendshipform_title}>

<{includeq file='db:system_common_form.html' form=$profile_friendshipform}>
<{else}> <{includeq file='db:system_common_form.html' form=$profile_friendshipform}> <{/if}> <{/if}> <{if $user_name_header || $isOwner || $allow_profile_general || $allow_profile_contact || $allow_profile_stats || ($allow_profile_usercontributions && $modules|count > 0)}>
<{if $user_name_header}>

#### <{if $isOwner || $isAdmin}><{/if}> <{if !$isAnonym && !$isOwner}><{/if}> <{$user_name_header}>

<{if $allow_pictures}>
<{if $user_avatar}> <{if $isOwner && !$gravatar}>
<{$token}> <{elseif $gravatar && $allow_avatar_upload}>

<{$lang_selectavatar}>

<{/if}> <{else}> <{if $isOwner && $allow_avatar_upload}>

<{$lang_selectavatar}>

<{else}> <{/if}> <{/if}>
<{/if}>
<{/if}> <{if $isOwner}>

#### <{$lang_visitors}>

<{if $visitors}> <{cycle values='even,odd' print=false reset=true advance=false}> <{section name=i loop=$visitors}>

» ><{$visitors[i].uname}> (<{$visitors[i].time}>)

<{/section}> <{/if}>
<{/if}> <{foreach item=category from=$fields}>
<{cycle values='even,odd' print=false reset=true advance=false}>

#### <{$category.title}>

<{foreach item=field from=$category.fields}>

<{$field.image}><{$field.title}>:<{$field.value}>

<{/foreach}>
<{/foreach}> <{if $allow_profile_usercontributions && $modules|count > 0}>

#### <{$lang_usercontributions}>

<{foreach item=module from=$modules name="search_results"}>

#### <{$module.name}>

<{cycle values='even,odd' print=false reset=true advance=false}> <{foreach item=result from=$module.results}>

<{$result.title}> (<{$result.time}>)

<{/foreach}>

<{$module.showall_link}>

<{/foreach}>
<{/if}>
<{/if}> <{if $allow_pictures || $allow_audio || $allow_videos || $allow_friendship || $allow_tribes}>
<{if $allow_pictures}>

#### <{$lang_photos}>

<{if $pictures|@count > 0}> <{cycle values='even,odd' print=false reset=true advance=false}>

<{section name=i loop=$pictures}> "> <{$pictures[i].content}> <{/section}>

<{/if}>
<{/if}> <{if $allow_tribes}>

#### <{$lang_tribes}>

<{if $tribes|@count > 0}>

<{section name=i loop=$tribes}>
- <{$tribes[i].itemLink}>
<{/section}>

<{/if}> <{if $tribes_approvals|@count > 0}>

#### <{$lang_approvals}>

<{section name=i loop=$tribes_approvals}>
- <{$token}> <{$token}> <{$tribes_approvals[i].uname}> (<{$tribes_approvals[i].tribe_itemLink}>)
<{/section}>

<{/if}> <{if $tribes_invitations|@count > 0}>

#### <{$lang_invitations}>

<{section name=i loop=$tribes_invitations}>
- <{$token}> <{$token}> <{$tribes_invitations[i].itemLink}>
<{/section}>

<{/if}>
<{/if}> <{if $allow_friendship}>

#### <{$lang_friends}>

<{if $friends|@count > 0}> <{cycle values='even,odd' print=false reset=true advance=false}>

<{section name=i loop=$friends}> "> <{if $friends[i].user_avatar}><{$friends[i].user_avatar}> <{/if}><{$friends[i].uname}> <{/section}>

<{/if}> <{if $friends_pending|@count > 0}>

#### <{$lang_friends_pending}>

<{section name=i loop=$friends_pending}>
- <{$token}> <{$token}> <{$friends_pending[i].uname}>
<{/section}>

<{/if}>
<{/if}> <{if $allow_audio}>

#### <{$lang_audio}>

<{if $audio}>
<{$audio.content}>
<{/if}>
<{/if}> <{if $allow_videos}>

#### <{$lang_videos}>

<{if $video}>
<{$video.content}>
<{/if}>
<{/if}>
<{/if}> <{if $user_name_header || $isOwner || $allow_profile_general || $allow_profile_contact || $allow_profile_stats || ($allow_profile_usercontributions && $modules|count > 0) || $allow_pictures || $allow_audio || $allow_videos || $allow_friendship || $allow_tribes}>
<{/if}> <{if $module_is_socialmode}>
<{$commentsnav}><{$lang_notice}>
<{if $comment_mode == "flat"}> <{include file="db:system_comments_flat.html"}> <{elseif $comment_mode == "thread"}> <{include file="db:system_comments_thread.html"}> <{elseif $comment_mode == "nest"}> <{include file="db:system_comments_nest.html"}> <{/if}> <{/if}>