From 085efc33cc0cadaed0c01d926604e219e1d44365 Mon Sep 17 00:00:00 2001 From: ArthurHoaro <arthur@hoa.ro> Date: Tue, 2 Aug 2016 11:55:11 +0200 Subject: Add plugin placeholders in RSS and ATOM feeds templates --- tpl/feed.atom.html | 11 ++++++----- tpl/feed.rss.html | 10 ++++++---- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/tpl/feed.atom.html b/tpl/feed.atom.html index aead0459..29187505 100644 --- a/tpl/feed.atom.html +++ b/tpl/feed.atom.html @@ -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> diff --git a/tpl/feed.rss.html b/tpl/feed.rss.html index e18dbf9b..66d9a869 100644 --- a/tpl/feed.rss.html +++ b/tpl/feed.rss.html @@ -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> -- cgit v1.2.3