From ca5b49205e973bdf241cb15cf02a056579aa7858 Mon Sep 17 00:00:00 2001 From: "E. S." Date: Wed, 13 Mar 2024 17:27:01 +0000 Subject: [PATCH] mdf: search placeholder text upd --- skin/files.phps | 6 +++--- strings/main.yaml | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/skin/files.phps b/skin/files.phps index dc2a1f0..50a6a11 100644 --- a/skin/files.phps +++ b/skin/files.phps @@ -99,7 +99,7 @@ function collection(SkinContext $ctx, $html = <<bc($bc)} -{$ctx->if_true($do_show_search, fn() => $ctx->collection_search($search_count, $search_query))} +{$ctx->if_true($do_show_search, fn() => $ctx->collection_search($search_count, $search_query, $ctx->lang('files_'.$collection->value.'_search_ph')))}
@@ -146,7 +146,7 @@ function collection_files($ctx, text_excerpts: $text_excerpts)); } -function collection_search(SkinContext $ctx, $count, $query) { +function collection_search(SkinContext $ctx, $count, $query, ?string $placeholder = null) { $icons = svg(); $widgets = skin('widgets'); $clear_dsp = $query ? 'block' : 'none'; @@ -155,7 +155,7 @@ function collection_search(SkinContext $ctx, $count, $query) {
diff --git a/strings/main.yaml b/strings/main.yaml index 0d369ff..5734694 100644 --- a/strings/main.yaml +++ b/strings/main.yaml @@ -117,7 +117,9 @@ files_wff_collection_short: W.F.F. Archive files_mdf_collection_short: MdF files_baconiana_collection_short: Baconiana -files_search_ph: Document number, title or text +files_wff_search_ph: Document number, title or text +files_mdf_search_ph: Issue number, date or text + files_search_results_count: - "%s result" - "%s results"