From c16da5e492409a386466e4b96acdcd5c6a1c0e61 Mon Sep 17 00:00:00 2001 From: MatthieuLP Date: Fri, 28 Jul 2023 10:22:21 +0200 Subject: [PATCH] related to #1931 add data display for tag and album popin, this is placeholder data for now --- index.php | 20 ++++++++++++++++++++ themes/default/template/index.tpl | 20 ++++++++++++++------ 2 files changed, 34 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index fd83bb87b..4df868727 100644 --- a/index.php +++ b/index.php @@ -392,6 +392,26 @@ SELECT 'SEARCH_ID' => $page['search'], ) ); + + // TODO: Send actual data + $template->assign('TAGS_FOUND', + array( + 'Link 1 / Sub link 1 / Sub sub', + 'Link 2 / Sub link 2 / Sub link 2 / Sub link 2 / Sub link 2 / Sub link 2 / Sub link 2 / Sub link 2 / Sub link 2.2.2', + 'Link 3', + 'Link 4', + 'Link 5' + ) + ); + + $template->assign('ALBUMS_FOUND', + array( + 'Link 1 / Sub link 1 / Sub sub', + 'Link 2 / Sub link 2 / Sub link 2 / Sub link 2 / Sub link 2 / Sub link 2 / Sub link 2 / Sub link 2 / Sub link 2.2.2', + 'Link 3', + 'Link 4', + ) + ); } if (isset($page['category']) and is_admin() and $conf['index_edit_icon']) diff --git a/themes/default/template/index.tpl b/themes/default/template/index.tpl index b6ca47d1c..2db317a69 100644 --- a/themes/default/template/index.tpl +++ b/themes/default/template/index.tpl @@ -571,11 +571,11 @@ str_empty_search_bot_alt = "{'Pre-established filters are proposed, but you can
- 555 + {count($TAGS_FOUND)}

{'Tags found'|@translate}

- 555 + {count($ALBUMS_FOUND)}

{'Albums found'|@translate}

@@ -585,8 +585,12 @@ str_empty_search_bot_alt = "{'Pre-established filters are proposed, but you can
{'Tags found'|@translate}
-
- content +
+ {foreach from=$TAGS_FOUND item=tag_path key=k} +
+ {$tag_path} +
+ {/foreach}
@@ -596,8 +600,12 @@ str_empty_search_bot_alt = "{'Pre-established filters are proposed, but you can
{'Albums found'|@translate}
-
- content +
+ {foreach from=$ALBUMS_FOUND item=album_path key=k} +
+ {$album_path} +
+ {/foreach}