diff options
author | VirtualTam <virtualtam@flibidi.net> | 2016-10-16 17:41:08 +0200 |
---|---|---|
committer | ArthurHoaro <arthur@hoa.ro> | 2016-11-05 14:30:13 +0100 |
commit | 4e4479ddc561abaf3564359bdb663dd954c4215b (patch) | |
tree | 5e530d054da58789163b1f936ecd4f27bc2eb37d /tpl/linklist.html | |
parent | baec9c402873a716497b591b9756bf5b2c46ed9b (diff) | |
download | Shaarli-4e4479ddc561abaf3564359bdb663dd954c4215b.tar.gz Shaarli-4e4479ddc561abaf3564359bdb663dd954c4215b.tar.zst Shaarli-4e4479ddc561abaf3564359bdb663dd954c4215b.zip |
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 <virtualtam@flibidi.net>
Diffstat (limited to 'tpl/linklist.html')
-rw-r--r-- | tpl/linklist.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html index 8608e61e..9782cff6 100644 --- a/tpl/linklist.html +++ b/tpl/linklist.html | |||
@@ -75,7 +75,7 @@ | |||
75 | </div> | 75 | </div> |
76 | {/if} | 76 | {/if} |
77 | <ul> | 77 | <ul> |
78 | {loop="links"} | 78 | {loop="$links"} |
79 | <li{if="$value.class"} class="{$value.class}"{/if}> | 79 | <li{if="$value.class"} class="{$value.class}"{/if}> |
80 | <a id="{$value.shorturl}"></a> | 80 | <a id="{$value.shorturl}"></a> |
81 | <div class="thumbnail">{$value.url|thumbnail}</div> | 81 | <div class="thumbnail">{$value.url|thumbnail}</div> |
@@ -122,7 +122,7 @@ | |||
122 | <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br> | 122 | <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br> |
123 | {if="$value.tags"} | 123 | {if="$value.tags"} |
124 | <div class="linktaglist"> | 124 | <div class="linktaglist"> |
125 | {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop} | 125 | {loop="$value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop} |
126 | </div> | 126 | </div> |
127 | {/if} | 127 | {/if} |
128 | 128 | ||