From dda0b5ec6258b94fdd6cdec81eccba3f2b9513a0 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Thu, 4 Feb 2016 17:10:49 +0100 Subject: Show site search reset link --- www/css/phinde.css | 4 ++++ www/index.php | 3 +++ 2 files changed, 7 insertions(+) (limited to 'www') diff --git a/www/css/phinde.css b/www/css/phinde.css index 6d9ad20..a25aa31 100644 --- a/www/css/phinde.css +++ b/www/css/phinde.css @@ -27,4 +27,8 @@ } .hit em.hl { font-weight: bold; +} +.resultinfo { + margin-top: 1ex; + margin-bottom: 2ex; } \ No newline at end of file diff --git a/www/index.php b/www/index.php index 12befbc..0412f82 100644 --- a/www/index.php +++ b/www/index.php @@ -59,8 +59,10 @@ if (preg_match('#site:([^ ]*)#', $query, $matches)) { $site = $matches[1]; $cleanQuery = trim(str_replace('site:' . $site, '', $query)); $site = Helper::noSchema($site); + $urlNoSite = buildLink('?q=' . urlencode($cleanQuery), $filters, null, null); } else { $cleanQuery = $query; + $urlNoSite = null; } $timeBegin = microtime(true); @@ -108,6 +110,7 @@ render( 'queryTime' => round($timeEnd - $timeBegin, 2) . 'ms', 'query' => $query, 'cleanQuery' => $cleanQuery, + 'urlNoSite' => $urlNoSite, 'site' => $site, 'hitcount' => $res->hits->total, 'hits' => $res->hits->hits, -- cgit v1.2.3