From cae64e52e47811a3fbef534f296b8952680d0d8f Mon Sep 17 00:00:00 2001 From: Florian Eula Date: Mon, 22 Dec 2014 17:11:53 +0100 Subject: Refactored the daily column generation (only one loop) --- tpl/daily.html | 67 +++++++++++++++++++++++++++------------------------------- 1 file changed, 31 insertions(+), 36 deletions(-) (limited to 'tpl') diff --git a/tpl/daily.html b/tpl/daily.html index c15a7062..b92425b5 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -7,7 +7,7 @@
All links of one day
in a single page.
{if="$previousday"} <Previous day{else}<Previous day{/if} - - + - {if="$nextday"}Next day>{else}Next day>{/if}

Daily RSS Feed @@ -15,43 +15,38 @@
The Daily Shaarli
——————————— {$day} ———————————
- - {if="$linksToDisplay"} -
- {loop="col1"} -
- - {if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} - - {if="$value.thumbnail"}
{$value.thumbnail}
{/if} -
{$value.formatedDescription}
-
- {/loop} -
-
- {loop="col2"} -
- - {if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} - - {if="$value.thumbnail"}
{$value.thumbnail}
{/if} -
{$value.formatedDescription}
-
- {/loop} -
- -
- {loop="col3"} -
- - {if="$value.tags"}
{loop="value.taglist"}{$value|htmlspecialchars} - {/loop}
{/if} - - {if="$value.thumbnail"}
{$value.thumbnail}
{/if} -
{$value.formatedDescription}
-
+ {if="$linksToDisplay"} + {loop="cols"} + {if="isset($value[0])"} +
+ {loop="value"} + {$link=$value} +
+ + {if="$link.tags"} +
+ {loop="link.taglist"} + {$value|htmlspecialchars} - + {/loop} +
+ {/if} + + {if="$link.thumbnail"} +
{$link.thumbnail}
+ {/if} +
{$link.formatedDescription}
+
+ {/loop} +
+ {/if} {/loop} -
{else}
No articles on this day.
{/if} -- cgit v1.2.3