]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Add plugin placeholders in RSS and ATOM feeds templates
authorArthurHoaro <arthur@hoa.ro>
Tue, 2 Aug 2016 09:55:11 +0000 (11:55 +0200)
committerArthurHoaro <arthur@hoa.ro>
Tue, 20 Dec 2016 10:32:15 +0000 (11:32 +0100)
tpl/feed.atom.html
tpl/feed.rss.html

index aead04592af4daf988d3ef9643c0b85a3203cf74..29187505deb8e0ea470d4f8eddf217ae2b2a18ff 100644 (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>
index e18dbf9bcea3f70f6ec4578ff12571e002a06cc8..66d9a8697b1ca9647305559c2da34f4a64d5ca14 100644 (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>