From 68678b26ce05def2e2ecfc83594a7fd5543be06e Mon Sep 17 00:00:00 2001 From: asus Date: Fri, 24 Nov 2023 10:49:34 +0100 Subject: [PATCH] trying to create the right iframe behavior --- srcs/plugins/map_prof/scripts/mp_info_window.js | 7 ++++++- srcs/plugins/map_prof/srcs/map/mp_get_events.php | 1 + 2 files changed, 7 insertions(+), 1 deletion(-) 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; }