questlab/views/html/achievements/index.tpl
2014-04-13 15:10:35 +02:00

28 lines
1,015 B
Go Template
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php if(!is_null($seminary['seminarymedia_id'])) : ?>
<div class="moodpic">
<img src="<?=$linker->link(array('media','seminaryheader',$seminary['url']))?>" />
</div>
<?php endif ?>
<h1><a href="<?=$linker->link(array('seminaries',$seminary['url']))?>"><?=$seminary['title']?></a></h1>
<h2><?=_('Achievements')?></h2>
<ul>
<?php foreach($achievements as &$achievement) : ?>
<li>
<?php if(!is_null($achievement[$achievement['media_index']])) : ?>
<img src="<?=$linker->link(array('media','achievement',$seminary['url'],$achievement['url']))?>" />
<?php endif ?>
<h3><?=$achievement['title']?></h3>
<?=\hhu\z\Utils::t($achievement['description'])?><br />
<?php if(array_key_exists('characterProgress', $achievement)) : ?>
<div class="cf">
<div class="xpbar">
<span style="width:<?=round($achievement['characterProgress']*100)?>%"></span>
</div>
<p class="xpnumeric"><?=round($achievement['characterProgress']*100)?>%</p>
</div>
<?php endif ?>
</li>
<?php endforeach?>
</ul>