From 2732de7c9ef82cee6b8eb8116e376c4be06425c3 Mon Sep 17 00:00:00 2001 From: Seb Sauvage Date: Tue, 18 Oct 2011 09:51:02 +0200 Subject: [PATCH] Version 0.0.27 beta: - Added: Picture wall (which can be filtered too: It will use the same filters (tags,text search) as current page when clicked.) --- index.php | 66 +++++++++++++++++++++++++++++++++++++---------------- shaarli.css | 24 ++++++++++++++++++- 2 files changed, 69 insertions(+), 21 deletions(-) diff --git a/index.php b/index.php index f182ad29..801108b8 100644 --- a/index.php +++ b/index.php @@ -1,5 +1,5 @@ filterFulltext($_GET['searchterm']); + elseif (!empty($_GET['searchtags'])) $linksToDisplay = $LINKSDB->filterTags(trim($_GET['searchtags'])); + else $linksToDisplay = $LINKSDB; + $body=''; + foreach($linksToDisplay as $link) + { + $thumb=thumbnail($link['url']); + if ($thumb!='') + { + $url=htmlspecialchars($link['url'],ENT_QUOTES); + $body.='
'.$thumb.''.htmlspecialchars($link['title']).'
'; + + } + } + $body = '
'.$body.'
'; + $data = array('pageheader'=>'
 ','body'=>$body,'onload'=>''); + templatePage($data); + exit; + + } + // -------- Tag cloud if (startswith($_SERVER["QUERY_STRING"],'do=tagcloud')) { @@ -1344,7 +1370,7 @@ function templateLinkList() foreach(explode(' ',$link['tags']) as $tag) { $tags.=''.htmlspecialchars($tag).' '; } $tags='
'.$tags.'
'; } - $linklist.='
  • '.thumbnail($link['url']); + $linklist.='
  • '.thumbnail($link['url']).'
    '; $linklist.='