{require-css "announcement"} {if $announcelist}

{trnum "announcements" sizeof $announcelist}

{endif} {--include "_shadow_start.html"}
{set $announceContainerOpen 0} {set $announcementsInList 1} {foreach $announcement in $announcelist} {if $announcement.importantDelimiter} {if $announceContainerOpen}
{set $announceContainerOpen 0} {set $ShadowBottomOffset 4} {include "_shadow_bottom.html"} {endif} {endif} {if $announceContainerOpen}
{else}
{set $announceContainerOpen 1} {endif} {include "announcement.html"} {endforeach} {if $announceContainerOpen}
{set $announceContainerOpen 0} {set $ShadowBottomOffset 4} {include "_shadow_bottom.html"} {endif} {--include "_shadow_end.html"} {if or $announcelistActionNewLink $announcelistActionShowAllLink}
{set $div ""} {if $announcelistActionNewLink} {$div} {tr "announcement.new"} {set $div " · "} {endif} {if $announcelistActionShowAllLink} {$div} {tr "announcement.show all"} {set $div " · "} {endif}
{endif}