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

View file

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