aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/dailyrss.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2015-07-10 15:41:59 +0200
committerArthurHoaro <arthur@hoa.ro>2015-07-11 10:25:25 +0200
commitf3b8f9f0f80a05739756fb05cbec403011c46607 (patch)
tree05d38f4d4feba7c3168adcc22aaab0dbe0bc5c9b /tpl/dailyrss.html
parente92f1ba59edb9fd60b185dc633e64a62dffe3b04 (diff)
downloadShaarli-f3b8f9f0f80a05739756fb05cbec403011c46607.tar.gz
Shaarli-f3b8f9f0f80a05739756fb05cbec403011c46607.tar.zst
Shaarli-f3b8f9f0f80a05739756fb05cbec403011c46607.zip
Include the whole <item> in dailyRSS
Allow custom date format and title in templates. Also a bit of code style review. Fixes #182
Diffstat (limited to 'tpl/dailyrss.html')
-rw-r--r--tpl/dailyrss.html24
1 files changed, 16 insertions, 8 deletions
diff --git a/tpl/dailyrss.html b/tpl/dailyrss.html
index 1b7ab8e9..d959d6be 100644
--- a/tpl/dailyrss.html
+++ b/tpl/dailyrss.html
@@ -1,8 +1,16 @@
1{loop="links"} 1<item>
2 <h3><a href="{$value.url}">{$value.title}</a></h3> 2 <title>{$title} - {function="strftime('%A %e %B %Y', $daydate)"}</title>
3 <small>{if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{function="strftime('%c', $value.timestamp)"} - {/if}{if="$value.tags"}{$value.tags}{/if}<br> 3 <guid>{$absurl}</guid>
4 {$value.url}</small><br> 4 <link>{$absurl}</link>
5 {if="$value.thumbnail"}{$value.thumbnail}{/if}<br> 5 <pubDate>{$rfc822date}</pubDate>
6 {if="$value.description"}{$value.formatedDescription}{/if} 6 <description><![CDATA[
7 <br><br><hr> 7 {loop="links"}
8{/loop} \ No newline at end of file 8 <h3><a href="{$value.url}">{$value.title}</a></h3>
9 <small>{if="!$GLOBALS['config']['HIDE_TIMESTAMPS']"}{function="strftime('%c', $value.timestamp)"} - {/if}{if="$value.tags"}{$value.tags}{/if}<br>
10 {$value.url}</small><br>
11 {if="$value.thumbnail"}{$value.thumbnail}{/if}<br>
12 {if="$value.description"}{$value.formatedDescription}{/if}
13 <br><br><hr>
14 {/loop}
15 ]]></description>
16</item> \ No newline at end of file