2012-12-31 13:39:09 +00:00
|
|
|
{$friends=$userquery->get_pending_contacts(userid(),0)}
|
2013-01-01 12:25:27 +00:00
|
|
|
|
2012-12-31 13:39:09 +00:00
|
|
|
<div class="notifications">
|
|
|
|
<div class="notify_title">{lang code='Friends Requests'}</div>
|
|
|
|
<div class="seperator"></div>
|
|
|
|
|
|
|
|
<div class="notifications-container cbv3-scroller">
|
2013-01-01 12:25:27 +00:00
|
|
|
<div id="new_friends"></div>
|
|
|
|
{if $friends}
|
2012-12-31 13:39:09 +00:00
|
|
|
{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}
|
2013-01-01 12:25:27 +00:00
|
|
|
{else}
|
|
|
|
<div class="no_notifications">No friend requests</div>
|
|
|
|
{/if}
|
2012-12-31 13:39:09 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="seperator"></div>
|
2013-01-01 12:25:27 +00:00
|
|
|
<div class="all_notifications"><a href="">Show all Requests</a></div>
|
2012-12-31 13:39:09 +00:00
|
|
|
</div>
|