{lang code='channel' assign='object_type'} {include file="$style_dir/global_header.html"} {include file="$style_dir/header.html"}
{assign var=category value=$userquery->get_category($u.category)} {$u.username|capitalize} ({$category.category_name})
{if !$isSubscribed && $p.allow_subscription!='no'}
{elseif $isSubscribed} {lang code='unsubscribe'} {/if} {assign var='channel_action_links' value=$userquery->get_channel_action_links($u)} {foreach from=$channel_action_links item=link key=link_title} {$link_title} {/foreach}

{include file="$style_dir/blocks/view_channel/channel_left.html"}

### User Contacts

{if $mode == '' || $mode == 'contacts'} {lang code='users_contacts' assign='users_contacts'}

## {$users_contacts|sprintf:$u.username}

{if $friends} {foreach from=$friends item=friend} {if $u.userid!=$friend.userid} {assign var=user_detail value=$userquery->get_user_details($friend.userid)} {else} {assign var=user_detail value=$userquery->get_user_details($friend.contact_userid)} {/if} {include file="$style_dir/blocks/user.html" user=$user_detail} {/foreach} {else} This user has no contacts {/if} {else}

## {$heading}

{if $userSubs} {foreach from=$userSubs item=item} {include file="$style_dir/blocks/user.html" user=$item} {/foreach} {/if} {/if}
{include file="$style_dir/blocks/pagination.html"}