{strip}
{if $this->USER['id'] === $user['id']}
{/if}
{$this->getProfileTheme($user['id'])}
{if !$this->checkUserBlacklisted($user.id)} {$this->lang['Block_the_user']} {else} {$this->lang['Unblock']} {/if} {if $this->checkInBookmarks($user.id,'user')}
{$this->lang['is_in_your_bookmarks']}
{else} {$this->lang['Bookmark']} {/if} {if $this->isfriend($user.id)}
{/if}
{if $user.id === $this->USER.id}{$this->lang['Edit']}{/if}
{$user['fullname']}
{if $user.privacy_age === 'only_me' && $user.id === $this->USER['id']} {$this->getUserAge($user['birthday'])} {$this->lang['years_old']}, {else if $user.privacy_age === 'friends' && $this->isfriend($user.id)} {$this->getUserAge($user['birthday'])} {$this->lang['years_old']}, {else if $user.privacy_age === 'everyone'} {$this->getUserAge($user['birthday'])} {$this->lang['years_old']}, {/if} {$this->getUserCityAndCountry($user)}
{if $this->USER['id'] !== $user.id}
{if $this->frReqViewProf($user.id)}
{else if $this->pendingFriendReq($user['id']) && !$this->isfriend($user.id)}
{else if $this->USER['id'] !== $user['id'] && $this->isfriend($user.id)}
{else}
{/if} {$this->lang['send_message']}
{/if}
{if !$this->isfriend($user.id) && $user['private'] === 'yes' && $user['id'] !== $this->USER['id']} {include file=$this->private_profile_tpl} {else} {assign var="user_photos_count" value=$this->userPhotosCount($user['id'],'all')} {assign var="user_wall_count" value=$this->userFeedCount($user.id)} {assign var="user_posts_count" value=$this->postsCount($user.id)} {assign var="user_groups_count" value=$this->userGroupsCount($user.id)} {assign var="user_friends_count" value=$this->friendsCount($user.id)} {assign var="user_apps_count" value=$this->userAppsCount($user.id)} {assign var="user_gifts_count" value=$this->getUserGiftsCount($user.id,'')}

- {if !$this->getUserStatus($user['id'])}last seen {$this->time_elapsed($user['online'])} {else} {/if}
{if !empty(trim($user.text_post))}
- {$this->str_smilies($user.text_post)}
{/if}
{if $user.privacy_age === 'only_me' && $user.id === $this->USER['id']}
- {$this->gMonthName(date("j F, Y", strtotime($user['birthday'])))}. {$this->getUserAge($user['birthday'])} {$this->lang['years_old']}
{else if $user.privacy_age === 'friends' && $this->isfriend($user.id)}
- {$this->gMonthName(date("j F, Y", strtotime($user['birthday'])))}. {$this->getUserAge($user['birthday'])} {$this->lang['years_old']}
{else if $user.privacy_age === 'everyone'}
- {$this->gMonthName(date("j F, Y", strtotime($user['birthday'])))}. {$this->getUserAge($user['birthday'])} {$this->lang['years_old']}
{/if} {if $this->USER.id != $user.id}
- {$this->lang['surprise_with_a_gift']}
{/if}

{if $user_photos_count > 0}
{$user_photos_count}{if $user_photos_count > 1} {$this->lang['photos']} {else} {$this->lang['photo']}{/if}
{$this->lang['see_photo_albums']}
{foreach $this->ufeedGetLatestPics($user.id) as $photo}
{/foreach}
{/if} {assign var="_videos" value=$this->getUserVideos($user.id,1)} {assign var="_tracks" value=$this->getUserTracks($user.id,1)} {if count($_videos) || count($_tracks) || $user_groups_count > 0}
{if count($_videos)}
{$_videos.0.vd_count} {if $_videos.0.vd_count > 1}{$this->lang['videos']}{else}{$this->lang['video']}{/if}
{foreach $_videos as $vd}
{$vd.dur}
{$vd.title}
{/foreach}
{/if} {if count($_tracks)}
{$_tracks.0.tr_count} {if $_tracks.0.tr_count > 1}{$this->lang['tracks']}{else}{$this->lang['track']}{/if}
{foreach $_tracks as $tr}

- {$tr.artist}
- {$tr.title}

{/foreach}
{/if} {if $user_groups_count > 0} {assign var=four_groups value=$this->getUserCommunities($user.id, 4)} {assign var=comm_count value=0}
{$this->lang['Communities']} {$user_groups_count}
{foreach $four_groups as $club} {if $comm_count == 0 || $comm_count == 2}
{/if}
{if $comm_count == 1 || $comm_count == 3}
{/if} {$comm_count = $comm_count+1} {/foreach} {if count($four_groups) == 1 || count($four_groups) == 3}
{/if}
{/if}
{/if}
{$this->lang['Wall']} {$user_wall_count}
{$this->lang['Load_more']}
{/if} {/strip}