<?php echo '<table class="module" width="100%" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="moduletitle">'; echo '$_LANG["FRIEND_ON_SITE"] $total'; echo '</td></tr><tr><td class="modulebody">'; if ($total); { } if ($cfg.view_type == 'table'); echo '<div align="center"><a href="profile_url login=$frien.login">'; echo '<img border="0" class="usr_img_small" src="$_frien["avatar" ]/></a></div> <div align="center">$_frien["user_link"]</div>'; } if ($cfg.view_type == 'list');{ assign var="now" value="0" ($frien.user_link); (math equation="x + 1" x=$now assign="now"); if ($now==$total); }else{ echo '<div align="center">$_LANG["FRIEND_NO_SITE"]</div>'; echo '</td></tr></tbody></table>'; ?>
{strip} <table class="module" width="100%" cellspacing="0" cellpadding="0"> <tbody> <tr> <td class="moduletitle"> {$LANG.FRIEND_ON_SITE} ({$total}) </td> </tr> <tr> <td class="modulebody"> {if $total} {if $cfg.view_type == 'table'} <div align="center"><a href="{profile_url login=$frien.login}"><img border="0" class="usr_img_small" src="{$frien.avatar}" /></a></div> <div align="center">{$frien.user_link}</div> {/foreach} {/if} {if $cfg.view_type == 'list'} {assign var="now" value="0"} {$frien.user_link} {math equation="x + 1" x=$now assign="now"} {if $now==$total}{else}, {/if} {/foreach} {/if} {else} <div align="center">{$LANG.FRIEND_NO_SITE}</div> {/if} </td> </tr> </tbody> </table> {/strip}