2018-08-10 20:09:28 -04:00
|
|
|
<main class="media-list">
|
2017-02-15 16:30:14 -05:00
|
|
|
<?php if ($auth->isAuthenticated()): ?>
|
2017-09-14 15:32:53 -04:00
|
|
|
<a class="bracketed" href="<?= $url->generate($collection_type . '.collection.add.get') ?>">Add Item</a>
|
2015-12-08 14:52:59 -05:00
|
|
|
<?php endif ?>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php if (empty($sections)): ?>
|
|
|
|
<h3>There's nothing here!</h3>
|
|
|
|
<?php else: ?>
|
2019-07-10 13:32:05 -04:00
|
|
|
<br />
|
|
|
|
<label>Filter: <input type='text' class='media-filter' /></label>
|
|
|
|
<br />
|
2018-08-08 17:04:35 -04:00
|
|
|
<div class="tabs">
|
|
|
|
<?php $i = 0; ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php foreach ($sections as $name => $items): ?>
|
2020-04-30 15:30:52 -04:00
|
|
|
<input type="radio" id="collection-tab-<?= $i ?>" name="collection-tabs" />
|
2018-09-20 10:41:28 -04:00
|
|
|
<label for="collection-tab-<?= $i ?>"><h2><?= $name ?></h2></label>
|
2018-11-01 22:01:09 -04:00
|
|
|
<div class="content full-height">
|
2015-06-16 11:11:35 -04:00
|
|
|
<section class="media-wrap">
|
2018-08-08 17:04:35 -04:00
|
|
|
<?php foreach ($items as $item): ?>
|
2018-08-10 20:09:28 -04:00
|
|
|
<?php include __DIR__ . '/cover-item.php'; ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php endforeach ?>
|
2015-06-11 12:54:54 -04:00
|
|
|
</section>
|
2018-08-08 17:04:35 -04:00
|
|
|
</div>
|
|
|
|
<?php $i++; ?>
|
2015-06-16 11:11:35 -04:00
|
|
|
<?php endforeach ?>
|
2019-07-10 13:32:05 -04:00
|
|
|
<!-- All Tab -->
|
2020-04-30 15:30:52 -04:00
|
|
|
<input type='radio' checked='checked' id='collection-tab-<?= $i ?>' name='collection-tabs' />
|
2019-07-10 13:32:05 -04:00
|
|
|
<label for='collection-tab-<?= $i ?>'><h2>All</h2></label>
|
|
|
|
<div class='content full-height'>
|
|
|
|
<section class="media-wrap">
|
2020-04-30 15:30:52 -04:00
|
|
|
<?php foreach ($all as $item): ?>
|
2019-07-10 13:32:05 -04:00
|
|
|
<?php include __DIR__ . '/cover-item.php'; ?>
|
|
|
|
<?php endforeach ?>
|
|
|
|
</section>
|
|
|
|
</div>
|
2018-08-08 17:04:35 -04:00
|
|
|
</div>
|
2015-07-02 14:04:04 -04:00
|
|
|
<?php endif ?>
|
2015-09-28 14:41:45 -04:00
|
|
|
</main>
|