{$friends=$userquery->get_pending_contacts(userid(),0)} {if $friends}
{lang code='Friends Requests'}
{foreach $friends as $friend} {if $friend} {if $friend@last}{$last=true}{else}{$last=false}{/if} {$block=get_template('friends_notifications_block','path')} {include file=$block friend=$friend last=$last} {/if} {/foreach}
Show all Messages
{/if}