Skip to content

Commit 8596b08

Browse files
committed
fixed cases ensitive namespace
1 parent dd61a41 commit 8596b08

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "bnomei/kirby3-feed",
33
"type": "plugin",
4-
"version": "1.0.4",
4+
"version": "1.0.5",
55
"description": "Generate a RSS/JSON-Feed from a Pages-Collection",
66
"license": "MIT",
77
"autoload": {

snippets/feed/rss.php

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
1-
<?php use \Kirby\Toolkit\XML;
1+
<?php use \Kirby\Toolkit\Xml;
22

33
echo '<?xml version="1.0" encoding="utf-8"?>';
44
?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom">
55

66
<channel>
7-
<title><?= XML::encode($title) ?></title>
8-
<link><?= XML::encode($link) ?></link>
9-
<lastBuildDate><?= \date('r', $modified) ?></lastBuildDate>
10-
<atom:link href="<?= XML::encode($url) ?>" rel="self" type="application/rss+xml" />
7+
<title><?php echo Xml::encode($title) ?></title>
8+
<link><?php echo Xml::encode($link) ?></link>
9+
<lastBuildDate><?php echo \date('r', $modified) ?></lastBuildDate>
10+
<atom:link href="<?php echo Xml::encode($url) ?>" rel="self" type="application/rss+xml" />
1111

1212
<?php if (!empty($description)): ?>
13-
<description><?= XML::encode($description) ?></description>
13+
<description><?php echo Xml::encode($description) ?></description>
1414
<?php endif ?>
1515

1616
<?php foreach ($items as $item): ?>
1717
<item>
18-
<title><?= XML::encode($item->title()) ?></title>
19-
<link><?= XML::encode($item->url()) ?></link>
20-
<guid><?= XML::encode($item->id()) ?></guid>
21-
<pubDate><?= $datefield == 'modified' ? $item->modified('r') : $item->date('r', $datefield) ?></pubDate>
22-
<description><![CDATA[<?= $item->{$textfield}()->kirbytext() ?>]]></description>
18+
<title><?php echo Xml::encode($item->title()) ?></title>
19+
<link><?php echo Xml::encode($item->url()) ?></link>
20+
<guid><?php echo Xml::encode($item->id()) ?></guid>
21+
<pubDate><?php echo $datefield == 'modified' ? $item->modified('r') : $item->date('r', $datefield) ?></pubDate>
22+
<description><![CDATA[<?php echo $item->{$textfield}()->kirbytext() ?>]]></description>
2323
</item>
2424
<?php endforeach ?>
2525

0 commit comments

Comments
 (0)