{capture assign='chatBoxRoomList'} {foreach from=$boxRoomList item='room'} {if $room->canSee() && (!$skipEmptyRooms|isset || !$skipEmptyRooms || !$room->getUsers()|empty)} roomID === $activeRoomID} class="active"{/if}> {if $room->canJoin()} {else} {/if} {$room->getTitle()} {$room->getUsers()|count} {if $room->canJoin()} {else} {/if} {/if} {/foreach} {/capture} {if $chatBoxRoomList|trim}
    {@$chatBoxRoomList}
{else}
{/if}