From 78b989f29004fab78946e8606b6b9a752efcd4dc Mon Sep 17 00:00:00 2001 From: buckaroo-labs Date: Wed, 20 Dec 2023 21:39:10 -0800 Subject: add 'minimal' theme --- data/templates/minimal/sidebar.block.search.php | 51 +++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 data/templates/minimal/sidebar.block.search.php (limited to 'data/templates/minimal/sidebar.block.search.php') diff --git a/data/templates/minimal/sidebar.block.search.php b/data/templates/minimal/sidebar.block.search.php new file mode 100644 index 0000000..d3cd8a5 --- /dev/null +++ b/data/templates/minimal/sidebar.block.search.php @@ -0,0 +1,51 @@ + + * @author Christian Weiske + * @author Eric Dane + * @license GPL http://www.gnu.org/licenses/gpl.html + * @link http://sourceforge.net/projects/semanticscuttle + */ +/* Service creation: only useful services are created */ +$searchhistoryservice = SemanticScuttle_Service_Factory::get('SearchHistory'); + +$lastSearches = $searchhistoryservice->getAllSearches( + 'all', NULL, 3, NULL, true, false +); + +if ($lastSearches && count($lastSearches) > 0) { +?> + +

+
+ +' . "\n"; +} +//echo ''; +?> + +
'; + echo ''; + echo htmlspecialchars($row['shTerms']); + echo ''; + echo ' (' . $row['shNbResults'] . ')'; + echo '
...
+
+ -- cgit v1.2.3-54-g00ecf