From 4e4479ddc561abaf3564359bdb663dd954c4215b Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Sun, 16 Oct 2016 17:41:08 +0200 Subject: 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(-) (limited to 'tpl') 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}
    @@ -122,7 +122,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 b9fc5275..89879678 100644 --- a/tpl/page.header.html +++ b/tpl/page.header.html @@ -50,7 +50,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"} -- cgit v1.2.3