{$myAccountLinks = $userquery->my_account_links()} {$leftMenuLinks = array_slice($myAccountLinks, 7)} {lang code='channel' assign='object_type'} {$loadMoreLang ={lang code="load_more"}} {$uservideos=get_videos(["user"=>$user.userid, "order"=>"date_added DESC","limit" =>9])} {$total_videos = $user.total_videos} {$total_photos = $user.total_photos} {if $uservideos} {$mainVideo = userMainVideo($uservideos)} {$first_video = $cbvid->get_video($mainVideo)} {/if}
{include file="$style_dir/blocks/view_channel/channel_header.html"}
{show_flag_form id=$user.userid type=user}
{if $uservideos}
{FlashPlayer vdetails=$first_video width='100%' height='355'}
{/if}

## {lang code='user_activity'}

{if $p.profile_title}
- {lang code='Title'}:{$p.profile_title}
{/if} {if $p.profile_desc}
- {lang code='Description'}:{$p.profile_desc}
{/if}
- {lang code='joined'}: {$u.doj|niceTime}
- {lang code='user_last_login'}:{$u.last_logged|niceTime}
- {lang code='online_status'}: {if $userquery->isOnline($u.last_active,$p.online_status)} {lang code='online'} {else} {lang code='offline'} {/if}

{assign var='channel_profile_fields' value=$userquery->load_user_fields($p,'profile')} {foreach from=$channel_profile_fields item=field_group name=profile_groups} {if $smarty.foreach.profile_groups.iteration==2}
{/if} {if $field_group.channel_view !='no'}

## {$field_group.group_name}

{if $field_group.group_id=='profile_location'}
- {lang code='country'}: {$u.country|country}
{/if} {foreach from=$field_group.fields item=field} {if $field.auto_view=='yes' && $field.value}
- {if $field.type !='textarea' && $field.type !='text' && $field.type !='textfield'} {$field.title}: {input_value input=$field} {elseif $field.type =='textarea'} {$field.title}: {$field.value|nl2br} {else} {$field.title}: {input_value input=$field} {/if}
{/if} {if $field_group.group_id=='profile_basic_info' && $field.name=='relation_status' && $p.show_dob!='no'}
- {lang code='user_date_of_birth'}: {$u.dob}
{/if} {/foreach} {$usercat = $userquery->get_category_name($user.category)}
- Category: {$usercat.category_name}

{/if} {if $smarty.foreach.profile_groups.last}
{/if} {/foreach}
{lang code='more'}
{if $uservideos}
{foreach $uservideos as $video}
{include file="$style_dir/blocks/videos/video.html" display_type='homeVideos'}
{/foreach}
{if $total_videos > 9}
{/if} {else}
{lang code='no_results_found'}
{/if}
{$photos=get_photos(["user"=>$user.userid,"limit" =>9])} {if $photos} {foreach from=$photos item=p_list}
{include file="$style_dir/blocks/photo.html" photo=$p_list display_type = "default_photo"}
{/foreach} {if $user.total_photos > 9}
{/if} {else}
{lang code='no_results_found'}
{/if}
{*$u.userid*} {$playlists = $cbvid->action->get_playlists(["user"=>$u.userid,"order"=>"date_added DESC","limit"=>""])} {if $playlists} {*pr($playlists,true)*}
{foreach $playlists as $playlist}
{include file="$style_dir/blocks/playlist/playlist-block.html"}
{/foreach}
{else}
{lang code='no_playlists'}
{/if}