{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' && $latestP}
    {if $latestP} test {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' && $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}
{/if}
{/if} {/if} {* Fetching Profile item File*} {if $profile_item} {/if}
{if isSectionEnabled('feeds')} {/if}
{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}