aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/linklist.html
diff options
context:
space:
mode:
authorVirtualTam <virtualtam+github@flibidi.net>2016-10-17 10:20:50 +0200
committerGitHub <noreply@github.com>2016-10-17 10:20:50 +0200
commit209aa96e7e32d810db30d2eb437cef2280c5cad6 (patch)
treed7bde9c9a66fd2049b4ddb7b02f3c7351504166b /tpl/linklist.html
parent06eec9bf764662cd328627247a1f43e4abd3c5ad (diff)
parentdec5fe9c6973054a1301982f910de86a19502b55 (diff)
downloadShaarli-209aa96e7e32d810db30d2eb437cef2280c5cad6.tar.gz
Shaarli-209aa96e7e32d810db30d2eb437cef2280c5cad6.tar.zst
Shaarli-209aa96e7e32d810db30d2eb437cef2280c5cad6.zip
Merge pull request #660 from virtualtam/fix/template/loop
Cleanup: explicitely loop over PHP variables in templates
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