correct display of lives for Character submission in Questtype ?Boss-Fight?

This commit is contained in:
coderkun 2014-04-16 15:56:24 +02:00
commit 6e6378ffb0

View file

@ -13,8 +13,8 @@
<section class="opponent"> <section class="opponent">
<p class="fwb"><?=$character['name']?></p> <p class="fwb"><?=$character['name']?></p>
<p> <p>
<?php if($lives['character'] > 0) : ?> <?php if($stage['lives']['character'] > 0) : ?>
<?php foreach(range(1,$lives['character']) as $i) : ?> <?php foreach(range(1,$stage['lives']['character']) as $i) : ?>
<i class="fa fa-heart fa-fw"></i> <i class="fa fa-heart fa-fw"></i>
<?php endforeach ?> <?php endforeach ?>
<?php else : ?> <?php else : ?>
@ -25,8 +25,8 @@
<section class="opponent"> <section class="opponent">
<p class="fwb"><?=$fight['bossname']?></p> <p class="fwb"><?=$fight['bossname']?></p>
<p> <p>
<?php if($lives['boss'] > 0) : ?> <?php if($stage['lives']['boss'] > 0) : ?>
<?php foreach(range(1,$lives['boss']) as $i) : ?> <?php foreach(range(1,$stage['lives']['boss']) as $i) : ?>
<i class="fa fa-heart fa-fw"></i> <i class="fa fa-heart fa-fw"></i>
<?php endforeach ?> <?php endforeach ?>
<?php else : ?> <?php else : ?>