2022-02-05 18:58:30 -05:00
|
|
|
{layout '../layouts/default.latte'}
|
|
|
|
|
|
|
|
{block header}
|
|
|
|
<p class="title">Discover</p>
|
|
|
|
{/block}
|
|
|
|
|
|
|
|
{block content}
|
|
|
|
{foreach $feed->items as $type => $items}
|
|
|
|
<p class="title">{$type|firstUpper}</p>
|
|
|
|
<div class="columns is-multiline is-vcentered">
|
|
|
|
{foreach $items as $item}
|
|
|
|
<div class="column is-one-quarter">
|
2022-02-06 08:22:23 -05:00
|
|
|
{embed '../components/card.latte'}
|
|
|
|
{block content}
|
|
|
|
<div class="media">
|
|
|
|
<!-- Show image if exists -->
|
|
|
|
{if !empty($item->cardItem->cover)}
|
|
|
|
<div class="media-left">
|
|
|
|
<figure class="image is-96x96">
|
|
|
|
<img width="96" height="96" src="{path('/stream?url=' . urlencode($item->cardItem->cover))}" />
|
|
|
|
</figure>
|
2022-02-05 18:58:30 -05:00
|
|
|
</div>
|
2022-02-06 08:22:23 -05:00
|
|
|
{/if}
|
|
|
|
<div class="media-content">
|
|
|
|
<p class="title">{$item->cardItem->title}</p>
|
|
|
|
<p class="subtitle">{$item->cardItem->subTitle}</p>
|
2022-02-05 18:58:30 -05:00
|
|
|
</div>
|
|
|
|
</div>
|
2022-02-06 08:22:23 -05:00
|
|
|
<div class="content">
|
|
|
|
<p>{$item->cardItem->description}</p>
|
|
|
|
</div>
|
|
|
|
{/block}
|
|
|
|
{block footer}
|
|
|
|
<a href="{path($item->cardItem->link)}" class="card-footer-item">Go</a>
|
|
|
|
{/block}
|
|
|
|
{/embed}
|
2022-02-05 18:58:30 -05:00
|
|
|
</div>
|
|
|
|
{/foreach}
|
|
|
|
</div>
|
|
|
|
{if !$iterator->last}
|
|
|
|
<hr />
|
|
|
|
{/if}
|
|
|
|
{/foreach}
|
|
|
|
{/block}
|