diff options
author | ArthurHoaro <arthur@hoa.ro> | 2015-07-10 15:41:59 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2015-07-11 10:25:25 +0200 |
commit | f3b8f9f0f80a05739756fb05cbec403011c46607 (patch) | |
tree | 05d38f4d4feba7c3168adcc22aaab0dbe0bc5c9b /tpl | |
parent | e92f1ba59edb9fd60b185dc633e64a62dffe3b04 (diff) | |
download | Shaarli-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')
-rw-r--r-- | tpl/dailyrss.html | 24 |
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 | ||