mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-09-03 08:57:17 +00:00
The first release of the refactored version
It's still a work in progress, there are a lot of things that will change in the final release
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
{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}
|
||||
Reference in New Issue
Block a user