<span>{lang key='delivery-date' section='custom'}</span>
<span class="bold">
{assign var=tage value=array({lang key='sonntag' section='custom'}, {lang key='montag' section='custom'}, {lang key='dienstag' section='custom'}, {lang key='mittwoch' section='custom'}, {lang key='donnerstag' section='custom'}, {lang key='freitag' section='custom'}, {lang key='samstag' section='custom'}, {lang key='sonntag' section='custom'})}
{assign var=monate value=array("Atlantis", {lang key='january' section='news'}, {lang key='february' section='news'}, {lang key='march' section='news'}, {lang key='april' section='news'}, {lang key='may' section='news'}, {lang key='june' section='news'}, {lang key='july' section='news'}, {lang key='august' section='news'}, {lang key='september' section='news'}, {lang key='october' section='news'}, {lang key='november' section='news'}, {lang key='december' section='news'})}
{assign var=tag1 value=date("N",time()+ (($Artikel->nMinDeliveryDays)*86400))}
{if $tag1 == 6 || $tag1 == 7}{$tag1neu = 1}{else}{$tag1neu = $tag1}{/if}
{if $tag1 != $tag1neu}{$nMinDeliveryDays_neu = $Artikel->nMinDeliveryDays+8-$tag1}{else}{$nMinDeliveryDays_neu = $Artikel->nMinDeliveryDays}{/if}
{assign var=monat1 value=date("n",time()+ ($nMinDeliveryDays_neu*86400))}
{assign var=ld_wochentag1 value=$tage[$tag1neu]}
{assign var=ld_monat1 value=$monate[$monat1]}
{assign var=tag2 value=date("N",time()+ (($Artikel->nMaxDeliveryDays)*86400))}
{if $tag2 == 6}{$tag2neu = 1}{elseif $tag2 == 7 && $tag1 > 5}{$tag2neu = $tag1neu+($Artikel->nMaxDeliveryDays-$Artikel->nMinDeliveryDays)}{elseif $tag2 == 7 && $tag1 < 6}{$tag2neu = 1}{else}{$tag2neu = $tag2}{/if}
{if $tag2 != $tag2neu && $tag2 == 6}{$nMaxDeliveryDays_neu = $Artikel->nMaxDeliveryDays+2}{elseif $tag2 != $tag2neu && $tag2 == 7 && $tag1 < 6}{$nMaxDeliveryDays_neu = $Artikel->nMaxDeliveryDays+1}{elseif $tag2 != $tag2neu && $tag2 == 7 && $tag1 > 5}{$nMaxDeliveryDays_neu = $nMinDeliveryDays_neu+$Artikel->nMaxDeliveryDays-$Artikel->nMinDeliveryDays}{else}{$nMaxDeliveryDays_neu = $Artikel->nMaxDeliveryDays}{/if}
{assign var=monat2 value=date("n",time()+ ($nMaxDeliveryDays_neu*86400))}
{assign var=ld_wochentag2 value=$tage[$tag2neu]}
{assign var=ld_monat2 value=$monate[$monat2]}
{$ld_wochentag1} {date("d.",time()+ (($nMinDeliveryDays_neu)*86400))} {$ld_monat1} - {$ld_wochentag2} {date("d.",time()+ (($nMaxDeliveryDays_neu)*86400))} {$ld_monat2}
</span>