{capture assign='roomList'} {foreach from=$rooms item='room'} {assign var='users' value=$room->getUsers()} {if $users|count > 0}
  • {$room} {#$users|count}

    {$room->topic|language}

      {foreach from=$users item='user'}
    • {$user}
    • {/foreach}
  • {/if} {/foreach} {/capture} {if $onlyList|isset} {@$roomList} {else} {/if}