limit user and Character names to 12 chars
This commit is contained in:
commit
e242e976e8
3450 changed files with 592978 additions and 0 deletions
51
questtypes/bossfight/html/quest.tpl
Normal file
51
questtypes/bossfight/html/quest.tpl
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
<div class="cf">
|
||||
<section class="opponent">
|
||||
<p class="fwb"><?=$character['name']?></p>
|
||||
<p class="portrait"><img src="<?=$linker->link(array('media','avatar',$seminary['url'],$character['charactertype_url'],$character['xplevel']))?>" class="hero" /></p>
|
||||
<p>
|
||||
<?php if($lives['character'] > 0) : ?>
|
||||
<?php foreach(range(1,$lives['character']) as $i) : ?>
|
||||
<i class="fa fa-heart fa-fw"></i>
|
||||
<?php endforeach ?>
|
||||
<?php else : ?>
|
||||
<?=_('lost')?>
|
||||
<?php endif ?>
|
||||
</p>
|
||||
</section>
|
||||
<section class="opponent">
|
||||
<p class="fwb"><?=$fight['bossname']?></p>
|
||||
<p class="portrait"><img src="<?=$linker->link(array('media','seminary',$seminary['url'],$fight['bossmedia']['url']))?>" class="boss" /></p>
|
||||
<p>
|
||||
<?php if($lives['boss'] > 0) : ?>
|
||||
<?php foreach(range(1,$lives['boss']) as $i) : ?>
|
||||
<i class="fa fa-heart fa-fw"></i>
|
||||
<?php endforeach ?>
|
||||
<?php else : ?>
|
||||
<b><?=_('lost')?></b>
|
||||
<?php endif ?>
|
||||
</p>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<p><?=\hhu\z\Utils::t($stage['text'])?></p>
|
||||
|
||||
<form method="post" action="#task">
|
||||
<input type="hidden" name="stage" value="<?=$stage['id']?>" />
|
||||
<ul class="bossfight cf">
|
||||
<?php foreach($childStages as &$childStage) : ?>
|
||||
<li class="option">
|
||||
<p><i>
|
||||
<?php if(array_key_exists('answer', $childStage) && $childStage['answer']) : ?>→<?php endif ?>
|
||||
<?=\hhu\z\Utils::t($childStage['question'])?>
|
||||
</i></p>
|
||||
<p><input type="submit" name="submit_stages[<?=$childStage['id']?>]" value="<?=_('Choose')?>" /></p>
|
||||
</li>
|
||||
<?php endforeach?>
|
||||
<?php if($lives['character'] == 0 || $lives['boss'] == 0) : ?>
|
||||
<li>
|
||||
<input type="hidden" name="answers" value="" />
|
||||
<input type="submit" name="submit" value="<?=_('solve')?>" />
|
||||
</li>
|
||||
<?php endif ?>
|
||||
</ul>
|
||||
</form>
|
||||
38
questtypes/bossfight/html/submission.tpl
Normal file
38
questtypes/bossfight/html/submission.tpl
Normal file
|
|
@ -0,0 +1,38 @@
|
|||
<div class="cf">
|
||||
<section class="opponent">
|
||||
<p class="portrait"><img src="<?=$linker->link(array('media','avatar',$seminary['url'],$character['charactertype_url'],$character['xplevel']))?>" class="hero" /></p>
|
||||
</section>
|
||||
<section class="opponent">
|
||||
<p class="portrait"><img src="<?=$linker->link(array('media','seminary',$seminary['url'],$fight['bossmedia']['url']))?>" class="boss" /></p>
|
||||
</section>
|
||||
</div>
|
||||
|
||||
<?php foreach($stages as &$stage) : ?>
|
||||
<p><?=$stage['question']?></p>
|
||||
<div class="cf">
|
||||
<section class="opponent">
|
||||
<p class="fwb"><?=$character['name']?></p>
|
||||
<p>
|
||||
<?php if($stage['lives']['character'] > 0) : ?>
|
||||
<?php foreach(range(1,$stage['lives']['character']) as $i) : ?>
|
||||
<i class="fa fa-heart fa-fw"></i>
|
||||
<?php endforeach ?>
|
||||
<?php else : ?>
|
||||
<?=_('lost')?>
|
||||
<?php endif ?>
|
||||
</p>
|
||||
</section>
|
||||
<section class="opponent">
|
||||
<p class="fwb"><?=$fight['bossname']?></p>
|
||||
<p>
|
||||
<?php if($stage['lives']['boss'] > 0) : ?>
|
||||
<?php foreach(range(1,$stage['lives']['boss']) as $i) : ?>
|
||||
<i class="fa fa-heart fa-fw"></i>
|
||||
<?php endforeach ?>
|
||||
<?php else : ?>
|
||||
<b><?=_('lost')?></b>
|
||||
<?php endif ?>
|
||||
</p>
|
||||
</section>
|
||||
</div>
|
||||
<?php endforeach ?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue