Skip to content
This repository was archived by the owner on Jan 15, 2021. It is now read-only.

Commit f5bebb8

Browse files
author
Jochen Stals
committed
added event types tpl to agenda module as well.
1 parent b3b9461 commit f5bebb8

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<?php
2+
3+
/**
4+
* @vars
5+
* - $items: multi-level array with children as key for the children.
6+
*/
7+
8+
?>
9+
<div class="row">
10+
<?php foreach ($items as $tid => $item) : ?>
11+
12+
<div class="col-xs-12 col-md-4">
13+
<h2><?php print $item['item']->name; ?></h2>
14+
<?php if (!empty($item['children'])): ?>
15+
<ul>
16+
<?php foreach ($item['children'] as $child_tid => $child_item) : ?>
17+
<li><?php print l($child_item['item']->name, 'agenda/search', array('query' => array('facet' => array('category_eventtype_id' => array($child_item['item']->tid))))); ?></li>
18+
<?php endforeach; ?>
19+
</ul>
20+
<?php endif; ?>
21+
</div>
22+
23+
<?php endforeach; ?>
24+
</div>

0 commit comments

Comments
 (0)