dynamic counter ok
This commit is contained in:
@@ -57,12 +57,12 @@ function mp_ljdp_map() {
|
||||
mp_enqueue_scripts_and_styles();
|
||||
|
||||
$events = mp_get_published_events(); // mp_get_events.php
|
||||
mp_console_log("events: " . $events);
|
||||
//mp_console_log("events: " . $events);
|
||||
//foreach ($events as $event)
|
||||
// mp_console_log($event);
|
||||
|
||||
$locations = mp_sort_events($events); // mp_get_locations.php
|
||||
mp_console_log("locations: " . $locations);
|
||||
//mp_console_log("locations: " . $locations);
|
||||
|
||||
$filters = mp_get_filters($events); // mp_get_filters.php
|
||||
|
||||
@@ -72,7 +72,7 @@ function mp_ljdp_map() {
|
||||
mp_add_to_scripts(array(
|
||||
"locations" => $locations,
|
||||
"filters" => $filters,
|
||||
"events" => $events,
|
||||
"jipf_events" => $events,
|
||||
));
|
||||
|
||||
return mp_create_div($filters);
|
||||
|
||||
Reference in New Issue
Block a user