From a65d424263adfbff9629c7d91a613e4504c84613 Mon Sep 17 00:00:00 2001
From: Jonas Kohl
Date: Tue, 17 Sep 2024 14:51:23 +0200
Subject: Add search
---
src/application/views/form_search.php | 28 +++++++++++++++++++++++
src/application/views/nav_guest.php | 1 +
src/application/views/nav_logged_in.php | 1 +
src/application/views/view_search_results.php | 33 +++++++++++++++++++++++++++
4 files changed, 63 insertions(+)
create mode 100644 src/application/views/form_search.php
create mode 100644 src/application/views/view_search_results.php
(limited to 'src/application/views')
diff --git a/src/application/views/form_search.php b/src/application/views/form_search.php
new file mode 100644
index 0000000..edc68b8
--- /dev/null
+++ b/src/application/views/form_search.php
@@ -0,0 +1,28 @@
+
+
+ $_formError]);
+}
+?>
+
diff --git a/src/application/views/nav_guest.php b/src/application/views/nav_guest.php
index 1c65a50..88c551b 100644
--- a/src/application/views/nav_guest.php
+++ b/src/application/views/nav_guest.php
@@ -1,4 +1,5 @@
+- >= __("Search") ?>
- >">= __("Log in") ?>
- >">= __("Register") ?>
diff --git a/src/application/views/nav_logged_in.php b/src/application/views/nav_logged_in.php
index 39c65cb..0f77f90 100644
--- a/src/application/views/nav_logged_in.php
+++ b/src/application/views/nav_logged_in.php
@@ -6,6 +6,7 @@ use mystic\forum\orm\User;
"user" => ($user->id === User::SUPERUSER_ID) ? ('' . htmlentities($user->displayName) . '') : ('' . htmlentities($user->displayName) . '')
]) ?>
+- >= __("Search") ?>
- View profile
- ">Log out
diff --git a/src/application/views/view_search_results.php b/src/application/views/view_search_results.php
new file mode 100644
index 0000000..19a6978
--- /dev/null
+++ b/src/application/views/view_search_results.php
@@ -0,0 +1,33 @@
+
+
+ 0): ?>
+ = __("%result_count% result(s) in %search_duration% second(s)", [
+ "result_count" => count($posts),
+ "search_duration" => number_format($search_duration, 2, __(".", context: "Number formatting"), __(",", context: "Number formatting")),
+ ]) ?>
+
+
+
+
+ = __("No results for this search") ?>
+
+
--
cgit v1.2.3