diff options
author | ArthurHoaro <arthur@hoa.ro> | 2016-08-02 11:55:11 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-12-20 11:32:15 +0100 |
commit | 085efc33cc0cadaed0c01d926604e219e1d44365 (patch) | |
tree | 3b5a8bdc8719b8928d7afc6297c46b904ad25584 | |
parent | 80677a23e2e10d78bc527e9754286787b453ce61 (diff) | |
download | Shaarli-085efc33cc0cadaed0c01d926604e219e1d44365.tar.gz Shaarli-085efc33cc0cadaed0c01d926604e219e1d44365.tar.zst Shaarli-085efc33cc0cadaed0c01d926604e219e1d44365.zip |
Add plugin placeholders in RSS and ATOM feeds templates
-rw-r--r-- | tpl/feed.atom.html | 11 | ||||
-rw-r--r-- | 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 @@ | |||
6 | <updated>{$last_update}</updated> | 6 | <updated>{$last_update}</updated> |
7 | {/if} | 7 | {/if} |
8 | <link rel="self" href="{$self_link}#" /> | 8 | <link rel="self" href="{$self_link}#" /> |
9 | {if="!empty($pubsubhub_url)"} | 9 | {loop="$plugins_feed_header"} |
10 | <!-- PubSubHubbub Discovery --> | 10 | {$value} |
11 | <link rel="hub" href="{$pubsubhub_url}#" /> | 11 | {/loop} |
12 | <!-- End Of PubSubHubbub Discovery --> | ||
13 | {/if} | ||
14 | <author> | 12 | <author> |
15 | <name>{$index_url}</name> | 13 | <name>{$index_url}</name> |
16 | <uri>{$index_url}</uri> | 14 | <uri>{$index_url}</uri> |
@@ -34,6 +32,9 @@ | |||
34 | {loop="$value.taglist"} | 32 | {loop="$value.taglist"} |
35 | <category scheme="{$index_url}?searchtags=" term="{$value|strtolower}" label="{$value}" /> | 33 | <category scheme="{$index_url}?searchtags=" term="{$value|strtolower}" label="{$value}" /> |
36 | {/loop} | 34 | {/loop} |
35 | {loop="$value.feed_plugins"} | ||
36 | {$value} | ||
37 | {/loop} | ||
37 | </entry> | 38 | </entry> |
38 | {/loop} | 39 | {/loop} |
39 | </feed> | 40 | </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 @@ | |||
8 | <copyright>{$index_url}</copyright> | 8 | <copyright>{$index_url}</copyright> |
9 | <generator>Shaarli</generator> | 9 | <generator>Shaarli</generator> |
10 | <atom:link rel="self" href="{$self_link}" /> | 10 | <atom:link rel="self" href="{$self_link}" /> |
11 | {if="!empty($pubsubhub_url)"} | 11 | {loop="$plugins_feed_header"} |
12 | <!-- PubSubHubbub Discovery --> | 12 | {$value} |
13 | <atom:link rel="hub" href="{$pubsubhub_url}" /> | 13 | {/loop} |
14 | {/if} | ||
15 | {loop="$links"} | 14 | {loop="$links"} |
16 | <item> | 15 | <item> |
17 | <title>{$value.title}</title> | 16 | <title>{$value.title}</title> |
@@ -29,6 +28,9 @@ | |||
29 | {loop="$value.taglist"} | 28 | {loop="$value.taglist"} |
30 | <category domain="{$index_url}?searchtags=">{$value}</category> | 29 | <category domain="{$index_url}?searchtags=">{$value}</category> |
31 | {/loop} | 30 | {/loop} |
31 | {loop="$value.feed_plugins"} | ||
32 | {$value} | ||
33 | {/loop} | ||
32 | </item> | 34 | </item> |
33 | {/loop} | 35 | {/loop} |
34 | </channel> | 36 | </channel> |