aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authornodiscc <nodiscc@gmail.com>2015-03-08 00:53:05 +0100
committernodiscc <nodiscc@gmail.com>2015-03-11 19:19:18 +0100
commit4a1a1190a6c9f72f72bce7e8989541e58f366a90 (patch)
treedcbef459b509f12be9fb296fdcb1dd86cd76b9c9
parent3ef1da28e8cc5afcfe58be067e7e60528ce72f1a (diff)
downloadShaarli-4a1a1190a6c9f72f72bce7e8989541e58f366a90.tar.gz
Shaarli-4a1a1190a6c9f72f72bce7e8989541e58f366a90.tar.zst
Shaarli-4a1a1190a6c9f72f72bce7e8989541e58f366a90.zip
picwall: link directly to the target URL (not the permalink)
-rw-r--r--index.php1
-rw-r--r--tpl/picwall.html2
2 files changed, 1 insertions, 2 deletions
diff --git a/index.php b/index.php
index 066058e6..6189e0b8 100644
--- a/index.php
+++ b/index.php
@@ -1271,7 +1271,6 @@ function renderPage()
1271 if ($thumb!='') // Only output links which have a thumbnail. 1271 if ($thumb!='') // Only output links which have a thumbnail.
1272 { 1272 {
1273 $link['thumbnail']=$thumb; // Thumbnail HTML code. 1273 $link['thumbnail']=$thumb; // Thumbnail HTML code.
1274 $link['permalink']=$permalink;
1275 $linksToDisplay[]=$link; // Add to array. 1274 $linksToDisplay[]=$link; // Add to array.
1276 } 1275 }
1277 } 1276 }
diff --git a/tpl/picwall.html b/tpl/picwall.html
index ea1ef420..e686afe1 100644
--- a/tpl/picwall.html
+++ b/tpl/picwall.html
@@ -9,7 +9,7 @@
9 <div id="picwall_container"> 9 <div id="picwall_container">
10 {loop="linksToDisplay"} 10 {loop="linksToDisplay"}
11 <div class="picwall_pictureframe"> 11 <div class="picwall_pictureframe">
12 {$value.thumbnail}<a href="{$value.permalink}"><span class="info">{$value.title|htmlspecialchars}</span></a> 12 {$value.thumbnail}<a href="{$value.url}"><span class="info">{$value.title|htmlspecialchars}</span></a>
13 </div> 13 </div>
14 {/loop} 14 {/loop}
15 </div> 15 </div>