Updated buildings Updated shipyard page (ships & defense) Added Buildings building queue display & cancel build action. Added research lab Added navigation block structure Removed old code Updated registration Added files to .gitignore Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
27 lines
No EOL
1.7 KiB
PHTML
27 lines
No EOL
1.7 KiB
PHTML
<?php /** @var Legacies_Core_Block_Template $this */?>
|
|
<div class="item title">
|
|
<h2><a href="<?php echo $this->getItemInfoUrl()?>"><?php echo $this->escape($this->getName())?></a> (<?php echo $this->renderNumber($this->getLevel())?>)</h2>
|
|
</div>
|
|
<div class="item details">
|
|
<a href="<?php echo $this->getItemInfoUrl()?>" class="image"><img src="<?php echo $this->getItemImageUrl()?>" alt="" width="120" height="120" /></a>
|
|
<div class="details">
|
|
<p><?php echo $this->getDescription()?></p>
|
|
<ul>
|
|
<?php foreach ($this->getResourcesConfigForNextLevel() as $resourceId => $resourceConfig):?>
|
|
<li class="resource">
|
|
<span class="label"><?php echo $this->getResourceName($resourceId)?></span>
|
|
<span class="cost<?php if ($resourceConfig->hasData('requirement')):?> capped<?php endif?>"><?php echo $this->renderNumber($resourceConfig->getData('value'))?></span>
|
|
<?php if ($resourceConfig->hasData('requirement')):?>
|
|
<span class="requirement">(<?php echo $this->renderNumber($resourceConfig->getData('requirement'))?>)</span>
|
|
<?php else:?>
|
|
<span class="overflow">(<?php echo $this->renderNumber($resourceConfig->getData('overflow'))?>)</span>
|
|
<?php endif?>
|
|
</li>
|
|
<?php endforeach?>
|
|
</ul>
|
|
<p><?php echo $this->__('Building time: %s', $this->renderTime($this->getBuildingTime(1), false))?>
|
|
</div>
|
|
<div class="buy">
|
|
<p><a class="build" href="<?php echo $this->getUrl('buildings.php', array('building' => $this->getItemId(), 'mode' => 'research'))?>"><?php echo $this->__('Build next level (%s)', $this->renderNumber($this->getNextLevel()))?></a></p>
|
|
</div>
|
|
</div>
|