From dec5fe9c6973054a1301982f910de86a19502b55 Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 16 Oct 2016 17:41:08 +0200 Subject: [PATCH] Cleanup: explicitely loop over PHP variables in templates Relates to https://github.com/shaarli/Shaarli/issues/613 Before: {loop="someVariable"} After: {loop="$someVariable"} Signed-off-by: VirtualTam --- tpl/daily.html | 6 +++--- tpl/dailyrss.html | 2 +- tpl/export.bookmarks.html | 2 +- tpl/feed.atom.html | 2 +- tpl/feed.rss.html | 2 +- tpl/linklist.html | 4 ++-- tpl/page.header.html | 2 +- tpl/picwall.html | 2 +- tpl/tagcloud.html | 2 +- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/tpl/daily.html b/tpl/daily.html index dde1f376..b82ad483 100644 --- a/tpl/daily.html +++ b/tpl/daily.html @@ -42,10 +42,10 @@
{if="$linksToDisplay"} - {loop="cols"} + {loop="$cols"} {if="isset($value[0])"}
- {loop="value"} + {loop="$value"} {$link=$value}
{/if}
    - {loop="links"} + {loop="$links"}
    {$value.url|thumbnail}
    @@ -110,7 +110,7 @@ {$value.url}
    {if="$value.tags"}
    - {loop="value.taglist"}{$value} {/loop} + {loop="$value.taglist"}{$value} {/loop}
    {/if} diff --git a/tpl/page.header.html b/tpl/page.header.html index 0012c689..eac2ed4a 100644 --- a/tpl/page.header.html +++ b/tpl/page.header.html @@ -43,7 +43,7 @@ {if="!empty($plugin_errors) && isLoggedIn()"}
      - {loop="plugin_errors"} + {loop="$plugin_errors"}
    • {$value}
    • {/loop}
    diff --git a/tpl/picwall.html b/tpl/picwall.html index 230c948b..4e227e37 100644 --- a/tpl/picwall.html +++ b/tpl/picwall.html @@ -14,7 +14,7 @@
    - {loop="linksToDisplay"} + {loop="$linksToDisplay"}
    {$value.thumbnail}{$value.title} {loop="$value.picwall_plugin"} diff --git a/tpl/tagcloud.html b/tpl/tagcloud.html index e449f293..05e45273 100644 --- a/tpl/tagcloud.html +++ b/tpl/tagcloud.html @@ -11,7 +11,7 @@
    - {loop="tags"} + {loop="$tags"} {$value.count}{$key} {loop="$value.tag_plugin"}