Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
649e4c3e84 | ||
|
|
68678b26ce |
@@ -25,8 +25,8 @@ function create_map(map_div) {
|
|||||||
scaleControl: true,
|
scaleControl: true,
|
||||||
zoom: map_zoom,
|
zoom: map_zoom,
|
||||||
|
|
||||||
//gestureHandling: "cooperative",
|
gestureHandling: "cooperative",
|
||||||
gestureHandling: "greedy",
|
//gestureHandling: "greedy",
|
||||||
//gestureHandling: "none",
|
//gestureHandling: "none",
|
||||||
//gestureHandling: "auto",
|
//gestureHandling: "auto",
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,13 @@ function attach_info_window(map, marker, events, infowindow) {
|
|||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
for (key in events) {
|
for (key in events) {
|
||||||
|
// <a class="infowindow_body">
|
||||||
|
// <a class="infowindow_body" href="${events[key].url}">
|
||||||
|
//console.log(events[key].url);
|
||||||
|
//lejourdesprofs.org
|
||||||
|
//local_lejourduprof.com
|
||||||
window_content += `
|
window_content += `
|
||||||
<a class="infowindow_body" href="${events[key].url}">
|
<a class="infowindow_body" href="${events[key].url}" target="_blank" rel="noopener noreferrer">
|
||||||
<p>${events[key].title}</p>
|
<p>${events[key].title}</p>
|
||||||
</a>
|
</a>
|
||||||
`;
|
`;
|
||||||
|
|||||||
@@ -135,7 +135,10 @@ function mp_fill_fields_value($id) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// add post url
|
// add post url
|
||||||
|
/* iframe version modification : hiding it now
|
||||||
$event->url = get_post_permalink($id);
|
$event->url = get_post_permalink($id);
|
||||||
|
*/
|
||||||
|
|
||||||
|
|
||||||
return $event;
|
return $event;
|
||||||
}
|
}
|
||||||
@@ -148,6 +151,10 @@ function mp_get_published_events() {
|
|||||||
$event = mp_fill_fields_value($post->ID);
|
$event = mp_fill_fields_value($post->ID);
|
||||||
$event->id = $post->ID;
|
$event->id = $post->ID;
|
||||||
$event->title = trim($post->post_title, " ");
|
$event->title = trim($post->post_title, " ");
|
||||||
|
|
||||||
|
// iframe version modification : doing it now instead of inside mp_fill_fields_value()
|
||||||
|
$event->url = "https://lejourdesprofs.org/" . get_page_uri($post->ID);
|
||||||
|
|
||||||
$event->index = null;
|
$event->index = null;
|
||||||
array_push($events, $event);
|
array_push($events, $event);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user