{lang code='channel' assign='object_type'} {include file="$style_dir/global_header.html"} {include file="$style_dir/blocks/view_channel/channel_global.html" }
{include file="$style_dir/header.html"}
{include file="$style_dir/message.html"}
{include file="$style_dir/blocks/view_channel/channel_left.html"}
{if isSectionEnabled('photos') || isSectionEnabled('videos')} {if $p.show_my_photos !='no'} {get_photos assign=latestP order=" date_added DESC" limit=10 user=$u.userid} {/if} {get_videos assign=latestV order=" date_added DESC" limit=10 user=$u.userid status="Successful" broadcast="public"} {if $latestP || $latestV}
{if $p.show_my_photos !='no'}
    {if $latestP} {section name=plist loop=$latestP} {if $smarty.section.plist.iteration==1} {if !$profile_item} {assign var='profile_item' value=$latestP[plist]} {/if} {/if} {include file="$style_dir/blocks/photo.html" photo=$latestP[plist] display_type='channel_page'} {/section} {else}
    {lang code='found_no_photos'}
    {/if}
{/if} {if $p.show_my_photos !='no' || $p.show_my_videos !='no'}
{/if} {if $p.show_my_videos !='no'}
    {if $latestV} {section name=vlist loop=$latestV} {if !$profile_item} {assign var='profile_item' value=$latestV[vlist]} {/if} {include file="$style_dir/blocks/video.html" video=$latestV[vlist] display_type='channel_page'} {/section} {else}
    {lang code='found_no_videos'}
    {/if}
{/if}
{/if} {/if} {* Fetching Profile item File*} {if $profile_item} {/if}
{if $$p.profile_title}
{$p.profile_title}
{/if} {if $$p.profile_desc} {$p.profile_desc|nl2br} {/if}
{lang code='user_activity'}
{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}
{if $p.allow_ratings !='no' && $p.allow_ratings!='No'}
{show_video_rating rating=$p.rating ratings=$p.rated_by total='10' id=$p.userid type=user}
{/if}
{lang code='views'}
{$u.profile_hits|number_format}
{lang code='subscribers'}
{$u.profile_hits|number_format}
{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} {/foreach}
{lang code='more'}
{lang code="comments"}

{if $myquery->is_commentable($p,'u')} {include file="$style_dir/blocks/comments/add_comment.html" id=$u.userid type=c} {else}
{lang code='coments_disabled_profile'}
{/if}