-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
33 lines (29 loc) · 971 Bytes
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* This file registers the FeedReader Plugin.
*
* The FeedReader plugin provides an unified access to the elements of a feed.
* A feed might be of type RSS, Atom or JSON and is accessed by its URL. A snippet
* and a blocks blueprint are provided as a starting point.
*
* @version 1.0.0
* @author Uwe Gehring <[email protected]
* @copyright Uwe Gehring <[email protected]
* @license GNU General Public License v3.0
* @link
*/
use Kirby\Cms\App as Kirby;
load(['Adspectus\\FeedReader\\FeedReader' => 'lib/FeedReader.php'], __DIR__);
Kirby::plugin('adspectus/feedreader', [
'options' => [
'cache' => true,
'feedOptions' => ['type' => 'auto','useCache' => true,'cacheValidity' => (24*60)],
'urlOptions' => ['basicAuth' => ''],
],
'blueprints' => [
'blocks/feedreader' => __DIR__ . '/blueprints/blocks/feedreader.yml',
],
'snippets' => [
'blocks/feedreader' => __DIR__ . '/snippets/blocks/feedreader.php'
]
]);