capture name friends_list foreach from friends item friend if friend u

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
{capture name="friends_list"}
{foreach from=$friends item=friend}
{if $friend.user_id eq $smarty.session.Auth_User.user_id}{assign var="is_friend" value="true"}{/if}
<div class="item">
<div class="image">
<a href="/profile.php?uid={$friend.user_id}" title="{$friend.first_name} {$friend.last_name}"><img src="{$friend.profile_120|default:"/images/sample04.gif"}" alt="" width="70" height="79" /></a>
</div>
<a href="/profile.php?uid={$friend.user_id}" title="">{$friend.first_name} {$friend.last_name}</a>
</div>
{/foreach}
{/capture}