{strip} {assign var="his_her" value=$this->lang['his']} {assign var="update_relation" value=$this->checkForUpdateFriendRelation()} {assign var="delete_relation" value=$this->checkForDeletedFriendRelation()} {assign var="delete_friend" value=$this->checkForDeletedFriend()} {assign var="friend_request_accepted" value=$this->checkForAcceptedFriendRequests()} {assign var="friend_request_declined" value=$this->checkForDeclinedFriendRequests()} {assign var="r_q" value=$query} {if !$query && !$update_relation && !$delete_relation && !$delete_friend && !$friend_request_accepted && !$friend_request_declined} {$this->empty_notif()} {/if}
{foreach $query as $res} {assign var=status value={$res.status}} {if $this->getUserGender($res.id) == 'female'} {assign var="his_her" value=$this->lang['her']} {/if}
{$res.fullname} {if $status == 'pending'} {if !$res.relationship} {$this->lang['want_become_friend']} {else} {str_replace('.','',$this->lang['want_become_friend'])} {$this->lang['friend_indicate']} {$his_her} {$this->relationDelimiter($res.relationship)} {/if}
{else} {str_replace("%s", {$this->time_elapsed($res.added)}, $this->lang['yarfriend'])}
{/if}
{if $status == 'pending'}
{else}
{/if}
{/foreach} {foreach $friend_request_declined as $res}
{$res.fullname} {$this->lang['declined_your_friend_request']}.
{/foreach} {foreach $friend_request_accepted as $res}
{$res.fullname} {$this->lang['accepted_your_friend_request']}.
{/foreach} {foreach $delete_friend as $res}
{$res.fullname} {str_replace("#g",$his_her,$this->lang['removed_you_from_hisher_friends'])}.
{/foreach} {foreach $delete_relation as $res}
{$res.fullname}{str_replace("#g",$his_her,str_replace("#n","",$this->lang['removed_you_from_hisher_relative_friends']))}.
{/foreach} {foreach $update_relation as $res} {if $this->getUserGender($res.id) == 'female'} {assign var="his_her" value=$this->lang['her']} {/if} {assign var="relations_com" value=json_decode($res.notifjson,true)}
{$res.fullname} {$this->lang['friend_update_indicate']} {$his_her} {$this->relationDelimiter($relations_com.relationship)}
{/foreach}
{/strip}