Updated page display

Updated signature image generator
Navigation menu has been finalized
Some deprectaed templates has been removed
Fixed registration
Fixed galaxy notices messages

Signed-off-by: Gregory PLANCHAT <g.planchat@gmail.com>
This commit is contained in:
Gregory PLANCHAT 2011-10-24 19:19:04 +02:00
commit 6d61e93c47
67 changed files with 10177 additions and 940 deletions

View file

@ -1,10 +1,14 @@
<th>
<h1><?php echo $this->escape($this['planet']->getData('name'))?></h1>
<p><a href="<?php echo $this->getUrl('overview.php', array('cp' => $this['planet']->getId()))?>" title="<?php echo $this->escape($this['planet']->getData('name'))?>">
<img src="<?php echo $this->getUrl('planeten/small/s_' . $this['planet']->getData('image') . '.jpg')?>" height="50" width="50" />
</a></p>
<?php if ($this['queue']->count() > 0):?>
<p><?php echo $this->escape($this['queue_item']->getData('building_id'))?></p>
<?php else:?>
<p><?php echo $this->__('Idle.')?></p>
<?php endif?>
<td>
<h1><?php echo $this->escape($this['planet']->getData('name'))?></h1>
<p><a href="<?php echo $this->getUrl('overview.php', array('cp' => $this['planet']->getId()))?>" title="<?php echo $this->escape($this['planet']->getData('name'))?>">
<img src="<?php echo $this->getSkinUrl('graphics/planeten/small/s_' . $this['planet']->getData('image') . '.jpg')?>" height="50" width="50" />
</a></p>
<?php if (isset($this['queue']) && $this['queue']->count() > 0):?>
<p><?php echo $this->escape($this['queue_item']->getData('building_id'))?></p>
<?php else:?>
<p><?php echo $this->__('Idle.')?></p>
<?php endif?>
</td>
<?php if ($this['even']):?>
</tr><tr>
<?php endif?>

View file

@ -1,6 +1,6 @@
<div class="shipyard item-list">
<h1><?php echo $this->__('Shipyard')?></h1>
<form action="<?php echo $this->getUrl('buildings.php', array('mode' => 'fleets'))?>" method="post">
<form action="<?php echo $this->getUrl('buildings.php', array('mode' => 'fleet'))?>" method="post">
<dl>
<?php echo $this->getPartial('item-list.items')->render()?>
</dl>

View file

@ -1,17 +1,42 @@
<?php $currentPlanet = $this->getCurrentPlanet();?>
<div class="planet-carrousel">
<div class="arrow left">&#8678;</div>
<div class="arrow left"><!--&#8678;--></div>
<div class="items">
<?php foreach ($this->getPlanetCollection() as $planet):?>
<?php if ($planet->getId() != $currentPlanet->getId()):?>
<div class="planet item">
<?php if ($planet->getId() != $this->getCurrentPlanet()->getId()):?>
<a href="<?php echo $this->getUrl('', array('cp' => $planet->getId()))?>"><?php echo $this->escape($planet->getName())?> [<?php echo $this->escape($planet->getCoords())?>]</a>
<?php else:?>
<?php echo $this->escape($planet->getName())?> [<?php echo $this->escape($planet->getCoords())?>]
<?php endif?>
<p class="planet-name"><a href="<?php echo $this->getUrl('overview.php', array('cp' => $planet->getId()))?>"><?php echo $this->escape($planet->getName())?></a></p>
<div class="planet-image">
<?php if (false && ($moon = $planet->getMoon()) !== null): ?>
<a href="<?php echo $this->getUrl('overview.php', array('cp' => $moon->getId()))?>" class="moon">
<img src="<?php echo $this->getSkinUrl($moon->getImage())?>" width="20" height="20"/>
</a>
<?php endif?>
<a href="<?php echo $this->getUrl('overview.php', array('cp' => $planet->getId()))?>" class="planet">
<img src="<?php echo $this->getSkinUrl($planet->getImage())?>" width="50" height="50"/>
</a>
</div>
<p class="planet-position"><a href="<?php echo $this->getUrl('overview.php', array('cp' => $planet->getId()))?>">[<?php echo $this->escape($planet->getCoords())?>]</a></p>
</div>
<?php else:?>
<div class="planet item selected">
<p class="planet-name"><?php echo $this->escape($planet->getName())?></p>
<div class="planet-image">
<?php if (false && ($moon = $planet->getMoon()) !== null): ?>
<span class="moon">
<img src="<?php echo $this->getSkinUrl($moon->getImage())?>" width="20" height="20"/>
</span>
<?php endif?>
<span class="planet">
<img src="<?php echo $this->getSkinUrl($planet->getImage())?>" width="50" height="50"/>
</span>
</div>
<p class="planet-position">[<?php echo $this->escape($planet->getCoords())?>]</p>
</div>
<?php endif?>
<?php endforeach?>
</div>
<div class="arrow right">&#8680;</div>
<div class="arrow right"><!--&#8680;--></div>
</div>
<div class="resources-display">
<div class="resource metal">