mv map_prof plugin inside plugins container

This commit is contained in:
asus
2024-02-06 15:47:28 +01:00
parent d8c03f1c59
commit 1b837f8f92
35 changed files with 2 additions and 1 deletions

View File

@@ -0,0 +1,27 @@
<?php
function is_event_post() {
if ( is_admin() )
return false;
if ( get_post_type() != "post" )
return 0;
if ( get_post_status() != "publish" )
return 0;
return true;
}
function mp_post_event_pages_setting() {
global $mp_zoom;
global $mp_zoom_set;
global $mp_coordinates_default;
if (is_event_post()) {
$mp_zoom = $mp_zoom_set[1];
$location = get_field("location");
$coordinates = $location->coordinates;
$mp_coordinates_default = $coordinates;
}
}
?>