{assign var=friends value=$userquery->get_contacts($user.userid,0)} {assign var=friend_status value=$friends.0.confirmed}
{if $user.userid == userid()} {lang code="Update Cover"} {/if}
{if $user.userid != userid()} {if $friend_status == "yes" && userid()} {lang code="Unfriend"} {elseif $friend_status == "no"} {lang code="Accept Request"} {elseif !$friends && userid()} {lang code="Add As Friend"} {/if} {/if} {if $user.userid != userid()} {lang code="Send Message"}
{/if}

### {$user.username}

{$user.total_videos}

Videos

{$user.total_photos}

Photos

{$user.profile_hits}

Views

{$user.subscribers}

Contacts

{show_video_rating rating=$p.rating ratings=$p.rated_by total='10' id=$p.userid type=user}