added more check to the plugin menu
This commit is contained in:
@@ -57,12 +57,20 @@ function mp_ljdp_map() {
|
||||
mp_enqueue_scripts_and_styles();
|
||||
|
||||
$events = mp_get_published_events(); // mp_get_events.php
|
||||
//mp_console_log("events: " . $events);
|
||||
//foreach ($events as $event)
|
||||
// mp_console_log($event);
|
||||
//mp_console_log("events: ");
|
||||
//mp_console_log($events);
|
||||
foreach ($events as $event) {
|
||||
if (gettype($event->categorie) === "array") {
|
||||
mp_console_log($event->categorie);
|
||||
}
|
||||
if (str_starts_with($event->categorie, '["')) {
|
||||
mp_console_log($event->categorie);
|
||||
}
|
||||
}
|
||||
|
||||
$locations = mp_sort_events($events); // mp_get_locations.php
|
||||
//mp_console_log("locations: " . $locations);
|
||||
//mp_console_log("locations: ");
|
||||
//mp_console_log($locations);
|
||||
|
||||
$filters = mp_get_filters($events); // mp_get_filters.php
|
||||
|
||||
|
||||
Reference in New Issue
Block a user