correct display of lives for Character submission in Questtype ?Boss-Fight?
This commit is contained in:
parent
f59ba7ef39
commit
6e6378ffb0
1 changed files with 24 additions and 24 deletions
|
|
@ -10,29 +10,29 @@
|
||||||
<?php foreach($stages as &$stage) : ?>
|
<?php foreach($stages as &$stage) : ?>
|
||||||
<p><?=$stage['question']?></p>
|
<p><?=$stage['question']?></p>
|
||||||
<div class="cf">
|
<div class="cf">
|
||||||
<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 : ?>
|
||||||
<?=_('lost')?>
|
<?=_('lost')?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
<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 : ?>
|
||||||
<?=_('lost')?>
|
<?=_('lost')?>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</p>
|
</p>
|
||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue