Updated home page
Fixed buildings consruction time Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
parent
347952319a
commit
a531d61639
17 changed files with 131 additions and 49 deletions
|
|
@ -109,16 +109,19 @@
|
|||
<action method="addBodyClass">
|
||||
<param name="class">home</param>
|
||||
</action>
|
||||
<action method="addBodyClass">
|
||||
<param name="class">public-form</param>
|
||||
</action>
|
||||
</reference>
|
||||
|
||||
<reference name="head">
|
||||
<action method="setTitle">
|
||||
<param name="title">Home page</param>
|
||||
<param name="title">Welcome</param>
|
||||
</action>
|
||||
</reference>
|
||||
|
||||
<reference name="content">
|
||||
<block name="login" type="core/template" template="page/html/home.phtml" />
|
||||
<block name="login" type="core/html.home" template="page/html/home.phtml" />
|
||||
</reference>
|
||||
</handle>
|
||||
</layout>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<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="buy">
|
||||
<p><a class="build" href="<?php echo $this->getUrl('empire/research-lab/build', array('id' => $this->getItemId()))?>"><?php echo $this->__('Build next level (%s)', $this->renderNumber($this->getNextLevel()))?></a></p>
|
||||
<p><a class="build" href="<?php echo $this->getUrl('legacies-empire/research-lab/build', array('id' => $this->getItemId()))?>"><?php echo $this->__('Build next level (%s)', $this->renderNumber($this->getNextLevel()))?></a></p>
|
||||
</div>
|
||||
<div class="details">
|
||||
<p><?php echo $this->getDescription()?></p>
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@
|
|||
</p>
|
||||
<p class="time"><?php echo $this->__('Lasts %s', $this->renderTime($this->getBuildingRemainingTime()))?></p>
|
||||
<div class="cancel">
|
||||
<p><a class="build" href="<?php echo $this->getUrl('empire/research-lab/cancel', array('id' => $this->getItem()->getIndex()))?>"><?php echo $this->__('Cancel')?></a></p>
|
||||
<p><a class="build" href="<?php echo $this->getUrl('legacies-empire/research-lab/cancel', array('id' => $this->getItem()->getIndex()))?>"><?php echo $this->__('Cancel')?></a></p>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
<div class="shipyard item-list countable" id="shipyard">
|
||||
<h1><?php echo $this->__('Shipyard')?></h1>
|
||||
<form action="<?php echo $this->getUrl('empire/shipyard/build')?>" method="post" id="shipyard-form">
|
||||
<form action="<?php echo $this->getUrl('legacies-empire/shipyard/build')?>" method="post" id="shipyard-form">
|
||||
<?php echo $this->getPartial('item-list.items')->render()?>
|
||||
<input type="submit" value="<?php echo $this->__('Build')?>">
|
||||
</form>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<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="qty">
|
||||
<p><input type="text" name="ship[<?php echo $this->getItemId()?>]" id="ship:<?php echo $this->getItemId()?>" /></p>
|
||||
<p><input type="text" name="id[<?php echo $this->getItemId()?>]" id="ship:<?php echo $this->getItemId()?>" /></p>
|
||||
<input type="hidden" id="ship:<?php echo $this->getItemId()?>:max" value="<?php echo $this->escape($this->getMaximumBuildableElementsCount())?>" />
|
||||
</div>
|
||||
<div class="max">
|
||||
|
|
@ -31,4 +31,4 @@
|
|||
<p><?php echo $this->__('Building time: %s', $this->renderTime($this->getBuildingTime(1), false))?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1 +1,7 @@
|
|||
<?php /** @var Wootook_Core_Block_Html_Home $this */ ?>
|
||||
<?php echo $this->getLayout()->getMessagesBlock()->renderGroupedHtml()?>
|
||||
<div class="home-block">
|
||||
<h1><?php echo $this->getTitle()?></h1>
|
||||
<p><?php echo $this->getFormatedWelcomeText()?></p>
|
||||
<button class="register" onclick="document.location='<?php echo $this->getUrl('player/account/new')?>'"><?php echo $this->escape('Create an empire of your own, now!')?></button>
|
||||
</div>
|
||||
|
|
|
|||
Loading…
Reference in a new issue