wip create filters but values are unique for sub cateegories

This commit is contained in:
lenovo
2022-11-10 11:47:40 +01:00
parent 4e7fa55234
commit 0f4eb2bd84
4 changed files with 114 additions and 31 deletions

View File

@@ -67,15 +67,16 @@ function mp_ljdp_map() {
*/
$events = mp_get_published_events();
$locations = mp_sort_events($events);
$filters = mp_get_filters($events);
$to_add = array(
"locations" => $locations,
"filters" => $filters,
);
mp_add_to_scripts($to_add);
$filters = mp_get_filters($locations);
/* * * * * * * *
* ADD FILTERS