{strip}
{foreach $res as $r} {assign var=subscribed value=$this->isSubscribed($r.id)} {assign var=isadmin value=$this->checkAdmin($this->USER['id'],$r.admin)} {if $isadmin}{/if} {include file="{$this->group_templates}/group-header.html"}

#### {$this->lang['Albums']} {if $isadmin}
{/if}

{assign var=c_main value=$this->getCommunityAlbumsPicturesCount($r.id,'0')}
{$c_main}
{$this->lang['Community_Main_album']}
{foreach $this->communityAlbums($r.id) as $album} {assign var=c value=$this->getCommunityAlbumsPicturesCount($r.id,$album.id)}
{$c}
{$album.title}
{/foreach}
{/foreach}
{/strip}