aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/linklist.html
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2016-10-16 17:41:08 +0200
committerVirtualTam <virtualtam@flibidi.net>2016-10-16 17:41:08 +0200
commitdec5fe9c6973054a1301982f910de86a19502b55 (patch)
treeb78d43b5692ee6d80ea4e1bb4ac5345c22b880a6 /tpl/linklist.html
parentbb70e690598d270951148e003a4dc253b05868b4 (diff)
downloadShaarli-dec5fe9c6973054a1301982f910de86a19502b55.tar.gz
Shaarli-dec5fe9c6973054a1301982f910de86a19502b55.tar.zst
Shaarli-dec5fe9c6973054a1301982f910de86a19502b55.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.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/tpl/linklist.html b/tpl/linklist.html
index 9979f12a..ddfd729a 100644
--- a/tpl/linklist.html
+++ b/tpl/linklist.html
@@ -63,7 +63,7 @@
63 </div> 63 </div>
64 {/if} 64 {/if}
65 <ul> 65 <ul>
66 {loop="links"} 66 {loop="$links"}
67 <li{if="$value.class"} class="{$value.class}"{/if}> 67 <li{if="$value.class"} class="{$value.class}"{/if}>
68 <a id="{$value.shorturl}"></a> 68 <a id="{$value.shorturl}"></a>
69 <div class="thumbnail">{$value.url|thumbnail}</div> 69 <div class="thumbnail">{$value.url|thumbnail}</div>
@@ -110,7 +110,7 @@
110 <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br> 110 <a href="{$value.real_url}"><span class="linkurl" title="Short link">{$value.url}</span></a><br>
111 {if="$value.tags"} 111 {if="$value.tags"}
112 <div class="linktaglist"> 112 <div class="linktaglist">
113 {loop="value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop} 113 {loop="$value.taglist"}<span class="linktag" title="Add tag"><a href="?addtag={$value|urlencode}">{$value}</a></span> {/loop}
114 </div> 114 </div>
115 {/if} 115 {/if}
116 116