2020-05-16 15:53:45 +00:00
|
|
|
title = "Feed"
|
2020-10-23 22:54:30 +00:00
|
|
|
url = "/feed/:channel?/:tag?/"
|
2020-05-16 15:53:45 +00:00
|
|
|
layout = "default"
|
|
|
|
is_hidden = 0
|
2020-10-23 22:54:30 +00:00
|
|
|
|
|
|
|
[ShortFeed]
|
|
|
|
channelFilter = "{{ :channel }}"
|
|
|
|
tagFilter = "{{ :tag }}"
|
|
|
|
maxItems = 50
|
|
|
|
|
|
|
|
[ChannelList]
|
|
|
|
includeEmpty = 0
|
|
|
|
|
|
|
|
[TagList]
|
2020-05-16 15:53:45 +00:00
|
|
|
==
|
2020-10-23 22:54:30 +00:00
|
|
|
<?php
|
2020-10-28 23:56:43 +00:00
|
|
|
function onStart()
|
|
|
|
{
|
2020-10-31 23:07:23 +00:00
|
|
|
if (empty($this->param('channel'))) $this['channelfilter'] = 'all';
|
|
|
|
else $this['channelfilter'] = explode(',', $this->param('channel'));
|
|
|
|
|
2020-10-28 23:56:43 +00:00
|
|
|
$this->addJs('https://cdnjs.cloudflare.com/ajax/libs/jqcloud/1.0.3/jqcloud.min.js');
|
2020-11-01 01:13:53 +00:00
|
|
|
$this->addJs('assets/javascript/feed.js');
|
2020-10-23 22:54:30 +00:00
|
|
|
}
|
|
|
|
?>
|
|
|
|
==
|
2020-10-28 23:56:43 +00:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-9">
|
|
|
|
<h1>Feed</h1>
|
|
|
|
<div id="feedarea" class="col-container masonry">
|
|
|
|
{% partial 'feed/template' feeditemclass='col-sm-12 col-md-6 col-xl-4' %}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-3">
|
|
|
|
<h2>Channels</h2>
|
2020-10-31 23:07:23 +00:00
|
|
|
{% partial 'feed/channels' %}
|
2020-10-28 23:56:43 +00:00
|
|
|
|
|
|
|
<h2>Tags</h2>
|
|
|
|
<div id="tagcloud"><img src="{{ 'assets/images/loading.svg' | theme }}"></div>
|
|
|
|
</div>
|
|
|
|
</div>
|