diff --git a/srcs/plugins/map_prof/scripts/mp_info_window.js b/srcs/plugins/map_prof/scripts/mp_info_window.js index bc75e5a..062d72e 100644 --- a/srcs/plugins/map_prof/scripts/mp_info_window.js +++ b/srcs/plugins/map_prof/scripts/mp_info_window.js @@ -15,8 +15,13 @@ function attach_info_window(map, marker, events, infowindow) { `; for (key in events) { + // + // + //console.log(events[key].url); + //lejourdesprofs.org + //local_lejourduprof.com window_content += ` - +

${events[key].title}

`; diff --git a/srcs/plugins/map_prof/srcs/map/mp_get_events.php b/srcs/plugins/map_prof/srcs/map/mp_get_events.php index 508ff4b..f572a8c 100644 --- a/srcs/plugins/map_prof/srcs/map/mp_get_events.php +++ b/srcs/plugins/map_prof/srcs/map/mp_get_events.php @@ -136,6 +136,7 @@ function mp_fill_fields_value($id) { // add post url $event->url = get_post_permalink($id); + mp_console_log($event->url); return $event; }