style for seminar list

This commit is contained in:
Daniel 2014-04-17 14:17:24 +02:00
commit 3fb0b9d074

View file

@ -4,30 +4,28 @@
<li><a href="<?=$linker->link('create', 1)?>"><?=_('Create new seminary')?></a></li> <li><a href="<?=$linker->link('create', 1)?>"><?=_('Create new seminary')?></a></li>
</nav> </nav>
<?php endif ?> <?php endif ?>
<ul> <ul class="questgroups cf">
<?php foreach($seminaries as &$seminary) : ?> <?php foreach($seminaries as &$seminary) : ?>
<li> <li>
<?php if(!is_null($seminary['seminarymedia_id'])) : ?> <?php if(!is_null($seminary['seminarymedia_id'])) : ?>
<img src="<?=$linker->link(array('media','seminaryheader',$seminary['url']))?>" /> <img src="<?=$linker->link(array('media','seminaryheader',$seminary['url']))?>" />
<?php endif ?> <?php endif ?>
<h2> <section>
<p class="fwb">
<?php if(count($seminary['userroles']) > 0) : ?> <?php if(count($seminary['userroles']) > 0) : ?>
<a href="<?=$linker->link(array('seminary', $seminary['url']), 1)?>"><?=$seminary['title']?></a> <a href="<?=$linker->link(array('seminary', $seminary['url']), 1)?>"><?=$seminary['title']?></a>
<?php else : ?> <?php else : ?>
<?=$seminary['title']?> <?=$seminary['title']?>
<?php endif ?> <?php endif ?>
</h2> </p>
<details> <p><small><?=sprintf(_('created by %s on %s'), $seminary['creator']['username'], $dateFormatter->format(new \DateTime($seminary['created'])))?></small></p>
<summary> <p><?=\hhu\z\Utils::t($seminary['description'])?></p>
<?=\hhu\z\Utils::t($seminary['description'])?><br /> <?php if(!array_key_exists('usercharacter', $seminary)) : ?>
<?=sprintf(_('created by %s on %s'), $seminary['creator']['username'], $dateFormatter->format(new \DateTime($seminary['created'])))?><br /> <a href="<?=$linker->link(array('characters','register',$seminary['url']))?>" class="cta orange"><?=_('Create a Character')?></a>
<?php if(!array_key_exists('usercharacter', $seminary)) : ?> <?php elseif(count($seminary['userroles']) == 0) : ?>
<a href="<?=$linker->link(array('characters','register',$seminary['url']))?>"><?=_('Create a Character')?></a> <p><?=sprintf(_('Your Character “%s” has not been activated yet'), $seminary['usercharacter']['name'])?></p>
<?php elseif(count($seminary['userroles']) == 0) : ?> <?php endif ?>
<?=sprintf(_('Your Character “%s” has not been activated yet'), $seminary['usercharacter']['name'])?> </section>
<?php endif ?>
</summary>
</details>
</li> </li>
<?php endforeach ?> <?php endforeach ?>
</ul> </ul>