{* Renders ONE campaign notice. The wording (and whether the campaign is showable at all) comes from components/campaign-text.html, which is shared with campaign-alert.html. An empty text means the campaign cannot be triggered — then we render nothing. *}> <{capture assign="campaign_text"}><{include file="components/campaign-text.html" campaign=$campaign}><{/capture}> <{if $campaign_text|trim}> <{* Foldeknappen vises KUN når der faktisk er noget at folde ud. En kampagne uden beskrivelse og uden udløbsdato gav ellers en chevron der åbnede en tom boks. *}> <{capture assign="campaign_description"}><{$campaign->getDescription()}><{/capture}> <{$campaign_has_details = ($campaign_description|trim) || $campaign->getExpires()}>
<{t}>Campaign ends in <{/t}> 00:00:00:00
<{/if}> <{if $campaign_has_details}><{t}>Campaign lasts until<{/t}> <{$campaign->getExpires()|date_format:'%Y-%m-%d %H:%M:%S'}>.
<{/if}>