{lang code='profile'|capitalize:true}
{lang code='user_channel_views'}
{$u.profile_hits|number_format}
{if $p.show_dob=='yes'}
{lang code='age'}
{$u.dob|get_age} - {$u.dob|date_format}
{/if}
{lang code='joined'}
{$u.doj|date_format}
{lang code='user_last_login'}
{$u.last_logged|nicetime}
{lang code='subscribers'}
{$u.subscribers|number_format}
{lang code=country}
{$u.country|country}
{lang code='Personal Details'|capitalize:true}
{assign var="personal_details" value=$userquery->load_personal_details($p)}
{foreach from=$personal_details item=field}
{assign var=db_field value=$field.db_field}
{if $p.$db_field && $field.auto_view=='yes'}
{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}
{/foreach}
{if $p.about_me}
{lang code='user_about_me'}
{$p.about_me|nl2br}
{/if}
{lang code='user_subscriptions' assign='users_videos'}{$users_videos|sprintf:$u.username}
{assign var=users_items_subscriptions value=func->config(users_items_subscriptions)}
{assign var='usr_subs' value=$userquery->get_user_subscriptions($u.userid,$users_items_subscriptions)}
{section name=u_list loop=$usr_subs}
{include file="$style_dir/blocks/user.html" user=$usr_subs[u_list] block_type='small'}
{sectionelse}
{lang code='user_no_subscriptions' assign='user_subs'}{$user_subs|sprintf:$u.username}
{/section}