mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-07-15 17:16:08 +00:00
62d6e19ee9
It's still a work in progress, there are a lot of things that will change in the final release
17 lines
733 B
Smarty
17 lines
733 B
Smarty
{assign var=startDate value=$smarty.const.START_DATE|@strtotime}
|
|
{assign var=daysToDisplay value= 432000}
|
|
{assign var=spawnTimeArray value= [
|
|
'Artifacts' => ($startDate + NATARS_SPAWN_TIME * 86400) - $smarty.now,
|
|
'WW villages' => ($startDate + NATARS_WW_SPAWN_TIME * 86400) - $smarty.now,
|
|
'WW building plans' => ($startDate + NATARS_WW_BUILDING_PLAN_SPAWN_TIME * 86400) - $smarty.now
|
|
]}
|
|
|
|
{foreach $spawnTimeArray as $text => $spawnTime}
|
|
{if $spawnTime <=$daysToDisplay and $spawnTime > 0}
|
|
<br /><br />
|
|
<div>
|
|
<span><b>{$text}</b> will spawn in: </span>
|
|
<span class="timer">{$spawnTime|date_format:'%H:%M:%S'}</span>
|
|
</div>
|
|
{/if}
|
|
{/foreach} |