set CSS-class and headline for Epilog if the game is over (Issue #338)
This commit is contained in:
parent
a84aac478d
commit
a4859e1487
1 changed files with 5 additions and 3 deletions
|
|
@ -79,8 +79,12 @@
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
|
|
||||||
<?php if(array_key_exists('Epilog', $questtexts) && count($questtexts['Epilog']) > 0) : ?>
|
<?php if(array_key_exists('Epilog', $questtexts) && count($questtexts['Epilog']) > 0) : ?>
|
||||||
<section>
|
<section <?php if(count($nextquests) == 0 && is_null($nextquestgroup)) : ?>class="gameover"<?php endif ?>>
|
||||||
|
<?php if(count($nextquests) == 0 && is_null($nextquestgroup)) : ?>
|
||||||
|
<h1><?=_('Game over')?></h1>
|
||||||
|
<?php else : ?>
|
||||||
<h1 id="questtext"><?=_('Epilog')?></h1>
|
<h1 id="questtext"><?=_('Epilog')?></h1>
|
||||||
|
<?php endif ?>
|
||||||
<div class="qtextbox">
|
<div class="qtextbox">
|
||||||
<?php foreach($questtexts['Epilog'] as &$questtext) : ?>
|
<?php foreach($questtexts['Epilog'] as &$questtext) : ?>
|
||||||
<p class="qtext cf">
|
<p class="qtext cf">
|
||||||
|
|
@ -142,7 +146,5 @@
|
||||||
<p><?=$nextquestgroup['hierarchy']['title_singular']?> <?=$nextquestgroup['hierarchy']['questgroup_pos']?>: <a href="<?=$linker->link(array('questgroups','questgroup',$seminary['url'],$nextquestgroup['url']))?>"><?=$nextquestgroup['title']?></a></p>
|
<p><?=$nextquestgroup['hierarchy']['title_singular']?> <?=$nextquestgroup['hierarchy']['questgroup_pos']?>: <a href="<?=$linker->link(array('questgroups','questgroup',$seminary['url'],$nextquestgroup['url']))?>"><?=$nextquestgroup['title']?></a></p>
|
||||||
<p><a class="cta orange" href="<?=$linker->link(array('questgroups','questgroup',$seminary['url'],$nextquestgroup['url']))?>"><?=_('Let’s go')?></a></p>
|
<p><a class="cta orange" href="<?=$linker->link(array('questgroups','questgroup',$seminary['url'],$nextquestgroup['url']))?>"><?=_('Let’s go')?></a></p>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<?php else : ?>
|
|
||||||
<h1><?=_('Game over')?></h1>
|
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue