implement basic Questgroups and Quests structure
This commit is contained in:
parent
927d36aa9f
commit
684d31f4bf
19 changed files with 774 additions and 8 deletions
29
views/html/questgroups/questgroup.tpl
Normal file
29
views/html/questgroups/questgroup.tpl
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<h1><?=_('Seminaries')?></h2>
|
||||
<h2><?=$seminary['title']?></h3>
|
||||
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<h3><?=$questgroupshierarchy['title_singular']?> <?=$questgroup['pos']?>: <?=$questgroup['title']?></h3>
|
||||
<?php foreach($texts as &$text) : ?>
|
||||
<p><?=$text['text']?></p>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php foreach($childquestgroupshierarchy as &$hierarchy) : ?>
|
||||
<?php if(count($hierarchy['questgroups']) > 0) : ?>
|
||||
<h3><?=$hierarchy['title_plural']?></h3>
|
||||
<ul>
|
||||
<?php foreach($hierarchy['questgroups'] as &$group) : ?>
|
||||
<li><?=$hierarchy['title_singular']?> <?=$group['pos']?>: <a href="<?=$linker->link(array('questgroups','questgroup',$seminary['url'],$group['url']))?>"><?=$group['title']?></a></li>
|
||||
<?php endforeach?>
|
||||
</ul>
|
||||
<?php endif ?>
|
||||
<?php endforeach ?>
|
||||
|
||||
<?php if(isset($quests) && !is_null($quests)) : ?>
|
||||
<h3>Quests</h3>
|
||||
<ul>
|
||||
<?php foreach($quests as &$quest) : ?>
|
||||
<li><a href="<?=$linker->link(array('quests','quest',$seminary['url'],$questgroup['url'],$quest['url']))?>"><?=$quest['title']?></a></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
<?php endif ?>
|
||||
8
views/html/questgroupshierarchypath/index.tpl
Normal file
8
views/html/questgroupshierarchypath/index.tpl
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
<?php if(count($parentquestgroupshierarchy) > 0) : ?>
|
||||
Pfad:
|
||||
<ul>
|
||||
<?php foreach($parentquestgroupshierarchy as &$hierarchy) : ?>
|
||||
<li><a href="<?=$linker->link(array('questgroups','questgroup',$seminary['url'],$hierarchy['url']))?>"?><?=$hierarchy['hierarchy']['title_singular']?> <?=$hierarchy['pos']?>: <?=$hierarchy['title']?></a></li>
|
||||
<?php endforeach ?>
|
||||
</ul>
|
||||
<?php endif ?>
|
||||
0
views/html/quests/index.tpl
Normal file
0
views/html/quests/index.tpl
Normal file
7
views/html/quests/quest.tpl
Normal file
7
views/html/quests/quest.tpl
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<h1><?=_('Seminaries')?></h1>
|
||||
<h2><?=$seminary['title']?></h2>
|
||||
|
||||
<?=$questgroupshierarchypath?>
|
||||
|
||||
<h3><?=$quest['title']?></h3>
|
||||
<p><?=$quest['text']?></p>
|
||||
|
|
@ -7,3 +7,14 @@
|
|||
<p>
|
||||
<?=sprintf(_('created by %s on %s'), $seminary['creator']['username'], $dateFormatter->format(new \DateTime($seminary['created'])))?>
|
||||
</p>
|
||||
<h3>Beschreibung</h3>
|
||||
<p><?=$seminary['description']?></p>
|
||||
|
||||
<?php foreach($questgroupshierarchy as &$hierarchy) : ?>
|
||||
<h3><?=$hierarchy['title_plural']?></h3>
|
||||
<ul>
|
||||
<?php foreach($hierarchy['questgroups'] as &$group) : ?>
|
||||
<li><?=$hierarchy['title_singular']?> <?=$group['pos']?>: <a href="<?=$linker->link(array('questgroups','questgroup',$seminary['url'],$group['url']))?>"><?=$group['title']?></a></li>
|
||||
<?php endforeach?>
|
||||
</ul>
|
||||
<?php endforeach ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue