Add plugin placeholders in RSS and ATOM feeds templates

This commit is contained in:
ArthurHoaro 2016-08-02 11:55:11 +02:00
parent 80677a23e2
commit 085efc33cc
2 changed files with 12 additions and 9 deletions

View File

@ -6,11 +6,9 @@
<updated>{$last_update}</updated>
{/if}
<link rel="self" href="{$self_link}#" />
{if="!empty($pubsubhub_url)"}
<!-- PubSubHubbub Discovery -->
<link rel="hub" href="{$pubsubhub_url}#" />
<!-- End Of PubSubHubbub Discovery -->
{/if}
{loop="$plugins_feed_header"}
{$value}
{/loop}
<author>
<name>{$index_url}</name>
<uri>{$index_url}</uri>
@ -34,6 +32,9 @@
{loop="$value.taglist"}
<category scheme="{$index_url}?searchtags=" term="{$value|strtolower}" label="{$value}" />
{/loop}
{loop="$value.feed_plugins"}
{$value}
{/loop}
</entry>
{/loop}
</feed>

View File

@ -8,10 +8,9 @@
<copyright>{$index_url}</copyright>
<generator>Shaarli</generator>
<atom:link rel="self" href="{$self_link}" />
{if="!empty($pubsubhub_url)"}
<!-- PubSubHubbub Discovery -->
<atom:link rel="hub" href="{$pubsubhub_url}" />
{/if}
{loop="$plugins_feed_header"}
{$value}
{/loop}
{loop="$links"}
<item>
<title>{$value.title}</title>
@ -29,6 +28,9 @@
{loop="$value.taglist"}
<category domain="{$index_url}?searchtags=">{$value}</category>
{/loop}
{loop="$value.feed_plugins"}
{$value}
{/loop}
</item>
{/loop}
</channel>