ja.son-williams.ca/www/themes/jason-williamsca/pages/feed.htm

41 lines
1011 B
HTML
Raw Permalink Normal View History

2020-05-16 15:53:45 +00:00
title = "Feed"
url = "/feed/:channel?/:tag?/"
2020-05-16 15:53:45 +00:00
layout = "default"
is_hidden = 0
[ShortFeed]
channelFilter = "{{ :channel }}"
tagFilter = "{{ :tag }}"
maxItems = 50
[ChannelList]
includeEmpty = 0
[TagList]
2020-05-16 15:53:45 +00:00
==
<?php
function onStart()
{
if (empty($this->param('channel'))) $this['channelfilter'] = 'all';
else $this['channelfilter'] = explode(',', $this->param('channel'));
$this->addJs('https://cdnjs.cloudflare.com/ajax/libs/jqcloud/1.0.3/jqcloud.min.js');
$this->addJs('assets/javascript/feed.js');
}
?>
==
<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>
{% partial 'feed/channels' %}
<h2>Tags</h2>
<div id="tagcloud"><img src="{{ 'assets/images/loading.svg' | theme }}"></div>
</div>
</div>